treezor_client 1.5.0 → 1.6.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 +7 -7
- data/README.md +5 -5
- data/docs/BalanceApi.md +2 -2
- data/docs/BankaccountApi.md +8 -8
- data/docs/BeneficiariesApi.md +12 -12
- data/docs/Body.md +12 -3
- data/docs/Body1.md +3 -4
- data/docs/Body10.md +4 -5
- data/docs/Body2.md +2 -11
- data/docs/Body3.md +1 -1
- data/docs/Body4.md +5 -2
- data/docs/Body5.md +5 -4
- data/docs/Body6.md +3 -6
- data/docs/Body7.md +4 -4
- data/docs/Body8.md +5 -4
- data/docs/Body9.md +4 -4
- data/docs/BusinessApi.md +2 -2
- data/docs/CardApi.md +35 -35
- data/docs/CardDigitalizationsApi.md +8 -8
- data/docs/CardReserveApi.md +12 -12
- data/docs/CardtransactionApi.md +4 -4
- data/docs/CountryRestrictionGroupsApi.md +14 -14
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse20010Cardtransactions.md +3 -3
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2004Businessinformations.md +26 -0
- data/docs/InlineResponse2004Users.md +12 -0
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2006Cardimages.md +10 -0
- data/docs/InlineResponse2007.md +1 -1
- data/docs/InlineResponse2008.md +3 -1
- data/docs/InlineResponse2009.md +1 -3
- data/docs/InlineResponse2009Cardtransactions.md +58 -0
- data/docs/IssuerInitiatedDigitizationData.md +15 -0
- data/docs/IssuerInitiatedDigitizationDataApi.md +24 -24
- data/docs/MandateApi.md +15 -13
- data/docs/MccRestrictionGroupsApi.md +14 -14
- data/docs/MerchantIdRestrictionGroupsApi.md +14 -14
- data/docs/PayinrefundApi.md +8 -8
- data/docs/PayoutApi.md +8 -8
- data/docs/PayoutRefundsApi.md +2 -2
- data/docs/TaxResidenceApi.md +10 -10
- data/docs/VirtualibansApi.md +8 -8
- data/docs/WalletApi.md +12 -12
- data/lib/treezor_client/api/balance_api.rb +3 -3
- data/lib/treezor_client/api/bankaccount_api.rb +12 -12
- data/lib/treezor_client/api/beneficiaries_api.rb +16 -16
- data/lib/treezor_client/api/business_api.rb +3 -3
- data/lib/treezor_client/api/card_api.rb +53 -53
- data/lib/treezor_client/api/card_digitalizations_api.rb +12 -12
- data/lib/treezor_client/api/card_reserve_api.rb +13 -13
- data/lib/treezor_client/api/cardtransaction_api.rb +6 -6
- data/lib/treezor_client/api/country_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +26 -26
- data/lib/treezor_client/api/mandate_api.rb +21 -18
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +19 -19
- data/lib/treezor_client/api/payinrefund_api.rb +12 -12
- data/lib/treezor_client/api/payout_api.rb +12 -12
- data/lib/treezor_client/api/payout_refunds_api.rb +3 -3
- data/lib/treezor_client/api/tax_residence_api.rb +15 -15
- data/lib/treezor_client/api/virtualibans_api.rb +12 -12
- data/lib/treezor_client/api/wallet_api.rb +17 -17
- data/lib/treezor_client/models/body.rb +127 -62
- data/lib/treezor_client/models/body_1.rb +3 -23
- data/lib/treezor_client/models/body_10.rb +15 -27
- data/lib/treezor_client/models/body_2.rb +25 -113
- data/lib/treezor_client/models/body_3.rb +1 -1
- data/lib/treezor_client/models/body_4.rb +89 -21
- data/lib/treezor_client/models/body_5.rb +27 -25
- data/lib/treezor_client/models/body_6.rb +39 -66
- data/lib/treezor_client/models/body_7.rb +15 -15
- data/lib/treezor_client/models/body_8.rb +27 -15
- data/lib/treezor_client/models/body_9.rb +15 -15
- data/lib/treezor_client/models/inline_response_200.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_1.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +3 -3
- data/lib/treezor_client/models/inline_response_200_11.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_13.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_14.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_15.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_16.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_18.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_19.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_2.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_20.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_21.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_27.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_28.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_3.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_4.rb +1 -1
- data/lib/treezor_client/models/inline_response_200_4_businessinformations.rb +447 -0
- data/lib/treezor_client/models/inline_response_200_4_users.rb +258 -0
- data/lib/treezor_client/models/inline_response_200_5.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_6.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_6_cardimages.rb +219 -0
- data/lib/treezor_client/models/inline_response_200_7.rb +8 -8
- data/lib/treezor_client/models/inline_response_200_8.rb +28 -9
- data/lib/treezor_client/models/inline_response_200_9.rb +9 -28
- data/lib/treezor_client/models/inline_response_200_9_cardtransactions.rb +637 -0
- data/lib/treezor_client/models/issuer_initiated_digitization_data.rb +253 -0
- data/lib/treezor_client/version.rb +1 -1
- data/lib/treezor_client.rb +5 -5
- data/original_treezor_api_spec.yaml +13154 -0
- data/pkg/treezor_client-1.5.0.gem +0 -0
- data/spec/models/inline_response_200_4_businessinformations_spec.rb +169 -0
- data/spec/models/inline_response_200_4_users_spec.rb +69 -0
- data/spec/models/inline_response_200_6_cardimages_spec.rb +53 -0
- data/spec/models/inline_response_200_9_cardtransactions_spec.rb +341 -0
- data/spec/models/issuer_initiated_digitization_data_spec.rb +83 -0
- data/treezor_api_spec.yaml +2582 -2570
- metadata +25 -4
@@ -14,23 +14,13 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body6
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# The id of the card on which to create an issuerInitiatedDigitizationData request
|
18
|
+
attr_accessor :card_id
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# The Token Requestor also named wallet provider.
|
21
|
+
attr_accessor :token_requestor
|
22
22
|
|
23
|
-
|
24
|
-
attr_accessor :is_whitelist
|
25
|
-
|
26
|
-
# Array of MCC
|
27
|
-
attr_accessor :mcc
|
28
|
-
|
29
|
-
# The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
|
30
|
-
attr_accessor :start_date
|
31
|
-
|
32
|
-
# List of the object's properties you want to pick up.
|
33
|
-
attr_accessor :fields
|
23
|
+
attr_accessor :additionnal_data
|
34
24
|
|
35
25
|
class EnumAttributeValidator
|
36
26
|
attr_reader :datatype
|
@@ -57,24 +47,18 @@ module TreezorClient
|
|
57
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
48
|
def self.attribute_map
|
59
49
|
{
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'mcc' => :'mcc',
|
64
|
-
:'start_date' => :'startDate',
|
65
|
-
:'fields' => :'fields'
|
50
|
+
:'card_id' => :'cardId',
|
51
|
+
:'token_requestor' => :'tokenRequestor',
|
52
|
+
:'additionnal_data' => :'additionnalData'
|
66
53
|
}
|
67
54
|
end
|
68
55
|
|
69
56
|
# Attribute type mapping.
|
70
57
|
def self.swagger_types
|
71
58
|
{
|
72
|
-
:'
|
73
|
-
:'
|
74
|
-
:'
|
75
|
-
:'mcc' => :'Array<Integer>',
|
76
|
-
:'start_date' => :'String',
|
77
|
-
:'fields' => :'Array<String>'
|
59
|
+
:'card_id' => :'Integer',
|
60
|
+
:'token_requestor' => :'String',
|
61
|
+
:'additionnal_data' => :'IssuerInitiatedDigitizationDatasAdditionnalData'
|
78
62
|
}
|
79
63
|
end
|
80
64
|
|
@@ -86,34 +70,16 @@ module TreezorClient
|
|
86
70
|
# convert string to symbol for hash key
|
87
71
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
88
72
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.has_key?(:'status')
|
94
|
-
self.status = attributes[:'status']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.has_key?(:'isWhitelist')
|
98
|
-
self.is_whitelist = attributes[:'isWhitelist']
|
99
|
-
else
|
100
|
-
self.is_whitelist = true
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.has_key?(:'mcc')
|
104
|
-
if (value = attributes[:'mcc']).is_a?(Array)
|
105
|
-
self.mcc = value
|
106
|
-
end
|
73
|
+
if attributes.has_key?(:'cardId')
|
74
|
+
self.card_id = attributes[:'cardId']
|
107
75
|
end
|
108
76
|
|
109
|
-
if attributes.has_key?(:'
|
110
|
-
self.
|
77
|
+
if attributes.has_key?(:'tokenRequestor')
|
78
|
+
self.token_requestor = attributes[:'tokenRequestor']
|
111
79
|
end
|
112
80
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
|
115
|
-
self.fields = value
|
116
|
-
end
|
81
|
+
if attributes.has_key?(:'additionnalData')
|
82
|
+
self.additionnal_data = attributes[:'additionnalData']
|
117
83
|
end
|
118
84
|
end
|
119
85
|
|
@@ -121,25 +87,35 @@ module TreezorClient
|
|
121
87
|
# @return Array for valid properties with the reasons
|
122
88
|
def list_invalid_properties
|
123
89
|
invalid_properties = Array.new
|
90
|
+
if @card_id.nil?
|
91
|
+
invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
if @token_requestor.nil?
|
95
|
+
invalid_properties.push('invalid value for "token_requestor", token_requestor cannot be nil.')
|
96
|
+
end
|
97
|
+
|
124
98
|
invalid_properties
|
125
99
|
end
|
126
100
|
|
127
101
|
# Check to see if the all the properties in the model are valid
|
128
102
|
# @return true if the model is valid
|
129
103
|
def valid?
|
130
|
-
|
131
|
-
return false
|
104
|
+
return false if @card_id.nil?
|
105
|
+
return false if @token_requestor.nil?
|
106
|
+
token_requestor_validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
|
107
|
+
return false unless token_requestor_validator.valid?(@token_requestor)
|
132
108
|
true
|
133
109
|
end
|
134
110
|
|
135
111
|
# Custom attribute writer method checking allowed values (enum).
|
136
|
-
# @param [Object]
|
137
|
-
def
|
138
|
-
validator = EnumAttributeValidator.new('String', ['
|
139
|
-
unless validator.valid?(
|
140
|
-
fail ArgumentError, 'invalid value for "
|
112
|
+
# @param [Object] token_requestor Object to be assigned
|
113
|
+
def token_requestor=(token_requestor)
|
114
|
+
validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
|
115
|
+
unless validator.valid?(token_requestor)
|
116
|
+
fail ArgumentError, 'invalid value for "token_requestor", must be one of #{validator.allowable_values}.'
|
141
117
|
end
|
142
|
-
@
|
118
|
+
@token_requestor = token_requestor
|
143
119
|
end
|
144
120
|
|
145
121
|
# Checks equality by comparing each attribute.
|
@@ -147,12 +123,9 @@ module TreezorClient
|
|
147
123
|
def ==(o)
|
148
124
|
return true if self.equal?(o)
|
149
125
|
self.class == o.class &&
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
mcc == o.mcc &&
|
154
|
-
start_date == o.start_date &&
|
155
|
-
fields == o.fields
|
126
|
+
card_id == o.card_id &&
|
127
|
+
token_requestor == o.token_requestor &&
|
128
|
+
additionnal_data == o.additionnal_data
|
156
129
|
end
|
157
130
|
|
158
131
|
# @see the `==` method
|
@@ -164,7 +137,7 @@ module TreezorClient
|
|
164
137
|
# Calculates hash code according to all attributes.
|
165
138
|
# @return [Fixnum] Hash code
|
166
139
|
def hash
|
167
|
-
[
|
140
|
+
[card_id, token_requestor, additionnal_data].hash
|
168
141
|
end
|
169
142
|
|
170
143
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body7
|
17
|
-
# Name of the
|
17
|
+
# Name of the MCC restriction group
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Status of the
|
20
|
+
# Status of the MCC group
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
23
|
# determines whether it will be a black or a white list
|
24
24
|
attr_accessor :is_whitelist
|
25
25
|
|
26
|
-
# Array of
|
27
|
-
attr_accessor :
|
26
|
+
# Array of MCC
|
27
|
+
attr_accessor :mcc
|
28
28
|
|
29
|
-
# The date at which the
|
29
|
+
# The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
|
30
30
|
attr_accessor :start_date
|
31
31
|
|
32
32
|
class EnumAttributeValidator
|
@@ -57,7 +57,7 @@ module TreezorClient
|
|
57
57
|
:'name' => :'name',
|
58
58
|
:'status' => :'status',
|
59
59
|
:'is_whitelist' => :'isWhitelist',
|
60
|
-
:'
|
60
|
+
:'mcc' => :'mcc',
|
61
61
|
:'start_date' => :'startDate'
|
62
62
|
}
|
63
63
|
end
|
@@ -68,7 +68,7 @@ module TreezorClient
|
|
68
68
|
:'name' => :'String',
|
69
69
|
:'status' => :'String',
|
70
70
|
:'is_whitelist' => :'BOOLEAN',
|
71
|
-
:'
|
71
|
+
:'mcc' => :'Array<Integer>',
|
72
72
|
:'start_date' => :'String'
|
73
73
|
}
|
74
74
|
end
|
@@ -95,9 +95,9 @@ module TreezorClient
|
|
95
95
|
self.is_whitelist = true
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes.has_key?(:'
|
99
|
-
if (value = attributes[:'
|
100
|
-
self.
|
98
|
+
if attributes.has_key?(:'mcc')
|
99
|
+
if (value = attributes[:'mcc']).is_a?(Array)
|
100
|
+
self.mcc = value
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -114,8 +114,8 @@ module TreezorClient
|
|
114
114
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
115
|
end
|
116
116
|
|
117
|
-
if @
|
118
|
-
invalid_properties.push('invalid value for "
|
117
|
+
if @mcc.nil?
|
118
|
+
invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
|
119
119
|
end
|
120
120
|
|
121
121
|
invalid_properties
|
@@ -127,7 +127,7 @@ module TreezorClient
|
|
127
127
|
return false if @name.nil?
|
128
128
|
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
129
129
|
return false unless status_validator.valid?(@status)
|
130
|
-
return false if @
|
130
|
+
return false if @mcc.nil?
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
@@ -149,7 +149,7 @@ module TreezorClient
|
|
149
149
|
name == o.name &&
|
150
150
|
status == o.status &&
|
151
151
|
is_whitelist == o.is_whitelist &&
|
152
|
-
|
152
|
+
mcc == o.mcc &&
|
153
153
|
start_date == o.start_date
|
154
154
|
end
|
155
155
|
|
@@ -162,7 +162,7 @@ module TreezorClient
|
|
162
162
|
# Calculates hash code according to all attributes.
|
163
163
|
# @return [Fixnum] Hash code
|
164
164
|
def hash
|
165
|
-
[name, status, is_whitelist,
|
165
|
+
[name, status, is_whitelist, mcc, start_date].hash
|
166
166
|
end
|
167
167
|
|
168
168
|
# Builds the object from hash
|
@@ -14,21 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body8
|
17
|
-
# Name of the
|
17
|
+
# Name of the MCC restriction group
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Status of the
|
20
|
+
# Status of the MCC group
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
23
|
# determines whether it will be a black or a white list
|
24
24
|
attr_accessor :is_whitelist
|
25
25
|
|
26
|
-
# Array of
|
27
|
-
attr_accessor :
|
26
|
+
# Array of MCC
|
27
|
+
attr_accessor :mcc
|
28
28
|
|
29
|
-
# The date at which the
|
29
|
+
# The date at which the MCC restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
|
30
30
|
attr_accessor :start_date
|
31
31
|
|
32
|
+
# List of the object's properties you want to pick up.
|
33
|
+
attr_accessor :fields
|
34
|
+
|
32
35
|
class EnumAttributeValidator
|
33
36
|
attr_reader :datatype
|
34
37
|
attr_reader :allowable_values
|
@@ -57,8 +60,9 @@ module TreezorClient
|
|
57
60
|
:'name' => :'name',
|
58
61
|
:'status' => :'status',
|
59
62
|
:'is_whitelist' => :'isWhitelist',
|
60
|
-
:'
|
61
|
-
:'start_date' => :'startDate'
|
63
|
+
:'mcc' => :'mcc',
|
64
|
+
:'start_date' => :'startDate',
|
65
|
+
:'fields' => :'fields'
|
62
66
|
}
|
63
67
|
end
|
64
68
|
|
@@ -68,8 +72,9 @@ module TreezorClient
|
|
68
72
|
:'name' => :'String',
|
69
73
|
:'status' => :'String',
|
70
74
|
:'is_whitelist' => :'BOOLEAN',
|
71
|
-
:'
|
72
|
-
:'start_date' => :'String'
|
75
|
+
:'mcc' => :'Array<Integer>',
|
76
|
+
:'start_date' => :'String',
|
77
|
+
:'fields' => :'Array<String>'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -95,15 +100,21 @@ module TreezorClient
|
|
95
100
|
self.is_whitelist = true
|
96
101
|
end
|
97
102
|
|
98
|
-
if attributes.has_key?(:'
|
99
|
-
if (value = attributes[:'
|
100
|
-
self.
|
103
|
+
if attributes.has_key?(:'mcc')
|
104
|
+
if (value = attributes[:'mcc']).is_a?(Array)
|
105
|
+
self.mcc = value
|
101
106
|
end
|
102
107
|
end
|
103
108
|
|
104
109
|
if attributes.has_key?(:'startDate')
|
105
110
|
self.start_date = attributes[:'startDate']
|
106
111
|
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'fields')
|
114
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
115
|
+
self.fields = value
|
116
|
+
end
|
117
|
+
end
|
107
118
|
end
|
108
119
|
|
109
120
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -139,8 +150,9 @@ module TreezorClient
|
|
139
150
|
name == o.name &&
|
140
151
|
status == o.status &&
|
141
152
|
is_whitelist == o.is_whitelist &&
|
142
|
-
|
143
|
-
start_date == o.start_date
|
153
|
+
mcc == o.mcc &&
|
154
|
+
start_date == o.start_date &&
|
155
|
+
fields == o.fields
|
144
156
|
end
|
145
157
|
|
146
158
|
# @see the `==` method
|
@@ -152,7 +164,7 @@ module TreezorClient
|
|
152
164
|
# Calculates hash code according to all attributes.
|
153
165
|
# @return [Fixnum] Hash code
|
154
166
|
def hash
|
155
|
-
[name, status, is_whitelist,
|
167
|
+
[name, status, is_whitelist, mcc, start_date, fields].hash
|
156
168
|
end
|
157
169
|
|
158
170
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body9
|
17
|
-
# Name of the
|
17
|
+
# Name of the Merchant ID group
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Status of the
|
20
|
+
# Status of the Merchant ID group
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
23
|
# determines whether it will be a black or a white list
|
24
24
|
attr_accessor :is_whitelist
|
25
25
|
|
26
|
-
# Array of
|
27
|
-
attr_accessor :
|
26
|
+
# Array of Merchant ID
|
27
|
+
attr_accessor :merchants
|
28
28
|
|
29
|
-
# The date at which the
|
29
|
+
# The date at which the Merchant ID restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
|
30
30
|
attr_accessor :start_date
|
31
31
|
|
32
32
|
class EnumAttributeValidator
|
@@ -57,7 +57,7 @@ module TreezorClient
|
|
57
57
|
:'name' => :'name',
|
58
58
|
:'status' => :'status',
|
59
59
|
:'is_whitelist' => :'isWhitelist',
|
60
|
-
:'
|
60
|
+
:'merchants' => :'merchants',
|
61
61
|
:'start_date' => :'startDate'
|
62
62
|
}
|
63
63
|
end
|
@@ -68,7 +68,7 @@ module TreezorClient
|
|
68
68
|
:'name' => :'String',
|
69
69
|
:'status' => :'String',
|
70
70
|
:'is_whitelist' => :'BOOLEAN',
|
71
|
-
:'
|
71
|
+
:'merchants' => :'Array<String>',
|
72
72
|
:'start_date' => :'String'
|
73
73
|
}
|
74
74
|
end
|
@@ -95,9 +95,9 @@ module TreezorClient
|
|
95
95
|
self.is_whitelist = true
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes.has_key?(:'
|
99
|
-
if (value = attributes[:'
|
100
|
-
self.
|
98
|
+
if attributes.has_key?(:'merchants')
|
99
|
+
if (value = attributes[:'merchants']).is_a?(Array)
|
100
|
+
self.merchants = value
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -114,8 +114,8 @@ module TreezorClient
|
|
114
114
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
115
|
end
|
116
116
|
|
117
|
-
if @
|
118
|
-
invalid_properties.push('invalid value for "
|
117
|
+
if @merchants.nil?
|
118
|
+
invalid_properties.push('invalid value for "merchants", merchants cannot be nil.')
|
119
119
|
end
|
120
120
|
|
121
121
|
invalid_properties
|
@@ -127,7 +127,7 @@ module TreezorClient
|
|
127
127
|
return false if @name.nil?
|
128
128
|
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
129
129
|
return false unless status_validator.valid?(@status)
|
130
|
-
return false if @
|
130
|
+
return false if @merchants.nil?
|
131
131
|
true
|
132
132
|
end
|
133
133
|
|
@@ -149,7 +149,7 @@ module TreezorClient
|
|
149
149
|
name == o.name &&
|
150
150
|
status == o.status &&
|
151
151
|
is_whitelist == o.is_whitelist &&
|
152
|
-
|
152
|
+
merchants == o.merchants &&
|
153
153
|
start_date == o.start_date
|
154
154
|
end
|
155
155
|
|
@@ -162,7 +162,7 @@ module TreezorClient
|
|
162
162
|
# Calculates hash code according to all attributes.
|
163
163
|
# @return [Fixnum] Hash code
|
164
164
|
def hash
|
165
|
-
[name, status, is_whitelist,
|
165
|
+
[name, status, is_whitelist, merchants, start_date].hash
|
166
166
|
end
|
167
167
|
|
168
168
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse200
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :balances
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'balances' => :'balances'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'balances' => :'Array<Balance>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module TreezorClient
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'balances')
|
42
|
+
if (value = attributes[:'balances']).is_a?(Array)
|
43
|
+
self.balances = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module TreezorClient
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
balances == o.balances
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module TreezorClient
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[balances].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse2001
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :bankaccounts
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'bankaccounts' => :'bankaccounts'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'bankaccounts' => :'Array<Bankaccount>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module TreezorClient
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'bankaccounts')
|
42
|
+
if (value = attributes[:'bankaccounts']).is_a?(Array)
|
43
|
+
self.bankaccounts = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module TreezorClient
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
bankaccounts == o.bankaccounts
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module TreezorClient
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[bankaccounts].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|
@@ -180,9 +180,9 @@ module TreezorClient
|
|
180
180
|
# Attribute type mapping.
|
181
181
|
def self.swagger_types
|
182
182
|
{
|
183
|
-
:'cardtransaction_id' => :'
|
184
|
-
:'card_id' => :'
|
185
|
-
:'wallet_id' => :'
|
183
|
+
:'cardtransaction_id' => :'String',
|
184
|
+
:'card_id' => :'String',
|
185
|
+
:'wallet_id' => :'String',
|
186
186
|
:'wallet_currency' => :'String',
|
187
187
|
:'merchant_id' => :'String',
|
188
188
|
:'merchant_name' => :'String',
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse20011
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :bankaccounts
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'bankaccounts' => :'bankaccounts'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'bankaccounts' => :'Array<CountryRestrictionGroup>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module TreezorClient
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'bankaccounts')
|
42
|
+
if (value = attributes[:'bankaccounts']).is_a?(Array)
|
43
|
+
self.bankaccounts = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module TreezorClient
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
bankaccounts == o.bankaccounts
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module TreezorClient
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[bankaccounts].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class InlineResponse20013
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :issuer_initiated_digitization_datas
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
20
|
def self.attribute_map
|
21
21
|
{
|
22
|
-
:'
|
22
|
+
:'issuer_initiated_digitization_datas' => :'issuerInitiatedDigitizationDatas'
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.swagger_types
|
28
28
|
{
|
29
|
-
:'
|
29
|
+
:'issuer_initiated_digitization_datas' => :'Array<IssuerInitiatedDigitizationData>'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -38,9 +38,9 @@ module TreezorClient
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'issuerInitiatedDigitizationDatas')
|
42
|
+
if (value = attributes[:'issuerInitiatedDigitizationDatas']).is_a?(Array)
|
43
|
+
self.issuer_initiated_digitization_datas = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module TreezorClient
|
|
63
63
|
def ==(o)
|
64
64
|
return true if self.equal?(o)
|
65
65
|
self.class == o.class &&
|
66
|
-
|
66
|
+
issuer_initiated_digitization_datas == o.issuer_initiated_digitization_datas
|
67
67
|
end
|
68
68
|
|
69
69
|
# @see the `==` method
|
@@ -75,7 +75,7 @@ module TreezorClient
|
|
75
75
|
# Calculates hash code according to all attributes.
|
76
76
|
# @return [Fixnum] Hash code
|
77
77
|
def hash
|
78
|
-
[
|
78
|
+
[issuer_initiated_digitization_datas].hash
|
79
79
|
end
|
80
80
|
|
81
81
|
# Builds the object from hash
|