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 TaxResidence
|
18
17
|
# TaxResidence Id
|
19
18
|
attr_accessor :id
|
@@ -39,7 +38,6 @@ module TreezorClient
|
|
39
38
|
# Date of the TaxResidence has been deleted
|
40
39
|
attr_accessor :deleted_date
|
41
40
|
|
42
|
-
|
43
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
42
|
def self.attribute_map
|
45
43
|
{
|
@@ -74,7 +72,7 @@ module TreezorClient
|
|
74
72
|
return unless attributes.is_a?(Hash)
|
75
73
|
|
76
74
|
# convert string to symbol for hash key
|
77
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
76
|
|
79
77
|
if attributes.has_key?(:'id')
|
80
78
|
self.id = attributes[:'id']
|
@@ -107,20 +105,19 @@ module TreezorClient
|
|
107
105
|
if attributes.has_key?(:'deletedDate')
|
108
106
|
self.deleted_date = attributes[:'deletedDate']
|
109
107
|
end
|
110
|
-
|
111
108
|
end
|
112
109
|
|
113
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
114
111
|
# @return Array for valid properties with the reasons
|
115
112
|
def list_invalid_properties
|
116
113
|
invalid_properties = Array.new
|
117
|
-
|
114
|
+
invalid_properties
|
118
115
|
end
|
119
116
|
|
120
117
|
# Check to see if the all the properties in the model are valid
|
121
118
|
# @return true if the model is valid
|
122
119
|
def valid?
|
123
|
-
|
120
|
+
true
|
124
121
|
end
|
125
122
|
|
126
123
|
# Checks equality by comparing each attribute.
|
@@ -160,7 +157,7 @@ module TreezorClient
|
|
160
157
|
# check to ensure the input is an array given that the the attribute
|
161
158
|
# is documented as an array but the input is not
|
162
159
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
163
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
160
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
164
161
|
end
|
165
162
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
166
163
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -242,7 +239,7 @@ module TreezorClient
|
|
242
239
|
# @return [Hash] Returns the value in the form of hash
|
243
240
|
def _to_hash(value)
|
244
241
|
if value.is_a?(Array)
|
245
|
-
value.compact.map{ |v| _to_hash(v) }
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
246
243
|
elsif value.is_a?(Hash)
|
247
244
|
{}.tap do |hash|
|
248
245
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -253,7 +250,5 @@ module TreezorClient
|
|
253
250
|
value
|
254
251
|
end
|
255
252
|
end
|
256
|
-
|
257
253
|
end
|
258
|
-
|
259
254
|
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 Transaction
|
18
17
|
attr_accessor :transaction_id
|
19
18
|
|
@@ -48,7 +47,6 @@ module TreezorClient
|
|
48
47
|
|
49
48
|
attr_accessor :total_rows
|
50
49
|
|
51
|
-
|
52
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
51
|
def self.attribute_map
|
54
52
|
{
|
@@ -97,7 +95,7 @@ module TreezorClient
|
|
97
95
|
return unless attributes.is_a?(Hash)
|
98
96
|
|
99
97
|
# convert string to symbol for hash key
|
100
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
101
99
|
|
102
100
|
if attributes.has_key?(:'transactionId')
|
103
101
|
self.transaction_id = attributes[:'transactionId']
|
@@ -158,20 +156,19 @@ module TreezorClient
|
|
158
156
|
if attributes.has_key?(:'totalRows')
|
159
157
|
self.total_rows = attributes[:'totalRows']
|
160
158
|
end
|
161
|
-
|
162
159
|
end
|
163
160
|
|
164
161
|
# Show invalid properties with the reasons. Usually used together with valid?
|
165
162
|
# @return Array for valid properties with the reasons
|
166
163
|
def list_invalid_properties
|
167
164
|
invalid_properties = Array.new
|
168
|
-
|
165
|
+
invalid_properties
|
169
166
|
end
|
170
167
|
|
171
168
|
# Check to see if the all the properties in the model are valid
|
172
169
|
# @return true if the model is valid
|
173
170
|
def valid?
|
174
|
-
|
171
|
+
true
|
175
172
|
end
|
176
173
|
|
177
174
|
# Checks equality by comparing each attribute.
|
@@ -218,7 +215,7 @@ module TreezorClient
|
|
218
215
|
# check to ensure the input is an array given that the the attribute
|
219
216
|
# is documented as an array but the input is not
|
220
217
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
221
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
218
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
222
219
|
end
|
223
220
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
224
221
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -300,7 +297,7 @@ module TreezorClient
|
|
300
297
|
# @return [Hash] Returns the value in the form of hash
|
301
298
|
def _to_hash(value)
|
302
299
|
if value.is_a?(Array)
|
303
|
-
value.compact.map{ |v| _to_hash(v) }
|
300
|
+
value.compact.map { |v| _to_hash(v) }
|
304
301
|
elsif value.is_a?(Hash)
|
305
302
|
{}.tap do |hash|
|
306
303
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -311,7 +308,5 @@ module TreezorClient
|
|
311
308
|
value
|
312
309
|
end
|
313
310
|
end
|
314
|
-
|
315
311
|
end
|
316
|
-
|
317
312
|
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 Transfer
|
18
17
|
attr_accessor :transfer_id
|
19
18
|
|
@@ -137,7 +136,7 @@ module TreezorClient
|
|
137
136
|
return unless attributes.is_a?(Hash)
|
138
137
|
|
139
138
|
# convert string to symbol for hash key
|
140
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
139
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
141
140
|
|
142
141
|
if attributes.has_key?(:'transferId')
|
143
142
|
self.transfer_id = attributes[:'transferId']
|
@@ -214,30 +213,29 @@ module TreezorClient
|
|
214
213
|
if attributes.has_key?(:'totalRows')
|
215
214
|
self.total_rows = attributes[:'totalRows']
|
216
215
|
end
|
217
|
-
|
218
216
|
end
|
219
217
|
|
220
218
|
# Show invalid properties with the reasons. Usually used together with valid?
|
221
219
|
# @return Array for valid properties with the reasons
|
222
220
|
def list_invalid_properties
|
223
221
|
invalid_properties = Array.new
|
224
|
-
|
222
|
+
invalid_properties
|
225
223
|
end
|
226
224
|
|
227
225
|
# Check to see if the all the properties in the model are valid
|
228
226
|
# @return true if the model is valid
|
229
227
|
def valid?
|
230
|
-
transfer_status_validator = EnumAttributeValidator.new('String', [
|
228
|
+
transfer_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
231
229
|
return false unless transfer_status_validator.valid?(@transfer_status)
|
232
|
-
|
230
|
+
true
|
233
231
|
end
|
234
232
|
|
235
233
|
# Custom attribute writer method checking allowed values (enum).
|
236
234
|
# @param [Object] transfer_status Object to be assigned
|
237
235
|
def transfer_status=(transfer_status)
|
238
|
-
validator = EnumAttributeValidator.new('String', [
|
236
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
239
237
|
unless validator.valid?(transfer_status)
|
240
|
-
fail ArgumentError,
|
238
|
+
fail ArgumentError, 'invalid value for "transfer_status", must be one of #{validator.allowable_values}.'
|
241
239
|
end
|
242
240
|
@transfer_status = transfer_status
|
243
241
|
end
|
@@ -290,7 +288,7 @@ module TreezorClient
|
|
290
288
|
# check to ensure the input is an array given that the the attribute
|
291
289
|
# is documented as an array but the input is not
|
292
290
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
293
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
291
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
294
292
|
end
|
295
293
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
296
294
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -372,7 +370,7 @@ module TreezorClient
|
|
372
370
|
# @return [Hash] Returns the value in the form of hash
|
373
371
|
def _to_hash(value)
|
374
372
|
if value.is_a?(Array)
|
375
|
-
value.compact.map{ |v| _to_hash(v) }
|
373
|
+
value.compact.map { |v| _to_hash(v) }
|
376
374
|
elsif value.is_a?(Hash)
|
377
375
|
{}.tap do |hash|
|
378
376
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -383,7 +381,5 @@ module TreezorClient
|
|
383
381
|
value
|
384
382
|
end
|
385
383
|
end
|
386
|
-
|
387
384
|
end
|
388
|
-
|
389
385
|
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 Transferrefund
|
18
17
|
attr_accessor :transferrefund_id
|
19
18
|
|
@@ -109,7 +108,7 @@ module TreezorClient
|
|
109
108
|
return unless attributes.is_a?(Hash)
|
110
109
|
|
111
110
|
# convert string to symbol for hash key
|
112
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
113
112
|
|
114
113
|
if attributes.has_key?(:'transferrefundId')
|
115
114
|
self.transferrefund_id = attributes[:'transferrefundId']
|
@@ -162,30 +161,29 @@ module TreezorClient
|
|
162
161
|
if attributes.has_key?(:'totalRows')
|
163
162
|
self.total_rows = attributes[:'totalRows']
|
164
163
|
end
|
165
|
-
|
166
164
|
end
|
167
165
|
|
168
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
169
167
|
# @return Array for valid properties with the reasons
|
170
168
|
def list_invalid_properties
|
171
169
|
invalid_properties = Array.new
|
172
|
-
|
170
|
+
invalid_properties
|
173
171
|
end
|
174
172
|
|
175
173
|
# Check to see if the all the properties in the model are valid
|
176
174
|
# @return true if the model is valid
|
177
175
|
def valid?
|
178
|
-
transferrefund_status_validator = EnumAttributeValidator.new('String', [
|
176
|
+
transferrefund_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
179
177
|
return false unless transferrefund_status_validator.valid?(@transferrefund_status)
|
180
|
-
|
178
|
+
true
|
181
179
|
end
|
182
180
|
|
183
181
|
# Custom attribute writer method checking allowed values (enum).
|
184
182
|
# @param [Object] transferrefund_status Object to be assigned
|
185
183
|
def transferrefund_status=(transferrefund_status)
|
186
|
-
validator = EnumAttributeValidator.new('String', [
|
184
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
187
185
|
unless validator.valid?(transferrefund_status)
|
188
|
-
fail ArgumentError,
|
186
|
+
fail ArgumentError, 'invalid value for "transferrefund_status", must be one of #{validator.allowable_values}.'
|
189
187
|
end
|
190
188
|
@transferrefund_status = transferrefund_status
|
191
189
|
end
|
@@ -232,7 +230,7 @@ module TreezorClient
|
|
232
230
|
# check to ensure the input is an array given that the the attribute
|
233
231
|
# is documented as an array but the input is not
|
234
232
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
235
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
233
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
236
234
|
end
|
237
235
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
238
236
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -314,7 +312,7 @@ module TreezorClient
|
|
314
312
|
# @return [Hash] Returns the value in the form of hash
|
315
313
|
def _to_hash(value)
|
316
314
|
if value.is_a?(Array)
|
317
|
-
value.compact.map{ |v| _to_hash(v) }
|
315
|
+
value.compact.map { |v| _to_hash(v) }
|
318
316
|
elsif value.is_a?(Hash)
|
319
317
|
{}.tap do |hash|
|
320
318
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -325,7 +323,5 @@ module TreezorClient
|
|
325
323
|
value
|
326
324
|
end
|
327
325
|
end
|
328
|
-
|
329
326
|
end
|
330
|
-
|
331
327
|
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 User
|
18
17
|
attr_accessor :user_id
|
19
18
|
|
@@ -292,7 +291,7 @@ module TreezorClient
|
|
292
291
|
return unless attributes.is_a?(Hash)
|
293
292
|
|
294
293
|
# convert string to symbol for hash key
|
295
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
294
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
296
295
|
|
297
296
|
if attributes.has_key?(:'userId')
|
298
297
|
self.user_id = attributes[:'userId']
|
@@ -525,32 +524,31 @@ module TreezorClient
|
|
525
524
|
if attributes.has_key?(:'totalRows')
|
526
525
|
self.total_rows = attributes[:'totalRows']
|
527
526
|
end
|
528
|
-
|
529
527
|
end
|
530
528
|
|
531
529
|
# Show invalid properties with the reasons. Usually used together with valid?
|
532
530
|
# @return Array for valid properties with the reasons
|
533
531
|
def list_invalid_properties
|
534
532
|
invalid_properties = Array.new
|
535
|
-
|
533
|
+
invalid_properties
|
536
534
|
end
|
537
535
|
|
538
536
|
# Check to see if the all the properties in the model are valid
|
539
537
|
# @return true if the model is valid
|
540
538
|
def valid?
|
541
|
-
user_status_validator = EnumAttributeValidator.new('String', [
|
539
|
+
user_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
542
540
|
return false unless user_status_validator.valid?(@user_status)
|
543
|
-
title_validator = EnumAttributeValidator.new('String', [
|
541
|
+
title_validator = EnumAttributeValidator.new('String', ['M', 'MME', 'MLLE'])
|
544
542
|
return false unless title_validator.valid?(@title)
|
545
|
-
|
543
|
+
true
|
546
544
|
end
|
547
545
|
|
548
546
|
# Custom attribute writer method checking allowed values (enum).
|
549
547
|
# @param [Object] user_status Object to be assigned
|
550
548
|
def user_status=(user_status)
|
551
|
-
validator = EnumAttributeValidator.new('String', [
|
549
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
552
550
|
unless validator.valid?(user_status)
|
553
|
-
fail ArgumentError,
|
551
|
+
fail ArgumentError, 'invalid value for "user_status", must be one of #{validator.allowable_values}.'
|
554
552
|
end
|
555
553
|
@user_status = user_status
|
556
554
|
end
|
@@ -558,9 +556,9 @@ module TreezorClient
|
|
558
556
|
# Custom attribute writer method checking allowed values (enum).
|
559
557
|
# @param [Object] title Object to be assigned
|
560
558
|
def title=(title)
|
561
|
-
validator = EnumAttributeValidator.new('String', [
|
559
|
+
validator = EnumAttributeValidator.new('String', ['M', 'MME', 'MLLE'])
|
562
560
|
unless validator.valid?(title)
|
563
|
-
fail ArgumentError,
|
561
|
+
fail ArgumentError, 'invalid value for "title", must be one of #{validator.allowable_values}.'
|
564
562
|
end
|
565
563
|
@title = title
|
566
564
|
end
|
@@ -652,7 +650,7 @@ module TreezorClient
|
|
652
650
|
# check to ensure the input is an array given that the the attribute
|
653
651
|
# is documented as an array but the input is not
|
654
652
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
655
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
653
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
656
654
|
end
|
657
655
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
658
656
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -734,7 +732,7 @@ module TreezorClient
|
|
734
732
|
# @return [Hash] Returns the value in the form of hash
|
735
733
|
def _to_hash(value)
|
736
734
|
if value.is_a?(Array)
|
737
|
-
value.compact.map{ |v| _to_hash(v) }
|
735
|
+
value.compact.map { |v| _to_hash(v) }
|
738
736
|
elsif value.is_a?(Hash)
|
739
737
|
{}.tap do |hash|
|
740
738
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -745,7 +743,5 @@ module TreezorClient
|
|
745
743
|
value
|
746
744
|
end
|
747
745
|
end
|
748
|
-
|
749
746
|
end
|
750
|
-
|
751
747
|
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 Virtualiban
|
18
17
|
attr_accessor :virtual_iban_id
|
19
18
|
|
@@ -37,7 +36,6 @@ module TreezorClient
|
|
37
36
|
|
38
37
|
attr_accessor :created_date
|
39
38
|
|
40
|
-
|
41
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
40
|
def self.attribute_map
|
43
41
|
{
|
@@ -78,7 +76,7 @@ module TreezorClient
|
|
78
76
|
return unless attributes.is_a?(Hash)
|
79
77
|
|
80
78
|
# convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
80
|
|
83
81
|
if attributes.has_key?(:'virtualIbanId')
|
84
82
|
self.virtual_iban_id = attributes[:'virtualIbanId']
|
@@ -123,20 +121,19 @@ module TreezorClient
|
|
123
121
|
if attributes.has_key?(:'createdDate')
|
124
122
|
self.created_date = attributes[:'createdDate']
|
125
123
|
end
|
126
|
-
|
127
124
|
end
|
128
125
|
|
129
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
130
127
|
# @return Array for valid properties with the reasons
|
131
128
|
def list_invalid_properties
|
132
129
|
invalid_properties = Array.new
|
133
|
-
|
130
|
+
invalid_properties
|
134
131
|
end
|
135
132
|
|
136
133
|
# Check to see if the all the properties in the model are valid
|
137
134
|
# @return true if the model is valid
|
138
135
|
def valid?
|
139
|
-
|
136
|
+
true
|
140
137
|
end
|
141
138
|
|
142
139
|
# Checks equality by comparing each attribute.
|
@@ -179,7 +176,7 @@ module TreezorClient
|
|
179
176
|
# check to ensure the input is an array given that the the attribute
|
180
177
|
# is documented as an array but the input is not
|
181
178
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
182
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
179
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
183
180
|
end
|
184
181
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
185
182
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -261,7 +258,7 @@ module TreezorClient
|
|
261
258
|
# @return [Hash] Returns the value in the form of hash
|
262
259
|
def _to_hash(value)
|
263
260
|
if value.is_a?(Array)
|
264
|
-
value.compact.map{ |v| _to_hash(v) }
|
261
|
+
value.compact.map { |v| _to_hash(v) }
|
265
262
|
elsif value.is_a?(Hash)
|
266
263
|
{}.tap do |hash|
|
267
264
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -272,7 +269,5 @@ module TreezorClient
|
|
272
269
|
value
|
273
270
|
end
|
274
271
|
end
|
275
|
-
|
276
272
|
end
|
277
|
-
|
278
273
|
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 Wallet
|
18
17
|
attr_accessor :wallet_id
|
19
18
|
|
@@ -181,7 +180,7 @@ module TreezorClient
|
|
181
180
|
return unless attributes.is_a?(Hash)
|
182
181
|
|
183
182
|
# convert string to symbol for hash key
|
184
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
183
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
185
184
|
|
186
185
|
if attributes.has_key?(:'walletId')
|
187
186
|
self.wallet_id = attributes[:'walletId']
|
@@ -302,30 +301,29 @@ module TreezorClient
|
|
302
301
|
if attributes.has_key?(:'totalRows')
|
303
302
|
self.total_rows = attributes[:'totalRows']
|
304
303
|
end
|
305
|
-
|
306
304
|
end
|
307
305
|
|
308
306
|
# Show invalid properties with the reasons. Usually used together with valid?
|
309
307
|
# @return Array for valid properties with the reasons
|
310
308
|
def list_invalid_properties
|
311
309
|
invalid_properties = Array.new
|
312
|
-
|
310
|
+
invalid_properties
|
313
311
|
end
|
314
312
|
|
315
313
|
# Check to see if the all the properties in the model are valid
|
316
314
|
# @return true if the model is valid
|
317
315
|
def valid?
|
318
|
-
wallet_status_validator = EnumAttributeValidator.new('String', [
|
316
|
+
wallet_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
319
317
|
return false unless wallet_status_validator.valid?(@wallet_status)
|
320
|
-
|
318
|
+
true
|
321
319
|
end
|
322
320
|
|
323
321
|
# Custom attribute writer method checking allowed values (enum).
|
324
322
|
# @param [Object] wallet_status Object to be assigned
|
325
323
|
def wallet_status=(wallet_status)
|
326
|
-
validator = EnumAttributeValidator.new('String', [
|
324
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
327
325
|
unless validator.valid?(wallet_status)
|
328
|
-
fail ArgumentError,
|
326
|
+
fail ArgumentError, 'invalid value for "wallet_status", must be one of #{validator.allowable_values}.'
|
329
327
|
end
|
330
328
|
@wallet_status = wallet_status
|
331
329
|
end
|
@@ -389,7 +387,7 @@ module TreezorClient
|
|
389
387
|
# check to ensure the input is an array given that the the attribute
|
390
388
|
# is documented as an array but the input is not
|
391
389
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
392
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
390
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
393
391
|
end
|
394
392
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
395
393
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -471,7 +469,7 @@ module TreezorClient
|
|
471
469
|
# @return [Hash] Returns the value in the form of hash
|
472
470
|
def _to_hash(value)
|
473
471
|
if value.is_a?(Array)
|
474
|
-
value.compact.map{ |v| _to_hash(v) }
|
472
|
+
value.compact.map { |v| _to_hash(v) }
|
475
473
|
elsif value.is_a?(Hash)
|
476
474
|
{}.tap do |hash|
|
477
475
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -482,7 +480,5 @@ module TreezorClient
|
|
482
480
|
value
|
483
481
|
end
|
484
482
|
end
|
485
|
-
|
486
483
|
end
|
487
|
-
|
488
484
|
end
|
data/lib/treezor_client.rb
CHANGED
Binary file
|
Binary file
|