Sha256: 206140634357595a3b6ad54e1333caddb16b0ad852bc9d9b349bc39ec297c334

Contents?: true

Size: 273 Bytes

Versions: 2

Compression:

Stored size: 273 Bytes

Contents

<%= boiler_plate %>
marketplace = Balanced::Marketplace.my_marketplace

bank_account_info = {
<%= params_to_hash.call(request['bank_account']).indent(2) %>
}

credit = Balanced::Credit.new(
  :amount => <%= request['amount'] %>,
  :bank_account => bank_account_info
).save

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
balanced-0.8.2 scenarios/credit_paid_state/request.rb
balanced-0.8.1 scenarios/credit_paid_state/request.rb