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 InlineResponse20021
|
18
17
|
attr_accessor :payout_refunds
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'payoutRefunds')
|
44
42
|
if (value = attributes[:'payoutRefunds']).is_a?(Array)
|
45
43
|
self.payout_refunds = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20022
|
18
17
|
attr_accessor :transactions
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'transactions')
|
44
42
|
if (value = attributes[:'transactions']).is_a?(Array)
|
45
43
|
self.transactions = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20023
|
18
17
|
attr_accessor :transfers
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'transfers')
|
44
42
|
if (value = attributes[:'transfers']).is_a?(Array)
|
45
43
|
self.transfers = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20024
|
18
17
|
attr_accessor :transferrefunds
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'transferrefunds')
|
44
42
|
if (value = attributes[:'transferrefunds']).is_a?(Array)
|
45
43
|
self.transferrefunds = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20025
|
18
17
|
attr_accessor :transfers
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'transfers')
|
44
42
|
if (value = attributes[:'transfers']).is_a?(Array)
|
45
43
|
self.transfers = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20026
|
18
17
|
attr_accessor :users
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'users')
|
44
42
|
if (value = attributes[:'users']).is_a?(Array)
|
45
43
|
self.users = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20027
|
18
17
|
attr_accessor :wallets
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'wallets')
|
44
42
|
if (value = attributes[:'wallets']).is_a?(Array)
|
45
43
|
self.wallets = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse20028
|
18
17
|
attr_accessor :tax_residences
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'taxResidences')
|
44
42
|
if (value = attributes[:'taxResidences']).is_a?(Array)
|
45
43
|
self.tax_residences = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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 InlineResponse2003
|
18
17
|
attr_accessor :bankaccounts
|
19
18
|
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
@@ -38,27 +36,26 @@ module TreezorClient
|
|
38
36
|
return unless attributes.is_a?(Hash)
|
39
37
|
|
40
38
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
40
|
|
43
41
|
if attributes.has_key?(:'bankaccounts')
|
44
42
|
if (value = attributes[:'bankaccounts']).is_a?(Array)
|
45
43
|
self.bankaccounts = value
|
46
44
|
end
|
47
45
|
end
|
48
|
-
|
49
46
|
end
|
50
47
|
|
51
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
52
49
|
# @return Array for valid properties with the reasons
|
53
50
|
def list_invalid_properties
|
54
51
|
invalid_properties = Array.new
|
55
|
-
|
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
|