Sha256: f55a1ef418e563bd2bfdcd1bd5933349d8df7069c1810a9ec663d0ba447d9d0c

Contents?: true

Size: 980 Bytes

Versions: 46

Compression:

Stored size: 980 Bytes

Contents

# frozen_string_literal: true

module Stripe
  class ApplicationFeeRefund < APIResource
    include Stripe::APIOperations::Save
    extend Stripe::APIOperations::List

    OBJECT_NAME = "fee_refund"

    def resource_url
      "#{ApplicationFee.resource_url}/#{CGI.escape(fee)}/refunds" \
      "/#{CGI.escape(id)}"
    end

    def self.update(_id, _params = nil, _opts = nil)
      raise NotImplementedError,
            "Application fee refunds cannot be updated without an " \
            "application fee ID. Update an application fee refund using " \
            "`ApplicationFee.update_refund('fee_id', 'refund_id', " \
            "update_params)`"
    end

    def self.retrieve(_id, _api_key = nil)
      raise NotImplementedError,
            "Application fee refunds cannot be retrieved without an " \
            "application fee ID. Retrieve an application fee refund using " \
            "`ApplicationFee.retrieve_refund('fee_id', 'refund_id')`"
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
stripe-5.37.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.36.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.35.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.34.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.33.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.32.1 lib/stripe/resources/application_fee_refund.rb
stripe-5.32.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.31.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.30.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.29.1 lib/stripe/resources/application_fee_refund.rb
stripe-5.29.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.28.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.27.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.26.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.25.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.24.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.23.1 lib/stripe/resources/application_fee_refund.rb
stripe-5.23.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.22.0 lib/stripe/resources/application_fee_refund.rb
stripe-5.21.0 lib/stripe/resources/application_fee_refund.rb