balanced-ach 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.idea/.name +1 -0
  2. data/.idea/.rakeTasks +7 -0
  3. data/.idea/balanced-ach.iml +9 -0
  4. data/.idea/encodings.xml +5 -0
  5. data/.idea/misc.xml +5 -0
  6. data/.idea/modules.xml +9 -0
  7. data/.idea/scopes/scope_settings.xml +5 -0
  8. data/.idea/vcs.xml +7 -0
  9. data/.idea/workspace.xml +561 -0
  10. data/CONTRIBUTORS +1 -0
  11. data/Gemfile +19 -0
  12. data/Gemfile.lock +64 -0
  13. data/Guardfile +7 -0
  14. data/LICENSE +22 -0
  15. data/README.md +64 -0
  16. data/Rakefile +12 -0
  17. data/balanced.gemspec +22 -0
  18. data/lib/balanced.rb +84 -0
  19. data/lib/balanced/client.rb +82 -0
  20. data/lib/balanced/error.rb +85 -0
  21. data/lib/balanced/pager.rb +201 -0
  22. data/lib/balanced/resources.rb +5 -0
  23. data/lib/balanced/resources/bank_account.rb +36 -0
  24. data/lib/balanced/resources/credit.rb +20 -0
  25. data/lib/balanced/resources/debit.rb +27 -0
  26. data/lib/balanced/resources/resource.rb +158 -0
  27. data/lib/balanced/response/balanced_exception_middleware.rb +33 -0
  28. data/lib/balanced/utils.rb +62 -0
  29. data/lib/balanced/version.rb +3 -0
  30. data/spec/balanced/pager_spec.rb +42 -0
  31. data/spec/balanced/resources/account_spec.rb +571 -0
  32. data/spec/balanced/resources/api_key_spec.rb +55 -0
  33. data/spec/balanced/resources/hold_spec.rb +55 -0
  34. data/spec/balanced/resources/marketplace_spec.rb +97 -0
  35. data/spec/balanced/resources/transactions_spec.rb +72 -0
  36. data/spec/balanced/response/balanced_exception_middleware_spec.rb +47 -0
  37. data/spec/balanced_spec.rb +77 -0
  38. data/spec/cassettes/Balanced/configure.yml +48 -0
  39. data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +48 -0
  40. data/spec/cassettes/Balanced_Account.yml +110 -0
  41. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +240 -0
  42. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +44 -0
  43. data/spec/cassettes/Balanced_Account/_find.yml +400 -0
  44. data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +186 -0
  45. data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +186 -0
  46. data/spec/cassettes/Balanced_Account/_find_by_email.yml +400 -0
  47. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +175 -0
  48. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +186 -0
  49. data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +530 -0
  50. data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +455 -0
  51. data/spec/cassettes/Balanced_Account/buyer/_debit.yml +363 -0
  52. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +281 -0
  53. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +281 -0
  54. data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +1013 -0
  55. data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +229 -0
  56. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +536 -0
  57. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +460 -0
  58. data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +232 -0
  59. data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +232 -0
  60. data/spec/cassettes/Balanced_Account/merchant/new.yml +179 -0
  61. data/spec/cassettes/Balanced_ApiKey/attributes.yml +48 -0
  62. data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +93 -0
  63. data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +48 -0
  64. data/spec/cassettes/Balanced_Hold.yml +335 -0
  65. data/spec/cassettes/Balanced_Hold/_void.yml +62 -0
  66. data/spec/cassettes/Balanced_Hold/_void/after.yml +62 -0
  67. data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +306 -0
  68. data/spec/cassettes/Balanced_Marketplace.yml +339 -0
  69. data/spec/cassettes/Balanced_Transaction.yml +1261 -0
  70. data/spec/cassettes/Balanced_Transaction/Transaction.yml +634 -0
  71. data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +634 -0
  72. data/spec/client_spec.rb +12 -0
  73. data/spec/spec_helper.rb +31 -0
  74. data/spec/utils_spec.rb +8 -0
  75. data/upload_docs.rb +39 -0
  76. data/x.rb +22 -0
  77. metadata +199 -0
