Sha256: e3f698faf8c24693c34ae9d66fd6b30f021b2e2aba2522db9f569d5581e30ece

Contents?: true

Size: 1.94 KB

Versions: 1

Compression:

Stored size: 1.94 KB

Contents

% if mode == 'definition':
Balanced::Customer.new

% elif mode == 'request':
require 'balanced'
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')

customer = Balanced::Customer.new(
  :address => {
    :postal_code => '48120'
  },
  :dob_month => 7,
  :dob_year => 1963,
  :name => 'Henry Ford'
)
customer.save

% elif mode == 'response':
#<Balanced::Customer:0x007ff2bc8a40b0
 @attributes=
  {"address"=>
    {"city"=>nil,
     "country_code"=>nil,
     "line1"=>nil,
     "line2"=>nil,
     "postal_code"=>"48120",
     "state"=>nil},
   "business_name"=>nil,
   "created_at"=>"2014-03-06T19:23:21.728225Z",
   "dob_month"=>7,
   "dob_year"=>1963,
   "ein"=>nil,
   "email"=>nil,
   "href"=>"/customers/CU64R7DS6DwuXYVg9RTskFK8",
   "id"=>"CU64R7DS6DwuXYVg9RTskFK8",
   "links"=>{"destination"=>nil, "source"=>nil},
   "merchant_status"=>"underwritten",
   "meta"=>{},
   "name"=>"Henry Ford",
   "phone"=>nil,
   "ssn_last4"=>nil,
   "updated_at"=>"2014-03-06T19:23:22.907102Z"},
 @hyperlinks=
  {"bank_accounts"=>
    #<Proc:0x007ff2bd929750/lib/balanced/utils.rb:6 (lambda)>,
   "card_holds"=>
    #<Proc:0x007ff2bd91f4f8/lib/balanced/utils.rb:6 (lambda)>,
   "cards"=>
    #<Proc:0x007ff2bd91cf28/lib/balanced/utils.rb:6 (lambda)>,
   "credits"=>
    #<Proc:0x007ff2bd91a598/lib/balanced/utils.rb:6 (lambda)>,
   "debits"=>
    #<Proc:0x007ff2bd910660/lib/balanced/utils.rb:6 (lambda)>,
   "destination"=>
    #<Proc:0x007ff2bd903ed8/lib/balanced/utils.rb:6 (lambda)>,
   "external_accounts"=>
    #<Proc:0x007ff2bd8f3010/lib/balanced/utils.rb:6 (lambda)>,
   "orders"=>
    #<Proc:0x007ff2bc10da18/lib/balanced/utils.rb:6 (lambda)>,
   "refunds"=>
    #<Proc:0x007ff2bd8e11f8/lib/balanced/utils.rb:6 (lambda)>,
   "reversals"=>
    #<Proc:0x007ff2bd8c84a0/lib/balanced/utils.rb:6 (lambda)>,
   "source"=>
    #<Proc:0x007ff2bd8c37c0/lib/balanced/utils.rb:6 (lambda)>,
   "transactions"=>
    #<Proc:0x007ff2bd8bb570/lib/balanced/utils.rb:6 (lambda)>}>

% endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
balanced-1.0 scenarios/customer_create/ruby.mako