Module ImportFrom alias Import alias Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Print Str AttributeLoad NameLoad attr Print BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Print Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Print Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Print Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str attr Print BinOpAdd Str AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword NameLoad attr Print BinOpAdd Str AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr Num Print Str Assign NameStore Call AttributeLoad NameLoad attr Print Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call NameLoad Str Print Call AttributeLoad Str attr AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Dict Str Str Str Str Str Str keyword Str keyword Str keyword NameLoad attr Print Str Assign NameStore Call AttributeLoad NameLoad attr Num keyword Str Print Str Assign NameStore Call AttributeLoad NameLoad attr Num keyword Str Print Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Num keyword Str Print Str Expr Call AttributeLoad NameLoad attr Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Print Str Expr Call AttributeLoad NameLoad attr Print Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str attr Expr Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Print Str
N/A __future__ unicode_literals N/A balanced N/A create our new api key N/A api_key N/A N/A N/A N/A balanced APIKey save N/A Our secret is:  N/A api_key secret N/A N/A configure with our secret  N/A api_key secret N/A N/A N/A balanced configure N/A api_key secret N/A create our marketplace N/A marketplace N/A N/A N/A N/A balanced Marketplace save N/A N/A N/A N/A balanced Marketplace my_marketplace N/A N/A N/A Exception Marketplace.my_marketplace should not be nil N/A N/A N/A what's my marketplace?, easy: Marketplace.my_marketplace: {0} format N/A N/A balanced Marketplace my_marketplace N/A N/A N/A My marketplace's name is: {0} format N/A marketplace name N/A Changing it to TestFooey N/A N/A marketplace name TestFooey N/A N/A N/A marketplace save N/A N/A N/A My marketplace name is now: {0} format N/A marketplace name N/A N/A N/A marketplace name TestFooey N/A N/A N/A Exception Marketplace name is NOT TestFooey! N/A cool! let's create a new card. N/A card N/A N/A N/A N/A balanced Card number 5105105105105100 expiration_month 12 expiration_year 2015 save N/A N/A Our card href:  N/A card href N/A create our **buyer** account N/A buyer N/A N/A N/A N/A balanced Customer email buyer@example.org source card save N/A N/A our buyer account:  N/A buyer href N/A hold some amount of funds on the buyer, lets say 15$ N/A the_hold N/A N/A card hold 1500 N/A ok, no more holds! lets just capture it (for the full amount) N/A debit N/A N/A the_hold capture N/A hmm, how much money do i have in escrow? should equal the debit amount N/A marketplace N/A N/A balanced Marketplace my_marketplace N/A N/A N/A marketplace in_escrow 1500 N/A N/A N/A Exception 1500 is not in escrow! this is wrong N/A N/A N/A i have {0} in escrow! format N/A marketplace in_escrow N/A cool. now let me refund the full amount N/A refund N/A N/A debit refund N/A ok, we have a merchant that's signing up, let's create an account for them first, lets create their bank account. N/A bank_account N/A N/A N/A N/A balanced BankAccount account_number 1234567890 routing_number 321174851 name Jack Q Merchant save N/A merchant N/A N/A N/A N/A balanced Customer email_address merchant@example.org name Billy Jones address N/A street_address postal_code country 801 High St. 94301 USA dob 1842-01 phone_number +16505551234 destination bank_account save N/A oh our buyer is interested in buying something for 130.00$ N/A another_debit N/A N/A card debit 13000 appears_on_statement_as MARKETPLACE.COM N/A lets credit our merchant 110.00$ N/A credit N/A N/A bank_account credit 11000 description Buyer purchased something on MARKETPLACE.COM N/A lets assume the marketplace charges 15%, so it earned $20 N/A mp_credit N/A N/A N/A N/A N/A N/A marketplace owner_customer bank_accounts first credit 2000 description Our commission from MARKETPLACE.COM N/A ok lets invalid a card N/A N/A N/A card delete N/A N/A N/A N/A N/A buyer cards count 0 N/A invalidating a bank account N/A N/A N/A bank_account delete N/A associate a card with an exiting customer N/A card N/A N/A N/A N/A balanced Card number 5105105105105100 expiration_month 12 expiration_year 2015 save N/A N/A N/A card associate_to_customer buyer N/A N/A N/A N/A N/A buyer cards count 1 N/A and there you have it :)