balanced-ach 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
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,455 +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:23 GMT
23
- server:
24
- - nginx/1.0.14
25
- x-balanced-guru:
26
- - OHM535b7ecec72211e19eae026ba7e5e72e
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:24 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:24 GMT
88
- server:
89
- - nginx/1.0.14
90
- x-balanced-guru:
91
- - OHM53a5e9a0c72211e1a476026ba7e239a9
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:24 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:24 GMT
155
- server:
156
- - nginx/1.0.14
157
- x-balanced-guru:
158
- - OHM53e55266c72211e1ad0d026ba7e5e72e
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:24.944019Z\",
173
- \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2yrjvC8Fm4MDGaAd0SWULs\",
174
- \n \"expiration_month\": 12, \n \"is_valid\": true, \n \"meta\": {}, \n
175
- \ \"last_four\": 1111, \n \"id\": \"CC2yrjvC8Fm4MDGaAd0SWULs\"\n}"
176
- http_version: !!null
177
- recorded_at: Fri, 06 Jul 2012 04:23:25 GMT
178
- - request:
179
- method: get
180
- uri: https://api.balancedpayments.com/v1/merchants
181
- body:
182
- encoding: US-ASCII
183
- string: ''
184
- headers:
185
- User-Agent:
186
- - balanced-ruby/0.3.5
187
- Authorization:
188
- - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
189
- response:
190
- status:
191
- code: 200
192
- message: !!null
193
- headers:
194
- content-type:
195
- - application/json
196
- date:
197
- - Fri, 06 Jul 2012 04:23:25 GMT
198
- server:
199
- - nginx/1.0.14
200
- x-balanced-guru:
201
- - OHM54702a9ec72211e1a476026ba7e239a9
202
- x-balanced-marketplace:
203
- - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
204
- x-balanced-merchant:
205
- - TEST-MR1StaiKg1wIPZi4BqZBFKgK
206
- x-balanced-version:
207
- - ''
208
- content-length:
209
- - '2062'
210
- connection:
211
- - Close
212
- body:
213
- encoding: US-ASCII
214
- string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
215
- [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
216
- \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
217
- \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
218
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\",
219
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
220
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\":
221
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\":
222
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\",
223
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\",
224
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\",
225
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\",
226
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\",
227
- \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\":
228
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\":
229
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\":
230
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
231
- \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\":
232
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\":
233
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\":
234
- {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
235
- \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
236
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\":
237
- \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake
238
- St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
239
- \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
240
- null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
241
- http_version: !!null
242
- recorded_at: Fri, 06 Jul 2012 04:23:26 GMT
243
- - request:
244
- method: get
245
- uri: https://api.balancedpayments.com/v1/merchants
246
- body:
247
- encoding: US-ASCII
248
- string: ''
249
- headers:
250
- User-Agent:
251
- - balanced-ruby/0.3.5
252
- Authorization:
253
- - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
254
- response:
255
- status:
256
- code: 200
257
- message: !!null
258
- headers:
259
- content-type:
260
- - application/json
261
- date:
262
- - Fri, 06 Jul 2012 04:23:26 GMT
263
- server:
264
- - nginx/1.0.14
265
- x-balanced-guru:
266
- - OHM54b99fd0c72211e19eae026ba7e5e72e
267
- x-balanced-marketplace:
268
- - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
269
- x-balanced-merchant:
270
- - TEST-MR1StaiKg1wIPZi4BqZBFKgK
271
- x-balanced-version:
272
- - ''
273
- content-length:
274
- - '2062'
275
- connection:
276
- - Close
277
- body:
278
- encoding: US-ASCII
279
- string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
280
- [\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
281
- \n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
282
- \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
283
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC1TCUdnBEr1KwYUyKqb91wZ\",
284
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
285
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"bank_accounts_uri\":
286
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/bank_accounts\", \n \"support_phone_number\":
287
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/refunds\",
288
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/debits\",
289
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/holds\",
290
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/transactions\",
291
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts\",
292
- \n \"id\": \"TEST-MP1TeztGGOGLPPCo2cLKo6SZ\", \n \"credits_uri\":
293
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/credits\", \n \"cards_uri\":
294
- \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards\"\n }, \n \"name\":
295
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
296
- \n \"created_at\": \"2012-07-06T04:22:47.628360Z\", \n \"uri\":
297
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"accounts_uri\":
298
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/accounts\", \n \"meta\":
299
- {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
300
- \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
301
- \"/v1/merchants/TEST-MR1StaiKg1wIPZi4BqZBFKgK/api_keys\", \n \"id\":
302
- \"TEST-MR1StaiKg1wIPZi4BqZBFKgK\", \n \"street_address\": \"123 Fake
303
- St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
304
- \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
305
- null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
306
- http_version: !!null
307
- recorded_at: Fri, 06 Jul 2012 04:23:26 GMT
308
- - request:
309
- method: post
310
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards
311
- body:
312
- encoding: UTF-8
313
- string: ! '{"card_number":"4111111111111111","expiration_month":"1","expiration_year":"2015"}'
314
- headers:
315
- User-Agent:
316
- - balanced-ruby/0.3.5
317
- Authorization:
318
- - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
319
- Content-Type:
320
- - application/json
321
- response:
322
- status:
323
- code: 201
324
- message: !!null
325
- headers:
326
- content-type:
327
- - application/json
328
- date:
329
- - Fri, 06 Jul 2012 04:23:26 GMT
330
- server:
331
- - nginx/1.0.14
332
- x-balanced-guru:
333
- - OHM54f506e2c72211e1a476026ba7e239a9
334
- x-balanced-marketplace:
335
- - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
336
- x-balanced-merchant:
337
- - TEST-MR1StaiKg1wIPZi4BqZBFKgK
338
- x-balanced-version:
339
- - ''
340
- content-length:
341
- - '370'
342
- connection:
343
- - Close
344
- body:
345
- encoding: US-ASCII
346
- string: ! "{\n \"card_type\": \"visa\", \n \"account\": null, \n \"name\":
347
- null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:23:26.706525Z\",
348
- \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2Aq6guygdFa8exKQq5FjHH\",
349
- \n \"expiration_month\": 1, \n \"is_valid\": true, \n \"meta\": {}, \n
350
- \ \"last_four\": 1111, \n \"id\": \"CC2Aq6guygdFa8exKQq5FjHH\"\n}"
351
- http_version: !!null
352
- recorded_at: Fri, 06 Jul 2012 04:23:27 GMT
353
- - request:
354
- method: post
355
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts
356
- body:
357
- encoding: UTF-8
358
- string: ! '{"email_address":"buyer3@example.org","card_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2yrjvC8Fm4MDGaAd0SWULs","name":"Jack
359
- Q Buyer"}'
360
- headers:
361
- User-Agent:
362
- - balanced-ruby/0.3.5
363
- Authorization:
364
- - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
365
- Content-Type:
366
- - application/json
367
- response:
368
- status:
369
- code: 201
370
- message: !!null
371
- headers:
372
- content-type:
373
- - application/json
374
- date:
375
- - Fri, 06 Jul 2012 04:23:27 GMT
376
- server:
377
- - nginx/1.0.14
378
- x-balanced-guru:
379
- - OHM5546a54cc72211e1a29c026ba7e5e72e
380
- x-balanced-marketplace:
381
- - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
382
- x-balanced-merchant:
383
- - TEST-MR1StaiKg1wIPZi4BqZBFKgK
384
- x-balanced-version:
385
- - ''
386
- content-length:
387
- - '1077'
388
- connection:
389
- - Close
390
- body:
391
- encoding: US-ASCII
392
- string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/holds\",
393
- \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
394
- \"2012-07-06T04:23:27.131789Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo\",
395
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/bank_accounts\",
396
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/refunds\",
397
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/debits\",
398
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/transactions\",
399
- \n \"email_address\": \"buyer3@example.org\", \n \"id\": \"AC2ATSLz8vo1BpOWG6LcFxzo\",
400
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/credits\",
401
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/cards\"\n}"
402
- http_version: !!null
403
- recorded_at: Fri, 06 Jul 2012 04:23:27 GMT
404
- - request:
405
- method: put
406
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo
407
- body:
408
- encoding: UTF-8
409
- string: ! '{"holds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/holds","name":"Jack
410
- Q Buyer","roles":["buyer"],"created_at":"2012-07-06T04:23:27.131789Z","bank_accounts_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/bank_accounts","refunds_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/refunds","meta":{},"debits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/debits","transactions_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/transactions","email_address":"buyer3@example.org","id":"AC2ATSLz8vo1BpOWG6LcFxzo","credits_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/credits","cards_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/cards","card_uri":"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/cards/CC2Aq6guygdFa8exKQq5FjHH"}'
411
- headers:
412
- User-Agent:
413
- - balanced-ruby/0.3.5
414
- Authorization:
415
- - Basic M2RkZGE5MDBjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
416
- Content-Type:
417
- - application/json
418
- response:
419
- status:
420
- code: 200
421
- message: !!null
422
- headers:
423
- content-type:
424
- - application/json
425
- date:
426
- - Fri, 06 Jul 2012 04:23:28 GMT
427
- server:
428
- - nginx/1.0.14
429
- x-balanced-guru:
430
- - OHM55cf94f6c72211e1a977026ba7e239a9
431
- x-balanced-marketplace:
432
- - TEST-MP1TeztGGOGLPPCo2cLKo6SZ
433
- x-balanced-merchant:
434
- - TEST-MR1StaiKg1wIPZi4BqZBFKgK
435
- x-balanced-version:
436
- - ''
437
- content-length:
438
- - '1077'
439
- connection:
440
- - Close
441
- body:
442
- encoding: US-ASCII
443
- string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/holds\",
444
- \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
445
- \"2012-07-06T04:23:27.131789Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo\",
446
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/bank_accounts\",
447
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/refunds\",
448
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/debits\",
449
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/transactions\",
450
- \n \"email_address\": \"buyer3@example.org\", \n \"id\": \"AC2ATSLz8vo1BpOWG6LcFxzo\",
451
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/credits\",
452
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1TeztGGOGLPPCo2cLKo6SZ/accounts/AC2ATSLz8vo1BpOWG6LcFxzo/cards\"\n}"
453
- http_version: !!null
454
- recorded_at: Fri, 06 Jul 2012 04:23:28 GMT
455
- recorded_with: VCR 2.2.2