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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/BalanceApi.md +3 -3
  4. data/docs/BankaccountApi.md +21 -21
  5. data/docs/BeneficiariesApi.md +18 -18
  6. data/docs/BusinessApi.md +22 -22
  7. data/docs/CardApi.md +66 -66
  8. data/docs/CardDigitalizationsApi.md +9 -9
  9. data/docs/CardReserveApi.md +9 -9
  10. data/docs/CardtransactionApi.md +5 -5
  11. data/docs/CountryRestrictionGroupsApi.md +16 -16
  12. data/docs/DocumentApi.md +23 -23
  13. data/docs/HeartbeatApi.md +3 -3
  14. data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
  15. data/docs/MandateApi.md +33 -33
  16. data/docs/MccRestrictionGroupsApi.md +16 -16
  17. data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
  18. data/docs/PayinApi.md +28 -28
  19. data/docs/PayinrefundApi.md +20 -20
  20. data/docs/PayoutApi.md +27 -27
  21. data/docs/PayoutRefundsApi.md +6 -6
  22. data/docs/TaxResidenceApi.md +9 -9
  23. data/docs/TransactionApi.md +14 -14
  24. data/docs/TransferApi.md +23 -23
  25. data/docs/TransferrefundApi.md +19 -19
  26. data/docs/UserApi.md +103 -103
  27. data/docs/VirtualibansApi.md +24 -24
  28. data/docs/WalletApi.md +45 -45
  29. data/lib/treezor_client/api/balance_api.rb +5 -6
  30. data/lib/treezor_client/api/bankaccount_api.rb +14 -18
  31. data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
  32. data/lib/treezor_client/api/business_api.rb +11 -13
  33. data/lib/treezor_client/api/card_api.rb +53 -76
  34. data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
  35. data/lib/treezor_client/api/card_reserve_api.rb +11 -14
  36. data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
  37. data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
  38. data/lib/treezor_client/api/document_api.rb +28 -33
  39. data/lib/treezor_client/api/heartbeat_api.rb +5 -6
  40. data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
  41. data/lib/treezor_client/api/mandate_api.rb +20 -26
  42. data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
  43. data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
  44. data/lib/treezor_client/api/payin_api.rb +14 -18
  45. data/lib/treezor_client/api/payinrefund_api.rb +14 -18
  46. data/lib/treezor_client/api/payout_api.rb +14 -18
  47. data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
  48. data/lib/treezor_client/api/tax_residence_api.rb +17 -22
  49. data/lib/treezor_client/api/transaction_api.rb +8 -10
  50. data/lib/treezor_client/api/transfer_api.rb +14 -18
  51. data/lib/treezor_client/api/transferrefund_api.rb +14 -18
  52. data/lib/treezor_client/api/user_api.rb +20 -26
  53. data/lib/treezor_client/api/virtualibans_api.rb +14 -18
  54. data/lib/treezor_client/api/wallet_api.rb +17 -22
  55. data/lib/treezor_client/api_client.rb +9 -9
  56. data/lib/treezor_client/api_error.rb +1 -1
  57. data/lib/treezor_client/configuration.rb +2 -2
  58. data/lib/treezor_client/models/balance.rb +6 -11
  59. data/lib/treezor_client/models/bankaccount.rb +9 -13
  60. data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
  61. data/lib/treezor_client/models/beneficiary.rb +6 -11
  62. data/lib/treezor_client/models/body.rb +11 -15
  63. data/lib/treezor_client/models/body_1.rb +8 -13
  64. data/lib/treezor_client/models/body_10.rb +9 -13
  65. data/lib/treezor_client/models/body_2.rb +6 -11
  66. data/lib/treezor_client/models/body_3.rb +8 -13
  67. data/lib/treezor_client/models/body_4.rb +8 -13
  68. data/lib/treezor_client/models/body_5.rb +11 -15
  69. data/lib/treezor_client/models/body_6.rb +9 -13
  70. data/lib/treezor_client/models/body_7.rb +11 -15
  71. data/lib/treezor_client/models/body_8.rb +9 -13
  72. data/lib/treezor_client/models/body_9.rb +11 -15
  73. data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
  74. data/lib/treezor_client/models/card.rb +9 -13
  75. data/lib/treezor_client/models/card_digitalization.rb +6 -11
  76. data/lib/treezor_client/models/country_restriction_group.rb +9 -13
  77. data/lib/treezor_client/models/document.rb +9 -13
  78. data/lib/treezor_client/models/error.rb +6 -11
  79. data/lib/treezor_client/models/inline_response_200.rb +6 -11
  80. data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
  81. data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
  82. data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
  83. data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
  84. data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
  85. data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
  86. data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
  87. data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
  88. data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
  89. data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
  90. data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
  91. data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
  92. data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
  93. data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
  94. data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
  95. data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
  96. data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
  97. data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
  98. data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
  99. data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
  100. data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
  101. data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
  102. data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
  103. data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
  104. data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
  105. data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
  106. data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
  107. data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
  108. data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
  109. data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
  110. data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
  111. data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
  112. data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
  113. data/lib/treezor_client/models/inline_response_default.rb +6 -11
  114. data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
  115. data/lib/treezor_client/models/mandate.rb +15 -19
  116. data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
  117. data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
  118. data/lib/treezor_client/models/payin.rb +9 -13
  119. data/lib/treezor_client/models/payinrefund.rb +9 -13
  120. data/lib/treezor_client/models/payout.rb +12 -16
  121. data/lib/treezor_client/models/payout_refund.rb +9 -13
  122. data/lib/treezor_client/models/tav.rb +6 -11
  123. data/lib/treezor_client/models/tax_residence.rb +6 -11
  124. data/lib/treezor_client/models/transaction.rb +6 -11
  125. data/lib/treezor_client/models/transfer.rb +9 -13
  126. data/lib/treezor_client/models/transferrefund.rb +9 -13
  127. data/lib/treezor_client/models/user.rb +12 -16
  128. data/lib/treezor_client/models/virtualiban.rb +6 -11
  129. data/lib/treezor_client/models/wallet.rb +9 -13
  130. data/lib/treezor_client/version.rb +2 -2
  131. data/lib/treezor_client.rb +1 -1
  132. data/pkg/treezor_client-1.3.0.gem +0 -0
  133. data/pkg/treezor_client-1.4.0.gem +0 -0
  134. data/treezor_api_spec.yaml +11 -11
  135. metadata +4 -2
