transferzero-sdk 1.15.1 → 1.16.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 +5 -5
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodDetails.md +1 -1
- data/docs/PayoutMethodDetailsUSDBank.md +1 -1
- data/docs/PayoutMethodDetailsUSDCash.md +23 -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 +2 -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_mobile_provider_enum.rb +2 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/lib/transferzero-sdk.rb +1 -1
- data/spec/models/payout_method_details_usd_cash_spec.rb +59 -0
- metadata +16 -16
- data/docs/PayoutMethodCountryEnumUSDBank.md +0 -16
- data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +0 -269
- data/spec/models/payout_method_country_enum_usd_bank_spec.rb +0 -35
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ae994e2f7876c32b6454f21c3bfacf44dcfd767b7deb37b97cebf66999038bc
|
|
4
|
+
data.tar.gz: 5943a2d48fa9247899df281b11564c52443f6610f1df420f6dba79b493a5d3bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8e1b3505519831412cb38141b2196d9c6bd61659826f901cfab35b3be1117dd9d9eb6bd92115a10333116de85d6b02b52a466879000294adb1a8dbe2703a788
|
|
7
|
+
data.tar.gz: 2adef9d446b0d671adc87f7bf8689ac6c1d5a6083c0ec8be8a843932e28d06e3aadc57c454ed1ecd569f40a5cceb4a79638f3c7c082a1fd4d2efb10f74bcee98
|
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.16.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.16.0.gem
|
|
35
35
|
```
|
|
36
|
-
(for development, run `gem install --dev ./transferzero-sdk-1.
|
|
36
|
+
(for development, run `gem install --dev ./transferzero-sdk-1.16.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.16.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)
|
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,7 +11,7 @@ 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
17
|
**bank_country** | **String** | | [optional]
|
|
@@ -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
|
+
|
|
@@ -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.16.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. 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
|
|
@@ -141,7 +141,7 @@ class PayoutMethodDetails
|
|
|
141
141
|
:'bank_account_type' => :'PayoutMethodBankAccountTypeEnum',
|
|
142
142
|
:'phone_number' => :'String',
|
|
143
143
|
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
|
144
|
-
:'country' => :'
|
|
144
|
+
:'country' => :'PayoutMethodCountryEnum',
|
|
145
145
|
:'iban' => :'String',
|
|
146
146
|
:'bank_name' => :'String',
|
|
147
147
|
:'bank_country' => :'String',
|
|
@@ -189,6 +189,7 @@ class PayoutMethodDetails
|
|
|
189
189
|
:'PayoutMethodDetailsMobile',
|
|
190
190
|
:'PayoutMethodDetailsNGNBank',
|
|
191
191
|
:'PayoutMethodDetailsUSDBank',
|
|
192
|
+
:'PayoutMethodDetailsUSDCash',
|
|
192
193
|
:'PayoutMethodDetailsXOFBank',
|
|
193
194
|
:'PayoutMethodDetailsXOFCash',
|
|
194
195
|
:'PayoutMethodDetailsXOFMobile',
|
|
@@ -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\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code
|
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", \"bank_code\": \"057\", \"bank_account\": \"1234567890\", \"country\": \"NG\" } ``` See [USD Bank](https://docs.transferzero.com/docs/payout-details/#usdbank) documentation for the bank_code and country lists
|
|
17
17
|
class PayoutMethodDetailsUSDBank
|
|
18
18
|
attr_accessor :first_name
|
|
19
19
|
|
|
@@ -47,7 +47,7 @@ class PayoutMethodDetailsUSDBank
|
|
|
47
47
|
:'phone_number' => :'String',
|
|
48
48
|
:'bank_code' => :'String',
|
|
49
49
|
:'bank_account' => :'String',
|
|
50
|
-
:'country' => :'
|
|
50
|
+
:'country' => :'PayoutMethodCountryEnum'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
@@ -0,0 +1,250 @@
|
|
|
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\": \"Jane\", \"last_name\": \"Doe\", \"phone_number\": \"+2341234567\", \"country\": \"NG\" } ``` See [USD Cash](https://docs.transferzero.com/docs/payout-details/#usdcash) documentation for the country list
|
|
17
|
+
class PayoutMethodDetailsUSDCash
|
|
18
|
+
attr_accessor :first_name
|
|
19
|
+
|
|
20
|
+
attr_accessor :last_name
|
|
21
|
+
|
|
22
|
+
attr_accessor :phone_number
|
|
23
|
+
|
|
24
|
+
attr_accessor :country
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'first_name' => :'first_name',
|
|
30
|
+
:'last_name' => :'last_name',
|
|
31
|
+
:'phone_number' => :'phone_number',
|
|
32
|
+
:'country' => :'country'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'first_name' => :'String',
|
|
40
|
+
:'last_name' => :'String',
|
|
41
|
+
:'phone_number' => :'String',
|
|
42
|
+
:'country' => :'PayoutMethodCountryEnum'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Initializes the object
|
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `TransferZero::PayoutMethodDetailsUSDCash` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `TransferZero::PayoutMethodDetailsUSDCash`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
|
+
end
|
|
58
|
+
h[k.to_sym] = v
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'first_name')
|
|
62
|
+
self.first_name = attributes[:'first_name']
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
if attributes.key?(:'last_name')
|
|
66
|
+
self.last_name = attributes[:'last_name']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'phone_number')
|
|
70
|
+
self.phone_number = attributes[:'phone_number']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'country')
|
|
74
|
+
self.country = attributes[:'country']
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
79
|
+
# @return Array for valid properties with the reasons
|
|
80
|
+
def list_invalid_properties
|
|
81
|
+
invalid_properties = Array.new
|
|
82
|
+
if @first_name.nil?
|
|
83
|
+
invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if @last_name.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if @phone_number.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @country.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
return false if @first_name.nil?
|
|
105
|
+
return false if @last_name.nil?
|
|
106
|
+
return false if @phone_number.nil?
|
|
107
|
+
return false if @country.nil?
|
|
108
|
+
true
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def ==(o)
|
|
114
|
+
return true if self.equal?(o)
|
|
115
|
+
self.class == o.class &&
|
|
116
|
+
first_name == o.first_name &&
|
|
117
|
+
last_name == o.last_name &&
|
|
118
|
+
phone_number == o.phone_number &&
|
|
119
|
+
country == o.country
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# @see the `==` method
|
|
123
|
+
# @param [Object] Object to be compared
|
|
124
|
+
def eql?(o)
|
|
125
|
+
self == o
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Calculates hash code according to all attributes.
|
|
129
|
+
# @return [Integer] Hash code
|
|
130
|
+
def hash
|
|
131
|
+
[first_name, last_name, phone_number, country].hash
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
require 'active_support/core_ext/hash'
|
|
135
|
+
require 'active_support/hash_with_indifferent_access.rb'
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
142
|
+
if type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
150
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
self
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Deserializes the data based on type
|
|
157
|
+
# @param string type Data type
|
|
158
|
+
# @param string value Value to be deserialized
|
|
159
|
+
# @return [Object] Deserialized data
|
|
160
|
+
def _deserialize(type, value)
|
|
161
|
+
case type.to_sym
|
|
162
|
+
when :DateTime
|
|
163
|
+
DateTime.parse(value)
|
|
164
|
+
when :Date
|
|
165
|
+
Date.parse(value)
|
|
166
|
+
when :String
|
|
167
|
+
value.to_s
|
|
168
|
+
when :Integer
|
|
169
|
+
value.to_i
|
|
170
|
+
when :Float
|
|
171
|
+
value.to_f
|
|
172
|
+
when :Boolean
|
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
174
|
+
true
|
|
175
|
+
else
|
|
176
|
+
false
|
|
177
|
+
end
|
|
178
|
+
when :Object
|
|
179
|
+
# generic object (usually a Hash), return directly
|
|
180
|
+
value
|
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
|
187
|
+
{}.tap do |hash|
|
|
188
|
+
value.each do |k, v|
|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
else # model
|
|
193
|
+
temp_model = TransferZero.const_get(type).new
|
|
194
|
+
temp_model.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
next if value.nil?
|
|
217
|
+
hash[param] = _to_hash(value)
|
|
218
|
+
end
|
|
219
|
+
::ActiveSupport::HashWithIndifferentAccess.new(hash)
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
def [](key)
|
|
223
|
+
to_hash[key]
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
def dig(*args)
|
|
227
|
+
to_hash.dig(*args)
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Outputs non-array value in the form of hash
|
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
+
# @param [Object] value Any valid value
|
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
|
234
|
+
def _to_hash(value)
|
|
235
|
+
if value.is_a?(Array)
|
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
|
237
|
+
elsif value.is_a?(Hash)
|
|
238
|
+
{}.tap do |hash|
|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
+
end
|
|
241
|
+
elsif value.respond_to? :to_hash
|
|
242
|
+
value.to_hash
|
|
243
|
+
else
|
|
244
|
+
value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
@@ -22,6 +22,8 @@ class PayoutMethodMobileProviderEnum
|
|
|
22
22
|
AIRTEL = "airtel".freeze
|
|
23
23
|
VODAFONE = "vodafone".freeze
|
|
24
24
|
MPESA = "mpesa".freeze
|
|
25
|
+
AFRICELL = "africell".freeze
|
|
26
|
+
TELECOM = "telecom".freeze
|
|
25
27
|
|
|
26
28
|
# Builds the enum from string
|
|
27
29
|
# @param [String] The enum value in the form of the string
|
data/lib/transferzero-sdk.rb
CHANGED
|
@@ -63,7 +63,6 @@ require 'transferzero-sdk/models/payout_method'
|
|
|
63
63
|
require 'transferzero-sdk/models/payout_method_bank_account_type_enum'
|
|
64
64
|
require 'transferzero-sdk/models/payout_method_cash_provider_enum'
|
|
65
65
|
require 'transferzero-sdk/models/payout_method_country_enum'
|
|
66
|
-
require 'transferzero-sdk/models/payout_method_country_enum_usd_bank'
|
|
67
66
|
require 'transferzero-sdk/models/payout_method_details'
|
|
68
67
|
require 'transferzero-sdk/models/payout_method_details_btc'
|
|
69
68
|
require 'transferzero-sdk/models/payout_method_details_balance'
|
|
@@ -77,6 +76,7 @@ require 'transferzero-sdk/models/payout_method_details_mad_cash'
|
|
|
77
76
|
require 'transferzero-sdk/models/payout_method_details_mobile'
|
|
78
77
|
require 'transferzero-sdk/models/payout_method_details_ngn_bank'
|
|
79
78
|
require 'transferzero-sdk/models/payout_method_details_usd_bank'
|
|
79
|
+
require 'transferzero-sdk/models/payout_method_details_usd_cash'
|
|
80
80
|
require 'transferzero-sdk/models/payout_method_details_xof_bank'
|
|
81
81
|
require 'transferzero-sdk/models/payout_method_details_xof_cash'
|
|
82
82
|
require 'transferzero-sdk/models/payout_method_details_xof_mobile'
|
|
@@ -0,0 +1,59 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for TransferZero::PayoutMethodDetailsUSDCash
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PayoutMethodDetailsUSDCash' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = TransferZero::PayoutMethodDetailsUSDCash.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PayoutMethodDetailsUSDCash' do
|
|
31
|
+
it 'should create an instance of PayoutMethodDetailsUSDCash' do
|
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsUSDCash)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "first_name"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "last_name"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "phone_number"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "country"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: transferzero-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.16.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TransferZero
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -62,22 +62,22 @@ dependencies:
|
|
|
62
62
|
name: rspec
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
|
-
- - "~>"
|
|
66
|
-
- !ruby/object:Gem::Version
|
|
67
|
-
version: '3.6'
|
|
68
65
|
- - ">="
|
|
69
66
|
- !ruby/object:Gem::Version
|
|
70
67
|
version: 3.6.0
|
|
68
|
+
- - "~>"
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '3.6'
|
|
71
71
|
type: :development
|
|
72
72
|
prerelease: false
|
|
73
73
|
version_requirements: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements:
|
|
75
|
-
- - "~>"
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
version: '3.6'
|
|
78
75
|
- - ">="
|
|
79
76
|
- !ruby/object:Gem::Version
|
|
80
77
|
version: 3.6.0
|
|
78
|
+
- - "~>"
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '3.6'
|
|
81
81
|
- !ruby/object:Gem::Dependency
|
|
82
82
|
name: vcr
|
|
83
83
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -263,7 +263,6 @@ files:
|
|
|
263
263
|
- docs/PayoutMethodBankAccountTypeEnum.md
|
|
264
264
|
- docs/PayoutMethodCashProviderEnum.md
|
|
265
265
|
- docs/PayoutMethodCountryEnum.md
|
|
266
|
-
- docs/PayoutMethodCountryEnumUSDBank.md
|
|
267
266
|
- docs/PayoutMethodDetails.md
|
|
268
267
|
- docs/PayoutMethodDetailsBTC.md
|
|
269
268
|
- docs/PayoutMethodDetailsBalance.md
|
|
@@ -277,6 +276,7 @@ files:
|
|
|
277
276
|
- docs/PayoutMethodDetailsMobile.md
|
|
278
277
|
- docs/PayoutMethodDetailsNGNBank.md
|
|
279
278
|
- docs/PayoutMethodDetailsUSDBank.md
|
|
279
|
+
- docs/PayoutMethodDetailsUSDCash.md
|
|
280
280
|
- docs/PayoutMethodDetailsXOFBank.md
|
|
281
281
|
- docs/PayoutMethodDetailsXOFCash.md
|
|
282
282
|
- docs/PayoutMethodDetailsXOFMobile.md
|
|
@@ -400,7 +400,6 @@ files:
|
|
|
400
400
|
- lib/transferzero-sdk/models/payout_method_bank_account_type_enum.rb
|
|
401
401
|
- lib/transferzero-sdk/models/payout_method_cash_provider_enum.rb
|
|
402
402
|
- lib/transferzero-sdk/models/payout_method_country_enum.rb
|
|
403
|
-
- lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb
|
|
404
403
|
- lib/transferzero-sdk/models/payout_method_details.rb
|
|
405
404
|
- lib/transferzero-sdk/models/payout_method_details_balance.rb
|
|
406
405
|
- lib/transferzero-sdk/models/payout_method_details_btc.rb
|
|
@@ -414,6 +413,7 @@ files:
|
|
|
414
413
|
- lib/transferzero-sdk/models/payout_method_details_mobile.rb
|
|
415
414
|
- lib/transferzero-sdk/models/payout_method_details_ngn_bank.rb
|
|
416
415
|
- lib/transferzero-sdk/models/payout_method_details_usd_bank.rb
|
|
416
|
+
- lib/transferzero-sdk/models/payout_method_details_usd_cash.rb
|
|
417
417
|
- lib/transferzero-sdk/models/payout_method_details_xof_bank.rb
|
|
418
418
|
- lib/transferzero-sdk/models/payout_method_details_xof_cash.rb
|
|
419
419
|
- lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb
|
|
@@ -527,7 +527,6 @@ files:
|
|
|
527
527
|
- spec/models/payout_method_bank_account_type_enum_spec.rb
|
|
528
528
|
- spec/models/payout_method_cash_provider_enum_spec.rb
|
|
529
529
|
- spec/models/payout_method_country_enum_spec.rb
|
|
530
|
-
- spec/models/payout_method_country_enum_usd_bank_spec.rb
|
|
531
530
|
- spec/models/payout_method_details_balance_spec.rb
|
|
532
531
|
- spec/models/payout_method_details_btc_spec.rb
|
|
533
532
|
- spec/models/payout_method_details_gbp_bank_spec.rb
|
|
@@ -541,6 +540,7 @@ files:
|
|
|
541
540
|
- spec/models/payout_method_details_ngn_bank_spec.rb
|
|
542
541
|
- spec/models/payout_method_details_spec.rb
|
|
543
542
|
- spec/models/payout_method_details_usd_bank_spec.rb
|
|
543
|
+
- spec/models/payout_method_details_usd_cash_spec.rb
|
|
544
544
|
- spec/models/payout_method_details_xof_bank_spec.rb
|
|
545
545
|
- spec/models/payout_method_details_xof_cash_spec.rb
|
|
546
546
|
- spec/models/payout_method_details_xof_mobile_spec.rb
|
|
@@ -601,7 +601,7 @@ homepage: https://github.com/transferzero/transferzero-sdk-ruby
|
|
|
601
601
|
licenses:
|
|
602
602
|
- MIT
|
|
603
603
|
metadata: {}
|
|
604
|
-
post_install_message:
|
|
604
|
+
post_install_message:
|
|
605
605
|
rdoc_options: []
|
|
606
606
|
require_paths:
|
|
607
607
|
- lib
|
|
@@ -616,8 +616,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
616
616
|
- !ruby/object:Gem::Version
|
|
617
617
|
version: '0'
|
|
618
618
|
requirements: []
|
|
619
|
-
rubygems_version: 3.
|
|
620
|
-
signing_key:
|
|
619
|
+
rubygems_version: 3.0.3
|
|
620
|
+
signing_key:
|
|
621
621
|
specification_version: 4
|
|
622
622
|
summary: TransferZero API Ruby Gem
|
|
623
623
|
test_files:
|
|
@@ -676,7 +676,6 @@ test_files:
|
|
|
676
676
|
- spec/models/payin_method_details_mobile_spec.rb
|
|
677
677
|
- spec/models/payout_method_details_mad_cash_spec.rb
|
|
678
678
|
- spec/models/account_validation_response_spec.rb
|
|
679
|
-
- spec/models/payout_method_country_enum_usd_bank_spec.rb
|
|
680
679
|
- spec/models/payout_method_details_btc_spec.rb
|
|
681
680
|
- spec/models/api_log_spec.rb
|
|
682
681
|
- spec/models/document_response_spec.rb
|
|
@@ -732,6 +731,7 @@ test_files:
|
|
|
732
731
|
- spec/models/payment_method_list_response_spec.rb
|
|
733
732
|
- spec/models/recipient_state_spec.rb
|
|
734
733
|
- spec/models/field_validation_spec.rb
|
|
734
|
+
- spec/models/payout_method_details_usd_cash_spec.rb
|
|
735
735
|
- spec/models/payout_method_list_response_spec.rb
|
|
736
736
|
- spec/models/error_status_spec.rb
|
|
737
737
|
- spec/models/payout_method_mobile_provider_enum_spec.rb
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# TransferZero::PayoutMethodCountryEnumUSDBank
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
|
|
8
|
-
## Code Sample
|
|
9
|
-
|
|
10
|
-
```ruby
|
|
11
|
-
require 'TransferZero'
|
|
12
|
-
|
|
13
|
-
instance = TransferZero::PayoutMethodCountryEnumUSDBank.new()
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
|
|
@@ -1,269 +0,0 @@
|
|
|
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
|
-
class PayoutMethodCountryEnumUSDBank
|
|
17
|
-
|
|
18
|
-
AF = "AF".freeze
|
|
19
|
-
AL = "AL".freeze
|
|
20
|
-
DZ = "DZ".freeze
|
|
21
|
-
AS = "AS".freeze
|
|
22
|
-
AD = "AD".freeze
|
|
23
|
-
AO = "AO".freeze
|
|
24
|
-
AI = "AI".freeze
|
|
25
|
-
AQ = "AQ".freeze
|
|
26
|
-
AG = "AG".freeze
|
|
27
|
-
AR = "AR".freeze
|
|
28
|
-
AM = "AM".freeze
|
|
29
|
-
AW = "AW".freeze
|
|
30
|
-
AU = "AU".freeze
|
|
31
|
-
AT = "AT".freeze
|
|
32
|
-
AZ = "AZ".freeze
|
|
33
|
-
BS = "BS".freeze
|
|
34
|
-
BH = "BH".freeze
|
|
35
|
-
BD = "BD".freeze
|
|
36
|
-
BB = "BB".freeze
|
|
37
|
-
BY = "BY".freeze
|
|
38
|
-
BE = "BE".freeze
|
|
39
|
-
BZ = "BZ".freeze
|
|
40
|
-
BJ = "BJ".freeze
|
|
41
|
-
BM = "BM".freeze
|
|
42
|
-
BT = "BT".freeze
|
|
43
|
-
BO = "BO".freeze
|
|
44
|
-
BA = "BA".freeze
|
|
45
|
-
BW = "BW".freeze
|
|
46
|
-
BV = "BV".freeze
|
|
47
|
-
BR = "BR".freeze
|
|
48
|
-
IO = "IO".freeze
|
|
49
|
-
BN = "BN".freeze
|
|
50
|
-
BG = "BG".freeze
|
|
51
|
-
BF = "BF".freeze
|
|
52
|
-
BI = "BI".freeze
|
|
53
|
-
KH = "KH".freeze
|
|
54
|
-
CM = "CM".freeze
|
|
55
|
-
CA = "CA".freeze
|
|
56
|
-
CV = "CV".freeze
|
|
57
|
-
KY = "KY".freeze
|
|
58
|
-
CF = "CF".freeze
|
|
59
|
-
TD = "TD".freeze
|
|
60
|
-
CL = "CL".freeze
|
|
61
|
-
CN = "CN".freeze
|
|
62
|
-
CX = "CX".freeze
|
|
63
|
-
CC = "CC".freeze
|
|
64
|
-
CO = "CO".freeze
|
|
65
|
-
KM = "KM".freeze
|
|
66
|
-
CG = "CG".freeze
|
|
67
|
-
CD = "CD".freeze
|
|
68
|
-
CK = "CK".freeze
|
|
69
|
-
CR = "CR".freeze
|
|
70
|
-
CI = "CI".freeze
|
|
71
|
-
HR = "HR".freeze
|
|
72
|
-
CU = "CU".freeze
|
|
73
|
-
CY = "CY".freeze
|
|
74
|
-
CZ = "CZ".freeze
|
|
75
|
-
DK = "DK".freeze
|
|
76
|
-
DJ = "DJ".freeze
|
|
77
|
-
DM = "DM".freeze
|
|
78
|
-
DO = "DO".freeze
|
|
79
|
-
TP = "TP".freeze
|
|
80
|
-
EC = "EC".freeze
|
|
81
|
-
EG = "EG".freeze
|
|
82
|
-
SV = "SV".freeze
|
|
83
|
-
GQ = "GQ".freeze
|
|
84
|
-
ER = "ER".freeze
|
|
85
|
-
EE = "EE".freeze
|
|
86
|
-
ET = "ET".freeze
|
|
87
|
-
FK = "FK".freeze
|
|
88
|
-
FO = "FO".freeze
|
|
89
|
-
FJ = "FJ".freeze
|
|
90
|
-
FI = "FI".freeze
|
|
91
|
-
FR = "FR".freeze
|
|
92
|
-
GF = "GF".freeze
|
|
93
|
-
PF = "PF".freeze
|
|
94
|
-
TF = "TF".freeze
|
|
95
|
-
GA = "GA".freeze
|
|
96
|
-
GM = "GM".freeze
|
|
97
|
-
GE = "GE".freeze
|
|
98
|
-
DE = "DE".freeze
|
|
99
|
-
GH = "GH".freeze
|
|
100
|
-
GI = "GI".freeze
|
|
101
|
-
GR = "GR".freeze
|
|
102
|
-
GL = "GL".freeze
|
|
103
|
-
GD = "GD".freeze
|
|
104
|
-
GP = "GP".freeze
|
|
105
|
-
GU = "GU".freeze
|
|
106
|
-
GT = "GT".freeze
|
|
107
|
-
GN = "GN".freeze
|
|
108
|
-
GW = "GW".freeze
|
|
109
|
-
GY = "GY".freeze
|
|
110
|
-
HT = "HT".freeze
|
|
111
|
-
HM = "HM".freeze
|
|
112
|
-
VA = "VA".freeze
|
|
113
|
-
HN = "HN".freeze
|
|
114
|
-
HK = "HK".freeze
|
|
115
|
-
HU = "HU".freeze
|
|
116
|
-
IS = "IS".freeze
|
|
117
|
-
IN = "IN".freeze
|
|
118
|
-
ID = "ID".freeze
|
|
119
|
-
IR = "IR".freeze
|
|
120
|
-
IQ = "IQ".freeze
|
|
121
|
-
IE = "IE".freeze
|
|
122
|
-
IL = "IL".freeze
|
|
123
|
-
IT = "IT".freeze
|
|
124
|
-
JM = "JM".freeze
|
|
125
|
-
JP = "JP".freeze
|
|
126
|
-
JO = "JO".freeze
|
|
127
|
-
KZ = "KZ".freeze
|
|
128
|
-
KE = "KE".freeze
|
|
129
|
-
KI = "KI".freeze
|
|
130
|
-
KP = "KP".freeze
|
|
131
|
-
KR = "KR".freeze
|
|
132
|
-
KV = "KV".freeze
|
|
133
|
-
KW = "KW".freeze
|
|
134
|
-
KG = "KG".freeze
|
|
135
|
-
LA = "LA".freeze
|
|
136
|
-
LV = "LV".freeze
|
|
137
|
-
LB = "LB".freeze
|
|
138
|
-
LS = "LS".freeze
|
|
139
|
-
LR = "LR".freeze
|
|
140
|
-
LY = "LY".freeze
|
|
141
|
-
LI = "LI".freeze
|
|
142
|
-
LT = "LT".freeze
|
|
143
|
-
LU = "LU".freeze
|
|
144
|
-
MO = "MO".freeze
|
|
145
|
-
MK = "MK".freeze
|
|
146
|
-
MG = "MG".freeze
|
|
147
|
-
MW = "MW".freeze
|
|
148
|
-
MY = "MY".freeze
|
|
149
|
-
MV = "MV".freeze
|
|
150
|
-
ML = "ML".freeze
|
|
151
|
-
MT = "MT".freeze
|
|
152
|
-
MH = "MH".freeze
|
|
153
|
-
MQ = "MQ".freeze
|
|
154
|
-
MR = "MR".freeze
|
|
155
|
-
MU = "MU".freeze
|
|
156
|
-
YT = "YT".freeze
|
|
157
|
-
MX = "MX".freeze
|
|
158
|
-
FM = "FM".freeze
|
|
159
|
-
MD = "MD".freeze
|
|
160
|
-
MC = "MC".freeze
|
|
161
|
-
MN = "MN".freeze
|
|
162
|
-
MS = "MS".freeze
|
|
163
|
-
ME = "ME".freeze
|
|
164
|
-
MA = "MA".freeze
|
|
165
|
-
MZ = "MZ".freeze
|
|
166
|
-
MM = "MM".freeze
|
|
167
|
-
NA = "NA".freeze
|
|
168
|
-
NR = "NR".freeze
|
|
169
|
-
NP = "NP".freeze
|
|
170
|
-
NL = "NL".freeze
|
|
171
|
-
AN = "AN".freeze
|
|
172
|
-
NC = "NC".freeze
|
|
173
|
-
NZ = "NZ".freeze
|
|
174
|
-
NI = "NI".freeze
|
|
175
|
-
NE = "NE".freeze
|
|
176
|
-
NG = "NG".freeze
|
|
177
|
-
NU = "NU".freeze
|
|
178
|
-
NF = "NF".freeze
|
|
179
|
-
MP = "MP".freeze
|
|
180
|
-
FALSE = "false".freeze
|
|
181
|
-
OM = "OM".freeze
|
|
182
|
-
PK = "PK".freeze
|
|
183
|
-
PW = "PW".freeze
|
|
184
|
-
PS = "PS".freeze
|
|
185
|
-
PA = "PA".freeze
|
|
186
|
-
PG = "PG".freeze
|
|
187
|
-
PY = "PY".freeze
|
|
188
|
-
PE = "PE".freeze
|
|
189
|
-
PH = "PH".freeze
|
|
190
|
-
PN = "PN".freeze
|
|
191
|
-
PL = "PL".freeze
|
|
192
|
-
PT = "PT".freeze
|
|
193
|
-
PR = "PR".freeze
|
|
194
|
-
QA = "QA".freeze
|
|
195
|
-
RE = "RE".freeze
|
|
196
|
-
RO = "RO".freeze
|
|
197
|
-
RU = "RU".freeze
|
|
198
|
-
RW = "RW".freeze
|
|
199
|
-
SH = "SH".freeze
|
|
200
|
-
KN = "KN".freeze
|
|
201
|
-
LC = "LC".freeze
|
|
202
|
-
PM = "PM".freeze
|
|
203
|
-
VC = "VC".freeze
|
|
204
|
-
WS = "WS".freeze
|
|
205
|
-
SM = "SM".freeze
|
|
206
|
-
ST = "ST".freeze
|
|
207
|
-
SA = "SA".freeze
|
|
208
|
-
SN = "SN".freeze
|
|
209
|
-
RS = "RS".freeze
|
|
210
|
-
SC = "SC".freeze
|
|
211
|
-
SL = "SL".freeze
|
|
212
|
-
SG = "SG".freeze
|
|
213
|
-
SK = "SK".freeze
|
|
214
|
-
SI = "SI".freeze
|
|
215
|
-
SB = "SB".freeze
|
|
216
|
-
SO = "SO".freeze
|
|
217
|
-
ZA = "ZA".freeze
|
|
218
|
-
GS = "GS".freeze
|
|
219
|
-
ES = "ES".freeze
|
|
220
|
-
LK = "LK".freeze
|
|
221
|
-
SD = "SD".freeze
|
|
222
|
-
SR = "SR".freeze
|
|
223
|
-
SJ = "SJ".freeze
|
|
224
|
-
SZ = "SZ".freeze
|
|
225
|
-
SE = "SE".freeze
|
|
226
|
-
CH = "CH".freeze
|
|
227
|
-
SY = "SY".freeze
|
|
228
|
-
TW = "TW".freeze
|
|
229
|
-
TJ = "TJ".freeze
|
|
230
|
-
TZ = "TZ".freeze
|
|
231
|
-
TH = "TH".freeze
|
|
232
|
-
TG = "TG".freeze
|
|
233
|
-
TK = "TK".freeze
|
|
234
|
-
TO = "TO".freeze
|
|
235
|
-
TT = "TT".freeze
|
|
236
|
-
TN = "TN".freeze
|
|
237
|
-
TR = "TR".freeze
|
|
238
|
-
TM = "TM".freeze
|
|
239
|
-
TC = "TC".freeze
|
|
240
|
-
TV = "TV".freeze
|
|
241
|
-
UG = "UG".freeze
|
|
242
|
-
UA = "UA".freeze
|
|
243
|
-
AE = "AE".freeze
|
|
244
|
-
GB = "GB".freeze
|
|
245
|
-
US = "US".freeze
|
|
246
|
-
UM = "UM".freeze
|
|
247
|
-
UY = "UY".freeze
|
|
248
|
-
UZ = "UZ".freeze
|
|
249
|
-
VU = "VU".freeze
|
|
250
|
-
VE = "VE".freeze
|
|
251
|
-
VN = "VN".freeze
|
|
252
|
-
VG = "VG".freeze
|
|
253
|
-
VI = "VI".freeze
|
|
254
|
-
WF = "WF".freeze
|
|
255
|
-
EH = "EH".freeze
|
|
256
|
-
YE = "YE".freeze
|
|
257
|
-
ZM = "ZM".freeze
|
|
258
|
-
|
|
259
|
-
# Builds the enum from string
|
|
260
|
-
# @param [String] The enum value in the form of the string
|
|
261
|
-
# @return [String] The enum value
|
|
262
|
-
def build_from_hash(value)
|
|
263
|
-
constantValues = PayoutMethodCountryEnumUSDBank.constants.select { |c| PayoutMethodCountryEnumUSDBank::const_get(c) == value }
|
|
264
|
-
raise "Invalid ENUM value #{value} for class #PayoutMethodCountryEnumUSDBank" if constantValues.empty? && !value.empty?
|
|
265
|
-
value
|
|
266
|
-
end
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
end
|
|
@@ -1,35 +0,0 @@
|
|
|
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 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
16
|
-
|
|
17
|
-
# Unit tests for TransferZero::PayoutMethodCountryEnumUSDBank
|
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
-
# Please update as you see appropriate
|
|
20
|
-
describe 'PayoutMethodCountryEnumUSDBank' do
|
|
21
|
-
before do
|
|
22
|
-
# run before each test
|
|
23
|
-
@instance = TransferZero::PayoutMethodCountryEnumUSDBank.new
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
after do
|
|
27
|
-
# run after each test
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe 'test an instance of PayoutMethodCountryEnumUSDBank' do
|
|
31
|
-
it 'should create an instance of PayoutMethodCountryEnumUSDBank' do
|
|
32
|
-
expect(@instance).to be_instance_of(TransferZero::PayoutMethodCountryEnumUSDBank)
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
end
|