Sha256: 418947b4cbd6a7a12e500b936e0a4f66afc753757a6329420a6b8604a23a099e

Contents?: true

Size: 760 Bytes

Versions: 46

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

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

46 entries across 46 versions & 1 rubygems

Version Path
stripe-4.18.0 lib/stripe/reversal.rb
stripe-4.17.0 lib/stripe/reversal.rb
stripe-4.16.0 lib/stripe/reversal.rb
stripe-4.15.0 lib/stripe/reversal.rb
stripe-4.14.0 lib/stripe/reversal.rb
stripe-4.13.0 lib/stripe/reversal.rb
stripe-4.12.0 lib/stripe/reversal.rb
stripe-4.11.0 lib/stripe/reversal.rb
stripe-4.10.0 lib/stripe/reversal.rb
stripe-4.9.1 lib/stripe/reversal.rb
stripe-4.9.0 lib/stripe/reversal.rb
stripe-4.8.1 lib/stripe/reversal.rb
stripe-4.8.0 lib/stripe/reversal.rb
stripe-4.7.1 lib/stripe/reversal.rb
stripe-4.7.0 lib/stripe/reversal.rb
stripe-4.6.0 lib/stripe/reversal.rb
stripe-4.5.0 lib/stripe/reversal.rb
stripe-4.4.1 lib/stripe/reversal.rb
stripe-4.4.0 lib/stripe/reversal.rb
stripe-4.3.0 lib/stripe/reversal.rb