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

Parameters:

  • account_id (String)
  • amount (Integer)
  • direction (String)
  • counterparty (Counterparty)
  • description (String)
  • addenda (String) (defaults to: nil)
    • optional

  • idempotency_key (String) (defaults to: nil)
    • optional

  • tags (Hash) (defaults to: nil)
    • optional

  • same_day (Boolean) (defaults to: nil)
    • optional

  • sec_code (String) (defaults to: nil)
    • optional

See Also:



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: , amount: amount, direction: direction, counterparty: counterparty, description: description, addenda: addenda, idempotency_key: idempotency_key,
                                                             tags: tags, same_day: same_day, sec_code: sec_code)
  Unit::Resource::PaymentResource.create_payment(request)
end