Method: Unit::Payment.create_ach_payment_inline
- Defined in:
- lib/unit/models/payment/payment.rb
.create_ach_payment_inline(account_id:, amount:, direction:, counterparty:, description:, addenda: nil, idempotency_key: nil, tags: nil, same_day: nil, sec_code: nil) ⇒ Object
Create a new ach payment to inline counterparty by calling Unit’s API
61 62 63 64 65 66 67 |
# File 'lib/unit/models/payment/payment.rb', line 61 def create_ach_payment_inline(account_id:, amount:, direction:, counterparty:, description:, addenda: nil, idempotency_key: nil, tags: nil, same_day: nil, sec_code: nil) request = Unit::Payment::CreateAchPaymentInlineRequest.new(account_id: account_id, amount: amount, direction: direction, counterparty: counterparty, description: description, addenda: addenda, idempotency_key: idempotency_key, tags: , same_day: same_day, sec_code: sec_code) Unit::Resource::PaymentResource.create_payment(request) end |