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
@@ -17,9 +17,6 @@ module TreezorClient
|
|
17
17
|
# Custom data that could be used by caller to search the instance.
|
18
18
|
attr_accessor :tag
|
19
19
|
|
20
|
-
# Beneficiary's userId
|
21
|
-
attr_accessor :user_id
|
22
|
-
|
23
20
|
# Name choosen by end user to easily recognize the beneficiary.
|
24
21
|
attr_accessor :nick_name
|
25
22
|
|
@@ -38,10 +35,10 @@ module TreezorClient
|
|
38
35
|
# Beneficiary SEPA Creditor Identifier. Mandatory to validate incoming direct debit, useless other wise. Between 8 and 35 caracters. If sddB2bWhitelist or sddCoreBlacklist is provided then sepaCreditorIdentifier is mandatory.
|
39
36
|
attr_accessor :sepa_creditor_identifier
|
40
37
|
|
41
|
-
# Each unique mandate reference, with its frequency type, must be explicitely allowed when doing B2B Direct Debit. Furthermore, a mandate not used during more than 36 months will be automatically rejected even if in the white list.
|
38
|
+
# Each unique mandate reference, with its frequency type, must be explicitely allowed when doing B2B Direct Debit. Furthermore, a mandate not used during more than 36 months will be automatically rejected even if in the white list.
|
42
39
|
attr_accessor :sdd_b2b_whitelist
|
43
40
|
|
44
|
-
# Core Direct Debit are accepted by default. If a Core mandate is to be refused on reception, it has to be added to this list. If wild char * (star) is used instead of a UMR, all Direct Debit from this beneficiary will be refused.
|
41
|
+
# Core Direct Debit are accepted by default. If a Core mandate is to be refused on reception, it has to be added to this list. If wild char * (star) is used instead of a UMR, all Direct Debit from this beneficiary will be refused.
|
45
42
|
attr_accessor :sdd_core_blacklist
|
46
43
|
|
47
44
|
# Indicated if the beneficiary can be used for SEPA Credit Transfer. This field is a conveniant way to filter all beneficiaries for a user that would like to do a Credit Transfer. Indeed, beneficaries are created automatically when receiving a Core Direct Debit and therefor by looking at the list you won't be able to idnetify which beneficary to use on SCT.
|
@@ -54,7 +51,6 @@ module TreezorClient
|
|
54
51
|
def self.attribute_map
|
55
52
|
{
|
56
53
|
:'tag' => :'tag',
|
57
|
-
:'user_id' => :'userId',
|
58
54
|
:'nick_name' => :'nickName',
|
59
55
|
:'name' => :'name',
|
60
56
|
:'address' => :'address',
|
@@ -72,7 +68,6 @@ module TreezorClient
|
|
72
68
|
def self.swagger_types
|
73
69
|
{
|
74
70
|
:'tag' => :'String',
|
75
|
-
:'user_id' => :'Integer',
|
76
71
|
:'nick_name' => :'String',
|
77
72
|
:'name' => :'String',
|
78
73
|
:'address' => :'String',
|
@@ -98,10 +93,6 @@ module TreezorClient
|
|
98
93
|
self.tag = attributes[:'tag']
|
99
94
|
end
|
100
95
|
|
101
|
-
if attributes.has_key?(:'userId')
|
102
|
-
self.user_id = attributes[:'userId']
|
103
|
-
end
|
104
|
-
|
105
96
|
if attributes.has_key?(:'nickName')
|
106
97
|
self.nick_name = attributes[:'nickName']
|
107
98
|
end
|
@@ -155,22 +146,12 @@ module TreezorClient
|
|
155
146
|
# @return Array for valid properties with the reasons
|
156
147
|
def list_invalid_properties
|
157
148
|
invalid_properties = Array.new
|
158
|
-
if @user_id.nil?
|
159
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @name.nil?
|
163
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
149
|
invalid_properties
|
167
150
|
end
|
168
151
|
|
169
152
|
# Check to see if the all the properties in the model are valid
|
170
153
|
# @return true if the model is valid
|
171
154
|
def valid?
|
172
|
-
return false if @user_id.nil?
|
173
|
-
return false if @name.nil?
|
174
155
|
true
|
175
156
|
end
|
176
157
|
|
@@ -180,7 +161,6 @@ module TreezorClient
|
|
180
161
|
return true if self.equal?(o)
|
181
162
|
self.class == o.class &&
|
182
163
|
tag == o.tag &&
|
183
|
-
user_id == o.user_id &&
|
184
164
|
nick_name == o.nick_name &&
|
185
165
|
name == o.name &&
|
186
166
|
address == o.address &&
|
@@ -202,7 +182,7 @@ module TreezorClient
|
|
202
182
|
# Calculates hash code according to all attributes.
|
203
183
|
# @return [Fixnum] Hash code
|
204
184
|
def hash
|
205
|
-
[tag,
|
185
|
+
[tag, nick_name, name, address, iban, bic, sepa_creditor_identifier, sdd_b2b_whitelist, sdd_core_blacklist, usable_for_sct, fields].hash
|
206
186
|
end
|
207
187
|
|
208
188
|
# Builds the object from hash
|
@@ -14,24 +14,21 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body10
|
17
|
-
# Name of the
|
17
|
+
# Name of the merchant ID restriction group
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Status of the
|
20
|
+
# Status of the merchant ID restriction 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 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
|
-
|
35
32
|
class EnumAttributeValidator
|
36
33
|
attr_reader :datatype
|
37
34
|
attr_reader :allowable_values
|
@@ -60,9 +57,8 @@ module TreezorClient
|
|
60
57
|
:'name' => :'name',
|
61
58
|
:'status' => :'status',
|
62
59
|
:'is_whitelist' => :'isWhitelist',
|
63
|
-
:'
|
64
|
-
:'start_date' => :'startDate'
|
65
|
-
:'fields' => :'fields'
|
60
|
+
:'merchants' => :'merchants',
|
61
|
+
:'start_date' => :'startDate'
|
66
62
|
}
|
67
63
|
end
|
68
64
|
|
@@ -72,9 +68,8 @@ module TreezorClient
|
|
72
68
|
:'name' => :'String',
|
73
69
|
:'status' => :'String',
|
74
70
|
:'is_whitelist' => :'BOOLEAN',
|
75
|
-
:'
|
76
|
-
:'start_date' => :'String'
|
77
|
-
:'fields' => :'Array<String>'
|
71
|
+
:'merchants' => :'Array<String>',
|
72
|
+
:'start_date' => :'String'
|
78
73
|
}
|
79
74
|
end
|
80
75
|
|
@@ -100,21 +95,15 @@ module TreezorClient
|
|
100
95
|
self.is_whitelist = true
|
101
96
|
end
|
102
97
|
|
103
|
-
if attributes.has_key?(:'
|
104
|
-
if (value = attributes[:'
|
105
|
-
self.
|
98
|
+
if attributes.has_key?(:'merchants')
|
99
|
+
if (value = attributes[:'merchants']).is_a?(Array)
|
100
|
+
self.merchants = value
|
106
101
|
end
|
107
102
|
end
|
108
103
|
|
109
104
|
if attributes.has_key?(:'startDate')
|
110
105
|
self.start_date = attributes[:'startDate']
|
111
106
|
end
|
112
|
-
|
113
|
-
if attributes.has_key?(:'fields')
|
114
|
-
if (value = attributes[:'fields']).is_a?(Array)
|
115
|
-
self.fields = value
|
116
|
-
end
|
117
|
-
end
|
118
107
|
end
|
119
108
|
|
120
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -150,9 +139,8 @@ module TreezorClient
|
|
150
139
|
name == o.name &&
|
151
140
|
status == o.status &&
|
152
141
|
is_whitelist == o.is_whitelist &&
|
153
|
-
|
154
|
-
start_date == o.start_date
|
155
|
-
fields == o.fields
|
142
|
+
merchants == o.merchants &&
|
143
|
+
start_date == o.start_date
|
156
144
|
end
|
157
145
|
|
158
146
|
# @see the `==` method
|
@@ -164,7 +152,7 @@ module TreezorClient
|
|
164
152
|
# Calculates hash code according to all attributes.
|
165
153
|
# @return [Fixnum] Hash code
|
166
154
|
def hash
|
167
|
-
[name, status, is_whitelist,
|
155
|
+
[name, status, is_whitelist, merchants, start_date].hash
|
168
156
|
end
|
169
157
|
|
170
158
|
# Builds the object from hash
|
@@ -14,70 +14,25 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body2
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# ID of the card
|
18
|
+
attr_accessor :card_id
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
22
|
-
|
23
|
-
# Beneficiary name, linked to bank account.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
|
-
# Beneficiary address, linked to bank account.
|
27
|
-
attr_accessor :address
|
28
|
-
|
29
|
-
# Beneficiary International Bank Account Number. Mandatory if usableForSct is true.
|
30
|
-
attr_accessor :iban
|
31
|
-
|
32
|
-
# Beneficiary Bank Identifier Code. Mandatory if usableForSct is true.
|
33
|
-
attr_accessor :bic
|
34
|
-
|
35
|
-
# Beneficiary SEPA Creditor Identifier. Mandatory to validate incoming direct debit, useless other wise. Between 8 and 35 caracters. If sddB2bWhitelist or sddCoreBlacklist is provided then sepaCreditorIdentifier is mandatory.
|
36
|
-
attr_accessor :sepa_creditor_identifier
|
37
|
-
|
38
|
-
# Each unique mandate reference, with its frequency type, must be explicitely allowed when doing B2B Direct Debit. Furthermore, a mandate not used during more than 36 months will be automatically rejected even if in the white list.
|
39
|
-
attr_accessor :sdd_b2b_whitelist
|
40
|
-
|
41
|
-
# Core Direct Debit are accepted by default. If a Core mandate is to be refused on reception, it has to be added to this list. If wild char * (star) is used instead of a UMR, all Direct Debit from this beneficiary will be refused.
|
42
|
-
attr_accessor :sdd_core_blacklist
|
43
|
-
|
44
|
-
# Indicated if the beneficiary can be used for SEPA Credit Transfer. This field is a conveniant way to filter all beneficiaries for a user that would like to do a Credit Transfer. Indeed, beneficaries are created automatically when receiving a Core Direct Debit and therefor by looking at the list you won't be able to idnetify which beneficary to use on SCT.
|
45
|
-
attr_accessor :usable_for_sct
|
46
|
-
|
47
|
-
# List of the object's properties you want to pick up.
|
48
|
-
attr_accessor :fields
|
20
|
+
# Amout you want to add
|
21
|
+
attr_accessor :amount
|
49
22
|
|
50
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
24
|
def self.attribute_map
|
52
25
|
{
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'name' => :'name',
|
56
|
-
:'address' => :'address',
|
57
|
-
:'iban' => :'iban',
|
58
|
-
:'bic' => :'bic',
|
59
|
-
:'sepa_creditor_identifier' => :'sepaCreditorIdentifier',
|
60
|
-
:'sdd_b2b_whitelist' => :'sddB2bWhitelist',
|
61
|
-
:'sdd_core_blacklist' => :'sddCoreBlacklist',
|
62
|
-
:'usable_for_sct' => :'usableForSct',
|
63
|
-
:'fields' => :'fields'
|
26
|
+
:'card_id' => :'cardId',
|
27
|
+
:'amount' => :'amount'
|
64
28
|
}
|
65
29
|
end
|
66
30
|
|
67
31
|
# Attribute type mapping.
|
68
32
|
def self.swagger_types
|
69
33
|
{
|
70
|
-
:'
|
71
|
-
:'
|
72
|
-
:'name' => :'String',
|
73
|
-
:'address' => :'String',
|
74
|
-
:'iban' => :'String',
|
75
|
-
:'bic' => :'String',
|
76
|
-
:'sepa_creditor_identifier' => :'String',
|
77
|
-
:'sdd_b2b_whitelist' => :'Array<BeneficiariesSddB2bWhitelist>',
|
78
|
-
:'sdd_core_blacklist' => :'Array<String>',
|
79
|
-
:'usable_for_sct' => :'BOOLEAN',
|
80
|
-
:'fields' => :'Array<String>'
|
34
|
+
:'card_id' => :'Integer',
|
35
|
+
:'amount' => :'Float'
|
81
36
|
}
|
82
37
|
end
|
83
38
|
|
@@ -89,56 +44,12 @@ module TreezorClient
|
|
89
44
|
# convert string to symbol for hash key
|
90
45
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
91
46
|
|
92
|
-
if attributes.has_key?(:'
|
93
|
-
self.
|
47
|
+
if attributes.has_key?(:'cardId')
|
48
|
+
self.card_id = attributes[:'cardId']
|
94
49
|
end
|
95
50
|
|
96
|
-
if attributes.has_key?(:'
|
97
|
-
self.
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.has_key?(:'name')
|
101
|
-
self.name = attributes[:'name']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.has_key?(:'address')
|
105
|
-
self.address = attributes[:'address']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.has_key?(:'iban')
|
109
|
-
self.iban = attributes[:'iban']
|
110
|
-
end
|
111
|
-
|
112
|
-
if attributes.has_key?(:'bic')
|
113
|
-
self.bic = attributes[:'bic']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.has_key?(:'sepaCreditorIdentifier')
|
117
|
-
self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier']
|
118
|
-
end
|
119
|
-
|
120
|
-
if attributes.has_key?(:'sddB2bWhitelist')
|
121
|
-
if (value = attributes[:'sddB2bWhitelist']).is_a?(Array)
|
122
|
-
self.sdd_b2b_whitelist = value
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'sddCoreBlacklist')
|
127
|
-
if (value = attributes[:'sddCoreBlacklist']).is_a?(Array)
|
128
|
-
self.sdd_core_blacklist = value
|
129
|
-
end
|
130
|
-
end
|
131
|
-
|
132
|
-
if attributes.has_key?(:'usableForSct')
|
133
|
-
self.usable_for_sct = attributes[:'usableForSct']
|
134
|
-
else
|
135
|
-
self.usable_for_sct = false
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'fields')
|
139
|
-
if (value = attributes[:'fields']).is_a?(Array)
|
140
|
-
self.fields = value
|
141
|
-
end
|
51
|
+
if attributes.has_key?(:'amount')
|
52
|
+
self.amount = attributes[:'amount']
|
142
53
|
end
|
143
54
|
end
|
144
55
|
|
@@ -146,12 +57,22 @@ module TreezorClient
|
|
146
57
|
# @return Array for valid properties with the reasons
|
147
58
|
def list_invalid_properties
|
148
59
|
invalid_properties = Array.new
|
60
|
+
if @card_id.nil?
|
61
|
+
invalid_properties.push('invalid value for "card_id", card_id cannot be nil.')
|
62
|
+
end
|
63
|
+
|
64
|
+
if @amount.nil?
|
65
|
+
invalid_properties.push('invalid value for "amount", amount cannot be nil.')
|
66
|
+
end
|
67
|
+
|
149
68
|
invalid_properties
|
150
69
|
end
|
151
70
|
|
152
71
|
# Check to see if the all the properties in the model are valid
|
153
72
|
# @return true if the model is valid
|
154
73
|
def valid?
|
74
|
+
return false if @card_id.nil?
|
75
|
+
return false if @amount.nil?
|
155
76
|
true
|
156
77
|
end
|
157
78
|
|
@@ -160,17 +81,8 @@ module TreezorClient
|
|
160
81
|
def ==(o)
|
161
82
|
return true if self.equal?(o)
|
162
83
|
self.class == o.class &&
|
163
|
-
|
164
|
-
|
165
|
-
name == o.name &&
|
166
|
-
address == o.address &&
|
167
|
-
iban == o.iban &&
|
168
|
-
bic == o.bic &&
|
169
|
-
sepa_creditor_identifier == o.sepa_creditor_identifier &&
|
170
|
-
sdd_b2b_whitelist == o.sdd_b2b_whitelist &&
|
171
|
-
sdd_core_blacklist == o.sdd_core_blacklist &&
|
172
|
-
usable_for_sct == o.usable_for_sct &&
|
173
|
-
fields == o.fields
|
84
|
+
card_id == o.card_id &&
|
85
|
+
amount == o.amount
|
174
86
|
end
|
175
87
|
|
176
88
|
# @see the `==` method
|
@@ -182,7 +94,7 @@ module TreezorClient
|
|
182
94
|
# Calculates hash code according to all attributes.
|
183
95
|
# @return [Fixnum] Hash code
|
184
96
|
def hash
|
185
|
-
[
|
97
|
+
[card_id, amount].hash
|
186
98
|
end
|
187
99
|
|
188
100
|
# Builds the object from hash
|
@@ -14,25 +14,62 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body4
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# Name of the country restriction group
|
18
|
+
attr_accessor :name
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# Status of the country group
|
21
|
+
attr_accessor :status
|
22
|
+
|
23
|
+
# determines whether it will be a black or a white list
|
24
|
+
attr_accessor :is_whitelist
|
25
|
+
|
26
|
+
# Array of countries
|
27
|
+
attr_accessor :countries
|
28
|
+
|
29
|
+
# The date at which the country restriction group will be take into account. Format YYYY-MM-DD HH:MM:SS
|
30
|
+
attr_accessor :start_date
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
22
53
|
|
23
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
55
|
def self.attribute_map
|
25
56
|
{
|
26
|
-
:'
|
27
|
-
:'
|
57
|
+
:'name' => :'name',
|
58
|
+
:'status' => :'status',
|
59
|
+
:'is_whitelist' => :'isWhitelist',
|
60
|
+
:'countries' => :'countries',
|
61
|
+
:'start_date' => :'startDate'
|
28
62
|
}
|
29
63
|
end
|
30
64
|
|
31
65
|
# Attribute type mapping.
|
32
66
|
def self.swagger_types
|
33
67
|
{
|
34
|
-
:'
|
35
|
-
:'
|
68
|
+
:'name' => :'String',
|
69
|
+
:'status' => :'String',
|
70
|
+
:'is_whitelist' => :'BOOLEAN',
|
71
|
+
:'countries' => :'Array<Integer>',
|
72
|
+
:'start_date' => :'String'
|
36
73
|
}
|
37
74
|
end
|
38
75
|
|
@@ -44,12 +81,28 @@ module TreezorClient
|
|
44
81
|
# convert string to symbol for hash key
|
45
82
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
83
|
|
47
|
-
if attributes.has_key?(:'
|
48
|
-
self.
|
84
|
+
if attributes.has_key?(:'name')
|
85
|
+
self.name = attributes[:'name']
|
49
86
|
end
|
50
87
|
|
51
|
-
if attributes.has_key?(:'
|
52
|
-
self.
|
88
|
+
if attributes.has_key?(:'status')
|
89
|
+
self.status = attributes[:'status']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'isWhitelist')
|
93
|
+
self.is_whitelist = attributes[:'isWhitelist']
|
94
|
+
else
|
95
|
+
self.is_whitelist = true
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'countries')
|
99
|
+
if (value = attributes[:'countries']).is_a?(Array)
|
100
|
+
self.countries = value
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'startDate')
|
105
|
+
self.start_date = attributes[:'startDate']
|
53
106
|
end
|
54
107
|
end
|
55
108
|
|
@@ -57,12 +110,12 @@ module TreezorClient
|
|
57
110
|
# @return Array for valid properties with the reasons
|
58
111
|
def list_invalid_properties
|
59
112
|
invalid_properties = Array.new
|
60
|
-
if @
|
61
|
-
invalid_properties.push('invalid value for "
|
113
|
+
if @name.nil?
|
114
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
62
115
|
end
|
63
116
|
|
64
|
-
if @
|
65
|
-
invalid_properties.push('invalid value for "
|
117
|
+
if @countries.nil?
|
118
|
+
invalid_properties.push('invalid value for "countries", countries cannot be nil.')
|
66
119
|
end
|
67
120
|
|
68
121
|
invalid_properties
|
@@ -71,18 +124,33 @@ module TreezorClient
|
|
71
124
|
# Check to see if the all the properties in the model are valid
|
72
125
|
# @return true if the model is valid
|
73
126
|
def valid?
|
74
|
-
return false if @
|
75
|
-
|
127
|
+
return false if @name.nil?
|
128
|
+
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
129
|
+
return false unless status_validator.valid?(@status)
|
130
|
+
return false if @countries.nil?
|
76
131
|
true
|
77
132
|
end
|
78
133
|
|
134
|
+
# Custom attribute writer method checking allowed values (enum).
|
135
|
+
# @param [Object] status Object to be assigned
|
136
|
+
def status=(status)
|
137
|
+
validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
138
|
+
unless validator.valid?(status)
|
139
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
140
|
+
end
|
141
|
+
@status = status
|
142
|
+
end
|
143
|
+
|
79
144
|
# Checks equality by comparing each attribute.
|
80
145
|
# @param [Object] Object to be compared
|
81
146
|
def ==(o)
|
82
147
|
return true if self.equal?(o)
|
83
148
|
self.class == o.class &&
|
84
|
-
|
85
|
-
|
149
|
+
name == o.name &&
|
150
|
+
status == o.status &&
|
151
|
+
is_whitelist == o.is_whitelist &&
|
152
|
+
countries == o.countries &&
|
153
|
+
start_date == o.start_date
|
86
154
|
end
|
87
155
|
|
88
156
|
# @see the `==` method
|
@@ -94,7 +162,7 @@ module TreezorClient
|
|
94
162
|
# Calculates hash code according to all attributes.
|
95
163
|
# @return [Fixnum] Hash code
|
96
164
|
def hash
|
97
|
-
[
|
165
|
+
[name, status, is_whitelist, countries, start_date].hash
|
98
166
|
end
|
99
167
|
|
100
168
|
# Builds the object from hash
|
@@ -14,21 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body5
|
17
|
-
# Name of the
|
17
|
+
# Name of the country restriction group
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
-
# Status of the
|
20
|
+
# Status of the country 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 countries
|
27
|
+
attr_accessor :countries
|
28
28
|
|
29
|
-
# The date at which the
|
29
|
+
# The date at which the country 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
|
+
:'countries' => :'countries',
|
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
|
+
:'countries' => :'Array<Integer>',
|
76
|
+
:'start_date' => :'String',
|
77
|
+
:'fields' => :'Array<String>'
|
73
78
|
}
|
74
79
|
end
|
75
80
|
|
@@ -95,39 +100,35 @@ 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?(:'countries')
|
104
|
+
if (value = attributes[:'countries']).is_a?(Array)
|
105
|
+
self.countries = 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?
|
110
121
|
# @return Array for valid properties with the reasons
|
111
122
|
def list_invalid_properties
|
112
123
|
invalid_properties = Array.new
|
113
|
-
if @name.nil?
|
114
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
115
|
-
end
|
116
|
-
|
117
|
-
if @mcc.nil?
|
118
|
-
invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
|
119
|
-
end
|
120
|
-
|
121
124
|
invalid_properties
|
122
125
|
end
|
123
126
|
|
124
127
|
# Check to see if the all the properties in the model are valid
|
125
128
|
# @return true if the model is valid
|
126
129
|
def valid?
|
127
|
-
return false if @name.nil?
|
128
130
|
status_validator = EnumAttributeValidator.new('String', ['VALIDATED', 'PENDING', 'CANCELED'])
|
129
131
|
return false unless status_validator.valid?(@status)
|
130
|
-
return false if @mcc.nil?
|
131
132
|
true
|
132
133
|
end
|
133
134
|
|
@@ -149,8 +150,9 @@ module TreezorClient
|
|
149
150
|
name == o.name &&
|
150
151
|
status == o.status &&
|
151
152
|
is_whitelist == o.is_whitelist &&
|
152
|
-
|
153
|
-
start_date == o.start_date
|
153
|
+
countries == o.countries &&
|
154
|
+
start_date == o.start_date &&
|
155
|
+
fields == o.fields
|
154
156
|
end
|
155
157
|
|
156
158
|
# @see the `==` method
|
@@ -162,7 +164,7 @@ module TreezorClient
|
|
162
164
|
# Calculates hash code according to all attributes.
|
163
165
|
# @return [Fixnum] Hash code
|
164
166
|
def hash
|
165
|
-
[name, status, is_whitelist,
|
167
|
+
[name, status, is_whitelist, countries, start_date, fields].hash
|
166
168
|
end
|
167
169
|
|
168
170
|
# Builds the object from hash
|