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.
- data/.gitignore +29 -0
- data/Gemfile +1 -1
- data/balanced.gemspec +1 -1
- data/lib/{balanced.rb → balanced_ach.rb} +7 -7
- data/lib/{balanced → balanced_ach}/client.rb +1 -1
- data/lib/{balanced → balanced_ach}/error.rb +0 -0
- data/lib/{balanced → balanced_ach}/pager.rb +2 -2
- data/lib/{balanced → balanced_ach}/resources.rb +1 -1
- data/lib/{balanced → balanced_ach}/resources/bank_account.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/credit.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/debit.rb +0 -0
- data/lib/{balanced → balanced_ach}/resources/resource.rb +0 -0
- data/lib/{balanced → balanced_ach}/response/balanced_exception_middleware.rb +1 -1
- data/lib/{balanced → balanced_ach}/utils.rb +0 -0
- data/lib/{balanced → balanced_ach}/version.rb +1 -1
- data/x.rb +2 -7
- metadata +15 -114
- data/.idea/.name +0 -1
- data/.idea/.rakeTasks +0 -7
- data/.idea/balanced-ach.iml +0 -9
- data/.idea/encodings.xml +0 -5
- data/.idea/misc.xml +0 -5
- data/.idea/modules.xml +0 -9
- data/.idea/scopes/scope_settings.xml +0 -5
- data/.idea/vcs.xml +0 -7
- data/.idea/workspace.xml +0 -561
- data/spec/balanced/pager_spec.rb +0 -42
- data/spec/balanced/resources/account_spec.rb +0 -571
- data/spec/balanced/resources/api_key_spec.rb +0 -55
- data/spec/balanced/resources/hold_spec.rb +0 -55
- data/spec/balanced/resources/marketplace_spec.rb +0 -97
- data/spec/balanced/resources/transactions_spec.rb +0 -72
- data/spec/balanced/response/balanced_exception_middleware_spec.rb +0 -47
- data/spec/balanced_spec.rb +0 -77
- data/spec/cassettes/Balanced/configure.yml +0 -48
- data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +0 -48
- data/spec/cassettes/Balanced_Account.yml +0 -110
- data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +0 -240
- data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +0 -44
- data/spec/cassettes/Balanced_Account/_find.yml +0 -400
- data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +0 -186
- data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +0 -186
- data/spec/cassettes/Balanced_Account/_find_by_email.yml +0 -400
- data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +0 -175
- data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +0 -186
- data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +0 -530
- data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +0 -455
- data/spec/cassettes/Balanced_Account/buyer/_debit.yml +0 -363
- data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +0 -281
- data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +0 -281
- data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +0 -1013
- data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +0 -229
- data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +0 -536
- data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +0 -460
- data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +0 -232
- data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +0 -232
- data/spec/cassettes/Balanced_Account/merchant/new.yml +0 -179
- data/spec/cassettes/Balanced_ApiKey/attributes.yml +0 -48
- data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +0 -93
- data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +0 -48
- data/spec/cassettes/Balanced_Hold.yml +0 -335
- data/spec/cassettes/Balanced_Hold/_void.yml +0 -62
- data/spec/cassettes/Balanced_Hold/_void/after.yml +0 -62
- data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +0 -306
- data/spec/cassettes/Balanced_Marketplace.yml +0 -339
- data/spec/cassettes/Balanced_Transaction.yml +0 -1261
- data/spec/cassettes/Balanced_Transaction/Transaction.yml +0 -634
- data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +0 -634
- data/spec/client_spec.rb +0 -12
- data/spec/spec_helper.rb +0 -31
- data/spec/utils_spec.rb +0 -8
- data/upload_docs.rb +0 -39
@@ -1,1261 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://api.balancedpayments.com/v1/api_keys
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ! '{}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- balanced-ruby/0.3.5
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 201
|
17
|
-
message: !!null
|
18
|
-
headers:
|
19
|
-
content-type:
|
20
|
-
- application/json
|
21
|
-
date:
|
22
|
-
- Fri, 06 Jul 2012 04:15:27 GMT
|
23
|
-
server:
|
24
|
-
- nginx/1.0.14
|
25
|
-
x-balanced-guru:
|
26
|
-
- OHM3725751cc72111e1a977026ba7e239a9
|
27
|
-
x-balanced-version:
|
28
|
-
- ''
|
29
|
-
content-length:
|
30
|
-
- '854'
|
31
|
-
connection:
|
32
|
-
- Close
|
33
|
-
body:
|
34
|
-
encoding: US-ASCII
|
35
|
-
string: ! "{\n \"merchant\": {\n \"phone_number\": \"+16505551212\", \n
|
36
|
-
\ \"city\": \"Nowhere\", \n \"marketplace\": null, \n \"name\": \"William
|
37
|
-
Henry Cavendish III\", \n \"email_address\": \"whc@example.org\", \n \"created_at\":
|
38
|
-
\"2012-07-06T04:15:27.251166Z\", \n \"uri\": \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\",
|
39
|
-
\n \"accounts_uri\": \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\",
|
40
|
-
\n \"meta\": {}, \n \"postal_code\": \"90210\", \n \"country_code\":
|
41
|
-
\"USA\", \n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
|
42
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\": \"TEST-MR1GePqSVApIeytkkt2HmTQR\",
|
43
|
-
\n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"37619dc6c72111e1a977026ba7e239a9\",
|
44
|
-
\n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:15:27.485628Z\", \n
|
45
|
-
\ \"uri\": \"/v1/api_keys/AK1Gvd0iiBz2mVE2FTgcnBMJ\", \n \"id\": \"AK1Gvd0iiBz2mVE2FTgcnBMJ\"\n}"
|
46
|
-
http_version: !!null
|
47
|
-
recorded_at: Fri, 06 Jul 2012 04:15:28 GMT
|
48
|
-
- request:
|
49
|
-
method: post
|
50
|
-
uri: https://api.balancedpayments.com/v1/marketplaces
|
51
|
-
body:
|
52
|
-
encoding: UTF-8
|
53
|
-
string: ! '{}'
|
54
|
-
headers:
|
55
|
-
User-Agent:
|
56
|
-
- balanced-ruby/0.3.5
|
57
|
-
Authorization:
|
58
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
59
|
-
Content-Type:
|
60
|
-
- application/json
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 201
|
64
|
-
message: !!null
|
65
|
-
headers:
|
66
|
-
content-type:
|
67
|
-
- application/json
|
68
|
-
date:
|
69
|
-
- Fri, 06 Jul 2012 04:15:28 GMT
|
70
|
-
server:
|
71
|
-
- nginx/1.0.14
|
72
|
-
x-balanced-guru:
|
73
|
-
- OHM37ca9c68c72111e1a29c026ba7e5e72e
|
74
|
-
x-balanced-marketplace:
|
75
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
76
|
-
x-balanced-merchant:
|
77
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
78
|
-
x-balanced-version:
|
79
|
-
- ''
|
80
|
-
content-length:
|
81
|
-
- '2080'
|
82
|
-
connection:
|
83
|
-
- Close
|
84
|
-
body:
|
85
|
-
encoding: US-ASCII
|
86
|
-
string: ! "{\n \"support_email_address\": \"support@example.com\", \n \"bank_accounts_uri\":
|
87
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"owner_account\":
|
88
|
-
{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/holds\",
|
89
|
-
\n \"name\": \"William Henry Cavendish III\", \n \"roles\": [\n \"merchant\",
|
90
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:28.629190Z\",
|
91
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
|
92
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/bank_accounts\",
|
93
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/refunds\",
|
94
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/debits\",
|
95
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/transactions\",
|
96
|
-
\n \"email_address\": \"whc@example.org\", \n \"id\": \"AC1HMypc3ApJhgDXGewXmGgC\",
|
97
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/credits\",
|
98
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC/cards\"\n
|
99
|
-
\ }, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
|
100
|
-
\n \"meta\": {}, \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
|
101
|
-
\n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
|
102
|
-
\n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\",
|
103
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\",
|
104
|
-
\n \"in_escrow\": 0, \n \"domain_url\": \"example.com\", \n \"name\": \"Test
|
105
|
-
Marketplace\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\",
|
106
|
-
\n \"support_phone_number\": \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
|
107
|
-
\n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\"\n}"
|
108
|
-
http_version: !!null
|
109
|
-
recorded_at: Fri, 06 Jul 2012 04:15:29 GMT
|
110
|
-
- request:
|
111
|
-
method: get
|
112
|
-
uri: https://api.balancedpayments.com/v1/merchants
|
113
|
-
body:
|
114
|
-
encoding: US-ASCII
|
115
|
-
string: ''
|
116
|
-
headers:
|
117
|
-
User-Agent:
|
118
|
-
- balanced-ruby/0.3.5
|
119
|
-
Authorization:
|
120
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
121
|
-
response:
|
122
|
-
status:
|
123
|
-
code: 200
|
124
|
-
message: !!null
|
125
|
-
headers:
|
126
|
-
content-type:
|
127
|
-
- application/json
|
128
|
-
date:
|
129
|
-
- Fri, 06 Jul 2012 04:15:29 GMT
|
130
|
-
server:
|
131
|
-
- nginx/1.0.14
|
132
|
-
x-balanced-guru:
|
133
|
-
- OHM38a2cd68c72111e1b502026ba7e239a9
|
134
|
-
x-balanced-marketplace:
|
135
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
136
|
-
x-balanced-merchant:
|
137
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
138
|
-
x-balanced-version:
|
139
|
-
- ''
|
140
|
-
content-length:
|
141
|
-
- '2062'
|
142
|
-
connection:
|
143
|
-
- Close
|
144
|
-
body:
|
145
|
-
encoding: US-ASCII
|
146
|
-
string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
|
147
|
-
[\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
|
148
|
-
\n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
|
149
|
-
\"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
|
150
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
|
151
|
-
\n \"support_email_address\": \"support@example.com\", \n \"uri\":
|
152
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
|
153
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
|
154
|
-
\"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
|
155
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
|
156
|
-
\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
|
157
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
|
158
|
-
\n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
|
159
|
-
\n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
|
160
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
|
161
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
|
162
|
-
\"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
|
163
|
-
\n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
|
164
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
|
165
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
|
166
|
-
{}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
|
167
|
-
\n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
|
168
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
|
169
|
-
\"TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"street_address\": \"123 Fake
|
170
|
-
St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
|
171
|
-
\n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
|
172
|
-
null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
|
173
|
-
http_version: !!null
|
174
|
-
recorded_at: Fri, 06 Jul 2012 04:15:29 GMT
|
175
|
-
- request:
|
176
|
-
method: get
|
177
|
-
uri: https://api.balancedpayments.com/v1/merchants
|
178
|
-
body:
|
179
|
-
encoding: US-ASCII
|
180
|
-
string: ''
|
181
|
-
headers:
|
182
|
-
User-Agent:
|
183
|
-
- balanced-ruby/0.3.5
|
184
|
-
Authorization:
|
185
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
186
|
-
response:
|
187
|
-
status:
|
188
|
-
code: 200
|
189
|
-
message: !!null
|
190
|
-
headers:
|
191
|
-
content-type:
|
192
|
-
- application/json
|
193
|
-
date:
|
194
|
-
- Fri, 06 Jul 2012 04:15:30 GMT
|
195
|
-
server:
|
196
|
-
- nginx/1.0.14
|
197
|
-
x-balanced-guru:
|
198
|
-
- OHM38f0ffecc72111e1a29c026ba7e5e72e
|
199
|
-
x-balanced-marketplace:
|
200
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
201
|
-
x-balanced-merchant:
|
202
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
203
|
-
x-balanced-version:
|
204
|
-
- ''
|
205
|
-
content-length:
|
206
|
-
- '2062'
|
207
|
-
connection:
|
208
|
-
- Close
|
209
|
-
body:
|
210
|
-
encoding: US-ASCII
|
211
|
-
string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
|
212
|
-
[\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
|
213
|
-
\n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
|
214
|
-
\"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
|
215
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
|
216
|
-
\n \"support_email_address\": \"support@example.com\", \n \"uri\":
|
217
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
|
218
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
|
219
|
-
\"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
|
220
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
|
221
|
-
\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
|
222
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
|
223
|
-
\n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
|
224
|
-
\n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
|
225
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
|
226
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
|
227
|
-
\"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
|
228
|
-
\n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
|
229
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
|
230
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
|
231
|
-
{}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
|
232
|
-
\n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
|
233
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
|
234
|
-
\"TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"street_address\": \"123 Fake
|
235
|
-
St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
|
236
|
-
\n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
|
237
|
-
null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
|
238
|
-
http_version: !!null
|
239
|
-
recorded_at: Fri, 06 Jul 2012 04:15:30 GMT
|
240
|
-
- request:
|
241
|
-
method: post
|
242
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts
|
243
|
-
body:
|
244
|
-
encoding: UTF-8
|
245
|
-
string: ! '{"account_number":"1234567890","bank_code":"321174851","name":"Jack
|
246
|
-
Q Merchant"}'
|
247
|
-
headers:
|
248
|
-
User-Agent:
|
249
|
-
- balanced-ruby/0.3.5
|
250
|
-
Authorization:
|
251
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
252
|
-
Content-Type:
|
253
|
-
- application/json
|
254
|
-
response:
|
255
|
-
status:
|
256
|
-
code: 201
|
257
|
-
message: !!null
|
258
|
-
headers:
|
259
|
-
content-type:
|
260
|
-
- application/json
|
261
|
-
date:
|
262
|
-
- Fri, 06 Jul 2012 04:15:30 GMT
|
263
|
-
server:
|
264
|
-
- nginx/1.0.14
|
265
|
-
x-balanced-guru:
|
266
|
-
- OHM393564d4c72111e1a977026ba7e239a9
|
267
|
-
x-balanced-marketplace:
|
268
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
269
|
-
x-balanced-merchant:
|
270
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
271
|
-
x-balanced-version:
|
272
|
-
- ''
|
273
|
-
content-length:
|
274
|
-
- '366'
|
275
|
-
connection:
|
276
|
-
- Close
|
277
|
-
body:
|
278
|
-
encoding: US-ASCII
|
279
|
-
string: ! "{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"account\":
|
280
|
-
null, \n \"name\": \"Jack Q Merchant\", \n \"bank_code\": \"321174851\",
|
281
|
-
\n \"created_at\": \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
282
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\", \n
|
283
|
-
\ \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n}"
|
284
|
-
http_version: !!null
|
285
|
-
recorded_at: Fri, 06 Jul 2012 04:15:30 GMT
|
286
|
-
- request:
|
287
|
-
method: get
|
288
|
-
uri: https://api.balancedpayments.com/v1/merchants
|
289
|
-
body:
|
290
|
-
encoding: US-ASCII
|
291
|
-
string: ''
|
292
|
-
headers:
|
293
|
-
User-Agent:
|
294
|
-
- balanced-ruby/0.3.5
|
295
|
-
Authorization:
|
296
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
297
|
-
response:
|
298
|
-
status:
|
299
|
-
code: 200
|
300
|
-
message: !!null
|
301
|
-
headers:
|
302
|
-
content-type:
|
303
|
-
- application/json
|
304
|
-
date:
|
305
|
-
- Fri, 06 Jul 2012 04:15:31 GMT
|
306
|
-
server:
|
307
|
-
- nginx/1.0.14
|
308
|
-
x-balanced-guru:
|
309
|
-
- OHM3996353ec72111e1a29c026ba7e5e72e
|
310
|
-
x-balanced-marketplace:
|
311
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
312
|
-
x-balanced-merchant:
|
313
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
314
|
-
x-balanced-version:
|
315
|
-
- ''
|
316
|
-
content-length:
|
317
|
-
- '2062'
|
318
|
-
connection:
|
319
|
-
- Close
|
320
|
-
body:
|
321
|
-
encoding: US-ASCII
|
322
|
-
string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
|
323
|
-
[\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
|
324
|
-
\n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
|
325
|
-
\"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
|
326
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
|
327
|
-
\n \"support_email_address\": \"support@example.com\", \n \"uri\":
|
328
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
|
329
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
|
330
|
-
\"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
|
331
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
|
332
|
-
\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
|
333
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
|
334
|
-
\n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
|
335
|
-
\n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
|
336
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
|
337
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
|
338
|
-
\"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
|
339
|
-
\n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
|
340
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
|
341
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
|
342
|
-
{}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
|
343
|
-
\n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
|
344
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
|
345
|
-
\"TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"street_address\": \"123 Fake
|
346
|
-
St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
|
347
|
-
\n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
|
348
|
-
null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
|
349
|
-
http_version: !!null
|
350
|
-
recorded_at: Fri, 06 Jul 2012 04:15:31 GMT
|
351
|
-
- request:
|
352
|
-
method: get
|
353
|
-
uri: https://api.balancedpayments.com/v1/merchants
|
354
|
-
body:
|
355
|
-
encoding: US-ASCII
|
356
|
-
string: ''
|
357
|
-
headers:
|
358
|
-
User-Agent:
|
359
|
-
- balanced-ruby/0.3.5
|
360
|
-
Authorization:
|
361
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
362
|
-
response:
|
363
|
-
status:
|
364
|
-
code: 200
|
365
|
-
message: !!null
|
366
|
-
headers:
|
367
|
-
content-type:
|
368
|
-
- application/json
|
369
|
-
date:
|
370
|
-
- Fri, 06 Jul 2012 04:15:31 GMT
|
371
|
-
server:
|
372
|
-
- nginx/1.0.14
|
373
|
-
x-balanced-guru:
|
374
|
-
- OHM39e1ff28c72111e1a476026ba7e239a9
|
375
|
-
x-balanced-marketplace:
|
376
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
377
|
-
x-balanced-merchant:
|
378
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
379
|
-
x-balanced-version:
|
380
|
-
- ''
|
381
|
-
content-length:
|
382
|
-
- '2062'
|
383
|
-
connection:
|
384
|
-
- Close
|
385
|
-
body:
|
386
|
-
encoding: US-ASCII
|
387
|
-
string: ! "{\n \"first_uri\": \"/v1/merchants?limit=10&offset=0\", \n \"items\":
|
388
|
-
[\n {\n \"phone_number\": \"+16505551212\", \n \"city\": \"Nowhere\",
|
389
|
-
\n \"marketplace\": {\n \"in_escrow\": 0, \n \"domain_url\":
|
390
|
-
\"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
|
391
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
|
392
|
-
\n \"support_email_address\": \"support@example.com\", \n \"uri\":
|
393
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
|
394
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
|
395
|
-
\"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
|
396
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
|
397
|
-
\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
|
398
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
|
399
|
-
\n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
|
400
|
-
\n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
|
401
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
|
402
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
|
403
|
-
\"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
|
404
|
-
\n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
|
405
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
|
406
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
|
407
|
-
{}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
|
408
|
-
\n \"type\": \"person\", \n \"balance\": 0, \n \"api_keys_uri\":
|
409
|
-
\"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
|
410
|
-
\"TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"street_address\": \"123 Fake
|
411
|
-
St\"\n }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/merchants?limit=10&offset=0\",
|
412
|
-
\n \"limit\": 10, \n \"offset\": 0, \n \"total\": 1, \n \"next_uri\":
|
413
|
-
null, \n \"last_uri\": \"/v1/merchants?limit=10&offset=0\"\n}"
|
414
|
-
http_version: !!null
|
415
|
-
recorded_at: Fri, 06 Jul 2012 04:15:32 GMT
|
416
|
-
- request:
|
417
|
-
method: post
|
418
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards
|
419
|
-
body:
|
420
|
-
encoding: UTF-8
|
421
|
-
string: ! '{"card_number":"4111111111111111","expiration_month":"1","expiration_year":"2015"}'
|
422
|
-
headers:
|
423
|
-
User-Agent:
|
424
|
-
- balanced-ruby/0.3.5
|
425
|
-
Authorization:
|
426
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
427
|
-
Content-Type:
|
428
|
-
- application/json
|
429
|
-
response:
|
430
|
-
status:
|
431
|
-
code: 201
|
432
|
-
message: !!null
|
433
|
-
headers:
|
434
|
-
content-type:
|
435
|
-
- application/json
|
436
|
-
date:
|
437
|
-
- Fri, 06 Jul 2012 04:15:32 GMT
|
438
|
-
server:
|
439
|
-
- nginx/1.0.14
|
440
|
-
x-balanced-guru:
|
441
|
-
- OHM3a236b70c72111e1ad0d026ba7e5e72e
|
442
|
-
x-balanced-marketplace:
|
443
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
444
|
-
x-balanced-merchant:
|
445
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
446
|
-
x-balanced-version:
|
447
|
-
- ''
|
448
|
-
content-length:
|
449
|
-
- '370'
|
450
|
-
connection:
|
451
|
-
- Close
|
452
|
-
body:
|
453
|
-
encoding: US-ASCII
|
454
|
-
string: ! "{\n \"card_type\": \"visa\", \n \"account\": null, \n \"name\":
|
455
|
-
null, \n \"expiration_year\": 2015, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\",
|
456
|
-
\n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
457
|
-
\n \"expiration_month\": 1, \n \"is_valid\": true, \n \"meta\": {}, \n
|
458
|
-
\ \"last_four\": 1111, \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\"\n}"
|
459
|
-
http_version: !!null
|
460
|
-
recorded_at: Fri, 06 Jul 2012 04:15:32 GMT
|
461
|
-
- request:
|
462
|
-
method: post
|
463
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts
|
464
|
-
body:
|
465
|
-
encoding: UTF-8
|
466
|
-
string: ! '{"email_address":"merchant@example.org","bank_account_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ","name":"Jack
|
467
|
-
Q Merchant","meta":null,"merchant":{"type":"person","name":"Billy Jones","street_address":"801
|
468
|
-
High St.","postal_code":"94301","country":"USA","dob":"1842-01","phone_number":"+16505551234"}}'
|
469
|
-
headers:
|
470
|
-
User-Agent:
|
471
|
-
- balanced-ruby/0.3.5
|
472
|
-
Authorization:
|
473
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
474
|
-
Content-Type:
|
475
|
-
- application/json
|
476
|
-
response:
|
477
|
-
status:
|
478
|
-
code: 201
|
479
|
-
message: !!null
|
480
|
-
headers:
|
481
|
-
content-type:
|
482
|
-
- application/json
|
483
|
-
date:
|
484
|
-
- Fri, 06 Jul 2012 04:15:33 GMT
|
485
|
-
server:
|
486
|
-
- nginx/1.0.14
|
487
|
-
x-balanced-guru:
|
488
|
-
- OHM3a7729e0c72111e1a476026ba7e239a9
|
489
|
-
x-balanced-marketplace:
|
490
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
491
|
-
x-balanced-merchant:
|
492
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
493
|
-
x-balanced-version:
|
494
|
-
- ''
|
495
|
-
content-length:
|
496
|
-
- '1099'
|
497
|
-
connection:
|
498
|
-
- Close
|
499
|
-
body:
|
500
|
-
encoding: US-ASCII
|
501
|
-
string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
502
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\", \n
|
503
|
-
\ \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\", \n
|
504
|
-
\ \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
505
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
506
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
507
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
508
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
509
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
510
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
511
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n}"
|
512
|
-
http_version: !!null
|
513
|
-
recorded_at: Fri, 06 Jul 2012 04:15:33 GMT
|
514
|
-
- request:
|
515
|
-
method: post
|
516
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts
|
517
|
-
body:
|
518
|
-
encoding: UTF-8
|
519
|
-
string: ! '{"email_address":"buyer+transactions@example.org","card_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards/CC1LP0YFu1wFtca1ZI5amO6y","name":"Jack
|
520
|
-
Q Buyer","meta":null}'
|
521
|
-
headers:
|
522
|
-
User-Agent:
|
523
|
-
- balanced-ruby/0.3.5
|
524
|
-
Authorization:
|
525
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
526
|
-
Content-Type:
|
527
|
-
- application/json
|
528
|
-
response:
|
529
|
-
status:
|
530
|
-
code: 201
|
531
|
-
message: !!null
|
532
|
-
headers:
|
533
|
-
content-type:
|
534
|
-
- application/json
|
535
|
-
date:
|
536
|
-
- Fri, 06 Jul 2012 04:15:34 GMT
|
537
|
-
server:
|
538
|
-
- nginx/1.0.14
|
539
|
-
x-balanced-guru:
|
540
|
-
- OHM3b361e54c72111e1a29c026ba7e5e72e
|
541
|
-
x-balanced-marketplace:
|
542
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
543
|
-
x-balanced-merchant:
|
544
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
545
|
-
x-balanced-version:
|
546
|
-
- ''
|
547
|
-
content-length:
|
548
|
-
- '1089'
|
549
|
-
connection:
|
550
|
-
- Close
|
551
|
-
body:
|
552
|
-
encoding: US-ASCII
|
553
|
-
string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
554
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
|
555
|
-
\"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
556
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
557
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
558
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
559
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
560
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\": \"AC1NIz6vDOr8Tw4XRtWTewBU\",
|
561
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
562
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n}"
|
563
|
-
http_version: !!null
|
564
|
-
recorded_at: Fri, 06 Jul 2012 04:15:34 GMT
|
565
|
-
- request:
|
566
|
-
method: put
|
567
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU
|
568
|
-
body:
|
569
|
-
encoding: UTF-8
|
570
|
-
string: ! '{"holds_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds","name":"Jack
|
571
|
-
Q Buyer","roles":["buyer"],"created_at":"2012-07-06T04:15:33.906619Z","bank_accounts_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts","refunds_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds","meta":{},"debits_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits","transactions_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions","email_address":"buyer+transactions@example.org","id":"AC1NIz6vDOr8Tw4XRtWTewBU","credits_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits","cards_uri":"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards"}'
|
572
|
-
headers:
|
573
|
-
User-Agent:
|
574
|
-
- balanced-ruby/0.3.5
|
575
|
-
Authorization:
|
576
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
577
|
-
Content-Type:
|
578
|
-
- application/json
|
579
|
-
response:
|
580
|
-
status:
|
581
|
-
code: 200
|
582
|
-
message: !!null
|
583
|
-
headers:
|
584
|
-
content-type:
|
585
|
-
- application/json
|
586
|
-
date:
|
587
|
-
- Fri, 06 Jul 2012 04:15:34 GMT
|
588
|
-
server:
|
589
|
-
- nginx/1.0.14
|
590
|
-
x-balanced-guru:
|
591
|
-
- OHM3bbb907ac72111e19eae026ba7e5e72e
|
592
|
-
x-balanced-marketplace:
|
593
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
594
|
-
x-balanced-merchant:
|
595
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
596
|
-
x-balanced-version:
|
597
|
-
- ''
|
598
|
-
content-length:
|
599
|
-
- '1089'
|
600
|
-
connection:
|
601
|
-
- Close
|
602
|
-
body:
|
603
|
-
encoding: US-ASCII
|
604
|
-
string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
605
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
|
606
|
-
\"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
607
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
608
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
609
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
610
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
611
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\": \"AC1NIz6vDOr8Tw4XRtWTewBU\",
|
612
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
613
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n}"
|
614
|
-
http_version: !!null
|
615
|
-
recorded_at: Fri, 06 Jul 2012 04:15:35 GMT
|
616
|
-
- request:
|
617
|
-
method: post
|
618
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits
|
619
|
-
body:
|
620
|
-
encoding: UTF-8
|
621
|
-
string: ! '{"amount":1000,"appears_on_statement_as":null,"hold_uri":null,"meta":null,"description":"Transaction
|
622
|
-
#1","source_uri":null}'
|
623
|
-
headers:
|
624
|
-
User-Agent:
|
625
|
-
- balanced-ruby/0.3.5
|
626
|
-
Authorization:
|
627
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
628
|
-
Content-Type:
|
629
|
-
- application/json
|
630
|
-
response:
|
631
|
-
status:
|
632
|
-
code: 201
|
633
|
-
message: !!null
|
634
|
-
headers:
|
635
|
-
content-type:
|
636
|
-
- application/json
|
637
|
-
date:
|
638
|
-
- Fri, 06 Jul 2012 04:15:35 GMT
|
639
|
-
server:
|
640
|
-
- nginx/1.0.14
|
641
|
-
x-balanced-guru:
|
642
|
-
- OHM3c091bcec72111e1a476026ba7e239a9
|
643
|
-
x-balanced-marketplace:
|
644
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
645
|
-
x-balanced-merchant:
|
646
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
647
|
-
x-balanced-version:
|
648
|
-
- ''
|
649
|
-
content-length:
|
650
|
-
- '2670'
|
651
|
-
connection:
|
652
|
-
- Close
|
653
|
-
body:
|
654
|
-
encoding: US-ASCII
|
655
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
656
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
|
657
|
-
\n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
658
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
659
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
660
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
661
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
662
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
|
663
|
-
\"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
664
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
|
665
|
-
\ }, \n \"fee\": 29, \n \"description\": \"Transaction #1\", \n \"refunds_uri\":
|
666
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl/refunds\",
|
667
|
-
\n \"amount\": 1000, \n \"created_at\": \"2012-07-06T04:15:35.705826Z\",
|
668
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl\",
|
669
|
-
\n \"source\": {\n \"expiration_month\": 1, \n \"name\": null, \n \"expiration_year\":
|
670
|
-
2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
671
|
-
\n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
|
672
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
|
673
|
-
\ \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n }, \n \"transaction_number\":
|
674
|
-
\"W814-448-9958\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
|
675
|
-
\n \"hold\": {\n \"fee\": 30, \n \"description\": \"Transaction #1\",
|
676
|
-
\n \"created_at\": \"2012-07-06T04:15:35.477409Z\", \n \"is_void\":
|
677
|
-
false, \n \"expires_at\": \"2012-07-13T04:15:35.445601Z\", \n \"uri\":
|
678
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1PutPl2JQak6yqYbNOyze9\",
|
679
|
-
\n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
680
|
-
\n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
681
|
-
\n \"id\": \"HL1PutPl2JQak6yqYbNOyze9\"\n }, \n \"id\": \"WD1PJL360uW9eY7NNRSacPYl\",
|
682
|
-
\n \"available_at\": \"2012-07-06T04:15:35.635896Z\"\n}"
|
683
|
-
http_version: !!null
|
684
|
-
recorded_at: Fri, 06 Jul 2012 04:15:36 GMT
|
685
|
-
- request:
|
686
|
-
method: post
|
687
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits
|
688
|
-
body:
|
689
|
-
encoding: UTF-8
|
690
|
-
string: ! '{"amount":500,"meta":null,"description":"Credit from Debit #1","destination_uri":null}'
|
691
|
-
headers:
|
692
|
-
User-Agent:
|
693
|
-
- balanced-ruby/0.3.5
|
694
|
-
Authorization:
|
695
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
696
|
-
Content-Type:
|
697
|
-
- application/json
|
698
|
-
response:
|
699
|
-
status:
|
700
|
-
code: 201
|
701
|
-
message: !!null
|
702
|
-
headers:
|
703
|
-
content-type:
|
704
|
-
- application/json
|
705
|
-
date:
|
706
|
-
- Fri, 06 Jul 2012 04:15:36 GMT
|
707
|
-
server:
|
708
|
-
- nginx/1.0.14
|
709
|
-
x-balanced-guru:
|
710
|
-
- OHM3cb90d72c72111e19eae026ba7e5e72e
|
711
|
-
x-balanced-marketplace:
|
712
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
713
|
-
x-balanced-merchant:
|
714
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
715
|
-
x-balanced-version:
|
716
|
-
- ''
|
717
|
-
content-length:
|
718
|
-
- '1932'
|
719
|
-
connection:
|
720
|
-
- Close
|
721
|
-
body:
|
722
|
-
encoding: US-ASCII
|
723
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
724
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
|
725
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
|
726
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
727
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
728
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
729
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
730
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
731
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
732
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
733
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
|
734
|
-
\ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit #1\", \n \"amount\":
|
735
|
-
500, \n \"created_at\": \"2012-07-06T04:15:36.643481Z\", \n \"destination\":
|
736
|
-
{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\": \"Jack Q
|
737
|
-
Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\": \"2012-07-06T04:15:30.640361Z\",
|
738
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
739
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\",
|
740
|
-
\n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1QNewekENnrA3qGvATAPAq\",
|
741
|
-
\n \"transaction_number\": \"CR249-379-4533\", \n \"meta\": {}, \n \"id\":
|
742
|
-
\"CR1QNewekENnrA3qGvATAPAq\", \n \"available_at\": \"2012-07-06T04:15:36.597135Z\"\n}"
|
743
|
-
http_version: !!null
|
744
|
-
recorded_at: Fri, 06 Jul 2012 04:15:37 GMT
|
745
|
-
- request:
|
746
|
-
method: post
|
747
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits
|
748
|
-
body:
|
749
|
-
encoding: UTF-8
|
750
|
-
string: ! '{"amount":1000,"appears_on_statement_as":null,"hold_uri":null,"meta":null,"description":"Transaction
|
751
|
-
#2","source_uri":null}'
|
752
|
-
headers:
|
753
|
-
User-Agent:
|
754
|
-
- balanced-ruby/0.3.5
|
755
|
-
Authorization:
|
756
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
757
|
-
Content-Type:
|
758
|
-
- application/json
|
759
|
-
response:
|
760
|
-
status:
|
761
|
-
code: 201
|
762
|
-
message: !!null
|
763
|
-
headers:
|
764
|
-
content-type:
|
765
|
-
- application/json
|
766
|
-
date:
|
767
|
-
- Fri, 06 Jul 2012 04:15:37 GMT
|
768
|
-
server:
|
769
|
-
- nginx/1.0.14
|
770
|
-
x-balanced-guru:
|
771
|
-
- OHM3d4e1480c72111e1a476026ba7e239a9
|
772
|
-
x-balanced-marketplace:
|
773
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
774
|
-
x-balanced-merchant:
|
775
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
776
|
-
x-balanced-version:
|
777
|
-
- ''
|
778
|
-
content-length:
|
779
|
-
- '2670'
|
780
|
-
connection:
|
781
|
-
- Close
|
782
|
-
body:
|
783
|
-
encoding: US-ASCII
|
784
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
785
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
|
786
|
-
\n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
787
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
788
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
789
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
790
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
791
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
|
792
|
-
\"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
793
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
|
794
|
-
\ }, \n \"fee\": 29, \n \"description\": \"Transaction #2\", \n \"refunds_uri\":
|
795
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf/refunds\",
|
796
|
-
\n \"amount\": 1000, \n \"created_at\": \"2012-07-06T04:15:37.813974Z\",
|
797
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf\",
|
798
|
-
\n \"source\": {\n \"expiration_month\": 1, \n \"name\": null, \n \"expiration_year\":
|
799
|
-
2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
800
|
-
\n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
|
801
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
|
802
|
-
\ \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n }, \n \"transaction_number\":
|
803
|
-
\"W944-394-6865\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
|
804
|
-
\n \"hold\": {\n \"fee\": 30, \n \"description\": \"Transaction #2\",
|
805
|
-
\n \"created_at\": \"2012-07-06T04:15:37.604213Z\", \n \"is_void\":
|
806
|
-
false, \n \"expires_at\": \"2012-07-13T04:15:37.560694Z\", \n \"uri\":
|
807
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1RSMVMsA6CpZd4YtUNdfXX\",
|
808
|
-
\n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
809
|
-
\n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
810
|
-
\n \"id\": \"HL1RSMVMsA6CpZd4YtUNdfXX\"\n }, \n \"id\": \"WD1S6EJeH7DjG9jlYl9cpJVf\",
|
811
|
-
\n \"available_at\": \"2012-07-06T04:15:37.759752Z\"\n}"
|
812
|
-
http_version: !!null
|
813
|
-
recorded_at: Fri, 06 Jul 2012 04:15:38 GMT
|
814
|
-
- request:
|
815
|
-
method: post
|
816
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits
|
817
|
-
body:
|
818
|
-
encoding: UTF-8
|
819
|
-
string: ! '{"amount":500,"meta":null,"description":"Credit from Debit #2","destination_uri":null}'
|
820
|
-
headers:
|
821
|
-
User-Agent:
|
822
|
-
- balanced-ruby/0.3.5
|
823
|
-
Authorization:
|
824
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
825
|
-
Content-Type:
|
826
|
-
- application/json
|
827
|
-
response:
|
828
|
-
status:
|
829
|
-
code: 201
|
830
|
-
message: !!null
|
831
|
-
headers:
|
832
|
-
content-type:
|
833
|
-
- application/json
|
834
|
-
date:
|
835
|
-
- Fri, 06 Jul 2012 04:15:39 GMT
|
836
|
-
server:
|
837
|
-
- nginx/1.0.14
|
838
|
-
x-balanced-guru:
|
839
|
-
- OHM3e133ac6c72111e1ad0d026ba7e5e72e
|
840
|
-
x-balanced-marketplace:
|
841
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
842
|
-
x-balanced-merchant:
|
843
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
844
|
-
x-balanced-version:
|
845
|
-
- ''
|
846
|
-
content-length:
|
847
|
-
- '1932'
|
848
|
-
connection:
|
849
|
-
- Close
|
850
|
-
body:
|
851
|
-
encoding: US-ASCII
|
852
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
853
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
|
854
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
|
855
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
856
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
857
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
858
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
859
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
860
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
861
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
862
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
|
863
|
-
\ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit #2\", \n \"amount\":
|
864
|
-
500, \n \"created_at\": \"2012-07-06T04:15:38.890569Z\", \n \"destination\":
|
865
|
-
{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\": \"Jack Q
|
866
|
-
Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\": \"2012-07-06T04:15:30.640361Z\",
|
867
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
868
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\",
|
869
|
-
\n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1TjVpCU0MPXyGyR1j1todw\",
|
870
|
-
\n \"transaction_number\": \"CR726-501-6641\", \n \"meta\": {}, \n \"id\":
|
871
|
-
\"CR1TjVpCU0MPXyGyR1j1todw\", \n \"available_at\": \"2012-07-06T04:15:38.859411Z\"\n}"
|
872
|
-
http_version: !!null
|
873
|
-
recorded_at: Fri, 06 Jul 2012 04:15:39 GMT
|
874
|
-
- request:
|
875
|
-
method: post
|
876
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits
|
877
|
-
body:
|
878
|
-
encoding: UTF-8
|
879
|
-
string: ! '{"amount":1000,"appears_on_statement_as":null,"hold_uri":null,"meta":null,"description":"Transaction
|
880
|
-
#3","source_uri":null}'
|
881
|
-
headers:
|
882
|
-
User-Agent:
|
883
|
-
- balanced-ruby/0.3.5
|
884
|
-
Authorization:
|
885
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
886
|
-
Content-Type:
|
887
|
-
- application/json
|
888
|
-
response:
|
889
|
-
status:
|
890
|
-
code: 201
|
891
|
-
message: !!null
|
892
|
-
headers:
|
893
|
-
content-type:
|
894
|
-
- application/json
|
895
|
-
date:
|
896
|
-
- Fri, 06 Jul 2012 04:15:40 GMT
|
897
|
-
server:
|
898
|
-
- nginx/1.0.14
|
899
|
-
x-balanced-guru:
|
900
|
-
- OHM3ea272e0c72111e1b502026ba7e239a9
|
901
|
-
x-balanced-marketplace:
|
902
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
903
|
-
x-balanced-merchant:
|
904
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
905
|
-
x-balanced-version:
|
906
|
-
- ''
|
907
|
-
content-length:
|
908
|
-
- '2670'
|
909
|
-
connection:
|
910
|
-
- Close
|
911
|
-
body:
|
912
|
-
encoding: US-ASCII
|
913
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
914
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
|
915
|
-
\n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
916
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
917
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
918
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
919
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
920
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
|
921
|
-
\"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
922
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
|
923
|
-
\ }, \n \"fee\": 29, \n \"description\": \"Transaction #3\", \n \"refunds_uri\":
|
924
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH/refunds\",
|
925
|
-
\n \"amount\": 1000, \n \"created_at\": \"2012-07-06T04:15:40.051078Z\",
|
926
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH\",
|
927
|
-
\n \"source\": {\n \"expiration_month\": 1, \n \"name\": null, \n \"expiration_year\":
|
928
|
-
2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
929
|
-
\n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
|
930
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
|
931
|
-
\ \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n }, \n \"transaction_number\":
|
932
|
-
\"W232-875-1833\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
|
933
|
-
\n \"hold\": {\n \"fee\": 30, \n \"description\": \"Transaction #3\",
|
934
|
-
\n \"created_at\": \"2012-07-06T04:15:39.835135Z\", \n \"is_void\":
|
935
|
-
false, \n \"expires_at\": \"2012-07-13T04:15:39.797613Z\", \n \"uri\":
|
936
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1UomaiYDlzZ1JVy8k4gtRv\",
|
937
|
-
\n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
938
|
-
\n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
939
|
-
\n \"id\": \"HL1UomaiYDlzZ1JVy8k4gtRv\"\n }, \n \"id\": \"WD1UCNfBSOXSWURUs4DnOGRH\",
|
940
|
-
\n \"available_at\": \"2012-07-06T04:15:39.981386Z\"\n}"
|
941
|
-
http_version: !!null
|
942
|
-
recorded_at: Fri, 06 Jul 2012 04:15:40 GMT
|
943
|
-
- request:
|
944
|
-
method: post
|
945
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits
|
946
|
-
body:
|
947
|
-
encoding: UTF-8
|
948
|
-
string: ! '{"amount":500,"meta":null,"description":"Credit from Debit #3","destination_uri":null}'
|
949
|
-
headers:
|
950
|
-
User-Agent:
|
951
|
-
- balanced-ruby/0.3.5
|
952
|
-
Authorization:
|
953
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
954
|
-
Content-Type:
|
955
|
-
- application/json
|
956
|
-
response:
|
957
|
-
status:
|
958
|
-
code: 201
|
959
|
-
message: !!null
|
960
|
-
headers:
|
961
|
-
content-type:
|
962
|
-
- application/json
|
963
|
-
date:
|
964
|
-
- Fri, 06 Jul 2012 04:15:41 GMT
|
965
|
-
server:
|
966
|
-
- nginx/1.0.14
|
967
|
-
x-balanced-guru:
|
968
|
-
- OHM3f4557f8c72111e1ad0d026ba7e5e72e
|
969
|
-
x-balanced-marketplace:
|
970
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
971
|
-
x-balanced-merchant:
|
972
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
973
|
-
x-balanced-version:
|
974
|
-
- ''
|
975
|
-
content-length:
|
976
|
-
- '1932'
|
977
|
-
connection:
|
978
|
-
- Close
|
979
|
-
body:
|
980
|
-
encoding: US-ASCII
|
981
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
982
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
|
983
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
|
984
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
985
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
986
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
987
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
988
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
989
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
990
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
991
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
|
992
|
-
\ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit #3\", \n \"amount\":
|
993
|
-
500, \n \"created_at\": \"2012-07-06T04:15:40.943481Z\", \n \"destination\":
|
994
|
-
{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\": \"Jack Q
|
995
|
-
Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\": \"2012-07-06T04:15:30.640361Z\",
|
996
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
997
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\",
|
998
|
-
\n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1VD4w7kmrYeC8HzYbrdfHw\",
|
999
|
-
\n \"transaction_number\": \"CR045-871-2208\", \n \"meta\": {}, \n \"id\":
|
1000
|
-
\"CR1VD4w7kmrYeC8HzYbrdfHw\", \n \"available_at\": \"2012-07-06T04:15:40.896853Z\"\n}"
|
1001
|
-
http_version: !!null
|
1002
|
-
recorded_at: Fri, 06 Jul 2012 04:15:41 GMT
|
1003
|
-
- request:
|
1004
|
-
method: post
|
1005
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits
|
1006
|
-
body:
|
1007
|
-
encoding: UTF-8
|
1008
|
-
string: ! '{"amount":1000,"appears_on_statement_as":null,"hold_uri":null,"meta":null,"description":"Transaction
|
1009
|
-
#4","source_uri":null}'
|
1010
|
-
headers:
|
1011
|
-
User-Agent:
|
1012
|
-
- balanced-ruby/0.3.5
|
1013
|
-
Authorization:
|
1014
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
1015
|
-
Content-Type:
|
1016
|
-
- application/json
|
1017
|
-
response:
|
1018
|
-
status:
|
1019
|
-
code: 201
|
1020
|
-
message: !!null
|
1021
|
-
headers:
|
1022
|
-
content-type:
|
1023
|
-
- application/json
|
1024
|
-
date:
|
1025
|
-
- Fri, 06 Jul 2012 04:15:42 GMT
|
1026
|
-
server:
|
1027
|
-
- nginx/1.0.14
|
1028
|
-
x-balanced-guru:
|
1029
|
-
- OHM4003fd20c72111e1a476026ba7e239a9
|
1030
|
-
x-balanced-marketplace:
|
1031
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
1032
|
-
x-balanced-merchant:
|
1033
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
1034
|
-
x-balanced-version:
|
1035
|
-
- ''
|
1036
|
-
content-length:
|
1037
|
-
- '2670'
|
1038
|
-
connection:
|
1039
|
-
- Close
|
1040
|
-
body:
|
1041
|
-
encoding: US-ASCII
|
1042
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
1043
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
|
1044
|
-
\n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
1045
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
1046
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
1047
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
1048
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
1049
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
|
1050
|
-
\"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
1051
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
|
1052
|
-
\ }, \n \"fee\": 29, \n \"description\": \"Transaction #4\", \n \"refunds_uri\":
|
1053
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx/refunds\",
|
1054
|
-
\n \"amount\": 1000, \n \"created_at\": \"2012-07-06T04:15:42.367476Z\",
|
1055
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx\",
|
1056
|
-
\n \"source\": {\n \"expiration_month\": 1, \n \"name\": null, \n \"expiration_year\":
|
1057
|
-
2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
1058
|
-
\n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
|
1059
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
|
1060
|
-
\ \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n }, \n \"transaction_number\":
|
1061
|
-
\"W258-221-2253\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
|
1062
|
-
\n \"hold\": {\n \"fee\": 30, \n \"description\": \"Transaction #4\",
|
1063
|
-
\n \"created_at\": \"2012-07-06T04:15:42.158682Z\", \n \"is_void\":
|
1064
|
-
false, \n \"expires_at\": \"2012-07-13T04:15:42.114735Z\", \n \"uri\":
|
1065
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1X0nZ1uDxbOOTy7t0ayCEh\",
|
1066
|
-
\n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
1067
|
-
\n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
1068
|
-
\n \"id\": \"HL1X0nZ1uDxbOOTy7t0ayCEh\"\n }, \n \"id\": \"WD1XejxX8fK67u4NB26yp6kx\",
|
1069
|
-
\n \"available_at\": \"2012-07-06T04:15:42.316460Z\"\n}"
|
1070
|
-
http_version: !!null
|
1071
|
-
recorded_at: Fri, 06 Jul 2012 04:15:43 GMT
|
1072
|
-
- request:
|
1073
|
-
method: post
|
1074
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits
|
1075
|
-
body:
|
1076
|
-
encoding: UTF-8
|
1077
|
-
string: ! '{"amount":500,"meta":null,"description":"Credit from Debit #4","destination_uri":null}'
|
1078
|
-
headers:
|
1079
|
-
User-Agent:
|
1080
|
-
- balanced-ruby/0.3.5
|
1081
|
-
Authorization:
|
1082
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
1083
|
-
Content-Type:
|
1084
|
-
- application/json
|
1085
|
-
response:
|
1086
|
-
status:
|
1087
|
-
code: 201
|
1088
|
-
message: !!null
|
1089
|
-
headers:
|
1090
|
-
content-type:
|
1091
|
-
- application/json
|
1092
|
-
date:
|
1093
|
-
- Fri, 06 Jul 2012 04:15:43 GMT
|
1094
|
-
server:
|
1095
|
-
- nginx/1.0.14
|
1096
|
-
x-balanced-guru:
|
1097
|
-
- OHM40c4a408c72111e19eae026ba7e5e72e
|
1098
|
-
x-balanced-marketplace:
|
1099
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
1100
|
-
x-balanced-merchant:
|
1101
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
1102
|
-
x-balanced-version:
|
1103
|
-
- ''
|
1104
|
-
content-length:
|
1105
|
-
- '1932'
|
1106
|
-
connection:
|
1107
|
-
- Close
|
1108
|
-
body:
|
1109
|
-
encoding: US-ASCII
|
1110
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
1111
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
|
1112
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
|
1113
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
1114
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
1115
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
1116
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
1117
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
1118
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
1119
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
1120
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
|
1121
|
-
\ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit #4\", \n \"amount\":
|
1122
|
-
500, \n \"created_at\": \"2012-07-06T04:15:43.407713Z\", \n \"destination\":
|
1123
|
-
{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\": \"Jack Q
|
1124
|
-
Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\": \"2012-07-06T04:15:30.640361Z\",
|
1125
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
1126
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\",
|
1127
|
-
\n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1YoV0H30lvrJXJ4KUop1sG\",
|
1128
|
-
\n \"transaction_number\": \"CR077-108-5350\", \n \"meta\": {}, \n \"id\":
|
1129
|
-
\"CR1YoV0H30lvrJXJ4KUop1sG\", \n \"available_at\": \"2012-07-06T04:15:43.374719Z\"\n}"
|
1130
|
-
http_version: !!null
|
1131
|
-
recorded_at: Fri, 06 Jul 2012 04:15:43 GMT
|
1132
|
-
- request:
|
1133
|
-
method: post
|
1134
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits
|
1135
|
-
body:
|
1136
|
-
encoding: UTF-8
|
1137
|
-
string: ! '{"amount":1000,"appears_on_statement_as":null,"hold_uri":null,"meta":null,"description":"Transaction
|
1138
|
-
#5","source_uri":null}'
|
1139
|
-
headers:
|
1140
|
-
User-Agent:
|
1141
|
-
- balanced-ruby/0.3.5
|
1142
|
-
Authorization:
|
1143
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
1144
|
-
Content-Type:
|
1145
|
-
- application/json
|
1146
|
-
response:
|
1147
|
-
status:
|
1148
|
-
code: 201
|
1149
|
-
message: !!null
|
1150
|
-
headers:
|
1151
|
-
content-type:
|
1152
|
-
- application/json
|
1153
|
-
date:
|
1154
|
-
- Fri, 06 Jul 2012 04:15:44 GMT
|
1155
|
-
server:
|
1156
|
-
- nginx/1.0.14
|
1157
|
-
x-balanced-guru:
|
1158
|
-
- OHM414c98e0c72111e1a476026ba7e239a9
|
1159
|
-
x-balanced-marketplace:
|
1160
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
1161
|
-
x-balanced-merchant:
|
1162
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
1163
|
-
x-balanced-version:
|
1164
|
-
- ''
|
1165
|
-
content-length:
|
1166
|
-
- '2670'
|
1167
|
-
connection:
|
1168
|
-
- Close
|
1169
|
-
body:
|
1170
|
-
encoding: US-ASCII
|
1171
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
|
1172
|
-
\n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n ],
|
1173
|
-
\n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
1174
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
|
1175
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
|
1176
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
|
1177
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
|
1178
|
-
\n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
|
1179
|
-
\"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
|
1180
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
|
1181
|
-
\ }, \n \"fee\": 29, \n \"description\": \"Transaction #5\", \n \"refunds_uri\":
|
1182
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB/refunds\",
|
1183
|
-
\n \"amount\": 1000, \n \"created_at\": \"2012-07-06T04:15:44.518800Z\",
|
1184
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB\",
|
1185
|
-
\n \"source\": {\n \"expiration_month\": 1, \n \"name\": null, \n \"expiration_year\":
|
1186
|
-
2015, \n \"brand\": \"Visa\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
1187
|
-
\n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
|
1188
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 1111, \n
|
1189
|
-
\ \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n }, \n \"transaction_number\":
|
1190
|
-
\"W126-199-1707\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
|
1191
|
-
\n \"hold\": {\n \"fee\": 30, \n \"description\": \"Transaction #5\",
|
1192
|
-
\n \"created_at\": \"2012-07-06T04:15:44.294547Z\", \n \"is_void\":
|
1193
|
-
false, \n \"expires_at\": \"2012-07-13T04:15:44.264105Z\", \n \"uri\":
|
1194
|
-
\"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1ZpkjvL36zSuTHp9Bc2CWR\",
|
1195
|
-
\n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
|
1196
|
-
\n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
|
1197
|
-
\n \"id\": \"HL1ZpkjvL36zSuTHp9Bc2CWR\"\n }, \n \"id\": \"WD1ZElmKz5gaPICjnJadnUWB\",
|
1198
|
-
\n \"available_at\": \"2012-07-06T04:15:44.447972Z\"\n}"
|
1199
|
-
http_version: !!null
|
1200
|
-
recorded_at: Fri, 06 Jul 2012 04:15:45 GMT
|
1201
|
-
- request:
|
1202
|
-
method: post
|
1203
|
-
uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits
|
1204
|
-
body:
|
1205
|
-
encoding: UTF-8
|
1206
|
-
string: ! '{"amount":500,"meta":null,"description":"Credit from Debit #5","destination_uri":null}'
|
1207
|
-
headers:
|
1208
|
-
User-Agent:
|
1209
|
-
- balanced-ruby/0.3.5
|
1210
|
-
Authorization:
|
1211
|
-
- Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
|
1212
|
-
Content-Type:
|
1213
|
-
- application/json
|
1214
|
-
response:
|
1215
|
-
status:
|
1216
|
-
code: 201
|
1217
|
-
message: !!null
|
1218
|
-
headers:
|
1219
|
-
content-type:
|
1220
|
-
- application/json
|
1221
|
-
date:
|
1222
|
-
- Fri, 06 Jul 2012 04:15:46 GMT
|
1223
|
-
server:
|
1224
|
-
- nginx/1.0.14
|
1225
|
-
x-balanced-guru:
|
1226
|
-
- OHM423fe7d4c72111e19eae026ba7e5e72e
|
1227
|
-
x-balanced-marketplace:
|
1228
|
-
- TEST-MP1HgCDnKZSw46yAiLUC5aNM
|
1229
|
-
x-balanced-merchant:
|
1230
|
-
- TEST-MR1GePqSVApIeytkkt2HmTQR
|
1231
|
-
x-balanced-version:
|
1232
|
-
- ''
|
1233
|
-
content-length:
|
1234
|
-
- '1932'
|
1235
|
-
connection:
|
1236
|
-
- Close
|
1237
|
-
body:
|
1238
|
-
encoding: US-ASCII
|
1239
|
-
string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
|
1240
|
-
\n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
|
1241
|
-
\n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
|
1242
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
|
1243
|
-
\n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
|
1244
|
-
\n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
|
1245
|
-
\n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
|
1246
|
-
\n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
|
1247
|
-
\n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
|
1248
|
-
\n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
|
1249
|
-
\n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
|
1250
|
-
\ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit #5\", \n \"amount\":
|
1251
|
-
500, \n \"created_at\": \"2012-07-06T04:15:45.923044Z\", \n \"destination\":
|
1252
|
-
{\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\": \"Jack Q
|
1253
|
-
Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\": \"2012-07-06T04:15:30.640361Z\",
|
1254
|
-
\n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
|
1255
|
-
\n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\",
|
1256
|
-
\n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR21ek5SlHEUm7Gzhg320Mhg\",
|
1257
|
-
\n \"transaction_number\": \"CR353-365-2080\", \n \"meta\": {}, \n \"id\":
|
1258
|
-
\"CR21ek5SlHEUm7Gzhg320Mhg\", \n \"available_at\": \"2012-07-06T04:15:45.876405Z\"\n}"
|
1259
|
-
http_version: !!null
|
1260
|
-
recorded_at: Fri, 06 Jul 2012 04:15:46 GMT
|
1261
|
-
recorded_with: VCR 2.2.2
|