Sha256: 9b06c6020f172ffe0c4fdb6768999b5770250cf832b0054ae3baadf4d00cf6e6

Contents?: true

Size: 726 Bytes

Versions: 15

Compression:

Stored size: 726 Bytes

Contents

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.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

15 entries across 15 versions & 1 rubygems

Version Path
stripe-3.3.2 lib/stripe/application_fee_refund.rb
stripe-3.3.1 lib/stripe/application_fee_refund.rb
stripe-3.3.0 lib/stripe/application_fee_refund.rb
stripe-3.2.0 lib/stripe/application_fee_refund.rb
stripe-3.1.0 lib/stripe/application_fee_refund.rb
stripe-3.0.3 lib/stripe/application_fee_refund.rb
stripe-3.0.1 lib/stripe/application_fee_refund.rb
stripe-3.0.0 lib/stripe/application_fee_refund.rb
stripe-2.12.0 lib/stripe/application_fee_refund.rb
stripe-2.11.0 lib/stripe/application_fee_refund.rb
stripe-2.10.0 lib/stripe/application_fee_refund.rb
stripe-2.9.0 lib/stripe/application_fee_refund.rb
stripe-2.8.0 lib/stripe/application_fee_refund.rb
stripe-2.7.0 lib/stripe/application_fee_refund.rb
stripe-2.6.0 lib/stripe/application_fee_refund.rb