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