balanced-ach 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.idea/.name +1 -0
  2. data/.idea/.rakeTasks +7 -0
  3. data/.idea/balanced-ach.iml +9 -0
  4. data/.idea/encodings.xml +5 -0
  5. data/.idea/misc.xml +5 -0
  6. data/.idea/modules.xml +9 -0
  7. data/.idea/scopes/scope_settings.xml +5 -0
  8. data/.idea/vcs.xml +7 -0
  9. data/.idea/workspace.xml +561 -0
  10. data/CONTRIBUTORS +1 -0
  11. data/Gemfile +19 -0
  12. data/Gemfile.lock +64 -0
  13. data/Guardfile +7 -0
  14. data/LICENSE +22 -0
  15. data/README.md +64 -0
  16. data/Rakefile +12 -0
  17. data/balanced.gemspec +22 -0
  18. data/lib/balanced.rb +84 -0
  19. data/lib/balanced/client.rb +82 -0
  20. data/lib/balanced/error.rb +85 -0
  21. data/lib/balanced/pager.rb +201 -0
  22. data/lib/balanced/resources.rb +5 -0
  23. data/lib/balanced/resources/bank_account.rb +36 -0
  24. data/lib/balanced/resources/credit.rb +20 -0
  25. data/lib/balanced/resources/debit.rb +27 -0
  26. data/lib/balanced/resources/resource.rb +158 -0
  27. data/lib/balanced/response/balanced_exception_middleware.rb +33 -0
  28. data/lib/balanced/utils.rb +62 -0
  29. data/lib/balanced/version.rb +3 -0
  30. data/spec/balanced/pager_spec.rb +42 -0
  31. data/spec/balanced/resources/account_spec.rb +571 -0
  32. data/spec/balanced/resources/api_key_spec.rb +55 -0
  33. data/spec/balanced/resources/hold_spec.rb +55 -0
  34. data/spec/balanced/resources/marketplace_spec.rb +97 -0
  35. data/spec/balanced/resources/transactions_spec.rb +72 -0
  36. data/spec/balanced/response/balanced_exception_middleware_spec.rb +47 -0
  37. data/spec/balanced_spec.rb +77 -0
  38. data/spec/cassettes/Balanced/configure.yml +48 -0
  39. data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +48 -0
  40. data/spec/cassettes/Balanced_Account.yml +110 -0
  41. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +240 -0
  42. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +44 -0
  43. data/spec/cassettes/Balanced_Account/_find.yml +400 -0
  44. data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +186 -0
  45. data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +186 -0
  46. data/spec/cassettes/Balanced_Account/_find_by_email.yml +400 -0
  47. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +175 -0
  48. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +186 -0
  49. data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +530 -0
  50. data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +455 -0
  51. data/spec/cassettes/Balanced_Account/buyer/_debit.yml +363 -0
  52. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +281 -0
  53. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +281 -0
  54. data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +1013 -0
  55. data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +229 -0
  56. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +536 -0
  57. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +460 -0
  58. data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +232 -0
  59. data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +232 -0
  60. data/spec/cassettes/Balanced_Account/merchant/new.yml +179 -0
  61. data/spec/cassettes/Balanced_ApiKey/attributes.yml +48 -0
  62. data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +93 -0
  63. data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +48 -0
  64. data/spec/cassettes/Balanced_Hold.yml +335 -0
  65. data/spec/cassettes/Balanced_Hold/_void.yml +62 -0
  66. data/spec/cassettes/Balanced_Hold/_void/after.yml +62 -0
  67. data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +306 -0
  68. data/spec/cassettes/Balanced_Marketplace.yml +339 -0
  69. data/spec/cassettes/Balanced_Transaction.yml +1261 -0
  70. data/spec/cassettes/Balanced_Transaction/Transaction.yml +634 -0
  71. data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +634 -0
  72. data/spec/client_spec.rb +12 -0
  73. data/spec/spec_helper.rb +31 -0
  74. data/spec/utils_spec.rb +8 -0
  75. data/upload_docs.rb +39 -0
  76. data/x.rb +22 -0
  77. metadata +199 -0
