currency_cloud 0.12.5 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -1
  3. data/currency_cloud.gemspec +9 -3
  4. data/lib/currency_cloud/balance.rb +5 -0
  5. data/lib/currency_cloud/funding_account.rb +8 -0
  6. data/lib/currency_cloud/margin_balance_top_up.rb +5 -0
  7. data/lib/currency_cloud/payment.rb +10 -0
  8. data/lib/currency_cloud/payment_fee_rule.rb +5 -0
  9. data/lib/currency_cloud/payment_tracking_info.rb +5 -0
  10. data/lib/currency_cloud/quote_payment_fee.rb +5 -0
  11. data/lib/currency_cloud/reference.rb +5 -0
  12. data/lib/currency_cloud/version.rb +2 -2
  13. data/lib/currency_cloud/withdrawal_account.rb +17 -0
  14. data/lib/currency_cloud/withdrawal_account_funds.rb +5 -0
  15. data/lib/currency_cloud/withdrawal_accounts.rb +6 -0
  16. data/spec/integration/actions_spec.rb +11 -0
  17. data/spec/integration/funding_account_spec.rb +33 -0
  18. data/spec/integration/payments_spec.rb +28 -0
  19. data/spec/integration/rates_spec.rb +8 -0
  20. data/spec/integration/reference_spec.rb +52 -3
  21. data/spec/integration/withdrawal_accounts_spec.rb +69 -0
  22. data/spec/support/vcr_cassettes/Accounts/can_retrieve_account_payment_charges_settings.yml +2 -2
  23. data/spec/support/vcr_cassettes/Accounts/can_update_account_payment_charges_settings.yml +2 -2
  24. data/spec/support/vcr_cassettes/Actions/can_top_up_margin_balance.yml +39 -0
  25. data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/with_notes/has_a_non-empty_notes_attribute.yml +3 -3
  26. data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/without_notes/has_a_empty_notes_attribute.yml +3 -3
  27. data/spec/support/vcr_cassettes/Conversions/can_cancellation_quote.yml +2 -2
  28. data/spec/support/vcr_cassettes/Conversions/can_date_change_conversion.yml +3 -3
  29. data/spec/support/vcr_cassettes/Conversions/can_retrieve_cancellation_quote.yml +3 -3
  30. data/spec/support/vcr_cassettes/Conversions/can_retrieve_date_change_quote.yml +3 -3
  31. data/spec/support/vcr_cassettes/Conversions/can_retrieve_profit_and_loss.yml +2 -2
  32. data/spec/support/vcr_cassettes/Conversions/can_split_conversion.yml +3 -3
  33. data/spec/support/vcr_cassettes/Conversions/can_split_history.yml +3 -3
  34. data/spec/support/vcr_cassettes/Conversions/can_split_preview.yml +3 -3
  35. data/spec/support/vcr_cassettes/FundingAccounts/can_find.yml +141 -0
  36. data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_a_specific_subaccount.yml +2 -2
  37. data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_subaccounts.yml +2 -2
  38. data/spec/support/vcr_cassettes/IBANs/can_find.yml +2 -2
  39. data/spec/support/vcr_cassettes/Payments/can_authorise/when_payment_ids_are_valid.yml +5 -5
  40. data/spec/support/vcr_cassettes/Payments/can_create.yml +3 -3
  41. data/spec/support/vcr_cassettes/Payments/can_get_the_submission.yml +4 -4
  42. data/spec/support/vcr_cassettes/Payments/can_retrieve_confirmation.yml +3 -3
  43. data/spec/support/vcr_cassettes/Payments/can_retrieve_payment_delivery_date.yml +2 -2
  44. data/spec/support/vcr_cassettes/Payments/can_retrieve_payment_tracking_info.yml +291 -0
  45. data/spec/support/vcr_cassettes/Payments/can_retrieve_quote_payment_fee.yml +115 -0
  46. data/spec/support/vcr_cassettes/Rates/can_provided_detailed_rate_with_conversion_date_preference.yml +68 -0
  47. data/spec/support/vcr_cassettes/Reference/can_retrieve_bank_details.yml +2 -2
  48. data/spec/support/vcr_cassettes/Reference/can_retrieve_beneficiary_required_details.yml +2 -2
  49. data/spec/support/vcr_cassettes/Reference/can_retrieve_conversion_dates.yml +253 -110
  50. data/spec/support/vcr_cassettes/Reference/can_retrieve_currencies.yml +2 -2
  51. data/spec/support/vcr_cassettes/Reference/can_retrieve_payer_required_details.yml +2 -2
  52. data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_dates.yml +2 -2
  53. data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_fee_rules.yml +225 -0
  54. data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_purpose_codes.yml +2 -2
  55. data/spec/support/vcr_cassettes/Reference/can_retrieve_settlement_accounts.yml +2 -2
  56. data/spec/support/vcr_cassettes/Reports/can_create_conversions_report.yml +2 -2
  57. data/spec/support/vcr_cassettes/Reports/can_create_payments_report.yml +2 -2
  58. data/spec/support/vcr_cassettes/Reports/can_find_report_requests.yml +2 -2
  59. data/spec/support/vcr_cassettes/Reports/can_retrieve_report_request.yml +2 -2
  60. data/spec/support/vcr_cassettes/Transactions/can_retrieve_sender_details.yml +2 -2
  61. data/spec/support/vcr_cassettes/Transfers/can_create.yml +2 -2
  62. data/spec/support/vcr_cassettes/Transfers/can_find.yml +3 -3
  63. data/spec/support/vcr_cassettes/Transfers/can_retrieve.yml +3 -3
  64. data/spec/support/vcr_cassettes/VirtualAccounts/can_find.yml +2 -2
  65. data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_a_specific_subaccount.yml +2 -2
  66. data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_subaccounts.yml +2 -2
  67. data/spec/support/vcr_cassettes/WithdrawalAccounts/can_find_withdrawal_accounts.yml +133 -0
  68. data/spec/support/vcr_cassettes/WithdrawalAccounts/can_find_withdrawal_accounts2.yml +140 -0
  69. data/spec/support/vcr_cassettes/WithdrawalAccounts/can_pull_funds.yml +140 -0
  70. metadata +51 -33
  71. data/lib/currency_cloud/settlement.rb +0 -55
  72. data/spec/integration/settlements_spec.rb +0 -66
  73. data/spec/support/vcr_cassettes/Settlements/can_add_conversion.yml +0 -152
  74. data/spec/support/vcr_cassettes/Settlements/can_release.yml +0 -119
  75. data/spec/support/vcr_cassettes/Settlements/can_remove_conversion.yml +0 -119
  76. data/spec/support/vcr_cassettes/Settlements/can_unrelease.yml +0 -119
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
9
9
  headers:
