Sha256: 25d79051750156418de01b425bf391ec77ed2409e328c7c477b80e86383a475e

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 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)
credit = bank_account.credit(
  :amount => 100000,
  :description => 'Payout for order #1111',
  :appears_on_statement_as => 'GoodCo #1111',
  :order => order_href
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.2.1 snippets/credit-soft-descriptor.rb