module NeonApi::GetPaymentSlipBySubAccount

Constants

URL

Public Class Methods

create(payer_id, bank_account_id) click to toggle source
# File lib/neon_api/methods/get_payment_slip_by_sub_account.rb, line 4
def self.create(payer_id, bank_account_id)
  NeonApi.client.send_request(payload(payer_id, bank_account_id), URL)
end
payload(payer_id, bank_account_id) click to toggle source
# File lib/neon_api/methods/get_payment_slip_by_sub_account.rb, line 8
def self.payload(payer_id, bank_account_id)
  {
      "PayerId": payer_id,
      "BankAccountId": bank_account_id
  }.to_json
end