10
10
  User-Agent:
11
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
11
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -58,7 +58,7 @@ http_interactions:
58
58
  X-Auth-Token:
59
59
  - deadbeefdeadbeefdeadbeefdeadbeef
60
60
  User-Agent:
61
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
61
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
62
62
  response:
63
63
  status:
64
64
  code: 200
@@ -108,7 +108,7 @@ http_interactions:
108
108
  X-Auth-Token:
109
109
  - deadbeefdeadbeefdeadbeefdeadbeef
110
110
  User-Agent:
111
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
111
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
112
112
  response:
113
113
  status:
114
114
  code: 200
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
9
9
  headers:
10
10
  User-Agent:
11
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
11
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -60,7 +60,7 @@ http_interactions:
60
60
  X-Auth-Token:
61
61
  - deadbeefdeadbeefdeadbeefdeadbeef
62
62
  User-Agent:
63
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
63
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
64
64
  response:
65
65
  status:
66
66
  code: 200
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
9
9
  headers:
10
10
  User-Agent:
11
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
11
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -60,7 +60,7 @@ http_interactions:
60
60
  X-Auth-Token:
61
61
  - deadbeefdeadbeefdeadbeefdeadbeef
62
62
  User-Agent:
63
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
63
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
64
64
  response:
65
65
  status:
