balanced-ach 0.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. data/.gitignore +29 -0
  2. data/Gemfile +1 -1
  3. data/balanced.gemspec +1 -1
  4. data/lib/{balanced.rb → balanced_ach.rb} +7 -7
  5. data/lib/{balanced → balanced_ach}/client.rb +1 -1
  6. data/lib/{balanced → balanced_ach}/error.rb +0 -0
  7. data/lib/{balanced → balanced_ach}/pager.rb +2 -2
  8. data/lib/{balanced → balanced_ach}/resources.rb +1 -1
  9. data/lib/{balanced → balanced_ach}/resources/bank_account.rb +0 -0
  10. data/lib/{balanced → balanced_ach}/resources/credit.rb +0 -0
  11. data/lib/{balanced → balanced_ach}/resources/debit.rb +0 -0
  12. data/lib/{balanced → balanced_ach}/resources/resource.rb +0 -0
  13. data/lib/{balanced → balanced_ach}/response/balanced_exception_middleware.rb +1 -1
  14. data/lib/{balanced → balanced_ach}/utils.rb +0 -0
  15. data/lib/{balanced → balanced_ach}/version.rb +1 -1
  16. data/x.rb +2 -7
  17. metadata +15 -114
  18. data/.idea/.name +0 -1
  19. data/.idea/.rakeTasks +0 -7
  20. data/.idea/balanced-ach.iml +0 -9
  21. data/.idea/encodings.xml +0 -5
  22. data/.idea/misc.xml +0 -5
  23. data/.idea/modules.xml +0 -9
  24. data/.idea/scopes/scope_settings.xml +0 -5
  25. data/.idea/vcs.xml +0 -7
  26. data/.idea/workspace.xml +0 -561
  27. data/spec/balanced/pager_spec.rb +0 -42
  28. data/spec/balanced/resources/account_spec.rb +0 -571
  29. data/spec/balanced/resources/api_key_spec.rb +0 -55
  30. data/spec/balanced/resources/hold_spec.rb +0 -55
  31. data/spec/balanced/resources/marketplace_spec.rb +0 -97
  32. data/spec/balanced/resources/transactions_spec.rb +0 -72
  33. data/spec/balanced/response/balanced_exception_middleware_spec.rb +0 -47
  34. data/spec/balanced_spec.rb +0 -77
  35. data/spec/cassettes/Balanced/configure.yml +0 -48
  36. data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +0 -48
  37. data/spec/cassettes/Balanced_Account.yml +0 -110
  38. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +0 -240
  39. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +0 -44
  40. data/spec/cassettes/Balanced_Account/_find.yml +0 -400
  41. data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +0 -186
  42. data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +0 -186
  43. data/spec/cassettes/Balanced_Account/_find_by_email.yml +0 -400
  44. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +0 -175
  45. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +0 -186
  46. data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +0 -530
  47. data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +0 -455
  48. data/spec/cassettes/Balanced_Account/buyer/_debit.yml +0 -363
  49. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +0 -281
  50. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +0 -281
  51. data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +0 -1013
  52. data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +0 -229
  53. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +0 -536
  54. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +0 -460
  55. data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +0 -232
  56. data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +0 -232
  57. data/spec/cassettes/Balanced_Account/merchant/new.yml +0 -179
  58. data/spec/cassettes/Balanced_ApiKey/attributes.yml +0 -48
  59. data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +0 -93
  60. data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +0 -48
  61. data/spec/cassettes/Balanced_Hold.yml +0 -335
  62. data/spec/cassettes/Balanced_Hold/_void.yml +0 -62
  63. data/spec/cassettes/Balanced_Hold/_void/after.yml +0 -62
  64. data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +0 -306
  65. data/spec/cassettes/Balanced_Marketplace.yml +0 -339
  66. data/spec/cassettes/Balanced_Transaction.yml +0 -1261
  67. data/spec/cassettes/Balanced_Transaction/Transaction.yml +0 -634
  68. data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +0 -634
  69. data/spec/client_spec.rb +0 -12
  70. data/spec/spec_helper.rb +0 -31
  71. data/spec/utils_spec.rb +0 -8
  72. data/upload_docs.rb +0 -39
@@ -1,363 +0,0 @@
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
@@ -1,281 +0,0 @@
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