treezor_client 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/BalanceApi.md +3 -3
- data/docs/BankaccountApi.md +21 -21
- data/docs/BeneficiariesApi.md +18 -18
- data/docs/BusinessApi.md +22 -22
- data/docs/CardApi.md +66 -66
- data/docs/CardDigitalizationsApi.md +9 -9
- data/docs/CardReserveApi.md +9 -9
- data/docs/CardtransactionApi.md +5 -5
- data/docs/CountryRestrictionGroupsApi.md +16 -16
- data/docs/DocumentApi.md +23 -23
- data/docs/HeartbeatApi.md +3 -3
- data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
- data/docs/MandateApi.md +33 -33
- data/docs/MccRestrictionGroupsApi.md +16 -16
- data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
- data/docs/PayinApi.md +28 -28
- data/docs/PayinrefundApi.md +20 -20
- data/docs/PayoutApi.md +27 -27
- data/docs/PayoutRefundsApi.md +6 -6
- data/docs/TaxResidenceApi.md +9 -9
- data/docs/TransactionApi.md +14 -14
- data/docs/TransferApi.md +23 -23
- data/docs/TransferrefundApi.md +19 -19
- data/docs/UserApi.md +103 -103
- data/docs/VirtualibansApi.md +24 -24
- data/docs/WalletApi.md +45 -45
- data/lib/treezor_client/api/balance_api.rb +5 -6
- data/lib/treezor_client/api/bankaccount_api.rb +14 -18
- data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
- data/lib/treezor_client/api/business_api.rb +11 -13
- data/lib/treezor_client/api/card_api.rb +53 -76
- data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
- data/lib/treezor_client/api/card_reserve_api.rb +11 -14
- data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
- data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/document_api.rb +28 -33
- data/lib/treezor_client/api/heartbeat_api.rb +5 -6
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
- data/lib/treezor_client/api/mandate_api.rb +20 -26
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/payin_api.rb +14 -18
- data/lib/treezor_client/api/payinrefund_api.rb +14 -18
- data/lib/treezor_client/api/payout_api.rb +14 -18
- data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
- data/lib/treezor_client/api/tax_residence_api.rb +17 -22
- data/lib/treezor_client/api/transaction_api.rb +8 -10
- data/lib/treezor_client/api/transfer_api.rb +14 -18
- data/lib/treezor_client/api/transferrefund_api.rb +14 -18
- data/lib/treezor_client/api/user_api.rb +20 -26
- data/lib/treezor_client/api/virtualibans_api.rb +14 -18
- data/lib/treezor_client/api/wallet_api.rb +17 -22
- data/lib/treezor_client/api_client.rb +9 -9
- data/lib/treezor_client/api_error.rb +1 -1
- data/lib/treezor_client/configuration.rb +2 -2
- data/lib/treezor_client/models/balance.rb +6 -11
- data/lib/treezor_client/models/bankaccount.rb +9 -13
- data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
- data/lib/treezor_client/models/beneficiary.rb +6 -11
- data/lib/treezor_client/models/body.rb +11 -15
- data/lib/treezor_client/models/body_1.rb +8 -13
- data/lib/treezor_client/models/body_10.rb +9 -13
- data/lib/treezor_client/models/body_2.rb +6 -11
- data/lib/treezor_client/models/body_3.rb +8 -13
- data/lib/treezor_client/models/body_4.rb +8 -13
- data/lib/treezor_client/models/body_5.rb +11 -15
- data/lib/treezor_client/models/body_6.rb +9 -13
- data/lib/treezor_client/models/body_7.rb +11 -15
- data/lib/treezor_client/models/body_8.rb +9 -13
- data/lib/treezor_client/models/body_9.rb +11 -15
- data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
- data/lib/treezor_client/models/card.rb +9 -13
- data/lib/treezor_client/models/card_digitalization.rb +6 -11
- data/lib/treezor_client/models/country_restriction_group.rb +9 -13
- data/lib/treezor_client/models/document.rb +9 -13
- data/lib/treezor_client/models/error.rb +6 -11
- data/lib/treezor_client/models/inline_response_200.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
- data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
- data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
- data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
- data/lib/treezor_client/models/inline_response_default.rb +6 -11
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
- data/lib/treezor_client/models/mandate.rb +15 -19
- data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
- data/lib/treezor_client/models/payin.rb +9 -13
- data/lib/treezor_client/models/payinrefund.rb +9 -13
- data/lib/treezor_client/models/payout.rb +12 -16
- data/lib/treezor_client/models/payout_refund.rb +9 -13
- data/lib/treezor_client/models/tav.rb +6 -11
- data/lib/treezor_client/models/tax_residence.rb +6 -11
- data/lib/treezor_client/models/transaction.rb +6 -11
- data/lib/treezor_client/models/transfer.rb +9 -13
- data/lib/treezor_client/models/transferrefund.rb +9 -13
- data/lib/treezor_client/models/user.rb +12 -16
- data/lib/treezor_client/models/virtualiban.rb +6 -11
- data/lib/treezor_client/models/wallet.rb +9 -13
- data/lib/treezor_client/version.rb +2 -2
- data/lib/treezor_client.rb +1 -1
- data/pkg/treezor_client-1.3.0.gem +0 -0
- data/pkg/treezor_client-1.4.0.gem +0 -0
- data/treezor_api_spec.yaml +11 -11
- metadata +4 -2
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class MccRestrictionGroup
|
18
17
|
# MCC Group's id
|
19
18
|
attr_accessor :id
|
@@ -90,7 +89,7 @@ module TreezorClient
|
|
90
89
|
return unless attributes.is_a?(Hash)
|
91
90
|
|
92
91
|
# convert string to symbol for hash key
|
93
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
93
|
|
95
94
|
if attributes.has_key?(:'id')
|
96
95
|
self.id = attributes[:'id']
|
@@ -121,30 +120,29 @@ module TreezorClient
|
|
121
120
|
if attributes.has_key?(:'createdDate')
|
122
121
|
self.created_date = attributes[:'createdDate']
|
123
122
|
end
|
124
|
-
|
125
123
|
end
|
126
124
|
|
127
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
126
|
# @return Array for valid properties with the reasons
|
129
127
|
def list_invalid_properties
|
130
128
|
invalid_properties = Array.new
|
131
|
-
|
129
|
+
invalid_properties
|
132
130
|
end
|
133
131
|
|
134
132
|
# Check to see if the all the properties in the model are valid
|
135
133
|
# @return true if the model is valid
|
136
134
|
def valid?
|
137
|
-
status_validator = EnumAttributeValidator.new('String', [
|
135
|
+
status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
138
136
|
return false unless status_validator.valid?(@status)
|
139
|
-
|
137
|
+
true
|
140
138
|
end
|
141
139
|
|
142
140
|
# Custom attribute writer method checking allowed values (enum).
|
143
141
|
# @param [Object] status Object to be assigned
|
144
142
|
def status=(status)
|
145
|
-
validator = EnumAttributeValidator.new('String', [
|
143
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
146
144
|
unless validator.valid?(status)
|
147
|
-
fail ArgumentError,
|
145
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
148
146
|
end
|
149
147
|
@status = status
|
150
148
|
end
|
@@ -185,7 +183,7 @@ module TreezorClient
|
|
185
183
|
# check to ensure the input is an array given that the the attribute
|
186
184
|
# is documented as an array but the input is not
|
187
185
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
186
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
187
|
end
|
190
188
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
189
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -267,7 +265,7 @@ module TreezorClient
|
|
267
265
|
# @return [Hash] Returns the value in the form of hash
|
268
266
|
def _to_hash(value)
|
269
267
|
if value.is_a?(Array)
|
270
|
-
value.compact.map{ |v| _to_hash(v) }
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
271
269
|
elsif value.is_a?(Hash)
|
272
270
|
{}.tap do |hash|
|
273
271
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -278,7 +276,5 @@ module TreezorClient
|
|
278
276
|
value
|
279
277
|
end
|
280
278
|
end
|
281
|
-
|
282
279
|
end
|
283
|
-
|
284
280
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class MerchantIdRestrictionGroup
|
18
17
|
# Merchant ID Group's id
|
19
18
|
attr_accessor :id
|
@@ -90,7 +89,7 @@ module TreezorClient
|
|
90
89
|
return unless attributes.is_a?(Hash)
|
91
90
|
|
92
91
|
# convert string to symbol for hash key
|
93
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
94
93
|
|
95
94
|
if attributes.has_key?(:'id')
|
96
95
|
self.id = attributes[:'id']
|
@@ -121,30 +120,29 @@ module TreezorClient
|
|
121
120
|
if attributes.has_key?(:'createdDate')
|
122
121
|
self.created_date = attributes[:'createdDate']
|
123
122
|
end
|
124
|
-
|
125
123
|
end
|
126
124
|
|
127
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
128
126
|
# @return Array for valid properties with the reasons
|
129
127
|
def list_invalid_properties
|
130
128
|
invalid_properties = Array.new
|
131
|
-
|
129
|
+
invalid_properties
|
132
130
|
end
|
133
131
|
|
134
132
|
# Check to see if the all the properties in the model are valid
|
135
133
|
# @return true if the model is valid
|
136
134
|
def valid?
|
137
|
-
status_validator = EnumAttributeValidator.new('String', [
|
135
|
+
status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
138
136
|
return false unless status_validator.valid?(@status)
|
139
|
-
|
137
|
+
true
|
140
138
|
end
|
141
139
|
|
142
140
|
# Custom attribute writer method checking allowed values (enum).
|
143
141
|
# @param [Object] status Object to be assigned
|
144
142
|
def status=(status)
|
145
|
-
validator = EnumAttributeValidator.new('String', [
|
143
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
146
144
|
unless validator.valid?(status)
|
147
|
-
fail ArgumentError,
|
145
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
148
146
|
end
|
149
147
|
@status = status
|
150
148
|
end
|
@@ -185,7 +183,7 @@ module TreezorClient
|
|
185
183
|
# check to ensure the input is an array given that the the attribute
|
186
184
|
# is documented as an array but the input is not
|
187
185
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
186
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
189
187
|
end
|
190
188
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
191
189
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -267,7 +265,7 @@ module TreezorClient
|
|
267
265
|
# @return [Hash] Returns the value in the form of hash
|
268
266
|
def _to_hash(value)
|
269
267
|
if value.is_a?(Array)
|
270
|
-
value.compact.map{ |v| _to_hash(v) }
|
268
|
+
value.compact.map { |v| _to_hash(v) }
|
271
269
|
elsif value.is_a?(Hash)
|
272
270
|
{}.tap do |hash|
|
273
271
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -278,7 +276,5 @@ module TreezorClient
|
|
278
276
|
value
|
279
277
|
end
|
280
278
|
end
|
281
|
-
|
282
279
|
end
|
283
|
-
|
284
280
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Payin
|
18
17
|
attr_accessor :payin_id
|
19
18
|
|
@@ -249,7 +248,7 @@ module TreezorClient
|
|
249
248
|
return unless attributes.is_a?(Hash)
|
250
249
|
|
251
250
|
# convert string to symbol for hash key
|
252
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
251
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
253
252
|
|
254
253
|
if attributes.has_key?(:'payinId')
|
255
254
|
self.payin_id = attributes[:'payinId']
|
@@ -442,30 +441,29 @@ module TreezorClient
|
|
442
441
|
if attributes.has_key?(:'virtualIbanReference')
|
443
442
|
self.virtual_iban_reference = attributes[:'virtualIbanReference']
|
444
443
|
end
|
445
|
-
|
446
444
|
end
|
447
445
|
|
448
446
|
# Show invalid properties with the reasons. Usually used together with valid?
|
449
447
|
# @return Array for valid properties with the reasons
|
450
448
|
def list_invalid_properties
|
451
449
|
invalid_properties = Array.new
|
452
|
-
|
450
|
+
invalid_properties
|
453
451
|
end
|
454
452
|
|
455
453
|
# Check to see if the all the properties in the model are valid
|
456
454
|
# @return true if the model is valid
|
457
455
|
def valid?
|
458
|
-
payin_status_validator = EnumAttributeValidator.new('String', [
|
456
|
+
payin_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
459
457
|
return false unless payin_status_validator.valid?(@payin_status)
|
460
|
-
|
458
|
+
true
|
461
459
|
end
|
462
460
|
|
463
461
|
# Custom attribute writer method checking allowed values (enum).
|
464
462
|
# @param [Object] payin_status Object to be assigned
|
465
463
|
def payin_status=(payin_status)
|
466
|
-
validator = EnumAttributeValidator.new('String', [
|
464
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
467
465
|
unless validator.valid?(payin_status)
|
468
|
-
fail ArgumentError,
|
466
|
+
fail ArgumentError, 'invalid value for "payin_status", must be one of #{validator.allowable_values}.'
|
469
467
|
end
|
470
468
|
@payin_status = payin_status
|
471
469
|
end
|
@@ -547,7 +545,7 @@ module TreezorClient
|
|
547
545
|
# check to ensure the input is an array given that the the attribute
|
548
546
|
# is documented as an array but the input is not
|
549
547
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
550
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
548
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
551
549
|
end
|
552
550
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
553
551
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -629,7 +627,7 @@ module TreezorClient
|
|
629
627
|
# @return [Hash] Returns the value in the form of hash
|
630
628
|
def _to_hash(value)
|
631
629
|
if value.is_a?(Array)
|
632
|
-
value.compact.map{ |v| _to_hash(v) }
|
630
|
+
value.compact.map { |v| _to_hash(v) }
|
633
631
|
elsif value.is_a?(Hash)
|
634
632
|
{}.tap do |hash|
|
635
633
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -640,7 +638,5 @@ module TreezorClient
|
|
640
638
|
value
|
641
639
|
end
|
642
640
|
end
|
643
|
-
|
644
641
|
end
|
645
|
-
|
646
642
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Payinrefund
|
18
17
|
attr_accessor :payinrefund_id
|
19
18
|
|
@@ -101,7 +100,7 @@ module TreezorClient
|
|
101
100
|
return unless attributes.is_a?(Hash)
|
102
101
|
|
103
102
|
# convert string to symbol for hash key
|
104
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
103
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
105
104
|
|
106
105
|
if attributes.has_key?(:'payinrefundId')
|
107
106
|
self.payinrefund_id = attributes[:'payinrefundId']
|
@@ -146,30 +145,29 @@ module TreezorClient
|
|
146
145
|
if attributes.has_key?(:'totalRows')
|
147
146
|
self.total_rows = attributes[:'totalRows']
|
148
147
|
end
|
149
|
-
|
150
148
|
end
|
151
149
|
|
152
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
153
151
|
# @return Array for valid properties with the reasons
|
154
152
|
def list_invalid_properties
|
155
153
|
invalid_properties = Array.new
|
156
|
-
|
154
|
+
invalid_properties
|
157
155
|
end
|
158
156
|
|
159
157
|
# Check to see if the all the properties in the model are valid
|
160
158
|
# @return true if the model is valid
|
161
159
|
def valid?
|
162
|
-
payinrefund_status_validator = EnumAttributeValidator.new('String', [
|
160
|
+
payinrefund_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
163
161
|
return false unless payinrefund_status_validator.valid?(@payinrefund_status)
|
164
|
-
|
162
|
+
true
|
165
163
|
end
|
166
164
|
|
167
165
|
# Custom attribute writer method checking allowed values (enum).
|
168
166
|
# @param [Object] payinrefund_status Object to be assigned
|
169
167
|
def payinrefund_status=(payinrefund_status)
|
170
|
-
validator = EnumAttributeValidator.new('String', [
|
168
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
171
169
|
unless validator.valid?(payinrefund_status)
|
172
|
-
fail ArgumentError,
|
170
|
+
fail ArgumentError, 'invalid value for "payinrefund_status", must be one of #{validator.allowable_values}.'
|
173
171
|
end
|
174
172
|
@payinrefund_status = payinrefund_status
|
175
173
|
end
|
@@ -214,7 +212,7 @@ module TreezorClient
|
|
214
212
|
# check to ensure the input is an array given that the the attribute
|
215
213
|
# is documented as an array but the input is not
|
216
214
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
217
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
215
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
218
216
|
end
|
219
217
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
220
218
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -296,7 +294,7 @@ module TreezorClient
|
|
296
294
|
# @return [Hash] Returns the value in the form of hash
|
297
295
|
def _to_hash(value)
|
298
296
|
if value.is_a?(Array)
|
299
|
-
value.compact.map{ |v| _to_hash(v) }
|
297
|
+
value.compact.map { |v| _to_hash(v) }
|
300
298
|
elsif value.is_a?(Hash)
|
301
299
|
{}.tap do |hash|
|
302
300
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -307,7 +305,5 @@ module TreezorClient
|
|
307
305
|
value
|
308
306
|
end
|
309
307
|
end
|
310
|
-
|
311
308
|
end
|
312
|
-
|
313
309
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Payout
|
18
17
|
attr_accessor :payout_id
|
19
18
|
|
@@ -150,7 +149,7 @@ module TreezorClient
|
|
150
149
|
return unless attributes.is_a?(Hash)
|
151
150
|
|
152
151
|
# convert string to symbol for hash key
|
153
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
152
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
153
|
|
155
154
|
if attributes.has_key?(:'payoutId')
|
156
155
|
self.payout_id = attributes[:'payoutId']
|
@@ -243,32 +242,31 @@ module TreezorClient
|
|
243
242
|
if attributes.has_key?(:'totalRows')
|
244
243
|
self.total_rows = attributes[:'totalRows']
|
245
244
|
end
|
246
|
-
|
247
245
|
end
|
248
246
|
|
249
247
|
# Show invalid properties with the reasons. Usually used together with valid?
|
250
248
|
# @return Array for valid properties with the reasons
|
251
249
|
def list_invalid_properties
|
252
250
|
invalid_properties = Array.new
|
253
|
-
|
251
|
+
invalid_properties
|
254
252
|
end
|
255
253
|
|
256
254
|
# Check to see if the all the properties in the model are valid
|
257
255
|
# @return true if the model is valid
|
258
256
|
def valid?
|
259
|
-
payout_status_validator = EnumAttributeValidator.new('String', [
|
257
|
+
payout_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
260
258
|
return false unless payout_status_validator.valid?(@payout_status)
|
261
|
-
payout_type_validator = EnumAttributeValidator.new('String', [
|
259
|
+
payout_type_validator = EnumAttributeValidator.new('String', ['Credit Transfer', 'Direct Debit'])
|
262
260
|
return false unless payout_type_validator.valid?(@payout_type)
|
263
|
-
|
261
|
+
true
|
264
262
|
end
|
265
263
|
|
266
264
|
# Custom attribute writer method checking allowed values (enum).
|
267
265
|
# @param [Object] payout_status Object to be assigned
|
268
266
|
def payout_status=(payout_status)
|
269
|
-
validator = EnumAttributeValidator.new('String', [
|
267
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
270
268
|
unless validator.valid?(payout_status)
|
271
|
-
fail ArgumentError,
|
269
|
+
fail ArgumentError, 'invalid value for "payout_status", must be one of #{validator.allowable_values}.'
|
272
270
|
end
|
273
271
|
@payout_status = payout_status
|
274
272
|
end
|
@@ -276,9 +274,9 @@ module TreezorClient
|
|
276
274
|
# Custom attribute writer method checking allowed values (enum).
|
277
275
|
# @param [Object] payout_type Object to be assigned
|
278
276
|
def payout_type=(payout_type)
|
279
|
-
validator = EnumAttributeValidator.new('String', [
|
277
|
+
validator = EnumAttributeValidator.new('String', ['Credit Transfer', 'Direct Debit'])
|
280
278
|
unless validator.valid?(payout_type)
|
281
|
-
fail ArgumentError,
|
279
|
+
fail ArgumentError, 'invalid value for "payout_type", must be one of #{validator.allowable_values}.'
|
282
280
|
end
|
283
281
|
@payout_type = payout_type
|
284
282
|
end
|
@@ -335,7 +333,7 @@ module TreezorClient
|
|
335
333
|
# check to ensure the input is an array given that the the attribute
|
336
334
|
# is documented as an array but the input is not
|
337
335
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
338
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
336
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
339
337
|
end
|
340
338
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
341
339
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -417,7 +415,7 @@ module TreezorClient
|
|
417
415
|
# @return [Hash] Returns the value in the form of hash
|
418
416
|
def _to_hash(value)
|
419
417
|
if value.is_a?(Array)
|
420
|
-
value.compact.map{ |v| _to_hash(v) }
|
418
|
+
value.compact.map { |v| _to_hash(v) }
|
421
419
|
elsif value.is_a?(Hash)
|
422
420
|
{}.tap do |hash|
|
423
421
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -428,7 +426,5 @@ module TreezorClient
|
|
428
426
|
value
|
429
427
|
end
|
430
428
|
end
|
431
|
-
|
432
429
|
end
|
433
|
-
|
434
430
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class PayoutRefund
|
18
17
|
attr_accessor :id
|
19
18
|
|
@@ -115,7 +114,7 @@ module TreezorClient
|
|
115
114
|
return unless attributes.is_a?(Hash)
|
116
115
|
|
117
116
|
# convert string to symbol for hash key
|
118
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
117
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
119
118
|
|
120
119
|
if attributes.has_key?(:'id')
|
121
120
|
self.id = attributes[:'id']
|
@@ -176,30 +175,29 @@ module TreezorClient
|
|
176
175
|
if attributes.has_key?(:'modifiedDate')
|
177
176
|
self.modified_date = attributes[:'modifiedDate']
|
178
177
|
end
|
179
|
-
|
180
178
|
end
|
181
179
|
|
182
180
|
# Show invalid properties with the reasons. Usually used together with valid?
|
183
181
|
# @return Array for valid properties with the reasons
|
184
182
|
def list_invalid_properties
|
185
183
|
invalid_properties = Array.new
|
186
|
-
|
184
|
+
invalid_properties
|
187
185
|
end
|
188
186
|
|
189
187
|
# Check to see if the all the properties in the model are valid
|
190
188
|
# @return true if the model is valid
|
191
189
|
def valid?
|
192
|
-
information_status_validator = EnumAttributeValidator.new('String', [
|
190
|
+
information_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
193
191
|
return false unless information_status_validator.valid?(@information_status)
|
194
|
-
|
192
|
+
true
|
195
193
|
end
|
196
194
|
|
197
195
|
# Custom attribute writer method checking allowed values (enum).
|
198
196
|
# @param [Object] information_status Object to be assigned
|
199
197
|
def information_status=(information_status)
|
200
|
-
validator = EnumAttributeValidator.new('String', [
|
198
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
201
199
|
unless validator.valid?(information_status)
|
202
|
-
fail ArgumentError,
|
200
|
+
fail ArgumentError, 'invalid value for "information_status", must be one of #{validator.allowable_values}.'
|
203
201
|
end
|
204
202
|
@information_status = information_status
|
205
203
|
end
|
@@ -248,7 +246,7 @@ module TreezorClient
|
|
248
246
|
# check to ensure the input is an array given that the the attribute
|
249
247
|
# is documented as an array but the input is not
|
250
248
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
251
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
249
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
252
250
|
end
|
253
251
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
254
252
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -330,7 +328,7 @@ module TreezorClient
|
|
330
328
|
# @return [Hash] Returns the value in the form of hash
|
331
329
|
def _to_hash(value)
|
332
330
|
if value.is_a?(Array)
|
333
|
-
value.compact.map{ |v| _to_hash(v) }
|
331
|
+
value.compact.map { |v| _to_hash(v) }
|
334
332
|
elsif value.is_a?(Hash)
|
335
333
|
{}.tap do |hash|
|
336
334
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -341,7 +339,5 @@ module TreezorClient
|
|
341
339
|
value
|
342
340
|
end
|
343
341
|
end
|
344
|
-
|
345
342
|
end
|
346
|
-
|
347
343
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
|
-
|
17
16
|
class Tav
|
18
17
|
# Tav request Id
|
19
18
|
attr_accessor :id
|
@@ -33,7 +32,6 @@ module TreezorClient
|
|
33
32
|
|
34
33
|
attr_accessor :modified_date
|
35
34
|
|
36
|
-
|
37
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
36
|
def self.attribute_map
|
39
37
|
{
|
@@ -66,7 +64,7 @@ module TreezorClient
|
|
66
64
|
return unless attributes.is_a?(Hash)
|
67
65
|
|
68
66
|
# convert string to symbol for hash key
|
69
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
70
68
|
|
71
69
|
if attributes.has_key?(:'id')
|
72
70
|
self.id = attributes[:'id']
|
@@ -95,20 +93,19 @@ module TreezorClient
|
|
95
93
|
if attributes.has_key?(:'modifiedDate')
|
96
94
|
self.modified_date = attributes[:'modifiedDate']
|
97
95
|
end
|
98
|
-
|
99
96
|
end
|
100
97
|
|
101
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
102
99
|
# @return Array for valid properties with the reasons
|
103
100
|
def list_invalid_properties
|
104
101
|
invalid_properties = Array.new
|
105
|
-
|
102
|
+
invalid_properties
|
106
103
|
end
|
107
104
|
|
108
105
|
# Check to see if the all the properties in the model are valid
|
109
106
|
# @return true if the model is valid
|
110
107
|
def valid?
|
111
|
-
|
108
|
+
true
|
112
109
|
end
|
113
110
|
|
114
111
|
# Checks equality by comparing each attribute.
|
@@ -147,7 +144,7 @@ module TreezorClient
|
|
147
144
|
# check to ensure the input is an array given that the the attribute
|
148
145
|
# is documented as an array but the input is not
|
149
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
150
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
151
148
|
end
|
152
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
153
150
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -229,7 +226,7 @@ module TreezorClient
|
|
229
226
|
# @return [Hash] Returns the value in the form of hash
|
230
227
|
def _to_hash(value)
|
231
228
|
if value.is_a?(Array)
|
232
|
-
value.compact.map{ |v| _to_hash(v) }
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
233
230
|
elsif value.is_a?(Hash)
|
234
231
|
{}.tap do |hash|
|
235
232
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -240,7 +237,5 @@ module TreezorClient
|
|
240
237
|
value
|
241
238
|
end
|
242
239
|
end
|
243
|
-
|
244
240
|
end
|
245
|
-
|
246
241
|
end
|