currency_cloud 4.0.1 → 4.1.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/README.md +1 -0
- data/lib/currency_cloud/account.rb +9 -0
- data/lib/currency_cloud/account_compliance_setting.rb +5 -0
- data/lib/currency_cloud/version.rb +1 -1
- data/spec/integration/account_spec.rb +68 -0
- 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/Accounts/get_compliance_settings.yml +121 -0
- data/spec/support/vcr_cassettes/Accounts/update_compliance_settings.yml +121 -0
- 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 +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3643aa2cd3394e86f414423d0d72d0adfb3ca215bcaa67412e6b03956a4694a
|
|
4
|
+
data.tar.gz: 48f3777f3eab00d4aa40de16a3b0f52cd3b9131613695ae755800797516033a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28ccef00d2b925a7f2921440826db6ef3e5dcd9ac122a48d0b04d083747bbe633d861d8999dea0a5d6841f82d583deda1cfc99d5d9650ffd22d418e80ff0d919
|
|
7
|
+
data.tar.gz: 9d6e96d93f37791e7e991a8ca8777947915bb397d0cfcc0f9773df108cece3a3e364fea097725697b7950178e68e8395fe63af017d65e54f38187ccbfcb561cd
|
data/README.md
CHANGED
|
@@ -16,5 +16,14 @@ module CurrencyCloud
|
|
|
16
16
|
AccountPaymentChargesSetting.new(settings)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def self.get_compliance_settings(account_id, params={})
|
|
20
|
+
settings = client.get("#{account_id}/compliance_settings", params)
|
|
21
|
+
AccountComplianceSetting.new(settings)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.update_compliance_settings(account_id, params)
|
|
25
|
+
settings = client.post("#{account_id}/compliance_settings", params)
|
|
26
|
+
AccountComplianceSetting.new(settings)
|
|
27
|
+
end
|
|
19
28
|
end
|
|
20
29
|
end
|
|
@@ -44,5 +44,73 @@ describe "Accounts", vcr: true do
|
|
|
44
44
|
expect(updated.enabled).to eq(true)
|
|
45
45
|
expect(updated.default).to eq(true)
|
|
46
46
|
end
|
|
47
|
+
|
|
48
|
+
it "get_compliance_settings" do
|
|
49
|
+
settings = CurrencyCloud::Account.get_compliance_settings("3e12053j-ae22-40b1-cc4e-cc0230c009a5")
|
|
50
|
+
|
|
51
|
+
expect(settings).to be_a_kind_of(CurrencyCloud::AccountComplianceSetting)
|
|
52
|
+
expect(settings.account_id).to eq("3e12053j-ae22-40b1-cc4e-cc0230c009a5")
|
|
53
|
+
expect(settings.industry_type).to eq('some-type')
|
|
54
|
+
expect(settings.country_of_incorporation).to eq('US')
|
|
55
|
+
expect(settings.date_of_incorporation).to eq('2020-01-30')
|
|
56
|
+
expect(settings.business_website_url).to eq('no_website_available')
|
|
57
|
+
expect(settings.expected_transaction_countries).to eq(['US', 'GB'])
|
|
58
|
+
expect(settings.expected_transaction_currencies).to eq(['GBP'])
|
|
59
|
+
expect(settings.expected_monthly_activity_volume).to eq(10)
|
|
60
|
+
expect(settings.expected_monthly_activity_value).to eq('30.00')
|
|
61
|
+
expect(settings.tax_identification).to eq('some-tax-id')
|
|
62
|
+
expect(settings.national_identification).to eq('some-national-id')
|
|
63
|
+
expect(settings.country_of_citizenship).to eq('US')
|
|
64
|
+
expect(settings.trading_address_street).to eq('some-street')
|
|
65
|
+
expect(settings.trading_address_city).to eq('some-city')
|
|
66
|
+
expect(settings.trading_address_state).to eq('NY')
|
|
67
|
+
expect(settings.trading_address_postalcode).to eq('90210')
|
|
68
|
+
expect(settings.trading_address_country).to eq('US')
|
|
69
|
+
expect(settings.customer_risk).to eq('LOW')
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
it "update_compliance_settings" do
|
|
73
|
+
params = {
|
|
74
|
+
"industry_type" => "some-type",
|
|
75
|
+
"country_of_incorporation" => "US",
|
|
76
|
+
"date_of_incorporation" => "2020-01-30",
|
|
77
|
+
"business_website_url" => "no_website_available",
|
|
78
|
+
"expected_transaction_countries" => ["US", "GB"],
|
|
79
|
+
"expected_transaction_currencies" => ["GBP"],
|
|
80
|
+
"expected_monthly_activity_volume" => 10,
|
|
81
|
+
"expected_monthly_activity_value" => "30.00",
|
|
82
|
+
"tax_identification" => "some-tax-id",
|
|
83
|
+
"national_identification" => "some-national-id",
|
|
84
|
+
"country_of_citizenship" => "US",
|
|
85
|
+
"trading_address_street" => "some-street",
|
|
86
|
+
"trading_address_city" => "some-city",
|
|
87
|
+
"trading_address_state" => "NY",
|
|
88
|
+
"trading_address_postalcode" => "90210",
|
|
89
|
+
"trading_address_country" => "US",
|
|
90
|
+
"customer_risk" => "LOW"
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
settings = CurrencyCloud::Account.update_compliance_settings("3e12053j-ae22-40b1-cc4e-cc0230c009a5", params)
|
|
94
|
+
|
|
95
|
+
expect(settings).to be_a_kind_of(CurrencyCloud::AccountComplianceSetting)
|
|
96
|
+
expect(settings.account_id).to eq("3e12053j-ae22-40b1-cc4e-cc0230c009a5")
|
|
97
|
+
expect(settings.industry_type).to eq('some-type')
|
|
98
|
+
expect(settings.country_of_incorporation).to eq('US')
|
|
99
|
+
expect(settings.date_of_incorporation).to eq('2020-01-30')
|
|
100
|
+
expect(settings.business_website_url).to eq('no_website_available')
|
|
101
|
+
expect(settings.expected_transaction_countries).to eq(['US', 'GB'])
|
|
102
|
+
expect(settings.expected_transaction_currencies).to eq(['GBP'])
|
|
103
|
+
expect(settings.expected_monthly_activity_volume).to eq(10)
|
|
104
|
+
expect(settings.expected_monthly_activity_value).to eq('30.00')
|
|
105
|
+
expect(settings.tax_identification).to eq('some-tax-id')
|
|
106
|
+
expect(settings.national_identification).to eq('some-national-id')
|
|
107
|
+
expect(settings.country_of_citizenship).to eq('US')
|
|
108
|
+
expect(settings.trading_address_street).to eq('some-street')
|
|
109
|
+
expect(settings.trading_address_city).to eq('some-city')
|
|
110
|
+
expect(settings.trading_address_state).to eq('NY')
|
|
111
|
+
expect(settings.trading_address_postalcode).to eq('90210')
|
|
112
|
+
expect(settings.trading_address_country).to eq('US')
|
|
113
|
+
expect(settings.customer_risk).to eq('LOW')
|
|
114
|
+
end
|
|
47
115
|
end
|
|
48
116
|
|
|
@@ -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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
62
62
|
response:
|
|
63
63
|
status:
|
|
64
64
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
62
62
|
response:
|
|
63
63
|
status:
|
|
64
64
|
code: 200
|
|
@@ -0,0 +1,121 @@
|
|
|
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/4.1.0
|
|
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; Expires=Mon, 23 Jul 2018 08:20:13 GMT; Path=/
|
|
27
|
+
- __cfduid=d0c32af71ff0925dd045630165ce66c121531729213; expires=Tue, 16-Jul-19 08:20:13 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
|
28
|
+
Access-Control-Allow-Origin:
|
|
29
|
+
- "*"
|
|
30
|
+
X-Request-Id:
|
|
31
|
+
- e8908fc1-4f80-4c60-9c44-363928bed983
|
|
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
|
+
- 43b30c5d1b930a8a-LHR
|
|
46
|
+
body:
|
|
47
|
+
encoding: US-ASCII
|
|
48
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
|
49
|
+
http_version:
|
|
50
|
+
recorded_at: Mon, 16 Jul 2018 08:20:14 GMT
|
|
51
|
+
- request:
|
|
52
|
+
method: get
|
|
53
|
+
uri: https://devapi.currencycloud.com/v2/accounts/3e12053j-ae22-40b1-cc4e-cc0230c009a5/compliance_settings
|
|
54
|
+
body:
|
|
55
|
+
encoding: US-ASCII
|
|
56
|
+
string: ''
|
|
57
|
+
headers:
|
|
58
|
+
X-Auth-Token:
|
|
59
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
60
|
+
User-Agent:
|
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
62
|
+
response:
|
|
63
|
+
status:
|
|
64
|
+
code: 200
|
|
65
|
+
message: OK
|
|
66
|
+
headers:
|
|
67
|
+
Date:
|
|
68
|
+
- Mon, 16 Jul 2018 08:20:15 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=f61uJIdQJ62af6qzIvrUyJ/GuWAfhANu0wtDcexsHBbOaAWvC7AoyaVAebCjVgxZ3oyt3y7xdvr8TmJhcmtxkFE3YVOtliw8PJm2Nb66/OMzp5C0zgAnUn+FagXL; Expires=Mon, 23 Jul 2018 08:20:14 GMT; Path=/
|
|
77
|
+
- __cfduid=db268a59c300ca9cb4728d291492bb4cd1531729214; expires=Tue, 16-Jul-19 08:20:14 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
|
78
|
+
Access-Control-Allow-Origin:
|
|
79
|
+
- "*"
|
|
80
|
+
X-Request-Id:
|
|
81
|
+
- 54f7d95c-dd88-4cf4-bf3c-35b21bd66a63
|
|
82
|
+
Access-Control-Allow-Methods:
|
|
83
|
+
- GET
|
|
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
|
+
- 43b30c692e8606d0-LHR
|
|
96
|
+
body:
|
|
97
|
+
encoding: US-ASCII
|
|
98
|
+
string: >-
|
|
99
|
+
{
|
|
100
|
+
"account_id": "3e12053j-ae22-40b1-cc4e-cc0230c009a5",
|
|
101
|
+
"industry_type": "some-type",
|
|
102
|
+
"country_of_incorporation": "US",
|
|
103
|
+
"date_of_incorporation": "2020-01-30",
|
|
104
|
+
"business_website_url": "no_website_available",
|
|
105
|
+
"expected_transaction_countries": ["US", "GB"],
|
|
106
|
+
"expected_transaction_currencies": ["GBP"],
|
|
107
|
+
"expected_monthly_activity_volume": 10,
|
|
108
|
+
"expected_monthly_activity_value": "30.00",
|
|
109
|
+
"tax_identification": "some-tax-id",
|
|
110
|
+
"national_identification": "some-national-id",
|
|
111
|
+
"country_of_citizenship": "US",
|
|
112
|
+
"trading_address_street": "some-street",
|
|
113
|
+
"trading_address_city": "some-city",
|
|
114
|
+
"trading_address_state": "NY",
|
|
115
|
+
"trading_address_postalcode": "90210",
|
|
116
|
+
"trading_address_country": "US",
|
|
117
|
+
"customer_risk": "LOW"
|
|
118
|
+
}
|
|
119
|
+
http_version:
|
|
120
|
+
recorded_at: Mon, 16 Jul 2018 08:20:15 GMT
|
|
121
|
+
recorded_with: VCR 4.0.0
|
|
@@ -0,0 +1,121 @@
|
|
|
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/4.1.0
|
|
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; Expires=Mon, 23 Jul 2018 08:20:13 GMT; Path=/
|
|
27
|
+
- __cfduid=d0c32af71ff0925dd045630165ce66c121531729213; expires=Tue, 16-Jul-19 08:20:13 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
|
28
|
+
Access-Control-Allow-Origin:
|
|
29
|
+
- "*"
|
|
30
|
+
X-Request-Id:
|
|
31
|
+
- e8908fc1-4f80-4c60-9c44-363928bed983
|
|
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
|
+
- 43b30c5d1b930a8a-LHR
|
|
46
|
+
body:
|
|
47
|
+
encoding: US-ASCII
|
|
48
|
+
string: '{"auth_token":"deadbeefdeadbeefdeadbeefdeadbeef"}'
|
|
49
|
+
http_version:
|
|
50
|
+
recorded_at: Mon, 16 Jul 2018 08:20:14 GMT
|
|
51
|
+
- request:
|
|
52
|
+
method: post
|
|
53
|
+
uri: https://devapi.currencycloud.com/v2/accounts/3e12053j-ae22-40b1-cc4e-cc0230c009a5/compliance_settings
|
|
54
|
+
body:
|
|
55
|
+
encoding: US-ASCII
|
|
56
|
+
string: ''
|
|
57
|
+
headers:
|
|
58
|
+
X-Auth-Token:
|
|
59
|
+
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
60
|
+
User-Agent:
|
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
62
|
+
response:
|
|
63
|
+
status:
|
|
64
|
+
code: 200
|
|
65
|
+
message: OK
|
|
66
|
+
headers:
|
|
67
|
+
Date:
|
|
68
|
+
- Mon, 16 Jul 2018 08:20:15 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=f61uJIdQJ62af6qzIvrUyJ/GuWAfhANu0wtDcexsHBbOaAWvC7AoyaVAebCjVgxZ3oyt3y7xdvr8TmJhcmtxkFE3YVOtliw8PJm2Nb66/OMzp5C0zgAnUn+FagXL; Expires=Mon, 23 Jul 2018 08:20:14 GMT; Path=/
|
|
77
|
+
- __cfduid=db268a59c300ca9cb4728d291492bb4cd1531729214; expires=Tue, 16-Jul-19 08:20:14 GMT; path=/; domain=.currencycloud.com; HttpOnly
|
|
78
|
+
Access-Control-Allow-Origin:
|
|
79
|
+
- "*"
|
|
80
|
+
X-Request-Id:
|
|
81
|
+
- 54f7d95c-dd88-4cf4-bf3c-35b21bd66a63
|
|
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
|
+
- 43b30c692e8606d0-LHR
|
|
96
|
+
body:
|
|
97
|
+
encoding: US-ASCII
|
|
98
|
+
string: >-
|
|
99
|
+
{
|
|
100
|
+
"account_id": "3e12053j-ae22-40b1-cc4e-cc0230c009a5",
|
|
101
|
+
"industry_type": "some-type",
|
|
102
|
+
"country_of_incorporation": "US",
|
|
103
|
+
"date_of_incorporation": "2020-01-30",
|
|
104
|
+
"business_website_url": "no_website_available",
|
|
105
|
+
"expected_transaction_countries": ["US", "GB"],
|
|
106
|
+
"expected_transaction_currencies": ["GBP"],
|
|
107
|
+
"expected_monthly_activity_volume": 10,
|
|
108
|
+
"expected_monthly_activity_value": "30.00",
|
|
109
|
+
"tax_identification": "some-tax-id",
|
|
110
|
+
"national_identification": "some-national-id",
|
|
111
|
+
"country_of_citizenship": "US",
|
|
112
|
+
"trading_address_street": "some-street",
|
|
113
|
+
"trading_address_city": "some-city",
|
|
114
|
+
"trading_address_state": "NY",
|
|
115
|
+
"trading_address_postalcode": "90210",
|
|
116
|
+
"trading_address_country": "US",
|
|
117
|
+
"customer_risk": "LOW"
|
|
118
|
+
}
|
|
119
|
+
http_version:
|
|
120
|
+
recorded_at: Mon, 16 Jul 2018 08:20:15 GMT
|
|
121
|
+
recorded_with: VCR 4.0.0
|
|
@@ -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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
64
64
|
response:
|
|
65
65
|
status:
|
|
66
66
|
code: 200
|
|
@@ -112,7 +112,7 @@ http_interactions:
|
|
|
112
112
|
X-Auth-Token:
|
|
113
113
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
114
114
|
User-Agent:
|
|
115
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
115
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
116
116
|
response:
|
|
117
117
|
status:
|
|
118
118
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
64
64
|
response:
|
|
65
65
|
status:
|
|
66
66
|
code: 200
|
|
@@ -112,7 +112,7 @@ http_interactions:
|
|
|
112
112
|
X-Auth-Token:
|
|
113
113
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
114
114
|
User-Agent:
|
|
115
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
115
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
116
116
|
response:
|
|
117
117
|
status:
|
|
118
118
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
61
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
62
62
|
response:
|
|
63
63
|
status:
|
|
64
64
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
64
64
|
response:
|
|
65
65
|
status:
|
|
66
66
|
code: 200
|
|
@@ -112,7 +112,7 @@ http_interactions:
|
|
|
112
112
|
X-Auth-Token:
|
|
113
113
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
114
114
|
User-Agent:
|
|
115
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
115
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
116
116
|
response:
|
|
117
117
|
status:
|
|
118
118
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
|
37
37
|
X-Auth-Token:
|
|
38
38
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
39
39
|
User-Agent:
|
|
40
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
40
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
41
41
|
response:
|
|
42
42
|
status:
|
|
43
43
|
code: 200
|
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
|
66
66
|
X-Auth-Token:
|
|
67
67
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
68
68
|
User-Agent:
|
|
69
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
69
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
70
70
|
response:
|
|
71
71
|
status:
|
|
72
72
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
|
37
37
|
X-Auth-Token:
|
|
38
38
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
39
39
|
User-Agent:
|
|
40
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
40
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
41
41
|
response:
|
|
42
42
|
status:
|
|
43
43
|
code: 200
|
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
|
66
66
|
X-Auth-Token:
|
|
67
67
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
68
68
|
User-Agent:
|
|
69
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
69
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
70
70
|
response:
|
|
71
71
|
status:
|
|
72
72
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
|
37
37
|
X-Auth-Token:
|
|
38
38
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
39
39
|
User-Agent:
|
|
40
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
40
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
41
41
|
response:
|
|
42
42
|
status:
|
|
43
43
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
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/4.0
|
|
63
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
64
64
|
response:
|
|
65
65
|
status:
|
|
66
66
|
code: 200
|
|
@@ -112,7 +112,7 @@ http_interactions:
|
|
|
112
112
|
X-Auth-Token:
|
|
113
113
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
114
114
|
User-Agent:
|
|
115
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
115
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
116
116
|
response:
|
|
117
117
|
status:
|
|
118
118
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
|
37
37
|
X-Auth-Token:
|
|
38
38
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
39
39
|
User-Agent:
|
|
40
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
40
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
41
41
|
response:
|
|
42
42
|
status:
|
|
43
43
|
code: 200
|
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
|
66
66
|
X-Auth-Token:
|
|
67
67
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
68
68
|
User-Agent:
|
|
69
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
69
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
70
70
|
response:
|
|
71
71
|
status:
|
|
72
72
|
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/4.0
|
|
11
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
12
12
|
response:
|
|
13
13
|
status:
|
|
14
14
|
code: 200
|
|
@@ -37,7 +37,7 @@ http_interactions:
|
|
|
37
37
|
X-Auth-Token:
|
|
38
38
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
39
39
|
User-Agent:
|
|
40
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
40
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
41
41
|
response:
|
|
42
42
|
status:
|
|
43
43
|
code: 200
|
|
@@ -66,7 +66,7 @@ http_interactions:
|
|
|
66
66
|
X-Auth-Token:
|
|
67
67
|
- deadbeefdeadbeefdeadbeefdeadbeef
|
|
68
68
|
User-Agent:
|
|
69
|
-
- CurrencyCloudSDK/2.0 Ruby/4.0
|
|
69
|
+
- CurrencyCloudSDK/2.0 Ruby/4.1.0
|
|
70
70
|
response:
|
|
71
71
|
status:
|
|
72
72
|
code: 200
|