Sha256: bef3857cab3a7507be97341e263cc68f045dffc7d6cc9d7a62cc527ef7fc84f9

Contents?: true

Size: 729 Bytes

Versions: 20

Compression:

Stored size: 729 Bytes

Contents

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

    OBJECT_NAME = "transfer_reversal".freeze

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

    def self.update(_id, _params = nil, _opts = nil)
      raise NotImplementedError, "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, "Reversals cannot be retrieved without a transfer ID. Retrieve a reversal using transfer.reversals.retrieve('reversal_id')"
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
stripe-3.14.0 lib/stripe/reversal.rb
stripe-3.13.1 lib/stripe/reversal.rb
stripe-3.13.0 lib/stripe/reversal.rb
stripe-3.12.1 lib/stripe/reversal.rb
stripe-3.12.0 lib/stripe/reversal.rb
stripe-3.11.0 lib/stripe/reversal.rb
stripe-3.10.0 lib/stripe/reversal.rb
stripe-3.9.2 lib/stripe/reversal.rb
stripe-3.9.1 lib/stripe/reversal.rb
stripe-3.9.0 lib/stripe/reversal.rb
stripe-3.8.2 lib/stripe/reversal.rb
stripe-3.8.1 lib/stripe/reversal.rb
stripe-3.8.0 lib/stripe/reversal.rb
stripe-3.7.0 lib/stripe/reversal.rb
stripe-3.6.0 lib/stripe/reversal.rb
stripe-3.5.3 lib/stripe/reversal.rb
stripe-3.5.2 lib/stripe/reversal.rb
stripe-3.5.1 lib/stripe/reversal.rb
stripe-3.5.0 lib/stripe/reversal.rb
stripe-3.4.1 lib/stripe/reversal.rb