@@ -0,0 +1,179 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.balancedpayments.com/v1/merchants
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - balanced-ruby/0.3.5
12
+ Authorization:
13
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: !!null
18
+ headers:
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Fri, 06 Jul 2012 04:22:54 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM418eeea6c72211e1b502026ba7e239a9
27
+ x-balanced-marketplace:
28
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
29
+ x-balanced-merchant:
30
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
31
+ x-balanced-version:
32
+ - ''
33
+ content-length:
34
+ - '2062'
35
+ connection:
36
+ - Close
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
40
+ [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
41
+ \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
42
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
43
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\",
44
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
45
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\":
46
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\":
47
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\",
48
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\",
49
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\",
50
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\",
51
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\",
52
+ \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\":
53
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\":
54
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\":
55
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
56
+ \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\":
57
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\":
58
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\":
59
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
60
+ \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
61
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\":
62
+ \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake
63
+ St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
64
+ \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
65
+ null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
66
+ http_version: !!null
67
+ recorded_at: Fri, 06 Jul 2012 04:22:54 GMT
68
+ - request:
69
+ method: get
70
+ uri: https://api.balancedpayments.com/v1/merchants
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ headers:
75
+ User-Agent:
76
+ - balanced-ruby/0.3.5
77
+ Authorization:
78
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
79
+ response:
80
+ status:
81
+ code: 200
82
+ message: !!null
83
+ headers:
84
+ content-type:
85
+ - application/json
86
+ date:
87
+ - Fri, 06 Jul 2012 04:22:54 GMT
88
+ server:
89
+ - nginx/1.0.14
90
+ x-balanced-guru:
91
+ - OHM41dc29bec72211e1ad0d026ba7e5e72e
92
+ x-balanced-marketplace:
93
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
94
+ x-balanced-merchant:
95
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
96
+ x-balanced-version:
97
+ - ''
98
+ content-length:
99
+ - '2062'
100
+ connection:
101
+ - Close
102
+ body:
103
+ encoding: US-ASCII
104
+ string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
105
+ [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
106
+ \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
107
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
108
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\",
109
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
110
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\":
111
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\":
112
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\",
113
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\",
114
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\",
115
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\",
116
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\",
117
+ \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\":
118
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\":
119
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\":
120
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
121
+ \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\":
122
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\":
123
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\":
124
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
125
+ \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
126
+ \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\":
127
+ \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake
128
+ St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
129
+ \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
130
+ null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
131
+ http_version: !!null
132
+ recorded_at: Fri, 06 Jul 2012 04:22:54 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts
136
+ body:
137
+ encoding: UTF-8
138
+ string: ! '{"account_number":"1234567890","bank_code":"321174851","name":"Jack
139
+ Q Merchant"}'
140
+ headers:
141
+ User-Agent:
142
+ - balanced-ruby/0.3.5
143
+ Authorization:
144
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
145
+ Content-Type:
146
+ - application/json
147
+ response:
148
+ status:
149
+ code: 201
150
+ message: !!null
151
+ headers:
152
+ content-type:
153
+ - application/json
154
+ date:
155
+ - Fri, 06 Jul 2012 04:22:55 GMT
156
+ server:
157
+ - nginx/1.0.14
158
+ x-balanced-guru:
159
+ - OHM421778b6c72211e1b502026ba7e239a9
160
+ x-balanced-marketplace:
161
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
162
+ x-balanced-merchant:
163
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
164
+ x-balanced-version:
165
+ - ''
166
+ content-length:
167
+ - '366'
168
+ connection:
169
+ - Close
170
+ body:
171
+ encoding: US-ASCII
172
+ string: ! "{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"account\":
173
+ null, \n \"name\": \"Jack Q Merchant\", \n \"bank_code\": \"321174851\",
174
+ \n \"created_at\": \"2012-07-06T04:22:55.039101Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts/BA20NRFopi5HCkMvqf0cxjg5\",
175
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\", \n
176
+ \ \"id\": \"BA20NRFopi5HCkMvqf0cxjg5\"\n}"
177
+ http_version: !!null
178
+ recorded_at: Fri, 06 Jul 2012 04:22:55 GMT
179
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.balancedpayments.com/v1/api_keys
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - balanced-ruby/0.3.5
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message: !!null
18
+ headers:
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Fri, 06 Jul 2012 04:24:05 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM6bd12224c72211e1a476026ba7e239a9
27
+ x-balanced-version:
28
+ - ''
29
+ content-length:
30
+ - '854'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
36
+ \ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
37
+ Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
38
+ \"2012-07-06T04:24:05.085487Z\", \n \"uri\": \"/v1/merchants/TEST-MR3hASlwbJQkOkkLMoNXskM9\",
39
+ \n \"accounts_uri\": \"/v1/merchants/TEST-MR3hASlwbJQkOkkLMoNXskM9/accounts\",
40
+ \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
41
+ \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
42
+ \"/v1/merchants/TEST-MR3hASlwbJQkOkkLMoNXskM9/api_keys\", \n \"id\": \"TEST-MR3hASlwbJQkOkkLMoNXskM9\",
43
+ \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"6c0b7938c72211e1a476026ba7e239a9\",
44
+ \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:05.336893Z\", \n
45
+ \ \"uri\": \"/v1/api_keys/AK3hSr3jwAGcoz6fBKiqhG4N\", \n \"id\": \"AK3hSr3jwAGcoz6fBKiqhG4N\"\n}"
46
+ http_version: !!null
47
+ recorded_at: Fri, 06 Jul 2012 04:24:05 GMT
48
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,93 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.balancedpayments.com/v1/api_keys
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - balanced-ruby/0.3.5
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message: !!null
18
+ headers:
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Fri, 06 Jul 2012 04:24:07 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM6cf689a0c72211e1a476026ba7e239a9
27
+ x-balanced-version:
28
+ - ''
29
+ content-length:
30
+ - '854'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
36
+ \ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
37
+ Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
38
+ \"2012-07-06T04:24:07.041458Z\", \n \"uri\": \"/v1/merchants/TEST-MR3jNgJkG9ieulSnX3ZVTB2x\",
39
+ \n \"accounts_uri\": \"/v1/merchants/TEST-MR3jNgJkG9ieulSnX3ZVTB2x/accounts\",
40
+ \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
41
+ \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
42
+ \"/v1/merchants/TEST-MR3jNgJkG9ieulSnX3ZVTB2x/api_keys\", \n \"id\": \"TEST-MR3jNgJkG9ieulSnX3ZVTB2x\",
43
+ \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"6d322c3ac72211e1a476026ba7e239a9\",
44
+ \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:07.268199Z\", \n
45
+ \ \"uri\": \"/v1/api_keys/AK3k36YR9MG9hACelpQs9cEh\", \n \"id\": \"AK3k36YR9MG9hACelpQs9cEh\"\n}"
46
+ http_version: !!null
47
+ recorded_at: Fri, 06 Jul 2012 04:24:07 GMT
48
+ - request:
49
+ method: post
50
+ uri: https://api.balancedpayments.com/v1/api_keys
51
+ body:
52
+ encoding: UTF-8
53
+ string: ! '{}'
54
+ headers:
55
+ User-Agent:
56
+ - balanced-ruby/0.3.5
57
+ Content-Type:
58
+ - application/json
59
+ response:
60
+ status:
61
+ code: 201
62
+ message: !!null
63
+ headers:
64
+ content-type:
65
+ - application/json
66
+ date:
67
+ - Fri, 06 Jul 2012 04:24:08 GMT
68
+ server:
69
+ - nginx/1.0.14
70
+ x-balanced-guru:
71
+ - OHM6dad06a8c72211e1a977026ba7e239a9
72
+ x-balanced-version:
73
+ - ''
74
+ content-length:
75
+ - '854'
76
+ connection:
77
+ - Close
78
+ body:
79
+ encoding: US-ASCII
80
+ string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
81
+ \ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
82
+ Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
83
+ \"2012-07-06T04:24:08.277398Z\", \n \"uri\": \"/v1/merchants/TEST-MR3lbsfHRTZ7ymourVKNeVh7\",
84
+ \n \"accounts_uri\": \"/v1/merchants/TEST-MR3lbsfHRTZ7ymourVKNeVh7/accounts\",
85
+ \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
86
+ \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
87
+ \"/v1/merchants/TEST-MR3lbsfHRTZ7ymourVKNeVh7/api_keys\", \n \"id\": \"TEST-MR3lbsfHRTZ7ymourVKNeVh7\",
88
+ \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"6e034a0ec72211e1a977026ba7e239a9\",
89
+ \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:08.638713Z\", \n
90
+ \ \"uri\": \"/v1/api_keys/AK3lAGb640W9VOFur2XcVOSR\", \n \"id\": \"AK3lAGb640W9VOFur2XcVOSR\"\n}"
91
+ http_version: !!null
92
+ recorded_at: Fri, 06 Jul 2012 04:24:09 GMT
93
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.balancedpayments.com/v1/api_keys
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - balanced-ruby/0.3.5
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message: !!null
18
+ headers:
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Fri, 06 Jul 2012 04:24:06 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM6c51e5e4c72211e1a29c026ba7e5e72e
27
+ x-balanced-version:
28
+ - ''
29
+ content-length:
30
+ - '854'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
36
+ \ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
37
+ Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
38
+ \"2012-07-06T04:24:05.944057Z\", \n \"uri\": \"/v1/merchants/TEST-MR3iylUZwCBBq3a3kiQX3QrY\",
39
+ \n \"accounts_uri\": \"/v1/merchants/TEST-MR3iylUZwCBBq3a3kiQX3QrY/accounts\",
40
+ \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
41
+ \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
42
+ \"/v1/merchants/TEST-MR3iylUZwCBBq3a3kiQX3QrY/api_keys\", \n \"id\": \"TEST-MR3iylUZwCBBq3a3kiQX3QrY\",
43
+ \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"6c8750c6c72211e1a29c026ba7e5e72e\",
44
+ \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:06.154167Z\", \n
45
+ \ \"uri\": \"/v1/api_keys/AK3iN20HZXCGEnUn0iNylCrQ\", \n \"id\": \"AK3iN20HZXCGEnUn0iNylCrQ\"\n}"
46
+ http_version: !!null
47
+ recorded_at: Fri, 06 Jul 2012 04:24:06 GMT
48
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,335 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.balancedpayments.com/v1/api_keys
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{}'
9
+ headers:
10
+ User-Agent:
11
+ - balanced-ruby/0.3.5
12
+ Content-Type:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 201
17
+ message: !!null
18
+ headers:
19
+ content-type:
20
+ - application/json
21
+ date:
22
+ - Fri, 06 Jul 2012 04:24:09 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM6e44d348c72211e1a29c026ba7e5e72e
27
+ x-balanced-version:
28
+ - ''
29
+ content-length:
30
+ - '854'
31
+ connection:
32
+ - Close
33
+ body:
34
+ encoding: US-ASCII
35
+ string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
36
+ \ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
37
+ Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
38
+ \"2012-07-06T04:24:09.283512Z\", \n \"uri\": \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q\",
39
+ \n \"accounts_uri\": \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/accounts\",
40
+ \n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
41
+ \"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
42
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/api_keys\", \n \"id\": \"TEST-MR3mjdQAaIuYnml4foiSL87Q\",
43
+ \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"6e9cf0d2c72211e1a29c026ba7e5e72e\",
44
+ \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:09.651313Z\", \n
45
+ \ \"uri\": \"/v1/api_keys/AK3mITGfUbTFWF42Ikr0RELQ\", \n \"id\": \"AK3mITGfUbTFWF42Ikr0RELQ\"\n}"
46
+ http_version: !!null
47
+ recorded_at: Fri, 06 Jul 2012 04:24:10 GMT
48
+ - request:
49
+ method: post
50
+ uri: https://api.balancedpayments.com/v1/marketplaces
51
+ body:
52
+ encoding: UTF-8
53
+ string: ! '{}'
54
+ headers:
55
+ User-Agent:
56
+ - balanced-ruby/0.3.5
57
+ Authorization:
58
+ - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
59
+ Content-Type:
60
+ - application/json
61
+ response:
62
+ status:
63
+ code: 201
64
+ message: !!null
65
+ headers:
66
+ content-type:
67
+ - application/json
68
+ date:
69
+ - Fri, 06 Jul 2012 04:24:11 GMT
70
+ server:
71
+ - nginx/1.0.14
72
+ x-balanced-guru:
73
+ - OHM6eea7ddec72211e19eae026ba7e5e72e
74
+ x-balanced-marketplace:
75
+ - TEST-MP3nhHH5OdNRTfziINDIhNjU
76
+ x-balanced-merchant:
77
+ - TEST-MR3mjdQAaIuYnml4foiSL87Q
78
+ x-balanced-version:
79
+ - ''
80
+ content-length:
81
+ - '2080'
82
+ connection:
83
+ - Close
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! "{\n \"support_email_address\": \"support@example.com\", \n \"bank_accounts_uri\":
87
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/bank_accounts\", \n \"owner_account\":
88
+ {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/holds\",
89
+ \n \"name\": \"William Henry Cavendish III\", \n \"roles\": [\n \"merchant\",
90
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:24:10.643389Z\",
91
+ \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS\",
92
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/bank_accounts\",
93
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/refunds\",
94
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/debits\",
95
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/transactions\",
96
+ \n \"email_address\": \"whc@example.org\", \n \"id\": \"AC3nQ4AY7MV8fC3G4dJxGxSS\",
97
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/credits\",
98
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS/cards\"\n
99
+ \ }, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds\",
100
+ \n \"meta\": {}, \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/transactions\",
101
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts\",
102
+ \n \"id\": \"TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/credits\",
103
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards\",
104
+ \n \"in_escrow\": 0, \n \"domain_url\": \"example.com\", \n \"name\": \"Test
105
+ Marketplace\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU\",
106
+ \n \"support_phone_number\": \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/refunds\",
107
+ \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits\"\n}"
108
+ http_version: !!null
109
+ recorded_at: Fri, 06 Jul 2012 04:24:11 GMT
110
+ - request:
111
+ method: get
112
+ uri: https://api.balancedpayments.com/v1/merchants
113
+ body:
114
+ encoding: US-ASCII
115
+ string: ''
116
+ headers:
117
+ User-Agent:
118
+ - balanced-ruby/0.3.5
119
+ Authorization:
120
+ - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
121
+ response:
122
+ status:
123
+ code: 200
124
+ message: !!null
125
+ headers:
126
+ content-type:
127
+ - application/json
128
+ date:
129
+ - Fri, 06 Jul 2012 04:24:11 GMT
130
+ server:
131
+ - nginx/1.0.14
132
+ x-balanced-guru:
133
+ - OHM6fd68adac72211e19eae026ba7e5e72e
134
+ x-balanced-marketplace:
135
+ - TEST-MP3nhHH5OdNRTfziINDIhNjU
136
+ x-balanced-merchant:
137
+ - TEST-MR3mjdQAaIuYnml4foiSL87Q
138
+ x-balanced-version:
139
+ - ''
140
+ content-length:
141
+ - '2062'
142
+ connection:
143
+ - Close
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
147
+ [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
148
+ \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
149
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
150
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS\",
151
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
152
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"bank_accounts_uri\":
153
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/bank_accounts\", \n \"support_phone_number\":
154
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/refunds\",
155
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits\",
156
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds\",
157
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/transactions\",
158
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts\",
159
+ \n \"id\": \"TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"credits_uri\":
160
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/credits\", \n \"cards_uri\":
161
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards\"\n }, \n \"name\":
162
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
163
+ \n \"created_at\": \"2012-07-06T04:24:09.283512Z\", \n \"uri\":
164
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"accounts_uri\":
165
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/accounts\", \n \"meta\":
166
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
167
+ \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
168
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/api_keys\", \n \"id\":
169
+ \"TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"street_address\": \"123 Fake
170
+ St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
171
+ \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
172
+ null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
173
+ http_version: !!null
174
+ recorded_at: Fri, 06 Jul 2012 04:24:12 GMT
175
+ - request:
176
+ method: get
177
+ uri: https://api.balancedpayments.com/v1/merchants
178
+ body:
179
+ encoding: US-ASCII
180
+ string: ''
181
+ headers:
182
+ User-Agent:
183
+ - balanced-ruby/0.3.5
184
+ Authorization:
185
+ - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
186
+ response:
187
+ status:
188
+ code: 200
189
+ message: !!null
190
+ headers:
191
+ content-type:
192
+ - application/json
193
+ date:
194
+ - Fri, 06 Jul 2012 04:24:12 GMT
195
+ server:
196
+ - nginx/1.0.14
197
+ x-balanced-guru:
198
+ - OHM701bf908c72211e1ad0d026ba7e5e72e
199
+ x-balanced-marketplace:
200
+ - TEST-MP3nhHH5OdNRTfziINDIhNjU
201
+ x-balanced-merchant:
202
+ - TEST-MR3mjdQAaIuYnml4foiSL87Q
203
+ x-balanced-version:
204
+ - ''
205
+ content-length:
206
+ - '2062'
207
+ connection:
208
+ - Close
209
+ body:
210
+ encoding: US-ASCII
211
+ string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
212
+ [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
213
+ \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
214
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
215
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS\",
216
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
217
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"bank_accounts_uri\":
218
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/bank_accounts\", \n \"support_phone_number\":
219
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/refunds\",
220
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits\",
221
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds\",
222
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/transactions\",
223
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts\",
224
+ \n \"id\": \"TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"credits_uri\":
225
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/credits\", \n \"cards_uri\":
226
+ \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards\"\n }, \n \"name\":
227
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
228
+ \n \"created_at\": \"2012-07-06T04:24:09.283512Z\", \n \"uri\":
229
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"accounts_uri\":
230
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/accounts\", \n \"meta\":
231
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
232
+ \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
233
+ \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/api_keys\", \n \"id\":
234
+ \"TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"street_address\": \"123 Fake
235
+ St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
236
+ \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
237
+ null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
238
+ http_version: !!null
239
+ recorded_at: Fri, 06 Jul 2012 04:24:12 GMT
240
+ - request:
241
+ method: post
242
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards
243
+ body:
244
+ encoding: UTF-8
245
+ string: ! '{"card_number":"5105105105105100","expiration_month":"12","expiration_year":"2015"}'
246
+ headers:
247
+ User-Agent:
248
+ - balanced-ruby/0.3.5
249
+ Authorization:
250
+ - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
251
+ Content-Type:
252
+ - application/json
253
+ response:
254
+ status:
255
+ code: 201
256
+ message: !!null
257
+ headers:
258
+ content-type:
259
+ - application/json
260
+ date:
261
+ - Fri, 06 Jul 2012 04:24:13 GMT
262
+ server:
263
+ - nginx/1.0.14
264
+ x-balanced-guru:
265
+ - OHM70644beac72211e1a977026ba7e239a9
266
+ x-balanced-marketplace:
267
+ - TEST-MP3nhHH5OdNRTfziINDIhNjU
268
+ x-balanced-merchant:
269
+ - TEST-MR3mjdQAaIuYnml4foiSL87Q
270
+ x-balanced-version:
271
+ - ''
272
+ content-length:
273
+ - '383'
274
+ connection:
275
+ - Close
276
+ body:
277
+ encoding: US-ASCII
278
+ string: ! "{\n \"card_type\": \"mastercard\", \n \"account\": null, \n \"name\":
279
+ null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:24:12.952100Z\",
280
+ \n \"brand\": \"MasterCard\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
281
+ \n \"expiration_month\": 12, \n \"is_valid\": true, \n \"meta\": {}, \n
282
+ \ \"last_four\": 5100, \n \"id\": \"CC3qrrK6WTDSWEt1OcUOgasp\"\n}"
283
+ http_version: !!null
284
+ recorded_at: Fri, 06 Jul 2012 04:24:13 GMT
285
+ - request:
286
+ method: post
287
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts
288
+ body:
289
+ encoding: UTF-8
290
+ string: ! '{"email_address":"buyer@example.org","card_uri":"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards/CC3qrrK6WTDSWEt1OcUOgasp","name":null,"meta":null}'
291
+ headers:
292
+ User-Agent:
293
+ - balanced-ruby/0.3.5
294
+ Authorization:
295
+ - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
296
+ Content-Type:
297
+ - application/json
298
+ response:
299
+ status:
300
+ code: 201
301
+ message: !!null
302
+ headers:
303
+ content-type:
304
+ - application/json
305
+ date:
306
+ - Fri, 06 Jul 2012 04:24:14 GMT
307
+ server:
308
+ - nginx/1.0.14
309
+ x-balanced-guru:
310
+ - OHM711a8d10c72211e1a977026ba7e239a9
311
+ x-balanced-marketplace:
312
+ - TEST-MP3nhHH5OdNRTfziINDIhNjU
313
+ x-balanced-merchant:
314
+ - TEST-MR3mjdQAaIuYnml4foiSL87Q
315
+ x-balanced-version:
316
+ - ''
317
+ content-length:
318
+ - '1066'
319
+ connection:
320
+ - Close
321
+ body:
322
+ encoding: US-ASCII
323
+ string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds\",
324
+ \n \"name\": null, \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
325
+ \"2012-07-06T04:24:13.812316Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
326
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/bank_accounts\",
327
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/refunds\",
328
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits\",
329
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/transactions\",
330
+ \n \"email_address\": \"buyer@example.org\", \n \"id\": \"AC3rprFH4OxDBdGa1gGIMTq1\",
331
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/credits\",
332
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards\"\n}"
333
+ http_version: !!null
334
+ recorded_at: Fri, 06 Jul 2012 04:24:14 GMT
335
+ recorded_with: VCR 2.2.2