transferzero-sdk 1.13.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +21 -22
- data/README.md +10 -4
- data/docs/PayoutMethod.md +1 -1
- data/docs/PayoutMethodCountryEnumUSDBank.md +16 -0
- data/docs/PayoutMethodDetails.md +22 -8
- data/docs/PayoutMethodDetailsKESBank.md +37 -0
- data/docs/PayoutMethodDetailsKESMobile.md +31 -0
- data/docs/PayoutMethodDetailsMADCash.md +3 -3
- data/docs/PayoutMethodDetailsUSDBank.md +27 -0
- 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/lib/transferzero-sdk.rb +6 -0
- data/lib/transferzero-sdk/api/transactions_api.rb +6 -0
- data/lib/transferzero-sdk/api_client.rb +2 -2
- data/lib/transferzero-sdk/models/account_validation_request.rb +4 -4
- data/lib/transferzero-sdk/models/payout_method.rb +1 -1
- data/lib/transferzero-sdk/models/payout_method_country_enum.rb +234 -8
- data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +269 -0
- data/lib/transferzero-sdk/models/payout_method_details.rb +92 -16
- data/lib/transferzero-sdk/models/payout_method_details_kes_bank.rb +343 -0
- data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +306 -0
- data/lib/transferzero-sdk/models/payout_method_details_mad_cash.rb +1 -16
- data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +278 -0
- data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +59 -5
- 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_usd_bank_spec.rb +35 -0
- data/spec/models/payout_method_details_kes_bank_spec.rb +101 -0
- data/spec/models/payout_method_details_kes_mobile_spec.rb +83 -0
- data/spec/models/payout_method_details_usd_bank_spec.rb +71 -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.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
- metadata +41 -12
data/lib/transferzero-sdk.rb
CHANGED
@@ -63,6 +63,7 @@ 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'
|
66
67
|
require 'transferzero-sdk/models/payout_method_details'
|
67
68
|
require 'transferzero-sdk/models/payout_method_details_btc'
|
68
69
|
require 'transferzero-sdk/models/payout_method_details_balance'
|
@@ -70,17 +71,22 @@ require 'transferzero-sdk/models/payout_method_details_gbp_bank'
|
|
70
71
|
require 'transferzero-sdk/models/payout_method_details_ghs_bank'
|
71
72
|
require 'transferzero-sdk/models/payout_method_details_ghs_cash'
|
72
73
|
require 'transferzero-sdk/models/payout_method_details_iban'
|
74
|
+
require 'transferzero-sdk/models/payout_method_details_kes_bank'
|
75
|
+
require 'transferzero-sdk/models/payout_method_details_kes_mobile'
|
73
76
|
require 'transferzero-sdk/models/payout_method_details_mad_cash'
|
74
77
|
require 'transferzero-sdk/models/payout_method_details_mobile'
|
75
78
|
require 'transferzero-sdk/models/payout_method_details_ngn_bank'
|
79
|
+
require 'transferzero-sdk/models/payout_method_details_usd_bank'
|
76
80
|
require 'transferzero-sdk/models/payout_method_details_xof_bank'
|
77
81
|
require 'transferzero-sdk/models/payout_method_details_xof_cash'
|
78
82
|
require 'transferzero-sdk/models/payout_method_details_xof_mobile'
|
79
83
|
require 'transferzero-sdk/models/payout_method_details_zar_bank'
|
80
84
|
require 'transferzero-sdk/models/payout_method_gender_enum'
|
81
85
|
require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
|
86
|
+
require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
|
82
87
|
require 'transferzero-sdk/models/payout_method_list_response'
|
83
88
|
require 'transferzero-sdk/models/payout_method_mobile_provider_enum'
|
89
|
+
require 'transferzero-sdk/models/payout_method_nature_of_business_enum'
|
84
90
|
require 'transferzero-sdk/models/payout_method_request'
|
85
91
|
require 'transferzero-sdk/models/payout_method_response'
|
86
92
|
require 'transferzero-sdk/models/payout_method_webhook'
|
@@ -204,6 +204,7 @@ module TransferZero
|
|
204
204
|
# @option opts [Integer] :per The number of results to load per page (defaults to 10)
|
205
205
|
# @option opts [String] :external_id Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
206
206
|
# @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
|
207
|
+
# @option opts [String] :transactions_type Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
|
207
208
|
# @return [TransactionListResponse]
|
208
209
|
def get_transactions(opts = {})
|
209
210
|
data, _status_code, _headers = get_transactions_with_http_info(opts)
|
@@ -217,11 +218,15 @@ module TransferZero
|
|
217
218
|
# @option opts [Integer] :per The number of results to load per page (defaults to 10)
|
218
219
|
# @option opts [String] :external_id Allows filtering results by `external_id`. Example: `/v1/senders?external_id=26ec8517-2f0d-48c0-b74f-0bccb9ab3a87`
|
219
220
|
# @option opts [String] :sender_id Allows filtering results by `sender_id`. Example: `/v1/transactions?sender_id=b41d3cb7-6c54-4245-85fc-8e30690eb0f7`
|
221
|
+
# @option opts [String] :transactions_type Allows filtering results by `transactions_type`. Example: `/v1/transactions?transactions_type=automated`
|
220
222
|
# @return [Array<(TransactionListResponse, Fixnum, Hash)>] TransactionListResponse data, response status code and response headers
|
221
223
|
def get_transactions_with_http_info(opts = {})
|
222
224
|
if @api_client.config.debugging
|
223
225
|
@api_client.config.logger.debug 'Calling API: TransactionsApi.get_transactions ...'
|
224
226
|
end
|
227
|
+
if @api_client.config.client_side_validation && opts[:'transactions_type'] && !['automated', 'manual'].include?(opts[:'transactions_type'])
|
228
|
+
fail ArgumentError, 'invalid value for "transactions_type", must be one of automated, manual'
|
229
|
+
end
|
225
230
|
# resource path
|
226
231
|
local_var_path = '/transactions'
|
227
232
|
|
@@ -231,6 +236,7 @@ module TransferZero
|
|
231
236
|
query_params[:'per'] = opts[:'per'] if !opts[:'per'].nil?
|
232
237
|
query_params[:'external_id'] = opts[:'external_id'] if !opts[:'external_id'].nil?
|
233
238
|
query_params[:'sender_id'] = opts[:'sender_id'] if !opts[:'sender_id'].nil?
|
239
|
+
query_params[:'transactions_type'] = opts[:'transactions_type'] if !opts[:'transactions_type'].nil?
|
234
240
|
|
235
241
|
# header parameters
|
236
242
|
header_params = {}
|
@@ -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.15.0"
|
39
39
|
@default_headers = {
|
40
40
|
'Content-Type' => 'application/json',
|
41
41
|
'User-Agent' => @user_agent
|
@@ -199,7 +199,7 @@ module TransferZero
|
|
199
199
|
nonce,
|
200
200
|
'POST',
|
201
201
|
url,
|
202
|
-
DIGEST.hexdigest(body.to_s
|
202
|
+
DIGEST.hexdigest(body.to_s)
|
203
203
|
])
|
204
204
|
|
205
205
|
header_signature == signature
|
@@ -149,10 +149,10 @@ class AccountValidationRequest
|
|
149
149
|
# @return true if the model is valid
|
150
150
|
def valid?
|
151
151
|
return false if @country.nil?
|
152
|
-
country_validator = EnumAttributeValidator.new('String', ["NG", "GH"])
|
152
|
+
country_validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
|
153
153
|
return false unless country_validator.valid?(@country)
|
154
154
|
return false if @currency.nil?
|
155
|
-
currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS"])
|
155
|
+
currency_validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
|
156
156
|
return false unless currency_validator.valid?(@currency)
|
157
157
|
return false if @method.nil?
|
158
158
|
method_validator = EnumAttributeValidator.new('String', ["bank", "mobile"])
|
@@ -163,7 +163,7 @@ class AccountValidationRequest
|
|
163
163
|
# Custom attribute writer method checking allowed values (enum).
|
164
164
|
# @param [Object] country Object to be assigned
|
165
165
|
def country=(country)
|
166
|
-
validator = EnumAttributeValidator.new('String', ["NG", "GH"])
|
166
|
+
validator = EnumAttributeValidator.new('String', ["NG", "GH", "SN"])
|
167
167
|
unless validator.valid?(country) || country.empty?
|
168
168
|
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
169
169
|
end
|
@@ -173,7 +173,7 @@ class AccountValidationRequest
|
|
173
173
|
# Custom attribute writer method checking allowed values (enum).
|
174
174
|
# @param [Object] currency Object to be assigned
|
175
175
|
def currency=(currency)
|
176
|
-
validator = EnumAttributeValidator.new('String', ["NGN", "GHS"])
|
176
|
+
validator = EnumAttributeValidator.new('String', ["NGN", "GHS", "XOF"])
|
177
177
|
unless validator.valid?(currency) || currency.empty?
|
178
178
|
fail ArgumentError, "invalid value for \"currency\", must be one of #{validator.allowable_values}."
|
179
179
|
end
|
@@ -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. 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 *** - `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
|
@@ -15,20 +15,246 @@ require 'date'
|
|
15
15
|
module TransferZero
|
16
16
|
class PayoutMethodCountryEnum
|
17
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
|
18
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
|
19
150
|
ML = "ML".freeze
|
20
|
-
|
21
|
-
|
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
|
22
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
|
23
230
|
TZ = "TZ".freeze
|
24
|
-
|
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
|
25
241
|
UG = "UG".freeze
|
26
|
-
|
27
|
-
|
28
|
-
EU = "EU".freeze
|
242
|
+
UA = "UA".freeze
|
243
|
+
AE = "AE".freeze
|
29
244
|
GB = "GB".freeze
|
30
|
-
|
31
|
-
|
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
|
32
258
|
|
33
259
|
# Builds the enum from string
|
34
260
|
# @param [String] The enum value in the form of the string
|
@@ -0,0 +1,269 @@
|
|
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
|