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,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 InlineResponse20021
18
17
  attr_accessor :payout_refunds
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?(:'payoutRefunds')
44
42
  if (value = attributes[:'payoutRefunds']).is_a?(Array)
45
43
  self.payout_refunds = 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 InlineResponse20022
18
17
  attr_accessor :transactions
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?(:'transactions')
44
42
  if (value = attributes[:'transactions']).is_a?(Array)
45
43
  self.transactions = 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 InlineResponse20023
18
17
  attr_accessor :transfers
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?(:'transfers')
44
42
  if (value = attributes[:'transfers']).is_a?(Array)
45
43
  self.transfers = 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 InlineResponse20024
18
17
  attr_accessor :transferrefunds
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?(:'transferrefunds')
44
42
  if (value = attributes[:'transferrefunds']).is_a?(Array)
45
43
  self.transferrefunds = 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 InlineResponse20025
18
17
  attr_accessor :transfers
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?(:'transfers')
44
42
  if (value = attributes[:'transfers']).is_a?(Array)
45
43
  self.transfers = 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 InlineResponse20026
18
17
  attr_accessor :users
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?(:'users')
44
42
  if (value = attributes[:'users']).is_a?(Array)
45
43
  self.users = 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 InlineResponse20027
18
17
  attr_accessor :wallets
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?(:'wallets')
44
42
  if (value = attributes[:'wallets']).is_a?(Array)
45
43
  self.wallets = 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 InlineResponse20028
18
17
  attr_accessor :tax_residences
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?(:'taxResidences')
44
42
  if (value = attributes[:'taxResidences']).is_a?(Array)
45
43
  self.tax_residences = 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 InlineResponse2003
18
17
  attr_accessor :bankaccounts
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?(:'bankaccounts')
44
42
  if (value = attributes[:'bankaccounts']).is_a?(Array)
45
43
  self.bankaccounts = 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