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 Body10
18
17
  # Name of the country restriction group
19
18
  attr_accessor :name
@@ -85,7 +84,7 @@ module TreezorClient
85
84
  return unless attributes.is_a?(Hash)
86
85
 
87
86
  # convert string to symbol for hash key
88
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
87
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
88
 
90
89
  if attributes.has_key?(:'name')
91
90
  self.name = attributes[:'name']
@@ -116,30 +115,29 @@ module TreezorClient
116
115
  self.fields = value
117
116
  end
118
117
  end
119
-
120
118
  end
121
119
 
122
120
  # Show invalid properties with the reasons. Usually used together with valid?
123
121
  # @return Array for valid properties with the reasons
124
122
  def list_invalid_properties
125
123
  invalid_properties = Array.new
126
- return invalid_properties
124
+ invalid_properties
127
125
  end
128
126
 
129
127
  # Check to see if the all the properties in the model are valid
130
128
  # @return true if the model is valid
131
129
  def valid?
132
- status_validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
130
+ status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
133
131
  return false unless status_validator.valid?(@status)
134
- return true
132
+ true
135
133
  end
136
134
 
137
135
  # Custom attribute writer method checking allowed values (enum).
138
136
  # @param [Object] status Object to be assigned
139
137
  def status=(status)
140
- validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
138
+ validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
141
139
  unless validator.valid?(status)
142
- fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
140
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
143
141
  end
144
142
  @status = status
145
143
  end
@@ -179,7 +177,7 @@ module TreezorClient
179
177
  # check to ensure the input is an array given that the the attribute
180
178
  # is documented as an array but the input is not
181
179
  if attributes[self.class.attribute_map[key]].is_a?(Array)
182
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
180
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
181
  end
184
182
  elsif !attributes[self.class.attribute_map[key]].nil?
185
183
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -261,7 +259,7 @@ module TreezorClient
261
259
  # @return [Hash] Returns the value in the form of hash
262
260
  def _to_hash(value)
263
261
  if value.is_a?(Array)
264
- value.compact.map{ |v| _to_hash(v) }
262
+ value.compact.map { |v| _to_hash(v) }
265
263
  elsif value.is_a?(Hash)
266
264
  {}.tap do |hash|
267
265
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -272,7 +270,5 @@ module TreezorClient
272
270
  value
273
271
  end
274
272
  end
275
-
276
273
  end
277
-
278
274
  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 Body2
18
17
  # Custom data that could be used by caller to search the instance.
19
18
  attr_accessor :tag
@@ -48,7 +47,6 @@ module TreezorClient
48
47
  # List of the object's properties you want to pick up.
49
48
  attr_accessor :fields
50
49
 
51
-
52
50
  # Attribute mapping from ruby-style variable name to JSON key.
53
51
  def self.attribute_map
