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,363 @@
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:23:41 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM5dbe39c4c72211e1b502026ba7e239a9
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:23:41 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:23:41 GMT
88
+ server:
89
+ - nginx/1.0.14
90
+ x-balanced-guru:
91
+ - OHM5e08fc70c72211e1a29c026ba7e5e72e
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:23:42 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards
136
+ body:
137
+ encoding: UTF-8
138
+ string: ! '{"card_number":"4111111111111111","expiration_month":"12","expiration_year":"2015"}'
139
+ headers:
140
+ User-Agent:
141
+ - balanced-ruby/0.3.5
142
+ Authorization:
143
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
144
+ Content-Type:
145
+ - application/json
146
+ response:
147
+ status:
148
+ code: 201
149
+ message: !!null
150
+ headers:
151
+ content-type:
152
+ - application/json
153
+ date:
154
+ - Fri, 06 Jul 2012 04:23:42 GMT
155
+ server:
156
+ - nginx/1.0.14
157
+ x-balanced-guru:
158
+ - OHM5e432616c72211e1a476026ba7e239a9
159
+ x-balanced-marketplace:
160
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
161
+ x-balanced-merchant:
162
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
163
+ x-balanced-version:
164
+ - ''
165
+ content-length:
166
+ - '371'
167
+ connection:
168
+ - Close
169
+ body:
170
+ encoding: US-ASCII
171
+ string: ! "{\n \"card_type\": \"visa\", \n \"account\": null, \n \"name\":
172
+ null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:23:42.476710Z\",
173
+ \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2Saj17XFSnJXlcM36zwYmR\",
174
+ \n \"expiration_month\": 12, \n \"is_valid\": true, \n \"meta\": {}, \n
175
+ \ \"last_four\": 1111, \n \"id\": \"CC2Saj17XFSnJXlcM36zwYmR\"\n}"
176
+ http_version: !!null
177
+ recorded_at: Fri, 06 Jul 2012 04:23:42 GMT
178
+ - request:
179
+ method: post
180
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts
181
+ body:
182
+ encoding: UTF-8
183
+ string: ! '{"email_address":"buyer7@example.org","card_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2Saj17XFSnJXlcM36zwYmR","name":"Jack
184
+ Q Buyer"}'
185
+ headers:
186
+ User-Agent:
187
+ - balanced-ruby/0.3.5
188
+ Authorization:
189
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
190
+ Content-Type:
191
+ - application/json
192
+ response:
193
+ status:
194
+ code: 201
195
+ message: !!null
196
+ headers:
197
+ content-type:
198
+ - application/json
199
+ date:
200
+ - Fri, 06 Jul 2012 04:23:43 GMT
201
+ server:
202
+ - nginx/1.0.14
203
+ x-balanced-guru:
204
+ - OHM5eb43b58c72211e1a29c026ba7e5e72e
205
+ x-balanced-marketplace:
206
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
207
+ x-balanced-merchant:
208
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
209
+ x-balanced-version:
210
+ - ''
211
+ content-length:
212
+ - '1077'
213
+ connection:
214
+ - Close
215
+ body:
216
+ encoding: US-ASCII
217
+ string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/holds\",
218
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
219
+ \"2012-07-06T04:23:42.949986Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94\",
220
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/bank_accounts\",
221
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/refunds\",
222
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/debits\",
223
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/transactions\",
224
+ \n \"email_address\": \"buyer7@example.org\", \n \"id\": \"AC2SGVGPvAzfOJWFVJyVWL94\",
225
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/credits\",
226
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards\"\n}"
227
+ http_version: !!null
228
+ recorded_at: Fri, 06 Jul 2012 04:23:43 GMT
229
+ - request:
230
+ method: post
231
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/debits
232
+ body:
233
+ encoding: UTF-8
234
+ string: ! '{"amount":500,"appears_on_statement_as":"BOBS BURGERS","hold_uri":null,"meta":null,"description":null,"source_uri":null}'
235
+ headers:
236
+ User-Agent:
237
+ - balanced-ruby/0.3.5
238
+ Authorization:
239
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
240
+ Content-Type:
241
+ - application/json
242
+ response:
243
+ status:
244
+ code: 201
245
+ message: !!null
246
+ headers:
247
+ content-type:
248
+ - application/json
249
+ date:
250
+ - Fri, 06 Jul 2012 04:23:44 GMT
251
+ server:
252
+ - nginx/1.0.14
253
+ x-balanced-guru:
254
+ - OHM5f5bef88c72211e1a476026ba7e239a9
255
+ x-balanced-marketplace:
256
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
257
+ x-balanced-merchant:
258
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
259
+ x-balanced-version:
260
+ - ''
261
+ content-length:
262
+ - '2634'
263
+ connection:
264
+ - Close
265
+ body:
266
+ encoding: US-ASCII
267
+ string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/holds\",
268
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
269
+ \n \"created_at\": \"2012-07-06T04:23:42.949986Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94\",
270
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/bank_accounts\",
271
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/refunds\",
272
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/debits\",
273
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/transactions\",
274
+ \n \"email_address\": \"buyer7@example.org\", \n \"id\": \"AC2SGVGPvAzfOJWFVJyVWL94\",
275
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/credits\",
276
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards\"\n
277
+ \ }, \n \"fee\": 14, \n \"description\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits/WD2UqLatL15jlj1et94uvNA5/refunds\",
278
+ \n \"amount\": 500, \n \"created_at\": \"2012-07-06T04:23:44.501976Z\",
279
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits/WD2UqLatL15jlj1et94uvNA5\",
280
+ \n \"source\": {\n \"expiration_month\": 12, \n \"name\": null, \n
281
+ \ \"expiration_year\": 2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards/CC2Saj17XFSnJXlcM36zwYmR\",
282
+ \n \"id\": \"CC2Saj17XFSnJXlcM36zwYmR\", \n \"card_type\": \"visa\",
283
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
284
+ \ \"created_at\": \"2012-07-06T04:23:42.476710Z\"\n }, \n \"transaction_number\":
285
+ \"W413-709-6512\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"BOBS
286
+ BURGERS\", \n \"hold\": {\n \"fee\": 30, \n \"description\": null,
287
+ \n \"created_at\": \"2012-07-06T04:23:44.259474Z\", \n \"is_void\":
288
+ false, \n \"expires_at\": \"2012-07-13T04:23:44.216582Z\", \n \"uri\":
289
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds/HL2UaD2hSLFywiyU8NkaODC9\",
290
+ \n \"amount\": 500, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94\",
291
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards/CC2Saj17XFSnJXlcM36zwYmR\",
292
+ \n \"id\": \"HL2UaD2hSLFywiyU8NkaODC9\"\n }, \n \"id\": \"WD2UqLatL15jlj1et94uvNA5\",
293
+ \n \"available_at\": \"2012-07-06T04:23:44.434244Z\"\n}"
294
+ http_version: !!null
295
+ recorded_at: Fri, 06 Jul 2012 04:23:45 GMT
296
+ - request:
297
+ method: post
298
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/debits
299
+ body:
300
+ encoding: UTF-8
301
+ string: ! '{"amount":500,"appears_on_statement_as":"FOO FIGHTER","hold_uri":null,"meta":null,"description":null,"source_uri":null}'
302
+ headers:
303
+ User-Agent:
304
+ - balanced-ruby/0.3.5
305
+ Authorization:
306
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
307
+ Content-Type:
308
+ - application/json
309
+ response:
310
+ status:
311
+ code: 201
312
+ message: !!null
313
+ headers:
314
+ content-type:
315
+ - application/json
316
+ date:
317
+ - Fri, 06 Jul 2012 04:23:46 GMT
318
+ server:
319
+ - nginx/1.0.14
320
+ x-balanced-guru:
321
+ - OHM6027f006c72211e1a29c026ba7e5e72e
322
+ x-balanced-marketplace:
323
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
324
+ x-balanced-merchant:
325
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
326
+ x-balanced-version:
327
+ - ''
328
+ content-length:
329
+ - '2633'
330
+ connection:
331
+ - Close
332
+ body:
333
+ encoding: US-ASCII
334
+ string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/holds\",
335
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
336
+ \n \"created_at\": \"2012-07-06T04:23:42.949986Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94\",
337
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/bank_accounts\",
338
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/refunds\",
339
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/debits\",
340
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/transactions\",
341
+ \n \"email_address\": \"buyer7@example.org\", \n \"id\": \"AC2SGVGPvAzfOJWFVJyVWL94\",
342
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/credits\",
343
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards\"\n
344
+ \ }, \n \"fee\": 14, \n \"description\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits/WD2W3Ogwgn3OznzgVhQbVX0q/refunds\",
345
+ \n \"amount\": 500, \n \"created_at\": \"2012-07-06T04:23:45.967688Z\",
346
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits/WD2W3Ogwgn3OznzgVhQbVX0q\",
347
+ \n \"source\": {\n \"expiration_month\": 12, \n \"name\": null, \n
348
+ \ \"expiration_year\": 2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards/CC2Saj17XFSnJXlcM36zwYmR\",
349
+ \n \"id\": \"CC2Saj17XFSnJXlcM36zwYmR\", \n \"card_type\": \"visa\",
350
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
351
+ \ \"created_at\": \"2012-07-06T04:23:42.476710Z\"\n }, \n \"transaction_number\":
352
+ \"W815-861-3747\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"FOO
353
+ FIGHTER\", \n \"hold\": {\n \"fee\": 30, \n \"description\": null,
354
+ \n \"created_at\": \"2012-07-06T04:23:45.745732Z\", \n \"is_void\":
355
+ false, \n \"expires_at\": \"2012-07-13T04:23:45.703285Z\", \n \"uri\":
356
+ \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds/HL2VPSsQyXRS5ObosLnsOMuq\",
357
+ \n \"amount\": 500, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94\",
358
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2SGVGPvAzfOJWFVJyVWL94/cards/CC2Saj17XFSnJXlcM36zwYmR\",
359
+ \n \"id\": \"HL2VPSsQyXRS5ObosLnsOMuq\"\n }, \n \"id\": \"WD2W3Ogwgn3OznzgVhQbVX0q\",
360
+ \n \"available_at\": \"2012-07-06T04:23:45.896996Z\"\n}"
361
+ http_version: !!null
362
+ recorded_at: Fri, 06 Jul 2012 04:23:46 GMT
363
+ recorded_with: VCR 2.2.2
@@ -0,0 +1,281 @@
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:23:38 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM5bc241b0c72211e1ad0d026ba7e5e72e
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:23:38 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:23:38 GMT
88
+ server:
89
+ - nginx/1.0.14
90
+ x-balanced-guru:
91
+ - OHM5c091b1cc72211e1a977026ba7e239a9
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:23:38 GMT
133
+ - request:
134
+ method: post
135
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards
136
+ body:
137
+ encoding: UTF-8
138
+ string: ! '{"card_number":"4111111111111111","expiration_month":"12","expiration_year":"2015"}'
139
+ headers:
140
+ User-Agent:
141
+ - balanced-ruby/0.3.5
142
+ Authorization:
143
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
144
+ Content-Type:
145
+ - application/json
146
+ response:
147
+ status:
148
+ code: 201
149
+ message: !!null
150
+ headers:
151
+ content-type:
152
+ - application/json
153
+ date:
154
+ - Fri, 06 Jul 2012 04:23:39 GMT
155
+ server:
156
+ - nginx/1.0.14
157
+ x-balanced-guru:
158
+ - OHM5c42bc46c72211e1a29c026ba7e5e72e
159
+ x-balanced-marketplace:
160
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
161
+ x-balanced-merchant:
162
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
163
+ x-balanced-version:
164
+ - ''
165
+ content-length:
166
+ - '371'
167
+ connection:
168
+ - Close
169
+ body:
170
+ encoding: US-ASCII
171
+ string: ! "{\n \"card_type\": \"visa\", \n \"account\": null, \n \"name\":
172
+ null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:23:38.960018Z\",
173
+ \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2OcGLXK66LIXOZ54LkmMGi\",
174
+ \n \"expiration_month\": 12, \n \"is_valid\": true, \n \"meta\": {}, \n
175
+ \ \"last_four\": 1111, \n \"id\": \"CC2OcGLXK66LIXOZ54LkmMGi\"\n}"
176
+ http_version: !!null
177
+ recorded_at: Fri, 06 Jul 2012 04:23:39 GMT
178
+ - request:
179
+ method: post
180
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts
181
+ body:
182
+ encoding: UTF-8
183
+ string: ! '{"email_address":"buyer6@example.org","card_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2OcGLXK66LIXOZ54LkmMGi","name":"Jack
184
+ Q Buyer"}'
185
+ headers:
186
+ User-Agent:
187
+ - balanced-ruby/0.3.5
188
+ Authorization:
189
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
190
+ Content-Type:
191
+ - application/json
192
+ response:
193
+ status:
194
+ code: 201
195
+ message: !!null
196
+ headers:
197
+ content-type:
198
+ - application/json
199
+ date:
200
+ - Fri, 06 Jul 2012 04:23:39 GMT
201
+ server:
202
+ - nginx/1.0.14
203
+ x-balanced-guru:
204
+ - OHM5c9fadcac72211e1a977026ba7e239a9
205
+ x-balanced-marketplace:
206
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
207
+ x-balanced-merchant:
208
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
209
+ x-balanced-version:
210
+ - ''
211
+ content-length:
212
+ - '1077'
213
+ connection:
214
+ - Close
215
+ body:
216
+ encoding: US-ASCII
217
+ string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds\",
218
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
219
+ \"2012-07-06T04:23:39.457523Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ\",
220
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts\",
221
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds\",
222
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits\",
223
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions\",
224
+ \n \"email_address\": \"buyer6@example.org\", \n \"id\": \"AC2OLMLTUfz4qG71JdAJ9TsZ\",
225
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits\",
226
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards\"\n}"
227
+ http_version: !!null
228
+ recorded_at: Fri, 06 Jul 2012 04:23:40 GMT
229
+ - request:
230
+ method: put
231
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ
232
+ body:
233
+ encoding: UTF-8
234
+ string: ! '{"holds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds","name":"Jack
235
+ Q Buyer","roles":["buyer"],"created_at":"2012-07-06T04:23:39.457523Z","bank_accounts_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts","refunds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds","meta":{},"debits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits","transactions_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions","email_address":"buyer6@example.org","id":"AC2OLMLTUfz4qG71JdAJ9TsZ","credits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits","cards_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards","merchant":{"type":"person","name":"Billy
236
+ Jones","street_address":"801 High St.","postal_code":"94301","country":"USA","dob":"1842-01","phone_number":"+16505551234"}}'
237
+ headers:
238
+ User-Agent:
239
+ - balanced-ruby/0.3.5
240
+ Authorization:
241
+ - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
242
+ Content-Type:
243
+ - application/json
244
+ response:
245
+ status:
246
+ code: 200
247
+ message: !!null
248
+ headers:
249
+ content-type:
250
+ - application/json
251
+ date:
252
+ - Fri, 06 Jul 2012 04:23:40 GMT
253
+ server:
254
+ - nginx/1.0.14
255
+ x-balanced-guru:
256
+ - OHM5d39803ac72211e19eae026ba7e5e72e
257
+ x-balanced-marketplace:
258
+ - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
259
+ x-balanced-merchant:
260
+ - TEST-MR1StaiKg1wIPZi4BqZBFKgK
261
+ x-balanced-version:
262
+ - ''
263
+ content-length:
264
+ - '1094'
265
+ connection:
266
+ - Close
267
+ body:
268
+ encoding: US-ASCII
269
+ string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/holds\",
270
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n
271
+ \ ], \n \"created_at\": \"2012-07-06T04:23:39.457523Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ\",
272
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/bank_accounts\",
273
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/refunds\",
274
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/debits\",
275
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/transactions\",
276
+ \n \"email_address\": \"buyer6@example.org\", \n \"id\": \"AC2OLMLTUfz4qG71JdAJ9TsZ\",
277
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/credits\",
278
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2OLMLTUfz4qG71JdAJ9TsZ/cards\"\n}"
279
+ http_version: !!null
280
+ recorded_at: Fri, 06 Jul 2012 04:23:41 GMT
281
+ recorded_with: VCR 2.2.2