balanced 1.0.beta1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/LICENSE +2 -2
- data/balanced.gemspec +1 -1
- data/lib/balanced/resources.rb +1 -0
- data/lib/balanced/resources/customer.rb +0 -14
- data/lib/balanced/resources/dispute.rb +12 -0
- data/lib/balanced/version.rb +1 -1
- data/scenario.cache +142 -141
- data/scenarios/api_key_create/ruby.mako +6 -6
- data/scenarios/api_key_delete/ruby.mako +2 -2
- data/scenarios/api_key_list/ruby.mako +10 -10
- data/scenarios/api_key_show/ruby.mako +6 -6
- data/scenarios/bank_account_associate_to_customer/ruby.mako +13 -13
- data/scenarios/bank_account_create/ruby.mako +13 -13
- data/scenarios/bank_account_credit/ruby.mako +15 -15
- data/scenarios/bank_account_debit/ruby.mako +15 -15
- data/scenarios/bank_account_delete/ruby.mako +2 -2
- data/scenarios/bank_account_list/ruby.mako +22 -22
- data/scenarios/bank_account_show/ruby.mako +12 -12
- data/scenarios/bank_account_update/ruby.mako +12 -12
- data/scenarios/bank_account_verification_create/ruby.mako +9 -9
- data/scenarios/bank_account_verification_show/ruby.mako +9 -9
- data/scenarios/bank_account_verification_update/ruby.mako +9 -9
- data/scenarios/callback_create/ruby.mako +5 -4
- data/scenarios/callback_delete/ruby.mako +2 -2
- data/scenarios/callback_list/ruby.mako +4 -4
- data/scenarios/callback_show/ruby.mako +5 -5
- data/scenarios/card_associate_to_customer/ruby.mako +15 -15
- data/scenarios/card_create/ruby.mako +14 -14
- data/scenarios/card_debit/ruby.mako +16 -16
- data/scenarios/card_delete/ruby.mako +2 -2
- data/scenarios/card_hold_capture/ruby.mako +16 -16
- data/scenarios/card_hold_create/ruby.mako +16 -14
- data/scenarios/card_hold_list/ruby.mako +29 -25
- data/scenarios/card_hold_show/ruby.mako +16 -14
- data/scenarios/card_hold_update/ruby.mako +16 -14
- data/scenarios/card_hold_void/ruby.mako +16 -14
- data/scenarios/card_list/ruby.mako +24 -24
- data/scenarios/card_show/ruby.mako +13 -13
- data/scenarios/card_update/ruby.mako +13 -13
- data/scenarios/credit_list/ruby.mako +14 -14
- data/scenarios/credit_list_bank_account/ruby.mako +2 -2
- data/scenarios/credit_show/ruby.mako +15 -15
- data/scenarios/credit_update/ruby.mako +15 -15
- data/scenarios/customer_create/ruby.mako +19 -17
- data/scenarios/customer_delete/ruby.mako +1 -1
- data/scenarios/customer_list/ruby.mako +37 -33
- data/scenarios/customer_show/ruby.mako +20 -18
- data/scenarios/customer_update/ruby.mako +20 -18
- data/scenarios/debit_list/ruby.mako +28 -28
- data/scenarios/debit_show/ruby.mako +15 -15
- data/scenarios/debit_update/ruby.mako +15 -15
- data/scenarios/event_list/ruby.mako +67 -20
- data/scenarios/event_show/ruby.mako +23 -21
- data/scenarios/order_create/ruby.mako +14 -14
- data/scenarios/order_list/ruby.mako +13 -13
- data/scenarios/order_show/ruby.mako +14 -14
- data/scenarios/order_update/ruby.mako +14 -14
- data/scenarios/refund_create/ruby.mako +13 -13
- data/scenarios/refund_list/ruby.mako +12 -12
- data/scenarios/refund_show/ruby.mako +13 -13
- data/scenarios/refund_update/ruby.mako +13 -13
- data/scenarios/render_mako.rb +0 -1
- data/scenarios/reversal_create/ruby.mako +12 -12
- data/scenarios/reversal_list/ruby.mako +11 -11
- data/scenarios/reversal_show/ruby.mako +12 -12
- data/scenarios/reversal_update/ruby.mako +12 -12
- data/spec/balanced/resources/bank_account_spec.rb +0 -3
- data/spec/balanced/resources/debit_spec.rb +0 -13
- data/spec/balanced/resources/dispute_spec.rb +65 -0
- metadata +20 -18
- data/.rbenv-version +0 -1
@@ -3,9 +3,9 @@ Balanced::Card.save
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
card = Balanced::Card.fetch('/cards/
|
8
|
+
card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
|
9
9
|
card.meta = {
|
10
10
|
'facebook.user_id' => '0192837465',
|
11
11
|
'my-own-customer-id' => '12345',
|
@@ -14,7 +14,7 @@ card.meta = {
|
|
14
14
|
card.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::Card:
|
17
|
+
#<Balanced::Card:0x007ff2bda0dd88
|
18
18
|
@attributes=
|
19
19
|
{"address"=>
|
20
20
|
{"city"=>nil,
|
@@ -27,16 +27,16 @@ card.save
|
|
27
27
|
"avs_result"=>nil,
|
28
28
|
"avs_street_match"=>nil,
|
29
29
|
"brand"=>"MasterCard",
|
30
|
-
"created_at"=>"2014-
|
31
|
-
"cvv"=>
|
32
|
-
"cvv_match"=>
|
33
|
-
"cvv_result"=>
|
30
|
+
"created_at"=>"2014-03-06T19:22:55.617351Z",
|
31
|
+
"cvv"=>"xxx",
|
32
|
+
"cvv_match"=>"yes",
|
33
|
+
"cvv_result"=>"Match",
|
34
34
|
"expiration_month"=>12,
|
35
35
|
"expiration_year"=>2020,
|
36
36
|
"fingerprint"=>
|
37
37
|
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
|
38
|
-
"href"=>"/cards/
|
39
|
-
"id"=>"
|
38
|
+
"href"=>"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
39
|
+
"id"=>"CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
40
40
|
"is_verified"=>true,
|
41
41
|
"links"=>{"customer"=>nil},
|
42
42
|
"meta"=>
|
@@ -45,13 +45,13 @@ card.save
|
|
45
45
|
"twitter.id"=>"1234987650"},
|
46
46
|
"name"=>nil,
|
47
47
|
"number"=>"xxxxxxxxxxxx5100",
|
48
|
-
"updated_at"=>"2014-
|
48
|
+
"updated_at"=>"2014-03-06T19:22:59.186980Z"},
|
49
49
|
@hyperlinks=
|
50
50
|
{"card_holds"=>
|
51
|
-
#<Proc:
|
51
|
+
#<Proc:0x007ff2bda075a0/lib/balanced/utils.rb:6 (lambda)>,
|
52
52
|
"customer"=>
|
53
|
-
#<Proc:
|
53
|
+
#<Proc:0x007ff2bda06628/lib/balanced/utils.rb:6 (lambda)>,
|
54
54
|
"debits"=>
|
55
|
-
#<Proc:
|
55
|
+
#<Proc:0x007ff2bc142498/lib/balanced/utils.rb:6 (lambda)>}>
|
56
56
|
|
57
57
|
% endif
|
@@ -3,39 +3,39 @@ Balanced::Credit.all
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
8
|
credits = Balanced::Credit.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Credit:
|
10
|
+
[#<Balanced::Credit:0x007ff2bd9cf178
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"appears_on_statement_as"=>"example.com",
|
14
|
-
"created_at"=>"2014-
|
14
|
+
"created_at"=>"2014-03-06T19:23:08.771807Z",
|
15
15
|
"currency"=>"USD",
|
16
16
|
"description"=>nil,
|
17
17
|
"failure_reason"=>nil,
|
18
18
|
"failure_reason_code"=>nil,
|
19
|
-
"href"=>"/credits/
|
20
|
-
"id"=>"
|
19
|
+
"href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
|
20
|
+
"id"=>"CR5XXPwA1ckaTDSIg3593sEx",
|
21
21
|
"links"=>
|
22
|
-
{"customer"=>"
|
23
|
-
"destination"=>"
|
22
|
+
{"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
|
23
|
+
"destination"=>"BA5OqdmH8URGBYpilMITWsNW",
|
24
24
|
"order"=>nil},
|
25
25
|
"meta"=>{},
|
26
26
|
"status"=>"succeeded",
|
27
|
-
"transaction_number"=>"
|
28
|
-
"updated_at"=>"2014-
|
27
|
+
"transaction_number"=>"CR570-678-5174",
|
28
|
+
"updated_at"=>"2014-03-06T19:23:09.525306Z"},
|
29
29
|
@hyperlinks=
|
30
30
|
{"customer"=>
|
31
|
-
#<Proc:
|
31
|
+
#<Proc:0x007ff2bd9cc608/lib/balanced/resources/resource.rb:60 (lambda)>,
|
32
32
|
"destination"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007ff2bd9c6be0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
34
34
|
"events"=>
|
35
|
-
#<Proc:
|
35
|
+
#<Proc:0x007ff2bd9c4390/lib/balanced/utils.rb:6 (lambda)>,
|
36
36
|
"order"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007ff2bd9bfe08/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"reversals"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007ff2bd9bd2e8/lib/balanced/utils.rb:6 (lambda)>}>]
|
40
40
|
|
41
41
|
% endif
|
@@ -3,9 +3,9 @@ Balanced::BankAccount.credits
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
8
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
|
9
9
|
credits = bank_account.credits
|
10
10
|
% elif mode == 'response':
|
11
11
|
{}
|
@@ -3,39 +3,39 @@ Balanced::Credit.fetch
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
credit = Balanced::Credit.fetch('/credits/
|
8
|
+
credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Credit:
|
10
|
+
#<Balanced::Credit:0x007ff2bd99fb08
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"appears_on_statement_as"=>"example.com",
|
14
|
-
"created_at"=>"2014-
|
14
|
+
"created_at"=>"2014-03-06T19:23:08.771807Z",
|
15
15
|
"currency"=>"USD",
|
16
16
|
"description"=>nil,
|
17
17
|
"failure_reason"=>nil,
|
18
18
|
"failure_reason_code"=>nil,
|
19
|
-
"href"=>"/credits/
|
20
|
-
"id"=>"
|
19
|
+
"href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
|
20
|
+
"id"=>"CR5XXPwA1ckaTDSIg3593sEx",
|
21
21
|
"links"=>
|
22
|
-
{"customer"=>"
|
23
|
-
"destination"=>"
|
22
|
+
{"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
|
23
|
+
"destination"=>"BA5OqdmH8URGBYpilMITWsNW",
|
24
24
|
"order"=>nil},
|
25
25
|
"meta"=>{},
|
26
26
|
"status"=>"succeeded",
|
27
|
-
"transaction_number"=>"
|
28
|
-
"updated_at"=>"2014-
|
27
|
+
"transaction_number"=>"CR570-678-5174",
|
28
|
+
"updated_at"=>"2014-03-06T19:23:09.525306Z"},
|
29
29
|
@hyperlinks=
|
30
30
|
{"customer"=>
|
31
|
-
#<Proc:
|
31
|
+
#<Proc:0x007ff2bd99d150/lib/balanced/resources/resource.rb:60 (lambda)>,
|
32
32
|
"destination"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007ff2bd98b630/lib/balanced/resources/resource.rb:60 (lambda)>,
|
34
34
|
"events"=>
|
35
|
-
#<Proc:
|
35
|
+
#<Proc:0x007ff2bd988ae8/lib/balanced/utils.rb:6 (lambda)>,
|
36
36
|
"order"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007ff2bd995158/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"reversals"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007ff2bd994780/lib/balanced/utils.rb:6 (lambda)>}>
|
40
40
|
|
41
41
|
% endif
|
@@ -3,9 +3,9 @@ Balanced::Credit.save
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
credit = Balanced::Credit.fetch('/credits/
|
8
|
+
credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
|
9
9
|
credit.description = 'New description for credit'
|
10
10
|
credit.meta = {
|
11
11
|
'anykey' => 'valuegoeshere',
|
@@ -14,35 +14,35 @@ credit.meta = {
|
|
14
14
|
credit.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::Credit:
|
17
|
+
#<Balanced::Credit:0x007ff2bd960980
|
18
18
|
@attributes=
|
19
19
|
{"amount"=>5000,
|
20
20
|
"appears_on_statement_as"=>"example.com",
|
21
|
-
"created_at"=>"2014-
|
21
|
+
"created_at"=>"2014-03-06T19:23:08.771807Z",
|
22
22
|
"currency"=>"USD",
|
23
23
|
"description"=>"New description for credit",
|
24
24
|
"failure_reason"=>nil,
|
25
25
|
"failure_reason_code"=>nil,
|
26
|
-
"href"=>"/credits/
|
27
|
-
"id"=>"
|
26
|
+
"href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
|
27
|
+
"id"=>"CR5XXPwA1ckaTDSIg3593sEx",
|
28
28
|
"links"=>
|
29
|
-
{"customer"=>"
|
30
|
-
"destination"=>"
|
29
|
+
{"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
|
30
|
+
"destination"=>"BA5OqdmH8URGBYpilMITWsNW",
|
31
31
|
"order"=>nil},
|
32
32
|
"meta"=>{"anykey"=>"valuegoeshere", "facebook.id"=>"1234567890"},
|
33
33
|
"status"=>"succeeded",
|
34
|
-
"transaction_number"=>"
|
35
|
-
"updated_at"=>"2014-
|
34
|
+
"transaction_number"=>"CR570-678-5174",
|
35
|
+
"updated_at"=>"2014-03-06T19:23:14.259690Z"},
|
36
36
|
@hyperlinks=
|
37
37
|
{"customer"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2bd95aad0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
39
39
|
"destination"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2bd958640/lib/balanced/resources/resource.rb:60 (lambda)>,
|
41
41
|
"events"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bd952560/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"order"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007ff2bd951980/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"reversals"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007ff2bd94be18/lib/balanced/utils.rb:6 (lambda)>}>
|
47
47
|
|
48
48
|
% endif
|
@@ -3,7 +3,7 @@ Balanced::Customer.new
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
8
|
customer = Balanced::Customer.new(
|
9
9
|
:address => {
|
@@ -16,7 +16,7 @@ customer = Balanced::Customer.new(
|
|
16
16
|
customer.save
|
17
17
|
|
18
18
|
% elif mode == 'response':
|
19
|
-
#<Balanced::Customer:
|
19
|
+
#<Balanced::Customer:0x007ff2bc8a40b0
|
20
20
|
@attributes=
|
21
21
|
{"address"=>
|
22
22
|
{"city"=>nil,
|
@@ -26,42 +26,44 @@ customer.save
|
|
26
26
|
"postal_code"=>"48120",
|
27
27
|
"state"=>nil},
|
28
28
|
"business_name"=>nil,
|
29
|
-
"created_at"=>"2014-
|
29
|
+
"created_at"=>"2014-03-06T19:23:21.728225Z",
|
30
30
|
"dob_month"=>7,
|
31
31
|
"dob_year"=>1963,
|
32
32
|
"ein"=>nil,
|
33
33
|
"email"=>nil,
|
34
|
-
"href"=>"/customers/
|
35
|
-
"id"=>"
|
34
|
+
"href"=>"/customers/CU64R7DS6DwuXYVg9RTskFK8",
|
35
|
+
"id"=>"CU64R7DS6DwuXYVg9RTskFK8",
|
36
36
|
"links"=>{"destination"=>nil, "source"=>nil},
|
37
37
|
"merchant_status"=>"underwritten",
|
38
38
|
"meta"=>{},
|
39
39
|
"name"=>"Henry Ford",
|
40
40
|
"phone"=>nil,
|
41
41
|
"ssn_last4"=>nil,
|
42
|
-
"updated_at"=>"2014-
|
42
|
+
"updated_at"=>"2014-03-06T19:23:22.907102Z"},
|
43
43
|
@hyperlinks=
|
44
44
|
{"bank_accounts"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007ff2bd929750/lib/balanced/utils.rb:6 (lambda)>,
|
46
46
|
"card_holds"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007ff2bd91f4f8/lib/balanced/utils.rb:6 (lambda)>,
|
48
48
|
"cards"=>
|
49
|
-
#<Proc:
|
49
|
+
#<Proc:0x007ff2bd91cf28/lib/balanced/utils.rb:6 (lambda)>,
|
50
50
|
"credits"=>
|
51
|
-
#<Proc:
|
51
|
+
#<Proc:0x007ff2bd91a598/lib/balanced/utils.rb:6 (lambda)>,
|
52
52
|
"debits"=>
|
53
|
-
#<Proc:
|
53
|
+
#<Proc:0x007ff2bd910660/lib/balanced/utils.rb:6 (lambda)>,
|
54
54
|
"destination"=>
|
55
|
-
#<Proc:
|
55
|
+
#<Proc:0x007ff2bd903ed8/lib/balanced/utils.rb:6 (lambda)>,
|
56
|
+
"external_accounts"=>
|
57
|
+
#<Proc:0x007ff2bd8f3010/lib/balanced/utils.rb:6 (lambda)>,
|
56
58
|
"orders"=>
|
57
|
-
#<Proc:
|
59
|
+
#<Proc:0x007ff2bc10da18/lib/balanced/utils.rb:6 (lambda)>,
|
58
60
|
"refunds"=>
|
59
|
-
#<Proc:
|
61
|
+
#<Proc:0x007ff2bd8e11f8/lib/balanced/utils.rb:6 (lambda)>,
|
60
62
|
"reversals"=>
|
61
|
-
#<Proc:
|
63
|
+
#<Proc:0x007ff2bd8c84a0/lib/balanced/utils.rb:6 (lambda)>,
|
62
64
|
"source"=>
|
63
|
-
#<Proc:
|
65
|
+
#<Proc:0x007ff2bd8c37c0/lib/balanced/utils.rb:6 (lambda)>,
|
64
66
|
"transactions"=>
|
65
|
-
#<Proc:
|
67
|
+
#<Proc:0x007ff2bd8bb570/lib/balanced/utils.rb:6 (lambda)>}>
|
66
68
|
|
67
69
|
% endif
|
@@ -3,11 +3,11 @@ Balanced::Customer.all
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
8
|
customers = Balanced::Customer.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Customer:
|
10
|
+
[#<Balanced::Customer:0x007ff2be108840
|
11
11
|
@attributes=
|
12
12
|
{"address"=>
|
13
13
|
{"city"=>nil,
|
@@ -17,44 +17,46 @@ customers = Balanced::Customer.all
|
|
17
17
|
"postal_code"=>"48120",
|
18
18
|
"state"=>nil},
|
19
19
|
"business_name"=>nil,
|
20
|
-
"created_at"=>"2014-
|
20
|
+
"created_at"=>"2014-03-06T19:23:15.982885Z",
|
21
21
|
"dob_month"=>7,
|
22
22
|
"dob_year"=>1963,
|
23
23
|
"ein"=>nil,
|
24
24
|
"email"=>nil,
|
25
|
-
"href"=>"/customers/
|
26
|
-
"id"=>"
|
25
|
+
"href"=>"/customers/CU5YopHN07Ul5XQnILUifeQT",
|
26
|
+
"id"=>"CU5YopHN07Ul5XQnILUifeQT",
|
27
27
|
"links"=>{"destination"=>nil, "source"=>nil},
|
28
28
|
"merchant_status"=>"underwritten",
|
29
29
|
"meta"=>{},
|
30
30
|
"name"=>"Henry Ford",
|
31
31
|
"phone"=>nil,
|
32
32
|
"ssn_last4"=>nil,
|
33
|
-
"updated_at"=>"2014-
|
33
|
+
"updated_at"=>"2014-03-06T19:23:16.724050Z"},
|
34
34
|
@hyperlinks=
|
35
35
|
{"bank_accounts"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2be0fa740/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"card_holds"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2be0e98f0/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"cards"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2bd881348/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"credits"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bd864ba8/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007ff2bd861fe8/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"destination"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007ff2bd8603a0/lib/balanced/utils.rb:6 (lambda)>,
|
47
|
+
"external_accounts"=>
|
48
|
+
#<Proc:0x007ff2bd850ba8/lib/balanced/utils.rb:6 (lambda)>,
|
47
49
|
"orders"=>
|
48
|
-
#<Proc:
|
50
|
+
#<Proc:0x007ff2bd8472d8/lib/balanced/utils.rb:6 (lambda)>,
|
49
51
|
"refunds"=>
|
50
|
-
#<Proc:
|
52
|
+
#<Proc:0x007ff2bc8a1d10/lib/balanced/utils.rb:6 (lambda)>,
|
51
53
|
"reversals"=>
|
52
|
-
#<Proc:
|
54
|
+
#<Proc:0x007ff2bc89a9c0/lib/balanced/utils.rb:6 (lambda)>,
|
53
55
|
"source"=>
|
54
|
-
#<Proc:
|
56
|
+
#<Proc:0x007ff2bc899070/lib/balanced/utils.rb:6 (lambda)>,
|
55
57
|
"transactions"=>
|
56
|
-
#<Proc:
|
57
|
-
#<Balanced::Customer:
|
58
|
+
#<Proc:0x007ff2bc890b00/lib/balanced/utils.rb:6 (lambda)>}>,
|
59
|
+
#<Balanced::Customer:0x007ff2bc890a38
|
58
60
|
@attributes=
|
59
61
|
{"address"=>
|
60
62
|
{"city"=>nil,
|
@@ -64,42 +66,44 @@ customers = Balanced::Customer.all
|
|
64
66
|
"postal_code"=>"48120",
|
65
67
|
"state"=>nil},
|
66
68
|
"business_name"=>nil,
|
67
|
-
"created_at"=>"2014-
|
69
|
+
"created_at"=>"2014-03-06T19:23:04.895882Z",
|
68
70
|
"dob_month"=>7,
|
69
71
|
"dob_year"=>1963,
|
70
72
|
"ein"=>nil,
|
71
73
|
"email"=>nil,
|
72
|
-
"href"=>"/customers/
|
73
|
-
"id"=>"
|
74
|
+
"href"=>"/customers/CU5LVuaZG7gURfbA7TuMNoZa",
|
75
|
+
"id"=>"CU5LVuaZG7gURfbA7TuMNoZa",
|
74
76
|
"links"=>{"destination"=>nil, "source"=>nil},
|
75
77
|
"merchant_status"=>"underwritten",
|
76
78
|
"meta"=>{},
|
77
79
|
"name"=>"Henry Ford",
|
78
80
|
"phone"=>nil,
|
79
81
|
"ssn_last4"=>nil,
|
80
|
-
"updated_at"=>"2014-
|
82
|
+
"updated_at"=>"2014-03-06T19:23:05.747337Z"},
|
81
83
|
@hyperlinks=
|
82
84
|
{"bank_accounts"=>
|
83
|
-
#<Proc:
|
85
|
+
#<Proc:0x007ff2bc888ce8/lib/balanced/utils.rb:6 (lambda)>,
|
84
86
|
"card_holds"=>
|
85
|
-
#<Proc:
|
87
|
+
#<Proc:0x007ff2bc881420/lib/balanced/utils.rb:6 (lambda)>,
|
86
88
|
"cards"=>
|
87
|
-
#<Proc:
|
89
|
+
#<Proc:0x007ff2be0bb0b8/lib/balanced/utils.rb:6 (lambda)>,
|
88
90
|
"credits"=>
|
89
|
-
#<Proc:
|
91
|
+
#<Proc:0x007ff2bc848170/lib/balanced/utils.rb:6 (lambda)>,
|
90
92
|
"debits"=>
|
91
|
-
#<Proc:
|
93
|
+
#<Proc:0x007ff2be03f878/lib/balanced/utils.rb:6 (lambda)>,
|
92
94
|
"destination"=>
|
93
|
-
#<Proc:
|
95
|
+
#<Proc:0x007ff2bd833080/lib/balanced/utils.rb:6 (lambda)>,
|
96
|
+
"external_accounts"=>
|
97
|
+
#<Proc:0x007ff2bc0e5ea0/lib/balanced/utils.rb:6 (lambda)>,
|
94
98
|
"orders"=>
|
95
|
-
#<Proc:
|
99
|
+
#<Proc:0x007ff2bc0db748/lib/balanced/utils.rb:6 (lambda)>,
|
96
100
|
"refunds"=>
|
97
|
-
#<Proc:
|
101
|
+
#<Proc:0x007ff2bc0082a8/lib/balanced/utils.rb:6 (lambda)>,
|
98
102
|
"reversals"=>
|
99
|
-
#<Proc:
|
103
|
+
#<Proc:0x007ff2bdb7b9b8/lib/balanced/utils.rb:6 (lambda)>,
|
100
104
|
"source"=>
|
101
|
-
#<Proc:
|
105
|
+
#<Proc:0x007ff2bdb7af18/lib/balanced/utils.rb:6 (lambda)>,
|
102
106
|
"transactions"=>
|
103
|
-
#<Proc:
|
107
|
+
#<Proc:0x007ff2bdb78bf0/lib/balanced/utils.rb:6 (lambda)>}>]
|
104
108
|
|
105
109
|
% endif
|