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,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 Error
18
17
  attr_accessor :error_code
19
18
 
@@ -21,7 +20,6 @@ module TreezorClient
21
20
 
22
21
  attr_accessor :additional_information
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -46,7 +44,7 @@ module TreezorClient
46
44
  return unless attributes.is_a?(Hash)
47
45
 
48
46
  # convert string to symbol for hash key
49
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
50
48
 
51
49
  if attributes.has_key?(:'errorCode')
52
50
  self.error_code = attributes[:'errorCode']
@@ -61,20 +59,19 @@ module TreezorClient
61
59
  self.additional_information = value
62
60
  end
63
61
  end
64
-
65
62
  end
66
63
 
67
64
  # Show invalid properties with the reasons. Usually used together with valid?
68
65
  # @return Array for valid properties with the reasons
69
66
  def list_invalid_properties
70
67
  invalid_properties = Array.new
71
- return invalid_properties
68
+ invalid_properties
72
69
  end
73
70
 
74
71
  # Check to see if the all the properties in the model are valid
75
72
  # @return true if the model is valid
76
73
  def valid?
77
- return true
74
+ true
78
75
  end
79
76
 
80
77
  # Checks equality by comparing each attribute.
@@ -109,7 +106,7 @@ module TreezorClient
109
106
  # check to ensure the input is an array given that the the attribute
110
107
  # is documented as an array but the input is not
111
108
  if attributes[self.class.attribute_map[key]].is_a?(Array)
112
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
109
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
110
  end
114
111
  elsif !attributes[self.class.attribute_map[key]].nil?
115
112
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -191,7 +188,7 @@ module TreezorClient
191
188
  # @return [Hash] Returns the value in the form of hash
192
189
  def _to_hash(value)
193
190
  if value.is_a?(Array)
194
- value.compact.map{ |v| _to_hash(v) }
191
+ value.compact.map { |v| _to_hash(v) }
195
192
  elsif value.is_a?(Hash)
196
193
  {}.tap do |hash|
197
194
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -202,7 +199,5 @@ module TreezorClient
202
199
  value
203
200
  end
204
201
  end
205
-
206
202
  end
207
-
208
203
  end
@@ -6,18 +6,16 @@
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 InlineResponse200
18
17
  attr_accessor :tavs
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,27 +36,26 @@ module TreezorClient
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'tavs')
44
42
  if (value = attributes[:'tavs']).is_a?(Array)
45
43
  self.tavs = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
52
49
  # @return Array for valid properties with the reasons
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
- return invalid_properties
52
+ invalid_properties
56
53
  end
57
54
 
58
55
  # Check to see if the all the properties in the model are valid
59
56
  # @return true if the model is valid
60
57
  def valid?
61
- return true
58
+ true
62
59
  end
63
60
 
64
61
  # Checks equality by comparing each attribute.
@@ -91,7 +88,7 @@ module TreezorClient
91
88
  # check to ensure the input is an array given that the the attribute
92
89
  # is documented as an array but the input is not
93
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
95
92
  end
96
93
  elsif !attributes[self.class.attribute_map[key]].nil?
97
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +170,7 @@ module TreezorClient
173
170
  # @return [Hash] Returns the value in the form of hash
174
171
  def _to_hash(value)
175
172
  if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
177
174
  elsif value.is_a?(Hash)
178
175
  {}.tap do |hash|
179
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,7 +181,5 @@ module TreezorClient
184
181
  value
185
182
  end
186
183
  end
187
-
188
184
  end
189
-
190
185
  end
@@ -6,18 +6,16 @@
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 InlineResponse2001
18
17
  attr_accessor :beneficiaries
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,27 +36,26 @@ module TreezorClient
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'beneficiaries')
44
42
  if (value = attributes[:'beneficiaries']).is_a?(Array)
45
43
  self.beneficiaries = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
52
49
  # @return Array for valid properties with the reasons
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
- return invalid_properties
52
+ invalid_properties
56
53
  end
57
54
 
58
55
  # Check to see if the all the properties in the model are valid
59
56
  # @return true if the model is valid
60
57
  def valid?
61
- return true
58
+ true
62
59
  end
63
60
 
64
61
  # Checks equality by comparing each attribute.
@@ -91,7 +88,7 @@ module TreezorClient
91
88
  # check to ensure the input is an array given that the the attribute
92
89
  # is documented as an array but the input is not
93
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
95
92
  end
96
93
  elsif !attributes[self.class.attribute_map[key]].nil?
97
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +170,7 @@ module TreezorClient
173
170
  # @return [Hash] Returns the value in the form of hash
174
171
  def _to_hash(value)
175
172
  if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
177
174
  elsif value.is_a?(Hash)
