transferzero-sdk 1.14.2 → 1.16.1

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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +89 -0
  3. data/README.md +7 -5
  4. data/docs/AccountValidationRequest.md +2 -0
  5. data/docs/PayoutMethod.md +1 -1
  6. data/docs/PayoutMethodDetails.md +10 -6
  7. data/docs/PayoutMethodDetailsKESBank.md +37 -0
  8. data/docs/PayoutMethodDetailsKESMobile.md +31 -0
  9. data/docs/PayoutMethodDetailsUSDBank.md +1 -1
  10. data/docs/PayoutMethodDetailsUSDCash.md +23 -0
  11. data/docs/PayoutMethodDetailsXOFBank.md +5 -3
  12. data/docs/Recipient.md +2 -0
  13. data/lib/transferzero-sdk/api_client.rb +1 -1
  14. data/lib/transferzero-sdk/models/account_validation_request.rb +13 -3
  15. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  16. data/lib/transferzero-sdk/models/payout_method_details.rb +46 -10
  17. data/lib/transferzero-sdk/models/payout_method_details_kes_bank.rb +343 -0
  18. data/lib/transferzero-sdk/models/payout_method_details_kes_mobile.rb +306 -0
  19. data/lib/transferzero-sdk/models/payout_method_details_usd_bank.rb +2 -2
  20. data/lib/transferzero-sdk/models/payout_method_details_usd_cash.rb +250 -0
  21. data/lib/transferzero-sdk/models/payout_method_details_xof_bank.rb +14 -15
  22. data/lib/transferzero-sdk/models/payout_method_details_zar_bank.rb +1 -1
  23. data/lib/transferzero-sdk/models/payout_method_mobile_provider_enum.rb +3 -0
  24. data/lib/transferzero-sdk/models/recipient.rb +45 -1
  25. data/lib/transferzero-sdk/version.rb +1 -1
  26. data/lib/transferzero-sdk.rb +3 -1
  27. data/spec/models/payout_method_details_kes_bank_spec.rb +101 -0
  28. data/spec/models/payout_method_details_kes_mobile_spec.rb +83 -0
  29. data/spec/models/payout_method_details_usd_cash_spec.rb +59 -0
  30. metadata +25 -16
  31. data/docs/PayoutMethodCountryEnumUSDBank.md +0 -16
  32. data/lib/transferzero-sdk/models/payout_method_country_enum_usd_bank.rb +0 -269
  33. data/spec/models/payout_method_country_enum_usd_bank_spec.rb +0 -35
@@ -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
@@ -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\", \"iban\": \"SN08SN0000000000000000000000\", \"bank_name\": \"BRM\", \"bank_country\": \"SN\" # ISO country code for Senegal } ```
16
+ # ```JSON \"details\": { \"first_name\": \"First\", \"last_name\": \"Last\", \"iban\": \"BJ0610100100144390000769\", # BBAN format \"bank_name\": \"Bank Of Africa Bénin\", \"bank_country\": \"BJ\", # ISO country code for Benin \"bank_code\": \"BJ061\" } ``` See [XOF Bank](https://docs.transferzero.com/docs/payout-details/#xofbank) documentation for the bank_code list
17
17
  class PayoutMethodDetailsXOFBank
18
18
  attr_accessor :first_name
19
19
 
@@ -25,6 +25,8 @@ class PayoutMethodDetailsXOFBank
25
25
 
26
26
  attr_accessor :bank_country
27
27
 
28
+ attr_accessor :bank_code
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -32,7 +34,8 @@ class PayoutMethodDetailsXOFBank
32
34
  :'last_name' => :'last_name',
33
35
  :'iban' => :'iban',
34
36
  :'bank_name' => :'bank_name',
35
- :'bank_country' => :'bank_country'
37
+ :'bank_country' => :'bank_country',
38
+ :'bank_code' => :'bank_code'
36
39
  }
37
40
  end
38
41
 
@@ -43,7 +46,8 @@ class PayoutMethodDetailsXOFBank
43
46
  :'last_name' => :'String',
44
47
  :'iban' => :'String',
45
48
  :'bank_name' => :'String',
46
- :'bank_country' => :'String'
49
+ :'bank_country' => :'String',
50
+ :'bank_code' => :'String'
47
51
  }
48
52
  end
49
53
 
