balanced-ach 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/.gitignore +29 -0
  2. data/Gemfile +1 -1
  3. data/balanced.gemspec +1 -1
  4. data/lib/{balanced.rb → balanced_ach.rb} +7 -7
  5. data/lib/{balanced → balanced_ach}/client.rb +1 -1
  6. data/lib/{balanced → balanced_ach}/error.rb +0 -0
  7. data/lib/{balanced → balanced_ach}/pager.rb +2 -2
  8. data/lib/{balanced → balanced_ach}/resources.rb +1 -1
  9. data/lib/{balanced → balanced_ach}/resources/bank_account.rb +0 -0
  10. data/lib/{balanced → balanced_ach}/resources/credit.rb +0 -0
  11. data/lib/{balanced → balanced_ach}/resources/debit.rb +0 -0
  12. data/lib/{balanced → balanced_ach}/resources/resource.rb +0 -0
  13. data/lib/{balanced → balanced_ach}/response/balanced_exception_middleware.rb +1 -1
  14. data/lib/{balanced → balanced_ach}/utils.rb +0 -0
  15. data/lib/{balanced → balanced_ach}/version.rb +1 -1
  16. data/x.rb +2 -7
  17. metadata +15 -114
  18. data/.idea/.name +0 -1
  19. data/.idea/.rakeTasks +0 -7
  20. data/.idea/balanced-ach.iml +0 -9
  21. data/.idea/encodings.xml +0 -5
  22. data/.idea/misc.xml +0 -5
  23. data/.idea/modules.xml +0 -9
  24. data/.idea/scopes/scope_settings.xml +0 -5
  25. data/.idea/vcs.xml +0 -7
  26. data/.idea/workspace.xml +0 -561
  27. data/spec/balanced/pager_spec.rb +0 -42
  28. data/spec/balanced/resources/account_spec.rb +0 -571
  29. data/spec/balanced/resources/api_key_spec.rb +0 -55
  30. data/spec/balanced/resources/hold_spec.rb +0 -55
  31. data/spec/balanced/resources/marketplace_spec.rb +0 -97
  32. data/spec/balanced/resources/transactions_spec.rb +0 -72
  33. data/spec/balanced/response/balanced_exception_middleware_spec.rb +0 -47
  34. data/spec/balanced_spec.rb +0 -77
  35. data/spec/cassettes/Balanced/configure.yml +0 -48
  36. data/spec/cassettes/Balanced/configure/reconfigure_with_new_api_key.yml +0 -48
  37. data/spec/cassettes/Balanced_Account.yml +0 -110
  38. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_configured.yml +0 -240
  39. data/spec/cassettes/Balanced_Account/Account_uri/when_ApiKey_is_not_configured.yml +0 -44
  40. data/spec/cassettes/Balanced_Account/_find.yml +0 -400
  41. data/spec/cassettes/Balanced_Account/_find/_all_some_field_op_.yml +0 -186
  42. data/spec/cassettes/Balanced_Account/_find/_first_some_field_op_.yml +0 -186
  43. data/spec/cassettes/Balanced_Account/_find_by_email.yml +0 -400
  44. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_does_not_exist.yml +0 -175
  45. data/spec/cassettes/Balanced_Account/_find_by_email/email_address_is_in_system.yml +0 -186
  46. data/spec/cassettes/Balanced_Account/buyer/_add_card/after_executing.yml +0 -530
  47. data/spec/cassettes/Balanced_Account/buyer/_add_card/when_executing.yml +0 -455
  48. data/spec/cassettes/Balanced_Account/buyer/_debit.yml +0 -363
  49. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/after_executing.yml +0 -281
  50. data/spec/cassettes/Balanced_Account/buyer/_promote_to_merchant/when_executing.yml +0 -281
  51. data/spec/cassettes/Balanced_Account/buyer/_save/after_save/attributes.yml +0 -1013
  52. data/spec/cassettes/Balanced_Account/buyer/_save/when_creating.yml +0 -229
  53. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/after_executing.yml +0 -536
  54. data/spec/cassettes/Balanced_Account/merchant/_add_bank_account/when_executing.yml +0 -460
  55. data/spec/cassettes/Balanced_Account/merchant/_save/after_save/attributes.yml +0 -232
  56. data/spec/cassettes/Balanced_Account/merchant/_save/when_creating.yml +0 -232
  57. data/spec/cassettes/Balanced_Account/merchant/new.yml +0 -179
  58. data/spec/cassettes/Balanced_ApiKey/attributes.yml +0 -48
  59. data/spec/cassettes/Balanced_ApiKey/new_key/after_configure.yml +0 -93
  60. data/spec/cassettes/Balanced_ApiKey/new_key/before_configure.yml +0 -48
  61. data/spec/cassettes/Balanced_Hold.yml +0 -335
  62. data/spec/cassettes/Balanced_Hold/_void.yml +0 -62
  63. data/spec/cassettes/Balanced_Hold/_void/after.yml +0 -62
  64. data/spec/cassettes/Balanced_Hold/_void/when_exception_is_thrown.yml +0 -306
  65. data/spec/cassettes/Balanced_Marketplace.yml +0 -339
  66. data/spec/cassettes/Balanced_Transaction.yml +0 -1261
  67. data/spec/cassettes/Balanced_Transaction/Transaction.yml +0 -634
  68. data/spec/cassettes/Balanced_Transaction/Transaction_paginate.yml +0 -634
  69. data/spec/client_spec.rb +0 -12
  70. data/spec/spec_helper.rb +0 -31
  71. data/spec/utils_spec.rb +0 -8
  72. data/upload_docs.rb +0 -39
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"amount":100,"meta":null,"source_uri":null}'
9
- headers:
10
- User-Agent:
11
- - balanced-ruby/0.3.5
12
- Authorization:
13
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
14
- Content-Type:
15
- - application/json
16
- response:
17
- status:
18
- code: 201
19
- message: !!null
20
- headers:
21
- content-type:
22
- - application/json
23
- date:
24
- - Fri, 06 Jul 2012 04:24:15 GMT
25
- server:
26
- - nginx/1.0.14
27
- x-balanced-guru:
28
- - OHM71a3e61ec72211e1a977026ba7e239a9
29
- x-balanced-marketplace:
30
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
31
- x-balanced-merchant:
32
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
33
- x-balanced-version:
34
- - ''
35
- content-length:
36
- - '1887'
37
- connection:
38
- - Close
39
- body:
40
- encoding: US-ASCII
41
- string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds\",
42
- \n \"name\": null, \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
43
- \"2012-07-06T04:24:13.812316Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
44
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/bank_accounts\",
45
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/refunds\",
46
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits\",
47
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/transactions\",
48
- \n \"email_address\": \"buyer@example.org\", \n \"id\": \"AC3rprFH4OxDBdGa1gGIMTq1\",
49
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/credits\",
50
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards\"\n
51
- \ }, \n \"fee\": 30, \n \"description\": null, \n \"amount\": 100, \n \"created_at\":
52
- \"2012-07-06T04:24:15.050591Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL3sNuNvBbcwunpzF9KhWBMR\",
53
- \n \"expires_at\": \"2012-07-13T04:24:14.968037Z\", \n \"source\": {\n \"expiration_month\":
54
- 12, \n \"name\": null, \n \"expiration_year\": 2015, \n \"brand\":
55
- \"MasterCard\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
56
- \n \"id\": \"CC3qrrK6WTDSWEt1OcUOgasp\", \n \"card_type\": \"mastercard\",
57
- \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 5100, \n
58
- \ \"created_at\": \"2012-07-06T04:24:12.952100Z\"\n }, \n \"is_void\":
59
- false, \n \"meta\": {}, \n \"debit\": null, \n \"id\": \"HL3sNuNvBbcwunpzF9KhWBMR\"\n}"
60
- http_version: !!null
61
- recorded_at: Fri, 06 Jul 2012 04:24:15 GMT
62
- recorded_with: VCR 2.2.2
@@ -1,62 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: put
5
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL3sNuNvBbcwunpzF9KhWBMR
6
- body:
7
- encoding: UTF-8
8
- string: ! '{"account":"#<Balanced::Account:0x007fca3e10f558>","fee":30,"description":null,"amount":100,"created_at":"2012-07-06T04:24:15.050591Z","expires_at":"2012-07-13T04:24:14.968037Z","source":"#<Balanced::Card:0x007fca3e08ff88>","is_void":true,"meta":{},"debit":null,"id":"HL3sNuNvBbcwunpzF9KhWBMR"}'
9
- headers:
10
- User-Agent:
11
- - balanced-ruby/0.3.5
12
- Authorization:
13
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
14
- Content-Type:
15
- - application/json
16
- response:
17
- status:
18
- code: 200
19
- message: !!null
20
- headers:
21
- content-type:
22
- - application/json
23
- date:
24
- - Fri, 06 Jul 2012 04:24:16 GMT
25
- server:
26
- - nginx/1.0.14
27
- x-balanced-guru:
28
- - OHM725632cec72211e1a29c026ba7e5e72e
29
- x-balanced-marketplace:
30
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
31
- x-balanced-merchant:
32
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
33
- x-balanced-version:
34
- - ''
35
- content-length:
36
- - '1886'
37
- connection:
38
- - Close
39
- body:
40
- encoding: US-ASCII
41
- string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds\",
42
- \n \"name\": null, \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
43
- \"2012-07-06T04:24:13.812316Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
44
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/bank_accounts\",
45
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/refunds\",
46
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits\",
47
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/transactions\",
48
- \n \"email_address\": \"buyer@example.org\", \n \"id\": \"AC3rprFH4OxDBdGa1gGIMTq1\",
49
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/credits\",
50
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards\"\n
51
- \ }, \n \"fee\": 30, \n \"description\": null, \n \"amount\": 100, \n \"created_at\":
52
- \"2012-07-06T04:24:15.050591Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL3sNuNvBbcwunpzF9KhWBMR\",
53
- \n \"expires_at\": \"2012-07-13T04:24:14.968037Z\", \n \"source\": {\n \"expiration_month\":
54
- 12, \n \"name\": null, \n \"expiration_year\": 2015, \n \"brand\":
55
- \"MasterCard\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
56
- \n \"id\": \"CC3qrrK6WTDSWEt1OcUOgasp\", \n \"card_type\": \"mastercard\",
57
- \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 5100, \n
58
- \ \"created_at\": \"2012-07-06T04:24:12.952100Z\"\n }, \n \"is_void\":
59
- true, \n \"meta\": {}, \n \"debit\": null, \n \"id\": \"HL3sNuNvBbcwunpzF9KhWBMR\"\n}"
60
- http_version: !!null
61
- recorded_at: Fri, 06 Jul 2012 04:24:16 GMT
62
- recorded_with: VCR 2.2.2
@@ -1,306 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.balancedpayments.com/v1/merchants
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - balanced-ruby/0.3.6
12
- Authorization:
13
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
14
- response:
15
- status:
16
- code: 200
17
- message: !!null
18
- headers:
19
- content-type:
20
- - application/json
21
- date:
22
- - Sat, 07 Jul 2012 17:18:49 GMT
23
- server:
24
- - nginx/1.0.14
25
- x-balanced-guru:
26
- - OHMd11453e6c85711e1ad0d026ba7e5e72e
27
- x-balanced-marketplace:
28
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
29
- x-balanced-merchant:
30
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
31
- x-balanced-version:
32
- - ''
33
- content-length:
34
- - '2066'
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\": 150, \n \"domain_url\":
42
- \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
43
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS\",
44
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
45
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"bank_accounts_uri\":
46
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/bank_accounts\", \n \"support_phone_number\":
47
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/refunds\",
48
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits\",
49
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds\",
50
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/transactions\",
51
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts\",
52
- \n \"id\": \"TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"credits_uri\":
53
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/credits\", \n \"cards_uri\":
54
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards\"\n }, \n \"name\":
55
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
56
- \n \"created_at\": \"2012-07-06T04:24:09.283512Z\", \n \"uri\":
57
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"accounts_uri\":
58
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/accounts\", \n \"meta\":
59
- {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
60
- \n \"type\": \"person\", \n \"balance\": -64, \n \"api_keys_uri\":
61
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/api_keys\", \n \"id\":
62
- \"TEST-MR3mjdQAaIuYnml4foiSL87Q\", \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: Sat, 07 Jul 2012 17:18:51 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.6
77
- Authorization:
78
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
79
- response:
80
- status:
81
- code: 200
82
- message: !!null
83
- headers:
84
- content-type:
85
- - application/json
86
- date:
87
- - Sat, 07 Jul 2012 17:18:58 GMT
88
- server:
89
- - nginx/1.0.14
90
- x-balanced-guru:
91
- - OHMd68df9bcc85711e1a476026ba7e239a9
92
- x-balanced-marketplace:
93
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
94
- x-balanced-merchant:
95
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
96
- x-balanced-version:
97
- - ''
98
- content-length:
99
- - '2066'
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\": 150, \n \"domain_url\":
107
- \"example.com\", \n \"name\": \"Test Marketplace\", \n \"owner_account_uri\":
108
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3nQ4AY7MV8fC3G4dJxGxSS\",
109
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
110
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"bank_accounts_uri\":
111
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/bank_accounts\", \n \"support_phone_number\":
112
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/refunds\",
113
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits\",
114
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds\",
115
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/transactions\",
116
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts\",
117
- \n \"id\": \"TEST-MP3nhHH5OdNRTfziINDIhNjU\", \n \"credits_uri\":
118
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/credits\", \n \"cards_uri\":
119
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/cards\"\n }, \n \"name\":
120
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
121
- \n \"created_at\": \"2012-07-06T04:24:09.283512Z\", \n \"uri\":
122
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q\", \n \"accounts_uri\":
123
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/accounts\", \n \"meta\":
124
- {}, \n \"postal_code\": \"90210\", \n \"country_code\": \"USA\",
125
- \n \"type\": \"person\", \n \"balance\": -64, \n \"api_keys_uri\":
126
- \"/v1/merchants/TEST-MR3mjdQAaIuYnml4foiSL87Q/api_keys\", \n \"id\":
127
- \"TEST-MR3mjdQAaIuYnml4foiSL87Q\", \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: Sat, 07 Jul 2012 17:19:00 GMT
133
- - request:
134
- method: post
135
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds
136
- body:
137
- encoding: UTF-8
138
- string: ! '{"amount":150,"meta":null,"source_uri":null}'
139
- headers:
140
- User-Agent:
141
- - balanced-ruby/0.3.6
142
- Authorization:
143
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
144
- Content-Type:
145
- - application/json
146
- response:
147
- status:
148
- code: 201
149
- message: !!null
150
- headers:
151
- content-type:
152
- - application/json
153
- date:
154
- - Sat, 07 Jul 2012 17:19:57 GMT
155
- server:
156
- - nginx/1.0.14
157
- x-balanced-guru:
158
- - OHMf9ad7e9ac85711e1b502026ba7e239a9
159
- x-balanced-marketplace:
160
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
161
- x-balanced-merchant:
162
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
163
- x-balanced-version:
164
- - ''
165
- content-length:
166
- - '1887'
167
- connection:
168
- - Close
169
- body:
170
- encoding: US-ASCII
171
- string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds\",
172
- \n \"name\": null, \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
173
- \"2012-07-06T04:24:13.812316Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
174
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/bank_accounts\",
175
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/refunds\",
176
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits\",
177
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/transactions\",
178
- \n \"email_address\": \"buyer@example.org\", \n \"id\": \"AC3rprFH4OxDBdGa1gGIMTq1\",
179
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/credits\",
180
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards\"\n
181
- \ }, \n \"fee\": 30, \n \"description\": null, \n \"amount\": 150, \n \"created_at\":
182
- \"2012-07-07T17:19:57.729365Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL7Bsc0waRltve1zfW2uEtV7\",
183
- \n \"expires_at\": \"2012-07-14T17:19:57.662192Z\", \n \"source\": {\n \"expiration_month\":
184
- 12, \n \"name\": null, \n \"expiration_year\": 2015, \n \"brand\":
185
- \"MasterCard\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
186
- \n \"id\": \"CC3qrrK6WTDSWEt1OcUOgasp\", \n \"card_type\": \"mastercard\",
187
- \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 5100, \n
188
- \ \"created_at\": \"2012-07-06T04:24:12.952100Z\"\n }, \n \"is_void\":
189
- false, \n \"meta\": {}, \n \"debit\": null, \n \"id\": \"HL7Bsc0waRltve1zfW2uEtV7\"\n}"
190
- http_version: !!null
191
- recorded_at: Sat, 07 Jul 2012 17:20:00 GMT
192
- - request:
193
- method: post
194
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits
195
- body:
196
- encoding: UTF-8
197
- string: ! '{"amount":150,"appears_on_statement_as":null,"hold_uri":"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL7Bsc0waRltve1zfW2uEtV7","meta":null,"description":null,"source_uri":null}'
198
- headers:
199
- User-Agent:
200
- - balanced-ruby/0.3.6
201
- Authorization:
202
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
203
- Content-Type:
204
- - application/json
205
- response:
206
- status:
207
- code: 201
208
- message: !!null
209
- headers:
210
- content-type:
211
- - application/json
212
- date:
213
- - Sat, 07 Jul 2012 17:20:04 GMT
214
- server:
215
- - nginx/1.0.14
216
- x-balanced-guru:
217
- - OHMfd6a7b28c85711e1a29c026ba7e5e72e
218
- x-balanced-marketplace:
219
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
220
- x-balanced-merchant:
221
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
222
- x-balanced-version:
223
- - ''
224
- content-length:
225
- - '2633'
226
- connection:
227
- - Close
228
- body:
229
- encoding: US-ASCII
230
- string: ! "{\n \"account\": {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/holds\",
231
- \n \"name\": null, \n \"roles\": [\n \"buyer\"\n ], \n \"created_at\":
232
- \"2012-07-06T04:24:13.812316Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
233
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/bank_accounts\",
234
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/refunds\",
235
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/debits\",
236
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/transactions\",
237
- \n \"email_address\": \"buyer@example.org\", \n \"id\": \"AC3rprFH4OxDBdGa1gGIMTq1\",
238
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/credits\",
239
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards\"\n
240
- \ }, \n \"fee\": 4, \n \"description\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits/WD7ICPq6ybRhDwaBvCFbMHyS/refunds\",
241
- \n \"amount\": 150, \n \"created_at\": \"2012-07-07T17:20:04.112249Z\",
242
- \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/debits/WD7ICPq6ybRhDwaBvCFbMHyS\",
243
- \n \"source\": {\n \"expiration_month\": 12, \n \"name\": null, \n
244
- \ \"expiration_year\": 2015, \n \"brand\": \"MasterCard\", \n \"uri\":
245
- \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
246
- \n \"id\": \"CC3qrrK6WTDSWEt1OcUOgasp\", \n \"card_type\": \"mastercard\",
247
- \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": 5100, \n
248
- \ \"created_at\": \"2012-07-06T04:24:12.952100Z\"\n }, \n \"transaction_number\":
249
- \"W643-192-1884\", \n \"meta\": {}, \n \"appears_on_statement_as\": \"example.com\",
250
- \n \"hold\": {\n \"fee\": 30, \n \"description\": null, \n \"created_at\":
251
- \"2012-07-07T17:19:57.729365Z\", \n \"is_void\": false, \n \"expires_at\":
252
- \"2012-07-14T17:19:57.662192Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL7Bsc0waRltve1zfW2uEtV7\",
253
- \n \"amount\": 150, \n \"meta\": {}, \n \"account_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1\",
254
- \n \"source_uri\": \"/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/accounts/AC3rprFH4OxDBdGa1gGIMTq1/cards/CC3qrrK6WTDSWEt1OcUOgasp\",
255
- \n \"id\": \"HL7Bsc0waRltve1zfW2uEtV7\"\n }, \n \"id\": \"WD7ICPq6ybRhDwaBvCFbMHyS\",
256
- \n \"available_at\": \"2012-07-07T17:20:04.035173Z\"\n}"
257
- http_version: !!null
258
- recorded_at: Sat, 07 Jul 2012 17:20:10 GMT
259
- - request:
260
- method: put
261
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3nhHH5OdNRTfziINDIhNjU/holds/HL7Bsc0waRltve1zfW2uEtV7
262
- body:
263
- encoding: UTF-8
264
- string: ! '{"account":"#<Balanced::Account:0x007fa9ac286bf0>","fee":30,"description":null,"amount":150,"created_at":"2012-07-07T17:19:57.729365Z","expires_at":"2012-07-14T17:19:57.662192Z","source":"#<Balanced::Card:0x007fa9ac27e220>","is_void":true,"meta":{},"debit":null,"id":"HL7Bsc0waRltve1zfW2uEtV7"}'
265
- headers:
266
- User-Agent:
267
- - balanced-ruby/0.3.6
268
- Authorization:
269
- - Basic NmU5Y2YwZDJjNzIyMTFlMWEyOWMwMjZiYTdlNWU3MmU6
270
- Content-Type:
271
- - application/json
272
- response:
273
- status:
274
- code: 409
275
- message: !!null
276
- headers:
277
- content-type:
278
- - application/json
279
- date:
280
- - Sat, 07 Jul 2012 17:20:14 GMT
281
- server:
282
- - nginx/1.0.14
283
- x-balanced-guru:
284
- - OHM03554d9cc85811e1a476026ba7e239a9
285
- x-balanced-marketplace:
286
- - TEST-MP3nhHH5OdNRTfziINDIhNjU
287
- x-balanced-merchant:
288
- - TEST-MR3mjdQAaIuYnml4foiSL87Q
289
- x-balanced-version:
290
- - ''
291
- x-sentry-event:
292
- - 1deaeae0a85a47029a988db10daf33ce
293
- content-length:
294
- - '335'
295
- connection:
296
- - Close
297
- body:
298
- encoding: US-ASCII
299
- string: ! "{\n \"status\": \"Conflict\", \n \"category_code\": \"cannot-void-authorization\",
300
- \n \"additional\": null, \n \"status_code\": 409, \n \"category_type\":
301
- \"logical\", \n \"extras\": {}, \n \"request_id\": \"OHM03554d9cc85811e1a476026ba7e239a9\",
302
- \n \"description\": \"Hold already captured or voided. Your request id is
303
- OHM03554d9cc85811e1a476026ba7e239a9.\"\n}"
304
- http_version: !!null
305
- recorded_at: Sat, 07 Jul 2012 17:20:16 GMT
306
- recorded_with: VCR 2.2.2
@@ -1,339 +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:24:17 GMT
23
- server:
24
- - nginx/1.0.14
25
- x-balanced-guru:
26
- - OHM72bd3c12c72211e1a977026ba7e239a9
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:24:16.764179Z\", \n \"uri\": \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5\",
39
- \n \"accounts_uri\": \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5/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-MR3uJgItfIKryHzgZSMJkqW5/api_keys\", \n \"id\": \"TEST-MR3uJgItfIKryHzgZSMJkqW5\",
43
- \n \"street_address\": \"123 Fake St\"\n }, \n \"secret\": \"73015abec72211e1a977026ba7e239a9\",
44
- \n \"meta\": {}, \n \"created_at\": \"2012-07-06T04:24:17.014612Z\", \n
45
- \ \"uri\": \"/v1/api_keys/AK3v0L0QUsXQ3WJOXi8Er97H\", \n \"id\": \"AK3v0L0QUsXQ3WJOXi8Er97H\"\n}"
46
- http_version: !!null
47
- recorded_at: Fri, 06 Jul 2012 04:24:17 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 NzMwMTVhYmVjNzIyMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:24:18 GMT
70
- server:
71
- - nginx/1.0.14
72
- x-balanced-guru:
73
- - OHM735399c8c72211e1a29c026ba7e5e72e
74
- x-balanced-marketplace:
75
- - TEST-MP3vBMmoFfN7qgrUQXQuahxs
76
- x-balanced-merchant:
77
- - TEST-MR3uJgItfIKryHzgZSMJkqW5
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-MP3vBMmoFfN7qgrUQXQuahxs/bank_accounts\", \n \"owner_account\":
88
- {\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/holds\",
89
- \n \"name\": \"William Henry Cavendish III\", \n \"roles\": [\n \"merchant\",
90
- \n \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:24:17.890531Z\",
91
- \n \"uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4\",
92
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/bank_accounts\",
93
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/refunds\",
94
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/debits\",
95
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/transactions\",
96
- \n \"email_address\": \"whc@example.org\", \n \"id\": \"AC3vZqTThlcXWhu8xN0dSpJ4\",
97
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/credits\",
98
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4/cards\"\n
99
- \ }, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/holds\",
100
- \n \"meta\": {}, \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/transactions\",
101
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts\",
102
- \n \"id\": \"TEST-MP3vBMmoFfN7qgrUQXQuahxs\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/credits\",
103
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/cards\",
104
- \n \"in_escrow\": 0, \n \"domain_url\": \"example.com\", \n \"name\": \"Test
105
- Marketplace\", \n \"uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs\",
106
- \n \"support_phone_number\": \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/refunds\",
107
- \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/debits\"\n}"
108
- http_version: !!null
109
- recorded_at: Fri, 06 Jul 2012 04:24:18 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 NzMwMTVhYmVjNzIyMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:24:18 GMT
130
- server:
131
- - nginx/1.0.14
132
- x-balanced-guru:
133
- - OHM740b4e92c72211e1a476026ba7e239a9
134
- x-balanced-marketplace:
135
- - TEST-MP3vBMmoFfN7qgrUQXQuahxs
136
- x-balanced-merchant:
137
- - TEST-MR3uJgItfIKryHzgZSMJkqW5
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-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4\",
151
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
152
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs\", \n \"bank_accounts_uri\":
153
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/bank_accounts\", \n \"support_phone_number\":
154
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/refunds\",
155
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/debits\",
156
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/holds\",
157
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/transactions\",
158
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts\",
159
- \n \"id\": \"TEST-MP3vBMmoFfN7qgrUQXQuahxs\", \n \"credits_uri\":
160
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/credits\", \n \"cards_uri\":
161
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/cards\"\n }, \n \"name\":
162
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
163
- \n \"created_at\": \"2012-07-06T04:24:16.764179Z\", \n \"uri\":
164
- \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5\", \n \"accounts_uri\":
165
- \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5/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-MR3uJgItfIKryHzgZSMJkqW5/api_keys\", \n \"id\":
169
- \"TEST-MR3uJgItfIKryHzgZSMJkqW5\", \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:24:19 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 NzMwMTVhYmVjNzIyMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:24:19 GMT
195
- server:
196
- - nginx/1.0.14
197
- x-balanced-guru:
198
- - OHM744ddcc6c72211e1ad0d026ba7e5e72e
199
- x-balanced-marketplace:
200
- - TEST-MP3vBMmoFfN7qgrUQXQuahxs
201
- x-balanced-merchant:
202
- - TEST-MR3uJgItfIKryHzgZSMJkqW5
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-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3vZqTThlcXWhu8xN0dSpJ4\",
216
- \n \"support_email_address\": \"support@example.com\", \n \"uri\":
217
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs\", \n \"bank_accounts_uri\":
218
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/bank_accounts\", \n \"support_phone_number\":
219
- \"+16505551234\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/refunds\",
220
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/debits\",
221
- \n \"holds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/holds\",
222
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/transactions\",
223
- \n \"accounts_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts\",
224
- \n \"id\": \"TEST-MP3vBMmoFfN7qgrUQXQuahxs\", \n \"credits_uri\":
225
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/credits\", \n \"cards_uri\":
226
- \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/cards\"\n }, \n \"name\":
227
- \"William Henry Cavendish III\", \n \"email_address\": \"whc@example.org\",
228
- \n \"created_at\": \"2012-07-06T04:24:16.764179Z\", \n \"uri\":
229
- \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5\", \n \"accounts_uri\":
230
- \"/v1/merchants/TEST-MR3uJgItfIKryHzgZSMJkqW5/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-MR3uJgItfIKryHzgZSMJkqW5/api_keys\", \n \"id\":
234
- \"TEST-MR3uJgItfIKryHzgZSMJkqW5\", \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:24:19 GMT
240
- - request:
241
- method: post
242
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/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 NzMwMTVhYmVjNzIyMTFlMWE5NzcwMjZiYTdlMjM5YTk6
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:24:19 GMT
263
- server:
264
- - nginx/1.0.14
265
- x-balanced-guru:
266
- - OHM748f6376c72211e1a977026ba7e239a9
267
- x-balanced-marketplace:
268
- - TEST-MP3vBMmoFfN7qgrUQXQuahxs
269
- x-balanced-merchant:
270
- - TEST-MR3uJgItfIKryHzgZSMJkqW5
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:24:19.703097Z\", \n \"uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/bank_accounts/BA3y2dSLNorCMReqEPOhyXC9\",
282
- \n \"is_valid\": true, \n \"meta\": {}, \n \"last_four\": \"7890\", \n
283
- \ \"id\": \"BA3y2dSLNorCMReqEPOhyXC9\"\n}"
284
- http_version: !!null
285
- recorded_at: Fri, 06 Jul 2012 04:24:20 GMT
286
- - request:
287
- method: post
288
- uri: https://api.balancedpayments.com/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts
289
- body:
290
- encoding: UTF-8
291
- string: ! '{"email_address":"merchant@example.org","bank_account_uri":"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/bank_accounts/BA3y2dSLNorCMReqEPOhyXC9","name":"Jack
292
- Q Merchant","meta":null,"merchant":{"type":"person","name":"Billy Jones","street_address":"801
293
- High St.","postal_code":"94301","country":"USA","dob":"1842-01","phone_number":"+16505551234"}}'
294
- headers:
295
- User-Agent:
296
- - balanced-ruby/0.3.5
297
- Authorization:
298
- - Basic NzMwMTVhYmVjNzIyMTFlMWE5NzcwMjZiYTdlMjM5YTk6
299
- Content-Type:
300
- - application/json
301
- response:
302
- status:
303
- code: 201
304
- message: !!null
305
- headers:
306
- content-type:
307
- - application/json
308
- date:
309
- - Fri, 06 Jul 2012 04:24:20 GMT
310
- server:
311
- - nginx/1.0.14
312
- x-balanced-guru:
313
- - OHM74dc98bcc72211e19eae026ba7e5e72e
314
- x-balanced-marketplace:
315
- - TEST-MP3vBMmoFfN7qgrUQXQuahxs
316
- x-balanced-merchant:
317
- - TEST-MR3uJgItfIKryHzgZSMJkqW5
318
- x-balanced-version:
319
- - ''
320
- content-length:
321
- - '1099'
322
- connection:
323
- - Close
324
- body:
325
- encoding: US-ASCII
326
- string: ! "{\n \"holds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/holds\",
327
- \n \"name\": \"Jack Q Merchant\", \n \"roles\": [\n \"merchant\", \n
328
- \ \"buyer\"\n ], \n \"created_at\": \"2012-07-06T04:24:20.279129Z\", \n
329
- \ \"uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6\",
330
- \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/bank_accounts\",
331
- \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/refunds\",
332
- \n \"meta\": {}, \n \"debits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/debits\",
333
- \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/transactions\",
334
- \n \"email_address\": \"merchant@example.org\", \n \"id\": \"AC3yG0777jOA1arh7HTFYks6\",
335
- \n \"credits_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/credits\",
336
- \n \"cards_uri\": \"/v1/marketplaces/TEST-MP3vBMmoFfN7qgrUQXQuahxs/accounts/AC3yG0777jOA1arh7HTFYks6/cards\"\n}"
337
- http_version: !!null
338
- recorded_at: Fri, 06 Jul 2012 04:24:21 GMT
339
- recorded_with: VCR 2.2.2