178
175
  {}.tap do |hash|
179
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,7 +181,5 @@ module TreezorClient
184
181
  value
185
182
  end
186
183
  end
187
-
188
184
  end
189
-
190
185
  end
@@ -6,18 +6,16 @@
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 InlineResponse20010
18
17
  attr_accessor :cardtransactions
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,27 +36,26 @@ module TreezorClient
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'cardtransactions')
44
42
  if (value = attributes[:'cardtransactions']).is_a?(Array)
45
43
  self.cardtransactions = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
52
49
  # @return Array for valid properties with the reasons
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
- return invalid_properties
52
+ invalid_properties
56
53
  end
57
54
 
58
55
  # Check to see if the all the properties in the model are valid
59
56
  # @return true if the model is valid
60
57
  def valid?
61
- return true
58
+ true
62
59
  end
63
60
 
64
61
  # Checks equality by comparing each attribute.
@@ -91,7 +88,7 @@ module TreezorClient
91
88
  # check to ensure the input is an array given that the the attribute
92
89
  # is documented as an array but the input is not
93
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
95
92
  end
96
93
  elsif !attributes[self.class.attribute_map[key]].nil?
97
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +170,7 @@ module TreezorClient
173
170
  # @return [Hash] Returns the value in the form of hash
174
171
  def _to_hash(value)
175
172
  if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
177
174
  elsif value.is_a?(Hash)
178
175
  {}.tap do |hash|
179
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,7 +181,5 @@ module TreezorClient
184
181
  value
185
182
  end
186
183
  end
187
-
188
184
  end
189
-
190
185
  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 InlineResponse20010Cardtransactions
18
17
  attr_accessor :cardtransaction_id
19
18
 
@@ -121,7 +120,6 @@ module TreezorClient
121
120
 
122
121
  attr_accessor :total_rows
123
122
 
124
-
125
123
  # Attribute mapping from ruby-style variable name to JSON key.
126
124
  def self.attribute_map
127
125
  {
@@ -242,7 +240,7 @@ module TreezorClient
242
240
  return unless attributes.is_a?(Hash)
243
241
 
244
242
  # convert string to symbol for hash key
245
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
243
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
246
244
 
247
245
  if attributes.has_key?(:'cardtransactionId')
248
246
  self.cardtransaction_id = attributes[:'cardtransactionId']
@@ -447,20 +445,19 @@ module TreezorClient
447
445
  if attributes.has_key?(:'totalRows')
448
446
  self.total_rows = attributes[:'totalRows']
449
447
  end
450
-
451
448
  end
452
449
 
453
450
  # Show invalid properties with the reasons. Usually used together with valid?
454
451
  # @return Array for valid properties with the reasons
455
452
  def list_invalid_properties
456
453
  invalid_properties = Array.new
457
- return invalid_properties
454
+ invalid_properties
458
455
  end
459
456
 
460
457
  # Check to see if the all the properties in the model are valid
461
458
  # @return true if the model is valid
462
459
  def valid?
463
- return true
460
+ true
464
461
  end
465
462
 
466
463
  # Checks equality by comparing each attribute.
@@ -543,7 +540,7 @@ module TreezorClient
543
540
  # check to ensure the input is an array given that the the attribute
544
541
  # is documented as an array but the input is not
545
542
  if attributes[self.class.attribute_map[key]].is_a?(Array)
546
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
543
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
547
544
  end
548
545
  elsif !attributes[self.class.attribute_map[key]].nil?
549
546
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -625,7 +622,7 @@ module TreezorClient
625
622
  # @return [Hash] Returns the value in the form of hash
626
623
  def _to_hash(value)
627
624
  if value.is_a?(Array)
628
- value.compact.map{ |v| _to_hash(v) }
625
+ value.compact.map { |v| _to_hash(v) }
629
626
  elsif value.is_a?(Hash)
630
627
  {}.tap do |hash|
631
628
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -636,7 +633,5 @@ module TreezorClient
636
633
  value
637
634
  end
638
635
  end
639
-
640
636
  end
641
-
642
637
  end
@@ -6,18 +6,16 @@
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 InlineResponse20011
18
17
  attr_accessor :cardtransactions
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,27 +36,26 @@ module TreezorClient
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'cardtransactions')
44
42
  if (value = attributes[:'cardtransactions']).is_a?(Array)
45
43
  self.cardtransactions = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
52
49
  # @return Array for valid properties with the reasons
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
- return invalid_properties
52
+ invalid_properties
56
53
  end
57
54
 
58
55
  # Check to see if the all the properties in the model are valid
59
56
  # @return true if the model is valid
60
57
  def valid?
61
- return true
58
+ true
62
59
  end
63
60
 
