currency_cloud 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +31 -0
- data/.rubocop.yml +6 -0
- data/.travis.yml +2 -4
- data/Gemfile +0 -3
- data/LICENSE.md +16 -17
- data/README.md +5 -3
- data/Rakefile +12 -12
- data/currency_cloud.gemspec +9 -9
- data/examples/server.rb +7 -7
- data/lib/currency_cloud/client.rb +5 -1
- data/lib/currency_cloud/conversion.rb +15 -0
- data/lib/currency_cloud/conversion_cancel_result.rb +5 -0
- data/lib/currency_cloud/conversion_date_change_result.rb +5 -0
- data/lib/currency_cloud/conversion_split_result.rb +5 -0
- data/lib/currency_cloud/errors/api_error.rb +2 -2
- data/lib/currency_cloud/errors/error_utils.rb +4 -4
- data/lib/currency_cloud/errors/unexpected_error.rb +3 -3
- data/lib/currency_cloud/iban.rb +22 -0
- data/lib/currency_cloud/ibans.rb +6 -0
- data/lib/currency_cloud/payer_required_details.rb +5 -0
- data/lib/currency_cloud/payment.rb +10 -0
- data/lib/currency_cloud/payment_authorisation_result.rb +5 -0
- data/lib/currency_cloud/payment_dates.rb +5 -0
- data/lib/currency_cloud/payment_submission.rb +5 -0
- data/lib/currency_cloud/purpose_code.rb +5 -0
- data/lib/currency_cloud/reference.rb +20 -5
- data/lib/currency_cloud/request_handler.rb +1 -3
- data/lib/currency_cloud/response_handler.rb +7 -7
- data/lib/currency_cloud/session.rb +2 -3
- data/lib/currency_cloud/transfer.rb +8 -0
- data/lib/currency_cloud/version.rb +1 -1
- data/lib/currency_cloud/virtual_account.rb +22 -0
- data/lib/currency_cloud/virtual_accounts.rb +6 -0
- data/spec/currency_cloud_spec.rb +9 -9
- data/spec/integration/authentication_spec.rb +2 -2
- data/spec/integration/conversions_spec.rb +94 -0
- data/spec/integration/error_utils_spec.rb +12 -12
- data/spec/integration/errors_spec.rb +84 -102
- data/spec/integration/ibans_spec.rb +42 -0
- data/spec/integration/payment_spec.rb +31 -0
- data/spec/integration/payments_spec.rb +67 -0
- data/spec/integration/reference_spec.rb +37 -14
- data/spec/integration/transfers_spec.rb +39 -0
- data/spec/integration/virtual_accounts_spec.rb +37 -0
- data/spec/spec_helper.rb +9 -1
- data/spec/support/vcr_cassettes/Authentication/can_be_closed.yml +1 -1
- data/spec/support/vcr_cassettes/Authentication/handles_session_timeout_error.yml +1 -1
- data/spec/support/vcr_cassettes/Authentication/happens_lazily.yml +1 -1
- data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/with_notes/has_a_non-empty_notes_attribute.yml +158 -0
- data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/without_notes/has_a_empty_notes_attribute.yml +157 -0
- data/spec/support/vcr_cassettes/Conversions/can_date_change_conversion.yml +157 -0
- data/spec/support/vcr_cassettes/Conversions/can_split_conversion.yml +157 -0
- data/spec/support/vcr_cassettes/Error/contains_full_details_for_api_error.yml +1 -1
- data/spec/support/vcr_cassettes/Error/is_raised_on_a_bad_request.yml +1 -1
- data/spec/support/vcr_cassettes/Error/is_raised_on_a_forbidden_request.yml +1 -1
- data/spec/support/vcr_cassettes/Error/is_raised_on_an_internal_server_error.yml +1 -1
- data/spec/support/vcr_cassettes/Error/is_raised_on_incorrect_authentication_details.yml +1 -1
- data/spec/support/vcr_cassettes/Error/is_raised_when_too_many_requests_have_been_issued.yml +1 -1
- data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_a_specific_subaccount.yml +109 -0
- data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_subaccounts.yml +108 -0
- data/spec/support/vcr_cassettes/IBANs/can_find.yml +114 -0
- data/spec/support/vcr_cassettes/Payments/can_authorise/when_payment_ids_are_valid.yml +263 -0
- data/spec/support/vcr_cassettes/Payments/can_create.yml +155 -0
- data/spec/support/vcr_cassettes/Payments/can_get_the_submission.yml +205 -0
- data/spec/support/vcr_cassettes/Reference/can_retrieve_beneficiary_required_details.yml +77 -12
- data/spec/support/vcr_cassettes/Reference/can_retrieve_conversion_dates.yml +183 -22
- data/spec/support/vcr_cassettes/Reference/can_retrieve_currencies.yml +110 -22
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payer_required_details.yml +103 -0
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_dates.yml +110 -0
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_purpose_codes.yml +128 -0
- data/spec/support/vcr_cassettes/Reference/can_retrieve_settlement_accounts.yml +76 -11
- data/spec/support/vcr_cassettes/Settlements/can_add_conversion.yml +56 -6
- data/spec/support/vcr_cassettes/Settlements/can_release.yml +55 -5
- data/spec/support/vcr_cassettes/Settlements/can_remove_conversion.yml +55 -5
- data/spec/support/vcr_cassettes/Settlements/can_unrelease.yml +55 -5
- data/spec/support/vcr_cassettes/Transfers/can_create.yml +101 -0
- data/spec/support/vcr_cassettes/Transfers/can_find.yml +151 -0
- data/spec/support/vcr_cassettes/Transfers/can_retrieve.yml +151 -0
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find.yml +108 -0
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_a_specific_subaccount.yml +108 -0
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_subaccounts.yml +108 -0
- metadata +82 -20
- data/Guardfile +0 -14
@@ -0,0 +1,151 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Mon, 16 Jul 2018 09:28:38 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json;charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- AWSALB=QYA7Qed50/4n+VR3r1HA6C89AzPpqpT3NOiZpC5GRKY1hleqqL4hON7NfJp50roxekfw7mk/wu2o8caaYn/3yDb9+SPoTHRdPNW28Qn50LuekEcpuYimM4cePPYG; Expires=Mon, 23 Jul 2018 09:28:37 GMT; Path=/
|
27
|
+
- __cfduid=d03be06c33dfb60691b70fdfc5bf387721531733317; expires=Tue, 16-Jul-19 09:28:37 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
28
|
+
Access-Control-Allow-Origin:
|
29
|
+
- "*"
|
30
|
+
X-Request-Id:
|
31
|
+
- 6c3f8d4a-2453-42e6-9cc9-2573e07f7c91
|
32
|
+
Access-Control-Allow-Methods:
|
33
|
+
- POST
|
34
|
+
X-Content-Type-Options:
|
35
|
+
- nosniff
|
36
|
+
Vary:
|
37
|
+
- Origin
|
38
|
+
Access-Control-Allow-Headers:
|
39
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
40
|
+
Expect-Ct:
|
41
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
42
|
+
Server:
|
43
|
+
- cloudflare
|
44
|
+
Cf-Ray:
|
45
|
+
- 43b370912cb20a6c-LHR
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Mon, 16 Jul 2018 09:28:39 GMT
|
51
|
+
- request:
|
52
|
+
method: post
|
53
|
+
uri: https://devapi.currencycloud.com/v2/transfers/create
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: source_account_id=d0ad035e-b699-4fcd-a73c-13fb0910a884&destination_account_id=e54a5e86-80ad-4434-90fe-0c8c751666de¤cy=GBP&amount=1000
|
57
|
+
headers:
|
58
|
+
X-Auth-Token:
|
59
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
60
|
+
User-Agent:
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
62
|
+
response:
|
63
|
+
status:
|
64
|
+
code: 200
|
65
|
+
message: OK
|
66
|
+
headers:
|
67
|
+
Date:
|
68
|
+
- Mon, 16 Jul 2018 09:28:39 GMT
|
69
|
+
Content-Type:
|
70
|
+
- application/json;charset=utf-8
|
71
|
+
Transfer-Encoding:
|
72
|
+
- chunked
|
73
|
+
Connection:
|
74
|
+
- keep-alive
|
75
|
+
Set-Cookie:
|
76
|
+
- AWSALB=VthPFzgd5C+JdE4OTiFbww8UhYT23g8cCNi+jAUUPnYthAh1WS2cUbOfn6oxaWNFr/OQyTBs8rfO7uFN/Xauts8rIpka5A5o9ITucrSxEudmUJFrkWlePA5k74N9; Expires=Mon, 23 Jul 2018 09:28:39 GMT; Path=/
|
77
|
+
- __cfduid=d3e11481000b38b4b1f39201ce1f9c4a31531733319; expires=Tue, 16-Jul-19 09:28:39 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
78
|
+
Access-Control-Allow-Origin:
|
79
|
+
- "*"
|
80
|
+
X-Request-Id:
|
81
|
+
- 84b4e23f-20c5-486f-9cd8-55d33c0eb889
|
82
|
+
Access-Control-Allow-Methods:
|
83
|
+
- POST
|
84
|
+
X-Content-Type-Options:
|
85
|
+
- nosniff
|
86
|
+
Vary:
|
87
|
+
- Origin
|
88
|
+
Access-Control-Allow-Headers:
|
89
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
90
|
+
Expect-Ct:
|
91
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
92
|
+
Server:
|
93
|
+
- cloudflare
|
94
|
+
Cf-Ray:
|
95
|
+
- 43b3709cfc9006c4-LHR
|
96
|
+
body:
|
97
|
+
encoding: US-ASCII
|
98
|
+
string: '{"id":"f4bf00d7-1672-463d-96b0-9e9643793978","short_reference":"BT-20170515-ZPRQVQ","source_account_id":"d0ad035e-b699-4fcd-a73c-13fb0910a884","destination_account_id":"e54a5e86-80ad-4434-90fe-0c8c751666de","currency":"GBP","amount":"1000.00","status":"completed","reason":null,"created_at":"2017-05-15T13:02:23+00:00","updated_at":"2017-05-15T13:02:24+00:00","completed_at":"2017-05-15T13:02:24+00:00","creator_account_id":"d0ad035e-b699-4fcd-a73c-13fb0910a884","creator_contact_id":"16565245-1b65-464e-affa-58313192b54f"}'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 16 Jul 2018 09:28:39 GMT
|
101
|
+
- request:
|
102
|
+
method: get
|
103
|
+
uri: https://devapi.currencycloud.com/v2/transfers/f4bf00d7-1672-463d-96b0-9e9643793978
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
X-Auth-Token:
|
109
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
110
|
+
User-Agent:
|
111
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
112
|
+
response:
|
113
|
+
status:
|
114
|
+
code: 200
|
115
|
+
message: OK
|
116
|
+
headers:
|
117
|
+
Date:
|
118
|
+
- Mon, 16 Jul 2018 09:34:13 GMT
|
119
|
+
Content-Type:
|
120
|
+
- application/json;charset=utf-8
|
121
|
+
Transfer-Encoding:
|
122
|
+
- chunked
|
123
|
+
Connection:
|
124
|
+
- keep-alive
|
125
|
+
Set-Cookie:
|
126
|
+
- AWSALB=8RVy+YRSToWenvhieZwEQ5oK3wCj/xfXaUkPxPIT7gXMEynCfcYRNyCOo+mWWPFLXh6mJsb1hgIC3beC9XCFQ06P3SpK1V24njeftXicTc3ClAwsx/YAltJOEH0E; Expires=Mon, 23 Jul 2018 09:34:13 GMT; Path=/
|
127
|
+
- __cfduid=dca6016479bd9c493be29aa4d41a0f4a01531733653; expires=Tue, 16-Jul-19 09:34:13 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
128
|
+
Access-Control-Allow-Origin:
|
129
|
+
- "*"
|
130
|
+
X-Request-Id:
|
131
|
+
- 12549d37-97da-403c-8959-cac93b926770
|
132
|
+
Access-Control-Allow-Methods:
|
133
|
+
- GET
|
134
|
+
X-Content-Type-Options:
|
135
|
+
- nosniff
|
136
|
+
Vary:
|
137
|
+
- Origin
|
138
|
+
Access-Control-Allow-Headers:
|
139
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
140
|
+
Expect-Ct:
|
141
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
142
|
+
Server:
|
143
|
+
- cloudflare
|
144
|
+
Cf-Ray:
|
145
|
+
- 43b378c4d939bb9c-LHR
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: '{"id":"f4bf00d7-1672-463d-96b0-9e9643793978","short_reference":"BT-20170515-ZPRQVQ","source_account_id":"d0ad035e-b699-4fcd-a73c-13fb0910a884","destination_account_id":"e54a5e86-80ad-4434-90fe-0c8c751666de","currency":"GBP","amount":"1000.00","status":"completed","reason":"","created_at":"2017-05-15T13:02:23+00:00","updated_at":"2017-05-15T13:02:24+00:00","completed_at":"2017-05-15T13:02:24+00:00","creator_account_id":"d0ad035e-b699-4fcd-a73c-13fb0910a884","creator_contact_id":"16565245-1b65-464e-affa-58313192b54f"}'
|
149
|
+
http_version:
|
150
|
+
recorded_at: Mon, 16 Jul 2018 09:34:13 GMT
|
151
|
+
recorded_with: VCR 4.0.0
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Mon, 16 Jul 2018 13:11:41 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json;charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- AWSALB=9hdKZ/xHNWniIJD+jGNgncvCvrutVpewPkysUs7oNKTsL9ZRq0xOMa8cc73Jo4DNT+kpwGEkozgYbEpMWSFWRZ3tkGFkAFv4LsuzeHkUxr9469MKgEiztqPc719c;
|
27
|
+
Expires=Mon, 23 Jul 2018 13:11:40 GMT; Path=/
|
28
|
+
- __cfduid=db1f85859d53c1c165f7f95c4d3aa9f9f1531746699; expires=Tue, 16-Jul-19
|
29
|
+
13:11:39 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
30
|
+
Access-Control-Allow-Origin:
|
31
|
+
- "*"
|
32
|
+
X-Request-Id:
|
33
|
+
- 8dbd8571-10c2-41a9-9cbd-fdc614387238
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- POST
|
36
|
+
X-Content-Type-Options:
|
37
|
+
- nosniff
|
38
|
+
Vary:
|
39
|
+
- Origin
|
40
|
+
Access-Control-Allow-Headers:
|
41
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
44
|
+
Server:
|
45
|
+
- cloudflare
|
46
|
+
Cf-Ray:
|
47
|
+
- 43b4b74958950a6c-LHR
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 16 Jul 2018 13:11:41 GMT
|
53
|
+
- request:
|
54
|
+
method: get
|
55
|
+
uri: https://devapi.currencycloud.com/v2/virtual_accounts
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ''
|
59
|
+
headers:
|
60
|
+
X-Auth-Token:
|
61
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
62
|
+
User-Agent:
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Date:
|
70
|
+
- Mon, 16 Jul 2018 13:11:41 GMT
|
71
|
+
Content-Type:
|
72
|
+
- application/json;charset=utf-8
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
Set-Cookie:
|
78
|
+
- AWSALB=pSjepvwuPhnMzCxQSUpi6zCyJXodSMKoeZnSPN3zLEVYyllqmOM+a87QSav/BdDhulWHK+C3idjtdd7CE1RM6K6waAPpeKNhgfzUn0Rh+yVErglLe5mfSPfG/gjA;
|
79
|
+
Expires=Mon, 23 Jul 2018 13:11:41 GMT; Path=/
|
80
|
+
- __cfduid=d60058c3ac7b1f40c17befc6dbf9bc16c1531746701; expires=Tue, 16-Jul-19
|
81
|
+
13:11:41 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
82
|
+
Access-Control-Allow-Origin:
|
83
|
+
- "*"
|
84
|
+
X-Request-Id:
|
85
|
+
- 5757435d-1275-4257-945f-9c9ddd8fcffa
|
86
|
+
Access-Control-Allow-Methods:
|
87
|
+
- GET
|
88
|
+
X-Content-Type-Options:
|
89
|
+
- nosniff
|
90
|
+
Vary:
|
91
|
+
- Origin
|
92
|
+
Access-Control-Allow-Headers:
|
93
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
94
|
+
Expect-Ct:
|
95
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
96
|
+
Server:
|
97
|
+
- cloudflare
|
98
|
+
Cf-Ray:
|
99
|
+
- 43b4b7557e0906be-LHR
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"virtual_accounts":[{"id":"00d272ee-fae5-4f97-b425-993a2d6e3a46","account_id":"2090939e-b2f7-3f2b-1363-4d235b3f58af","virtual_account_number":"8303723297",
|
103
|
+
"account_holder_name":"Account-ZXOANNAMKPRQ","bank_institution_name":"Community Federal Savings Bank","bank_institution_address":"Seventh Avenue, New York, NY 10019, US",
|
104
|
+
"bank_institution_country":"United States","routing_code":"026073150","created_at":"2014-01-12T00:00:00+00:00","updated_at":"2014-01-12T00:00:00+00:00"}],
|
105
|
+
"pagination":{"total_entries":1,"total_pages":1,"current_page":1,"per_page":25,"previous_page":-1,"next_page":2,"order":"created_at","order_asc_desc":"asc"}}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Mon, 16 Jul 2018 13:11:41 GMT
|
108
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Mon, 16 Jul 2018 13:10:58 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json;charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- AWSALB=7avFjeoBRFYj3qIwfOPvG5QeK8VsPw05xfgXAVN0SXcGVjdhRvqp57tp0GrL4yOE1bpDmtlveDUVcgqWZErH8oYtgMVZA9KZxxxKAsnWL1jzAthtupBd64Pbg+q2;
|
27
|
+
Expires=Mon, 23 Jul 2018 13:10:56 GMT; Path=/
|
28
|
+
- __cfduid=df2cb0cf3e3be6563ef3edd2b8666891b1531746656; expires=Tue, 16-Jul-19
|
29
|
+
13:10:56 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
30
|
+
Access-Control-Allow-Origin:
|
31
|
+
- "*"
|
32
|
+
X-Request-Id:
|
33
|
+
- 1fc8a8a3-8c66-467c-b93a-c73d41b7af7d
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- POST
|
36
|
+
X-Content-Type-Options:
|
37
|
+
- nosniff
|
38
|
+
Vary:
|
39
|
+
- Origin
|
40
|
+
Access-Control-Allow-Headers:
|
41
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
44
|
+
Server:
|
45
|
+
- cloudflare
|
46
|
+
Cf-Ray:
|
47
|
+
- 43b4b63c8d6e0a6c-LHR
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 16 Jul 2018 13:10:58 GMT
|
53
|
+
- request:
|
54
|
+
method: get
|
55
|
+
uri: https://devapi.currencycloud.com/v2/virtual_accounts/subaccounts/87077161-91de-012f-e284-1e0030c7f353
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ''
|
59
|
+
headers:
|
60
|
+
X-Auth-Token:
|
61
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
62
|
+
User-Agent:
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Date:
|
70
|
+
- Mon, 16 Jul 2018 13:10:58 GMT
|
71
|
+
Content-Type:
|
72
|
+
- application/json;charset=utf-8
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
Set-Cookie:
|
78
|
+
- AWSALB=ZUeiwrT1tdDOlLq5vbgPCVSO4Q2vN/du257W9WpCElJ/s3dMhrCtfREiUJo92ygkx8eJRuRFZyRI/QB4CPEXdgSF1XOwXW+XbiB8gLmKKNofxB5wr7JIU2SnWxE9;
|
79
|
+
Expires=Mon, 23 Jul 2018 13:10:58 GMT; Path=/
|
80
|
+
- __cfduid=dd703b3d54d06288371dd8eda83802f3e1531746658; expires=Tue, 16-Jul-19
|
81
|
+
13:10:58 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
82
|
+
Access-Control-Allow-Origin:
|
83
|
+
- "*"
|
84
|
+
X-Request-Id:
|
85
|
+
- 9a0ccbee-3d01-4f08-b892-cab267743428
|
86
|
+
Access-Control-Allow-Methods:
|
87
|
+
- GET
|
88
|
+
X-Content-Type-Options:
|
89
|
+
- nosniff
|
90
|
+
Vary:
|
91
|
+
- Origin
|
92
|
+
Access-Control-Allow-Headers:
|
93
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
94
|
+
Expect-Ct:
|
95
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
96
|
+
Server:
|
97
|
+
- cloudflare
|
98
|
+
Cf-Ray:
|
99
|
+
- 43b4b6476dc10a7e-LHR
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"virtual_accounts":[{"id":"00d272ee-fae5-4f97-b425-993a2d6e3a46","account_id":"2090939e-b2f7-3f2b-1363-4d235b3f58af","virtual_account_number":"8303723297",
|
103
|
+
"account_holder_name":"Account-ZXOANNAMKPRQ","bank_institution_name":"Community Federal Savings Bank","bank_institution_address":"Seventh Avenue, New York, NY 10019, US",
|
104
|
+
"bank_institution_country":"United States","routing_code":"026073150","created_at":"2014-01-12T00:00:00+00:00","updated_at":"2014-01-12T00:00:00+00:00"}],
|
105
|
+
"pagination":{"total_entries":1,"total_pages":1,"current_page":1,"per_page":25,"previous_page":-1,"next_page":2,"order":"created_at","order_asc_desc":"asc"}}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Mon, 16 Jul 2018 13:10:58 GMT
|
108
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,108 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Mon, 16 Jul 2018 13:10:56 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json;charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- AWSALB=dLlnTVJHxQ5dNsd/PwCuRewJ3i6C5SV1IOmgj9WDkWE5nPKO8O5xZkHSxyvMVqwr1nWH1gvXFRv+d+ibIsOBmkVUxJSJVdV9LZOeHCDTX+kOJ/k4oFWjtlyDPUvK;
|
27
|
+
Expires=Mon, 23 Jul 2018 13:10:54 GMT; Path=/
|
28
|
+
- __cfduid=d60e366cb20448d9fc8cc5f6be7f387201531746654; expires=Tue, 16-Jul-19
|
29
|
+
13:10:54 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
30
|
+
Access-Control-Allow-Origin:
|
31
|
+
- "*"
|
32
|
+
X-Request-Id:
|
33
|
+
- 80492eb2-9e56-4a05-b0a6-0adde7486127
|
34
|
+
Access-Control-Allow-Methods:
|
35
|
+
- POST
|
36
|
+
X-Content-Type-Options:
|
37
|
+
- nosniff
|
38
|
+
Vary:
|
39
|
+
- Origin
|
40
|
+
Access-Control-Allow-Headers:
|
41
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
42
|
+
Expect-Ct:
|
43
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
44
|
+
Server:
|
45
|
+
- cloudflare
|
46
|
+
Cf-Ray:
|
47
|
+
- 43b4b62fd9650a6c-LHR
|
48
|
+
body:
|
49
|
+
encoding: UTF-8
|
50
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 16 Jul 2018 13:10:56 GMT
|
53
|
+
- request:
|
54
|
+
method: get
|
55
|
+
uri: https://devapi.currencycloud.com/v2/virtual_accounts/subaccounts/find
|
56
|
+
body:
|
57
|
+
encoding: US-ASCII
|
58
|
+
string: ''
|
59
|
+
headers:
|
60
|
+
X-Auth-Token:
|
61
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
62
|
+
User-Agent:
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/0.9.0
|
64
|
+
response:
|
65
|
+
status:
|
66
|
+
code: 200
|
67
|
+
message: OK
|
68
|
+
headers:
|
69
|
+
Date:
|
70
|
+
- Mon, 16 Jul 2018 13:10:56 GMT
|
71
|
+
Content-Type:
|
72
|
+
- application/json;charset=utf-8
|
73
|
+
Transfer-Encoding:
|
74
|
+
- chunked
|
75
|
+
Connection:
|
76
|
+
- keep-alive
|
77
|
+
Set-Cookie:
|
78
|
+
- AWSALB=JuL5/O8NyAMgSOxi+E8MKEW1/6wIoSPsFcTy621sxD9RG1V97aH8OFyl4jNgvDu3lvBY2bRzBEV2/fihAUreirMUfmacDQ0JP4rB6xJC1JNNl0M+OSTxXO3+ucYX;
|
79
|
+
Expires=Mon, 23 Jul 2018 13:10:56 GMT; Path=/
|
80
|
+
- __cfduid=d734e57f964a2fb0b07067818bf12687a1531746656; expires=Tue, 16-Jul-19
|
81
|
+
13:10:56 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
82
|
+
Access-Control-Allow-Origin:
|
83
|
+
- "*"
|
84
|
+
X-Request-Id:
|
85
|
+
- e33cd97c-97a1-44c8-9c6a-54a906d7a200
|
86
|
+
Access-Control-Allow-Methods:
|
87
|
+
- GET
|
88
|
+
X-Content-Type-Options:
|
89
|
+
- nosniff
|
90
|
+
Vary:
|
91
|
+
- Origin
|
92
|
+
Access-Control-Allow-Headers:
|
93
|
+
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
94
|
+
Expect-Ct:
|
95
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
96
|
+
Server:
|
97
|
+
- cloudflare
|
98
|
+
Cf-Ray:
|
99
|
+
- 43b4b63a8a7a0a78-LHR
|
100
|
+
body:
|
101
|
+
encoding: UTF-8
|
102
|
+
string: '{"virtual_accounts":[{"id":"00d272ee-fae5-4f97-b425-993a2d6e3a46","account_id":"2090939e-b2f7-3f2b-1363-4d235b3f58af","virtual_account_number":"8303723297",
|
103
|
+
"account_holder_name":"Account-ZXOANNAMKPRQ","bank_institution_name":"Community Federal Savings Bank","bank_institution_address":"Seventh Avenue, New York, NY 10019, US",
|
104
|
+
"bank_institution_country":"United States","routing_code":"026073150","created_at":"2014-01-12T00:00:00+00:00","updated_at":"2014-01-12T00:00:00+00:00"}],
|
105
|
+
"pagination":{"total_entries":1,"total_pages":1,"current_page":1,"per_page":25,"previous_page":-1,"next_page":2,"order":"created_at","order_asc_desc":"asc"}}'
|
106
|
+
http_version:
|
107
|
+
recorded_at: Mon, 16 Jul 2018 13:10:56 GMT
|
108
|
+
recorded_with: VCR 3.0.3
|