examples/examples.rb in balanced-0.3.10 vs examples/examples.rb in balanced-0.3.11

- old
+ new

@@ -63,25 +63,19 @@ puts "our buyer account: #{buyer.uri}" puts "hold some amount of funds on the buyer, lets say 15$" the_hold = buyer.hold(:amount => 1500) -puts "the hold has a fee of 30c, here's the fee #{the_hold.fee}" -raise "The hold's fee is incorrect" if the_hold.fee != 30 - puts "ok, no more holds! lets just capture it (for the full amount)" debit = the_hold.capture puts "hmm, how much money do i have in escrow? should equal the debit amount" marketplace = marketplace.reload raise "1500 is not in escrow! this is wrong" if marketplace.in_escrow != 1500 puts "i have #{marketplace.in_escrow} in escrow!" puts "cool. now let me refund the full amount" refund = debit.refund() # the full amount! - -puts "notice how Balanced refunds you your fees? refund fees: #{refund.fee}" -raise "Woah, fees are incorrect" if (refund.fee + debit.fee) != 0 puts "ok, we have a merchant that's signing up, let's create an account for them " \ "first, lets create their bank account." bank_account = Balanced::BankAccount.new(