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,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.
|
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 InlineResponse2007
|
18
17
|
attr_accessor :cardimages
|
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?(:'cardimages')
|
44
42
|
if (value = attributes[:'cardimages']).is_a?(Array)
|
45
43
|
self.cardimages = 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
|
-
|
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
|
-
|
58
|
+
true
|
62
59
|
end
|
63
60
|
|
64
61
|
# Checks equality by comparing each attribute.
|
@@ -91,7 +88,7 @@ module TreezorClient
|
|
91
88
|
# check to ensure the input is an array given that the the attribute
|
92
89
|
# is documented as an array but the input is not
|
93
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
95
92
|
end
|
96
93
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
94
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -173,7 +170,7 @@ module TreezorClient
|
|
173
170
|
# @return [Hash] Returns the value in the form of hash
|
174
171
|
def _to_hash(value)
|
175
172
|
if value.is_a?(Array)
|
176
|
-
value.compact.map{ |v| _to_hash(v) }
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
177
174
|
elsif value.is_a?(Hash)
|
178
175
|
{}.tap do |hash|
|
179
176
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -184,7 +181,5 @@ module TreezorClient
|
|
184
181
|
value
|
185
182
|
end
|
186
183
|
end
|
187
|
-
|
188
184
|
end
|
189
|
-
|
190
185
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
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 InlineResponse2007Cardimages
|
18
17
|
# Virtual card's id.
|
19
18
|
attr_accessor :id
|
@@ -24,7 +23,6 @@ module TreezorClient
|
|
24
23
|
# Virtual card's image
|
25
24
|
attr_accessor :file
|
26
25
|
|
27
|
-
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
27
|
def self.attribute_map
|
30
28
|
{
|
@@ -49,7 +47,7 @@ module TreezorClient
|
|
49
47
|
return unless attributes.is_a?(Hash)
|
50
48
|
|
51
49
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
51
|
|
54
52
|
if attributes.has_key?(:'id')
|
55
53
|
self.id = attributes[:'id']
|
@@ -62,7 +60,6 @@ module TreezorClient
|
|
62
60
|
if attributes.has_key?(:'file')
|
63
61
|
self.file = attributes[:'file']
|
64
62
|
end
|
65
|
-
|
66
63
|
end
|
67
64
|
|
68
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -70,25 +67,24 @@ module TreezorClient
|
|
70
67
|
def list_invalid_properties
|
71
68
|
invalid_properties = Array.new
|
72
69
|
if !@file.nil? && @file !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
73
|
-
invalid_properties.push(
|
70
|
+
invalid_properties.push('invalid value for "file", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.')
|
74
71
|
end
|
75
72
|
|
76
|
-
|
73
|
+
invalid_properties
|
77
74
|
end
|
78
75
|
|
79
76
|
# Check to see if the all the properties in the model are valid
|
80
77
|
# @return true if the model is valid
|
81
78
|
def valid?
|
82
79
|
return false if !@file.nil? && @file !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
83
|
-
|
80
|
+
true
|
84
81
|
end
|
85
82
|
|
86
83
|
# Custom attribute writer method with validation
|
87
84
|
# @param [Object] file Value to be assigned
|
88
85
|
def file=(file)
|
89
|
-
|
90
86
|
if !file.nil? && file !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
91
|
-
fail ArgumentError,
|
87
|
+
fail ArgumentError, 'invalid value for "file", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.'
|
92
88
|
end
|
93
89
|
|
94
90
|
@file = file
|
@@ -126,7 +122,7 @@ module TreezorClient
|
|
126
122
|
# check to ensure the input is an array given that the the attribute
|
127
123
|
# is documented as an array but the input is not
|
128
124
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
126
|
end
|
131
127
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
128
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -208,7 +204,7 @@ module TreezorClient
|
|
208
204
|
# @return [Hash] Returns the value in the form of hash
|
209
205
|
def _to_hash(value)
|
210
206
|
if value.is_a?(Array)
|
211
|
-
value.compact.map{ |v| _to_hash(v) }
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
212
208
|
elsif value.is_a?(Hash)
|
213
209
|
{}.tap do |hash|
|
214
210
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -219,7 +215,5 @@ module TreezorClient
|
|
219
215
|
value
|
220
216
|
end
|
221
217
|
end
|
222
|
-
|
223
218
|
end
|
224
|
-
|
225
219
|
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.
|
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 InlineResponse2008
|
18
17
|
attr_accessor :cards
|
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?(:'cards')
|
44
42
|
if (value = attributes[:'cards']).is_a?(Array)
|
45
43
|
self.cards = 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
|
-
|
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
|
-
|
58
|
+
true
|
62
59
|
end
|
63
60
|
|
64
61
|
# Checks equality by comparing each attribute.
|
@@ -91,7 +88,7 @@ module TreezorClient
|
|
91
88
|
# check to ensure the input is an array given that the the attribute
|
92
89
|
# is documented as an array but the input is not
|
93
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
95
92
|
end
|
96
93
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
94
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -173,7 +170,7 @@ module TreezorClient
|
|
173
170
|
# @return [Hash] Returns the value in the form of hash
|
174
171
|
def _to_hash(value)
|
175
172
|
if value.is_a?(Array)
|
176
|
-
value.compact.map{ |v| _to_hash(v) }
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
177
174
|
elsif value.is_a?(Hash)
|
178
175
|
{}.tap do |hash|
|
179
176
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -184,7 +181,5 @@ module TreezorClient
|
|
184
181
|
value
|
185
182
|
end
|
186
183
|
end
|
187
|
-
|
188
184
|
end
|
189
|
-
|
190
185
|
end
|
@@ -6,14 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
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 InlineResponse2009
|
18
17
|
# ID of the card
|
19
18
|
attr_accessor :card_id
|
@@ -24,7 +23,6 @@ module TreezorClient
|
|
24
23
|
# last calculation date
|
25
24
|
attr_accessor :calculation_date
|
26
25
|
|
27
|
-
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
27
|
def self.attribute_map
|
30
28
|
{
|
@@ -49,7 +47,7 @@ module TreezorClient
|
|
49
47
|
return unless attributes.is_a?(Hash)
|
50
48
|
|
51
49
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
51
|
|
54
52
|
if attributes.has_key?(:'cardId')
|
55
53
|
self.card_id = attributes[:'cardId']
|
@@ -62,20 +60,19 @@ module TreezorClient
|
|
62
60
|
if attributes.has_key?(:'calculationDate')
|
63
61
|
self.calculation_date = attributes[:'calculationDate']
|
64
62
|
end
|
65
|
-
|
66
63
|
end
|
67
64
|
|
68
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
69
66
|
# @return Array for valid properties with the reasons
|
70
67
|
def list_invalid_properties
|
71
68
|
invalid_properties = Array.new
|
72
|
-
|
69
|
+
invalid_properties
|
73
70
|
end
|
74
71
|
|
75
72
|
# Check to see if the all the properties in the model are valid
|
76
73
|
# @return true if the model is valid
|
77
74
|
def valid?
|
78
|
-
|
75
|
+
true
|
79
76
|
end
|
80
77
|
|
81
78
|
# 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,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.
|
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 InlineResponseDefault
|
18
17
|
attr_accessor :errors
|
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?(:'errors')
|
44
42
|
if (value = attributes[:'errors']).is_a?(Array)
|
45
43
|
self.errors = 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
|
-
|
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
|
-
|
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,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,7 +24,6 @@ module TreezorClient
|
|
24
24
|
# The nonce signature as provided by the Apple SDK. Required when tokenRequestor is APPLE
|
25
25
|
attr_accessor :nonce_signature
|
26
26
|
|
27
|
-
|
28
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
28
|
def self.attribute_map
|
30
29
|
{
|
@@ -49,7 +48,7 @@ module TreezorClient
|
|
49
48
|
return unless attributes.is_a?(Hash)
|
50
49
|
|
51
50
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
52
|
|
54
53
|
if attributes.has_key?(:'certificates')
|
55
54
|
if (value = attributes[:'certificates']).is_a?(Array)
|
@@ -64,7 +63,6 @@ module TreezorClient
|
|
64
63
|
if attributes.has_key?(:'nonceSignature')
|
65
64
|
self.nonce_signature = attributes[:'nonceSignature']
|
66
65
|
end
|
67
|
-
|
68
66
|
end
|
69
67
|
|
70
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -72,25 +70,24 @@ module TreezorClient
|
|
72
70
|
def list_invalid_properties
|
73
71
|
invalid_properties = Array.new
|
74
72
|
if !@nonce_signature.nil? && @nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
75
|
-
invalid_properties.push(
|
73
|
+
invalid_properties.push('invalid value for "nonce_signature", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.')
|
76
74
|
end
|
77
75
|
|
78
|
-
|
76
|
+
invalid_properties
|
79
77
|
end
|
80
78
|
|
81
79
|
# Check to see if the all the properties in the model are valid
|
82
80
|
# @return true if the model is valid
|
83
81
|
def valid?
|
84
82
|
return false if !@nonce_signature.nil? && @nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
85
|
-
|
83
|
+
true
|
86
84
|
end
|
87
85
|
|
88
86
|
# Custom attribute writer method with validation
|
89
87
|
# @param [Object] nonce_signature Value to be assigned
|
90
88
|
def nonce_signature=(nonce_signature)
|
91
|
-
|
92
89
|
if !nonce_signature.nil? && nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
93
|
-
fail ArgumentError,
|
90
|
+
fail ArgumentError, 'invalid value for "nonce_signature", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.'
|
94
91
|
end
|
95
92
|
|
96
93
|
@nonce_signature = nonce_signature
|
@@ -128,7 +125,7 @@ module TreezorClient
|
|
128
125
|
# check to ensure the input is an array given that the the attribute
|
129
126
|
# is documented as an array but the input is not
|
130
127
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
132
129
|
end
|
133
130
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
131
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -210,7 +207,7 @@ module TreezorClient
|
|
210
207
|
# @return [Hash] Returns the value in the form of hash
|
211
208
|
def _to_hash(value)
|
212
209
|
if value.is_a?(Array)
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
214
211
|
elsif value.is_a?(Hash)
|
215
212
|
{}.tap do |hash|
|
216
213
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -221,7 +218,5 @@ module TreezorClient
|
|
221
218
|
value
|
222
219
|
end
|
223
220
|
end
|
224
|
-
|
225
221
|
end
|
226
|
-
|
227
222
|
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 Mandate
|
18
17
|
attr_accessor :mandate_id
|
19
18
|
|
@@ -203,7 +202,7 @@ module TreezorClient
|
|
203
202
|
return unless attributes.is_a?(Hash)
|
204
203
|
|
205
204
|
# convert string to symbol for hash key
|
206
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
205
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
207
206
|
|
208
207
|
if attributes.has_key?(:'mandateId')
|
209
208
|
self.mandate_id = attributes[:'mandateId']
|
@@ -348,34 +347,33 @@ module TreezorClient
|
|
348
347
|
if attributes.has_key?(:'modifiedDate')
|
349
348
|
self.modified_date = attributes[:'modifiedDate']
|
350
349
|
end
|
351
|
-
|
352
350
|
end
|
353
351
|
|
354
352
|
# Show invalid properties with the reasons. Usually used together with valid?
|
355
353
|
# @return Array for valid properties with the reasons
|
356
354
|
def list_invalid_properties
|
357
355
|
invalid_properties = Array.new
|
358
|
-
|
356
|
+
invalid_properties
|
359
357
|
end
|
360
358
|
|
361
359
|
# Check to see if the all the properties in the model are valid
|
362
360
|
# @return true if the model is valid
|
363
361
|
def valid?
|
364
|
-
mandate_status_validator = EnumAttributeValidator.new('String', [
|
362
|
+
mandate_status_validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
365
363
|
return false unless mandate_status_validator.valid?(@mandate_status)
|
366
|
-
sequence_type_validator = EnumAttributeValidator.new('String', [
|
364
|
+
sequence_type_validator = EnumAttributeValidator.new('String', ['one-off', 'recurrent'])
|
367
365
|
return false unless sequence_type_validator.valid?(@sequence_type)
|
368
|
-
sdd_type_validator = EnumAttributeValidator.new('String', [
|
366
|
+
sdd_type_validator = EnumAttributeValidator.new('String', ['core', 'b2b'])
|
369
367
|
return false unless sdd_type_validator.valid?(@sdd_type)
|
370
|
-
|
368
|
+
true
|
371
369
|
end
|
372
370
|
|
373
371
|
# Custom attribute writer method checking allowed values (enum).
|
374
372
|
# @param [Object] mandate_status Object to be assigned
|
375
373
|
def mandate_status=(mandate_status)
|
376
|
-
validator = EnumAttributeValidator.new('String', [
|
374
|
+
validator = EnumAttributeValidator.new('String', ['PENDING', 'CANCELED', 'VALIDATED'])
|
377
375
|
unless validator.valid?(mandate_status)
|
378
|
-
fail ArgumentError,
|
376
|
+
fail ArgumentError, 'invalid value for "mandate_status", must be one of #{validator.allowable_values}.'
|
379
377
|
end
|
380
378
|
@mandate_status = mandate_status
|
381
379
|
end
|
@@ -383,9 +381,9 @@ module TreezorClient
|
|
383
381
|
# Custom attribute writer method checking allowed values (enum).
|
384
382
|
# @param [Object] sequence_type Object to be assigned
|
385
383
|
def sequence_type=(sequence_type)
|
386
|
-
validator = EnumAttributeValidator.new('String', [
|
384
|
+
validator = EnumAttributeValidator.new('String', ['one-off', 'recurrent'])
|
387
385
|
unless validator.valid?(sequence_type)
|
388
|
-
fail ArgumentError,
|
386
|
+
fail ArgumentError, 'invalid value for "sequence_type", must be one of #{validator.allowable_values}.'
|
389
387
|
end
|
390
388
|
@sequence_type = sequence_type
|
391
389
|
end
|
@@ -393,9 +391,9 @@ module TreezorClient
|
|
393
391
|
# Custom attribute writer method checking allowed values (enum).
|
394
392
|
# @param [Object] sdd_type Object to be assigned
|
395
393
|
def sdd_type=(sdd_type)
|
396
|
-
validator = EnumAttributeValidator.new('String', [
|
394
|
+
validator = EnumAttributeValidator.new('String', ['core', 'b2b'])
|
397
395
|
unless validator.valid?(sdd_type)
|
398
|
-
fail ArgumentError,
|
396
|
+
fail ArgumentError, 'invalid value for "sdd_type", must be one of #{validator.allowable_values}.'
|
399
397
|
end
|
400
398
|
@sdd_type = sdd_type
|
401
399
|
end
|
@@ -465,7 +463,7 @@ module TreezorClient
|
|
465
463
|
# check to ensure the input is an array given that the the attribute
|
466
464
|
# is documented as an array but the input is not
|
467
465
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
468
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
466
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
469
467
|
end
|
470
468
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
471
469
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -547,7 +545,7 @@ module TreezorClient
|
|
547
545
|
# @return [Hash] Returns the value in the form of hash
|
548
546
|
def _to_hash(value)
|
549
547
|
if value.is_a?(Array)
|
550
|
-
value.compact.map{ |v| _to_hash(v) }
|
548
|
+
value.compact.map { |v| _to_hash(v) }
|
551
549
|
elsif value.is_a?(Hash)
|
552
550
|
{}.tap do |hash|
|
553
551
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -558,7 +556,5 @@ module TreezorClient
|
|
558
556
|
value
|
559
557
|
end
|
560
558
|
end
|
561
|
-
|
562
559
|
end
|
563
|
-
|
564
560
|
end
|