Sha256: a4c603557def532f6d64ce598789f23ef56448889120ba3de4fe5a117b0f8b97

Contents?: true

Size: 694 Bytes

Versions: 31

Compression:

Stored size: 694 Bytes

Contents

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

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

    def self.update(id, params=nil, opts=nil)
      raise NotImplementedError.new("Refunds cannot be updated without an application fee ID. Update a refund by using `a = appfee.refunds.retrieve('refund_id'); a.save`")
    end

    def self.retrieve(id, api_key=nil)
      raise NotImplementedError.new("Refunds cannot be retrieved without an application fee ID. Retrieve a refund using appfee.refunds.retrieve('refund_id')")
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
stripe-2.5.0 lib/stripe/application_fee_refund.rb
stripe-2.4.0 lib/stripe/application_fee_refund.rb
stripe-2.3.0 lib/stripe/application_fee_refund.rb
stripe-2.2.1 lib/stripe/application_fee_refund.rb
stripe-2.2.0 lib/stripe/application_fee_refund.rb
stripe-2.1.0 lib/stripe/application_fee_refund.rb
stripe-2.0.3 lib/stripe/application_fee_refund.rb
stripe-2.0.2 lib/stripe/application_fee_refund.rb
stripe-2.0.1 lib/stripe/application_fee_refund.rb
stripe-2.0.0 lib/stripe/application_fee_refund.rb
stripe-1.58.0 lib/stripe/application_fee_refund.rb
stripe-1.57.1 lib/stripe/application_fee_refund.rb
stripe-1.57.0 lib/stripe/application_fee_refund.rb
stripe-1.56.2 lib/stripe/application_fee_refund.rb
stripe-1.56.1 lib/stripe/application_fee_refund.rb
stripe-1.56.0 lib/stripe/application_fee_refund.rb
stripe-1.55.1 lib/stripe/application_fee_refund.rb
stripe-1.55.0 lib/stripe/application_fee_refund.rb
stripe-1.54.0 lib/stripe/application_fee_refund.rb
stripe-1.53.0 lib/stripe/application_fee_refund.rb