balanced 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +4 -0
- data/lib/balanced/error.rb +4 -2
- data/lib/balanced/resources/resource.rb +5 -0
- data/lib/balanced/version.rb +1 -1
- data/scenarios/api_key_create/ruby.mako +1 -1
- data/scenarios/api_key_list/ruby.mako +2 -2
- data/scenarios/api_key_show/ruby.mako +1 -1
- data/scenarios/bank_account_associate_to_customer/ruby.mako +6 -6
- data/scenarios/bank_account_create/ruby.mako +6 -6
- data/scenarios/bank_account_credit/ruby.mako +6 -6
- data/scenarios/bank_account_debit/ruby.mako +7 -7
- data/scenarios/bank_account_list/ruby.mako +12 -12
- data/scenarios/bank_account_show/ruby.mako +6 -6
- data/scenarios/bank_account_update/ruby.mako +6 -6
- data/scenarios/bank_account_verification_create/ruby.mako +2 -2
- data/scenarios/bank_account_verification_show/ruby.mako +2 -2
- data/scenarios/bank_account_verification_update/ruby.mako +2 -2
- data/scenarios/callback_create/ruby.mako +1 -1
- data/scenarios/callback_list/ruby.mako +1 -1
- data/scenarios/callback_show/ruby.mako +1 -1
- data/scenarios/card_associate_to_customer/definition.rb +1 -1
- data/scenarios/card_associate_to_customer/ruby.mako +5 -5
- data/scenarios/card_create/ruby.mako +4 -4
- data/scenarios/card_debit/ruby.mako +7 -7
- data/scenarios/card_hold_capture/ruby.mako +7 -7
- data/scenarios/card_hold_create/ruby.mako +5 -5
- data/scenarios/card_hold_list/ruby.mako +10 -10
- data/scenarios/card_hold_show/ruby.mako +5 -5
- data/scenarios/card_hold_update/ruby.mako +5 -5
- data/scenarios/card_hold_void/ruby.mako +5 -5
- data/scenarios/card_list/ruby.mako +8 -8
- data/scenarios/card_show/ruby.mako +4 -4
- data/scenarios/card_update/ruby.mako +4 -4
- data/scenarios/credit_list/ruby.mako +6 -6
- data/scenarios/credit_show/ruby.mako +6 -6
- data/scenarios/credit_update/ruby.mako +6 -6
- data/scenarios/customer_create/ruby.mako +13 -13
- data/scenarios/customer_list/ruby.mako +26 -26
- data/scenarios/customer_show/ruby.mako +13 -13
- data/scenarios/customer_update/ruby.mako +13 -13
- data/scenarios/debit_list/ruby.mako +14 -14
- data/scenarios/debit_show/ruby.mako +7 -7
- data/scenarios/debit_update/ruby.mako +7 -7
- data/scenarios/event_list/ruby.mako +4 -4
- data/scenarios/event_show/ruby.mako +2 -2
- data/scenarios/order_create/ruby.mako +7 -7
- data/scenarios/order_list/ruby.mako +7 -7
- data/scenarios/order_show/ruby.mako +7 -7
- data/scenarios/order_update/ruby.mako +7 -7
- data/scenarios/refund_create/ruby.mako +5 -5
- data/scenarios/refund_list/ruby.mako +5 -5
- data/scenarios/refund_show/ruby.mako +5 -5
- data/scenarios/refund_update/ruby.mako +5 -5
- data/scenarios/reversal_create/ruby.mako +4 -4
- data/scenarios/reversal_list/ruby.mako +4 -4
- data/scenarios/reversal_show/ruby.mako +4 -4
- data/scenarios/reversal_update/ruby.mako +4 -4
- data/spec/balanced/error_spec.rb +18 -0
- metadata +3 -2
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
customers = Balanced::Customer.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Customer:
|
10
|
+
[#<Balanced::Customer:0x007fa4e49cb388
|
11
11
|
@attributes=
|
12
12
|
{"address"=>
|
13
13
|
{"city"=>nil,
|
@@ -33,30 +33,30 @@ customers = Balanced::Customer.all
|
|
33
33
|
"updated_at"=>"2014-03-06T19:23:16.724050Z"},
|
34
34
|
@hyperlinks=
|
35
35
|
{"bank_accounts"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e49c84d0/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"card_holds"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e49c2a58/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"cards"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e49c0410/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"credits"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e49ba8d0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa4e49b8378/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"destination"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa4e49b3e18/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"external_accounts"=>
|
48
|
-
#<Proc:
|
48
|
+
#<Proc:0x007fa4e49b0bc8/lib/balanced/utils.rb:6 (lambda)>,
|
49
49
|
"orders"=>
|
50
|
-
#<Proc:
|
50
|
+
#<Proc:0x007fa4e49aa728/lib/balanced/utils.rb:6 (lambda)>,
|
51
51
|
"refunds"=>
|
52
|
-
#<Proc:
|
52
|
+
#<Proc:0x007fa4e49a81d0/lib/balanced/utils.rb:6 (lambda)>,
|
53
53
|
"reversals"=>
|
54
|
-
#<Proc:
|
54
|
+
#<Proc:0x007fa4e49a0ea8/lib/balanced/utils.rb:6 (lambda)>,
|
55
55
|
"source"=>
|
56
|
-
#<Proc:
|
56
|
+
#<Proc:0x007fa4e4998438/lib/balanced/utils.rb:6 (lambda)>,
|
57
57
|
"transactions"=>
|
58
|
-
#<Proc:
|
59
|
-
#<Balanced::Customer:
|
58
|
+
#<Proc:0x007fa4e499a1e8/lib/balanced/utils.rb:6 (lambda)>}>,
|
59
|
+
#<Balanced::Customer:0x007fa4e499a0a8
|
60
60
|
@attributes=
|
61
61
|
{"address"=>
|
62
62
|
{"city"=>nil,
|
@@ -82,28 +82,28 @@ customers = Balanced::Customer.all
|
|
82
82
|
"updated_at"=>"2014-03-06T19:23:05.747337Z"},
|
83
83
|
@hyperlinks=
|
84
84
|
{"bank_accounts"=>
|
85
|
-
#<Proc:
|
85
|
+
#<Proc:0x007fa4e4992cb8/lib/balanced/utils.rb:6 (lambda)>,
|
86
86
|
"card_holds"=>
|
87
|
-
#<Proc:
|
87
|
+
#<Proc:0x007fa4e2938940/lib/balanced/utils.rb:6 (lambda)>,
|
88
88
|
"cards"=>
|
89
|
-
#<Proc:
|
89
|
+
#<Proc:0x007fa4e29385d0/lib/balanced/utils.rb:6 (lambda)>,
|
90
90
|
"credits"=>
|
91
|
-
#<Proc:
|
91
|
+
#<Proc:0x007fa4e29324c8/lib/balanced/utils.rb:6 (lambda)>,
|
92
92
|
"debits"=>
|
93
|
-
#<Proc:
|
93
|
+
#<Proc:0x007fa4e292bab0/lib/balanced/utils.rb:6 (lambda)>,
|
94
94
|
"destination"=>
|
95
|
-
#<Proc:
|
95
|
+
#<Proc:0x007fa4e292afe8/lib/balanced/utils.rb:6 (lambda)>,
|
96
96
|
"external_accounts"=>
|
97
|
-
#<Proc:
|
97
|
+
#<Proc:0x007fa4e2928c70/lib/balanced/utils.rb:6 (lambda)>,
|
98
98
|
"orders"=>
|
99
|
-
#<Proc:
|
99
|
+
#<Proc:0x007fa4e291ae18/lib/balanced/utils.rb:6 (lambda)>,
|
100
100
|
"refunds"=>
|
101
|
-
#<Proc:
|
101
|
+
#<Proc:0x007fa4e2918780/lib/balanced/utils.rb:6 (lambda)>,
|
102
102
|
"reversals"=>
|
103
|
-
#<Proc:
|
103
|
+
#<Proc:0x007fa4e41b1c38/lib/balanced/utils.rb:6 (lambda)>,
|
104
104
|
"source"=>
|
105
|
-
#<Proc:
|
105
|
+
#<Proc:0x007fa4e41b0ba8/lib/balanced/utils.rb:6 (lambda)>,
|
106
106
|
"transactions"=>
|
107
|
-
#<Proc:
|
107
|
+
#<Proc:0x007fa4e497f550/lib/balanced/utils.rb:6 (lambda)>}>]
|
108
108
|
|
109
109
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
customer = Balanced::Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Customer:
|
10
|
+
#<Balanced::Customer:0x007fa4e4114f28
|
11
11
|
@attributes=
|
12
12
|
{"address"=>
|
13
13
|
{"city"=>nil,
|
@@ -33,28 +33,28 @@ customer = Balanced::Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT')
|
|
33
33
|
"updated_at"=>"2014-03-06T19:23:16.724050Z"},
|
34
34
|
@hyperlinks=
|
35
35
|
{"bank_accounts"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e410eb78/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"card_holds"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e410c3c8/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"cards"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e4106680/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"credits"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e4104100/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa4e40fe2c8/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"destination"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa4e40fcb08/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"external_accounts"=>
|
48
|
-
#<Proc:
|
48
|
+
#<Proc:0x007fa4e40e6f38/lib/balanced/utils.rb:6 (lambda)>,
|
49
49
|
"orders"=>
|
50
|
-
#<Proc:
|
50
|
+
#<Proc:0x007fa4e40e3a68/lib/balanced/utils.rb:6 (lambda)>,
|
51
51
|
"refunds"=>
|
52
|
-
#<Proc:
|
52
|
+
#<Proc:0x007fa4e40dfdf0/lib/balanced/utils.rb:6 (lambda)>,
|
53
53
|
"reversals"=>
|
54
|
-
#<Proc:
|
54
|
+
#<Proc:0x007fa4e40dce98/lib/balanced/utils.rb:6 (lambda)>,
|
55
55
|
"source"=>
|
56
|
-
#<Proc:
|
56
|
+
#<Proc:0x007fa4e40d4d88/lib/balanced/utils.rb:6 (lambda)>,
|
57
57
|
"transactions"=>
|
58
|
-
#<Proc:
|
58
|
+
#<Proc:0x007fa4e40d6070/lib/balanced/utils.rb:6 (lambda)>}>
|
59
59
|
|
60
60
|
% endif
|
@@ -13,7 +13,7 @@ customer.meta = {
|
|
13
13
|
customer.save
|
14
14
|
|
15
15
|
% elif mode == 'response':
|
16
|
-
#<Balanced::Customer:
|
16
|
+
#<Balanced::Customer:0x007fa4e48eccc8
|
17
17
|
@attributes=
|
18
18
|
{"address"=>
|
19
19
|
{"city"=>nil,
|
@@ -39,28 +39,28 @@ customer.save
|
|
39
39
|
"updated_at"=>"2014-03-06T19:23:20.140160Z"},
|
40
40
|
@hyperlinks=
|
41
41
|
{"bank_accounts"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e48d4380/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"card_holds"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa4e48e66c0/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"cards"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa4e48d28a0/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"credits"=>
|
48
|
-
#<Proc:
|
48
|
+
#<Proc:0x007fa4e48d10b8/lib/balanced/utils.rb:6 (lambda)>,
|
49
49
|
"debits"=>
|
50
|
-
#<Proc:
|
50
|
+
#<Proc:0x007fa4e48df500/lib/balanced/utils.rb:6 (lambda)>,
|
51
51
|
"destination"=>
|
52
|
-
#<Proc:
|
52
|
+
#<Proc:0x007fa4e48de6a0/lib/balanced/utils.rb:6 (lambda)>,
|
53
53
|
"external_accounts"=>
|
54
|
-
#<Proc:
|
54
|
+
#<Proc:0x007fa4e48cfc68/lib/balanced/utils.rb:6 (lambda)>,
|
55
55
|
"orders"=>
|
56
|
-
#<Proc:
|
56
|
+
#<Proc:0x007fa4e48cd3f0/lib/balanced/utils.rb:6 (lambda)>,
|
57
57
|
"refunds"=>
|
58
|
-
#<Proc:
|
58
|
+
#<Proc:0x007fa4e48cafd8/lib/balanced/utils.rb:6 (lambda)>,
|
59
59
|
"reversals"=>
|
60
|
-
#<Proc:
|
60
|
+
#<Proc:0x007fa4e48c01f0/lib/balanced/utils.rb:6 (lambda)>,
|
61
61
|
"source"=>
|
62
|
-
#<Proc:
|
62
|
+
#<Proc:0x007fa4e48c2bd0/lib/balanced/utils.rb:6 (lambda)>,
|
63
63
|
"transactions"=>
|
64
|
-
#<Proc:
|
64
|
+
#<Proc:0x007fa4e3213df8/lib/balanced/utils.rb:6 (lambda)>}>
|
65
65
|
|
66
66
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
debits = Balanced::Debit.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Debit:
|
10
|
+
[#<Balanced::Debit:0x007fa4e315f920
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"appears_on_statement_as"=>"BAL*Statement text",
|
@@ -29,18 +29,18 @@ debits = Balanced::Debit.all
|
|
29
29
|
"updated_at"=>"2014-03-06T19:23:02.987552Z"},
|
30
30
|
@hyperlinks=
|
31
31
|
{"customer"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e315a498/lib/balanced/utils.rb:6 (lambda)>,
|
33
33
|
"dispute"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e3151b90/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"events"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e3132c68/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"order"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e3129ed8/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"refunds"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e311b928/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"source"=>
|
42
|
-
#<Proc:
|
43
|
-
#<Balanced::Debit:
|
42
|
+
#<Proc:0x007fa4e3109200/lib/balanced/resources/resource.rb:60 (lambda)>}>,
|
43
|
+
#<Balanced::Debit:0x007fa4e3108f08
|
44
44
|
@attributes=
|
45
45
|
{"amount"=>5000,
|
46
46
|
"appears_on_statement_as"=>"BAL*ShowsUpOnStmt",
|
@@ -62,16 +62,16 @@ debits = Balanced::Debit.all
|
|
62
62
|
"updated_at"=>"2014-03-06T19:22:50.608819Z"},
|
63
63
|
@hyperlinks=
|
64
64
|
{"customer"=>
|
65
|
-
#<Proc:
|
65
|
+
#<Proc:0x007fa4e30fb510/lib/balanced/resources/resource.rb:60 (lambda)>,
|
66
66
|
"dispute"=>
|
67
|
-
#<Proc:
|
67
|
+
#<Proc:0x007fa4e30e8708/lib/balanced/utils.rb:6 (lambda)>,
|
68
68
|
"events"=>
|
69
|
-
#<Proc:
|
69
|
+
#<Proc:0x007fa4e30dbaf8/lib/balanced/utils.rb:6 (lambda)>,
|
70
70
|
"order"=>
|
71
|
-
#<Proc:
|
71
|
+
#<Proc:0x007fa4e30d9988/lib/balanced/utils.rb:6 (lambda)>,
|
72
72
|
"refunds"=>
|
73
|
-
#<Proc:
|
73
|
+
#<Proc:0x007fa4e30ca5a0/lib/balanced/utils.rb:6 (lambda)>,
|
74
74
|
"source"=>
|
75
|
-
#<Proc:
|
75
|
+
#<Proc:0x007fa4e30ba9e8/lib/balanced/resources/resource.rb:60 (lambda)>}>]
|
76
76
|
|
77
77
|
% endif
|
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
8
8
|
debit = Balanced::Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::Debit:
|
11
|
+
#<Balanced::Debit:0x007fa4e4a580d0
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
14
|
"appears_on_statement_as"=>"BAL*Statement text",
|
@@ -30,16 +30,16 @@ debit = Balanced::Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr')
|
|
30
30
|
"updated_at"=>"2014-03-06T19:23:02.987552Z"},
|
31
31
|
@hyperlinks=
|
32
32
|
{"customer"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007fa4e4a5b780/lib/balanced/utils.rb:6 (lambda)>,
|
34
34
|
"dispute"=>
|
35
|
-
#<Proc:
|
35
|
+
#<Proc:0x007fa4e4a5ab28/lib/balanced/utils.rb:6 (lambda)>,
|
36
36
|
"events"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa4e4a58288/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"order"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e4a53c38/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"refunds"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa4e4a51460/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"source"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa4e4a4a660/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
44
44
|
|
45
45
|
% endif
|
@@ -14,7 +14,7 @@ debit.meta = {
|
|
14
14
|
debit.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::Debit:
|
17
|
+
#<Balanced::Debit:0x007fa4e41c0418
|
18
18
|
@attributes=
|
19
19
|
{"amount"=>5000,
|
20
20
|
"appears_on_statement_as"=>"BAL*Statement text",
|
@@ -36,16 +36,16 @@ debit.save
|
|
36
36
|
"updated_at"=>"2014-03-06T19:23:33.383170Z"},
|
37
37
|
@hyperlinks=
|
38
38
|
{"customer"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e4a33b90/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"dispute"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa4e4a32ec0/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"events"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa4e4a308a0/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"order"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007fa4e4a2ab80/lib/balanced/utils.rb:6 (lambda)>,
|
46
46
|
"refunds"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007fa4e4a29c08/lib/balanced/utils.rb:6 (lambda)>,
|
48
48
|
"source"=>
|
49
|
-
#<Proc:
|
49
|
+
#<Proc:0x007fa4e4a22980/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
50
50
|
|
51
51
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
events = Balanced::Event.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Event:
|
10
|
+
[#<Balanced::Event:0x007fa4e49eb1d8
|
11
11
|
@attributes=
|
12
12
|
{"callback_statuses"=>
|
13
13
|
{"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
|
@@ -56,8 +56,8 @@ events = Balanced::Event.all
|
|
56
56
|
"type"=>"account.created"},
|
57
57
|
@hyperlinks=
|
58
58
|
{"callbacks"=>
|
59
|
-
#<Proc:
|
60
|
-
#<Balanced::Event:
|
59
|
+
#<Proc:0x007fa4e49e9108/lib/balanced/utils.rb:6 (lambda)>}>,
|
60
|
+
#<Balanced::Event:0x007fa4e49e9068
|
61
61
|
@attributes=
|
62
62
|
{"callback_statuses"=>
|
63
63
|
{"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
|
@@ -101,6 +101,6 @@ events = Balanced::Event.all
|
|
101
101
|
"type"=>"bank_account.created"},
|
102
102
|
@hyperlinks=
|
103
103
|
{"callbacks"=>
|
104
|
-
#<Proc:
|
104
|
+
#<Proc:0x007fa4e49e3938/lib/balanced/utils.rb:6 (lambda)>}>]
|
105
105
|
|
106
106
|
% endif
|
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
8
8
|
event = Balanced::Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::Event:
|
11
|
+
#<Balanced::Event:0x007fa4e2919ba8
|
12
12
|
@attributes=
|
13
13
|
{"callback_statuses"=>
|
14
14
|
{"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
|
@@ -57,6 +57,6 @@ event = Balanced::Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9')
|
|
57
57
|
"type"=>"account.created"},
|
58
58
|
@hyperlinks=
|
59
59
|
{"callbacks"=>
|
60
|
-
#<Proc:
|
60
|
+
#<Proc:0x007fa4e291a1c0/lib/balanced/utils.rb:6 (lambda)>}>
|
61
61
|
|
62
62
|
% endif
|
@@ -10,7 +10,7 @@ merchant_customer.create_order(
|
|
10
10
|
:description => 'Order #12341234'
|
11
11
|
)
|
12
12
|
% elif mode == 'response':
|
13
|
-
#<Balanced::Order:
|
13
|
+
#<Balanced::Order:0x007fa4e494d398
|
14
14
|
@attributes=
|
15
15
|
{"amount"=>0,
|
16
16
|
"amount_escrowed"=>0,
|
@@ -31,16 +31,16 @@ merchant_customer.create_order(
|
|
31
31
|
"updated_at"=>"2014-03-06T19:23:39.207294Z"},
|
32
32
|
@hyperlinks=
|
33
33
|
{"buyers"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e49466b0/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"credits"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e493ef78/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"debits"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e493ce58/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"merchant"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e4934af0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
41
41
|
"refunds"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e4127d30/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"reversals"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa4e411fe50/lib/balanced/utils.rb:6 (lambda)>}>
|
45
45
|
|
46
46
|
% endif
|
@@ -6,7 +6,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
6
6
|
|
7
7
|
orders = Balanced::Order.all
|
8
8
|
% elif mode == 'response':
|
9
|
-
[#<Balanced::Order:
|
9
|
+
[#<Balanced::Order:0x007fa4e40fd5a8
|
10
10
|
@attributes=
|
11
11
|
{"amount"=>0,
|
12
12
|
"amount_escrowed"=>0,
|
@@ -27,16 +27,16 @@ orders = Balanced::Order.all
|
|
27
27
|
"updated_at"=>"2014-03-06T19:23:39.207294Z"},
|
28
28
|
@hyperlinks=
|
29
29
|
{"buyers"=>
|
30
|
-
#<Proc:
|
30
|
+
#<Proc:0x007fa4e40f41b0/lib/balanced/utils.rb:6 (lambda)>,
|
31
31
|
"credits"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e40e1628/lib/balanced/utils.rb:6 (lambda)>,
|
33
33
|
"debits"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e40dcec0/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"merchant"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e40de9c8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
37
37
|
"refunds"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e40d75b0/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"reversals"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e40d5260/lib/balanced/utils.rb:6 (lambda)>}>]
|
41
41
|
|
42
42
|
% endif
|
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
8
8
|
order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::Order:
|
11
|
+
#<Balanced::Order:0x007fa4e48f7e48
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>0,
|
14
14
|
"amount_escrowed"=>0,
|
@@ -29,16 +29,16 @@ order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
|
|
29
29
|
"updated_at"=>"2014-03-06T19:23:39.207294Z"},
|
30
30
|
@hyperlinks=
|
31
31
|
{"buyers"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e48f4e78/lib/balanced/utils.rb:6 (lambda)>,
|
33
33
|
"credits"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e48eda60/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"debits"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e48d76e8/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"merchant"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e48e6e68/lib/balanced/resources/resource.rb:60 (lambda)>,
|
39
39
|
"refunds"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e48e58b0/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"reversals"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e48d3390/lib/balanced/utils.rb:6 (lambda)>}>
|
43
43
|
|
44
44
|
% endif
|