transferzero-sdk 1.15.0 → 1.17.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 +6 -5
- data/docs/AccountValidationRequest.md +2 -0
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +5 -3
- 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/PayoutMethodDetailsXOFBank.md +7 -3
- data/docs/PayoutMethodDetailsZARBank.md +2 -0
- data/docs/{PayoutMethodCountryEnumUSDBank.md → PayoutMethodTransferReasonEnum.md} +2 -2
- data/docs/Recipient.md +2 -0
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/account_validation_request.rb +13 -3
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_details.rb +12 -12
- 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_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_xof_bank.rb +23 -15
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +11 -2
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +2 -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/version.rb +1 -1
- data/lib/transferzero-sdk.rb +2 -1
- data/spec/models/payout_method_details_usd_cash_spec.rb +59 -0
- data/spec/models/{payout_method_country_enum_usd_bank_spec.rb → payout_method_transfer_reason_enum_spec.rb} +6 -6
- metadata +20 -22
- data/Gemfile.lock +0 -93
- data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +0 -269
- data/transferzero-sdk-1.10.0.gem +0 -0
- data/transferzero-sdk-1.11.0.gem +0 -0
- data/transferzero-sdk-1.12.0.gem +0 -0
- data/transferzero-sdk-1.14.0.gem +0 -0
- data/transferzero-sdk-1.14.1.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0dc4776f3a304bb0e878db347244d6a0ee0ab62f8976833c10287cd27152013
|
|
4
|
+
data.tar.gz: c9fb602686ab7b5a837fd5cecfd423db2612eac2d4b8a07325a51bd8b8da91d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f096614a85af726f815b4f6e93a8923d694f483ef6e07331699f85c4454ccda323650d0b1bf9e9559eb49c92ac17e46706b6f505b50cb34ef4b7b1a71e0e46a
|
|
7
|
+
data.tar.gz: 8e9bdce85dd2c00fa07cf3295590025afed03abe96d061d710936a2426b8570bc98767142e95448b0774402ce58149380fb40dd44c37f2f9ebec71f9a9103c9c
|
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.17.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.17.0.gem
|
|
35
35
|
```
|
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.17.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.17.0'
|
|
43
43
|
|
|
44
44
|
### Install from Git
|
|
45
45
|
|
|
@@ -199,7 +199,6 @@ 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)
|
|
@@ -213,6 +212,7 @@ Class | Method | HTTP request | Description
|
|
|
213
212
|
- [TransferZero::PayoutMethodDetailsMobile](docs/PayoutMethodDetailsMobile.md)
|
|
214
213
|
- [TransferZero::PayoutMethodDetailsNGNBank](docs/PayoutMethodDetailsNGNBank.md)
|
|
215
214
|
- [TransferZero::PayoutMethodDetailsUSDBank](docs/PayoutMethodDetailsUSDBank.md)
|
|
215
|
+
- [TransferZero::PayoutMethodDetailsUSDCash](docs/PayoutMethodDetailsUSDCash.md)
|
|
216
216
|
- [TransferZero::PayoutMethodDetailsXOFBank](docs/PayoutMethodDetailsXOFBank.md)
|
|
217
217
|
- [TransferZero::PayoutMethodDetailsXOFCash](docs/PayoutMethodDetailsXOFCash.md)
|
|
218
218
|
- [TransferZero::PayoutMethodDetailsXOFMobile](docs/PayoutMethodDetailsXOFMobile.md)
|
|
@@ -225,6 +225,7 @@ Class | Method | HTTP request | Description
|
|
|
225
225
|
- [TransferZero::PayoutMethodNatureOfBusinessEnum](docs/PayoutMethodNatureOfBusinessEnum.md)
|
|
226
226
|
- [TransferZero::PayoutMethodRequest](docs/PayoutMethodRequest.md)
|
|
227
227
|
- [TransferZero::PayoutMethodResponse](docs/PayoutMethodResponse.md)
|
|
228
|
+
- [TransferZero::PayoutMethodTransferReasonEnum](docs/PayoutMethodTransferReasonEnum.md)
|
|
228
229
|
- [TransferZero::PayoutMethodWebhook](docs/PayoutMethodWebhook.md)
|
|
229
230
|
- [TransferZero::PoliticallyExposedPerson](docs/PoliticallyExposedPerson.md)
|
|
230
231
|
- [TransferZero::ProofOfPayment](docs/ProofOfPayment.md)
|
|
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**bank_account** | **String** | Account Number to query | [optional]
|
|
8
8
|
**bank_code** | **String** | Bank Code to query - same codes are used as for creating the transactions | [optional]
|
|
9
|
+
**iban** | **String** | IBAN to query - BBAN format for XOF bank accounts | [optional]
|
|
9
10
|
**phone_number** | **String** | Phone number to query | [optional]
|
|
10
11
|
**mobile_provider** | [**PayoutMethodMobileProviderEnum**](PayoutMethodMobileProviderEnum.md) | | [optional]
|
|
11
12
|
**country** | **String** | Country of account in 2-character alpha ISO 3166-2 country format |
|
|
@@ -19,6 +20,7 @@ require 'TransferZero'
|
|
|
19
20
|
|
|
20
21
|
instance = TransferZero::AccountValidationRequest.new(bank_account: null,
|
|
21
22
|
bank_code: null,
|
|
23
|
+
iban: null,
|
|
22
24
|
phone_number: +233000000000,
|
|
23
25
|
mobile_provider: null,
|
|
24
26
|
country: null,
|
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. 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,10 +11,11 @@ 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
15
|
**iban** | **String** | |
|
|
16
16
|
**bank_name** | **String** | |
|
|
17
|
-
**bank_country** | **String** | |
|
|
17
|
+
**bank_country** | **String** | | [optional]
|
|
18
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
|
18
19
|
**cash_provider** | [**PayoutMethodCashProviderEnum**](PayoutMethodCashProviderEnum.md) | | [optional]
|
|
19
20
|
**sort_code** | **String** | | [optional]
|
|
20
21
|
**bic** | **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]
|
|
@@ -58,6 +59,7 @@ instance = TransferZero::PayoutMethodDetails.new(first_name: null,
|
|
|
58
59
|
iban: null,
|
|
59
60
|
bank_name: null,
|
|
60
61
|
bank_country: null,
|
|
62
|
+
transfer_reason: null,
|
|
61
63
|
cash_provider: null,
|
|
62
64
|
sort_code: null,
|
|
63
65
|
bic: null,
|
|
@@ -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
|
+
|
|
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**first_name** | **String** | |
|
|
8
8
|
**last_name** | **String** | |
|
|
9
9
|
**iban** | **String** | |
|
|
10
|
-
**bank_name** | **String** | |
|
|
11
|
-
**bank_country** | **String** | |
|
|
10
|
+
**bank_name** | **String** | | [optional]
|
|
11
|
+
**bank_country** | **String** | | [optional]
|
|
12
|
+
**bank_code** | **String** | | [optional]
|
|
13
|
+
**transfer_reason** | [**PayoutMethodTransferReasonEnum**](PayoutMethodTransferReasonEnum.md) | | [optional]
|
|
12
14
|
|
|
13
15
|
## Code Sample
|
|
14
16
|
|
|
@@ -19,7 +21,9 @@ instance = TransferZero::PayoutMethodDetailsXOFBank.new(first_name: null,
|
|
|
19
21
|
last_name: null,
|
|
20
22
|
iban: null,
|
|
21
23
|
bank_name: null,
|
|
22
|
-
bank_country: null
|
|
24
|
+
bank_country: null,
|
|
25
|
+
bank_code: null,
|
|
26
|
+
transfer_reason: null)
|
|
23
27
|
```
|
|
24
28
|
|
|
25
29
|
|
|
@@ -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
|
|
|
@@ -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.17.0"
|
|
39
39
|
@default_headers = {
|
|
40
40
|
'Content-Type' => 'application/json',
|
|
41
41
|
'User-Agent' => @user_agent
|
|
@@ -20,6 +20,9 @@ class AccountValidationRequest
|
|
|
20
20
|
# Bank Code to query - same codes are used as for creating the transactions
|
|
21
21
|
attr_accessor :bank_code
|
|
22
22
|
|
|
23
|
+
# IBAN to query - BBAN format for XOF bank accounts
|
|
24
|
+
attr_accessor :iban
|
|
25
|
+
|
|
23
26
|
# Phone number to query
|
|
24
27
|
attr_accessor :phone_number
|
|
25
28
|
|
|
@@ -61,6 +64,7 @@ class AccountValidationRequest
|
|
|
61
64
|
{
|
|
62
65
|
:'bank_account' => :'bank_account',
|
|
63
66
|
:'bank_code' => :'bank_code',
|
|
67
|
+
:'iban' => :'iban',
|
|
64
68
|
:'phone_number' => :'phone_number',
|
|
65
69
|
:'mobile_provider' => :'mobile_provider',
|
|
66
70
|
:'country' => :'country',
|
|
@@ -74,6 +78,7 @@ class AccountValidationRequest
|
|
|
74
78
|
{
|
|
75
79
|
:'bank_account' => :'String',
|
|
76
80
|
:'bank_code' => :'String',
|
|
81
|
+
:'iban' => :'String',
|
|
77
82
|
:'phone_number' => :'String',
|
|
78
83
|
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
|
79
84
|
:'country' => :'String',
|
|
@@ -105,6 +110,10 @@ class AccountValidationRequest
|
|
|
105
110
|
self.bank_code = attributes[:'bank_code']
|
|
106
111
|
end
|
|
107
112
|
|
|
113
|
+
if attributes.key?(:'iban')
|
|
114
|
+
self.iban = attributes[:'iban']
|
|
115
|
+
end
|
|
116
|
+
|
|
108
117
|
if attributes.key?(:'phone_number')
|
|
109
118
|
self.phone_number = attributes[:'phone_number']
|
|
110
119
|
end
|
|
@@ -149,7 +158,7 @@ class AccountValidationRequest
|
|
|
149
158
|
# @return true if the model is valid
|
|
150
159
|
def valid?
|
|
151
160
|
return false if @country.nil?
|
|
152
|
-
country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
|
|
161
|
+
country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
|
|
153
162
|
return false unless country_validator.valid?(@country)
|
|
154
163
|
return false if @currency.nil?
|
|
155
164
|
currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
|
|
@@ -163,7 +172,7 @@ class AccountValidationRequest
|
|
|
163
172
|
# Custom attribute writer method checking allowed values (enum).
|
|
164
173
|
# @param [Object] country Object to be assigned
|
|
165
174
|
def country=(country)
|
|
166
|
-
validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
|
|
175
|
+
validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN", "CI"])
|
|
167
176
|
unless validator.valid?(country) || country.empty?
|
|
168
177
|
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
|
169
178
|
end
|
|
@@ -197,6 +206,7 @@ class AccountValidationRequest
|
|
|
197
206
|
self.class == o.class &&
|
|
198
207
|
bank_account == o.bank_account &&
|
|
199
208
|
bank_code == o.bank_code &&
|
|
209
|
+
iban == o.iban &&
|
|
200
210
|
phone_number == o.phone_number &&
|
|
201
211
|
mobile_provider == o.mobile_provider &&
|
|
202
212
|
country == o.country &&
|
|
@@ -213,7 +223,7 @@ class AccountValidationRequest
|
|
|
213
223
|
# Calculates hash code according to all attributes.
|
|
214
224
|
# @return [Integer] Hash code
|
|
215
225
|
def hash
|
|
216
|
-
[bank_account, bank_code, phone_number, mobile_provider, country, currency, method].hash
|
|
226
|
+
[bank_account, bank_code, iban, phone_number, mobile_provider, country, currency, method].hash
|
|
217
227
|
end
|
|
218
228
|
|
|
219
229
|
require 'active_support/core_ext/hash'
|
|
@@ -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. 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
|
|
@@ -36,6 +36,8 @@ class PayoutMethodDetails
|
|
|
36
36
|
|
|
37
37
|
attr_accessor :bank_country
|
|
38
38
|
|
|
39
|
+
attr_accessor :transfer_reason
|
|
40
|
+
|
|
39
41
|
attr_accessor :cash_provider
|
|
40
42
|
|
|
41
43
|
attr_accessor :sort_code
|
|
@@ -102,6 +104,7 @@ class PayoutMethodDetails
|
|
|
102
104
|
:'iban' => :'iban',
|
|
103
105
|
:'bank_name' => :'bank_name',
|
|
104
106
|
:'bank_country' => :'bank_country',
|
|
107
|
+
:'transfer_reason' => :'transfer_reason',
|
|
105
108
|
:'cash_provider' => :'cash_provider',
|
|
106
109
|
:'sort_code' => :'sort_code',
|
|
107
110
|
:'bic' => :'bic',
|
|
@@ -141,10 +144,11 @@ class PayoutMethodDetails
|
|
|
141
144
|
:'bank_account_type' => :'PayoutMethodBankAccountTypeEnum',
|
|
142
145
|
:'phone_number' => :'String',
|
|
143
146
|
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
|
144
|
-
:'country' => :'
|
|
147
|
+
:'country' => :'PayoutMethodCountryEnum',
|
|
145
148
|
:'iban' => :'String',
|
|
146
149
|
:'bank_name' => :'String',
|
|
147
150
|
:'bank_country' => :'String',
|
|
151
|
+
:'transfer_reason' => :'PayoutMethodTransferReasonEnum',
|
|
148
152
|
:'cash_provider' => :'PayoutMethodCashProviderEnum',
|
|
149
153
|
:'sort_code' => :'String',
|
|
150
154
|
:'bic' => :'String',
|
|
@@ -189,6 +193,7 @@ class PayoutMethodDetails
|
|
|
189
193
|
:'PayoutMethodDetailsMobile',
|
|
190
194
|
:'PayoutMethodDetailsNGNBank',
|
|
191
195
|
:'PayoutMethodDetailsUSDBank',
|
|
196
|
+
:'PayoutMethodDetailsUSDCash',
|
|
192
197
|
:'PayoutMethodDetailsXOFBank',
|
|
193
198
|
:'PayoutMethodDetailsXOFCash',
|
|
194
199
|
:'PayoutMethodDetailsXOFMobile',
|
|
@@ -255,6 +260,10 @@ class PayoutMethodDetails
|
|
|
255
260
|
self.bank_country = attributes[:'bank_country']
|
|
256
261
|
end
|
|
257
262
|
|
|
263
|
+
if attributes.key?(:'transfer_reason')
|
|
264
|
+
self.transfer_reason = attributes[:'transfer_reason']
|
|
265
|
+
end
|
|
266
|
+
|
|
258
267
|
if attributes.key?(:'cash_provider')
|
|
259
268
|
self.cash_provider = attributes[:'cash_provider']
|
|
260
269
|
end
|
|
@@ -400,10 +409,6 @@ class PayoutMethodDetails
|
|
|
400
409
|
invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
|
|
401
410
|
end
|
|
402
411
|
|
|
403
|
-
if @bank_country.nil?
|
|
404
|
-
invalid_properties.push('invalid value for "bank_country", bank_country cannot be nil.')
|
|
405
|
-
end
|
|
406
|
-
|
|
407
412
|
if @sender_identity_card_type.nil?
|
|
408
413
|
invalid_properties.push('invalid value for "sender_identity_card_type", sender_identity_card_type cannot be nil.')
|
|
409
414
|
end
|
|
@@ -440,10 +445,6 @@ class PayoutMethodDetails
|
|
|
440
445
|
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
|
441
446
|
end
|
|
442
447
|
|
|
443
|
-
if @transfer_reason_code.nil?
|
|
444
|
-
invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
|
|
445
|
-
end
|
|
446
|
-
|
|
447
448
|
if @swift_code.nil?
|
|
448
449
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
|
449
450
|
end
|
|
@@ -463,7 +464,6 @@ class PayoutMethodDetails
|
|
|
463
464
|
return false if @country.nil?
|
|
464
465
|
return false if @iban.nil?
|
|
465
466
|
return false if @bank_name.nil?
|
|
466
|
-
return false if @bank_country.nil?
|
|
467
467
|
return false if @sender_identity_card_type.nil?
|
|
468
468
|
return false if @sender_identity_card_id.nil?
|
|
469
469
|
return false if @identity_card_type.nil?
|
|
@@ -473,7 +473,6 @@ class PayoutMethodDetails
|
|
|
473
473
|
return false if @street.nil?
|
|
474
474
|
return false if @postal_code.nil?
|
|
475
475
|
return false if @city.nil?
|
|
476
|
-
return false if @transfer_reason_code.nil?
|
|
477
476
|
return false if @swift_code.nil?
|
|
478
477
|
_one_of_found = false
|
|
479
478
|
openapi_one_of.each do |_class|
|
|
@@ -510,6 +509,7 @@ class PayoutMethodDetails
|
|
|
510
509
|
iban == o.iban &&
|
|
511
510
|
bank_name == o.bank_name &&
|
|
512
511
|
bank_country == o.bank_country &&
|
|
512
|
+
transfer_reason == o.transfer_reason &&
|
|
513
513
|
cash_provider == o.cash_provider &&
|
|
514
514
|
sort_code == o.sort_code &&
|
|
515
515
|
bic == o.bic &&
|
|
@@ -547,7 +547,7 @@ class PayoutMethodDetails
|
|
|
547
547
|
# Calculates hash code according to all attributes.
|
|
548
548
|
# @return [Integer] Hash code
|
|
549
549
|
def hash
|
|
550
|
-
[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
|
|
550
|
+
[first_name, last_name, bank_code, bank_account, bank_account_type, phone_number, mobile_provider, country, iban, bank_name, bank_country, transfer_reason, 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
|
|
551
551
|
end
|
|
552
552
|
|
|
553
553
|
require 'active_support/core_ext/hash'
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module TransferZero
|
|
16
|
-
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"bank_name\": \"Equity Bank Ltd\", \"branch_code\": \"404\", \"swift_code\" \"ABCLKENA\", \"
|
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"bank_code\": \"68\", \"bank_account\": \"12345678\", \"bank_name\": \"Equity Bank Ltd\", \"branch_code\": \"404\", \"swift_code\" \"ABCLKENA\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` The valid bank_code values are: - Habib Bank Limited: 08 - Trans-National Bank Limited: 26 - Housing Finance Co. Kenya: 61 - UBA Kenya Bank Ltd: 76 - Kenya Commercial Bank: 01000 - Standard Chartered Bank: 02000 - Barclays Bank of Kenya: 03000 - Bank of India: 05000 - Bank of Boroda: 06000 - NCBA Bank: 07000 - Prime Bank: 10000 - Co-operative Bank of Kenya: 11000 - National Bank of Kenya: 12000 - M-Oriental Commercial Bank Limited: 14000 - Citibank: 16000 - Habib Bank A.G. Zurich: 17000 - Middle East Bank: 18000 - Bank of Africa Kenya: 19000 - Consolidated Bank of Kenya: 23000 - Credit Bank Ltd: 25000 - Chase Bank: 30000 - Stanbic Bank Kenya: 31000 - African Banking Corporation: 35000 - Giro Bank Limited: 42000 - ECO Bank Kenya: 43000 - Spire Bank Limited: 49000 - Paramount Universal Bank Limited: 50000 - Jamii Bora Bank: 51000 - Guaranty Trust Bank Kenya: 53000 - Victoria Bank Limited: 54000 - Guardian Bank: 55000 - Investments and Mortgages Bank Limited: 57000 - Development Bank of Kenya: 59000 - Fidelity Commercial Bank: 46000 - Diamond Trust Bank: 63000 - Sidian Bank: 66000 - Equity Bank Limited: 68000 - Family Bank: 70000 - Gulf African Bank: 72000 - First Community Bank: 74000 - KWFT Bank: 78000 See [KES Bank](https://docs.transferzero.com/docs/payout-details/#kesbank) documentation for the transfer_reason list
|
|
17
17
|
class PayoutMethodDetailsKESBank
|
|
18
18
|
attr_accessor :first_name
|
|
19
19
|
|
|
@@ -33,6 +33,8 @@ class PayoutMethodDetailsKESBank
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :transfer_reason_code
|
|
35
35
|
|
|
36
|
+
attr_accessor :transfer_reason
|
|
37
|
+
|
|
36
38
|
attr_accessor :identity_card_type
|
|
37
39
|
|
|
38
40
|
attr_accessor :identity_card_id
|
|
@@ -49,6 +51,7 @@ class PayoutMethodDetailsKESBank
|
|
|
49
51
|
:'branch_code' => :'branch_code',
|
|
50
52
|
:'swift_code' => :'swift_code',
|
|
51
53
|
:'transfer_reason_code' => :'transfer_reason_code',
|
|
54
|
+
:'transfer_reason' => :'transfer_reason',
|
|
52
55
|
:'identity_card_type' => :'identity_card_type',
|
|
53
56
|
:'identity_card_id' => :'identity_card_id'
|
|
54
57
|
}
|
|
@@ -66,6 +69,7 @@ class PayoutMethodDetailsKESBank
|
|
|
66
69
|
:'branch_code' => :'String',
|
|
67
70
|
:'swift_code' => :'String',
|
|
68
71
|
:'transfer_reason_code' => :'String',
|
|
72
|
+
:'transfer_reason' => :'PayoutMethodTransferReasonEnum',
|
|
69
73
|
:'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
|
|
70
74
|
:'identity_card_id' => :'String'
|
|
71
75
|
}
|
|
@@ -122,6 +126,10 @@ class PayoutMethodDetailsKESBank
|
|
|
122
126
|
self.transfer_reason_code = attributes[:'transfer_reason_code']
|
|
123
127
|
end
|
|
124
128
|
|
|
129
|
+
if attributes.key?(:'transfer_reason')
|
|
130
|
+
self.transfer_reason = attributes[:'transfer_reason']
|
|
131
|
+
end
|
|
132
|
+
|
|
125
133
|
if attributes.key?(:'identity_card_type')
|
|
126
134
|
self.identity_card_type = attributes[:'identity_card_type']
|
|
127
135
|
end
|
|
@@ -163,10 +171,6 @@ class PayoutMethodDetailsKESBank
|
|
|
163
171
|
invalid_properties.push('invalid value for "swift_code", swift_code cannot be nil.')
|
|
164
172
|
end
|
|
165
173
|
|
|
166
|
-
if @transfer_reason_code.nil?
|
|
167
|
-
invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
|
|
168
|
-
end
|
|
169
|
-
|
|
170
174
|
if @identity_card_type.nil?
|
|
171
175
|
invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
|
|
172
176
|
end
|
|
@@ -188,7 +192,6 @@ class PayoutMethodDetailsKESBank
|
|
|
188
192
|
return false if @bank_account.nil?
|
|
189
193
|
return false if @bank_name.nil?
|
|
190
194
|
return false if @swift_code.nil?
|
|
191
|
-
return false if @transfer_reason_code.nil?
|
|
192
195
|
return false if @identity_card_type.nil?
|
|
193
196
|
return false if @identity_card_id.nil?
|
|
194
197
|
true
|
|
@@ -208,6 +211,7 @@ class PayoutMethodDetailsKESBank
|
|
|
208
211
|
branch_code == o.branch_code &&
|
|
209
212
|
swift_code == o.swift_code &&
|
|
210
213
|
transfer_reason_code == o.transfer_reason_code &&
|
|
214
|
+
transfer_reason == o.transfer_reason &&
|
|
211
215
|
identity_card_type == o.identity_card_type &&
|
|
212
216
|
identity_card_id == o.identity_card_id
|
|
213
217
|
end
|
|
@@ -221,7 +225,7 @@ class PayoutMethodDetailsKESBank
|
|
|
221
225
|
# Calculates hash code according to all attributes.
|
|
222
226
|
# @return [Integer] Hash code
|
|
223
227
|
def hash
|
|
224
|
-
[first_name, last_name, bank_code, street, bank_account, bank_name, branch_code, swift_code, transfer_reason_code, identity_card_type, identity_card_id].hash
|
|
228
|
+
[first_name, last_name, bank_code, street, bank_account, bank_name, branch_code, swift_code, transfer_reason_code, transfer_reason, identity_card_type, identity_card_id].hash
|
|
225
229
|
end
|
|
226
230
|
|
|
227
231
|
require 'active_support/core_ext/hash'
|
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.0.0-beta3
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module TransferZero
|
|
16
|
-
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", \"mobile_provider\": \"mpesa\", \"
|
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"street\": \"Main Street\", \"phone_number\": \"+254997853134\", \"mobile_provider\": \"mpesa\", \"transfer_reason\": \"personal_account\", // New transfer reason field \"identity_card_type\": \"ID\", \"identity_card_id\": \"AB12345678\" } ``` See [KES Mobile](https://docs.transferzero.com/docs/payout-details/#kesmobile) documentation for transfer_reason lists
|
|
17
17
|
class PayoutMethodDetailsKESMobile
|
|
18
18
|
attr_accessor :first_name
|
|
19
19
|
|
|
@@ -27,6 +27,8 @@ class PayoutMethodDetailsKESMobile
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :transfer_reason_code
|
|
29
29
|
|
|
30
|
+
attr_accessor :transfer_reason
|
|
31
|
+
|
|
30
32
|
attr_accessor :identity_card_type
|
|
31
33
|
|
|
32
34
|
attr_accessor :identity_card_id
|
|
@@ -40,6 +42,7 @@ class PayoutMethodDetailsKESMobile
|
|
|
40
42
|
:'phone_number' => :'phone_number',
|
|
41
43
|
:'mobile_provider' => :'mobile_provider',
|
|
42
44
|
:'transfer_reason_code' => :'transfer_reason_code',
|
|
45
|
+
:'transfer_reason' => :'transfer_reason',
|
|
43
46
|
:'identity_card_type' => :'identity_card_type',
|
|
44
47
|
:'identity_card_id' => :'identity_card_id'
|
|
45
48
|
}
|
|
@@ -54,6 +57,7 @@ class PayoutMethodDetailsKESMobile
|
|
|
54
57
|
:'phone_number' => :'String',
|
|
55
58
|
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
|
56
59
|
:'transfer_reason_code' => :'String',
|
|
60
|
+
:'transfer_reason' => :'PayoutMethodTransferReasonEnum',
|
|
57
61
|
:'identity_card_type' => :'PayoutMethodIdentityCardTypeEnum',
|
|
58
62
|
:'identity_card_id' => :'String'
|
|
59
63
|
}
|
|
@@ -98,6 +102,10 @@ class PayoutMethodDetailsKESMobile
|
|
|
98
102
|
self.transfer_reason_code = attributes[:'transfer_reason_code']
|
|
99
103
|
end
|
|
100
104
|
|
|
105
|
+
if attributes.key?(:'transfer_reason')
|
|
106
|
+
self.transfer_reason = attributes[:'transfer_reason']
|
|
107
|
+
end
|
|
108
|
+
|
|
101
109
|
if attributes.key?(:'identity_card_type')
|
|
102
110
|
self.identity_card_type = attributes[:'identity_card_type']
|
|
103
111
|
end
|
|
@@ -131,10 +139,6 @@ class PayoutMethodDetailsKESMobile
|
|
|
131
139
|
invalid_properties.push('invalid value for "mobile_provider", mobile_provider cannot be nil.')
|
|
132
140
|
end
|
|
133
141
|
|
|
134
|
-
if @transfer_reason_code.nil?
|
|
135
|
-
invalid_properties.push('invalid value for "transfer_reason_code", transfer_reason_code cannot be nil.')
|
|
136
|
-
end
|
|
137
|
-
|
|
138
142
|
if @identity_card_type.nil?
|
|
139
143
|
invalid_properties.push('invalid value for "identity_card_type", identity_card_type cannot be nil.')
|
|
140
144
|
end
|
|
@@ -154,7 +158,6 @@ class PayoutMethodDetailsKESMobile
|
|
|
154
158
|
return false if @street.nil?
|
|
155
159
|
return false if @phone_number.nil?
|
|
156
160
|
return false if @mobile_provider.nil?
|
|
157
|
-
return false if @transfer_reason_code.nil?
|
|
158
161
|
return false if @identity_card_type.nil?
|
|
159
162
|
return false if @identity_card_id.nil?
|
|
160
163
|
true
|
|
@@ -171,6 +174,7 @@ class PayoutMethodDetailsKESMobile
|
|
|
171
174
|
phone_number == o.phone_number &&
|
|
172
175
|
mobile_provider == o.mobile_provider &&
|
|
173
176
|
transfer_reason_code == o.transfer_reason_code &&
|
|
177
|
+
transfer_reason == o.transfer_reason &&
|
|
174
178
|
identity_card_type == o.identity_card_type &&
|
|
175
179
|
identity_card_id == o.identity_card_id
|
|
176
180
|
end
|
|
@@ -184,7 +188,7 @@ class PayoutMethodDetailsKESMobile
|
|
|
184
188
|
# Calculates hash code according to all attributes.
|
|
185
189
|
# @return [Integer] Hash code
|
|
186
190
|
def hash
|
|
187
|
-
[first_name, last_name, street, phone_number, mobile_provider, transfer_reason_code, identity_card_type, identity_card_id].hash
|
|
191
|
+
[first_name, last_name, street, phone_number, mobile_provider, transfer_reason_code, transfer_reason, identity_card_type, identity_card_id].hash
|
|
188
192
|
end
|
|
189
193
|
|
|
190
194
|
require 'active_support/core_ext/hash'
|