Sha256: 21a1875405c8c12c18acc877f70e2e845f5f602036f5c16938994b0aff3d56bb

Contents?: true

Size: 929 Bytes

Versions: 28

Compression:

Stored size: 929 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

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,
            "Reversals cannot be updated without a transfer ID. Update a " \
            "reversal using `r = Transfer.update_reversal('transfer_id', " \
            "'reversal_id', update_params)`"
    end

    def self.retrieve(_id, _opts = {})
      raise NotImplementedError,
            "Reversals cannot be retrieved without a transfer ID. Retrieve " \
            "a reversal using `Transfer.retrieve_reversal('transfer_id', " \
            "'reversal_id'`"
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
stripe-7.1.0 lib/stripe/resources/reversal.rb
stripe-7.1.0.pre.beta.2 lib/stripe/resources/reversal.rb
stripe-7.1.0.pre.beta.1 lib/stripe/resources/reversal.rb
stripe-7.0.0 lib/stripe/resources/reversal.rb
stripe-6.6.0.pre.beta.1 lib/stripe/resources/reversal.rb
stripe-6.5.0 lib/stripe/resources/reversal.rb
stripe-6.4.0 lib/stripe/resources/reversal.rb
stripe-6.3.0 lib/stripe/resources/reversal.rb
stripe-6.2.0 lib/stripe/resources/reversal.rb
stripe-6.1.0 lib/stripe/resources/reversal.rb
stripe-6.0.0 lib/stripe/resources/reversal.rb
stripe-5.55.0 lib/stripe/resources/reversal.rb
stripe-5.54.0 lib/stripe/resources/reversal.rb
stripe-5.53.0 lib/stripe/resources/reversal.rb
stripe-5.52.0 lib/stripe/resources/reversal.rb
stripe-5.50.0 lib/stripe/resources/reversal.rb
stripe-5.49.0 lib/stripe/resources/reversal.rb
stripe-5.48.0 lib/stripe/resources/reversal.rb
stripe-5.47.0 lib/stripe/resources/reversal.rb
stripe-5.46.0 lib/stripe/resources/reversal.rb