@@ -0,0 +1,634 @@
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 Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:15:46 GMT
23
+ server:
24
+ - nginx/1.0.14
25
+ x-balanced-guru:
26
+ - OHM42e9eb26c72111e1a476026ba7e239a9
27
+ x-balanced-marketplace:
28
+ - TEST-MP1HgCDnKZSw46yAiLUC5aNM
29
+ x-balanced-merchant:
30
+ - TEST-MR1GePqSVApIeytkkt2HmTQR
31
+ x-balanced-version:
32
+ - ''
33
+ content-length:
34
+ - '2068'
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\": 2500, \n \"domain_url\":
42
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
43
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
44
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
45
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
46
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
47
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
48
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
49
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
50
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
51
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
52
+ \n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
53
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
54
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
55
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
56
+ \n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
57
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
58
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
59
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
60
+ \n \"type\": \"person\", \n \"balance\": -295, \n \"api_keys_uri\":
61
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
62
+ \"TEST-MR1GePqSVApIeytkkt2HmTQR\", \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:15:47 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 Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:15:47 GMT
88
+ server:
89
+ - nginx/1.0.14
90
+ x-balanced-guru:
91
+ - OHM4335dda6c72111e1a29c026ba7e5e72e
92
+ x-balanced-marketplace:
93
+ - TEST-MP1HgCDnKZSw46yAiLUC5aNM
94
+ x-balanced-merchant:
95
+ - TEST-MR1GePqSVApIeytkkt2HmTQR
96
+ x-balanced-version:
97
+ - ''
98
+ content-length:
99
+ - '2068'
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\": 2500, \n \"domain_url\":
107
+ \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
108
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1HMypc3ApJhgDXGewXmGgC\",
109
+ \n \"support_email_address\": \"support@example.com\", \n \"uri\":
110
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"bank_accounts_uri\":
111
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/bank_accounts\", \n \"support_phone_number\":
112
+ \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/refunds\",
113
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits\",
114
+ \n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds\",
115
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions\",
116
+ \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts\",
117
+ \n \"id\": \"TEST-MP1HgCDnKZSw46yAiLUC5aNM\", \n \"credits_uri\":
118
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits\", \n \"cards_uri\":
119
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/cards\"\n }, \n \"name\":
120
+ \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
121
+ \n \"created_at\": \"2012-07-06T04:15:27.251166Z\", \n \"uri\":
122
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR\", \n \"accounts_uri\":
123
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/accounts\", \n \"meta\":
124
+ {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
125
+ \n \"type\": \"person\", \n \"balance\": -295, \n \"api_keys_uri\":
126
+ \"/v1/merchants/TEST-MR1GePqSVApIeytkkt2HmTQR/api_keys\", \n \"id\":
127
+ \"TEST-MR1GePqSVApIeytkkt2HmTQR\", \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:15:47 GMT
133
+ - request:
134
+ method: get
135
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - balanced-ruby/0.3.5
142
+ Authorization:
143
+ - Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
144
+ response:
145
+ status:
146
+ code: 200
147
+ message: !!null
148
+ headers:
149
+ content-type:
150
+ - application/json
151
+ date:
152
+ - Fri, 06 Jul 2012 04:15:48 GMT
153
+ server:
154
+ - nginx/1.0.14
155
+ x-balanced-guru:
156
+ - OHM43b021bac72111e1a977026ba7e239a9
157
+ x-balanced-marketplace:
158
+ - TEST-MP1HgCDnKZSw46yAiLUC5aNM
159
+ x-balanced-merchant:
160
+ - TEST-MR1GePqSVApIeytkkt2HmTQR
161
+ x-balanced-version:
162
+ - ''
163
+ content-length:
164
+ - '27074'
165
+ connection:
166
+ - Close
167
+ body:
168
+ encoding: US-ASCII
169
+ string: ! "{\n \"first_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=0\",
170
+ \n \"items\": [\n {\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
171
+ \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
172
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
173
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
174
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
175
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
176
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
177
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
178
+ \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
179
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
180
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
181
+ \ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit
182
+ #1\", \n \"created_at\": \"2012-07-06T04:15:36.643481Z\", \n \"destination\":
183
+ {\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\":
184
+ \"Jack Q Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\":
185
+ \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
186
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
187
+ \"7890\", \n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"transaction_number\":
188
+ \"CR249-379-4533\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1QNewekENnrA3qGvATAPAq\",
189
+ \n \"amount\": 500, \n \"meta\": {}, \n \"id\": \"CR1QNewekENnrA3qGvATAPAq\",
190
+ \n \"available_at\": \"2012-07-06T04:15:36.597135Z\"\n }, \n {\n
191
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
192
+ \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
193
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
194
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
195
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
196
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
197
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
198
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
199
+ \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
200
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
201
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
202
+ \ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit
203
+ #5\", \n \"created_at\": \"2012-07-06T04:15:45.923044Z\", \n \"destination\":
204
+ {\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\":
205
+ \"Jack Q Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\":
206
+ \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
207
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
208
+ \"7890\", \n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"transaction_number\":
209
+ \"CR353-365-2080\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR21ek5SlHEUm7Gzhg320Mhg\",
210
+ \n \"amount\": 500, \n \"meta\": {}, \n \"id\": \"CR21ek5SlHEUm7Gzhg320Mhg\",
211
+ \n \"available_at\": \"2012-07-06T04:15:45.876405Z\"\n }, \n {\n
212
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
213
+ \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
214
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
215
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
216
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
217
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
218
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
219
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
220
+ \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
221
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
222
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
223
+ \ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit
224
+ #3\", \n \"created_at\": \"2012-07-06T04:15:40.943481Z\", \n \"destination\":
225
+ {\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\":
226
+ \"Jack Q Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\":
227
+ \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
228
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
229
+ \"7890\", \n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"transaction_number\":
230
+ \"CR045-871-2208\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1VD4w7kmrYeC8HzYbrdfHw\",
231
+ \n \"amount\": 500, \n \"meta\": {}, \n \"id\": \"CR1VD4w7kmrYeC8HzYbrdfHw\",
232
+ \n \"available_at\": \"2012-07-06T04:15:40.896853Z\"\n }, \n {\n
233
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
234
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
235
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
236
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
237
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
238
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
239
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
240
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
241
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
242
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
243
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
244
+ \ }, \n \"fee\": 29, \n \"description\": \"Transaction #3\",
245
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
246
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
247
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
248
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
249
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
250
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
251
+ \n \"created_at\": \"2012-07-06T04:15:40.051078Z\", \n \"transaction_number\":
252
+ \"W232-875-1833\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH\",
253
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH/refunds\",
254
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
255
+ \"example.com\", \n \"hold\": {\n \"fee\": 30, \n \"description\":
256
+ \"Transaction #3\", \n \"created_at\": \"2012-07-06T04:15:39.835135Z\",
257
+ \n \"is_void\": false, \n \"expires_at\": \"2012-07-13T04:15:39.797613Z\",
258
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1UomaiYDlzZ1JVy8k4gtRv\",
259
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\":
260
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
261
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
262
+ \n \"id\": \"HL1UomaiYDlzZ1JVy8k4gtRv\"\n }, \n \"id\": \"WD1UCNfBSOXSWURUs4DnOGRH\",
263
+ \n \"available_at\": \"2012-07-06T04:15:39.981386Z\"\n }, \n {\n
264
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
265
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
266
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
267
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
268
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
269
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
270
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
271
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
272
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
273
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
274
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
275
+ \ }, \n \"fee\": 29, \n \"description\": \"Transaction #4\",
276
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
277
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
278
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
279
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
280
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
281
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
282
+ \n \"created_at\": \"2012-07-06T04:15:42.367476Z\", \n \"transaction_number\":
283
+ \"W258-221-2253\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx\",
284
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx/refunds\",
285
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
286
+ \"example.com\", \n \"hold\": {\n \"fee\": 30, \n \"description\":
287
+ \"Transaction #4\", \n \"created_at\": \"2012-07-06T04:15:42.158682Z\",
288
+ \n \"is_void\": false, \n \"expires_at\": \"2012-07-13T04:15:42.114735Z\",
289
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1X0nZ1uDxbOOTy7t0ayCEh\",
290
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\":
291
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
292
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
293
+ \n \"id\": \"HL1X0nZ1uDxbOOTy7t0ayCEh\"\n }, \n \"id\": \"WD1XejxX8fK67u4NB26yp6kx\",
294
+ \n \"available_at\": \"2012-07-06T04:15:42.316460Z\"\n }, \n {\n
295
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
296
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
297
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
298
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
299
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
300
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
301
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
302
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
303
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
304
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
305
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
306
+ \ }, \n \"fee\": 29, \n \"description\": \"Transaction #2\",
307
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
308
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
309
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
310
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
311
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
312
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
313
+ \n \"created_at\": \"2012-07-06T04:15:37.813974Z\", \n \"transaction_number\":
314
+ \"W944-394-6865\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf\",
315
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf/refunds\",
316
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
317
+ \"example.com\", \n \"hold\": {\n \"fee\": 30, \n \"description\":
318
+ \"Transaction #2\", \n \"created_at\": \"2012-07-06T04:15:37.604213Z\",
319
+ \n \"is_void\": false, \n \"expires_at\": \"2012-07-13T04:15:37.560694Z\",
320
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1RSMVMsA6CpZd4YtUNdfXX\",
321
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\":
322
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
323
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
324
+ \n \"id\": \"HL1RSMVMsA6CpZd4YtUNdfXX\"\n }, \n \"id\": \"WD1S6EJeH7DjG9jlYl9cpJVf\",
325
+ \n \"available_at\": \"2012-07-06T04:15:37.759752Z\"\n }, \n {\n
326
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
327
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
328
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
329
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
330
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
331
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
332
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
333
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
334
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
335
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
336
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
337
+ \ }, \n \"fee\": 29, \n \"description\": \"Transaction #1\",
338
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
339
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
340
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
341
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
342
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
343
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
344
+ \n \"created_at\": \"2012-07-06T04:15:35.705826Z\", \n \"transaction_number\":
345
+ \"W814-448-9958\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl\",
346
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl/refunds\",
347
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
348
+ \"example.com\", \n \"hold\": {\n \"fee\": 30, \n \"description\":
349
+ \"Transaction #1\", \n \"created_at\": \"2012-07-06T04:15:35.477409Z\",
350
+ \n \"is_void\": false, \n \"expires_at\": \"2012-07-13T04:15:35.445601Z\",
351
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1PutPl2JQak6yqYbNOyze9\",
352
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\":
353
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
354
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
355
+ \n \"id\": \"HL1PutPl2JQak6yqYbNOyze9\"\n }, \n \"id\": \"WD1PJL360uW9eY7NNRSacPYl\",
356
+ \n \"available_at\": \"2012-07-06T04:15:35.635896Z\"\n }, \n {\n
357
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
358
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
359
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
360
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
361
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
362
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
363
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
364
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
365
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
366
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
367
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
368
+ \ }, \n \"fee\": 30, \n \"description\": \"Transaction #2\",
369
+ \n \"created_at\": \"2012-07-06T04:15:37.604213Z\", \n \"is_void\":
370
+ false, \n \"expires_at\": \"2012-07-13T04:15:37.560694Z\", \n \"uri\":
371
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1RSMVMsA6CpZd4YtUNdfXX\",
372
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
373
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
374
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
375
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
376
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
377
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
378
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"debit\": {\n \"hold_uri\":
379
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1RSMVMsA6CpZd4YtUNdfXX\",
380
+ \n \"fee\": 29, \n \"description\": \"Transaction #2\", \n \"source_uri\":
381
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
382
+ \n \"created_at\": \"2012-07-06T04:15:37.813974Z\", \n \"transaction_number\":
383
+ \"W944-394-6865\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf\",
384
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1S6EJeH7DjG9jlYl9cpJVf/refunds\",
385
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
386
+ \"example.com\", \n \"id\": \"WD1S6EJeH7DjG9jlYl9cpJVf\", \n \"available_at\":
387
+ \"2012-07-06T04:15:37.759752Z\"\n }, \n \"id\": \"HL1RSMVMsA6CpZd4YtUNdfXX\"\n
388
+ \ }, \n {\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
389
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
390
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
391
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
392
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
393
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
394
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
395
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
396
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
397
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
398
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
399
+ \ }, \n \"fee\": 30, \n \"description\": \"Transaction #4\",
400
+ \n \"created_at\": \"2012-07-06T04:15:42.158682Z\", \n \"is_void\":
401
+ false, \n \"expires_at\": \"2012-07-13T04:15:42.114735Z\", \n \"uri\":
402
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1X0nZ1uDxbOOTy7t0ayCEh\",
403
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
404
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
405
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
406
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
407
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
408
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
409
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"debit\": {\n \"hold_uri\":
410
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1X0nZ1uDxbOOTy7t0ayCEh\",
411
+ \n \"fee\": 29, \n \"description\": \"Transaction #4\", \n \"source_uri\":
412
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
413
+ \n \"created_at\": \"2012-07-06T04:15:42.367476Z\", \n \"transaction_number\":
414
+ \"W258-221-2253\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx\",
415
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1XejxX8fK67u4NB26yp6kx/refunds\",
416
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
417
+ \"example.com\", \n \"id\": \"WD1XejxX8fK67u4NB26yp6kx\", \n \"available_at\":
418
+ \"2012-07-06T04:15:42.316460Z\"\n }, \n \"id\": \"HL1X0nZ1uDxbOOTy7t0ayCEh\"\n
419
+ \ }, \n {\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
420
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
421
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
422
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
423
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
424
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
425
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
426
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
427
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
428
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
429
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
430
+ \ }, \n \"fee\": 30, \n \"description\": \"Transaction #3\",
431
+ \n \"created_at\": \"2012-07-06T04:15:39.835135Z\", \n \"is_void\":
432
+ false, \n \"expires_at\": \"2012-07-13T04:15:39.797613Z\", \n \"uri\":
433
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1UomaiYDlzZ1JVy8k4gtRv\",
434
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
435
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
436
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
437
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
438
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
439
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
440
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"debit\": {\n \"hold_uri\":
441
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1UomaiYDlzZ1JVy8k4gtRv\",
442
+ \n \"fee\": 29, \n \"description\": \"Transaction #3\", \n \"source_uri\":
443
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
444
+ \n \"created_at\": \"2012-07-06T04:15:40.051078Z\", \n \"transaction_number\":
445
+ \"W232-875-1833\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH\",
446
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1UCNfBSOXSWURUs4DnOGRH/refunds\",
447
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
448
+ \"example.com\", \n \"id\": \"WD1UCNfBSOXSWURUs4DnOGRH\", \n \"available_at\":
449
+ \"2012-07-06T04:15:39.981386Z\"\n }, \n \"id\": \"HL1UomaiYDlzZ1JVy8k4gtRv\"\n
450
+ \ }\n ], \n \"previous_uri\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=0\",
451
+ \n \"limit\": 10, \n \"offset\": 0, \n \"total\": 15, \n \"next_uri\":
452
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=10\",
453
+ \n \"last_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=10\"\n}"
454
+ http_version: !!null
455
+ recorded_at: Fri, 06 Jul 2012 04:15:49 GMT
456
+ - request:
457
+ method: get
458
+ uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=10
459
+ body:
460
+ encoding: US-ASCII
461
+ string: ''
462
+ headers:
463
+ User-Agent:
464
+ - balanced-ruby/0.3.5
465
+ Authorization:
466
+ - Basic Mzc2MTlkYzZjNzIxMTFlMWE5NzcwMjZiYTdlMjM5YTk6
467
+ response:
468
+ status:
469
+ code: 200
470
+ message: !!null
471
+ headers:
472
+ content-type:
473
+ - application/json
474
+ date:
475
+ - Fri, 06 Jul 2012 04:15:49 GMT
476
+ server:
477
+ - nginx/1.0.14
478
+ x-balanced-guru:
479
+ - OHM44abfe36c72111e1a29c026ba7e5e72e
480
+ x-balanced-marketplace:
481
+ - TEST-MP1HgCDnKZSw46yAiLUC5aNM
482
+ x-balanced-merchant:
483
+ - TEST-MR1GePqSVApIeytkkt2HmTQR
484
+ x-balanced-version:
485
+ - ''
486
+ content-length:
487
+ - '13373'
488
+ connection:
489
+ - Close
490
+ body:
491
+ encoding: US-ASCII
492
+ string: ! "{\n \"first_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=0\",
493
+ \n \"items\": [\n {\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
494
+ \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
495
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
496
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
497
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
498
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
499
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
500
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
501
+ \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
502
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
503
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
504
+ \ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit
505
+ #4\", \n \"created_at\": \"2012-07-06T04:15:43.407713Z\", \n \"destination\":
506
+ {\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\":
507
+ \"Jack Q Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\":
508
+ \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
509
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
510
+ \"7890\", \n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"transaction_number\":
511
+ \"CR077-108-5350\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1YoV0H30lvrJXJ4KUop1sG\",
512
+ \n \"amount\": 500, \n \"meta\": {}, \n \"id\": \"CR1YoV0H30lvrJXJ4KUop1sG\",
513
+ \n \"available_at\": \"2012-07-06T04:15:43.374719Z\"\n }, \n {\n
514
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/holds\",
515
+ \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\",
516
+ \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:15:32.816841Z\",
517
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3\",
518
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts\",
519
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/refunds\",
520
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/debits\",
521
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/transactions\",
522
+ \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC1MuWU1d7tpswJuERuuULX3\",
523
+ \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/credits\",
524
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/cards\"\n
525
+ \ }, \n \"fee\": 25, \n \"description\": \"Credit from Debit
526
+ #2\", \n \"created_at\": \"2012-07-06T04:15:38.890569Z\", \n \"destination\":
527
+ {\n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"name\":
528
+ \"Jack Q Merchant\", \n \"bank_code\": \"321174851\", \n \"created_at\":
529
+ \"2012-07-06T04:15:30.640361Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1MuWU1d7tpswJuERuuULX3/bank_accounts/BA1K3bzOqNBU3dLH3cTEdiaZ\",
530
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
531
+ \"7890\", \n \"id\": \"BA1K3bzOqNBU3dLH3cTEdiaZ\"\n }, \n \"transaction_number\":
532
+ \"CR726-501-6641\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/credits/CR1TjVpCU0MPXyGyR1j1todw\",
533
+ \n \"amount\": 500, \n \"meta\": {}, \n \"id\": \"CR1TjVpCU0MPXyGyR1j1todw\",
534
+ \n \"available_at\": \"2012-07-06T04:15:38.859411Z\"\n }, \n {\n
535
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
536
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
537
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
538
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
539
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
540
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
541
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
542
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
543
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
544
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
545
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
546
+ \ }, \n \"fee\": 29, \n \"description\": \"Transaction #5\",
547
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
548
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
549
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
550
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
551
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
552
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
553
+ \n \"created_at\": \"2012-07-06T04:15:44.518800Z\", \n \"transaction_number\":
554
+ \"W126-199-1707\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB\",
555
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB/refunds\",
556
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
557
+ \"example.com\", \n \"hold\": {\n \"fee\": 30, \n \"description\":
558
+ \"Transaction #5\", \n \"created_at\": \"2012-07-06T04:15:44.294547Z\",
559
+ \n \"is_void\": false, \n \"expires_at\": \"2012-07-13T04:15:44.264105Z\",
560
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1ZpkjvL36zSuTHp9Bc2CWR\",
561
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"account_uri\":
562
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
563
+ \n \"source_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
564
+ \n \"id\": \"HL1ZpkjvL36zSuTHp9Bc2CWR\"\n }, \n \"id\": \"WD1ZElmKz5gaPICjnJadnUWB\",
565
+ \n \"available_at\": \"2012-07-06T04:15:44.447972Z\"\n }, \n {\n
566
+ \ \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
567
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
568
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
569
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
570
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
571
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
572
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
573
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
574
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
575
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
576
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
577
+ \ }, \n \"fee\": 30, \n \"description\": \"Transaction #5\",
578
+ \n \"created_at\": \"2012-07-06T04:15:44.294547Z\", \n \"is_void\":
579
+ false, \n \"expires_at\": \"2012-07-13T04:15:44.264105Z\", \n \"uri\":
580
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1ZpkjvL36zSuTHp9Bc2CWR\",
581
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
582
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
583
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
584
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
585
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
586
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
587
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"debit\": {\n \"hold_uri\":
588
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1ZpkjvL36zSuTHp9Bc2CWR\",
589
+ \n \"fee\": 29, \n \"description\": \"Transaction #5\", \n \"source_uri\":
590
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
591
+ \n \"created_at\": \"2012-07-06T04:15:44.518800Z\", \n \"transaction_number\":
592
+ \"W126-199-1707\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB\",
593
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1ZElmKz5gaPICjnJadnUWB/refunds\",
594
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
595
+ \"example.com\", \n \"id\": \"WD1ZElmKz5gaPICjnJadnUWB\", \n \"available_at\":
596
+ \"2012-07-06T04:15:44.447972Z\"\n }, \n \"id\": \"HL1ZpkjvL36zSuTHp9Bc2CWR\"\n
597
+ \ }, \n {\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/holds\",
598
+ \n \"name\": \"Jack Q Buyer\", \n \"roles\": [\n \"buyer\"\n
599
+ \ ], \n \"created_at\": \"2012-07-06T04:15:33.906619Z\", \n \"uri\":
600
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU\",
601
+ \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/bank_accounts\",
602
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/refunds\",
603
+ \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/debits\",
604
+ \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/transactions\",
605
+ \n \"email_address\": \"buyer+transactions@example.org\", \n \"id\":
606
+ \"AC1NIz6vDOr8Tw4XRtWTewBU\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/credits\",
607
+ \n \"cards_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards\"\n
608
+ \ }, \n \"fee\": 30, \n \"description\": \"Transaction #1\",
609
+ \n \"created_at\": \"2012-07-06T04:15:35.477409Z\", \n \"is_void\":
610
+ false, \n \"expires_at\": \"2012-07-13T04:15:35.445601Z\", \n \"uri\":
611
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1PutPl2JQak6yqYbNOyze9\",
612
+ \n \"source\": {\n \"expiration_month\": 1, \n \"name\":
613
+ null, \n \"expiration_year\": 2015, \n \"brand\": \"Visa\",
614
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
615
+ \n \"id\": \"CC1LP0YFu1wFtca1ZI5amO6y\", \n \"card_type\": \"visa\",
616
+ \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\":
617
+ 1111, \n \"created_at\": \"2012-07-06T04:15:32.221146Z\"\n },
618
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"debit\": {\n \"hold_uri\":
619
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/holds/HL1PutPl2JQak6yqYbNOyze9\",
620
+ \n \"fee\": 29, \n \"description\": \"Transaction #1\", \n \"source_uri\":
621
+ \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/accounts/AC1NIz6vDOr8Tw4XRtWTewBU/cards/CC1LP0YFu1wFtca1ZI5amO6y\",
622
+ \n \"created_at\": \"2012-07-06T04:15:35.705826Z\", \n \"transaction_number\":
623
+ \"W814-448-9958\", \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl\",
624
+ \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/debits/WD1PJL360uW9eY7NNRSacPYl/refunds\",
625
+ \n \"amount\": 1000, \n \"meta\": {}, \n \"appears_on_statement_as\":
626
+ \"example.com\", \n \"id\": \"WD1PJL360uW9eY7NNRSacPYl\", \n \"available_at\":
627
+ \"2012-07-06T04:15:35.635896Z\"\n }, \n \"id\": \"HL1PutPl2JQak6yqYbNOyze9\"\n
628
+ \ }\n ], \n \"previous_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=0\",
629
+ \n \"uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=10\",
630
+ \n \"limit\": 10, \n \"offset\": 10, \n \"total\": 15, \n \"next_uri\":
631
+ null, \n \"last_uri\": \"/v1/marketplaces/TEST-MP1HgCDnKZSw46yAiLUC5aNM/transactions?limit=10&offset=10\"\n}"
632
+ http_version: !!null
633
+ recorded_at: Fri, 06 Jul 2012 04:15:50 GMT
634
+ recorded_with: VCR 2.2.2