Class: Lithic::Resources::Transfers
- Inherits:
-
Object
- Object
- Lithic::Resources::Transfers
- Defined in:
- lib/lithic/resources/transfers.rb
Instance Method Summary collapse
- #create(amount:, from:, to:, token: nil, memo: nil, request_options: {}) ⇒ Lithic::Models::Transfer deprecated Deprecated.
-
#initialize(client:) ⇒ Transfers
constructor
private
A new instance of Transfers.
Constructor Details
#initialize(client:) ⇒ Transfers
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Transfers.
45 46 47 |
# File 'lib/lithic/resources/transfers.rb', line 45 def initialize(client:) @client = client end |
Instance Method Details
#create(amount:, from:, to:, token: nil, memo: nil, request_options: {}) ⇒ Lithic::Models::Transfer
Deprecated.
Some parameter documentations has been truncated, see Models::TransferCreateParams for more details.
Transfer funds between two financial accounts or between a financial account and card
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/lithic/resources/transfers.rb', line 31 def create(params) parsed, = Lithic::TransferCreateParams.dump_request(params) @client.request( method: :post, path: "v1/transfer", body: parsed, model: Lithic::Transfer, options: ) end |