Sha256: be848b8049fdac71812e75bae8468a696c602e0acda39e0482d735c8c3514771
Contents?: true
Size: 601 Bytes
Versions: 5
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true module Stripe class Transfer < APIResource extend Stripe::APIOperations::List extend Stripe::APIOperations::Create include Stripe::APIOperations::Save extend Stripe::APIOperations::NestedResource OBJECT_NAME = "transfer".freeze custom_method :cancel, http_verb: :post nested_resource_class_methods :reversal, operations: %i[create retrieve update list] def cancel resp, api_key = request(:post, cancel_url) initialize_from(resp.data, api_key) end def cancel_url resource_url + "/cancel" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
stripe-4.16.0 | lib/stripe/transfer.rb |
stripe-4.15.0 | lib/stripe/transfer.rb |
stripe-4.14.0 | lib/stripe/transfer.rb |
stripe-4.13.0 | lib/stripe/transfer.rb |
stripe-4.12.0 | lib/stripe/transfer.rb |