currency_cloud 0.7.2 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -0
- data/.travis.yml +5 -2
- data/Gemfile +1 -0
- data/README.md +7 -7
- data/currency_cloud.gemspec +1 -0
- data/lib/currency_cloud.rb +1 -1
- data/lib/currency_cloud/actions.rb +8 -8
- data/lib/currency_cloud/actions/create.rb +1 -1
- data/lib/currency_cloud/actions/current.rb +1 -1
- data/lib/currency_cloud/actions/find.rb +8 -9
- data/lib/currency_cloud/actions/update.rb +1 -1
- data/lib/currency_cloud/beneficiary.rb +1 -1
- data/lib/currency_cloud/client.rb +2 -2
- data/lib/currency_cloud/errors/api_error.rb +2 -3
- data/lib/currency_cloud/errors/error_utils.rb +1 -1
- data/lib/currency_cloud/errors/general_error.rb +1 -3
- data/lib/currency_cloud/errors/unexpected_error.rb +3 -4
- data/lib/currency_cloud/rate.rb +4 -4
- data/lib/currency_cloud/reference.rb +7 -7
- data/lib/currency_cloud/request_handler.rb +10 -10
- data/lib/currency_cloud/resource.rb +7 -7
- data/lib/currency_cloud/resourceful_collection.rb +3 -3
- data/lib/currency_cloud/response_handler.rb +2 -5
- data/lib/currency_cloud/session.rb +9 -9
- data/lib/currency_cloud/version.rb +2 -2
- data/spec/currency_cloud/request_handler_spec.rb +8 -8
- data/spec/currency_cloud/resource_spec.rb +4 -4
- data/spec/currency_cloud_spec.rb +28 -36
- data/spec/integration/actions_spec.rb +27 -27
- data/spec/integration/authentication_spec.rb +2 -2
- data/spec/integration/errors_spec.rb +8 -9
- data/spec/integration/rates_spec.rb +1 -1
- data/spec/integration/reference_spec.rb +15 -15
- data/spec/integration/settlements_spec.rb +7 -8
- data/spec/spec_helper.rb +1 -1
- data/spec/support/vcr_cassettes/Actions/can_create.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_current.yml +2 -2
- data/spec/support/vcr_cassettes/Actions/can_delete.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_find.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_first.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_retrieve.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_update.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_use_currency_to_retrieve_balance.yml +1 -1
- data/spec/support/vcr_cassettes/Actions/can_validate_beneficiaries.yml +1 -1
- data/spec/support/vcr_cassettes/Authentication/can_be_closed.yml +2 -2
- data/spec/support/vcr_cassettes/Authentication/can_use_just_a_token.yml +1 -1
- data/spec/support/vcr_cassettes/Authentication/handles_session_timeout_error.yml +3 -3
- data/spec/support/vcr_cassettes/Authentication/happens_lazily.yml +1 -1
- 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_a_resource_is_not_found.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/Rates/can_find.yml +1 -1
- data/spec/support/vcr_cassettes/Rates/can_provided_detailed_rate.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_beneficiary_required_details.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_conversion_dates.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_currencies.yml +1 -1
- data/spec/support/vcr_cassettes/Reference/can_retrieve_settlement_accounts.yml +1 -1
- data/spec/support/vcr_cassettes/Settlements/can_add_conversion.yml +3 -3
- data/spec/support/vcr_cassettes/Settlements/can_release.yml +2 -2
- data/spec/support/vcr_cassettes/Settlements/can_remove_conversion.yml +2 -2
- data/spec/support/vcr_cassettes/Settlements/can_unrelease.yml +2 -2
- metadata +34 -19
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Reference', :
|
3
|
+
describe 'Reference', vcr: true do
|
4
4
|
before do
|
5
5
|
CurrencyCloud.reset_session
|
6
6
|
CurrencyCloud.environment = :demonstration
|
@@ -8,28 +8,28 @@ describe 'Reference', :vcr => true do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it 'can retrieve #beneficiary_required_details' do
|
11
|
-
details = CurrencyCloud::Reference.beneficiary_required_details(:
|
11
|
+
details = CurrencyCloud::Reference.beneficiary_required_details(currency: 'GBP', bank_account_country: 'GB', beneficiary_country: 'GB')
|
12
12
|
expect(details).to_not be_empty
|
13
13
|
|
14
14
|
details = details.first
|
15
15
|
expect(details['payment_type']).to eq('priority')
|
16
|
-
expect(details[
|
17
|
-
expect(details[
|
18
|
-
expect(details[
|
19
|
-
expect(details[
|
20
|
-
expect(details[
|
21
|
-
expect(details[
|
22
|
-
expect(details[
|
23
|
-
expect(details[
|
24
|
-
expect(details[
|
16
|
+
expect(details['payment_type']).to eq('priority')
|
17
|
+
expect(details['beneficiary_entity_type']).to eq('individual')
|
18
|
+
expect(details['beneficiary_address']).to eq('^.{1,255}')
|
19
|
+
expect(details['beneficiary_city']).to eq('^.{1,255}')
|
20
|
+
expect(details['beneficiary_country']).to eq('^[A-z]{2}$')
|
21
|
+
expect(details['beneficiary_first_name']).to eq('^.{1,255}')
|
22
|
+
expect(details['beneficiary_last_name']).to eq('^.{1,255}')
|
23
|
+
expect(details['acct_number']).to eq('^[0-9A-Z]{1,50}$')
|
24
|
+
expect(details['sort_code']).to eq('^\\d{6}$')
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'can retrieve #conversion_dates' do
|
28
|
-
dates = CurrencyCloud::Reference.conversion_dates(:
|
28
|
+
dates = CurrencyCloud::Reference.conversion_dates(conversion_pair: 'GBPUSD')
|
29
29
|
|
30
30
|
expect(dates.invalid_conversion_dates).to_not be_empty
|
31
31
|
invalid_conversion_date = dates.invalid_conversion_dates.first
|
32
|
-
expect(invalid_conversion_date).to eq([
|
32
|
+
expect(invalid_conversion_date).to eq(['2015-05-02', 'No trading on Saturday'])
|
33
33
|
expect(dates.first_conversion_date).to eq('2015-04-30')
|
34
34
|
expect(dates.default_conversion_date).to eq('2015-04-30')
|
35
35
|
end
|
@@ -46,12 +46,12 @@ describe 'Reference', :vcr => true do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'can retrieve #settlement_accounts' do
|
49
|
-
settlement_accounts = CurrencyCloud::Reference.settlement_accounts(:
|
49
|
+
settlement_accounts = CurrencyCloud::Reference.settlement_accounts(currency: 'GBP')
|
50
50
|
expect(settlement_accounts).to_not be_empty
|
51
51
|
|
52
52
|
settlement_account = settlement_accounts.first
|
53
53
|
expect(settlement_account).to be_a_kind_of(CurrencyCloud::SettlementAccount)
|
54
|
-
expect(settlement_account.bank_account_holder_name).to eq(
|
54
|
+
expect(settlement_account.bank_account_holder_name).to eq('The Currency Cloud GBP - Client Seg A/C')
|
55
55
|
expect(settlement_account.bank_address).to be_empty
|
56
56
|
end
|
57
57
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe 'Settlements', :
|
3
|
+
describe 'Settlements', vcr: true do
|
4
4
|
before(:all) do
|
5
5
|
CurrencyCloud.reset_session
|
6
6
|
CurrencyCloud.environment = :demonstration
|
@@ -14,7 +14,6 @@ describe 'Settlements', :vcr => true do
|
|
14
14
|
reason: 'mortgage payment',
|
15
15
|
term_agreement: true
|
16
16
|
}
|
17
|
-
|
18
17
|
end
|
19
18
|
|
20
19
|
it 'can #add_conversion' do
|
@@ -25,20 +24,20 @@ describe 'Settlements', :vcr => true do
|
|
25
24
|
|
26
25
|
expect(settlement).to eq(updated_settlement)
|
27
26
|
|
28
|
-
expect(settlement.conversion_ids).to eq(
|
27
|
+
expect(settlement.conversion_ids).to eq(['24d2ee7f-c7a3-4181-979e-9c58dbace992'])
|
29
28
|
expect(settlement.entries).to_not be_empty
|
30
29
|
|
31
30
|
gbp_currency = settlement.entries[0]
|
32
|
-
expect(gbp_currency).to include(
|
31
|
+
expect(gbp_currency).to include('GBP' => { 'receive_amount' => '1000.00', 'send_amount' => '0.00' })
|
33
32
|
|
34
33
|
usd_currency = settlement.entries[1]
|
35
|
-
expect(usd_currency).to include(
|
34
|
+
expect(usd_currency).to include('USD' => { 'receive_amount' => '0.00', 'send_amount' => '1511.70' })
|
36
35
|
|
37
36
|
expect(settlement.updated_at).to eq('2015-05-04T20:40:56+00:00')
|
38
37
|
end
|
39
38
|
|
40
39
|
it 'can #remove_conversion' do
|
41
|
-
settlement = CurrencyCloud::Settlement.retrieve(
|
40
|
+
settlement = CurrencyCloud::Settlement.retrieve('63eeef54-3531-4e65-827a-7d0f37503fcc')
|
42
41
|
deleted_settlement = settlement.remove_conversion('24d2ee7f-c7a3-4181-979e-9c58dbace992')
|
43
42
|
|
44
43
|
expect(deleted_settlement).to_not be_nil
|
@@ -48,7 +47,7 @@ describe 'Settlements', :vcr => true do
|
|
48
47
|
end
|
49
48
|
|
50
49
|
it 'can #release' do
|
51
|
-
settlement = CurrencyCloud::Settlement.retrieve(
|
50
|
+
settlement = CurrencyCloud::Settlement.retrieve('51c619e0-0256-40ad-afba-ca4114b936f9')
|
52
51
|
released_settlement = settlement.release
|
53
52
|
|
54
53
|
expect(released_settlement).to eq(settlement)
|
@@ -57,7 +56,7 @@ describe 'Settlements', :vcr => true do
|
|
57
56
|
end
|
58
57
|
|
59
58
|
it 'can #unrelease' do
|
60
|
-
settlement = CurrencyCloud::Settlement.retrieve(
|
59
|
+
settlement = CurrencyCloud::Settlement.retrieve('51c619e0-0256-40ad-afba-ca4114b936f9')
|
61
60
|
unreleased_settlement = settlement.unrelease
|
62
61
|
|
63
62
|
expect(unreleased_settlement).to eq(settlement)
|
data/spec/spec_helper.rb
CHANGED
@@ -6,7 +6,7 @@ VCR.configure do |c|
|
|
6
6
|
c.cassette_library_dir = 'spec/support/vcr_cassettes'
|
7
7
|
c.configure_rspec_metadata!
|
8
8
|
c.allow_http_connections_when_no_cassette = true
|
9
|
-
c.default_cassette_options = {:
|
9
|
+
c.default_cassette_options = { record: :new_episodes }
|
10
10
|
end
|
11
11
|
|
12
12
|
require 'currency_cloud'
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
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&payment_types[]=regular
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/accounts/current
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -31,7 +31,7 @@ http_interactions:
|
|
31
31
|
body:
|
32
32
|
encoding: UTF-8
|
33
33
|
string: '{"id":"8ec3a69b-02d1-4f09-9a6b-6bd54a61b3a8","account_name":"Currency
|
34
|
-
Cloud","brand":"
|
34
|
+
Cloud","brand":"currencycloud","your_reference":null,"status":"enabled","street":null,"city":null,"state_or_province":null,"country":null,"postal_code":null,"spread_table":"fxcg_rfx_default","legal_entity_type":null,"created_at":"2015-04-24T15:57:55+00:00","updated_at":"2015-04-24T15:57:55+00:00","identification_type":null,"identification_value":null,"short_reference":"150424-00002"}'
|
35
35
|
http_version:
|
36
36
|
recorded_at: Mon, 27 Apr 2015 21:52:17 GMT
|
37
37
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/081596c9-02de-483e-9f2a-4cf55dcdf98c/delete
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/find?bank_account_holder_name=Test%20User&per_page=1
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/081596c9-02de-483e-9f2a-4cf55dcdf98c
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/081596c9-02de-483e-9f2a-4cf55dcdf98c
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: bank_account_holder_name=Test%20User%202
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/validate
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: bank_country=GB¤cy=GBP&account_number=12345678&routing_code_type_1=sort_code&routing_code_value_1=123456&payment_types[]=regular
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=rjnienaber%40gmail.com&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -33,7 +33,7 @@ http_interactions:
|
|
33
33
|
recorded_at: Fri, 24 Apr 2015 22:17:33 GMT
|
34
34
|
- request:
|
35
35
|
method: post
|
36
|
-
uri: https://devapi.
|
36
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/close_session
|
37
37
|
body:
|
38
38
|
encoding: UTF-8
|
39
39
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/find
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -36,7 +36,7 @@ http_interactions:
|
|
36
36
|
recorded_at: Sat, 25 Apr 2015 06:32:32 GMT
|
37
37
|
- request:
|
38
38
|
method: post
|
39
|
-
uri: https://devapi.
|
39
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
40
40
|
body:
|
41
41
|
encoding: UTF-8
|
42
42
|
string: login_id=rjnienaber%40gmail.com&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -67,7 +67,7 @@ http_interactions:
|
|
67
67
|
recorded_at: Sat, 25 Apr 2015 06:32:32 GMT
|
68
68
|
- request:
|
69
69
|
method: get
|
70
|
-
uri: https://devapi.
|
70
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/find
|
71
71
|
body:
|
72
72
|
encoding: US-ASCII
|
73
73
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=rjnienaber%40gmail.com&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=non-existent-login-id&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb57528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: login_id=non-existent-login-id&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb57528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=rjnienaber%40gmail.com&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=rjnienaber%40gmail.com&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: login_id=non-existent-login-id&api_key=efb5ae2af84978b7a37f18dd61c8bbe139b403009faea83484405a3dcb64c4d8
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/beneficiaries/081596c9-02de-483e-9f2a-4cf55dcdf98c
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/authenticate/api
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: login_id=rjnienaber%40gmail.com2&api_key=ef0fd50fca1fb14c1fab3a8436b9ecb65f02f129fd87eafa45ded8ae257528f0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/rates/detailed?amount=10000&buy_currency=GBP&fixed_side=buy&sell_currency=USD
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/reference/beneficiary_required_details?bank_account_country=GB&beneficiary_country=GB¤cy=GBP
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/reference/conversion_dates?conversion_pair=GBPUSD
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://devapi.
|
5
|
+
uri: https://devapi.currencycloud.com/v2/conversions/create
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: buy_currency=GBP&sell_currency=USD&fixed_side=buy&amount=1000&reason=mortgage%20payment&term_agreement=true
|
@@ -35,7 +35,7 @@ http_interactions:
|
|
35
35
|
recorded_at: Mon, 04 May 2015 20:28:29 GMT
|
36
36
|
- request:
|
37
37
|
method: post
|
38
|
-
uri: https://devapi.
|
38
|
+
uri: https://devapi.currencycloud.com/v2/settlements/create
|
39
39
|
body:
|
40
40
|
encoding: US-ASCII
|
41
41
|
string: ''
|
@@ -68,7 +68,7 @@ http_interactions:
|
|
68
68
|
recorded_at: Mon, 04 May 2015 20:29:16 GMT
|
69
69
|
- request:
|
70
70
|
method: post
|
71
|
-
uri: https://devapi.
|
71
|
+
uri: https://devapi.currencycloud.com/v2/settlements/63eeef54-3531-4e65-827a-7d0f37503fcc/add_conversion
|
72
72
|
body:
|
73
73
|
encoding: UTF-8
|
74
74
|
string: conversion_id=24d2ee7f-c7a3-4181-979e-9c58dbace992
|