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