@@ -81,6 +85,10 @@ class PayoutMethodDetailsXOFBank
81
85
  if attributes.key?(:'bank_country')
82
86
  self.bank_country = attributes[:'bank_country']
83
87
  end
88
+
89
+ if attributes.key?(:'bank_code')
90
+ self.bank_code = attributes[:'bank_code']
91
+ end
84
92
  end
85
93
 
86
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,14 +107,6 @@ class PayoutMethodDetailsXOFBank
99
107
  invalid_properties.push('invalid value for "iban", iban cannot be nil.')
100
108
  end
101
109
 
102
- if @bank_name.nil?
103
- invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
104
- end
105
-
106
- if @bank_country.nil?
107
- invalid_properties.push('invalid value for "bank_country", bank_country cannot be nil.')
108
- end
109
-
110
110
  invalid_properties
111
111
  end
112
112
 
@@ -116,8 +116,6 @@ class PayoutMethodDetailsXOFBank
116
116
  return false if @first_name.nil?
117
117
  return false if @last_name.nil?
118
118
  return false if @iban.nil?
119
- return false if @bank_name.nil?
120
- return false if @bank_country.nil?
121
119
  true
122
120
  end
123
121
 
@@ -130,7 +128,8 @@ class PayoutMethodDetailsXOFBank
130
128
  last_name == o.last_name &&
131
129
  iban == o.iban &&
132
130
  bank_name == o.bank_name &&
133
- bank_country == o.bank_country
131
+ bank_country == o.bank_country &&
132
+ bank_code == o.bank_code
134
133
  end
135
134
 
136
135
  # @see the `==` method
@@ -142,7 +141,7 @@ class PayoutMethodDetailsXOFBank
142
141
  # Calculates hash code according to all attributes.
143
142
  # @return [Integer] Hash code
144
143
  def hash
145
- [first_name, last_name, iban, bank_name, bank_country].hash
144
+ [first_name, last_name, iban, bank_name, bank_country, bank_code].hash
146
145
  end
147
146
 
148
147
  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\", // 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
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_name\" 'Bank Zero', // Optional \"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
 
@@ -21,6 +21,9 @@ class PayoutMethodMobileProviderEnum
21
21
  MTN = "mtn".freeze
22
22
  AIRTEL = "airtel".freeze
23
23
  VODAFONE = "vodafone".freeze
24
+ MPESA = "mpesa".freeze
25
+ AFRICELL = "africell".freeze
26
+ TELECOM = "telecom".freeze
24
27
 
25
28
  # Builds the enum from string
26
29
  # @param [String] The enum value in the form of the string
@@ -76,9 +76,34 @@ class Recipient
76
76
 
77
77
  attr_accessor :id
78
78
 
79
+ # Type of recipient to create - either person or business (defaults to person)
80
+ attr_accessor :type
81
+
79
82
  # The fields that have some problems and don't pass validation
80
83
  attr_accessor :errors
81
84
 
85
+ class EnumAttributeValidator
86
+ attr_reader :datatype
87
+ attr_reader :allowable_values
88
+
89
+ def initialize(datatype, allowable_values)
90
+ @allowable_values = allowable_values.map do |value|
91
+ case datatype.to_s
92
+ when /Integer/i
93
+ value.to_i
94
+ when /Float/i
95
+ value.to_f
96
+ else
97
+ value
98
+ end
99
+ end
100
+ end
101
+
102
+ def valid?(value)
103
+ !value || allowable_values.include?(value)
104
+ end
105
+ end
106
+
82
107
  # Attribute mapping from ruby-style variable name to JSON key.
83
108
  def self.attribute_map
84
109
  {
@@ -104,6 +129,7 @@ class Recipient
104
129
  :'output_amount' => :'output_amount',
105
130
  :'output_currency' => :'output_currency',
106
131
  :'id' => :'id',
132
+ :'type' => :'type',
107
133
  :'errors' => :'errors'
108
134
  }
109
135
  end
@@ -133,6 +159,7 @@ class Recipient
133
159
  :'output_amount' => :'Float',
134
160
  :'output_currency' => :'String',
135
161
  :'id' => :'String',
162
+ :'type' => :'String',
136
163
  :'errors' => :'Hash<String, Array<ValidationErrorDescription>>'
137
164
  }
138
165
  end
