transferzero-sdk 1.15.1 → 1.18.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/Gemfile.lock +89 -0
- data/README.md +8 -5
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +4 -2
- data/docs/PayoutMethodDetailsGNFMobile.md +23 -0
- data/docs/PayoutMethodDetailsKESBank.md +3 -1
- data/docs/PayoutMethodDetailsKESMobile.md +3 -1
- data/docs/PayoutMethodDetailsUSDBank.md +1 -1
- data/docs/PayoutMethodDetailsUSDCash.md +23 -0
- data/docs/PayoutMethodDetailsXAFMobile.md +25 -0
- data/docs/PayoutMethodDetailsXOFBank.md +3 -1
- data/docs/PayoutMethodDetailsXOFMobile.md +3 -1
- data/docs/PayoutMethodDetailsZARBank.md +2 -0
- data/docs/{PayoutMethodCountryEnumUSDBank.md → PayoutMethodTransferReasonEnum.md} +2 -2
- data/docs/Recipient.md +2 -0
- data/docs/Sender.md +2 -0
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +14 -7
- data/lib/transferzero-sdk/models/payout_method_details_gnf_mobile.rb +250 -0
- data/lib/transferzero-sdk/models/payout_method_details_kes_bank.rb +11 -7
- data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +11 -7
- data/lib/transferzero-sdk/models/payout_method_details_mobile.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +2 -2
- data/lib/transferzero-sdk/models/payout_method_details_usd_cash.rb +250 -0
- data/lib/transferzero-sdk/models/payout_method_details_xaf_mobile.rb +259 -0
- data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +14 -5
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +14 -5
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +11 -2
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +3 -0
- data/lib/transferzero-sdk/models/payout_method_transfer_reason_enum.rb +137 -0
- data/lib/transferzero-sdk/models/recipient.rb +45 -1
- data/lib/transferzero-sdk/models/sender.rb +11 -1
- data/lib/transferzero-sdk/version.rb +1 -1
- data/lib/transferzero-sdk.rb +4 -1
- data/spec/models/payout_method_details_gnf_mobile_spec.rb +59 -0
- data/spec/models/payout_method_details_usd_cash_spec.rb +59 -0
- data/spec/models/payout_method_details_xaf_mobile_spec.rb +65 -0
- data/spec/models/{payout_method_country_enum_usd_bank_spec.rb → payout_method_transfer_reason_enum_spec.rb} +6 -6
- data/transferzero-sdk-1.16.1.gem +0 -0
- metadata +21 -7
- data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +0 -269
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 474d2e8b413915921b190203849a12f46f3c9cc295868549fa26fb289195f14d
|
4
|
+
data.tar.gz: bebd2cd67ffd96cf63dcc64dea2554ab8127b77878d3cb6e7ba6077b20f1d8a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfe419596593cb1151d38376202a2acc60e041c69f32d66df49fccd00fc5ce2aee0110edbd4660f60806504db1e96013e1d42fbd802cd1c4794e462777a27e54
|
7
|
+
data.tar.gz: f97e85c959a7e03d3c8e98ba259111654b3aa344b1d2ad6c4c47b6657e920277dfb0eaa077826b7de34d185112aad51aa5ba2ce13990255ec65e846ea618f4d8
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
transferzero-sdk (1.16.0)
|
5
|
+
activesupport (>= 4)
|
6
|
+
json (>= 1.4)
|
7
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
ZenTest (4.12.0)
|
13
|
+
activesupport (6.1.4.1)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (>= 1.6, < 2)
|
16
|
+
minitest (>= 5.1)
|
17
|
+
tzinfo (~> 2.0)
|
18
|
+
zeitwerk (~> 2.3)
|
19
|
+
addressable (2.7.0)
|
20
|
+
public_suffix (>= 2.0.2, < 5.0)
|
21
|
+
autotest (4.4.6)
|
22
|
+
ZenTest (>= 4.4.1)
|
23
|
+
autotest-growl (0.2.16)
|
24
|
+
autotest-rails-pure (4.1.2)
|
25
|
+
byebug (11.1.3)
|
26
|
+
coderay (1.1.3)
|
27
|
+
concurrent-ruby (1.1.9)
|
28
|
+
crack (0.4.5)
|
29
|
+
rexml
|
30
|
+
diff-lcs (1.4.4)
|
31
|
+
ethon (0.14.0)
|
32
|
+
ffi (>= 1.15.0)
|
33
|
+
ffi (1.15.4)
|
34
|
+
hashdiff (1.0.1)
|
35
|
+
i18n (1.8.10)
|
36
|
+
concurrent-ruby (~> 1.0)
|
37
|
+
json (2.5.1)
|
38
|
+
method_source (1.0.0)
|
39
|
+
minitest (5.14.4)
|
40
|
+
pry (0.13.1)
|
41
|
+
coderay (~> 1.1)
|
42
|
+
method_source (~> 1.0)
|
43
|
+
pry-byebug (3.9.0)
|
44
|
+
byebug (~> 11.0)
|
45
|
+
pry (~> 0.13.0)
|
46
|
+
public_suffix (4.0.6)
|
47
|
+
rake (12.0.0)
|
48
|
+
rexml (3.2.4)
|
49
|
+
rspec (3.10.0)
|
50
|
+
rspec-core (~> 3.10.0)
|
51
|
+
rspec-expectations (~> 3.10.0)
|
52
|
+
rspec-mocks (~> 3.10.0)
|
53
|
+
rspec-core (3.10.1)
|
54
|
+
rspec-support (~> 3.10.0)
|
55
|
+
rspec-expectations (3.10.1)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.10.0)
|
58
|
+
rspec-mocks (3.10.1)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.10.0)
|
61
|
+
rspec-support (3.10.1)
|
62
|
+
typhoeus (1.4.0)
|
63
|
+
ethon (>= 0.9.0)
|
64
|
+
tzinfo (2.0.4)
|
65
|
+
concurrent-ruby (~> 1.0)
|
66
|
+
vcr (3.0.3)
|
67
|
+
webmock (1.24.6)
|
68
|
+
addressable (>= 2.3.6)
|
69
|
+
crack (>= 0.3.2)
|
70
|
+
hashdiff
|
71
|
+
zeitwerk (2.4.2)
|
72
|
+
|
73
|
+
PLATFORMS
|
74
|
+
ruby
|
75
|
+
|
76
|
+
DEPENDENCIES
|
77
|
+
ZenTest (~> 4.11, >= 4.11.2)
|
78
|
+
autotest (~> 4.4, >= 4.4.6)
|
79
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
80
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
81
|
+
pry-byebug
|
82
|
+
rake (~> 12.0.0)
|
83
|
+
rspec (~> 3.6, >= 3.6.0)
|
84
|
+
transferzero-sdk!
|
85
|
+
vcr (~> 3.0, >= 3.0.1)
|
86
|
+
webmock (~> 1.24, >= 1.24.3)
|
87
|
+
|
88
|
+
BUNDLED WITH
|
89
|
+
2.1.4
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Reference documentation for the TransferZero API V1
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.18.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
For more information, please visit:
|
@@ -31,15 +31,15 @@ gem build transferzero-sdk.gemspec
|
|
31
31
|
Then either install the gem locally:
|
32
32
|
|
33
33
|
```shell
|
34
|
-
gem install ./transferzero-sdk-1.
|
34
|
+
gem install ./transferzero-sdk-1.18.0.gem
|
35
35
|
```
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.18.0.gem` to install the development dependencies)
|
37
37
|
|
38
38
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
39
39
|
|
40
40
|
Finally add this to the Gemfile:
|
41
41
|
|
42
|
-
gem 'transferzero-sdk', '~> 1.
|
42
|
+
gem 'transferzero-sdk', '~> 1.18.0'
|
43
43
|
|
44
44
|
### Install from Git
|
45
45
|
|
@@ -199,13 +199,13 @@ Class | Method | HTTP request | Description
|
|
199
199
|
- [TransferZero::PayoutMethodBankAccountTypeEnum](docs/PayoutMethodBankAccountTypeEnum.md)
|
200
200
|
- [TransferZero::PayoutMethodCashProviderEnum](docs/PayoutMethodCashProviderEnum.md)
|
201
201
|
- [TransferZero::PayoutMethodCountryEnum](docs/PayoutMethodCountryEnum.md)
|
202
|
-
- [TransferZero::PayoutMethodCountryEnumUSDBank](docs/PayoutMethodCountryEnumUSDBank.md)
|
203
202
|
- [TransferZero::PayoutMethodDetails](docs/PayoutMethodDetails.md)
|
204
203
|
- [TransferZero::PayoutMethodDetailsBTC](docs/PayoutMethodDetailsBTC.md)
|
205
204
|
- [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
|
206
205
|
- [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
|
207
206
|
- [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
|
208
207
|
- [TransferZero::PayoutMethodDetailsGHSCash](docs/PayoutMethodDetailsGHSCash.md)
|
208
|
+
- [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
|
209
209
|
- [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
|
210
210
|
- [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
|
211
211
|
- [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
|
@@ -213,6 +213,8 @@ Class | Method | HTTP request | Description
|
|
213
213
|
- [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
|
214
214
|
- [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
|
215
215
|
- [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
|
216
|
+
- [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
|
217
|
+
- [TransferZero::PayoutMethodDetailsXAFMobile](docs/PayoutMethodDetailsXAFMobile.md)
|
216
218
|
- [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
|
217
219
|
- [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
|
218
220
|
- [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
|
@@ -225,6 +227,7 @@ Class | Method | HTTP request | Description
|
|
225
227
|
- [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
|
226
228
|
- [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
|
227
229
|
- [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
|
230
|
+
- [TransferZero::PayoutMethodTransferReasonEnum](docs/PayoutMethodTransferReasonEnum.md)
|
228
231
|
- [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
|
229
232
|
- [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
|
230
233
|
- [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
|
data/docs/PayoutMethod.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
|
7
|
+
**type** | **String** | Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `GNF::Mobile` - for mobile money payments to Guinea. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance | [optional]
|
8
8
|
**details** | [**PayoutMethodDetails**](PayoutMethodDetails.md) | | [optional]
|
9
9
|
**metadata** | [**Object**](.md) | Metadata of payout method. You can store any kind of information in this field. | [optional]
|
10
10
|
**id** | **String** | | [optional]
|
data/docs/PayoutMethodDetails.md
CHANGED
@@ -11,7 +11,8 @@ Name | Type | Description | Notes
|
|
11
11
|
**bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | | [optional]
|
12
12
|
**phone_number** | **String** | |
|
13
13
|
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
|
14
|
-
**country** | [**
|
14
|
+
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
|
15
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
15
16
|
**iban** | **String** | |
|
16
17
|
**bank_name** | **String** | |
|
17
18
|
**bank_country** | **String** | | [optional]
|
@@ -33,7 +34,7 @@ Name | Type | Description | Notes
|
|
33
34
|
**postal_code** | **String** | |
|
34
35
|
**city** | **String** | |
|
35
36
|
**email** | **String** | | [optional]
|
36
|
-
**transfer_reason_code** | **String** | |
|
37
|
+
**transfer_reason_code** | **String** | | [optional]
|
37
38
|
**contact_first_name** | **String** | | [optional]
|
38
39
|
**contact_last_name** | **String** | | [optional]
|
39
40
|
**registration_number** | **String** | | [optional]
|
@@ -55,6 +56,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
55
56
|
phone_number: null,
|
56
57
|
mobile_provider: null,
|
57
58
|
country: null,
|
59
|
+
transfer_reason: null,
|
58
60
|
iban: null,
|
59
61
|
bank_name: null,
|
60
62
|
bank_country: null,
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TransferZero::PayoutMethodDetailsGNFMobile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**phone_number** | **String** | |
|
10
|
+
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TransferZero'
|
16
|
+
|
17
|
+
instance = TransferZero::PayoutMethodDetailsGNFMobile.new(first_name: null,
|
18
|
+
last_name: null,
|
19
|
+
phone_number: null,
|
20
|
+
mobile_provider: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -12,7 +12,8 @@ Name | Type | Description | Notes
|
|
12
12
|
**bank_name** | **String** | |
|
13
13
|
**branch_code** | **String** | | [optional]
|
14
14
|
**swift_code** | **String** | |
|
15
|
-
**transfer_reason_code** | **String** | |
|
15
|
+
**transfer_reason_code** | **String** | | [optional]
|
16
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
16
17
|
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
17
18
|
**identity_card_id** | **String** | |
|
18
19
|
|
@@ -30,6 +31,7 @@ instance = TransferZero::PayoutMethodDetailsKESBank.new(first_name: null,
|
|
30
31
|
branch_code: null,
|
31
32
|
swift_code: null,
|
32
33
|
transfer_reason_code: null,
|
34
|
+
transfer_reason: null,
|
33
35
|
identity_card_type: null,
|
34
36
|
identity_card_id: null)
|
35
37
|
```
|
@@ -9,7 +9,8 @@ Name | Type | Description | Notes
|
|
9
9
|
**street** | **String** | |
|
10
10
|
**phone_number** | **String** | |
|
11
11
|
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
|
12
|
-
**transfer_reason_code** | **String** | |
|
12
|
+
**transfer_reason_code** | **String** | | [optional]
|
13
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
13
14
|
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
14
15
|
**identity_card_id** | **String** | |
|
15
16
|
|
@@ -24,6 +25,7 @@ instance = TransferZero::PayoutMethodDetailsKESMobile.new(first_name: null,
|
|
24
25
|
phone_number: null,
|
25
26
|
mobile_provider: null,
|
26
27
|
transfer_reason_code: null,
|
28
|
+
transfer_reason: null,
|
27
29
|
identity_card_type: null,
|
28
30
|
identity_card_id: null)
|
29
31
|
```
|
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**phone_number** | **String** | |
|
10
10
|
**bank_code** | **String** | |
|
11
11
|
**bank_account** | **String** | |
|
12
|
-
**country** | [**
|
12
|
+
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
|
13
13
|
|
14
14
|
## Code Sample
|
15
15
|
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# TransferZero::PayoutMethodDetailsUSDCash
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**phone_number** | **String** | |
|
10
|
+
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'TransferZero'
|
16
|
+
|
17
|
+
instance = TransferZero::PayoutMethodDetailsUSDCash.new(first_name: null,
|
18
|
+
last_name: null,
|
19
|
+
phone_number: null,
|
20
|
+
country: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# TransferZero::PayoutMethodDetailsXAFMobile
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**first_name** | **String** | |
|
8
|
+
**last_name** | **String** | |
|
9
|
+
**phone_number** | **String** | |
|
10
|
+
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
|
11
|
+
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'TransferZero'
|
17
|
+
|
18
|
+
instance = TransferZero::PayoutMethodDetailsXAFMobile.new(first_name: null,
|
19
|
+
last_name: null,
|
20
|
+
phone_number: null,
|
21
|
+
mobile_provider: null,
|
22
|
+
country: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**bank_name** | **String** | | [optional]
|
11
11
|
**bank_country** | **String** | | [optional]
|
12
12
|
**bank_code** | **String** | | [optional]
|
13
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
13
14
|
|
14
15
|
## Code Sample
|
15
16
|
|
@@ -21,7 +22,8 @@ instance = TransferZero::PayoutMethodDetailsXOFBank.new(first_name: null,
|
|
21
22
|
iban: null,
|
22
23
|
bank_name: null,
|
23
24
|
bank_country: null,
|
24
|
-
bank_code: null
|
25
|
+
bank_code: null,
|
26
|
+
transfer_reason: null)
|
25
27
|
```
|
26
28
|
|
27
29
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**phone_number** | **String** | |
|
10
10
|
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | |
|
11
11
|
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | | [optional]
|
12
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
12
13
|
|
13
14
|
## Code Sample
|
14
15
|
|
@@ -19,7 +20,8 @@ instance = TransferZero::PayoutMethodDetailsXOFMobile.new(first_name: null,
|
|
19
20
|
last_name: null,
|
20
21
|
phone_number: null,
|
21
22
|
mobile_provider: null,
|
22
|
-
country: null
|
23
|
+
country: null,
|
24
|
+
transfer_reason: null)
|
23
25
|
```
|
24
26
|
|
25
27
|
|
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
|
|
14
14
|
**bank_account** | **String** | |
|
15
15
|
**phone_number** | **String** | |
|
16
16
|
**transfer_reason_code** | **String** | | [optional]
|
17
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
17
18
|
**name** | **String** | | [optional]
|
18
19
|
**contact_first_name** | **String** | | [optional]
|
19
20
|
**contact_last_name** | **String** | | [optional]
|
@@ -36,6 +37,7 @@ instance = TransferZero::PayoutMethodDetailsZARBank.new(first_name: null,
|
|
36
37
|
bank_account: null,
|
37
38
|
phone_number: null,
|
38
39
|
transfer_reason_code: null,
|
40
|
+
transfer_reason: null,
|
39
41
|
name: null,
|
40
42
|
contact_first_name: null,
|
41
43
|
contact_last_name: null,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# TransferZero::
|
1
|
+
# TransferZero::PayoutMethodTransferReasonEnum
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
```ruby
|
11
11
|
require 'TransferZero'
|
12
12
|
|
13
|
-
instance = TransferZero::
|
13
|
+
instance = TransferZero::PayoutMethodTransferReasonEnum.new()
|
14
14
|
```
|
15
15
|
|
16
16
|
|
data/docs/Recipient.md
CHANGED
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
|
|
26
26
|
**output_amount** | **Float** | The amount that will be paid to the recipient | [optional]
|
27
27
|
**output_currency** | **String** | The currency the payment will be delivered in | [optional]
|
28
28
|
**id** | **String** | | [optional]
|
29
|
+
**type** | **String** | Type of recipient to create - either person or business (defaults to person) | [optional]
|
29
30
|
**errors** | **Hash<String, Array<ValidationErrorDescription>>** | The fields that have some problems and don't pass validation | [optional]
|
30
31
|
|
31
32
|
## Code Sample
|
@@ -55,6 +56,7 @@ instance = TransferZero::Recipient.new(requested_amount: 750.0,
|
|
55
56
|
output_amount: 10000,
|
56
57
|
output_currency: NGN,
|
57
58
|
id: 97e79719-06e4-4794-aeeb-d2d9415d983a,
|
59
|
+
type: person,
|
58
60
|
errors: {"phone_number":[{"error":"invalid"}],"documents":[{"error":"blank"}]})
|
59
61
|
```
|
60
62
|
|
data/docs/Sender.md
CHANGED
@@ -52,6 +52,7 @@ Name | Type | Description | Notes
|
|
52
52
|
**city_of_birth** | **String** | City of birth of sender | [optional]
|
53
53
|
**country_of_birth** | **String** | Country of birth of sender in 2-character alpha ISO 3166-2 country format | [optional]
|
54
54
|
**gender** | **String** | The gender of the sender: - `M`: Male - `F`: Female - `O`: Other | [optional]
|
55
|
+
**sales_lead_id** | **String** | Sales Lead ID for tracking (optional) | [optional]
|
55
56
|
**created_at** | **String** | Date and time of sender was created | [optional]
|
56
57
|
|
57
58
|
## Code Sample
|
@@ -107,6 +108,7 @@ instance = TransferZero::Sender.new(id: bf9ff782-e182-45ac-abea-5bce83ad6670,
|
|
107
108
|
city_of_birth: London,
|
108
109
|
country_of_birth: GB,
|
109
110
|
gender: M,
|
111
|
+
sales_lead_id: HF6HJVF67,
|
110
112
|
created_at: 2019-01-11T00:00:00.001+0000)
|
111
113
|
```
|
112
114
|
|
@@ -35,7 +35,7 @@ module TransferZero
|
|
35
35
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
36
36
|
def initialize(config = Configuration.default)
|
37
37
|
@config = config
|
38
|
-
@user_agent = "TransferZero-SDK/Ruby/1.
|
38
|
+
@user_agent = "TransferZero-SDK/Ruby/1.18.0"
|
39
39
|
@default_headers = {
|
40
40
|
'Content-Type' => 'application/json',
|
41
41
|
'User-Agent' => @user_agent
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module TransferZero
|
16
16
|
# This describes the specific details on how the payment has to be routed to the recipient.
|
17
17
|
class PayoutMethod
|
18
|
-
# Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
|
18
|
+
# Contains the currency to send the money to, and the type of the money movement Commonly used payout types are: - `NGN::Bank` - for Nigerian bank account payments. - `NGN::Mobile` - for Nigerian mobile money payments. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `GHS::Cash` - for Ghanaian cash remittance payments. - `UGX::Mobile` - for Ugandan mobile money payments. - `TZS::Mobile` - for Tanzanian mobile money payments. - `XOF::Mobile` - for mobile money payments to West-Africa. - `XOF::Bank` - for Senegalese bank account payments. - `XOF::Cash` - for Senegalese cash remittance payments. - `MAD::Cash` - for Moroccan cash remittance payments. - `EUR::Bank` - for IBAN bank transfers in EUR. - `GBP::Bank` - for IBAN bank and FP accounts transfers in GBP. - `ZAR::Bank` - for South Africa bank account payments. - `USD::Bank` - for USD account payments. *** Currently Nigeria only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently Nigeria only and in Beta phase *** - `KES::Bank` - for Kenyan bank account payments. - `KES::Mobile` - for Kenyan mobile money payments. - `XAF::Mobile` - for mobile money payments to Cameroon. - `GNF::Mobile` - for mobile money payments to Guinea. You can also send funds to the internal balance using `CCY::Balance`, where `CCY` is the appropriate currency. See [Collection from senders](https://docs.transferzero.com/docs/additional-features/#collections-from-senders) for more info on how to collect money into internal balance
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
attr_accessor :details
|
@@ -30,6 +30,8 @@ class PayoutMethodDetails
|
|
30
30
|
|
31
31
|
attr_accessor :country
|
32
32
|
|
33
|
+
attr_accessor :transfer_reason
|
34
|
+
|
33
35
|
attr_accessor :iban
|
34
36
|
|
35
37
|
attr_accessor :bank_name
|
@@ -99,6 +101,7 @@ class PayoutMethodDetails
|
|
99
101
|
:'phone_number' => :'phone_number',
|
100
102
|
:'mobile_provider' => :'mobile_provider',
|
101
103
|
:'country' => :'country',
|
104
|
+
:'transfer_reason' => :'transfer_reason',
|
102
105
|
:'iban' => :'iban',
|
103
106
|
:'bank_name' => :'bank_name',
|
104
107
|
:'bank_country' => :'bank_country',
|
@@ -141,7 +144,8 @@ class PayoutMethodDetails
|
|
141
144
|
:'bank_account_type' => :'PayoutMethodBankAccountTypeEnum',
|
142
145
|
:'phone_number' => :'String',
|
143
146
|
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
144
|
-
:'country' => :'
|
147
|
+
:'country' => :'PayoutMethodCountryEnum',
|
148
|
+
:'transfer_reason' => :'PayoutMethodTransferReasonEnum',
|
145
149
|
:'iban' => :'String',
|
146
150
|
:'bank_name' => :'String',
|
147
151
|
:'bank_country' => :'String',
|
@@ -182,6 +186,7 @@ class PayoutMethodDetails
|
|
182
186
|
:'PayoutMethodDetailsGBPBank',
|
183
187
|
:'PayoutMethodDetailsGHSBank',
|
184
188
|
:'PayoutMethodDetailsGHSCash',
|
189
|
+
:'PayoutMethodDetailsGNFMobile',
|
185
190
|
:'PayoutMethodDetailsIBAN',
|
186
191
|
:'PayoutMethodDetailsKESBank',
|
187
192
|
:'PayoutMethodDetailsKESMobile',
|
@@ -189,6 +194,8 @@ class PayoutMethodDetails
|
|
189
194
|
:'PayoutMethodDetailsMobile',
|
190
195
|
:'PayoutMethodDetailsNGNBank',
|
191
196
|
:'PayoutMethodDetailsUSDBank',
|
197
|
+
:'PayoutMethodDetailsUSDCash',
|
198
|
+
:'PayoutMethodDetailsXAFMobile',
|
192
199
|
:'PayoutMethodDetailsXOFBank',
|
193
200
|
:'PayoutMethodDetailsXOFCash',
|
194
201
|
:'PayoutMethodDetailsXOFMobile',
|
@@ -243,6 +250,10 @@ class PayoutMethodDetails
|
|
243
250
|
self.country = attributes[:'country']
|
244
251
|
end
|
245
252
|
|
253
|
+
if attributes.key?(:'transfer_reason')
|
254
|
+
self.transfer_reason = attributes[:'transfer_reason']
|
255
|
+
end
|
256
|
+
|
246
257
|
if attributes.key?(:'iban')
|
247
258
|
self.iban = attributes[:'iban']
|
248
259
|
end
|
@@ -436,10 +447,6 @@ class PayoutMethodDetails
|
|
436
447
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
437
448
|
end
|
438
449
|
|
439
|
-
if @transfer_reason_code.nil?
|
440
|
-
invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
|
441
|
-
end
|
442
|
-
|
443
450
|
if @swift_code.nil?
|
444
451
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
445
452
|
end
|
@@ -468,7 +475,6 @@ class PayoutMethodDetails
|
|
468
475
|
return false if @street.nil?
|
469
476
|
return false if @postal_code.nil?
|
470
477
|
return false if @city.nil?
|
471
|
-
return false if @transfer_reason_code.nil?
|
472
478
|
return false if @swift_code.nil?
|
473
479
|
_one_of_found = false
|
474
480
|
openapi_one_of.each do |_class|
|
@@ -502,6 +508,7 @@ class PayoutMethodDetails
|
|
502
508
|
phone_number == o.phone_number &&
|
503
509
|
mobile_provider == o.mobile_provider &&
|
504
510
|
country == o.country &&
|
511
|
+
transfer_reason == o.transfer_reason &&
|
505
512
|
iban == o.iban &&
|
506
513
|
bank_name == o.bank_name &&
|
507
514
|
bank_country == o.bank_country &&
|
@@ -542,7 +549,7 @@ class PayoutMethodDetails
|
|
542
549
|
# Calculates hash code according to all attributes.
|
543
550
|
# @return [Integer] Hash code
|
544
551
|
def hash
|
545
|
-
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, branch_code, swift_code].hash
|
552
|
+
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, transfer_reason, iban, bank_name, bank_country, cash_provider, sort_code, bic, sender_identity_card_type, sender_identity_card_id, sender_city_of_birth, sender_country_of_birth, sender_gender, reason, identity_card_type, identity_card_id, reference, name, address, street, postal_code, city, email, transfer_reason_code, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type, branch_code, swift_code].hash
|
546
553
|
end
|
547
554
|
|
548
555
|
require 'active_support/core_ext/hash'
|