transferzero-sdk 1.23.5 → 1.25.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/PayoutMethod.md +1 -1
  4. data/docs/PayoutMethodDetails.md +4 -2
  5. data/docs/PayoutMethodDetailsBRLBank.md +4 -0
  6. data/docs/PayoutMethodDetailsBWPBank.md +25 -0
  7. data/docs/PayoutMethodDetailsINRBank.md +33 -0
  8. data/docs/PayoutMethodDetailsNZDBank.md +23 -0
  9. data/docs/PayoutMethodDetailsZMWBank.md +23 -0
  10. data/docs/Sender.md +1 -3
  11. data/lib/transferzero-sdk/api_client.rb +1 -1
  12. data/lib/transferzero-sdk/models/payout_method.rb +1 -1
  13. data/lib/transferzero-sdk/models/payout_method_country_enum.rb +1 -0
  14. data/lib/transferzero-sdk/models/payout_method_details.rb +28 -5
  15. data/lib/transferzero-sdk/models/payout_method_details_brl_bank.rb +30 -2
  16. data/lib/transferzero-sdk/models/payout_method_details_bwp_bank.rb +264 -0
  17. data/lib/transferzero-sdk/models/payout_method_details_inr_bank.rb +320 -0
  18. data/lib/transferzero-sdk/models/payout_method_details_nzd_bank.rb +250 -0
  19. data/lib/transferzero-sdk/models/payout_method_details_zmw_bank.rb +250 -0
  20. data/lib/transferzero-sdk/models/sender.rb +2 -12
  21. data/lib/transferzero-sdk/version.rb +1 -1
  22. data/lib/transferzero-sdk.rb +4 -0
  23. data/spec/models/payout_method_details_bwp_bank_spec.rb +65 -0
  24. data/spec/models/payout_method_details_inr_bank_spec.rb +89 -0
  25. data/spec/models/payout_method_details_nzd_bank_spec.rb +59 -0
  26. data/spec/models/payout_method_details_zmw_bank_spec.rb +59 -0
  27. metadata +18 -13
  28. data/Gemfile.lock +0 -92
  29. data/transferzero-sdk-1.19.0.gem +0 -0
  30. data/transferzero-sdk-1.19.2.gem +0 -0
  31. data/transferzero-sdk-1.19.3.gem +0 -0
  32. data/transferzero-sdk-1.19.4.gem +0 -0
  33. data/transferzero-sdk-1.19.5.gem +0 -0
  34. data/transferzero-sdk-1.20.1.gem +0 -0
  35. data/transferzero-sdk-1.21.0.gem +0 -0
  36. data/transferzero-sdk-1.22.0.gem +0 -0
  37. data/transferzero-sdk-1.23.0.gem +0 -0
  38. data/transferzero-sdk-1.23.3.gem +0 -0
@@ -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\": \"First\", \"last_name\": \"Last\", \"bank_account\": \"1212341234567123\", \"bank_name\": \"ASB Bank\" } ``` See [NZD Bank](https://docs.transferzero.com/docs/payout-details/#nzdbank) documentation for the bank_name list
17
+ class PayoutMethodDetailsNZDBank
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :bank_account
23
+
24
+ attr_accessor :bank_name
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
+ :'bank_account' => :'bank_account',
32
+ :'bank_name' => :'bank_name'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'first_name' => :'String',
40
+ :'last_name' => :'String',
41
+ :'bank_account' => :'String',
42
+ :'bank_name' => :'String'
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::PayoutMethodDetailsNZDBank` 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::PayoutMethodDetailsNZDBank`. 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?(:'bank_account')
70
+ self.bank_account = attributes[:'bank_account']
71
+ end
72
+
73
+ if attributes.key?(:'bank_name')
74
+ self.bank_name = attributes[:'bank_name']
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 @bank_account.nil?
91
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
92
+ end
93
+
94
+ if @bank_name.nil?
95
+ invalid_properties.push('invalid value for "bank_name", bank_name 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 @bank_account.nil?
107
+ return false if @bank_name.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
+ bank_account == o.bank_account &&
119
+ bank_name == o.bank_name
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, bank_account, bank_name].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
@@ -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\": \"First\", \"last_name\": \"Last\", \"bank_account\": \"1234567890\", \"branch_code\": \"ZM210003\", } ``` See [ZMW Bank](https://docs.transferzero.com/docs/payout-details/#zmwbank) documentation for the branch_code list
17
+ class PayoutMethodDetailsZMWBank
18
+ attr_accessor :first_name
19
+
20
+ attr_accessor :last_name
21
+
22
+ attr_accessor :bank_account
23
+
24
+ attr_accessor :branch_code
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
+ :'bank_account' => :'bank_account',
32
+ :'branch_code' => :'branch_code'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'first_name' => :'String',
40
+ :'last_name' => :'String',
41
+ :'bank_account' => :'String',
42
+ :'branch_code' => :'String'
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::PayoutMethodDetailsZMWBank` 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::PayoutMethodDetailsZMWBank`. 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?(:'bank_account')
70
+ self.bank_account = attributes[:'bank_account']
71
+ end
72
+
73
+ if attributes.key?(:'branch_code')
74
+ self.branch_code = attributes[:'branch_code']
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 @bank_account.nil?
91
+ invalid_properties.push('invalid value for "bank_account", bank_account cannot be nil.')
92
+ end
93
+
94
+ if @branch_code.nil?
95
+ invalid_properties.push('invalid value for "branch_code", branch_code 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 @bank_account.nil?
107
+ return false if @branch_code.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
+ bank_account == o.bank_account &&
119
+ branch_code == o.branch_code
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, bank_account, branch_code].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
@@ -79,7 +79,7 @@ class Sender
79
79
  # The nationality of the sender (used only with a Personal sender)
