Sha256: a9ae9fa80c9a69e3a9958bd76ecd8bb796599996aef9616eecb3abf6a3cc2263

Contents?: true

Size: 719 Bytes

Versions: 15

Compression:

Stored size: 719 Bytes

Contents

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

    OBJECT_NAME = 'transfer_reversal'

    def resource_url
      "#{Transfer.resource_url}/#{CGI.escape(transfer)}/reversals/#{CGI.escape(id)}"
    end

    def self.update(id, params=nil, opts=nil)
      raise NotImplementedError.new("Reversals cannot be updated without a transfer ID. Update a reversal using `r = transfer.reversals.retrieve('reversal_id'); r.save`")
    end

    def self.retrieve(id, opts={})
      raise NotImplementedError.new("Reversals cannot be retrieved without a transfer ID. Retrieve a reversal using transfer.reversals.retrieve('reversal_id')")
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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