@@ -6,7 +6,7 @@
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.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
@@ -33,7 +33,7 @@ module TreezorClient
33
33
  @config = config
34
34
  @user_agent = "Swagger-Codegen/#{VERSION}/ruby"
35
35
  @default_headers = {
36
- 'Content-Type' => "application/json",
36
+ 'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
38
38
  }
39
39
  end
@@ -137,7 +137,7 @@ module TreezorClient
137
137
  # @param [String] mime MIME
138
138
  # @return [Boolean] True if the MIME is application/json
139
139
  def json_mime?(mime)
140
- (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
140
+ (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
141
141
  end
142
142
 
143
143
  # Deserialize the response to the given return type.
@@ -201,12 +201,12 @@ module TreezorClient
201
201
  when /\AArray<(.+)>\z/
202
202
  # e.g. Array<Pet>
203
203
  sub_type = $1
204
- data.map {|item| convert_to_type(item, sub_type) }
204
+ data.map { |item| convert_to_type(item, sub_type) }
205
205
  when /\AHash\<String, (.+)\>\z/
206
206
  # e.g. Hash<String, Integer>
207
207
  sub_type = $1
208
208
  {}.tap do |hash|
209
- data.each {|k, v| hash[k] = convert_to_type(v, sub_type) }
209
+ data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
210
210
  end
211
211
  else
212
212
  # models, e.g. Pet
@@ -228,7 +228,7 @@ module TreezorClient
228
228
  encoding = nil
229
229
  request.on_headers do |response|
230
230
  content_disposition = response.headers['Content-Disposition']
231
- if content_disposition and content_disposition =~ /filename=/i
231
+ if content_disposition && content_disposition =~ /filename=/i
232
232
  filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
233
233
  prefix = sanitize_filename(filename)
234
234
  else
@@ -327,7 +327,7 @@ module TreezorClient
327
327
  return nil if accepts.nil? || accepts.empty?
328
328
  # use JSON when present, otherwise use all of the provided
329
329
  json_accept = accepts.find { |s| json_mime?(s) }
330
- return json_accept || accepts.join(',')
330
+ json_accept || accepts.join(',')
331
331
  end
332
332
 
333
333
  # Return Content-Type header based on an array of content types provided.
@@ -338,7 +338,7 @@ module TreezorClient
338
338
  return 'application/json' if content_types.nil? || content_types.empty?
339
339
  # use JSON when present, otherwise use the first one
340
340
  json_content_type = content_types.find { |s| json_mime?(s) }
341
- return json_content_type || content_types.first
341
+ json_content_type || content_types.first
342
342
  end
343
343
 
344
344
  # Convert object (array, hash, object, etc) to JSON string.
@@ -348,7 +348,7 @@ module TreezorClient
348
348
  return model if model.nil? || model.is_a?(String)
349
349
  local_body = nil
350
350
  if model.is_a?(Array)
351
- local_body = model.map{|m| object_to_hash(m) }
351
+ local_body = model.map { |m| object_to_hash(m) }
352
352
  else
353
353
  local_body = object_to_hash(model)
354
354
  end
@@ -6,7 +6,7 @@
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.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
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.3.1
9
+ Swagger Codegen version: 2.4.1
10
10
 
11
11
  =end
12
12
 
@@ -170,7 +170,7 @@ module TreezorClient
170
170
  def base_path=(base_path)
171
171
  # Add leading and trailing slashes to base_path
172
172
  @base_path = "/#{base_path}".gsub(/\/+/, '/')
173
- @base_path = "" if @base_path == "/"
173
+ @base_path = '' if @base_path == '/'
174
174
  end
175
175
 
176
176
  def base_url
@@ -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.3.1
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 Balance
18
17
  attr_accessor :wallet_id
19
18
 
@@ -28,7 +27,6 @@ module TreezorClient
28
27
  # Date YYYY-MM-DD HH:MM:SS
29
28
  attr_accessor :calculation_date
30
29
 
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  def self.attribute_map
34
32
  {
@@ -59,7 +57,7 @@ module TreezorClient
59
57
  return unless attributes.is_a?(Hash)
60
58
 
61
59
  # convert string to symbol for hash key
62
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
60
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
63
61
 
64
62
  if attributes.has_key?(:'walletId')
65
63
  self.wallet_id = attributes[:'walletId']
@@ -84,20 +82,19 @@ module TreezorClient
84
82
  if attributes.has_key?(:'calculationDate')
85
83
  self.calculation_date = attributes[:'calculationDate']
86
84
  end
87
-
88
85
  end
89
86
 
90
87
  # Show invalid properties with the reasons. Usually used together with valid?
91
88
  # @return Array for valid properties with the reasons
92
89
  def list_invalid_properties
93
90
  invalid_properties = Array.new
94
- return invalid_properties
91
+ invalid_properties
95
92
  end
96
93
 
97
94
  # Check to see if the all the properties in the model are valid
98
95
  # @return true if the model is valid
99
96
  def valid?
100
- return true
97
+ true
101
98
  end
102
99
 
103
100
  # Checks equality by comparing each attribute.
@@ -135,7 +132,7 @@ module TreezorClient
135
132
  # check to ensure the input is an array given that the the attribute
136
133
  # is documented as an array but the input is not
137
134
  if attributes[self.class.attribute_map[key]].is_a?(Array)
138
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
135
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
136
  end
140
137
  elsif !attributes[self.class.attribute_map[key]].nil?
141
138
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -217,7 +214,7 @@ module TreezorClient
217
214
  # @return [Hash] Returns the value in the form of hash
218
215
  def _to_hash(value)
219
216
  if value.is_a?(Array)
220
- value.compact.map{ |v| _to_hash(v) }
217
+ value.compact.map { |v| _to_hash(v) }
221
218
  elsif value.is_a?(Hash)
222
219
  {}.tap do |hash|
223
220
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -228,7 +225,5 @@ module TreezorClient
228
225
  value
229
226
  end
230
227
  end
231
-
232
228
  end
233
-
234
229
  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.3.1
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 Bankaccount
18
17
  attr_accessor :bankaccount_id
19
18
 
@@ -105,7 +104,7 @@ module TreezorClient
105
104
  return unless attributes.is_a?(Hash)
106
105
 
107
106
  # convert string to symbol for hash key
108
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
107
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
109
108
 
110
109
  if attributes.has_key?(:'bankaccountId')
111
110
  self.bankaccount_id = attributes[:'bankaccountId']
@@ -154,30 +153,29 @@ module TreezorClient
154
153
  if attributes.has_key?(:'totalRows')
155
154
  self.total_rows = attributes[:'totalRows']
156
155
  end
157
-
158
156
  end
159
157
 
160
158
  # Show invalid properties with the reasons. Usually used together with valid?
161
159
  # @return Array for valid properties with the reasons
162
160
  def list_invalid_properties
163
161
  invalid_properties = Array.new
164
- return invalid_properties
162
+ invalid_properties
165
163
  end
166
164
 
167
165
  # Check to see if the all the properties in the model are valid
168
166
  # @return true if the model is valid
169
167
  def valid?
170
- bankaccount_status_validator = EnumAttributeValidator.new('String', ["PENDING", "CANCELED", "VALIDATED"])
168
+ bankaccount_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
171
169
  return false unless bankaccount_status_validator.valid?(@bankaccount_status)
172
- return true
170
+ true
173
171
  end
174
172
 
175
173
  # Custom attribute writer method checking allowed values (enum).
176
174
  # @param [Object] bankaccount_status Object to be assigned
177
175
  def bankaccount_status=(bankaccount_status)
178
- validator = EnumAttributeValidator.new('String', ["PENDING", "CANCELED", "VALIDATED"])
176
+ validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
179
177
  unless validator.valid?(bankaccount_status)
180
- fail ArgumentError, "invalid value for 'bankaccount_status', must be one of #{validator.allowable_values}."
178
+ fail ArgumentError, 'invalid value for "bankaccount_status", must be one of #{validator.allowable_values}.'
181
179
  end
182
180
  @bankaccount_status = bankaccount_status
183
181
  end
@@ -223,7 +221,7 @@ module TreezorClient
223
221
  # check to ensure the input is an array given that the the attribute
224
222
  # is documented as an array but the input is not
225
223
  if attributes[self.class.attribute_map[key]].is_a?(Array)
226
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
224
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
227
225
  end
228
226
  elsif !attributes[self.class.attribute_map[key]].nil?
229
227
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -305,7 +303,7 @@ module TreezorClient
305
303
  # @return [Hash] Returns the value in the form of hash
306
304
  def _to_hash(value)
307
305
  if value.is_a?(Array)
308
- value.compact.map{ |v| _to_hash(v) }
306
+ value.compact.map { |v| _to_hash(v) }
309
307
  elsif value.is_a?(Hash)
310
308
  {}.tap do |hash|
311
309
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -316,7 +314,5 @@ module TreezorClient
316
314
  value
317
315
  end
318
316
  end
319
-
320
317
  end
321
-
322
318
  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.3.1
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 BeneficiariesSddB2bWhitelist
18
17
  # Unique Mandate Reference that unambiguiously identify a mandate signed between the user and the beneficiary
19
18
  attr_accessor :unique_mandate_reference
@@ -24,7 +23,6 @@ module TreezorClient
24
23
  # If present, the Direct Debit will be accepted only if the targeted wallet is the wallet with the given walletId. Without this value, the SDD can target any wallets of the user. With the value specified, only the explicitely authorized wallet can be targeted by SDD.
25
24
  attr_accessor :wallet_id
26
25
 
27
-
28
26
  # Attribute mapping from ruby-style variable name to JSON key.
29
27
  def self.attribute_map
30
28
  {
@@ -49,7 +47,7 @@ module TreezorClient
49
47
  return unless attributes.is_a?(Hash)
50
48
 
51
49
  # convert string to symbol for hash key
52
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
51
 
54
52
  if attributes.has_key?(:'uniqueMandateReference')
55
53
  self.unique_mandate_reference = attributes[:'uniqueMandateReference']
@@ -62,7 +60,6 @@ module TreezorClient
62
60
  if attributes.has_key?(:'walletId')
63
61
  self.wallet_id = attributes[:'walletId']
64
62
  end
65
-
66
63
  end
67
64
 
68
65
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,14 +67,14 @@ module TreezorClient
70
67
  def list_invalid_properties
71
68
  invalid_properties = Array.new
72
69
  if @unique_mandate_reference.nil?
73
- invalid_properties.push("invalid value for 'unique_mandate_reference', unique_mandate_reference cannot be nil.")
70
+ invalid_properties.push('invalid value for "unique_mandate_reference", unique_mandate_reference cannot be nil.')
74
71
  end
75
72
 
76
73
  if @is_recurrent.nil?
77
- invalid_properties.push("invalid value for 'is_recurrent', is_recurrent cannot be nil.")
74
+ invalid_properties.push('invalid value for "is_recurrent", is_recurrent cannot be nil.')
78
75
  end
79
76
 
80
- return invalid_properties
77
+ invalid_properties
81
78
  end
82
79
 
83
80
  # Check to see if the all the properties in the model are valid
@@ -85,7 +82,7 @@ module TreezorClient
85
82
  def valid?
86
83
  return false if @unique_mandate_reference.nil?
87
84
  return false if @is_recurrent.nil?
88
- return true
85
+ true
89
86
  end
90
87
 
91
88
  # Checks equality by comparing each attribute.
@@ -120,7 +117,7 @@ module TreezorClient
120
117
  # check to ensure the input is an array given that the the attribute
121
118
  # is documented as an array but the input is not
122
119
  if attributes[self.class.attribute_map[key]].is_a?(Array)
123
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
121
  end
125
122
  elsif !attributes[self.class.attribute_map[key]].nil?
126
123
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -202,7 +199,7 @@ module TreezorClient
202
199
  # @return [Hash] Returns the value in the form of hash
203
200
  def _to_hash(value)
204
201
  if value.is_a?(Array)
205
- value.compact.map{ |v| _to_hash(v) }
202
+ value.compact.map { |v| _to_hash(v) }
206
203
  elsif value.is_a?(Hash)
207
204
  {}.tap do |hash|
208
205
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -213,7 +210,5 @@ module TreezorClient
213
210
  value
214
211
  end
215
212
  end
216
-
217
213
  end
218
-
219
214
  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.3.1
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 Beneficiary
18
17
  # Custom data that could be used by caller to search the instance.
19
18
  attr_accessor :tag
@@ -53,7 +52,6 @@ module TreezorClient
53
52
 
54
53
  attr_accessor :sdd_core_known_unique_mandate_reference
55
54
 
56
-
57
55
  # Attribute mapping from ruby-style variable name to JSON key.
58
56
  def self.attribute_map
59
57
  {
@@ -98,7 +96,7 @@ module TreezorClient
98
96
  return unless attributes.is_a?(Hash)
99
97
 
100
98
  # convert string to symbol for hash key
101
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
99
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
102
100
 
103
101
  if attributes.has_key?(:'tag')
104
102
  self.tag = attributes[:'tag']
@@ -159,20 +157,19 @@ module TreezorClient
159
157
  self.sdd_core_known_unique_mandate_reference = value
160
158
  end
161
159
  end
162
-
163
160
  end
164
161
 
165
162
  # Show invalid properties with the reasons. Usually used together with valid?
166
163
  # @return Array for valid properties with the reasons
167
164
  def list_invalid_properties
168
165
  invalid_properties = Array.new
169
- return invalid_properties
166
+ invalid_properties
170
167
  end
171
168
 
172
169
  # Check to see if the all the properties in the model are valid
173
170
  # @return true if the model is valid
174
171
  def valid?
175
- return true
172
+ true
176
173
  end
177
174
 
178
175
  # Checks equality by comparing each attribute.
@@ -217,7 +214,7 @@ module TreezorClient
217
214
  # check to ensure the input is an array given that the the attribute
218
215
  # is documented as an array but the input is not
219
216
  if attributes[self.class.attribute_map[key]].is_a?(Array)
220
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
217
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
221
218
  end
222
219
  elsif !attributes[self.class.attribute_map[key]].nil?
223
220
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -299,7 +296,7 @@ module TreezorClient
299
296
  # @return [Hash] Returns the value in the form of hash
300
297
  def _to_hash(value)
301
298
  if value.is_a?(Array)
302
- value.compact.map{ |v| _to_hash(v) }
299
+ value.compact.map { |v| _to_hash(v) }
303
300
  elsif value.is_a?(Hash)
304
301
  {}.tap do |hash|
305
302
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -310,7 +307,5 @@ module TreezorClient
310
307
  value
311
308
  end
312
309
  end
313
-
314
310
  end
315
-
316
311
  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.3.1
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 Body
18
17
  # The id of the card on which to create an issuerInitiatedDigitizationData request
19
18
  attr_accessor :card_id
@@ -69,7 +68,7 @@ module TreezorClient
69
68
  return unless attributes.is_a?(Hash)
70
69
 
71
70
  # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
72
 
74
73
  if attributes.has_key?(:'cardId')
75
74
  self.card_id = attributes[:'cardId']
@@ -82,7 +81,6 @@ module TreezorClient
82
81
  if attributes.has_key?(:'additionnalData')
83
82
  self.additionnal_data = attributes[:'additionnalData']
84
83
  end
85
-
86
84
  end
87
85
 
88
86
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -90,14 +88,14 @@ module TreezorClient
90
88
  def list_invalid_properties
91
89
  invalid_properties = Array.new
92
90
  if @card_id.nil?
93
- invalid_properties.push("invalid value for 'card_id', card_id cannot be nil.")
91
+ invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
94
92
  end
95
93
 
96
94
  if @token_requestor.nil?
97
- invalid_properties.push("invalid value for 'token_requestor', token_requestor cannot be nil.")
95
+ invalid_properties.push('invalid value for "token_requestor", token_requestor cannot be nil.')
98
96
  end
99
97
 
100
- return invalid_properties
98
+ invalid_properties
101
99
  end
102
100
 
103
101
  # Check to see if the all the properties in the model are valid
@@ -105,17 +103,17 @@ module TreezorClient
105
103
  def valid?
106
104
  return false if @card_id.nil?
107
105
  return false if @token_requestor.nil?
108
- token_requestor_validator = EnumAttributeValidator.new('String', ["APPLE", "SAMSUNG", "GOOGLE"])
106
+ token_requestor_validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
109
107
  return false unless token_requestor_validator.valid?(@token_requestor)
110
- return true
108
+ true
111
109
  end
112
110
 
113
111
  # Custom attribute writer method checking allowed values (enum).
114
112
  # @param [Object] token_requestor Object to be assigned
115
113
  def token_requestor=(token_requestor)
116
- validator = EnumAttributeValidator.new('String', ["APPLE", "SAMSUNG", "GOOGLE"])
114
+ validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
117
115
  unless validator.valid?(token_requestor)
118
- fail ArgumentError, "invalid value for 'token_requestor', must be one of #{validator.allowable_values}."
116
+ fail ArgumentError, 'invalid value for "token_requestor", must be one of #{validator.allowable_values}.'
119
117
  end
120
118
  @token_requestor = token_requestor
121
119
  end
@@ -152,7 +150,7 @@ module TreezorClient
152
150
  # check to ensure the input is an array given that the the attribute
153
151
  # is documented as an array but the input is not
154
152
  if attributes[self.class.attribute_map[key]].is_a?(Array)
155
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
153
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
154
  end
157
155
  elsif !attributes[self.class.attribute_map[key]].nil?
158
156
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -234,7 +232,7 @@ module TreezorClient
234
232
  # @return [Hash] Returns the value in the form of hash
235
233
  def _to_hash(value)
236
234
  if value.is_a?(Array)
237
- value.compact.map{ |v| _to_hash(v) }
235
+ value.compact.map { |v| _to_hash(v) }
238
236
  elsif value.is_a?(Hash)
239
237
  {}.tap do |hash|
240
238
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -245,7 +243,5 @@ module TreezorClient
245
243
  value
246
244
  end
247
245
  end
248
-
249
246
  end
250
-
251
247
  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.3.1
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 Body1
18
17
  # Custom data that could be used by caller to search the instance.
19
18
  attr_accessor :tag
@@ -51,7 +50,6 @@ module TreezorClient
51
50
  # List of the object's properties you want to pick up.
52
51
  attr_accessor :fields
53
52
 
54
-
55
53
  # Attribute mapping from ruby-style variable name to JSON key.
56
54
  def self.attribute_map
57
55
  {
@@ -94,7 +92,7 @@ module TreezorClient
94
92
  return unless attributes.is_a?(Hash)
95
93
 
96
94
  # convert string to symbol for hash key
97
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
95
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
98
96
 
99
97
  if attributes.has_key?(:'tag')
100
98
  self.tag = attributes[:'tag']
@@ -151,7 +149,6 @@ module TreezorClient
151
149
  self.fields = value
152
150
  end
153
151
  end
154
-
155
152
  end
156
153
 
157
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -159,14 +156,14 @@ module TreezorClient
159
156
  def list_invalid_properties
160
157
  invalid_properties = Array.new
161
158
  if @user_id.nil?
162
- invalid_properties.push("invalid value for 'user_id', user_id cannot be nil.")
159
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
163
160
  end
164
161
 
165
162
  if @name.nil?
166
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
163
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
167
164
  end
168
165
 
169
- return invalid_properties
166
+ invalid_properties
170
167
  end
171
168
 
172
169
  # Check to see if the all the properties in the model are valid
@@ -174,7 +171,7 @@ module TreezorClient
174
171
  def valid?
175
172
  return false if @user_id.nil?
176
173
  return false if @name.nil?
177
- return true
174
+ true
178
175
  end
179
176
 
180
177
  # 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