80
80
  attr_accessor :nationality
81
81
 
82
- # Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `tax_identification_no`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`.
82
+ # Legal entity type (used only with a Business sender) Available values: - sole_proprietorship: Sole Proprietorship - partnership: Partnership - privately_owned_company: Privately Owned Company (Limited Company) - publicly_owned_company: Publicly Listed Company (PLC) - government_owned_entity: Government Owned Entity Trusts - trust: Foundations & Similar Entities - ngo: Non-Government Organisations / Charities inc Religious bodies and place of worship - club_and_society: Clubs and Societies - go: GO (Majority Owned Subsidiary of State-Owned Company) - financial_institution: Financial Institution - mto: Money Transfer Operator (MTO) / Other Licensed Financial Institution Please note not all values are acceptable for some our corridors. Please reach out to our sales teams for more information. Note that if you select `financial_institution` then the fields `vat_registration_number`, `financial_regulator` and `regulatory_licence_number` will be mandatory as well. Note that if you select `mto` then following fields will be mandatory as well: `vat_registration_number`, `financial_regulator`, `regulatory_licence_number`, `company_office_number`, `company_office_number_country`, `aml_officer_email`, `aml_officer_phone`, `aml_officer_phone_country`, `company_website_url`, `number_of_employees_in_company`, `list_of_countries_of_operation`, `estimated_annual_revenue_turnover`, `declaration`.
83
83
  attr_accessor :legal_entity_type
84
84
 
85
85
  # The registration date (used only with a Business sender)
@@ -184,9 +184,6 @@ class Sender
184
184
  # Company website URL (used only with a Business sender)
185
185
  attr_accessor :company_website_url
186
186
 
187
- # Tax Identification Number (used only with a Business sender)
188
- attr_accessor :tax_identification_no
189
-
190
187
  # Number of employees in company (used only with a Business sender)
191
188
  attr_accessor :number_of_employees_in_company
192
189
 
@@ -281,7 +278,6 @@ class Sender
281
278
  :'aml_officer_phone' => :'aml_officer_phone',
282
279
  :'aml_officer_phone_country' => :'aml_officer_phone_country',
283
280
  :'company_website_url' => :'company_website_url',
284
- :'tax_identification_no' => :'tax_identification_no',
285
281
  :'number_of_employees_in_company' => :'number_of_employees_in_company',
286
282
  :'list_of_countries_of_operation' => :'list_of_countries_of_operation',
287
283
  :'estimated_annual_revenue_turnover' => :'estimated_annual_revenue_turnover',
@@ -349,7 +345,6 @@ class Sender
349
345
  :'aml_officer_phone' => :'String',
350
346
  :'aml_officer_phone_country' => :'String',
351
347
  :'company_website_url' => :'String',
352
- :'tax_identification_no' => :'String',
353
348
  :'number_of_employees_in_company' => :'String',
354
349
  :'list_of_countries_of_operation' => :'Array<String>',
355
350
  :'estimated_annual_revenue_turnover' => :'String',
@@ -606,10 +601,6 @@ class Sender
606
601
  self.company_website_url = attributes[:'company_website_url']
607
602
  end
608
603
 
609
- if attributes.key?(:'tax_identification_no')
610
- self.tax_identification_no = attributes[:'tax_identification_no']
611
- end
612
-
613
604
  if attributes.key?(:'number_of_employees_in_company')
614
605
  self.number_of_employees_in_company = attributes[:'number_of_employees_in_company']
615
606
  end
@@ -799,7 +790,6 @@ class Sender
799
790
  aml_officer_phone == o.aml_officer_phone &&
800
791
  aml_officer_phone_country == o.aml_officer_phone_country &&
801
792
  company_website_url == o.company_website_url &&
802
- tax_identification_no == o.tax_identification_no &&
803
793
  number_of_employees_in_company == o.number_of_employees_in_company &&
804
794
  list_of_countries_of_operation == o.list_of_countries_of_operation &&
805
795
  estimated_annual_revenue_turnover == o.estimated_annual_revenue_turnover &&
@@ -815,7 +805,7 @@ class Sender
815
805
  # Calculates hash code according to all attributes.
816
806
  # @return [Integer] Hash code
817
807
  def hash
