Class: FinchAPI::Resources::Sandbox::Payment
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Sandbox::Payment
- Defined in:
- lib/finch_api/resources/sandbox/payment.rb
Instance Method Summary collapse
-
#create(end_date: nil, pay_statements: nil, start_date: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::PaymentCreateResponse
Add a new sandbox payment.
-
#initialize(client:) ⇒ Payment
constructor
private
A new instance of Payment.
Constructor Details
#initialize(client:) ⇒ Payment
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 Payment.
33 34 35 |
# File 'lib/finch_api/resources/sandbox/payment.rb', line 33 def initialize(client:) @client = client end |
Instance Method Details
#create(end_date: nil, pay_statements: nil, start_date: nil, request_options: {}) ⇒ FinchAPI::Models::Sandbox::PaymentCreateResponse
Add a new sandbox payment
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/finch_api/resources/sandbox/payment.rb', line 19 def create(params = {}) parsed, = FinchAPI::Sandbox::PaymentCreateParams.dump_request(params) @client.request( method: :post, path: "sandbox/payment", body: parsed, model: FinchAPI::Models::Sandbox::PaymentCreateResponse, options: ) end |