treezor_client 1.3.0 → 1.4.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 +2 -2
- data/docs/BalanceApi.md +3 -3
- data/docs/BankaccountApi.md +21 -21
- data/docs/BeneficiariesApi.md +18 -18
- data/docs/BusinessApi.md +22 -22
- data/docs/CardApi.md +66 -66
- data/docs/CardDigitalizationsApi.md +9 -9
- data/docs/CardReserveApi.md +9 -9
- data/docs/CardtransactionApi.md +5 -5
- data/docs/CountryRestrictionGroupsApi.md +16 -16
- data/docs/DocumentApi.md +23 -23
- data/docs/HeartbeatApi.md +3 -3
- data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
- data/docs/MandateApi.md +33 -33
- data/docs/MccRestrictionGroupsApi.md +16 -16
- data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
- data/docs/PayinApi.md +28 -28
- data/docs/PayinrefundApi.md +20 -20
- data/docs/PayoutApi.md +27 -27
- data/docs/PayoutRefundsApi.md +6 -6
- data/docs/TaxResidenceApi.md +9 -9
- data/docs/TransactionApi.md +14 -14
- data/docs/TransferApi.md +23 -23
- data/docs/TransferrefundApi.md +19 -19
- data/docs/UserApi.md +103 -103
- data/docs/VirtualibansApi.md +24 -24
- data/docs/WalletApi.md +45 -45
- data/lib/treezor_client/api/balance_api.rb +5 -6
- data/lib/treezor_client/api/bankaccount_api.rb +14 -18
- data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
- data/lib/treezor_client/api/business_api.rb +11 -13
- data/lib/treezor_client/api/card_api.rb +53 -76
- data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
- data/lib/treezor_client/api/card_reserve_api.rb +11 -14
- data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
- data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/document_api.rb +28 -33
- data/lib/treezor_client/api/heartbeat_api.rb +5 -6
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
- data/lib/treezor_client/api/mandate_api.rb +20 -26
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/payin_api.rb +14 -18
- data/lib/treezor_client/api/payinrefund_api.rb +14 -18
- data/lib/treezor_client/api/payout_api.rb +14 -18
- data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
- data/lib/treezor_client/api/tax_residence_api.rb +17 -22
- data/lib/treezor_client/api/transaction_api.rb +8 -10
- data/lib/treezor_client/api/transfer_api.rb +14 -18
- data/lib/treezor_client/api/transferrefund_api.rb +14 -18
- data/lib/treezor_client/api/user_api.rb +20 -26
- data/lib/treezor_client/api/virtualibans_api.rb +14 -18
- data/lib/treezor_client/api/wallet_api.rb +17 -22
- data/lib/treezor_client/api_client.rb +9 -9
- data/lib/treezor_client/api_error.rb +1 -1
- data/lib/treezor_client/configuration.rb +2 -2
- data/lib/treezor_client/models/balance.rb +6 -11
- data/lib/treezor_client/models/bankaccount.rb +9 -13
- data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
- data/lib/treezor_client/models/beneficiary.rb +6 -11
- data/lib/treezor_client/models/body.rb +11 -15
- data/lib/treezor_client/models/body_1.rb +8 -13
- data/lib/treezor_client/models/body_10.rb +9 -13
- data/lib/treezor_client/models/body_2.rb +6 -11
- data/lib/treezor_client/models/body_3.rb +8 -13
- data/lib/treezor_client/models/body_4.rb +8 -13
- data/lib/treezor_client/models/body_5.rb +11 -15
- data/lib/treezor_client/models/body_6.rb +9 -13
- data/lib/treezor_client/models/body_7.rb +11 -15
- data/lib/treezor_client/models/body_8.rb +9 -13
- data/lib/treezor_client/models/body_9.rb +11 -15
- data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
- data/lib/treezor_client/models/card.rb +9 -13
- data/lib/treezor_client/models/card_digitalization.rb +6 -11
- data/lib/treezor_client/models/country_restriction_group.rb +9 -13
- data/lib/treezor_client/models/document.rb +9 -13
- data/lib/treezor_client/models/error.rb +6 -11
- data/lib/treezor_client/models/inline_response_200.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
- data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
- data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
- data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
- data/lib/treezor_client/models/inline_response_default.rb +6 -11
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
- data/lib/treezor_client/models/mandate.rb +15 -19
- data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
- data/lib/treezor_client/models/payin.rb +9 -13
- data/lib/treezor_client/models/payinrefund.rb +9 -13
- data/lib/treezor_client/models/payout.rb +12 -16
- data/lib/treezor_client/models/payout_refund.rb +9 -13
- data/lib/treezor_client/models/tav.rb +6 -11
- data/lib/treezor_client/models/tax_residence.rb +6 -11
- data/lib/treezor_client/models/transaction.rb +6 -11
- data/lib/treezor_client/models/transfer.rb +9 -13
- data/lib/treezor_client/models/transferrefund.rb +9 -13
- data/lib/treezor_client/models/user.rb +12 -16
- data/lib/treezor_client/models/virtualiban.rb +6 -11
- data/lib/treezor_client/models/wallet.rb +9 -13
- data/lib/treezor_client/version.rb +2 -2
- data/lib/treezor_client.rb +1 -1
- data/pkg/treezor_client-1.3.0.gem +0 -0
- data/pkg/treezor_client-1.4.0.gem +0 -0
- data/treezor_api_spec.yaml +11 -11
- metadata +4 -2
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Body8
|
18
17
|
# Name of the merchant ID restriction group
|
19
18
|
attr_accessor :name
|
@@ -80,7 +79,7 @@ module TreezorClient
|
|
80
79
|
return unless attributes.is_a?(Hash)
|
81
80
|
|
82
81
|
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
83
|
|
85
84
|
if attributes.has_key?(:'name')
|
86
85
|
self.name = attributes[:'name']
|
@@ -105,30 +104,29 @@ module TreezorClient
|
|
105
104
|
if attributes.has_key?(:'startDate')
|
106
105
|
self.start_date = attributes[:'startDate']
|
107
106
|
end
|
108
|
-
|
109
107
|
end
|
110
108
|
|
111
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
112
110
|
# @return Array for valid properties with the reasons
|
113
111
|
def list_invalid_properties
|
114
112
|
invalid_properties = Array.new
|
115
|
-
|
113
|
+
invalid_properties
|
116
114
|
end
|
117
115
|
|
118
116
|
# Check to see if the all the properties in the model are valid
|
119
117
|
# @return true if the model is valid
|
120
118
|
def valid?
|
121
|
-
status_validator = EnumAttributeValidator.new('String', [
|
119
|
+
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
122
120
|
return false unless status_validator.valid?(@status)
|
123
|
-
|
121
|
+
true
|
124
122
|
end
|
125
123
|
|
126
124
|
# Custom attribute writer method checking allowed values (enum).
|
127
125
|
# @param [Object] status Object to be assigned
|
128
126
|
def status=(status)
|
129
|
-
validator = EnumAttributeValidator.new('String', [
|
127
|
+
validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
130
128
|
unless validator.valid?(status)
|
131
|
-
fail ArgumentError,
|
129
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
132
130
|
end
|
133
131
|
@status = status
|
134
132
|
end
|
@@ -167,7 +165,7 @@ module TreezorClient
|
|
167
165
|
# check to ensure the input is an array given that the the attribute
|
168
166
|
# is documented as an array but the input is not
|
169
167
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
170
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
171
169
|
end
|
172
170
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
173
171
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -249,7 +247,7 @@ module TreezorClient
|
|
249
247
|
# @return [Hash] Returns the value in the form of hash
|
250
248
|
def _to_hash(value)
|
251
249
|
if value.is_a?(Array)
|
252
|
-
value.compact.map{ |v| _to_hash(v) }
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
253
251
|
elsif value.is_a?(Hash)
|
254
252
|
{}.tap do |hash|
|
255
253
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -260,7 +258,5 @@ module TreezorClient
|
|
260
258
|
value
|
261
259
|
end
|
262
260
|
end
|
263
|
-
|
264
261
|
end
|
265
|
-
|
266
262
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Body9
|
18
17
|
# Name of the country restriction group
|
19
18
|
attr_accessor :name
|
@@ -80,7 +79,7 @@ module TreezorClient
|
|
80
79
|
return unless attributes.is_a?(Hash)
|
81
80
|
|
82
81
|
# convert string to symbol for hash key
|
83
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
82
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
83
|
|
85
84
|
if attributes.has_key?(:'name')
|
86
85
|
self.name = attributes[:'name']
|
@@ -105,7 +104,6 @@ module TreezorClient
|
|
105
104
|
if attributes.has_key?(:'startDate')
|
106
105
|
self.start_date = attributes[:'startDate']
|
107
106
|
end
|
108
|
-
|
109
107
|
end
|
110
108
|
|
111
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -113,32 +111,32 @@ module TreezorClient
|
|
113
111
|
def list_invalid_properties
|
114
112
|
invalid_properties = Array.new
|
115
113
|
if @name.nil?
|
116
|
-
invalid_properties.push(
|
114
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
117
115
|
end
|
118
116
|
|
119
117
|
if @countries.nil?
|
120
|
-
invalid_properties.push(
|
118
|
+
invalid_properties.push('invalid value for "countries", countries cannot be nil.')
|
121
119
|
end
|
122
120
|
|
123
|
-
|
121
|
+
invalid_properties
|
124
122
|
end
|
125
123
|
|
126
124
|
# Check to see if the all the properties in the model are valid
|
127
125
|
# @return true if the model is valid
|
128
126
|
def valid?
|
129
127
|
return false if @name.nil?
|
130
|
-
status_validator = EnumAttributeValidator.new('String', [
|
128
|
+
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
131
129
|
return false unless status_validator.valid?(@status)
|
132
130
|
return false if @countries.nil?
|
133
|
-
|
131
|
+
true
|
134
132
|
end
|
135
133
|
|
136
134
|
# Custom attribute writer method checking allowed values (enum).
|
137
135
|
# @param [Object] status Object to be assigned
|
138
136
|
def status=(status)
|
139
|
-
validator = EnumAttributeValidator.new('String', [
|
137
|
+
validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
140
138
|
unless validator.valid?(status)
|
141
|
-
fail ArgumentError,
|
139
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
142
140
|
end
|
143
141
|
@status = status
|
144
142
|
end
|
@@ -177,7 +175,7 @@ module TreezorClient
|
|
177
175
|
# check to ensure the input is an array given that the the attribute
|
178
176
|
# is documented as an array but the input is not
|
179
177
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
180
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
178
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
181
179
|
end
|
182
180
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
183
181
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -259,7 +257,7 @@ module TreezorClient
|
|
259
257
|
# @return [Hash] Returns the value in the form of hash
|
260
258
|
def _to_hash(value)
|
261
259
|
if value.is_a?(Array)
|
262
|
-
value.compact.map{ |v| _to_hash(v) }
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
263
261
|
elsif value.is_a?(Hash)
|
264
262
|
{}.tap do |hash|
|
265
263
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -270,7 +268,5 @@ module TreezorClient
|
|
270
268
|
value
|
271
269
|
end
|
272
270
|
end
|
273
|
-
|
274
271
|
end
|
275
|
-
|
276
272
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class BusinesssearchsBusinessinformations
|
18
17
|
# Business commercial name.
|
19
18
|
attr_accessor :legal_name
|
@@ -130,7 +129,7 @@ module TreezorClient
|
|
130
129
|
return unless attributes.is_a?(Hash)
|
131
130
|
|
132
131
|
# convert string to symbol for hash key
|
133
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
132
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
134
133
|
|
135
134
|
if attributes.has_key?(:'legalName')
|
136
135
|
self.legal_name = attributes[:'legalName']
|
@@ -191,30 +190,29 @@ module TreezorClient
|
|
191
190
|
if attributes.has_key?(:'tradename')
|
192
191
|
self.tradename = attributes[:'tradename']
|
193
192
|
end
|
194
|
-
|
195
193
|
end
|
196
194
|
|
197
195
|
# Show invalid properties with the reasons. Usually used together with valid?
|
198
196
|
# @return Array for valid properties with the reasons
|
199
197
|
def list_invalid_properties
|
200
198
|
invalid_properties = Array.new
|
201
|
-
|
199
|
+
invalid_properties
|
202
200
|
end
|
203
201
|
|
204
202
|
# Check to see if the all the properties in the model are valid
|
205
203
|
# @return true if the model is valid
|
206
204
|
def valid?
|
207
|
-
status_validator = EnumAttributeValidator.new('String', [
|
205
|
+
status_validator = EnumAttributeValidator.new('String', ['D', 'N', 'I', 'A', 'C', 'T', 'S', 'L', 'O'])
|
208
206
|
return false unless status_validator.valid?(@status)
|
209
|
-
|
207
|
+
true
|
210
208
|
end
|
211
209
|
|
212
210
|
# Custom attribute writer method checking allowed values (enum).
|
213
211
|
# @param [Object] status Object to be assigned
|
214
212
|
def status=(status)
|
215
|
-
validator = EnumAttributeValidator.new('String', [
|
213
|
+
validator = EnumAttributeValidator.new('String', ['D', 'N', 'I', 'A', 'C', 'T', 'S', 'L', 'O'])
|
216
214
|
unless validator.valid?(status)
|
217
|
-
fail ArgumentError,
|
215
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
218
216
|
end
|
219
217
|
@status = status
|
220
218
|
end
|
@@ -263,7 +261,7 @@ module TreezorClient
|
|
263
261
|
# check to ensure the input is an array given that the the attribute
|
264
262
|
# is documented as an array but the input is not
|
265
263
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
266
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
264
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
267
265
|
end
|
268
266
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
269
267
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -345,7 +343,7 @@ module TreezorClient
|
|
345
343
|
# @return [Hash] Returns the value in the form of hash
|
346
344
|
def _to_hash(value)
|
347
345
|
if value.is_a?(Array)
|
348
|
-
value.compact.map{ |v| _to_hash(v) }
|
346
|
+
value.compact.map { |v| _to_hash(v) }
|
349
347
|
elsif value.is_a?(Hash)
|
350
348
|
{}.tap do |hash|
|
351
349
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -356,7 +354,5 @@ module TreezorClient
|
|
356
354
|
value
|
357
355
|
end
|
358
356
|
end
|
359
|
-
|
360
357
|
end
|
361
|
-
|
362
358
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Card
|
18
17
|
attr_accessor :card_id
|
19
18
|
|
@@ -320,7 +319,7 @@ module TreezorClient
|
|
320
319
|
return unless attributes.is_a?(Hash)
|
321
320
|
|
322
321
|
# convert string to symbol for hash key
|
323
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
322
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
324
323
|
|
325
324
|
if attributes.has_key?(:'cardId')
|
326
325
|
self.card_id = attributes[:'cardId']
|
@@ -581,30 +580,29 @@ module TreezorClient
|
|
581
580
|
if attributes.has_key?(:'totalRows')
|
582
581
|
self.total_rows = attributes[:'totalRows']
|
583
582
|
end
|
584
|
-
|
585
583
|
end
|
586
584
|
|
587
585
|
# Show invalid properties with the reasons. Usually used together with valid?
|
588
586
|
# @return Array for valid properties with the reasons
|
589
587
|
def list_invalid_properties
|
590
588
|
invalid_properties = Array.new
|
591
|
-
|
589
|
+
invalid_properties
|
592
590
|
end
|
593
591
|
|
594
592
|
# Check to see if the all the properties in the model are valid
|
595
593
|
# @return true if the model is valid
|
596
594
|
def valid?
|
597
|
-
status_code_validator = EnumAttributeValidator.new('String', [
|
595
|
+
status_code_validator = EnumAttributeValidator.new('String', ['UNLOCK', 'LOCK', 'LOST', 'STOLEN'])
|
598
596
|
return false unless status_code_validator.valid?(@status_code)
|
599
|
-
|
597
|
+
true
|
600
598
|
end
|
601
599
|
|
602
600
|
# Custom attribute writer method checking allowed values (enum).
|
603
601
|
# @param [Object] status_code Object to be assigned
|
604
602
|
def status_code=(status_code)
|
605
|
-
validator = EnumAttributeValidator.new('String', [
|
603
|
+
validator = EnumAttributeValidator.new('String', ['UNLOCK', 'LOCK', 'LOST', 'STOLEN'])
|
606
604
|
unless validator.valid?(status_code)
|
607
|
-
fail ArgumentError,
|
605
|
+
fail ArgumentError, 'invalid value for "status_code", must be one of #{validator.allowable_values}.'
|
608
606
|
end
|
609
607
|
@status_code = status_code
|
610
608
|
end
|
@@ -703,7 +701,7 @@ module TreezorClient
|
|
703
701
|
# check to ensure the input is an array given that the the attribute
|
704
702
|
# is documented as an array but the input is not
|
705
703
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
706
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
704
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
707
705
|
end
|
708
706
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
709
707
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -785,7 +783,7 @@ module TreezorClient
|
|
785
783
|
# @return [Hash] Returns the value in the form of hash
|
786
784
|
def _to_hash(value)
|
787
785
|
if value.is_a?(Array)
|
788
|
-
value.compact.map{ |v| _to_hash(v) }
|
786
|
+
value.compact.map { |v| _to_hash(v) }
|
789
787
|
elsif value.is_a?(Hash)
|
790
788
|
{}.tap do |hash|
|
791
789
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -796,7 +794,5 @@ module TreezorClient
|
|
796
794
|
value
|
797
795
|
end
|
798
796
|
end
|
799
|
-
|
800
797
|
end
|
801
|
-
|
802
798
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class CardDigitalization
|
18
17
|
attr_accessor :id
|
19
18
|
|
@@ -26,7 +25,6 @@ module TreezorClient
|
|
26
25
|
|
27
26
|
attr_accessor :modified_date
|
28
27
|
|
29
|
-
|
30
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
29
|
def self.attribute_map
|
32
30
|
{
|
@@ -55,7 +53,7 @@ module TreezorClient
|
|
55
53
|
return unless attributes.is_a?(Hash)
|
56
54
|
|
57
55
|
# convert string to symbol for hash key
|
58
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
59
57
|
|
60
58
|
if attributes.has_key?(:'id')
|
61
59
|
self.id = attributes[:'id']
|
@@ -76,20 +74,19 @@ module TreezorClient
|
|
76
74
|
if attributes.has_key?(:'modifiedDate')
|
77
75
|
self.modified_date = attributes[:'modifiedDate']
|
78
76
|
end
|
79
|
-
|
80
77
|
end
|
81
78
|
|
82
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
83
80
|
# @return Array for valid properties with the reasons
|
84
81
|
def list_invalid_properties
|
85
82
|
invalid_properties = Array.new
|
86
|
-
|
83
|
+
invalid_properties
|
87
84
|
end
|
88
85
|
|
89
86
|
# Check to see if the all the properties in the model are valid
|
90
87
|
# @return true if the model is valid
|
91
88
|
def valid?
|
92
|
-
|
89
|
+
true
|
93
90
|
end
|
94
91
|
|
95
92
|
# Checks equality by comparing each attribute.
|
@@ -126,7 +123,7 @@ module TreezorClient
|
|
126
123
|
# check to ensure the input is an array given that the the attribute
|
127
124
|
# is documented as an array but the input is not
|
128
125
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
127
|
end
|
131
128
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
129
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -208,7 +205,7 @@ module TreezorClient
|
|
208
205
|
# @return [Hash] Returns the value in the form of hash
|
209
206
|
def _to_hash(value)
|
210
207
|
if value.is_a?(Array)
|
211
|
-
value.compact.map{ |v| _to_hash(v) }
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
212
209
|
elsif value.is_a?(Hash)
|
213
210
|
{}.tap do |hash|
|
214
211
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -219,7 +216,5 @@ module TreezorClient
|
|
219
216
|
value
|
220
217
|
end
|
221
218
|
end
|
222
|
-
|
223
219
|
end
|
224
|
-
|
225
220
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class CountryRestrictionGroup
|
18
17
|
# Country Group's id
|
19
18
|
attr_accessor :id
|
@@ -90,7 +89,7 @@ module TreezorClient
|
|
90
89
|
return unless attributes.is_a?(Hash)
|
91
90
|
|
92
91
|
# convert string to symbol for hash key
|
93
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
93
|
|
95
94
|
if attributes.has_key?(:'id')
|
96
95
|
self.id = attributes[:'id']
|
@@ -121,30 +120,29 @@ module TreezorClient
|
|
121
120
|
if attributes.has_key?(:'createdDate')
|
122
121
|
self.created_date = attributes[:'createdDate']
|
123
122
|
end
|
124
|
-
|
125
123
|
end
|
126
124
|
|
127
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
126
|
# @return Array for valid properties with the reasons
|
129
127
|
def list_invalid_properties
|
130
128
|
invalid_properties = Array.new
|
131
|
-
|
129
|
+
invalid_properties
|
132
130
|
end
|
133
131
|
|
134
132
|
# Check to see if the all the properties in the model are valid
|
135
133
|
# @return true if the model is valid
|
136
134
|
def valid?
|
137
|
-
status_validator = EnumAttributeValidator.new('String', [
|
135
|
+
status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
138
136
|
return false unless status_validator.valid?(@status)
|
139
|
-
|
137
|
+
true
|
140
138
|
end
|
141
139
|
|
142
140
|
# Custom attribute writer method checking allowed values (enum).
|
143
141
|
# @param [Object] status Object to be assigned
|
144
142
|
def status=(status)
|
145
|
-
validator = EnumAttributeValidator.new('String', [
|
143
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
146
144
|
unless validator.valid?(status)
|
147
|
-
fail ArgumentError,
|
145
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
148
146
|
end
|
149
147
|
@status = status
|
150
148
|
end
|
@@ -185,7 +183,7 @@ module TreezorClient
|
|
185
183
|
# check to ensure the input is an array given that the the attribute
|
186
184
|
# is documented as an array but the input is not
|
187
185
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
186
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
187
|
end
|
190
188
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
189
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -267,7 +265,7 @@ module TreezorClient
|
|
267
265
|
# @return [Hash] Returns the value in the form of hash
|
268
266
|
def _to_hash(value)
|
269
267
|
if value.is_a?(Array)
|
270
|
-
value.compact.map{ |v| _to_hash(v) }
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
271
269
|
elsif value.is_a?(Hash)
|
272
270
|
{}.tap do |hash|
|
273
271
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -278,7 +276,5 @@ module TreezorClient
|
|
278
276
|
value
|
279
277
|
end
|
280
278
|
end
|
281
|
-
|
282
279
|
end
|
283
|
-
|
284
280
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Document
|
18
17
|
attr_accessor :document_id
|
19
18
|
|
@@ -121,7 +120,7 @@ module TreezorClient
|
|
121
120
|
return unless attributes.is_a?(Hash)
|
122
121
|
|
123
122
|
# convert string to symbol for hash key
|
124
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
123
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
125
124
|
|
126
125
|
if attributes.has_key?(:'documentId')
|
127
126
|
self.document_id = attributes[:'documentId']
|
@@ -186,30 +185,29 @@ module TreezorClient
|
|
186
185
|
if attributes.has_key?(:'totalRows')
|
187
186
|
self.total_rows = attributes[:'totalRows']
|
188
187
|
end
|
189
|
-
|
190
188
|
end
|
191
189
|
|
192
190
|
# Show invalid properties with the reasons. Usually used together with valid?
|
193
191
|
# @return Array for valid properties with the reasons
|
194
192
|
def list_invalid_properties
|
195
193
|
invalid_properties = Array.new
|
196
|
-
|
194
|
+
invalid_properties
|
197
195
|
end
|
198
196
|
|
199
197
|
# Check to see if the all the properties in the model are valid
|
200
198
|
# @return true if the model is valid
|
201
199
|
def valid?
|
202
|
-
document_status_validator = EnumAttributeValidator.new('String', [
|
200
|
+
document_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
203
201
|
return false unless document_status_validator.valid?(@document_status)
|
204
|
-
|
202
|
+
true
|
205
203
|
end
|
206
204
|
|
207
205
|
# Custom attribute writer method checking allowed values (enum).
|
208
206
|
# @param [Object] document_status Object to be assigned
|
209
207
|
def document_status=(document_status)
|
210
|
-
validator = EnumAttributeValidator.new('String', [
|
208
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
211
209
|
unless validator.valid?(document_status)
|
212
|
-
fail ArgumentError,
|
210
|
+
fail ArgumentError, 'invalid value for "document_status", must be one of #{validator.allowable_values}.'
|
213
211
|
end
|
214
212
|
@document_status = document_status
|
215
213
|
end
|
@@ -259,7 +257,7 @@ module TreezorClient
|
|
259
257
|
# check to ensure the input is an array given that the the attribute
|
260
258
|
# is documented as an array but the input is not
|
261
259
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
262
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
260
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
263
261
|
end
|
264
262
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
265
263
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -341,7 +339,7 @@ module TreezorClient
|
|
341
339
|
# @return [Hash] Returns the value in the form of hash
|
342
340
|
def _to_hash(value)
|
343
341
|
if value.is_a?(Array)
|
344
|
-
value.compact.map{ |v| _to_hash(v) }
|
342
|
+
value.compact.map { |v| _to_hash(v) }
|
345
343
|
elsif value.is_a?(Hash)
|
346
344
|
{}.tap do |hash|
|
347
345
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -352,7 +350,5 @@ module TreezorClient
|
|
352
350
|
value
|
353
351
|
end
|
354
352
|
end
|
355
|
-
|
356
353
|
end
|
357
|
-
|
358
354
|
end
|