transferzero-sdk 1.11.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/AccountValidationRequest.md +2 -0
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodCountryEnum.md +16 -0
- data/docs/PayoutMethodDetails.md +16 -4
- data/docs/PayoutMethodDetailsGHSCash.md +21 -0
- data/docs/PayoutMethodDetailsMADCash.md +3 -3
- data/docs/PayoutMethodDetailsXOFCash.md +3 -1
- data/docs/PayoutMethodDetailsXOFMobile.md +3 -1
- data/docs/PayoutMethodDetailsZARBank.md +13 -1
- data/docs/PayoutMethodLegalEntityTypeEnum.md +16 -0
- data/docs/PayoutMethodNatureOfBusinessEnum.md +16 -0
- data/docs/TransactionsApi.md +2 -0
- data/example/client.rb +18 -55
- data/lib/transferzero-sdk.rb +4 -0
- data/lib/transferzero-sdk/api/transactions_api.rb +6 -0
- data/lib/transferzero-sdk/api_client.rb +1 -1
- data/lib/transferzero-sdk/models/account_validation_request.rb +10 -1
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_country_enum.rb +43 -0
- data/lib/transferzero-sdk/models/payout_method_details.rb +59 -19
- data/lib/transferzero-sdk/models/payout_method_details_ghs_cash.rb +236 -0
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +1 -16
- data/lib/transferzero-sdk/models/payout_method_details_xof_cash.rb +14 -5
- data/lib/transferzero-sdk/models/payout_method_details_xof_mobile.rb +14 -5
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +59 -5
- data/lib/transferzero-sdk/models/payout_method_identity_card_type_enum.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_legal_entity_type_enum.rb +37 -0
- data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +1 -0
- data/lib/transferzero-sdk/models/payout_method_nature_of_business_enum.rb +65 -0
- data/lib/transferzero-sdk/version.rb +1 -1
- data/spec/models/payout_method_country_enum_spec.rb +35 -0
- data/spec/models/payout_method_details_ghs_cash_spec.rb +53 -0
- data/spec/models/payout_method_legal_entity_type_enum_spec.rb +35 -0
- data/spec/models/payout_method_nature_of_business_enum_spec.rb +35 -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
- metadata +21 -2
@@ -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\", \"phone_number\": \"212537718685\" # Mandatory; International format preferred \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"212537718685\" # Mandatory; International format preferred \"sender_identity_card_type\" => \"O\", # Mandatory; Values: \"O\": Other, \"PP\": Passport, \"ID\": National ID \"sender_identity_card_id\" => 'AB12345678', # Mandatory \"sender_city_of_birth\" => \"London\", # Optional \"sender_country_of_birth\" => \"GB\", # Optional; ISO 2-letter format \"sender_gender\" => \"M\", # Optional; Values: \"M\": Male, \"F\": Female \"reason\" => \"Remittance payment\", # Optional; Default value is 'Remittance payment' \"identity_card_type\" => \"ID\", # Optional; Values: \"PP\": Passport, \"ID\": National ID \"identity_card_id\" => 'AB12345678' # Optional } ``` Please note when sending MAD::Cash payments you should subscribe to the recipient.pending webhook, as that will broadcast the payment reference ID the customer need to use to obtain the funds. Example webhook response excerpt - ```JSON { (...) \"state\":\"pending\", \"metadata\": { \"payment_reference\":\"9M5GJRJUBCY\" }, (...) } ``` The reference can also be provided optionally for MAD::Cash, but if you want to use this functionality please contact us for more details.
|
17
17
|
class PayoutMethodDetailsMADCash
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -155,18 +155,6 @@ class PayoutMethodDetailsMADCash
|
|
155
155
|
invalid_properties.push('invalid value for "sender_identity_card_id", sender_identity_card_id cannot be nil.')
|
156
156
|
end
|
157
157
|
|
158
|
-
if @sender_city_of_birth.nil?
|
159
|
-
invalid_properties.push('invalid value for "sender_city_of_birth", sender_city_of_birth cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @sender_country_of_birth.nil?
|
163
|
-
invalid_properties.push('invalid value for "sender_country_of_birth", sender_country_of_birth cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
|
-
if @sender_gender.nil?
|
167
|
-
invalid_properties.push('invalid value for "sender_gender", sender_gender cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
158
|
invalid_properties
|
171
159
|
end
|
172
160
|
|
@@ -178,9 +166,6 @@ class PayoutMethodDetailsMADCash
|
|
178
166
|
return false if @phone_number.nil?
|
179
167
|
return false if @sender_identity_card_type.nil?
|
180
168
|
return false if @sender_identity_card_id.nil?
|
181
|
-
return false if @sender_city_of_birth.nil?
|
182
|
-
return false if @sender_country_of_birth.nil?
|
183
|
-
return false if @sender_gender.nil?
|
184
169
|
true
|
185
170
|
end
|
186
171
|
|
@@ -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\", \"phone_number\": \"
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"221774044436\", // local or international format \"cash_provider\": \"wizall\" // Optional; Values: \"wizall\"; Default value is \"wizall\"; \"country\": \"SN\" // Optional; Values: \"CI\", \"ML\" or \"SN\"; Default value is \"SN\"; } ``` Please note all senders trying to create Wizall cash pickup requests must have `identity_type` and `identity_number` present. The fields above are generally considered optional for senders for other payment corridors. If you wish to use an existing sender who has some of these fields missing you can provide them alongside the `id` or `external_id` field in the sender details. For example - ```JSON { \"transaction\": { \"sender\": { \"external_id\": \"<id of sender>\", \"identity_type\": \"ID\", \"identity_number\": \"AB12345678\", (...) }, (...) } } ```
|
17
17
|
class PayoutMethodDetailsXOFCash
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -23,13 +23,16 @@ class PayoutMethodDetailsXOFCash
|
|
23
23
|
|
24
24
|
attr_accessor :cash_provider
|
25
25
|
|
26
|
+
attr_accessor :country
|
27
|
+
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'first_name' => :'first_name',
|
30
32
|
:'last_name' => :'last_name',
|
31
33
|
:'phone_number' => :'phone_number',
|
32
|
-
:'cash_provider' => :'cash_provider'
|
34
|
+
:'cash_provider' => :'cash_provider',
|
35
|
+
:'country' => :'country'
|
33
36
|
}
|
34
37
|
end
|
35
38
|
|
@@ -39,7 +42,8 @@ class PayoutMethodDetailsXOFCash
|
|
39
42
|
:'first_name' => :'String',
|
40
43
|
:'last_name' => :'String',
|
41
44
|
:'phone_number' => :'String',
|
42
|
-
:'cash_provider' => :'PayoutMethodCashProviderEnum'
|
45
|
+
:'cash_provider' => :'PayoutMethodCashProviderEnum',
|
46
|
+
:'country' => :'PayoutMethodCountryEnum'
|
43
47
|
}
|
44
48
|
end
|
45
49
|
|
@@ -73,6 +77,10 @@ class PayoutMethodDetailsXOFCash
|
|
73
77
|
if attributes.key?(:'cash_provider')
|
74
78
|
self.cash_provider = attributes[:'cash_provider']
|
75
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'country')
|
82
|
+
self.country = attributes[:'country']
|
83
|
+
end
|
76
84
|
end
|
77
85
|
|
78
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -111,7 +119,8 @@ class PayoutMethodDetailsXOFCash
|
|
111
119
|
first_name == o.first_name &&
|
112
120
|
last_name == o.last_name &&
|
113
121
|
phone_number == o.phone_number &&
|
114
|
-
cash_provider == o.cash_provider
|
122
|
+
cash_provider == o.cash_provider &&
|
123
|
+
country == o.country
|
115
124
|
end
|
116
125
|
|
117
126
|
# @see the `==` method
|
@@ -123,7 +132,7 @@ class PayoutMethodDetailsXOFCash
|
|
123
132
|
# Calculates hash code according to all attributes.
|
124
133
|
# @return [Integer] Hash code
|
125
134
|
def hash
|
126
|
-
[first_name, last_name, phone_number, cash_provider].hash
|
135
|
+
[first_name, last_name, phone_number, cash_provider, country].hash
|
127
136
|
end
|
128
137
|
|
129
138
|
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\", \"phone_number\": \"774044436\" # local or international Senegalese format \"mobile_provider\": \"orange\", # \"orange\" or \"tigo\" } ```
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"phone_number\": \"774044436\", # local or international Senegalese or Ivory Coast format \"mobile_provider\": \"orange\", # \"orange\" or \"tigo\" for Senegal; \"orange\", \"mtn\" or \"moov\" for Ivory Coast \"country\" # Optional; Values: \"SN\" for Senegal or \"CI\" for Ivory Coast; Default value is \"SN\" } ```
|
17
17
|
class PayoutMethodDetailsXOFMobile
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -23,13 +23,16 @@ class PayoutMethodDetailsXOFMobile
|
|
23
23
|
|
24
24
|
attr_accessor :mobile_provider
|
25
25
|
|
26
|
+
attr_accessor :country
|
27
|
+
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'first_name' => :'first_name',
|
30
32
|
:'last_name' => :'last_name',
|
31
33
|
:'phone_number' => :'phone_number',
|
32
|
-
:'mobile_provider' => :'mobile_provider'
|
34
|
+
:'mobile_provider' => :'mobile_provider',
|
35
|
+
:'country' => :'country'
|
33
36
|
}
|
34
37
|
end
|
35
38
|
|
@@ -39,7 +42,8 @@ class PayoutMethodDetailsXOFMobile
|
|
39
42
|
:'first_name' => :'String',
|
40
43
|
:'last_name' => :'String',
|
41
44
|
:'phone_number' => :'String',
|
42
|
-
:'mobile_provider' => :'PayoutMethodMobileProviderEnum'
|
45
|
+
:'mobile_provider' => :'PayoutMethodMobileProviderEnum',
|
46
|
+
:'country' => :'PayoutMethodCountryEnum'
|
43
47
|
}
|
44
48
|
end
|
45
49
|
|
@@ -73,6 +77,10 @@ class PayoutMethodDetailsXOFMobile
|
|
73
77
|
if attributes.key?(:'mobile_provider')
|
74
78
|
self.mobile_provider = attributes[:'mobile_provider']
|
75
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:'country')
|
82
|
+
self.country = attributes[:'country']
|
83
|
+
end
|
76
84
|
end
|
77
85
|
|
78
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,7 +124,8 @@ class PayoutMethodDetailsXOFMobile
|
|
116
124
|
first_name == o.first_name &&
|
117
125
|
last_name == o.last_name &&
|
118
126
|
phone_number == o.phone_number &&
|
119
|
-
mobile_provider == o.mobile_provider
|
127
|
+
mobile_provider == o.mobile_provider &&
|
128
|
+
country == o.country
|
120
129
|
end
|
121
130
|
|
122
131
|
# @see the `==` method
|
@@ -128,7 +137,7 @@ class PayoutMethodDetailsXOFMobile
|
|
128
137
|
# Calculates hash code according to all attributes.
|
129
138
|
# @return [Integer] Hash code
|
130
139
|
def hash
|
131
|
-
[first_name, last_name, phone_number, mobile_provider].hash
|
140
|
+
[first_name, last_name, phone_number, mobile_provider, country].hash
|
132
141
|
end
|
133
142
|
|
134
143
|
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\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason_code\": \"185\" } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason_code lists
|
16
|
+
# ```JSON \"details\": { \"first_name\": \"First\", // Mandatory for personal payouts; \"last_name\": \"Last\", // Mandatory for personal payouts; \"name\" \"First Ltd\", // Mandatory for business payouts; \"contact_first_name\" \"Business\", // Mandatory for business payouts; \"contact_last_name\" \"Contact\", // Mandatory for business payouts; \"street\": \"Main Street\", \"postal_code\": \"AB0001\", \"city\": \"Cape Town\", \"email\": \"recipient@email.com\", \"bank_code\": \"334810\", \"bank_account\": \"12345678\", \"phone_number\": \"+27119785313\", \"transfer_reason_code\": \"185\", \"legal_entity_type\": \"sole_proprietorship\", // Optional; Default value is \"person\"; Mandatory for business payouts; \"nature_of_business\": \"Mining\", // Optional for business payouts; \"registration_number\": \"17364BGC\" // Optional for business payouts; } ``` See [ZAR Bank](https://docs.transferzero.com/docs/payout-details/#zarbank) documentation for the bank_code and transfer_reason_code lists
|
17
17
|
class PayoutMethodDetailsZARBank
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
@@ -35,6 +35,18 @@ class PayoutMethodDetailsZARBank
|
|
35
35
|
|
36
36
|
attr_accessor :transfer_reason_code
|
37
37
|
|
38
|
+
attr_accessor :name
|
39
|
+
|
40
|
+
attr_accessor :contact_first_name
|
41
|
+
|
42
|
+
attr_accessor :contact_last_name
|
43
|
+
|
44
|
+
attr_accessor :registration_number
|
45
|
+
|
46
|
+
attr_accessor :nature_of_business
|
47
|
+
|
48
|
+
attr_accessor :legal_entity_type
|
49
|
+
|
38
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
51
|
def self.attribute_map
|
40
52
|
{
|
@@ -47,7 +59,13 @@ class PayoutMethodDetailsZARBank
|
|
47
59
|
:'bank_code' => :'bank_code',
|
48
60
|
:'bank_account' => :'bank_account',
|
49
61
|
:'phone_number' => :'phone_number',
|
50
|
-
:'transfer_reason_code' => :'transfer_reason_code'
|
62
|
+
:'transfer_reason_code' => :'transfer_reason_code',
|
63
|
+
:'name' => :'name',
|
64
|
+
:'contact_first_name' => :'contact_first_name',
|
65
|
+
:'contact_last_name' => :'contact_last_name',
|
66
|
+
:'registration_number' => :'registration_number',
|
67
|
+
:'nature_of_business' => :'nature_of_business',
|
68
|
+
:'legal_entity_type' => :'legal_entity_type'
|
51
69
|
}
|
52
70
|
end
|
53
71
|
|
@@ -63,7 +81,13 @@ class PayoutMethodDetailsZARBank
|
|
63
81
|
:'bank_code' => :'String',
|
64
82
|
:'bank_account' => :'String',
|
65
83
|
:'phone_number' => :'String',
|
66
|
-
:'transfer_reason_code' => :'String'
|
84
|
+
:'transfer_reason_code' => :'String',
|
85
|
+
:'name' => :'String',
|
86
|
+
:'contact_first_name' => :'String',
|
87
|
+
:'contact_last_name' => :'String',
|
88
|
+
:'registration_number' => :'String',
|
89
|
+
:'nature_of_business' => :'PayoutMethodNatureOfBusinessEnum',
|
90
|
+
:'legal_entity_type' => :'PayoutMethodLegalEntityTypeEnum'
|
67
91
|
}
|
68
92
|
end
|
69
93
|
|
@@ -121,6 +145,30 @@ class PayoutMethodDetailsZARBank
|
|
121
145
|
if attributes.key?(:'transfer_reason_code')
|
122
146
|
self.transfer_reason_code = attributes[:'transfer_reason_code']
|
123
147
|
end
|
148
|
+
|
149
|
+
if attributes.key?(:'name')
|
150
|
+
self.name = attributes[:'name']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.key?(:'contact_first_name')
|
154
|
+
self.contact_first_name = attributes[:'contact_first_name']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'contact_last_name')
|
158
|
+
self.contact_last_name = attributes[:'contact_last_name']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'registration_number')
|
162
|
+
self.registration_number = attributes[:'registration_number']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'nature_of_business')
|
166
|
+
self.nature_of_business = attributes[:'nature_of_business']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'legal_entity_type')
|
170
|
+
self.legal_entity_type = attributes[:'legal_entity_type']
|
171
|
+
end
|
124
172
|
end
|
125
173
|
|
126
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -190,7 +238,13 @@ class PayoutMethodDetailsZARBank
|
|
190
238
|
bank_code == o.bank_code &&
|
191
239
|
bank_account == o.bank_account &&
|
192
240
|
phone_number == o.phone_number &&
|
193
|
-
transfer_reason_code == o.transfer_reason_code
|
241
|
+
transfer_reason_code == o.transfer_reason_code &&
|
242
|
+
name == o.name &&
|
243
|
+
contact_first_name == o.contact_first_name &&
|
244
|
+
contact_last_name == o.contact_last_name &&
|
245
|
+
registration_number == o.registration_number &&
|
246
|
+
nature_of_business == o.nature_of_business &&
|
247
|
+
legal_entity_type == o.legal_entity_type
|
194
248
|
end
|
195
249
|
|
196
250
|
# @see the `==` method
|
@@ -202,7 +256,7 @@ class PayoutMethodDetailsZARBank
|
|
202
256
|
# Calculates hash code according to all attributes.
|
203
257
|
# @return [Integer] Hash code
|
204
258
|
def hash
|
205
|
-
[first_name, last_name, street, postal_code, city, email, bank_code, bank_account, phone_number, transfer_reason_code].hash
|
259
|
+
[first_name, last_name, street, postal_code, city, email, bank_code, bank_account, phone_number, transfer_reason_code, name, contact_first_name, contact_last_name, registration_number, nature_of_business, legal_entity_type].hash
|
206
260
|
end
|
207
261
|
|
208
262
|
require 'active_support/core_ext/hash'
|
@@ -0,0 +1,37 @@
|
|
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 PayoutMethodLegalEntityTypeEnum
|
17
|
+
|
18
|
+
PERSON = "person".freeze
|
19
|
+
SOLE_PROPRIETORSHIP = "sole_proprietorship".freeze
|
20
|
+
PRIVATELY_OWNED_COMPANY = "privately_owned_company".freeze
|
21
|
+
PUBLICLY_OWNED_COMPANY = "publicly_owned_company".freeze
|
22
|
+
GOVERNMENT_OWNED_ENTITY = "government_owned_entity".freeze
|
23
|
+
PARTNERSHIP = "partnership".freeze
|
24
|
+
GO = "go".freeze
|
25
|
+
FINANCIAL_INSTITUTION = "financial_institution".freeze
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
constantValues = PayoutMethodLegalEntityTypeEnum.constants.select { |c| PayoutMethodLegalEntityTypeEnum::const_get(c) == value }
|
32
|
+
raise "Invalid ENUM value #{value} for class #PayoutMethodLegalEntityTypeEnum" if constantValues.empty? && !value.empty?
|
33
|
+
value
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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 PayoutMethodNatureOfBusinessEnum
|
17
|
+
|
18
|
+
PERSONAL = "personal".freeze
|
19
|
+
AGRICULTURE_AND_HUNTING = "agriculture_and_hunting".freeze
|
20
|
+
FORESTRY = "forestry".freeze
|
21
|
+
FISHING = "fishing".freeze
|
22
|
+
AGRICULTURAL_BY_PRODUCTS = "agricultural_by_products".freeze
|
23
|
+
COAL_MINING = "coal_mining".freeze
|
24
|
+
OIL_MINING = "oil_mining".freeze
|
25
|
+
IRON_ORE_MINING = "iron_ore_mining".freeze
|
26
|
+
OTHER_METAL_AND_DIAMOND_MINING = "other_metal_and_diamond_mining".freeze
|
27
|
+
OTHER_MINERAL_MINING = "other_mineral_mining".freeze
|
28
|
+
MANUFACTURING_OF_FOOD_DRINK_TOBACCO = "manufacturing_of_food_drink_tobacco".freeze
|
29
|
+
MANUFACTURING_OF_TEXTILES_LEATHER_FUR_FURNITURE = "manufacturing_of_textiles_leather_fur_furniture".freeze
|
30
|
+
MANUFACTURE_OF_WOODEN_PRODUCTS_FURNITURE = "manufacture_of_wooden_products_furniture".freeze
|
31
|
+
MANUFACTURE_OF_PAPER_PULP_ALLIED_PRODUCTS = "manufacture_of_paper_pulp_allied_products".freeze
|
32
|
+
MANUFACTURE_OF_CHEMICALS_MEDICAL_PETROLEUM_RUBBER_PLASTIC_PRODUCTS = "manufacture_of_chemicals_medical_petroleum_rubber_plastic_products".freeze
|
33
|
+
MANUFACTURE_OF_POTTERY_CHINA_GLASS_STONE = "manufacture_of_pottery_china_glass_stone".freeze
|
34
|
+
MANUFACTURE_OF_IRON_STEEL_NON_FERROUS_METALS_BASIC_INDUSTRIES = "manufacture_of_iron_steel_non_ferrous_metals_basic_industries".freeze
|
35
|
+
MANUFACTURE_OF_METAL_PRODUCTS_ELECTRICAL_AND_SCIENTIFIC_ENGINEERING = "manufacture_of_metal_products_electrical_and_scientific_engineering".freeze
|
36
|
+
MANUFACTURE_OF_JEWELRY_MUSICAL_INSTRUMENTS_TOYS = "manufacture_of_jewelry_musical_instruments_toys".freeze
|
37
|
+
ELECTRICITY_GAS_AND_WATER = "electricity_gas_and_water".freeze
|
38
|
+
CONSTRUCTION = "construction".freeze
|
39
|
+
WHOLESALE_TRADE = "wholesale_trade".freeze
|
40
|
+
RETAIL_TRADE = "retail_trade".freeze
|
41
|
+
CATERING_INCL_HOTELS = "catering_incl_hotels".freeze
|
42
|
+
TRANSPORT_STORAGE = "transport_storage".freeze
|
43
|
+
COMMUNICATIONS = "communications".freeze
|
44
|
+
FINANCE_AND_HOLDING_COMPANIES = "finance_and_holding_companies".freeze
|
45
|
+
INSURANCE = "insurance".freeze
|
46
|
+
BUSINESS_SERVICES = "business_services".freeze
|
47
|
+
REAL_ESTATE_DEVELOPMENT_INVESTMENT = "real_estate_development_investment".freeze
|
48
|
+
CENTRAL_STATE_GOVERNMENTS = "central_state_governments".freeze
|
49
|
+
COMMUNITY_SERVICES_DEFENCE_POLICE_PRISONS_ETC = "community_services_defence_police_prisons_etc".freeze
|
50
|
+
SOCIAL_SERVICES_EDUCATION_HEALTH_CARE = "social_services_education_health_care".freeze
|
51
|
+
PERSONAL_SERVICES_LEISURE_SERVICES = "personal_services_leisure_services".freeze
|
52
|
+
PERSONAL_SERVICES_DOMESTIC_LAUNDRY_REPAIRS = "personal_services_domestic_laundry_repairs".freeze
|
53
|
+
PERSONAL_SERVICES_EMBASSIES_INTERNATIONAL_ORGANISATIONS = "personal_services_embassies_international_organisations".freeze
|
54
|
+
|
55
|
+
# Builds the enum from string
|
56
|
+
# @param [String] The enum value in the form of the string
|
57
|
+
# @return [String] The enum value
|
58
|
+
def build_from_hash(value)
|
59
|
+
constantValues = PayoutMethodNatureOfBusinessEnum.constants.select { |c| PayoutMethodNatureOfBusinessEnum::const_get(c) == value }
|
60
|
+
raise "Invalid ENUM value #{value} for class #PayoutMethodNatureOfBusinessEnum" if constantValues.empty? && !value.empty?
|
61
|
+
value
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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::PayoutMethodCountryEnum
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'PayoutMethodCountryEnum' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TransferZero::PayoutMethodCountryEnum.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of PayoutMethodCountryEnum' do
|
31
|
+
it 'should create an instance of PayoutMethodCountryEnum' do
|
32
|
+
expect(@instance).to be_instance_of(TransferZero::PayoutMethodCountryEnum)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|