transferzero-sdk 1.37.8 → 1.37.10
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 +5 -5
- data/README.md +10 -4
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +2 -2
- data/docs/PayoutMethodDetailsCRCBank.md +27 -0
- data/docs/PayoutMethodDetailsGTQBank.md +27 -0
- data/docs/PayoutMethodDetailsMADBank.md +25 -0
- data/docs/PayoutMethodDetailsPENBank.md +29 -0
- data/docs/PayoutMethodDetailsVNDBank.md +25 -0
- data/docs/PayoutMethodDetailsVNDMobile.md +27 -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 +12 -1
- data/lib/transferzero-sdk/models/payout_method_details_crc_bank.rb +278 -0
- data/lib/transferzero-sdk/models/payout_method_details_gtq_bank.rb +278 -0
- data/lib/transferzero-sdk/models/payout_method_details_mad_bank.rb +259 -0
- data/lib/transferzero-sdk/models/payout_method_details_pen_bank.rb +292 -0
- data/lib/transferzero-sdk/models/payout_method_details_vnd_bank.rb +259 -0
- data/lib/transferzero-sdk/models/payout_method_details_vnd_mobile.rb +273 -0
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +7 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/lib/transferzero-sdk.rb +6 -0
- data/spec/models/payout_method_details_crc_bank_spec.rb +71 -0
- data/spec/models/payout_method_details_gtq_bank_spec.rb +71 -0
- data/spec/models/payout_method_details_mad_bank_spec.rb +65 -0
- data/spec/models/payout_method_details_pen_bank_spec.rb +77 -0
- data/spec/models/payout_method_details_vnd_bank_spec.rb +65 -0
- data/spec/models/payout_method_details_vnd_mobile_spec.rb +71 -0
- metadata +160 -136
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b872b7e071457934fdc4ada64041840e17bec895df2f0c86678678d371548c0f
|
|
4
|
+
data.tar.gz: 43ec50d14c6499bd08536f0a7bbb3806fd6f6f84a1ae8321d25bae8cedeeb29f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 200d151a5430e1047c5f16a448807fcb12071d85d763eed7a3e1c57d47893899619441af06fecbd3861615c6125dd3124caaaf73bba83d72fb9bb6c792776262
|
|
7
|
+
data.tar.gz: 224eb22aa27564b4060aab188aba975b52158ed10e87098042c4d67bd0ddaff3cbd626f3e29a0fc1e831c619f6e345bfef3c68bd4056a6a113ba7e5ff06e40cc
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
transferzero-sdk (1.37.
|
|
4
|
+
transferzero-sdk (1.37.10)
|
|
5
5
|
activesupport (>= 4)
|
|
6
6
|
faraday (~> 1.0, >= 1.0.1)
|
|
7
7
|
json (>= 1.4)
|
|
@@ -28,11 +28,11 @@ GEM
|
|
|
28
28
|
byebug (13.0.0)
|
|
29
29
|
reline (>= 0.6.0)
|
|
30
30
|
coderay (1.1.3)
|
|
31
|
-
concurrent-ruby (1.3.
|
|
31
|
+
concurrent-ruby (1.3.8)
|
|
32
32
|
connection_pool (3.0.2)
|
|
33
33
|
diff-lcs (1.6.2)
|
|
34
34
|
drb (2.2.3)
|
|
35
|
-
faraday (1.10.
|
|
35
|
+
faraday (1.10.6)
|
|
36
36
|
faraday-em_http (~> 1.0)
|
|
37
37
|
faraday-em_synchrony (~> 1.0)
|
|
38
38
|
faraday-excon (~> 1.1)
|
|
@@ -55,10 +55,10 @@ GEM
|
|
|
55
55
|
faraday-patron (1.0.0)
|
|
56
56
|
faraday-rack (1.0.0)
|
|
57
57
|
faraday-retry (1.0.4)
|
|
58
|
-
i18n (1.
|
|
58
|
+
i18n (1.15.2)
|
|
59
59
|
concurrent-ruby (~> 1.0)
|
|
60
60
|
io-console (0.8.2)
|
|
61
|
-
json (2.
|
|
61
|
+
json (2.21.1)
|
|
62
62
|
logger (1.7.0)
|
|
63
63
|
method_source (1.1.0)
|
|
64
64
|
minitest (6.0.6)
|
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.37.
|
|
10
|
+
- Package version: 1.37.10
|
|
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.37.
|
|
34
|
+
gem install ./transferzero-sdk-1.37.10.gem
|
|
35
35
|
```
|
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.37.
|
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.37.10.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.37.
|
|
42
|
+
gem 'transferzero-sdk', '~> 1.37.10'
|
|
43
43
|
|
|
44
44
|
### Install from Git
|
|
45
45
|
|
|
@@ -216,22 +216,28 @@ Class | Method | HTTP request | Description
|
|
|
216
216
|
- [TransferZero::PayoutMethodDetailsBWPBank](docs/PayoutMethodDetailsBWPBank.md)
|
|
217
217
|
- [TransferZero::PayoutMethodDetailsBalance](docs/PayoutMethodDetailsBalance.md)
|
|
218
218
|
- [TransferZero::PayoutMethodDetailsCADBank](docs/PayoutMethodDetailsCADBank.md)
|
|
219
|
+
- [TransferZero::PayoutMethodDetailsCRCBank](docs/PayoutMethodDetailsCRCBank.md)
|
|
219
220
|
- [TransferZero::PayoutMethodDetailsEGPBank](docs/PayoutMethodDetailsEGPBank.md)
|
|
220
221
|
- [TransferZero::PayoutMethodDetailsEGPCash](docs/PayoutMethodDetailsEGPCash.md)
|
|
221
222
|
- [TransferZero::PayoutMethodDetailsGBPBank](docs/PayoutMethodDetailsGBPBank.md)
|
|
222
223
|
- [TransferZero::PayoutMethodDetailsGHSBank](docs/PayoutMethodDetailsGHSBank.md)
|
|
223
224
|
- [TransferZero::PayoutMethodDetailsGHSMobile](docs/PayoutMethodDetailsGHSMobile.md)
|
|
224
225
|
- [TransferZero::PayoutMethodDetailsGNFMobile](docs/PayoutMethodDetailsGNFMobile.md)
|
|
226
|
+
- [TransferZero::PayoutMethodDetailsGTQBank](docs/PayoutMethodDetailsGTQBank.md)
|
|
225
227
|
- [TransferZero::PayoutMethodDetailsIBAN](docs/PayoutMethodDetailsIBAN.md)
|
|
226
228
|
- [TransferZero::PayoutMethodDetailsKESBank](docs/PayoutMethodDetailsKESBank.md)
|
|
227
229
|
- [TransferZero::PayoutMethodDetailsKESMobile](docs/PayoutMethodDetailsKESMobile.md)
|
|
230
|
+
- [TransferZero::PayoutMethodDetailsMADBank](docs/PayoutMethodDetailsMADBank.md)
|
|
228
231
|
- [TransferZero::PayoutMethodDetailsMADCash](docs/PayoutMethodDetailsMADCash.md)
|
|
229
232
|
- [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
|
|
230
233
|
- [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
|
|
231
234
|
- [TransferZero::PayoutMethodDetailsNZDBank](docs/PayoutMethodDetailsNZDBank.md)
|
|
235
|
+
- [TransferZero::PayoutMethodDetailsPENBank](docs/PayoutMethodDetailsPENBank.md)
|
|
232
236
|
- [TransferZero::PayoutMethodDetailsUGXBank](docs/PayoutMethodDetailsUGXBank.md)
|
|
233
237
|
- [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
|
|
234
238
|
- [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
|
|
239
|
+
- [TransferZero::PayoutMethodDetailsVNDBank](docs/PayoutMethodDetailsVNDBank.md)
|
|
240
|
+
- [TransferZero::PayoutMethodDetailsVNDMobile](docs/PayoutMethodDetailsVNDMobile.md)
|
|
235
241
|
- [TransferZero::PayoutMethodDetailsXAFBank](docs/PayoutMethodDetailsXAFBank.md)
|
|
236
242
|
- [TransferZero::PayoutMethodDetailsXAFMobile](docs/PayoutMethodDetailsXAFMobile.md)
|
|
237
243
|
- [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.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. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan 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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash payments. | [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. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan 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 for Egypt, Nigeria, Peru, Costa Rica, El Salvador and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash payments. - `PEN::Bank` - for Peruvian bank account payments. - `GTQ::Bank` - for Guatemalan bank account payments. - `CRC::Bank` - for Costa Rican bank account payments. - `MAD::Bank` - for Moroccan bank account payments. - `VND::Bank` - for Vietnamese bank account payments. - `VND::Mobile` - for Vietnamese mobile wallet payments. | [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
|
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**last_name** | **String** | |
|
|
9
9
|
**bank_code** | **String** | |
|
|
10
10
|
**bank_account** | **String** | |
|
|
11
|
-
**bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | |
|
|
11
|
+
**bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | |
|
|
12
12
|
**birth_date** | **Date** | Date of birth of recipient | [optional]
|
|
13
13
|
**street** | **String** | |
|
|
14
14
|
**phone_number** | **String** | |
|
|
15
|
-
**mobile_provider** |
|
|
15
|
+
**mobile_provider** | **String** | |
|
|
16
16
|
**country** | [**PayoutMethodCountryEnum**](PayoutMethodCountryEnum.md) | |
|
|
17
17
|
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | |
|
|
18
18
|
**iban** | **String** | |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsCRCBank
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**first_name** | **String** | |
|
|
8
|
+
**last_name** | **String** | |
|
|
9
|
+
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
|
10
|
+
**identity_card_id** | **String** | |
|
|
11
|
+
**iban** | **String** | |
|
|
12
|
+
**street** | **String** | |
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'TransferZero'
|
|
18
|
+
|
|
19
|
+
instance = TransferZero::PayoutMethodDetailsCRCBank.new(first_name: null,
|
|
20
|
+
last_name: null,
|
|
21
|
+
identity_card_type: null,
|
|
22
|
+
identity_card_id: null,
|
|
23
|
+
iban: null,
|
|
24
|
+
street: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsGTQBank
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**first_name** | **String** | |
|
|
8
|
+
**last_name** | **String** | |
|
|
9
|
+
**identity_card_id** | **String** | |
|
|
10
|
+
**bank_code** | **String** | |
|
|
11
|
+
**bank_account** | **String** | |
|
|
12
|
+
**bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | |
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'TransferZero'
|
|
18
|
+
|
|
19
|
+
instance = TransferZero::PayoutMethodDetailsGTQBank.new(first_name: null,
|
|
20
|
+
last_name: null,
|
|
21
|
+
identity_card_id: null,
|
|
22
|
+
bank_code: null,
|
|
23
|
+
bank_account: null,
|
|
24
|
+
bank_account_type: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsMADBank
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**first_name** | **String** | |
|
|
8
|
+
**last_name** | **String** | |
|
|
9
|
+
**iban** | **String** | |
|
|
10
|
+
**street** | **String** | |
|
|
11
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
|
12
|
+
|
|
13
|
+
## Code Sample
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'TransferZero'
|
|
17
|
+
|
|
18
|
+
instance = TransferZero::PayoutMethodDetailsMADBank.new(first_name: null,
|
|
19
|
+
last_name: null,
|
|
20
|
+
iban: null,
|
|
21
|
+
street: null,
|
|
22
|
+
transfer_reason: null)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsPENBank
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**first_name** | **String** | |
|
|
8
|
+
**last_name** | **String** | |
|
|
9
|
+
**identity_card_type** | [**PayoutMethodIdentityCardTypeEnum**](PayoutMethodIdentityCardTypeEnum.md) | |
|
|
10
|
+
**identity_card_id** | **String** | |
|
|
11
|
+
**bank_code** | **String** | |
|
|
12
|
+
**bank_account** | **String** | |
|
|
13
|
+
**bank_account_type** | [**PayoutMethodBankAccountTypeEnum**](PayoutMethodBankAccountTypeEnum.md) | |
|
|
14
|
+
|
|
15
|
+
## Code Sample
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'TransferZero'
|
|
19
|
+
|
|
20
|
+
instance = TransferZero::PayoutMethodDetailsPENBank.new(first_name: null,
|
|
21
|
+
last_name: null,
|
|
22
|
+
identity_card_type: null,
|
|
23
|
+
identity_card_id: null,
|
|
24
|
+
bank_code: null,
|
|
25
|
+
bank_account: null,
|
|
26
|
+
bank_account_type: null)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsVNDBank
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**first_name** | **String** | |
|
|
8
|
+
**last_name** | **String** | |
|
|
9
|
+
**bank_account** | **String** | |
|
|
10
|
+
**bank_code** | **String** | |
|
|
11
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
|
12
|
+
|
|
13
|
+
## Code Sample
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'TransferZero'
|
|
17
|
+
|
|
18
|
+
instance = TransferZero::PayoutMethodDetailsVNDBank.new(first_name: null,
|
|
19
|
+
last_name: null,
|
|
20
|
+
bank_account: null,
|
|
21
|
+
bank_code: null,
|
|
22
|
+
transfer_reason: null)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# TransferZero::PayoutMethodDetailsVNDMobile
|
|
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** | **String** | |
|
|
11
|
+
**street** | **String** | |
|
|
12
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'TransferZero'
|
|
18
|
+
|
|
19
|
+
instance = TransferZero::PayoutMethodDetailsVNDMobile.new(first_name: null,
|
|
20
|
+
last_name: null,
|
|
21
|
+
phone_number: null,
|
|
22
|
+
mobile_provider: null,
|
|
23
|
+
street: null,
|
|
24
|
+
transfer_reason: null)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -36,7 +36,7 @@ module TransferZero
|
|
|
36
36
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
37
37
|
def initialize(config = Configuration.default)
|
|
38
38
|
@config = config
|
|
39
|
-
@user_agent = "TransferZero-SDK/Ruby/1.37.
|
|
39
|
+
@user_agent = "TransferZero-SDK/Ruby/1.37.10"
|
|
40
40
|
@default_headers = {
|
|
41
41
|
'Content-Type' => 'application/json',
|
|
42
42
|
'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. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan 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 for Egypt, Nigeria and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash payments.
|
|
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. - `GHS::Bank` - for Ghanaian bank account payments. - `GHS::Mobile` - for Ghanaian mobile money payments. - `UGX::Mobile` - for Ugandan 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 for Egypt, Nigeria, Peru, Costa Rica, El Salvador and United States only and in Beta phase *** - `USD::Cash` - for USD cash remittance payments. *** Currently for 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 Central African (CEMAC) countries. *** Currently in Beta phase *** - `XAF::Bank` - for Cameroon bank account payments. - `GNF::Mobile` - for mobile money payments to Guinea. - `BRL::Bank` - for Brazilian bank account payments. - `NZD::Bank` - for New Zealand bank account payments. - `BWP::Bank` - for Botswana bank account payments. - `ZMW::Bank` - for Zambian bank account payments. - `CAD::Bank` - for Canadian bank account payments. - `UGX::Bank` - for Ugandan bank account payments. - `EGP::Bank` - for Egyptian bank account payments. - `EGP::Cash` - for Egyptian cash payments. - `PEN::Bank` - for Peruvian bank account payments. - `GTQ::Bank` - for Guatemalan bank account payments. - `CRC::Bank` - for Costa Rican bank account payments. - `MAD::Bank` - for Moroccan bank account payments. - `VND::Bank` - for Vietnamese bank account payments. - `VND::Mobile` - for Vietnamese mobile wallet payments.
|
|
19
19
|
attr_accessor :type
|
|
20
20
|
|
|
21
21
|
attr_accessor :details
|
|
@@ -167,7 +167,7 @@ class PayoutMethodDetails
|
|
|
167
167
|
:'birth_date' => :'Date',
|
|
168
168
|
:'street' => :'String',
|
|
169
169
|
:'phone_number' => :'String',
|
|
170
|
-
:'mobile_provider' => :'
|
|
170
|
+
:'mobile_provider' => :'String',
|
|
171
171
|
:'country' => :'PayoutMethodCountryEnum',
|
|
172
172
|
:'transfer_reason' => :'PayoutMethodTransferReasonEnum',
|
|
173
173
|
:'iban' => :'String',
|
|
@@ -215,22 +215,28 @@ class PayoutMethodDetails
|
|
|
215
215
|
:'PayoutMethodDetailsBWPBank',
|
|
216
216
|
:'PayoutMethodDetailsBalance',
|
|
217
217
|
:'PayoutMethodDetailsCADBank',
|
|
218
|
+
:'PayoutMethodDetailsCRCBank',
|
|
218
219
|
:'PayoutMethodDetailsEGPBank',
|
|
219
220
|
:'PayoutMethodDetailsEGPCash',
|
|
220
221
|
:'PayoutMethodDetailsGBPBank',
|
|
221
222
|
:'PayoutMethodDetailsGHSBank',
|
|
222
223
|
:'PayoutMethodDetailsGHSMobile',
|
|
223
224
|
:'PayoutMethodDetailsGNFMobile',
|
|
225
|
+
:'PayoutMethodDetailsGTQBank',
|
|
224
226
|
:'PayoutMethodDetailsIBAN',
|
|
225
227
|
:'PayoutMethodDetailsKESBank',
|
|
226
228
|
:'PayoutMethodDetailsKESMobile',
|
|
229
|
+
:'PayoutMethodDetailsMADBank',
|
|
227
230
|
:'PayoutMethodDetailsMADCash',
|
|
228
231
|
:'PayoutMethodDetailsMobile',
|
|
229
232
|
:'PayoutMethodDetailsNGNBank',
|
|
230
233
|
:'PayoutMethodDetailsNZDBank',
|
|
234
|
+
:'PayoutMethodDetailsPENBank',
|
|
231
235
|
:'PayoutMethodDetailsUGXBank',
|
|
232
236
|
:'PayoutMethodDetailsUSDBank',
|
|
233
237
|
:'PayoutMethodDetailsUSDCash',
|
|
238
|
+
:'PayoutMethodDetailsVNDBank',
|
|
239
|
+
:'PayoutMethodDetailsVNDMobile',
|
|
234
240
|
:'PayoutMethodDetailsXAFBank',
|
|
235
241
|
:'PayoutMethodDetailsXAFMobile',
|
|
236
242
|
:'PayoutMethodDetailsXOFBank',
|
|
@@ -457,6 +463,10 @@ class PayoutMethodDetails
|
|
|
457
463
|
invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
|
|
458
464
|
end
|
|
459
465
|
|
|
466
|
+
if @bank_account_type.nil?
|
|
467
|
+
invalid_properties.push('invalid value for "bank_account_type", bank_account_type cannot be nil.')
|
|
468
|
+
end
|
|
469
|
+
|
|
460
470
|
if @street.nil?
|
|
461
471
|
invalid_properties.push('invalid value for "street", street cannot be nil.')
|
|
462
472
|
end
|
|
@@ -539,6 +549,7 @@ class PayoutMethodDetails
|
|
|
539
549
|
return false if @last_name.nil?
|
|
540
550
|
return false if @bank_code.nil?
|
|
541
551
|
return false if @bank_account.nil?
|
|
552
|
+
return false if @bank_account_type.nil?
|
|
542
553
|
return false if @street.nil?
|
|
543
554
|
return false if @phone_number.nil?
|
|
544
555
|
return false if @mobile_provider.nil?
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#TransferZero API
|
|
3
|
+
|
|
4
|
+
#Reference documentation for the TransferZero API V1
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 4.0.0-beta3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module TransferZero
|
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"Andrea\", \"last_name\": \"Vargas\", \"identity_card_type\": \"CI\", // CI=Cédula de identidad, CJ=Cédula jurídica, CR=Cédula de residencia \"identity_card_id\": \"305271289\", \"iban\": \"CR05015202001026284066\", // 22-char IBAN \"street\": \"Calle 12, San José\" } ```
|
|
17
|
+
class PayoutMethodDetailsCRCBank
|
|
18
|
+
attr_accessor :first_name
|
|
19
|
+
|
|
20
|
+
attr_accessor :last_name
|
|
21
|
+
|
|
22
|
+
attr_accessor :identity_card_type
|
|
23
|
+
|
|
24
|
+
attr_accessor :identity_card_id
|
|
25
|
+
|
|
26
|
+
attr_accessor :iban
|
|
27
|
+
|
|
28
|
+
attr_accessor :street
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'first_name' => :'first_name',
|
|
34
|
+
:'last_name' => :'last_name',
|
|
35
|
+
:'identity_card_type' => :'identity_card_type',
|
|
36
|
+
:'identity_card_id' => :'identity_card_id',
|
|
37
|
+
:'iban' => :'iban',
|
|
38
|
+
:'street' => :'street'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'first_name' => :'String',
|
|
46
|
+
:'last_name' => :'String',
|
|
47
|
+
:'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
|
|
48
|
+
:'identity_card_id' => :'String',
|
|
49
|
+
:'iban' => :'String',
|
|
50
|
+
:'street' => :'String'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsCRCBank` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsCRCBank`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
65
|
+
end
|
|
66
|
+
h[k.to_sym] = v
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'first_name')
|
|
70
|
+
self.first_name = attributes[:'first_name']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'last_name')
|
|
74
|
+
self.last_name = attributes[:'last_name']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'identity_card_type')
|
|
78
|
+
self.identity_card_type = attributes[:'identity_card_type']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'identity_card_id')
|
|
82
|
+
self.identity_card_id = attributes[:'identity_card_id']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'iban')
|
|
86
|
+
self.iban = attributes[:'iban']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'street')
|
|
90
|
+
self.street = attributes[:'street']
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
if @first_name.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if @last_name.nil?
|
|
103
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if @identity_card_type.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if @identity_card_id.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "identity_card_id", identity_card_id cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if @iban.nil?
|
|
115
|
+
invalid_properties.push('invalid value for "iban", iban cannot be nil.')
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @street.nil?
|
|
119
|
+
invalid_properties.push('invalid value for "street", street cannot be nil.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
invalid_properties
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Check to see if the all the properties in the model are valid
|
|
126
|
+
# @return true if the model is valid
|
|
127
|
+
def valid?
|
|
128
|
+
return false if @first_name.nil?
|
|
129
|
+
return false if @last_name.nil?
|
|
130
|
+
return false if @identity_card_type.nil?
|
|
131
|
+
return false if @identity_card_id.nil?
|
|
132
|
+
return false if @iban.nil?
|
|
133
|
+
return false if @street.nil?
|
|
134
|
+
true
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Checks equality by comparing each attribute.
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def ==(o)
|
|
140
|
+
return true if self.equal?(o)
|
|
141
|
+
self.class == o.class &&
|
|
142
|
+
first_name == o.first_name &&
|
|
143
|
+
last_name == o.last_name &&
|
|
144
|
+
identity_card_type == o.identity_card_type &&
|
|
145
|
+
identity_card_id == o.identity_card_id &&
|
|
146
|
+
iban == o.iban &&
|
|
147
|
+
street == o.street
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# @see the `==` method
|
|
151
|
+
# @param [Object] Object to be compared
|
|
152
|
+
def eql?(o)
|
|
153
|
+
self == o
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Calculates hash code according to all attributes.
|
|
157
|
+
# @return [Integer] Hash code
|
|
158
|
+
def hash
|
|
159
|
+
[first_name, last_name, identity_card_type, identity_card_id, iban, street].hash
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
require 'active_support/core_ext/hash'
|
|
163
|
+
require 'active_support/hash_with_indifferent_access.rb'
|
|
164
|
+
# Builds the object from hash
|
|
165
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
166
|
+
# @return [Object] Returns the model itself
|
|
167
|
+
def build_from_hash(attributes)
|
|
168
|
+
return nil unless attributes.is_a?(Hash)
|
|
169
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
170
|
+
if type =~ /\AArray<(.*)>/i
|
|
171
|
+
# check to ensure the input is an array given that the the attribute
|
|
172
|
+
# is documented as an array but the input is not
|
|
173
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
174
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
175
|
+
end
|
|
176
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
177
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
178
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
self
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Deserializes the data based on type
|
|
185
|
+
# @param string type Data type
|
|
186
|
+
# @param string value Value to be deserialized
|
|
187
|
+
# @return [Object] Deserialized data
|
|
188
|
+
def _deserialize(type, value)
|
|
189
|
+
case type.to_sym
|
|
190
|
+
when :DateTime
|
|
191
|
+
DateTime.parse(value)
|
|
192
|
+
when :Date
|
|
193
|
+
Date.parse(value)
|
|
194
|
+
when :String
|
|
195
|
+
value.to_s
|
|
196
|
+
when :Integer
|
|
197
|
+
value.to_i
|
|
198
|
+
when :Float
|
|
199
|
+
value.to_f
|
|
200
|
+
when :Boolean
|
|
201
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
202
|
+
true
|
|
203
|
+
else
|
|
204
|
+
false
|
|
205
|
+
end
|
|
206
|
+
when :Object
|
|
207
|
+
# generic object (usually a Hash), return directly
|
|
208
|
+
value
|
|
209
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
210
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
211
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
212
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
213
|
+
k_type = Regexp.last_match[:k_type]
|
|
214
|
+
v_type = Regexp.last_match[:v_type]
|
|
215
|
+
{}.tap do |hash|
|
|
216
|
+
value.each do |k, v|
|
|
217
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
else # model
|
|
221
|
+
temp_model = TransferZero.const_get(type).new
|
|
222
|
+
temp_model.build_from_hash(value)
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Returns the string representation of the object
|
|
227
|
+
# @return [String] String presentation of the object
|
|
228
|
+
def to_s
|
|
229
|
+
to_hash.to_s
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
|
234
|
+
def to_body
|
|
235
|
+
to_hash
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Returns the object in the form of hash
|
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
|
240
|
+
def to_hash
|
|
241
|
+
hash = {}
|
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
243
|
+
value = self.send(attr)
|
|
244
|
+
next if value.nil?
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
::ActiveSupport::HashWithIndifferentAccess.new(hash)
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
def [](key)
|
|
251
|
+
to_hash[key]
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
def dig(*args)
|
|
255
|
+
to_hash.dig(*args)
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Outputs non-array value in the form of hash
|
|
259
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
260
|
+
# @param [Object] value Any valid value
|
|
261
|
+
# @return [Hash] Returns the value in the form of hash
|
|
262
|
+
def _to_hash(value)
|
|
263
|
+
if value.is_a?(Array)
|
|
264
|
+
value.compact.map { |v| _to_hash(v) }
|
|
265
|
+
elsif value.is_a?(Hash)
|
|
266
|
+
{}.tap do |hash|
|
|
267
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
268
|
+
end
|
|
269
|
+
elsif value.respond_to? :to_hash
|
|
270
|
+
value.to_hash
|
|
271
|
+
else
|
|
272
|
+
value
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
end
|