treezor_client 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +0 -2
- data/docs/Card.md +1 -0
- data/docs/CardApi.md +10 -0
- data/docs/DocumentApi.md +1 -1
- data/docs/IssuerInitiatedDigitizationDatasAdditionnalData.md +1 -1
- data/docs/MerchantIdRestrictionGroup.md +1 -1
- data/docs/MerchantIdRestrictionGroupsApi.md +0 -4
- data/docs/User.md +4 -0
- data/docs/UserApi.md +22 -6
- data/lib/treezor_client/api/card_api.rb +15 -0
- data/lib/treezor_client/api/document_api.rb +10 -10
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +0 -6
- data/lib/treezor_client/api/user_api.rb +34 -4
- data/lib/treezor_client/models/card.rb +10 -1
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +26 -7
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +8 -8
- data/lib/treezor_client/models/user.rb +37 -1
- data/lib/treezor_client/version.rb +1 -1
- data/lib/treezor_client.rb +0 -1
- data/treezor_api_spec.yaml +12516 -0
- metadata +16 -16
- data/pkg/treezor_client-1.0.0.gem +0 -0
@@ -311,6 +311,10 @@ module TreezorClient
|
|
311
311
|
# @option opts [String] :legal_number_of_employee_range Business number of employees range
|
312
312
|
# @option opts [Integer] :effective_beneficiary Business effective beneficiary
|
313
313
|
# @option opts [String] :language User's prefered language (ISO 639-1)
|
314
|
+
# @option opts [String] :tax_number User's tax identification number. If the taxResidence is not set to FR, the field is mandatory.
|
315
|
+
# @option opts [String] :tax_residence User's tax residence country code (2 char code following ISO 3166 norm).
|
316
|
+
# @option opts [String] :position User's position.
|
317
|
+
# @option opts [String] :personal_assets User's personal assets range exprimed in K€.
|
314
318
|
# @return [InlineResponse20024]
|
315
319
|
def put_user(id, opts = {})
|
316
320
|
data, _status_code, _headers = put_user_with_http_info(id, opts)
|
@@ -358,6 +362,10 @@ module TreezorClient
|
|
358
362
|
# @option opts [String] :legal_number_of_employee_range Business number of employees range
|
359
363
|
# @option opts [Integer] :effective_beneficiary Business effective beneficiary
|
360
364
|
# @option opts [String] :language User's prefered language (ISO 639-1)
|
365
|
+
# @option opts [String] :tax_number User's tax identification number. If the taxResidence is not set to FR, the field is mandatory.
|
366
|
+
# @option opts [String] :tax_residence User's tax residence country code (2 char code following ISO 3166 norm).
|
367
|
+
# @option opts [String] :position User's position.
|
368
|
+
# @option opts [String] :personal_assets User's personal assets range exprimed in K€.
|
361
369
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
362
370
|
def put_user_with_http_info(id, opts = {})
|
363
371
|
if @api_client.config.debugging
|
@@ -382,6 +390,9 @@ module TreezorClient
|
|
382
390
|
if @api_client.config.client_side_validation && opts[:'legal_number_of_employee_range'] && !['0', '1-9', '10-99', '100-249', '250-*'].include?(opts[:'legal_number_of_employee_range'])
|
383
391
|
fail ArgumentError, 'invalid value for "legal_number_of_employee_range", must be one of 0, 1-9, 10-99, 100-249, 250-*'
|
384
392
|
end
|
393
|
+
if @api_client.config.client_side_validation && opts[:'personal_assets'] && !['0-2', '3-22', '23-128', '129-319', '320-464', '465-'].include?(opts[:'personal_assets'])
|
394
|
+
fail ArgumentError, 'invalid value for "personal_assets", must be one of 0-2, 3-22, 23-128, 129-319, 320-464, 465-'
|
395
|
+
end
|
385
396
|
# resource path
|
386
397
|
local_var_path = "/users/{id}".sub('{' + 'id' + '}', id.to_s)
|
387
398
|
|
@@ -424,6 +435,10 @@ module TreezorClient
|
|
424
435
|
query_params[:'legalNumberOfEmployeeRange'] = opts[:'legal_number_of_employee_range'] if !opts[:'legal_number_of_employee_range'].nil?
|
425
436
|
query_params[:'effectiveBeneficiary'] = opts[:'effective_beneficiary'] if !opts[:'effective_beneficiary'].nil?
|
426
437
|
query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
|
438
|
+
query_params[:'taxNumber'] = opts[:'tax_number'] if !opts[:'tax_number'].nil?
|
439
|
+
query_params[:'taxResidence'] = opts[:'tax_residence'] if !opts[:'tax_residence'].nil?
|
440
|
+
query_params[:'position'] = opts[:'position'] if !opts[:'position'].nil?
|
441
|
+
query_params[:'personalAssets'] = opts[:'personal_assets'] if !opts[:'personal_assets'].nil?
|
427
442
|
|
428
443
|
# header parameters
|
429
444
|
header_params = {}
|
@@ -468,8 +483,8 @@ module TreezorClient
|
|
468
483
|
# @option opts [String] :lastname User's last name
|
469
484
|
# @option opts [String] :middle_names User's middle names
|
470
485
|
# @option opts [String] :birthday User's birth date. Format YYYY-MM-DD
|
471
|
-
# @option opts [String] :address1 User's postal address (main)
|
472
|
-
# @option opts [String] :address2 User's postal address (complement)
|
486
|
+
# @option opts [String] :address1 User's postal address (main). Can not contain carriage return.
|
487
|
+
# @option opts [String] :address2 User's postal address (complement). Can not contain carriage return.
|
473
488
|
# @option opts [String] :postcode User's postcode
|
474
489
|
# @option opts [String] :city User's city
|
475
490
|
# @option opts [String] :state User's state
|
@@ -494,6 +509,10 @@ module TreezorClient
|
|
494
509
|
# @option opts [String] :legal_number_of_employee_range Business number of employees range
|
495
510
|
# @option opts [Integer] :effective_beneficiary Business effective beneficiary
|
496
511
|
# @option opts [String] :language User's prefered language (ISO 639-1)
|
512
|
+
# @option opts [String] :tax_number User's tax identification number. If the taxResidence is set to another country than France, the field is mandatory.
|
513
|
+
# @option opts [String] :tax_residence User's tax residence country code (2 char code following ISO 3166 norm).
|
514
|
+
# @option opts [String] :position User's position.
|
515
|
+
# @option opts [String] :personal_assets User's personal assets range exprimed in K€.
|
497
516
|
# @return [InlineResponse20024]
|
498
517
|
def put_users(email, opts = {})
|
499
518
|
data, _status_code, _headers = put_users_with_http_info(email, opts)
|
@@ -517,8 +536,8 @@ module TreezorClient
|
|
517
536
|
# @option opts [String] :lastname User's last name
|
518
537
|
# @option opts [String] :middle_names User's middle names
|
519
538
|
# @option opts [String] :birthday User's birth date. Format YYYY-MM-DD
|
520
|
-
# @option opts [String] :address1 User's postal address (main)
|
521
|
-
# @option opts [String] :address2 User's postal address (complement)
|
539
|
+
# @option opts [String] :address1 User's postal address (main). Can not contain carriage return.
|
540
|
+
# @option opts [String] :address2 User's postal address (complement). Can not contain carriage return.
|
522
541
|
# @option opts [String] :postcode User's postcode
|
523
542
|
# @option opts [String] :city User's city
|
524
543
|
# @option opts [String] :state User's state
|
@@ -543,6 +562,10 @@ module TreezorClient
|
|
543
562
|
# @option opts [String] :legal_number_of_employee_range Business number of employees range
|
544
563
|
# @option opts [Integer] :effective_beneficiary Business effective beneficiary
|
545
564
|
# @option opts [String] :language User's prefered language (ISO 639-1)
|
565
|
+
# @option opts [String] :tax_number User's tax identification number. If the taxResidence is set to another country than France, the field is mandatory.
|
566
|
+
# @option opts [String] :tax_residence User's tax residence country code (2 char code following ISO 3166 norm).
|
567
|
+
# @option opts [String] :position User's position.
|
568
|
+
# @option opts [String] :personal_assets User's personal assets range exprimed in K€.
|
546
569
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
547
570
|
def put_users_with_http_info(email, opts = {})
|
548
571
|
if @api_client.config.debugging
|
@@ -567,6 +590,9 @@ module TreezorClient
|
|
567
590
|
if @api_client.config.client_side_validation && opts[:'legal_number_of_employee_range'] && !['0', '1-9', '10-99', '100-249', '250-*'].include?(opts[:'legal_number_of_employee_range'])
|
568
591
|
fail ArgumentError, 'invalid value for "legal_number_of_employee_range", must be one of 0, 1-9, 10-99, 100-249, 250-*'
|
569
592
|
end
|
593
|
+
if @api_client.config.client_side_validation && opts[:'personal_assets'] && !['0-2', '3-22', '23-128', '129-319', '320-464', '465-'].include?(opts[:'personal_assets'])
|
594
|
+
fail ArgumentError, 'invalid value for "personal_assets", must be one of 0-2, 3-22, 23-128, 129-319, 320-464, 465-'
|
595
|
+
end
|
570
596
|
# resource path
|
571
597
|
local_var_path = "/users"
|
572
598
|
|
@@ -612,6 +638,10 @@ module TreezorClient
|
|
612
638
|
query_params[:'legalNumberOfEmployeeRange'] = opts[:'legal_number_of_employee_range'] if !opts[:'legal_number_of_employee_range'].nil?
|
613
639
|
query_params[:'effectiveBeneficiary'] = opts[:'effective_beneficiary'] if !opts[:'effective_beneficiary'].nil?
|
614
640
|
query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
|
641
|
+
query_params[:'taxNumber'] = opts[:'tax_number'] if !opts[:'tax_number'].nil?
|
642
|
+
query_params[:'taxResidence'] = opts[:'tax_residence'] if !opts[:'tax_residence'].nil?
|
643
|
+
query_params[:'position'] = opts[:'position'] if !opts[:'position'].nil?
|
644
|
+
query_params[:'personalAssets'] = opts[:'personal_assets'] if !opts[:'personal_assets'].nil?
|
615
645
|
|
616
646
|
# header parameters
|
617
647
|
header_params = {}
|
@@ -116,6 +116,8 @@ module TreezorClient
|
|
116
116
|
|
117
117
|
attr_accessor :limit_payment_all
|
118
118
|
|
119
|
+
attr_accessor :payment_daily_limit
|
120
|
+
|
119
121
|
attr_accessor :total_atm_year
|
120
122
|
|
121
123
|
attr_accessor :total_atm_month
|
@@ -222,6 +224,7 @@ module TreezorClient
|
|
222
224
|
:'limit_payment_week' => :'limitPaymentWeek',
|
223
225
|
:'limit_payment_day' => :'limitPaymentDay',
|
224
226
|
:'limit_payment_all' => :'limitPaymentAll',
|
227
|
+
:'payment_daily_limit' => :'paymentDailyLimit',
|
225
228
|
:'total_atm_year' => :'totalAtmYear',
|
226
229
|
:'total_atm_month' => :'totalAtmMonth',
|
227
230
|
:'total_atm_week' => :'totalAtmWeek',
|
@@ -292,6 +295,7 @@ module TreezorClient
|
|
292
295
|
:'limit_payment_week' => :'Integer',
|
293
296
|
:'limit_payment_day' => :'Integer',
|
294
297
|
:'limit_payment_all' => :'Integer',
|
298
|
+
:'payment_daily_limit' => :'Float',
|
295
299
|
:'total_atm_year' => :'Integer',
|
296
300
|
:'total_atm_month' => :'Integer',
|
297
301
|
:'total_atm_week' => :'Integer',
|
@@ -514,6 +518,10 @@ module TreezorClient
|
|
514
518
|
self.limit_payment_all = attributes[:'limitPaymentAll']
|
515
519
|
end
|
516
520
|
|
521
|
+
if attributes.has_key?(:'paymentDailyLimit')
|
522
|
+
self.payment_daily_limit = attributes[:'paymentDailyLimit']
|
523
|
+
end
|
524
|
+
|
517
525
|
if attributes.has_key?(:'totalAtmYear')
|
518
526
|
self.total_atm_year = attributes[:'totalAtmYear']
|
519
527
|
end
|
@@ -655,6 +663,7 @@ module TreezorClient
|
|
655
663
|
limit_payment_week == o.limit_payment_week &&
|
656
664
|
limit_payment_day == o.limit_payment_day &&
|
657
665
|
limit_payment_all == o.limit_payment_all &&
|
666
|
+
payment_daily_limit == o.payment_daily_limit &&
|
658
667
|
total_atm_year == o.total_atm_year &&
|
659
668
|
total_atm_month == o.total_atm_month &&
|
660
669
|
total_atm_week == o.total_atm_week &&
|
@@ -681,7 +690,7 @@ module TreezorClient
|
|
681
690
|
# Calculates hash code according to all attributes.
|
682
691
|
# @return [Fixnum] Hash code
|
683
692
|
def hash
|
684
|
-
[card_id, user_id, wallet_id, wallet_cardtransaction_id, mcc_restriction_group_id, merchant_restriction_group_id, country_restriction_group_id, public_token, card_tag, status_code, is_live, pin_try_exceeds, masked_pan, embossed_name, expiry_date, cvv, start_date, end_date, country_code, currency_code, lang, delivery_title, delivery_lastname, delivery_firstname, delivery_address1, delivery_address2, delivery_address3, delivery_city, delivery_postcode, delivery_country, mobile_sent, limits_group, perms_group, card_design, virtual_converted, option_atm, option_foreign, option_online, option_nfc, limit_atm_year, limit_atm_month, limit_atm_week, limit_atm_day, limit_atm_all, limit_payment_year, limit_payment_month, limit_payment_week, limit_payment_day, limit_payment_all, total_atm_year, total_atm_month, total_atm_week, total_atm_day, total_atm_all, total_payment_year, total_payment_month, total_payment_week, total_payment_day, total_payment_all, created_by, created_date, modified_by, modified_date, total_rows].hash
|
693
|
+
[card_id, user_id, wallet_id, wallet_cardtransaction_id, mcc_restriction_group_id, merchant_restriction_group_id, country_restriction_group_id, public_token, card_tag, status_code, is_live, pin_try_exceeds, masked_pan, embossed_name, expiry_date, cvv, start_date, end_date, country_code, currency_code, lang, delivery_title, delivery_lastname, delivery_firstname, delivery_address1, delivery_address2, delivery_address3, delivery_city, delivery_postcode, delivery_country, mobile_sent, limits_group, perms_group, card_design, virtual_converted, option_atm, option_foreign, option_online, option_nfc, limit_atm_year, limit_atm_month, limit_atm_week, limit_atm_day, limit_atm_all, limit_payment_year, limit_payment_month, limit_payment_week, limit_payment_day, limit_payment_all, payment_daily_limit, total_atm_year, total_atm_month, total_atm_week, total_atm_day, total_atm_all, total_payment_year, total_payment_month, total_payment_week, total_payment_day, total_payment_all, created_by, created_date, modified_by, modified_date, total_rows].hash
|
685
694
|
end
|
686
695
|
|
687
696
|
# Builds the object from hash
|
@@ -15,7 +15,8 @@ require 'date'
|
|
15
15
|
module TreezorClient
|
16
16
|
# This parameter is required in the case of APPLE tokenRequestor
|
17
17
|
class IssuerInitiatedDigitizationDatasAdditionnalData
|
18
|
-
|
18
|
+
# The certificate chain. Required when tokenRequestor is APPLE. The first element of array is the leaf certificate and the last should be the root certificate. There can be 0 or several sub certificates inbetween the first element of array and the last. All certificates are of type string (base64 encoded of DER format)
|
19
|
+
attr_accessor :certificates
|
19
20
|
|
20
21
|
# The nonce as provided by the Apple SDK. Required when tokenRequestor is APPLE
|
21
22
|
attr_accessor :nonce
|
@@ -27,7 +28,7 @@ module TreezorClient
|
|
27
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
29
|
def self.attribute_map
|
29
30
|
{
|
30
|
-
:'
|
31
|
+
:'certificates' => :'certificates',
|
31
32
|
:'nonce' => :'nonce',
|
32
33
|
:'nonce_signature' => :'nonceSignature'
|
33
34
|
}
|
@@ -36,7 +37,7 @@ module TreezorClient
|
|
36
37
|
# Attribute type mapping.
|
37
38
|
def self.swagger_types
|
38
39
|
{
|
39
|
-
:'
|
40
|
+
:'certificates' => :'Array<String>',
|
40
41
|
:'nonce' => :'String',
|
41
42
|
:'nonce_signature' => :'String'
|
42
43
|
}
|
@@ -50,8 +51,10 @@ module TreezorClient
|
|
50
51
|
# convert string to symbol for hash key
|
51
52
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
52
53
|
|
53
|
-
if attributes.has_key?(:'
|
54
|
-
|
54
|
+
if attributes.has_key?(:'certificates')
|
55
|
+
if (value = attributes[:'certificates']).is_a?(Array)
|
56
|
+
self.certificates = value
|
57
|
+
end
|
55
58
|
end
|
56
59
|
|
57
60
|
if attributes.has_key?(:'nonce')
|
@@ -68,21 +71,37 @@ module TreezorClient
|
|
68
71
|
# @return Array for valid properties with the reasons
|
69
72
|
def list_invalid_properties
|
70
73
|
invalid_properties = Array.new
|
74
|
+
if !@nonce_signature.nil? && @nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
75
|
+
invalid_properties.push("invalid value for 'nonce_signature', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.")
|
76
|
+
end
|
77
|
+
|
71
78
|
return invalid_properties
|
72
79
|
end
|
73
80
|
|
74
81
|
# Check to see if the all the properties in the model are valid
|
75
82
|
# @return true if the model is valid
|
76
83
|
def valid?
|
84
|
+
return false if !@nonce_signature.nil? && @nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
77
85
|
return true
|
78
86
|
end
|
79
87
|
|
88
|
+
# Custom attribute writer method with validation
|
89
|
+
# @param [Object] nonce_signature Value to be assigned
|
90
|
+
def nonce_signature=(nonce_signature)
|
91
|
+
|
92
|
+
if !nonce_signature.nil? && nonce_signature !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
|
93
|
+
fail ArgumentError, "invalid value for 'nonce_signature', must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/."
|
94
|
+
end
|
95
|
+
|
96
|
+
@nonce_signature = nonce_signature
|
97
|
+
end
|
98
|
+
|
80
99
|
# Checks equality by comparing each attribute.
|
81
100
|
# @param [Object] Object to be compared
|
82
101
|
def ==(o)
|
83
102
|
return true if self.equal?(o)
|
84
103
|
self.class == o.class &&
|
85
|
-
|
104
|
+
certificates == o.certificates &&
|
86
105
|
nonce == o.nonce &&
|
87
106
|
nonce_signature == o.nonce_signature
|
88
107
|
end
|
@@ -96,7 +115,7 @@ module TreezorClient
|
|
96
115
|
# Calculates hash code according to all attributes.
|
97
116
|
# @return [Fixnum] Hash code
|
98
117
|
def hash
|
99
|
-
[
|
118
|
+
[certificates, nonce, nonce_signature].hash
|
100
119
|
end
|
101
120
|
|
102
121
|
# Builds the object from hash
|
@@ -25,7 +25,7 @@ module TreezorClient
|
|
25
25
|
attr_accessor :is_whitelist
|
26
26
|
|
27
27
|
# Array of Merchant ID
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :merchants
|
29
29
|
|
30
30
|
# status of the Merchant ID group
|
31
31
|
attr_accessor :status
|
@@ -64,7 +64,7 @@ module TreezorClient
|
|
64
64
|
:'id' => :'id',
|
65
65
|
:'name' => :'name',
|
66
66
|
:'is_whitelist' => :'isWhitelist',
|
67
|
-
:'
|
67
|
+
:'merchants' => :'merchants',
|
68
68
|
:'status' => :'status',
|
69
69
|
:'start_date' => :'startDate',
|
70
70
|
:'created_date' => :'createdDate'
|
@@ -77,7 +77,7 @@ module TreezorClient
|
|
77
77
|
:'id' => :'Integer',
|
78
78
|
:'name' => :'String',
|
79
79
|
:'is_whitelist' => :'BOOLEAN',
|
80
|
-
:'
|
80
|
+
:'merchants' => :'Array<String>',
|
81
81
|
:'status' => :'String',
|
82
82
|
:'start_date' => :'String',
|
83
83
|
:'created_date' => :'String'
|
@@ -104,9 +104,9 @@ module TreezorClient
|
|
104
104
|
self.is_whitelist = attributes[:'isWhitelist']
|
105
105
|
end
|
106
106
|
|
107
|
-
if attributes.has_key?(:'
|
108
|
-
if (value = attributes[:'
|
109
|
-
self.
|
107
|
+
if attributes.has_key?(:'merchants')
|
108
|
+
if (value = attributes[:'merchants']).is_a?(Array)
|
109
|
+
self.merchants = value
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
@@ -157,7 +157,7 @@ module TreezorClient
|
|
157
157
|
id == o.id &&
|
158
158
|
name == o.name &&
|
159
159
|
is_whitelist == o.is_whitelist &&
|
160
|
-
|
160
|
+
merchants == o.merchants &&
|
161
161
|
status == o.status &&
|
162
162
|
start_date == o.start_date &&
|
163
163
|
created_date == o.created_date
|
@@ -172,7 +172,7 @@ module TreezorClient
|
|
172
172
|
# Calculates hash code according to all attributes.
|
173
173
|
# @return [Fixnum] Hash code
|
174
174
|
def hash
|
175
|
-
[id, name, is_whitelist,
|
175
|
+
[id, name, is_whitelist, merchants, status, start_date, created_date].hash
|
176
176
|
end
|
177
177
|
|
178
178
|
# Builds the object from hash
|
@@ -110,6 +110,14 @@ module TreezorClient
|
|
110
110
|
|
111
111
|
attr_accessor :sepa_creditor_identifier
|
112
112
|
|
113
|
+
attr_accessor :tax_number
|
114
|
+
|
115
|
+
attr_accessor :tax_residence
|
116
|
+
|
117
|
+
attr_accessor :position
|
118
|
+
|
119
|
+
attr_accessor :personal_assets
|
120
|
+
|
113
121
|
# Date YYYY-MM-DD HH:MM:SS
|
114
122
|
attr_accessor :created_date
|
115
123
|
|
@@ -193,6 +201,10 @@ module TreezorClient
|
|
193
201
|
:'language' => :'language',
|
194
202
|
:'opt_in_mailing' => :'optInMailing',
|
195
203
|
:'sepa_creditor_identifier' => :'sepaCreditorIdentifier',
|
204
|
+
:'tax_number' => :'taxNumber',
|
205
|
+
:'tax_residence' => :'taxResidence',
|
206
|
+
:'position' => :'position',
|
207
|
+
:'personal_assets' => :'personalAssets',
|
196
208
|
:'created_date' => :'createdDate',
|
197
209
|
:'modified_date' => :'modifiedDate',
|
198
210
|
:'wallet_count' => :'walletCount',
|
@@ -250,6 +262,10 @@ module TreezorClient
|
|
250
262
|
:'language' => :'String',
|
251
263
|
:'opt_in_mailing' => :'Integer',
|
252
264
|
:'sepa_creditor_identifier' => :'String',
|
265
|
+
:'tax_number' => :'String',
|
266
|
+
:'tax_residence' => :'String',
|
267
|
+
:'position' => :'String',
|
268
|
+
:'personal_assets' => :'String',
|
253
269
|
:'created_date' => :'String',
|
254
270
|
:'modified_date' => :'String',
|
255
271
|
:'wallet_count' => :'Integer',
|
@@ -450,6 +466,22 @@ module TreezorClient
|
|
450
466
|
self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier']
|
451
467
|
end
|
452
468
|
|
469
|
+
if attributes.has_key?(:'taxNumber')
|
470
|
+
self.tax_number = attributes[:'taxNumber']
|
471
|
+
end
|
472
|
+
|
473
|
+
if attributes.has_key?(:'taxResidence')
|
474
|
+
self.tax_residence = attributes[:'taxResidence']
|
475
|
+
end
|
476
|
+
|
477
|
+
if attributes.has_key?(:'position')
|
478
|
+
self.position = attributes[:'position']
|
479
|
+
end
|
480
|
+
|
481
|
+
if attributes.has_key?(:'personalAssets')
|
482
|
+
self.personal_assets = attributes[:'personalAssets']
|
483
|
+
end
|
484
|
+
|
453
485
|
if attributes.has_key?(:'createdDate')
|
454
486
|
self.created_date = attributes[:'createdDate']
|
455
487
|
end
|
@@ -560,6 +592,10 @@ module TreezorClient
|
|
560
592
|
language == o.language &&
|
561
593
|
opt_in_mailing == o.opt_in_mailing &&
|
562
594
|
sepa_creditor_identifier == o.sepa_creditor_identifier &&
|
595
|
+
tax_number == o.tax_number &&
|
596
|
+
tax_residence == o.tax_residence &&
|
597
|
+
position == o.position &&
|
598
|
+
personal_assets == o.personal_assets &&
|
563
599
|
created_date == o.created_date &&
|
564
600
|
modified_date == o.modified_date &&
|
565
601
|
wallet_count == o.wallet_count &&
|
@@ -576,7 +612,7 @@ module TreezorClient
|
|
576
612
|
# Calculates hash code according to all attributes.
|
577
613
|
# @return [Fixnum] Hash code
|
578
614
|
def hash
|
579
|
-
[user_id, user_type_id, user_status, user_tag, parent_user_id, parent_type, title, firstname, lastname, middle_names, birthday, email, address1, address2, postcode, city, state, country, country_name, phone, mobile, nationality, nationality_other, place_of_birth, place_country, occupation, income_range, legal_name, legal_name_embossed, legal_registration_number, legal_tva_number, legal_registration_date, legal_form, legal_share_capital, legal_sector, legal_annual_turn_over, legal_net_income_range, legal_number_of_employee_range, effective_beneficiary, kyc_level, kyc_review, kyc_review_comment, is_freezed, language, opt_in_mailing, sepa_creditor_identifier, created_date, modified_date, wallet_count, payin_count, total_rows].hash
|
615
|
+
[user_id, user_type_id, user_status, user_tag, parent_user_id, parent_type, title, firstname, lastname, middle_names, birthday, email, address1, address2, postcode, city, state, country, country_name, phone, mobile, nationality, nationality_other, place_of_birth, place_country, occupation, income_range, legal_name, legal_name_embossed, legal_registration_number, legal_tva_number, legal_registration_date, legal_form, legal_share_capital, legal_sector, legal_annual_turn_over, legal_net_income_range, legal_number_of_employee_range, effective_beneficiary, kyc_level, kyc_review, kyc_review_comment, is_freezed, language, opt_in_mailing, sepa_creditor_identifier, tax_number, tax_residence, position, personal_assets, created_date, modified_date, wallet_count, payin_count, total_rows].hash
|
580
616
|
end
|
581
617
|
|
582
618
|
# Builds the object from hash
|
data/lib/treezor_client.rb
CHANGED
@@ -70,7 +70,6 @@ require 'treezor_client/models/inline_response_200_8'
|
|
70
70
|
require 'treezor_client/models/inline_response_200_9'
|
71
71
|
require 'treezor_client/models/inline_response_default'
|
72
72
|
require 'treezor_client/models/issuer_initiated_digitization_datas_additionnal_data'
|
73
|
-
require 'treezor_client/models/issuer_initiated_digitization_datas_additionnal_data_ecc_public_certificates'
|
74
73
|
require 'treezor_client/models/mandate'
|
75
74
|
require 'treezor_client/models/mcc_restriction_group'
|
76
75
|
require 'treezor_client/models/merchant_id_restriction_group'
|