64
61
  # Checks equality by comparing each attribute.
@@ -91,7 +88,7 @@ module TreezorClient
91
88
  # check to ensure the input is an array given that the the attribute
92
89
  # is documented as an array but the input is not
93
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
95
92
  end
96
93
  elsif !attributes[self.class.attribute_map[key]].nil?
97
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +170,7 @@ module TreezorClient
173
170
  # @return [Hash] Returns the value in the form of hash
174
171
  def _to_hash(value)
175
172
  if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
177
174
  elsif value.is_a?(Hash)
178
175
  {}.tap do |hash|
179
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,7 +181,5 @@ module TreezorClient
184
181
  value
185
182
  end
186
183
  end
187
-
188
184
  end
189
-
190
185
  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 InlineResponse20011Cardtransactions
18
17
  attr_accessor :cardtransaction_id
19
18
 
@@ -121,7 +120,6 @@ module TreezorClient
121
120
 
122
121
  attr_accessor :total_rows
123
122
 
124
-
125
123
  # Attribute mapping from ruby-style variable name to JSON key.
126
124
  def self.attribute_map
127
125
  {
@@ -242,7 +240,7 @@ module TreezorClient
242
240
  return unless attributes.is_a?(Hash)
243
241
 
244
242
  # convert string to symbol for hash key
245
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
243
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
246
244
 
247
245
  if attributes.has_key?(:'cardtransactionId')
248
246
  self.cardtransaction_id = attributes[:'cardtransactionId']
@@ -447,20 +445,19 @@ module TreezorClient
447
445
  if attributes.has_key?(:'totalRows')
448
446
  self.total_rows = attributes[:'totalRows']
449
447
  end
450
-
451
448
  end
452
449
 
453
450
  # Show invalid properties with the reasons. Usually used together with valid?
454
451
  # @return Array for valid properties with the reasons
455
452
  def list_invalid_properties
456
453
  invalid_properties = Array.new
457
- return invalid_properties
454
+ invalid_properties
458
455
  end
459
456
 
460
457
  # Check to see if the all the properties in the model are valid
461
458
  # @return true if the model is valid
462
459
  def valid?
463
- return true
460
+ true
464
461
  end
465
462
 
466
463
  # Checks equality by comparing each attribute.
@@ -543,7 +540,7 @@ module TreezorClient
543
540
  # check to ensure the input is an array given that the the attribute
544
541
  # is documented as an array but the input is not
545
542
  if attributes[self.class.attribute_map[key]].is_a?(Array)
546
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
543
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
547
544
  end
548
545
  elsif !attributes[self.class.attribute_map[key]].nil?
549
546
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -625,7 +622,7 @@ module TreezorClient
625
622
  # @return [Hash] Returns the value in the form of hash
626
623
  def _to_hash(value)
627
624
  if value.is_a?(Array)
628
- value.compact.map{ |v| _to_hash(v) }
625
+ value.compact.map { |v| _to_hash(v) }
629
626
  elsif value.is_a?(Hash)
630
627
  {}.tap do |hash|
631
628
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -636,7 +633,5 @@ module TreezorClient
636
633
  value
637
634
  end
638
635
  end
639
-
640
636
  end
641
-
642
637
  end
@@ -6,18 +6,16 @@
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 InlineResponse20012
18
17
  attr_accessor :documents
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,27 +36,26 @@ module TreezorClient
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'documents')
44
42
  if (value = attributes[:'documents']).is_a?(Array)
45
43
  self.documents = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
52
49
  # @return Array for valid properties with the reasons
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
- return invalid_properties
52
+ invalid_properties
56
53
  end
57
54
 
58
55
  # Check to see if the all the properties in the model are valid
59
56
  # @return true if the model is valid
60
57
  def valid?
61
- return true
58
+ true
62
59
  end
63
60
 
64
61
  # Checks equality by comparing each attribute.
@@ -91,7 +88,7 @@ module TreezorClient
91
88
  # check to ensure the input is an array given that the the attribute
92
89
  # is documented as an array but the input is not
93
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
95
92
  end
96
93
  elsif !attributes[self.class.attribute_map[key]].nil?
97
94
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +170,7 @@ module TreezorClient
173
170
  # @return [Hash] Returns the value in the form of hash
174
171
  def _to_hash(value)
175
172
  if value.is_a?(Array)
176
- value.compact.map{ |v| _to_hash(v) }
173
+ value.compact.map { |v| _to_hash(v) }
177
174
  elsif value.is_a?(Hash)
178
175
  {}.tap do |hash|
179
176
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,7 +181,5 @@ module TreezorClient
184
181
  value
185
182
  end
186
183
  end
187
-
188
184
  end
189
-
190
185
  end