Sha256: 7318f4b04a6d9f85e2c6b715faf658c5052e9fb28a7a462d0a5b50843cfa631b

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

# bank_account_href is the stored href for the BankAccount
# order_href is the stored href for the Order
bank_account = Balanced::BankAccount.fetch(bank_account_href)
bank_account.debit(
  :amount => 5000,
  :appears_on_statement_as => 'Statement text',
  :description => 'Some descriptive text for the debit in the dashboard',
  :order => order_href
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.2.1 snippets/bank-account-debit.rb