@@ -240,6 +267,10 @@ class Recipient
240
267
  self.id = attributes[:'id']
241
268
  end
242
269
 
270
+ if attributes.key?(:'type')
271
+ self.type = attributes[:'type']
272
+ end
273
+
243
274
  if attributes.key?(:'errors')
244
275
  if (value = attributes[:'errors']).is_a?(Hash)
245
276
  self.errors = value
@@ -272,9 +303,21 @@ class Recipient
272
303
  return false if @requested_amount.nil?
273
304
  return false if @requested_currency.nil?
274
305
  return false if @payout_method.nil?
306
+ type_validator = EnumAttributeValidator.new('String', ["person", "business"])
307
+ return false unless type_validator.valid?(@type)
275
308
  true
276
309
  end
277
310
 
311
+ # Custom attribute writer method checking allowed values (enum).
312
+ # @param [Object] type Object to be assigned
313
+ def type=(type)
314
+ validator = EnumAttributeValidator.new('String', ["person", "business"])
315
+ unless validator.valid?(type) || type.empty?
316
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
317
+ end
318
+ @type = type
319
+ end
320
+
278
321
  # Checks equality by comparing each attribute.
279
322
  # @param [Object] Object to be compared
280
323
  def ==(o)
@@ -302,6 +345,7 @@ class Recipient
302
345
  output_amount == o.output_amount &&
303
346
  output_currency == o.output_currency &&
304
347
  id == o.id &&
348
+ type == o.type &&
305
349
  errors == o.errors
306
350
  end
307
351
 
@@ -314,7 +358,7 @@ class Recipient
314
358
  # Calculates hash code according to all attributes.
315
359
  # @return [Integer] Hash code
316
360
  def hash
317
- [requested_amount, requested_currency, payout_method, metadata, created_at, editable, retriable, input_usd_amount, may_cancel, state_reason, state_reason_details, state, transaction_id, transaction_external_id, transaction_state, exchange_rate, fee_fractional, input_amount, input_currency, output_amount, output_currency, id, errors].hash
361
+ [requested_amount, requested_currency, payout_method, metadata, created_at, editable, retriable, input_usd_amount, may_cancel, state_reason, state_reason_details, state, transaction_id, transaction_external_id, transaction_state, exchange_rate, fee_fractional, input_amount, input_currency, output_amount, output_currency, id, type, errors].hash
318
362
  end
319
363
 
320
364
  require 'active_support/core_ext/hash'
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.0.0-beta3
11
11
  =end
12
12
 
13
13
  module TransferZero
14
- VERSION = '1.14.2'
14
+ VERSION = '1.16.1'
15
15
  end
@@ -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'
@@ -71,10 +70,13 @@ require 'transferzero-sdk/models/payout_method_details_gbp_bank'
71
70
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
72
71
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
73
72
  require 'transferzero-sdk/models/payout_method_details_iban'
73
+ require 'transferzero-sdk/models/payout_method_details_kes_bank'
74
+ require 'transferzero-sdk/models/payout_method_details_kes_mobile'
74
75
  require 'transferzero-sdk/models/payout_method_details_mad_cash'
75
76
  require 'transferzero-sdk/models/payout_method_details_mobile'
76
77
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
77
78
  require 'transferzero-sdk/models/payout_method_details_usd_bank'
79
+ require 'transferzero-sdk/models/payout_method_details_usd_cash'
78
80
  require 'transferzero-sdk/models/payout_method_details_xof_bank'
79
81
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
80
82
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
@@ -0,0 +1,101 @@
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::PayoutMethodDetailsKESBank
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsKESBank' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsKESBank.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsKESBank' do
31
+ it 'should create an instance of PayoutMethodDetailsKESBank' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsKESBank)
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 "bank_code"' 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 "street"' 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
+ describe 'test attribute "bank_account"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "bank_name"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "branch_code"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "swift_code"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "transfer_reason_code"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "identity_card_type"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "identity_card_id"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ end
@@ -0,0 +1,83 @@
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::PayoutMethodDetailsKESMobile
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsKESMobile' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsKESMobile.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsKESMobile' do
31
+ it 'should create an instance of PayoutMethodDetailsKESMobile' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsKESMobile)
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 "street"' 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 "phone_number"' 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
+ describe 'test attribute "mobile_provider"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "transfer_reason_code"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "identity_card_type"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "identity_card_id"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end