54
52
  {
@@ -89,7 +87,7 @@ module TreezorClient
89
87
  return unless attributes.is_a?(Hash)
90
88
 
91
89
  # convert string to symbol for hash key
92
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
90
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
93
91
 
94
92
  if attributes.has_key?(:'tag')
95
93
  self.tag = attributes[:'tag']
@@ -142,20 +140,19 @@ module TreezorClient
142
140
  self.fields = value
143
141
  end
144
142
  end
145
-
146
143
  end
147
144
 
148
145
  # Show invalid properties with the reasons. Usually used together with valid?
149
146
  # @return Array for valid properties with the reasons
150
147
  def list_invalid_properties
151
148
  invalid_properties = Array.new
152
- return invalid_properties
149
+ invalid_properties
153
150
  end
154
151
 
155
152
  # Check to see if the all the properties in the model are valid
156
153
  # @return true if the model is valid
157
154
  def valid?
158
- return true
155
+ true
159
156
  end
160
157
 
161
158
  # Checks equality by comparing each attribute.
@@ -198,7 +195,7 @@ module TreezorClient
198
195
  # check to ensure the input is an array given that the the attribute
199
196
  # is documented as an array but the input is not
200
197
  if attributes[self.class.attribute_map[key]].is_a?(Array)
201
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
198
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
202
199
  end
203
200
  elsif !attributes[self.class.attribute_map[key]].nil?
204
201
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -280,7 +277,7 @@ module TreezorClient
280
277
  # @return [Hash] Returns the value in the form of hash
281
278
  def _to_hash(value)
282
279
  if value.is_a?(Array)
283
- value.compact.map{ |v| _to_hash(v) }
280
+ value.compact.map { |v| _to_hash(v) }
284
281
  elsif value.is_a?(Hash)
285
282
  {}.tap do |hash|
286
283
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -291,7 +288,5 @@ module TreezorClient
291
288
  value
292
289
  end
293
290
  end
294
-
295
291
  end
296
-
297
292
  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 Body3
18
17
  # ID of the card
19
18
  attr_accessor :card_id
@@ -21,7 +20,6 @@ module TreezorClient
21
20
  # Amout you want to add
22
21
  attr_accessor :amount
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -44,7 +42,7 @@ module TreezorClient
44
42
  return unless attributes.is_a?(Hash)
45
43
 
46
44
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
46
 
49
47
  if attributes.has_key?(:'cardId')
50
48
  self.card_id = attributes[:'cardId']
@@ -53,7 +51,6 @@ module TreezorClient
53
51
  if attributes.has_key?(:'amount')
54
52
  self.amount = attributes[:'amount']
55
53
  end
56
-
57
54
  end
58
55
 
59
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -61,14 +58,14 @@ module TreezorClient
61
58
  def list_invalid_properties
62
59
  invalid_properties = Array.new
63
60
  if @card_id.nil?
64
- invalid_properties.push("invalid value for 'card_id', card_id cannot be nil.")
61
+ invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
65
62
  end
66
63
 
67
64
  if @amount.nil?
68
- invalid_properties.push("invalid value for 'amount', amount cannot be nil.")
65
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
69
66
  end
70
67
 
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
@@ -76,7 +73,7 @@ module TreezorClient
76
73
  def valid?
77
74
  return false if @card_id.nil?
78
75
  return false if @amount.nil?
79
- return true
76
+ true
80
77
  end
81
78
 
82
79
  # Checks equality by comparing each attribute.
@@ -110,7 +107,7 @@ module TreezorClient
110
107
  # check to ensure the input is an array given that the the attribute
111
108
  # is documented as an array but the input is not
112
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
113
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
111
  end
115
112
  elsif !attributes[self.class.attribute_map[key]].nil?
116
113
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -192,7 +189,7 @@ module TreezorClient
192
189
  # @return [Hash] Returns the value in the form of hash
193
190
  def _to_hash(value)
194
191
  if value.is_a?(Array)
195
- value.compact.map{ |v| _to_hash(v) }
192
+ value.compact.map { |v| _to_hash(v) }
196
193
  elsif value.is_a?(Hash)
197
194
  {}.tap do |hash|
198
195
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -203,7 +200,5 @@ module TreezorClient
203
200
  value
204
201
  end
205
202
  end
206
-
207
203
  end
208
-
209
204
  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 Body4
18
17
  # ID of the card
19
18
  attr_accessor :card_id
@@ -21,7 +20,6 @@ module TreezorClient
21
20
  # Amout you want to check
22
21
  attr_accessor :amount
23
22
 
24
-
25
23
  # Attribute mapping from ruby-style variable name to JSON key.
26
24
  def self.attribute_map
27
25
  {
@@ -44,7 +42,7 @@ module TreezorClient
44
42
  return unless attributes.is_a?(Hash)
45
43
 
46
44
  # convert string to symbol for hash key
47
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
46
 
49
47
  if attributes.has_key?(:'cardId')
50
48
  self.card_id = attributes[:'cardId']
@@ -53,7 +51,6 @@ module TreezorClient
53
51
  if attributes.has_key?(:'amount')
54
52
  self.amount = attributes[:'amount']
55
53
  end
56
-
57
54
  end
58
55
 
59
56
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -61,14 +58,14 @@ module TreezorClient
61
58
  def list_invalid_properties
62
59
  invalid_properties = Array.new
63
60
  if @card_id.nil?
64
- invalid_properties.push("invalid value for 'card_id', card_id cannot be nil.")
61
+ invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
65
62
  end
66
63
 
67
64
  if @amount.nil?
68
- invalid_properties.push("invalid value for 'amount', amount cannot be nil.")
65
+ invalid_properties.push('invalid value for "amount", amount cannot be nil.')
69
66
  end
70
67
 
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
@@ -76,7 +73,7 @@ module TreezorClient
76
73
  def valid?
77
74
  return false if @card_id.nil?
78
75
  return false if @amount.nil?
79
- return true
76
+ true
80
77
  end
81
78
 
82
79
  # Checks equality by comparing each attribute.
@@ -110,7 +107,7 @@ module TreezorClient
110
107
  # check to ensure the input is an array given that the the attribute
111
108
  # is documented as an array but the input is not
112
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
113
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
111
  end
115
112
  elsif !attributes[self.class.attribute_map[key]].nil?
116
113
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -192,7 +189,7 @@ module TreezorClient
192
189
  # @return [Hash] Returns the value in the form of hash
193
190
  def _to_hash(value)
194
191
  if value.is_a?(Array)
195
- value.compact.map{ |v| _to_hash(v) }
192
+ value.compact.map { |v| _to_hash(v) }
196
193
  elsif value.is_a?(Hash)
197
194
  {}.tap do |hash|
198
195
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -203,7 +200,5 @@ module TreezorClient
203
200
  value
204
201
  end
205
202
  end
206
-
207
203
  end
208
-
209
204
  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 Body5
18
17
  # Name of the MCC restriction group
19
18
  attr_accessor :name
@@ -80,7 +79,7 @@ module TreezorClient
80
79
  return unless attributes.is_a?(Hash)
81
80
 
82
81
  # convert string to symbol for hash key
83
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
83
 
85
84
  if attributes.has_key?(:'name')
86
85
  self.name = attributes[:'name']
@@ -105,7 +104,6 @@ module TreezorClient
105
104
  if attributes.has_key?(:'startDate')
106
105
  self.start_date = attributes[:'startDate']
107
106
  end
108
-
109
107
  end
110
108
 
111
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,32 +111,32 @@ module TreezorClient
113
111
  def list_invalid_properties
114
112
  invalid_properties = Array.new
115
113
  if @name.nil?
116
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
114
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
117
115
  end
118
116
 
119
117
  if @mcc.nil?
120
- invalid_properties.push("invalid value for 'mcc', mcc cannot be nil.")
118
+ invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
121
119
  end
122
120
 
123
- return invalid_properties
121
+ invalid_properties
124
122
  end
125
123
 
126
124
  # Check to see if the all the properties in the model are valid
127
125
  # @return true if the model is valid
128
126
  def valid?
129
127
  return false if @name.nil?
130
- status_validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
128
+ status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
131
129
  return false unless status_validator.valid?(@status)
132
130
  return false if @mcc.nil?
133
- return true
131
+ true
134
132
  end
135
133
 
136
134
  # Custom attribute writer method checking allowed values (enum).
137
135
  # @param [Object] status Object to be assigned
138
136
  def status=(status)
139
- validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
137
+ validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
140
138
  unless validator.valid?(status)
141
- fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
139
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
142
140
  end
143
141
  @status = status
144
142
  end
@@ -177,7 +175,7 @@ module TreezorClient
177
175
  # check to ensure the input is an array given that the the attribute
178
176
  # is documented as an array but the input is not
179
177
  if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
178
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
181
179
  end
182
180
  elsif !attributes[self.class.attribute_map[key]].nil?
183
181
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -259,7 +257,7 @@ module TreezorClient
259
257
  # @return [Hash] Returns the value in the form of hash
260
258
  def _to_hash(value)
261
259
  if value.is_a?(Array)
262
- value.compact.map{ |v| _to_hash(v) }
260
+ value.compact.map { |v| _to_hash(v) }
263
261
  elsif value.is_a?(Hash)
264
262
  {}.tap do |hash|
265
263
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -270,7 +268,5 @@ module TreezorClient
270
268
  value
271
269
  end
272
270
  end
273
-
274
271
  end
275
-
276
272
  end
@@ -6,14 +6,13 @@
6
6
  OpenAPI spec version: 0.1.1
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.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 Body6
18
17
  # Name of the MCC restriction group
19
18
  attr_accessor :name
@@ -85,7 +84,7 @@ module TreezorClient
85
84
  return unless attributes.is_a?(Hash)
86
85
 
87
86
  # convert string to symbol for hash key
88
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
87
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
88
 
90
89
  if attributes.has_key?(:'name')
91
90
  self.name = attributes[:'name']
@@ -116,30 +115,29 @@ module TreezorClient
116
115
  self.fields = value
117
116
  end
118
117
  end
119
-
120
118
  end
121
119
 
122
120
  # Show invalid properties with the reasons. Usually used together with valid?
123
121
  # @return Array for valid properties with the reasons
124
122
  def list_invalid_properties
125
123
  invalid_properties = Array.new
126
- return invalid_properties
124
+ invalid_properties
127
125
  end
128
126
 
129
127
  # Check to see if the all the properties in the model are valid
130
128
  # @return true if the model is valid
131
129
  def valid?
132
- status_validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
130
+ status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
133
131
  return false unless status_validator.valid?(@status)
134
- return true
132
+ true
135
133
  end
136
134
 
137
135
  # Custom attribute writer method checking allowed values (enum).
138
136
  # @param [Object] status Object to be assigned
139
137
  def status=(status)
140
- validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
138
+ validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
141
139
  unless validator.valid?(status)
142
- fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
140
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
143
141
  end
144
142
  @status = status
145
143
  end
@@ -179,7 +177,7 @@ module TreezorClient
179
177
  # check to ensure the input is an array given that the the attribute
180
178
  # is documented as an array but the input is not
181
179
  if attributes[self.class.attribute_map[key]].is_a?(Array)
182
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
180
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
183
181
  end
184
182
  elsif !attributes[self.class.attribute_map[key]].nil?
185
183
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -261,7 +259,7 @@ module TreezorClient
261
259
  # @return [Hash] Returns the value in the form of hash
262
260
  def _to_hash(value)
263
261
  if value.is_a?(Array)
264
- value.compact.map{ |v| _to_hash(v) }
262
+ value.compact.map { |v| _to_hash(v) }
265
263
  elsif value.is_a?(Hash)
266
264
  {}.tap do |hash|
267
265
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -272,7 +270,5 @@ module TreezorClient
272
270
  value
273
271
  end
274
272
  end
275
-
276
273
  end
277
-
278
274
  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 Body7
18
17
  # Name of the Merchant ID group
19
18
  attr_accessor :name
@@ -80,7 +79,7 @@ module TreezorClient
80
79
  return unless attributes.is_a?(Hash)
81
80
 
82
81
  # convert string to symbol for hash key
83
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
83
 
85
84
  if attributes.has_key?(:'name')
86
85
  self.name = attributes[:'name']
@@ -105,7 +104,6 @@ module TreezorClient
105
104
  if attributes.has_key?(:'startDate')
106
105
  self.start_date = attributes[:'startDate']
107
106
  end
108
-
109
107
  end
110
108
 
111
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,32 +111,32 @@ module TreezorClient
113
111
  def list_invalid_properties
114
112
  invalid_properties = Array.new
115
113
  if @name.nil?
116
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
114
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
117
115
  end
118
116
 
119
117
  if @merchants.nil?
120
- invalid_properties.push("invalid value for 'merchants', merchants cannot be nil.")
118
+ invalid_properties.push('invalid value for "merchants", merchants cannot be nil.')
121
119
  end
122
120
 
123
- return invalid_properties
121
+ invalid_properties
124
122
  end
125
123
 
126
124
  # Check to see if the all the properties in the model are valid
127
125
  # @return true if the model is valid
128
126
  def valid?
129
127
  return false if @name.nil?
130
- status_validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
128
+ status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
131
129
  return false unless status_validator.valid?(@status)
132
130
  return false if @merchants.nil?
133
- return true
131
+ true
134
132
  end
135
133
 
136
134
  # Custom attribute writer method checking allowed values (enum).
137
135
  # @param [Object] status Object to be assigned
138
136
  def status=(status)
139
- validator = EnumAttributeValidator.new('String', ["VALIDATED", "PENDING", "CANCELED"])
137
+ validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
140
138
  unless validator.valid?(status)
141
- fail ArgumentError, "invalid value for 'status', must be one of #{validator.allowable_values}."
139
+ fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
142
140
  end
143
141
  @status = status
144
142
  end
@@ -177,7 +175,7 @@ module TreezorClient
177
175
  # check to ensure the input is an array given that the the attribute
178
176
  # is documented as an array but the input is not
179
177
  if attributes[self.class.attribute_map[key]].is_a?(Array)
180
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
178
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
181
179
  end
182
180
  elsif !attributes[self.class.attribute_map[key]].nil?
183
181
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -259,7 +257,7 @@ module TreezorClient
259
257
  # @return [Hash] Returns the value in the form of hash
260
258
  def _to_hash(value)
261
259
  if value.is_a?(Array)
262
- value.compact.map{ |v| _to_hash(v) }
260
+ value.compact.map { |v| _to_hash(v) }
263
261
  elsif value.is_a?(Hash)
264
262
  {}.tap do |hash|
265
263
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -270,7 +268,5 @@ module TreezorClient
270
268
  value
271
269
  end
272
270
  end
273
-
274
271
  end
275
-
276
272
  end