currency_cloud 1.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +0 -3
- data/lib/currency_cloud/payment.rb +0 -5
- data/lib/currency_cloud/version.rb +1 -1
- data/spec/integration/payments_spec.rb +0 -9
- data/spec/support/vcr_cassettes/Accounts/can_retrieve_account_payment_charges_settings.yml +2 -2
- data/spec/support/vcr_cassettes/Accounts/can_update_account_payment_charges_settings.yml +2 -2
- data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/with_notes/has_a_non-empty_notes_attribute.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_cancel_conversion/without_notes/has_a_empty_notes_attribute.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_cancellation_quote.yml +2 -2
- data/spec/support/vcr_cassettes/Conversions/can_date_change_conversion.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_retrieve_cancellation_quote.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_retrieve_date_change_quote.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_retrieve_profit_and_loss.yml +2 -2
- data/spec/support/vcr_cassettes/Conversions/can_split_conversion.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_split_history.yml +3 -3
- data/spec/support/vcr_cassettes/Conversions/can_split_preview.yml +3 -3
- data/spec/support/vcr_cassettes/FundingAccounts/can_find.yml +2 -2
- data/spec/support/vcr_cassettes/FundingAccounts/can_find_bad_request.yml +2 -2
- data/spec/support/vcr_cassettes/FundingAccounts/can_find_missing_currency.yml +2 -2
- data/spec/support/vcr_cassettes/FundingAccounts/can_find_unauthorized.yml +1 -1
- data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_a_specific_subaccount.yml +2 -2
- data/spec/support/vcr_cassettes/IBANs/can_IBANs_for_subaccounts.yml +2 -2
- data/spec/support/vcr_cassettes/IBANs/can_find.yml +1 -1
- data/spec/support/vcr_cassettes/Payments/can_authorise/when_payment_ids_are_valid.yml +5 -5
- data/spec/support/vcr_cassettes/Payments/can_create.yml +3 -3
- data/spec/support/vcr_cassettes/Payments/can_create_bad_request.yml +2 -2
- data/spec/support/vcr_cassettes/Payments/can_get_the_new_submission.yml +4 -4
- data/spec/support/vcr_cassettes/Payments/can_retrieve_confirmation.yml +3 -3
- data/spec/support/vcr_cassettes/Payments/can_retrieve_payment_delivery_date.yml +2 -2
- data/spec/support/vcr_cassettes/Payments/can_retrieve_payment_tracking_info.yml +2 -2
- data/spec/support/vcr_cassettes/Payments/can_retrieve_quote_payment_fee.yml +2 -2
- data/spec/support/vcr_cassettes/Payments/can_validate.yml +3 -3
- data/spec/support/vcr_cassettes/Payments/can_validate_and_create_with_sca.yml +4 -4
- data/spec/support/vcr_cassettes/Rates/can_provided_detailed_rate_with_conversion_date_preference.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_bank_details.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_conversion_dates.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_currencies.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payer_required_details.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_dates.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_fee_rules.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_payment_purpose_codes.yml +2 -2
- data/spec/support/vcr_cassettes/Reference/can_retrieve_settlement_accounts.yml +2 -2
- data/spec/support/vcr_cassettes/Reports/can_create_payments_report.yml +2 -2
- data/spec/support/vcr_cassettes/Reports/can_find_report_requests.yml +2 -2
- data/spec/support/vcr_cassettes/Reports/can_retrieve_report_request.yml +2 -2
- data/spec/support/vcr_cassettes/TermsAndConditions/can_accept_terms.yml +3 -3
- data/spec/support/vcr_cassettes/Transactions/can_retrieve_sender_details.yml +2 -2
- data/spec/support/vcr_cassettes/Transfers/can_cancel.yml +3 -3
- data/spec/support/vcr_cassettes/Transfers/can_create.yml +2 -2
- data/spec/support/vcr_cassettes/Transfers/can_find.yml +3 -3
- data/spec/support/vcr_cassettes/Transfers/can_retrieve.yml +3 -3
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find.yml +2 -2
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_a_specific_subaccount.yml +2 -2
- data/spec/support/vcr_cassettes/VirtualAccounts/can_find_VANs_for_subaccounts.yml +2 -2
- data/spec/support/vcr_cassettes/WithdrawalAccounts/can_find_withdrawal_accounts.yml +3 -3
- data/spec/support/vcr_cassettes/WithdrawalAccounts/can_find_withdrawal_accounts2.yml +3 -3
- data/spec/support/vcr_cassettes/WithdrawalAccounts/can_pull_funds.yml +3 -3
- metadata +2 -5
- data/lib/currency_cloud/payment_submission.rb +0 -5
- data/spec/support/vcr_cassettes/Payments/can_get_the_submission.yml +0 -205
@@ -1,205 +0,0 @@
|
|
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.8.0
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message: OK
|
16
|
-
headers:
|
17
|
-
Date:
|
18
|
-
- Mon, 16 Jul 2018 09:18:06 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=Eitx/FGN3EPrLRfUj4m3bdN74Evvtb3wuOG1ReBiSPzXZrCa8naOsqZeYE/a84LLcRLWGleKA7X1SHkXyuS2CFNwx2f2VWY8RWJKQWovk7H/twnUy8ZnevMxCGpj; Expires=Mon, 23 Jul 2018 09:18:04 GMT; Path=/
|
27
|
-
- __cfduid=d1061aa9ff939c5be99f1eed8c46f70fc1531732684; expires=Tue, 16-Jul-19 09:18:04 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
28
|
-
Access-Control-Allow-Origin:
|
29
|
-
- "*"
|
30
|
-
X-Request-Id:
|
31
|
-
- 5feb46eb-699b-40c4-8fc7-df9cad60a38b
|
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
|
-
- 43b3611d8e33bbba-LHR
|
46
|
-
body:
|
47
|
-
encoding: US-ASCII
|
48
|
-
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
49
|
-
http_version:
|
50
|
-
recorded_at: Mon, 16 Jul 2018 09:18:06 GMT
|
51
|
-
- request:
|
52
|
-
method: post
|
53
|
-
uri: https://devapi.currencycloud.com/v2/beneficiaries/create
|
54
|
-
body:
|
55
|
-
encoding: US-ASCII
|
56
|
-
string: bank_account_holder_name=Test%20User&bank_country=GB¤cy=GBP&name=Test%20User&account_number=12345678&routing_code_type_1=sort_code&routing_code_value_1=123456
|
57
|
-
headers:
|
58
|
-
X-Auth-Token:
|
59
|
-
- deadbeefdeadbeefdeadbeefdeadbeef
|
60
|
-
User-Agent:
|
61
|
-
- CurrencyCloudSDK/2.0 Ruby/1.8.0
|
62
|
-
response:
|
63
|
-
status:
|
64
|
-
code: 200
|
65
|
-
message: OK
|
66
|
-
headers:
|
67
|
-
Date:
|
68
|
-
- Mon, 16 Jul 2018 09:18:06 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=pPddo35SeNLw41e+IDFX3FoFmp29FdYKaDZOAukXSqvkWV5CQ2R3vosq8EnyF0e98f2uPHfbEFtUiFGXO/taiZkht3vyEqNy7wm0/Jsra2kH/2idcJFjuxs1O/Xp; Expires=Mon, 23 Jul 2018 09:18:06 GMT; Path=/
|
77
|
-
- __cfduid=d294a21425beb6795322afff02562d9161531732686; expires=Tue, 16-Jul-19 09:18:06 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
78
|
-
Access-Control-Allow-Origin:
|
79
|
-
- "*"
|
80
|
-
X-Request-Id:
|
81
|
-
- 7d734f24-9714-41d1-a54b-f874a0ecdfb3
|
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
|
-
- 43b361284b1ebbcc-LHR
|
96
|
-
body:
|
97
|
-
encoding: US-ASCII
|
98
|
-
string: '{"id":"fefe1c10-9e62-48d2-9b97-7304bb9e40f4","bank_account_holder_name":"Test
|
99
|
-
User","name":"Test User","email":null,"payment_types":["priority","regular"],"beneficiary_address":[],"beneficiary_country":null,"beneficiary_entity_type":null,"beneficiary_company_name":null,"beneficiary_first_name":null,"beneficiary_last_name":null,"beneficiary_city":null,"beneficiary_postcode":null,"beneficiary_state_or_province":null,"beneficiary_date_of_birth":null,"beneficiary_identification_type":null,"beneficiary_identification_value":null,"bank_country":"GB","bank_name":"TEST
|
100
|
-
BANK NAME","bank_account_type":null,"currency":"GBP","account_number":"12345678","routing_code_type_1":"sort_code","routing_code_value_1":"123456","routing_code_type_2":null,"routing_code_value_2":null,"bic_swift":null,"iban":null,"default_beneficiary":"false","creator_contact_id":"97bd468f-c7bc-446f-ba68-dd8cf2bddef2","bank_address":["TEST
|
101
|
-
BANK ADDRESS"," NOT USING EXTERNAL SERVICE"," DEVELOPMENT ENVIRONMENT."],"created_at":"2018-07-16T09:18:06+00:00","updated_at":"2018-07-16T09:18:06+00:00","beneficiary_external_reference":null}'
|
102
|
-
http_version:
|
103
|
-
recorded_at: Mon, 16 Jul 2018 09:18:06 GMT
|
104
|
-
- request:
|
105
|
-
method: post
|
106
|
-
uri: https://devapi.currencycloud.com/v2/payments/create
|
107
|
-
body:
|
108
|
-
encoding: US-ASCII
|
109
|
-
string: currency=GBP&beneficiary_id=fefe1c10-9e62-48d2-9b97-7304bb9e40f4&amount=1000&reason=Testing%20payments&reference=Testing%20payments&payment_type=regular
|
110
|
-
headers:
|
111
|
-
X-Auth-Token:
|
112
|
-
- deadbeefdeadbeefdeadbeefdeadbeef
|
113
|
-
User-Agent:
|
114
|
-
- CurrencyCloudSDK/2.0 Ruby/1.8.0
|
115
|
-
response:
|
116
|
-
status:
|
117
|
-
code: 200
|
118
|
-
message: OK
|
119
|
-
headers:
|
120
|
-
Date:
|
121
|
-
- Mon, 16 Jul 2018 09:18:07 GMT
|
122
|
-
Content-Type:
|
123
|
-
- application/json;charset=utf-8
|
124
|
-
Transfer-Encoding:
|
125
|
-
- chunked
|
126
|
-
Connection:
|
127
|
-
- keep-alive
|
128
|
-
Set-Cookie:
|
129
|
-
- AWSALB=35mC30qH9ESAuuaxoBcNINoaAFsOZ/mAeJoTgI3k3L1eJkU0XKwJLFpB2AkEdsEM5y4Vxxami7H1eiqhOxK64KhH1U1v03/O64YO27We8J9A4Fdzi5knhIfk2Fha; Expires=Mon, 23 Jul 2018 09:18:06 GMT; Path=/
|
130
|
-
- __cfduid=d4aecdab018d0b197e1136cc064a5c3e61531732686; expires=Tue, 16-Jul-19 09:18:06 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
131
|
-
Access-Control-Allow-Origin:
|
132
|
-
- "*"
|
133
|
-
X-Request-Id:
|
134
|
-
- fdf86e2a-cf9a-4266-96e8-b0f63d188543
|
135
|
-
Access-Control-Allow-Methods:
|
136
|
-
- POST
|
137
|
-
X-Content-Type-Options:
|
138
|
-
- nosniff
|
139
|
-
Vary:
|
140
|
-
- Origin
|
141
|
-
Access-Control-Allow-Headers:
|
142
|
-
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
143
|
-
Expect-Ct:
|
144
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
145
|
-
Server:
|
146
|
-
- cloudflare
|
147
|
-
Cf-Ray:
|
148
|
-
- 43b3612b8ae4bbae-LHR
|
149
|
-
body:
|
150
|
-
encoding: US-ASCII
|
151
|
-
string: '{"id":"af7cb12e-56d1-41a9-983d-a47927609e32","amount":"1000.00","beneficiary_id":"fefe1c10-9e62-48d2-9b97-7304bb9e40f4","currency":"GBP","reference":"Testing
|
152
|
-
payments","reason":"Testing payments","status":"ready_to_send","creator_contact_id":"97bd468f-c7bc-446f-ba68-dd8cf2bddef2","payment_type":"regular","payment_date":"2018-07-16","transferred_at":"","authorisation_steps_required":"0","last_updater_contact_id":"97bd468f-c7bc-446f-ba68-dd8cf2bddef2","short_reference":"180716-MWSMWM001","conversion_id":null,"failure_reason":"","payer_id":"08200442-7a72-4260-baa3-041d0535051e","payer_details_source":"account","created_at":"2018-07-16T09:18:07+00:00","updated_at":"2018-07-16T09:18:07+00:00","payment_group_id":null,"unique_request_id":null,"failure_returned_amount":"0.00","ultimate_beneficiary_name":null}'
|
153
|
-
http_version:
|
154
|
-
recorded_at: Mon, 16 Jul 2018 09:18:07 GMT
|
155
|
-
- request:
|
156
|
-
method: get
|
157
|
-
uri: https://devapi.currencycloud.com/v2/payments/af7cb12e-56d1-41a9-983d-a47927609e32/submission
|
158
|
-
body:
|
159
|
-
encoding: US-ASCII
|
160
|
-
string: ''
|
161
|
-
headers:
|
162
|
-
X-Auth-Token:
|
163
|
-
- deadbeefdeadbeefdeadbeefdeadbeef
|
164
|
-
User-Agent:
|
165
|
-
- CurrencyCloudSDK/2.0 Ruby/1.8.0
|
166
|
-
response:
|
167
|
-
status:
|
168
|
-
code: 200
|
169
|
-
message: OK
|
170
|
-
headers:
|
171
|
-
Date:
|
172
|
-
- Mon, 16 Jul 2018 09:18:07 GMT
|
173
|
-
Content-Type:
|
174
|
-
- application/json;charset=utf-8
|
175
|
-
Transfer-Encoding:
|
176
|
-
- chunked
|
177
|
-
Connection:
|
178
|
-
- keep-alive
|
179
|
-
Set-Cookie:
|
180
|
-
- AWSALB=/6jU7TfV1kIoKJzny4kQgKBL1UKQBlKqEmxv7XeGzpNIvXKBNPQCRlYf2ZO9Lb00aY6r9gXQRQllgBwLcGYPy22UCX98x1PG88LpOrtMSUm01Zv4aHzRUueOaI4z; Expires=Mon, 23 Jul 2018 09:18:07 GMT; Path=/
|
181
|
-
- __cfduid=d28f922ef766a399aec7f05f79530e3341531732687; expires=Tue, 16-Jul-19 09:18:07 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
182
|
-
Access-Control-Allow-Origin:
|
183
|
-
- "*"
|
184
|
-
X-Request-Id:
|
185
|
-
- 850d1fe4-76f8-4863-b8f3-c764f7b2cef5
|
186
|
-
Access-Control-Allow-Methods:
|
187
|
-
- GET
|
188
|
-
X-Content-Type-Options:
|
189
|
-
- nosniff
|
190
|
-
Vary:
|
191
|
-
- Origin
|
192
|
-
Access-Control-Allow-Headers:
|
193
|
-
- authorization,Access-Control-Allow-Origin,Content-Type,SOAPAction,X-Auth-Token,Origin,Authority
|
194
|
-
Expect-Ct:
|
195
|
-
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
196
|
-
Server:
|
197
|
-
- cloudflare
|
198
|
-
Cf-Ray:
|
199
|
-
- 43b36130eeeebbe4-LHR
|
200
|
-
body:
|
201
|
-
encoding: US-ASCII
|
202
|
-
string: '{"status":null,"mt103":null,"submission_ref":null}'
|
203
|
-
http_version:
|
204
|
-
recorded_at: Mon, 16 Jul 2018 09:18:07 GMT
|
205
|
-
recorded_with: VCR 4.0.0
|