66
66
  code: 200
@@ -8,7 +8,7 @@ http_interactions:
8
8
  string: login_id=development%40currencycloud.com&api_key=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef
9
9
  headers:
10
10
  User-Agent:
11
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
11
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -60,7 +60,7 @@ http_interactions:
60
60
  X-Auth-Token:
61
61
  - deadbeefdeadbeefdeadbeefdeadbeef
62
62
  User-Agent:
63
- - CurrencyCloudSDK/2.0 Ruby/0.11.2
63
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
64
64
  response:
65
65
  status:
66
66
  code: 200
@@ -0,0 +1,133 @@
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/1.0.3
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Mon, 16 Jul 2018 08:20:14 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=JpWe8cJzRhv4y6vw/IU+s5GhiuDyGrTi6vtz6co+S0h3gIbGe216G4tO/ShPFipDpVbIyjW2adc1dWbedPE6KtLb6Zd8EkruEcNHxASHm2VPkAp32QK3biCRFUkv;
27
+ Expires=Mon, 23 Jul 2018 08:20:13 GMT; Path=/
28
+ - __cfduid=d0c32af71ff0925dd045630165ce66c121531729213; expires=Tue, 16-Jul-19
29
+ 08:20:13 GMT; path=/; domain=.currencycloud.com; HttpOnly
30
+ Access-Control-Allow-Origin:
31
+ - "*"
32
+ X-Request-Id:
33
+ - e8908fc1-4f80-4c60-9c44-363928bed983
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
+ - 43b30c5d1b930a8a-LHR
48
+ body:
49
+ encoding: US-ASCII
50
+ string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
51
+ http_version:
52
+ recorded_at: Mon, 16 Jul 2018 08:20:14 GMT
53
+ - request:
54
+ method: get
55
+ uri: https://devapi.currencycloud.com/v2/withdrawal_accounts?account_id=72970a7c-7921-431c-b95f-3438724ba16f
56
+ body:
57
+ encoding: US-ASCII
58
+ string: ''
59
+ headers:
60
+ X-Auth-Token:
61
+ - deadbeefdeadbeefdeadbeefdeadbeef
62
+ User-Agent:
63
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
64
+ response:
65
+ status:
66
+ code: 200
67
+ message: OK
68
+ headers:
69
+ Date:
70
+ - Tue, 06 Oct 2020 14:29:35 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=Uw7rGXT9budZtv/Nz1rvs5rg6PQlr5bo/1f4oNQoISYtu0FYbA/PUooVYWp6ujV/dOZg2SKc1pZ7Es5UBRD7GwRsIBf7ysw0daahw+7Slf7OSDk0MJjjHNkrbfGe;
79
+ Expires=Tue, 13 Oct 2020 14:29:35 GMT; Path=/
80
+ - AWSALBCORS=Uw7rGXT9budZtv/Nz1rvs5rg6PQlr5bo/1f4oNQoISYtu0FYbA/PUooVYWp6ujV/dOZg2SKc1pZ7Es5UBRD7GwRsIBf7ysw0daahw+7Slf7OSDk0MJjjHNkrbfGe;
81
+ Expires=Tue, 13 Oct 2020 14:29:35 GMT; Path=/; SameSite=None; Secure
82
+ - __cfduid=d3e9dd326c2925385a6bcdb7bdd50d6391601994575; expires=Thu, 05-Nov-20
83
+ 14:29:35 GMT; path=/; domain=.currencycloud.com; HttpOnly; SameSite=Lax
84
+ Cf-Ipcountry:
85
+ - GB
86
+ Access-Control-Allow-Origin:
87
+ - "*"
88
+ Access-Control-Allow-Methods:
89
+ - DELETE,POST,GET,OPTIONS,PATCH,PUT
90
+ User-Agent:
91
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
92
+ X-Forwarded-Proto:
93
+ - https
94
+ Cdn-Loop:
95
+ - cloudflare
96
+ Cf-Visitor:
97
+ - '{"scheme":"https"}'
98
+ Accept-Encoding:
99
+ - gzip
100
+ Cf-Connecting-Ip:
101
+ - 217.168.17.4
102
+ X-Forwarded-Port:
103
+ - '443'
104
+ Access-Control-Allow-Headers:
105
+ - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority,User-Agent
106
+ X-Amzn-Trace-Id:
107
+ - Root=1-5f7c7f4f-22b1933840c46c3d06388e7a
108
+ Wso2-Am-Api-Default-Version:
109
+ - 'true'
110
+ X-Auth-Token:
111
+ - deadbeefdeadbeefdeadbeefdeadbeef
112
+ X-Forwarded-For:
113
+ - 217.168.17.4, 141.101.98.82
114
+ Cf-Request-Id:
115
+ - '059fea658a00000762b78c1200000001'
116
+ Cf-Cache-Status:
117
+ - DYNAMIC
118
+ Expect-Ct:
119
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
120
+ Strict-Transport-Security:
121
+ - max-age=2592000; includeSubDomains
122
+ Server:
123
+ - cloudflare
124
+ Cf-Ray:
125
+ - 5de0134f4bc40762-LHR
126
+ body:
127
+ encoding: UTF-8
128
+ string: |-
129
+ {"withdrawal_accounts": [ { "id": "0886ac00-6ab6-41a6-b0e1-8d3faf2e0de2", "account_name": "currencycloud", "account_holder_name": "The Currency Cloud", "account_holder_dob": null, "routing_code": "123456789", "account_number": "01234567890", "currency": "USD", "account_id": "72970a7c-7921-431c-b95f-3438724ba16f" }],"pagination": { "total_entries": 1, "total_pages": 1, "current_page": 1, "per_page": 25, "previous_page": -1, "next_page": -1, "order": "created_at", "order_asc_desc": "asc"}}
130
+ http_version:
131
+ recorded_at: Tue, 06 Oct 2020 14:29:35 GMT
132
+ recorded_with: VCR 5.0.0
133
+
@@ -0,0 +1,140 @@
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/1.0.3
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Tue, 06 Oct 2020 14:48:15 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=5O47+8dqvoJfamrxKr6frSzyioGFSG6tm6Z+lRmus+9t3hrjjdqUlHSns7ZYz7itxNZ2823ITwE04Y8/tmFqZiVURj5UMT1y1I+GTlqBS8mPph4RfjjnJY4mPPRw;
27
+ Expires=Tue, 13 Oct 2020 14:48:13 GMT; Path=/
28
+ - AWSALBCORS=5O47+8dqvoJfamrxKr6frSzyioGFSG6tm6Z+lRmus+9t3hrjjdqUlHSns7ZYz7itxNZ2823ITwE04Y8/tmFqZiVURj5UMT1y1I+GTlqBS8mPph4RfjjnJY4mPPRw;
29
+ Expires=Tue, 13 Oct 2020 14:48:13 GMT; Path=/; SameSite=None; Secure
30
+ - __cfduid=d391f18598cc56eb498281ccb9b0c532f1601995693; expires=Thu, 05-Nov-20
31
+ 14:48:13 GMT; path=/; domain=.currencycloud.com; HttpOnly; SameSite=Lax
32
+ Access-Control-Allow-Origin:
33
+ - "*"
34
+ X-Request-Id:
35
+ - cf3f6e3a-6b09-4deb-ba00-6131c5ed9d30
36
+ Access-Control-Allow-Methods:
37
+ - POST
38
+ X-Content-Type-Options:
39
+ - nosniff
40
+ Vary:
41
+ - Origin
42
+ Access-Control-Allow-Headers:
43
+ - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority,User-Agent
44
+ Cf-Cache-Status:
45
+ - DYNAMIC
46
+ Cf-Request-Id:
47
+ - '059ffb773f00000782478a6200000001'
48
+ Expect-Ct:
49
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
50
+ Strict-Transport-Security:
51
+ - max-age=2592000; includeSubDomains
52
+ Server:
53
+ - cloudflare
54
+ Cf-Ray:
55
+ - 5de02e9ecdd10782-LHR
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
59
+ http_version:
60
+ recorded_at: Tue, 06 Oct 2020 14:48:15 GMT
61
+ - request:
62
+ method: get
63
+ uri: https://devapi.currencycloud.com/v2/withdrawal_accounts
64
+ body:
65
+ encoding: US-ASCII
66
+ string: ''
67
+ headers:
68
+ X-Auth-Token:
69
+ - deadbeefdeadbeefdeadbeefdeadbeef
70
+ User-Agent:
71
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
72
+ response:
73
+ status:
74
+ code: 200
75
+ message: OK
76
+ headers:
77
+ Date:
78
+ - Tue, 06 Oct 2020 14:50:22 GMT
79
+ Content-Type:
80
+ - application/json; charset=UTF-8
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ Set-Cookie:
86
+ - AWSALB=vjh/y0Xw6suzFZ28da7srEAzPW7uJ1ddQ/j1Eoqk+7xhpfz28o7z+N/BWYBairGgf/tb5o5Gwlhb7z63hhrtIyqV1RfVBux4sk51O5ZMwFZRSHhYezbAf0tKDXBt;
87
+ Expires=Tue, 13 Oct 2020 14:50:22 GMT; Path=/
88
+ - AWSALBCORS=vjh/y0Xw6suzFZ28da7srEAzPW7uJ1ddQ/j1Eoqk+7xhpfz28o7z+N/BWYBairGgf/tb5o5Gwlhb7z63hhrtIyqV1RfVBux4sk51O5ZMwFZRSHhYezbAf0tKDXBt;
89
+ Expires=Tue, 13 Oct 2020 14:50:22 GMT; Path=/; SameSite=None; Secure
90
+ - __cfduid=d29aa8831ac605f9fee37d241e760bf831601995822; expires=Thu, 05-Nov-20
91
+ 14:50:22 GMT; path=/; domain=.currencycloud.com; HttpOnly; SameSite=Lax
92
+ Cf-Ipcountry:
93
+ - GB
94
+ Access-Control-Allow-Origin:
95
+ - "*"
96
+ Access-Control-Allow-Methods:
97
+ - DELETE,POST,GET,OPTIONS,PATCH,PUT
98
+ User-Agent:
99
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
100
+ X-Forwarded-Proto:
101
+ - https
102
+ Cdn-Loop:
103
+ - cloudflare
104
+ Cf-Visitor:
105
+ - '{"scheme":"https"}'
106
+ Accept-Encoding:
107
+ - gzip
108
+ Cf-Connecting-Ip:
109
+ - 217.168.17.4
110
+ X-Forwarded-Port:
111
+ - '443'
112
+ Access-Control-Allow-Headers:
113
+ - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority,User-Agent
114
+ X-Amzn-Trace-Id:
115
+ - Root=1-5f7c842e-79f66afc471d6a76395402fb
116
+ Wso2-Am-Api-Default-Version:
117
+ - 'true'
118
+ X-Auth-Token:
119
+ - deadbeefdeadbeefdeadbeefdeadbeef
120
+ X-Forwarded-For:
121
+ - 217.168.17.4, 141.101.98.82
122
+ Cf-Request-Id:
123
+ - '059ffd6ed20000e618c2125200000001'
124
+ Cf-Cache-Status:
125
+ - DYNAMIC
126
+ Expect-Ct:
127
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
128
+ Strict-Transport-Security:
129
+ - max-age=2592000; includeSubDomains
130
+ Server:
131
+ - cloudflare
132
+ Cf-Ray:
133
+ - 5de031c48c19e618-LHR
134
+ body:
135
+ encoding: UTF-8
136
+ string: |-
137
+ {"withdrawal_accounts": [ { "id": "0886ac00-6ab6-41a6-b0e1-8d3faf2e0de2", "account_name": "currencycloud", "account_holder_name": "The Currency Cloud", "account_holder_dob": null, "routing_code": "123456789", "account_number": "01234567890", "currency": "USD", "account_id": "72970a7c-7921-431c-b95f-3438724ba16f" }, { "id": "0886ac00-6ab6-41a6-b0e1-8d3faf2e0de3", "account_name": "currencycloud2", "account_holder_name": "The Currency Cloud 2", "account_holder_dob": "1990-07-20", "routing_code": "223456789", "account_number": "01234567892", "currency": "GBP", "account_id": "72970a7c-7921-431c-b95f-3438724ba16e" }],"pagination": { "total_entries": 2, "total_pages": 1, "current_page": 1, "per_page": 25, "previous_page": -1, "next_page": -1, "order": "created_at", "order_asc_desc": "asc"}}
138
+ http_version:
139
+ recorded_at: Tue, 06 Oct 2020 14:50:22 GMT
140
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,140 @@
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/1.0.3
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Date:
18
+ - Tue, 06 Oct 2020 14:57:04 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=+5Bn07KhTyd8ay/xxyjs4ZHckx+wkDTfrA80GorY54ZviIp/vvD/sBmk/jf5S5i1YrEEgjnAFwp3USqW3T89BGjsd9wszWiebB0mbJ/aL4Ets4ZrWBECalxs5pJT;
27
+ Expires=Tue, 13 Oct 2020 14:57:02 GMT; Path=/
28
+ - AWSALBCORS=+5Bn07KhTyd8ay/xxyjs4ZHckx+wkDTfrA80GorY54ZviIp/vvD/sBmk/jf5S5i1YrEEgjnAFwp3USqW3T89BGjsd9wszWiebB0mbJ/aL4Ets4ZrWBECalxs5pJT;
29
+ Expires=Tue, 13 Oct 2020 14:57:02 GMT; Path=/; SameSite=None; Secure
30
+ - __cfduid=d70c09bac27ff94e69a66c56e09ea0e211601996222; expires=Thu, 05-Nov-20
31
+ 14:57:02 GMT; path=/; domain=.currencycloud.com; HttpOnly; SameSite=Lax
32
+ Access-Control-Allow-Origin:
33
+ - "*"
34
+ X-Request-Id:
35
+ - ca2e91bf-0038-4e36-b0a8-5ab248553304
36
+ Access-Control-Allow-Methods:
37
+ - POST
38
+ X-Content-Type-Options:
39
+ - nosniff
40
+ Vary:
41
+ - Origin
42
+ Access-Control-Allow-Headers:
43
+ - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority,User-Agent
44
+ Cf-Cache-Status:
45
+ - DYNAMIC
46
+ Cf-Request-Id:
47
+ - 05a00389200000ce2fb1be0200000001
48
+ Expect-Ct:
49
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
50
+ Strict-Transport-Security:
51
+ - max-age=2592000; includeSubDomains
52
+ Server:
53
+ - cloudflare
54
+ Cf-Ray:
55
+ - 5de03b883b41ce2f-LHR
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
59
+ http_version:
60
+ recorded_at: Tue, 06 Oct 2020 14:57:04 GMT
61
+ - request:
62
+ method: post
63
+ uri: https://devapi.currencycloud.com/v2/withdrawal_accounts/0886ac00-6ab6-41a6-b0e1-8d3faf2e0de2/pull_funds
64
+ body:
65
+ encoding: UTF-8
66
+ string: reference=PullFunds1&amount=100.0
67
+ headers:
68
+ X-Auth-Token:
69
+ - deadbeefdeadbeefdeadbeefdeadbeef
70
+ User-Agent:
71
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
72
+ response:
73
+ status:
74
+ code: 200
75
+ message: OK
76
+ headers:
77
+ Date:
78
+ - Tue, 06 Oct 2020 14:58:18 GMT
79
+ Content-Type:
80
+ - application/json; charset=UTF-8
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ Set-Cookie:
86
+ - AWSALB=zAxJVt+VYDZWl6uY00wpKwEbXjrgXTN+qejbio2A6YS8V+6lBqAR0Jnjlp4JytpEUfEahh/dd7tsj9RU6ZNBzRB/wzZTdwEXJgUsfoK9w6nlmcq8fEHp7KfxeQaZ;
87
+ Expires=Tue, 13 Oct 2020 14:58:18 GMT; Path=/
88
+ - AWSALBCORS=zAxJVt+VYDZWl6uY00wpKwEbXjrgXTN+qejbio2A6YS8V+6lBqAR0Jnjlp4JytpEUfEahh/dd7tsj9RU6ZNBzRB/wzZTdwEXJgUsfoK9w6nlmcq8fEHp7KfxeQaZ;
89
+ Expires=Tue, 13 Oct 2020 14:58:18 GMT; Path=/; SameSite=None; Secure
90
+ - __cfduid=d8cdf69d035d7aafb48f8bef431d260cd1601996298; expires=Thu, 05-Nov-20
91
+ 14:58:18 GMT; path=/; domain=.currencycloud.com; HttpOnly; SameSite=Lax
92
+ Cf-Ipcountry:
93
+ - GB
94
+ Access-Control-Allow-Origin:
95
+ - "*"
96
+ Access-Control-Allow-Methods:
97
+ - DELETE,POST,GET,OPTIONS,PATCH,PUT
98
+ User-Agent:
99
+ - CurrencyCloudSDK/2.0 Ruby/1.0.3
100
+ X-Forwarded-Proto:
101
+ - https
102
+ Cdn-Loop:
103
+ - cloudflare
104
+ Cf-Visitor:
105
+ - '{"scheme":"https"}'
106
+ Accept-Encoding:
107
+ - gzip
108
+ Cf-Connecting-Ip:
109
+ - 217.168.17.4
110
+ X-Forwarded-Port:
111
+ - '443'
112
+ Access-Control-Allow-Headers:
113
+ - authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority,User-Agent
114
+ X-Amzn-Trace-Id:
115
+ - Root=1-5f7c860a-483eb0410e5e568b35f74737
116
+ Wso2-Am-Api-Default-Version:
117
+ - 'true'
118
+ X-Auth-Token:
119
+ - deadbeefdeadbeefdeadbeefdeadbeef
120
+ X-Forwarded-For:
121
+ - 217.168.17.4, 141.101.99.87
122
+ Cf-Request-Id:
123
+ - 05a004b1cd00000762bf043200000001
124
+ Cf-Cache-Status:
125
+ - DYNAMIC
126
+ Expect-Ct:
127
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
128
+ Strict-Transport-Security:
129
+ - max-age=2592000; includeSubDomains
130
+ Server:
131
+ - cloudflare
132
+ Cf-Ray:
133
+ - 5de03d62eeb50762-LHR
134
+ body:
135
+ encoding: UTF-8
136
+ string: |-
137
+ { "id": "e2e6b7aa-c9e8-4625-96a6-b97d4baab758", "withdrawal_account_id": "0886ac00-6ab6-41a6-b0e1-8d3faf2e0de2", "reference": "PullFunds1", "amount": "100.00", "created_at": "2020-06-29T08:02:31+00:00"}
138
+ http_version:
139
+ recorded_at: Tue, 06 Oct 2020 14:58:18 GMT
140
+ recorded_with: VCR 5.0.0