818
- [id, type, state, country, street, postal_code, city, phone_country, phone_number, email, ip, address_description, identification_number, identification_type, lang, name, first_name, middle_name, last_name, birth_date, occupation, nationality, legal_entity_type, registration_date, registration_number, nature_of_business, source_of_funds, custom_source_of_funds, core_business_activity, purpose_of_opening_account, office_phone, vat_registration_number, financial_regulator, regulatory_licence_number, contact_person_email, trading_country, trading_address, trading_name, number_monthly_transactions, amount_monthly_transactions, documents, metadata, errors, onboarding_status, politically_exposed_people, external_id, city_of_birth, country_of_birth, gender, sales_lead_id, created_at, company_office_number, company_office_number_country, aml_officer_email, aml_officer_phone, aml_officer_phone_country, company_website_url, tax_identification_no, number_of_employees_in_company, list_of_countries_of_operation, estimated_annual_revenue_turnover, declaration].hash
808
+ [id, type, state, country, street, postal_code, city, phone_country, phone_number, email, ip, address_description, identification_number, identification_type, lang, name, first_name, middle_name, last_name, birth_date, occupation, nationality, legal_entity_type, registration_date, registration_number, nature_of_business, source_of_funds, custom_source_of_funds, core_business_activity, purpose_of_opening_account, office_phone, vat_registration_number, financial_regulator, regulatory_licence_number, contact_person_email, trading_country, trading_address, trading_name, number_monthly_transactions, amount_monthly_transactions, documents, metadata, errors, onboarding_status, politically_exposed_people, external_id, city_of_birth, country_of_birth, gender, sales_lead_id, created_at, company_office_number, company_office_number_country, aml_officer_email, aml_officer_phone, aml_officer_phone_country, company_website_url, number_of_employees_in_company, list_of_countries_of_operation, estimated_annual_revenue_turnover, declaration].hash
819
809
  end
820
810
 
821
811
  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.23.5'
14
+ VERSION = '1.25.0'
15
15
  end
@@ -69,17 +69,20 @@ require 'transferzero-sdk/models/payout_method_country_enum'
69
69
  require 'transferzero-sdk/models/payout_method_details'
70
70
  require 'transferzero-sdk/models/payout_method_details_brl_bank'
71
71
  require 'transferzero-sdk/models/payout_method_details_btc'
72
+ require 'transferzero-sdk/models/payout_method_details_bwp_bank'
72
73
  require 'transferzero-sdk/models/payout_method_details_balance'
73
74
  require 'transferzero-sdk/models/payout_method_details_gbp_bank'
74
75
  require 'transferzero-sdk/models/payout_method_details_ghs_bank'
75
76
  require 'transferzero-sdk/models/payout_method_details_ghs_cash'
76
77
  require 'transferzero-sdk/models/payout_method_details_gnf_mobile'
77
78
  require 'transferzero-sdk/models/payout_method_details_iban'
79
+ require 'transferzero-sdk/models/payout_method_details_inr_bank'
78
80
  require 'transferzero-sdk/models/payout_method_details_kes_bank'
79
81
  require 'transferzero-sdk/models/payout_method_details_kes_mobile'
80
82
  require 'transferzero-sdk/models/payout_method_details_mad_cash'
81
83
  require 'transferzero-sdk/models/payout_method_details_mobile'
82
84
  require 'transferzero-sdk/models/payout_method_details_ngn_bank'
85
+ require 'transferzero-sdk/models/payout_method_details_nzd_bank'
83
86
  require 'transferzero-sdk/models/payout_method_details_usd_bank'
84
87
  require 'transferzero-sdk/models/payout_method_details_usd_cash'
85
88
  require 'transferzero-sdk/models/payout_method_details_xaf_bank'
@@ -88,6 +91,7 @@ require 'transferzero-sdk/models/payout_method_details_xof_bank'
88
91
  require 'transferzero-sdk/models/payout_method_details_xof_cash'
89
92
  require 'transferzero-sdk/models/payout_method_details_xof_mobile'
90
93
  require 'transferzero-sdk/models/payout_method_details_zar_bank'
94
+ require 'transferzero-sdk/models/payout_method_details_zmw_bank'
91
95
  require 'transferzero-sdk/models/payout_method_gender_enum'
92
96
  require 'transferzero-sdk/models/payout_method_identity_card_type_enum'
93
97
  require 'transferzero-sdk/models/payout_method_legal_entity_type_enum'
@@ -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 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for TransferZero::PayoutMethodDetailsBWPBank
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'PayoutMethodDetailsBWPBank' do
21
+ before do
22
+ # run before each test
23
+ @instance = TransferZero::PayoutMethodDetailsBWPBank.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of PayoutMethodDetailsBWPBank' do
31
+ it 'should create an instance of PayoutMethodDetailsBWPBank' do
32
+ expect(@instance).to be_instance_of(TransferZero::PayoutMethodDetailsBWPBank)
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_name"' 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 "bank_account"' 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 "branch_code"' 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
+ end