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
@@ -25,7 +25,7 @@ module TreezorClient
|
|
25
25
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
26
26
|
# @option opts [Integer] :id id of the residence
|
27
27
|
# @option opts [Integer] :user_id User's id residence
|
28
|
-
# @return [
|
28
|
+
# @return [InlineResponse20021]
|
29
29
|
def tax_residences_get(opts = {})
|
30
30
|
data, _status_code, _headers = tax_residences_get_with_http_info(opts)
|
31
31
|
data
|
@@ -37,7 +37,7 @@ module TreezorClient
|
|
37
37
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
38
38
|
# @option opts [Integer] :id id of the residence
|
39
39
|
# @option opts [Integer] :user_id User's id residence
|
40
|
-
# @return [Array<(
|
40
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
41
41
|
def tax_residences_get_with_http_info(opts = {})
|
42
42
|
if @api_client.config.debugging
|
43
43
|
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_get ...'
|
@@ -66,7 +66,7 @@ module TreezorClient
|
|
66
66
|
:form_params => form_params,
|
67
67
|
:body => post_body,
|
68
68
|
:auth_names => auth_names,
|
69
|
-
:return_type => '
|
69
|
+
:return_type => 'InlineResponse20021')
|
70
70
|
if @api_client.config.debugging
|
71
71
|
@api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
72
72
|
end
|
@@ -77,7 +77,7 @@ module TreezorClient
|
|
77
77
|
# @param id id of the residence
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
79
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
80
|
-
# @return [
|
80
|
+
# @return [InlineResponse20021]
|
81
81
|
def tax_residences_id_delete(id, opts = {})
|
82
82
|
data, _status_code, _headers = tax_residences_id_delete_with_http_info(id, opts)
|
83
83
|
data
|
@@ -88,7 +88,7 @@ module TreezorClient
|
|
88
88
|
# @param id id of the residence
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
91
|
-
# @return [Array<(
|
91
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
92
92
|
def tax_residences_id_delete_with_http_info(id, opts = {})
|
93
93
|
if @api_client.config.debugging
|
94
94
|
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_delete ...'
|
@@ -119,7 +119,7 @@ module TreezorClient
|
|
119
119
|
:form_params => form_params,
|
120
120
|
:body => post_body,
|
121
121
|
:auth_names => auth_names,
|
122
|
-
:return_type => '
|
122
|
+
:return_type => 'InlineResponse20021')
|
123
123
|
if @api_client.config.debugging
|
124
124
|
@api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
125
125
|
end
|
@@ -130,7 +130,7 @@ module TreezorClient
|
|
130
130
|
# @param id id of the residence
|
131
131
|
# @param [Hash] opts the optional parameters
|
132
132
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
133
|
-
# @return [
|
133
|
+
# @return [InlineResponse20021]
|
134
134
|
def tax_residences_id_get(id, opts = {})
|
135
135
|
data, _status_code, _headers = tax_residences_id_get_with_http_info(id, opts)
|
136
136
|
data
|
@@ -141,7 +141,7 @@ module TreezorClient
|
|
141
141
|
# @param id id of the residence
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
143
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
144
|
-
# @return [Array<(
|
144
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
145
145
|
def tax_residences_id_get_with_http_info(id, opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
147
|
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_get ...'
|
@@ -172,7 +172,7 @@ module TreezorClient
|
|
172
172
|
:form_params => form_params,
|
173
173
|
:body => post_body,
|
174
174
|
:auth_names => auth_names,
|
175
|
-
:return_type => '
|
175
|
+
:return_type => 'InlineResponse20021')
|
176
176
|
if @api_client.config.debugging
|
177
177
|
@api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
178
178
|
end
|
@@ -187,7 +187,7 @@ module TreezorClient
|
|
187
187
|
# @option opts [String] :country country of the resident
|
188
188
|
# @option opts [String] :tax_payer_id Tax payer's id
|
189
189
|
# @option opts [BOOLEAN] :liability_waiver Tax declaration
|
190
|
-
# @return [
|
190
|
+
# @return [InlineResponse20021]
|
191
191
|
def tax_residences_id_put(id, opts = {})
|
192
192
|
data, _status_code, _headers = tax_residences_id_put_with_http_info(id, opts)
|
193
193
|
data
|
@@ -202,7 +202,7 @@ module TreezorClient
|
|
202
202
|
# @option opts [String] :country country of the resident
|
203
203
|
# @option opts [String] :tax_payer_id Tax payer's id
|
204
204
|
# @option opts [BOOLEAN] :liability_waiver Tax declaration
|
205
|
-
# @return [Array<(
|
205
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
206
206
|
def tax_residences_id_put_with_http_info(id, opts = {})
|
207
207
|
if @api_client.config.debugging
|
208
208
|
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_put ...'
|
@@ -237,7 +237,7 @@ module TreezorClient
|
|
237
237
|
:form_params => form_params,
|
238
238
|
:body => post_body,
|
239
239
|
:auth_names => auth_names,
|
240
|
-
:return_type => '
|
240
|
+
:return_type => 'InlineResponse20021')
|
241
241
|
if @api_client.config.debugging
|
242
242
|
@api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
243
243
|
end
|
@@ -251,7 +251,7 @@ module TreezorClient
|
|
251
251
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
252
252
|
# @option opts [String] :tax_payer_id Tax payer's id
|
253
253
|
# @option opts [BOOLEAN] :liability_waiver When there is no taxPayerId for a residence, this field shall be set to true.
|
254
|
-
# @return [
|
254
|
+
# @return [InlineResponse20021]
|
255
255
|
def tax_residences_post(user_id, country, opts = {})
|
256
256
|
data, _status_code, _headers = tax_residences_post_with_http_info(user_id, country, opts)
|
257
257
|
data
|
@@ -265,7 +265,7 @@ module TreezorClient
|
|
265
265
|
# @option opts [String] :access_signature Access signature can be mandatory for specific context. Treezor will contact you if so. More info [here](https://agent.treezor.com/security-authentication).
|
266
266
|
# @option opts [String] :tax_payer_id Tax payer's id
|
267
267
|
# @option opts [BOOLEAN] :liability_waiver When there is no taxPayerId for a residence, this field shall be set to true.
|
268
|
-
# @return [Array<(
|
268
|
+
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
269
269
|
def tax_residences_post_with_http_info(user_id, country, opts = {})
|
270
270
|
if @api_client.config.debugging
|
271
271
|
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_post ...'
|
@@ -304,7 +304,7 @@ module TreezorClient
|
|
304
304
|
:form_params => form_params,
|
305
305
|
:body => post_body,
|
306
306
|
:auth_names => auth_names,
|
307
|
-
:return_type => '
|
307
|
+
:return_type => 'InlineResponse20021')
|
308
308
|
if @api_client.config.debugging
|
309
309
|
@api_client.config.logger.debug "API called: TaxResidenceApi#tax_residences_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
310
310
|
end
|
@@ -23,7 +23,7 @@ module TreezorClient
|
|
23
23
|
# Get a virtualiban from the system by its id.
|
24
24
|
# @param id VirtualIban's id.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [InlineResponse20027]
|
27
27
|
def getvirtualiban(id, opts = {})
|
28
28
|
data, _status_code, _headers = getvirtualiban_with_http_info(id, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module TreezorClient
|
|
33
33
|
# Get a virtualiban from the system by its id.
|
34
34
|
# @param id VirtualIban's id.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
37
37
|
def getvirtualiban_with_http_info(id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualiban ...'
|
@@ -67,7 +67,7 @@ module TreezorClient
|
|
67
67
|
:form_params => form_params,
|
68
68
|
:body => post_body,
|
69
69
|
:auth_names => auth_names,
|
70
|
-
:return_type => '
|
70
|
+
:return_type => 'InlineResponse20027')
|
71
71
|
if @api_client.config.debugging
|
72
72
|
@api_client.config.logger.debug "API called: VirtualibansApi#getvirtualiban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
73
|
end
|
@@ -97,7 +97,7 @@ module TreezorClient
|
|
97
97
|
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
98
98
|
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
99
99
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
100
|
-
# @return [
|
100
|
+
# @return [InlineResponse20027]
|
101
101
|
def getvirtualibans(valid_from, opts = {})
|
102
102
|
data, _status_code, _headers = getvirtualibans_with_http_info(valid_from, opts)
|
103
103
|
data
|
@@ -127,7 +127,7 @@ module TreezorClient
|
|
127
127
|
# @option opts [Integer] :page_count The number of items per page. More info [here](https://agent.treezor.com/lists).
|
128
128
|
# @option opts [String] :sort_by The transaction element you want to sort the list with. Default value : createdDate. More info [here](https://agent.treezor.com/lists).
|
129
129
|
# @option opts [String] :sort_order The order you want to sort the list. * **DESC** for a descending sort * **ASC** for a ascending sort. Default value : DESC. More info [here](https://agent.treezor.com/lists).
|
130
|
-
# @return [Array<(
|
130
|
+
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
131
131
|
def getvirtualibans_with_http_info(valid_from, opts = {})
|
132
132
|
if @api_client.config.debugging
|
133
133
|
@api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualibans ...'
|
@@ -182,7 +182,7 @@ module TreezorClient
|
|
182
182
|
:form_params => form_params,
|
183
183
|
:body => post_body,
|
184
184
|
:auth_names => auth_names,
|
185
|
-
:return_type => '
|
185
|
+
:return_type => 'InlineResponse20027')
|
186
186
|
if @api_client.config.debugging
|
187
187
|
@api_client.config.logger.debug "API called: VirtualibansApi#getvirtualibans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
188
|
end
|
@@ -203,7 +203,7 @@ module TreezorClient
|
|
203
203
|
# @option opts [Date] :valid_to The limit date of validity. Cannot be less or equal to the validFrom date.
|
204
204
|
# @option opts [Integer] :max_usage The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.
|
205
205
|
# @option opts [Float] :max_amount The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.
|
206
|
-
# @return [
|
206
|
+
# @return [InlineResponse20027]
|
207
207
|
def post_virtual_iban(wallet_id, type_id, opts = {})
|
208
208
|
data, _status_code, _headers = post_virtual_iban_with_http_info(wallet_id, type_id, opts)
|
209
209
|
data
|
@@ -224,7 +224,7 @@ module TreezorClient
|
|
224
224
|
# @option opts [Date] :valid_to The limit date of validity. Cannot be less or equal to the validFrom date.
|
225
225
|
# @option opts [Integer] :max_usage The maximum number of usage authorized. If you want to set no maximum usage limitation you can omit the parameter or set it to null. If you want to limit usage please send an integer in that field. This integer cannot be less than 1.
|
226
226
|
# @option opts [Float] :max_amount The maximum amount authorized.If you want to set no maximum usage amount limitation you can omit the parameter or set it to null. If you want to limit the amount please send a DECIMAL (with a point as separator) in that field. This decimal cannot be less than 0.00.
|
227
|
-
# @return [Array<(
|
227
|
+
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
228
228
|
def post_virtual_iban_with_http_info(wallet_id, type_id, opts = {})
|
229
229
|
if @api_client.config.debugging
|
230
230
|
@api_client.config.logger.debug 'Calling API: VirtualibansApi.post_virtual_iban ...'
|
@@ -274,7 +274,7 @@ module TreezorClient
|
|
274
274
|
:form_params => form_params,
|
275
275
|
:body => post_body,
|
276
276
|
:auth_names => auth_names,
|
277
|
-
:return_type => '
|
277
|
+
:return_type => 'InlineResponse20027')
|
278
278
|
if @api_client.config.debugging
|
279
279
|
@api_client.config.logger.debug "API called: VirtualibansApi#post_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
280
|
end
|
@@ -293,7 +293,7 @@ module TreezorClient
|
|
293
293
|
# @option opts [Date] :valid_to The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.
|
294
294
|
# @option opts [Integer] :max_usage The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.
|
295
295
|
# @option opts [Float] :max_amount The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.
|
296
|
-
# @return [
|
296
|
+
# @return [InlineResponse20027]
|
297
297
|
def put_virtual_iban(id, opts = {})
|
298
298
|
data, _status_code, _headers = put_virtual_iban_with_http_info(id, opts)
|
299
299
|
data
|
@@ -312,7 +312,7 @@ module TreezorClient
|
|
312
312
|
# @option opts [Date] :valid_to The limit date of validity. It must follow the rules of creation. It must follow the rules explained in the POST endpoint.
|
313
313
|
# @option opts [Integer] :max_usage The maximum number of usage authorized. It must follow the rules explained in the POST endpoint AND the maximum usage cannot be strictly less than the transaction counter of the Virtual Iban.
|
314
314
|
# @option opts [Float] :max_amount The maximum amount authorized. It must follow the rules explained in the POST endpoint AND the maximum amount cannot be strictly less than the cumulated amount of this Virtual Iban.
|
315
|
-
# @return [Array<(
|
315
|
+
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
316
316
|
def put_virtual_iban_with_http_info(id, opts = {})
|
317
317
|
if @api_client.config.debugging
|
318
318
|
@api_client.config.logger.debug 'Calling API: VirtualibansApi.put_virtual_iban ...'
|
@@ -355,7 +355,7 @@ module TreezorClient
|
|
355
355
|
:form_params => form_params,
|
356
356
|
:body => post_body,
|
357
357
|
:auth_names => auth_names,
|
358
|
-
:return_type => '
|
358
|
+
:return_type => 'InlineResponse20027')
|
359
359
|
if @api_client.config.debugging
|
360
360
|
@api_client.config.logger.debug "API called: VirtualibansApi#put_virtual_iban\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
361
361
|
end
|
@@ -28,7 +28,7 @@ module TreezorClient
|
|
28
28
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
29
29
|
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
30
30
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
31
|
-
# @return [
|
31
|
+
# @return [InlineResponse20028]
|
32
32
|
def delete_wallet(id, origin, opts = {})
|
33
33
|
data, _status_code, _headers = delete_wallet_with_http_info(id, origin, opts)
|
34
34
|
data
|
@@ -43,7 +43,7 @@ module TreezorClient
|
|
43
43
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
44
44
|
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
45
45
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
46
|
-
# @return [Array<(
|
46
|
+
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
47
47
|
def delete_wallet_with_http_info(id, origin, opts = {})
|
48
48
|
if @api_client.config.debugging
|
49
49
|
@api_client.config.logger.debug 'Calling API: WalletApi.delete_wallet ...'
|
@@ -86,7 +86,7 @@ module TreezorClient
|
|
86
86
|
:form_params => form_params,
|
87
87
|
:body => post_body,
|
88
88
|
:auth_names => auth_names,
|
89
|
-
:return_type => '
|
89
|
+
:return_type => 'InlineResponse20028')
|
90
90
|
if @api_client.config.debugging
|
91
91
|
@api_client.config.logger.debug "API called: WalletApi#delete_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
92
92
|
end
|
@@ -100,7 +100,7 @@ module TreezorClient
|
|
100
100
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
101
101
|
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
102
102
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
103
|
-
# @return [
|
103
|
+
# @return [InlineResponse20028]
|
104
104
|
def get_wallet(id, opts = {})
|
105
105
|
data, _status_code, _headers = get_wallet_with_http_info(id, opts)
|
106
106
|
data
|
@@ -114,7 +114,7 @@ module TreezorClient
|
|
114
114
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
115
115
|
# @option opts [Integer] :access_user_id Access user's id is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
116
116
|
# @option opts [String] :access_user_ip Access user's ip is used for user's action restriction. More info [here](https://agent.treezor.com/basics).
|
117
|
-
# @return [Array<(
|
117
|
+
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
118
118
|
def get_wallet_with_http_info(id, opts = {})
|
119
119
|
if @api_client.config.debugging
|
120
120
|
@api_client.config.logger.debug 'Calling API: WalletApi.get_wallet ...'
|
@@ -152,7 +152,7 @@ module TreezorClient
|
|
152
152
|
:form_params => form_params,
|
153
153
|
:body => post_body,
|
154
154
|
:auth_names => auth_names,
|
155
|
-
:return_type => '
|
155
|
+
:return_type => 'InlineResponse20028')
|
156
156
|
if @api_client.config.debugging
|
157
157
|
@api_client.config.logger.debug "API called: WalletApi#get_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
158
|
end
|
@@ -186,7 +186,7 @@ module TreezorClient
|
|
186
186
|
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
187
187
|
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
188
188
|
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
189
|
-
# @return [
|
189
|
+
# @return [InlineResponse20028]
|
190
190
|
def get_wallets(opts = {})
|
191
191
|
data, _status_code, _headers = get_wallets_with_http_info(opts)
|
192
192
|
data
|
@@ -220,7 +220,7 @@ module TreezorClient
|
|
220
220
|
# @option opts [DateTime] :created_date_to The creation date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
221
221
|
# @option opts [DateTime] :updated_date_from The modification date from which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
222
222
|
# @option opts [DateTime] :updated_date_to The modification date up to which you want to filter the request result. Format YYYY-MM-DD HH:MM:SS. More info [here](https://agent.treezor.com/lists)
|
223
|
-
# @return [Array<(
|
223
|
+
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
224
224
|
def get_wallets_with_http_info(opts = {})
|
225
225
|
if @api_client.config.debugging
|
226
226
|
@api_client.config.logger.debug 'Calling API: WalletApi.get_wallets ...'
|
@@ -275,7 +275,7 @@ module TreezorClient
|
|
275
275
|
:form_params => form_params,
|
276
276
|
:body => post_body,
|
277
277
|
:auth_names => auth_names,
|
278
|
-
:return_type => '
|
278
|
+
:return_type => 'InlineResponse20028')
|
279
279
|
if @api_client.config.debugging
|
280
280
|
@api_client.config.logger.debug "API called: WalletApi#get_wallets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
281
281
|
end
|
@@ -299,9 +299,9 @@ module TreezorClient
|
|
299
299
|
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding. Please note that the eventAlias must be unique.
|
300
300
|
# @option opts [Date] :event_date Wallet event date. Format : YYYY-MM-DD. Default: Created date + 7 days.
|
301
301
|
# @option opts [String] :event_message It can be a description of the wallet.
|
302
|
-
# @option opts [Date] :event_payin_start_date Wallet activation date. The date
|
302
|
+
# @option opts [Date] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD. If null, the default date will be the created date of the wallet.
|
303
303
|
# @option opts [Date] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD. If null, the money can be deposited indefinitely on the wallet
|
304
|
-
# @return [
|
304
|
+
# @return [InlineResponse20028]
|
305
305
|
def post_wallets(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
306
306
|
data, _status_code, _headers = post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts)
|
307
307
|
data
|
@@ -325,9 +325,9 @@ module TreezorClient
|
|
325
325
|
# @option opts [String] :event_alias Short url wallet name. It's automatically generated by the system, but it could be modified and customised by the user. For example: www.domain.com/wallet=mywedding. Please note that the eventAlias must be unique.
|
326
326
|
# @option opts [Date] :event_date Wallet event date. Format : YYYY-MM-DD. Default: Created date + 7 days.
|
327
327
|
# @option opts [String] :event_message It can be a description of the wallet.
|
328
|
-
# @option opts [Date] :event_payin_start_date Wallet activation date. The date
|
328
|
+
# @option opts [Date] :event_payin_start_date Wallet activation date. The date from which you can deposit money on the wallet. Format : YYYY-MM-DD. If null, the default date will be the created date of the wallet.
|
329
329
|
# @option opts [Date] :event_payin_end_date Deadline to money deposit on the wallet. Format : YYYY-MM-DD. If null, the money can be deposited indefinitely on the wallet
|
330
|
-
# @return [Array<(
|
330
|
+
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
331
331
|
def post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
332
332
|
if @api_client.config.debugging
|
333
333
|
@api_client.config.logger.debug 'Calling API: WalletApi.post_wallets ...'
|
@@ -394,7 +394,7 @@ module TreezorClient
|
|
394
394
|
:form_params => form_params,
|
395
395
|
:body => post_body,
|
396
396
|
:auth_names => auth_names,
|
397
|
-
:return_type => '
|
397
|
+
:return_type => 'InlineResponse20028')
|
398
398
|
if @api_client.config.debugging
|
399
399
|
@api_client.config.logger.debug "API called: WalletApi#post_wallets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
400
400
|
end
|
@@ -418,7 +418,7 @@ module TreezorClient
|
|
418
418
|
# @option opts [String] :url_image Change URL image
|
419
419
|
# @option opts [String] :image_name Change image name
|
420
420
|
# @option opts [String] :tariff_id Change tariff id
|
421
|
-
# @return [
|
421
|
+
# @return [InlineResponse20028]
|
422
422
|
def put_wallet(id, opts = {})
|
423
423
|
data, _status_code, _headers = put_wallet_with_http_info(id, opts)
|
424
424
|
data
|
@@ -442,7 +442,7 @@ module TreezorClient
|
|
442
442
|
# @option opts [String] :url_image Change URL image
|
443
443
|
# @option opts [String] :image_name Change image name
|
444
444
|
# @option opts [String] :tariff_id Change tariff id
|
445
|
-
# @return [Array<(
|
445
|
+
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
446
446
|
def put_wallet_with_http_info(id, opts = {})
|
447
447
|
if @api_client.config.debugging
|
448
448
|
@api_client.config.logger.debug 'Calling API: WalletApi.put_wallet ...'
|
@@ -490,7 +490,7 @@ module TreezorClient
|
|
490
490
|
:form_params => form_params,
|
491
491
|
:body => post_body,
|
492
492
|
:auth_names => auth_names,
|
493
|
-
:return_type => '
|
493
|
+
:return_type => 'InlineResponse20028')
|
494
494
|
if @api_client.config.debugging
|
495
495
|
@api_client.config.logger.debug "API called: WalletApi#put_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
496
496
|
end
|
@@ -14,51 +14,75 @@ require 'date'
|
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class Body
|
17
|
-
#
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
# The Token Requestor also named wallet provider.
|
21
|
-
attr_accessor :token_requestor
|
22
|
-
|
23
|
-
attr_accessor :additionnal_data
|
24
|
-
|
25
|
-
class EnumAttributeValidator
|
26
|
-
attr_reader :datatype
|
27
|
-
attr_reader :allowable_values
|
28
|
-
|
29
|
-
def initialize(datatype, allowable_values)
|
30
|
-
@allowable_values = allowable_values.map do |value|
|
31
|
-
case datatype.to_s
|
32
|
-
when /Integer/i
|
33
|
-
value.to_i
|
34
|
-
when /Float/i
|
35
|
-
value.to_f
|
36
|
-
else
|
37
|
-
value
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
17
|
+
# Custom data that could be used by caller to search the instance.
|
18
|
+
attr_accessor :tag
|
41
19
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
end
|
20
|
+
# Beneficiary's userId
|
21
|
+
attr_accessor :user_id
|
22
|
+
|
23
|
+
# Name choosen by end user to easily recognize the beneficiary.
|
24
|
+
attr_accessor :nick_name
|
25
|
+
|
26
|
+
# Beneficiary name, linked to bank account.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
|
+
# Beneficiary address, linked to bank account.
|
30
|
+
attr_accessor :address
|
31
|
+
|
32
|
+
# Beneficiary International Bank Account Number. Mandatory if usableForSct is true.
|
33
|
+
attr_accessor :iban
|
34
|
+
|
35
|
+
# Beneficiary Bank Identifier Code. Mandatory if usableForSct is true.
|
36
|
+
attr_accessor :bic
|
37
|
+
|
38
|
+
# 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
|
+
attr_accessor :sepa_creditor_identifier
|
40
|
+
|
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. If provided, sepaCreditorIdentifier is mandatory.
|
42
|
+
attr_accessor :sdd_b2b_whitelist
|
43
|
+
|
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. If provided, sepaCreditorIdentifier is mandatory.
|
45
|
+
attr_accessor :sdd_core_blacklist
|
46
|
+
|
47
|
+
# 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.
|
48
|
+
attr_accessor :usable_for_sct
|
49
|
+
|
50
|
+
# List of the object's properties you want to pick up.
|
51
|
+
attr_accessor :fields
|
46
52
|
|
47
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
54
|
def self.attribute_map
|
49
55
|
{
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
56
|
+
:'tag' => :'tag',
|
57
|
+
:'user_id' => :'userId',
|
58
|
+
:'nick_name' => :'nickName',
|
59
|
+
:'name' => :'name',
|
60
|
+
:'address' => :'address',
|
61
|
+
:'iban' => :'iban',
|
62
|
+
:'bic' => :'bic',
|
63
|
+
:'sepa_creditor_identifier' => :'sepaCreditorIdentifier',
|
64
|
+
:'sdd_b2b_whitelist' => :'sddB2bWhitelist',
|
65
|
+
:'sdd_core_blacklist' => :'sddCoreBlacklist',
|
66
|
+
:'usable_for_sct' => :'usableForSct',
|
67
|
+
:'fields' => :'fields'
|
53
68
|
}
|
54
69
|
end
|
55
70
|
|
56
71
|
# Attribute type mapping.
|
57
72
|
def self.swagger_types
|
58
73
|
{
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
74
|
+
:'tag' => :'String',
|
75
|
+
:'user_id' => :'Integer',
|
76
|
+
:'nick_name' => :'String',
|
77
|
+
:'name' => :'String',
|
78
|
+
:'address' => :'String',
|
79
|
+
:'iban' => :'String',
|
80
|
+
:'bic' => :'String',
|
81
|
+
:'sepa_creditor_identifier' => :'String',
|
82
|
+
:'sdd_b2b_whitelist' => :'Array<BeneficiariesSddB2bWhitelist>',
|
83
|
+
:'sdd_core_blacklist' => :'Array<String>',
|
84
|
+
:'usable_for_sct' => :'BOOLEAN',
|
85
|
+
:'fields' => :'Array<String>'
|
62
86
|
}
|
63
87
|
end
|
64
88
|
|
@@ -70,16 +94,60 @@ module TreezorClient
|
|
70
94
|
# convert string to symbol for hash key
|
71
95
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
96
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
97
|
+
if attributes.has_key?(:'tag')
|
98
|
+
self.tag = attributes[:'tag']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'userId')
|
102
|
+
self.user_id = attributes[:'userId']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'nickName')
|
106
|
+
self.nick_name = attributes[:'nickName']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.has_key?(:'name')
|
110
|
+
self.name = attributes[:'name']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'address')
|
114
|
+
self.address = attributes[:'address']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'iban')
|
118
|
+
self.iban = attributes[:'iban']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'bic')
|
122
|
+
self.bic = attributes[:'bic']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.has_key?(:'sepaCreditorIdentifier')
|
126
|
+
self.sepa_creditor_identifier = attributes[:'sepaCreditorIdentifier']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.has_key?(:'sddB2bWhitelist')
|
130
|
+
if (value = attributes[:'sddB2bWhitelist']).is_a?(Array)
|
131
|
+
self.sdd_b2b_whitelist = value
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'sddCoreBlacklist')
|
136
|
+
if (value = attributes[:'sddCoreBlacklist']).is_a?(Array)
|
137
|
+
self.sdd_core_blacklist = value
|
138
|
+
end
|
75
139
|
end
|
76
140
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
141
|
+
if attributes.has_key?(:'usableForSct')
|
142
|
+
self.usable_for_sct = attributes[:'usableForSct']
|
143
|
+
else
|
144
|
+
self.usable_for_sct = false
|
79
145
|
end
|
80
146
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
|
147
|
+
if attributes.has_key?(:'fields')
|
148
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
149
|
+
self.fields = value
|
150
|
+
end
|
83
151
|
end
|
84
152
|
end
|
85
153
|
|
@@ -87,12 +155,12 @@ module TreezorClient
|
|
87
155
|
# @return Array for valid properties with the reasons
|
88
156
|
def list_invalid_properties
|
89
157
|
invalid_properties = Array.new
|
90
|
-
if @
|
91
|
-
invalid_properties.push('invalid value for "
|
158
|
+
if @user_id.nil?
|
159
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
92
160
|
end
|
93
161
|
|
94
|
-
if @
|
95
|
-
invalid_properties.push('invalid value for "
|
162
|
+
if @name.nil?
|
163
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
96
164
|
end
|
97
165
|
|
98
166
|
invalid_properties
|
@@ -101,31 +169,28 @@ module TreezorClient
|
|
101
169
|
# Check to see if the all the properties in the model are valid
|
102
170
|
# @return true if the model is valid
|
103
171
|
def valid?
|
104
|
-
return false if @
|
105
|
-
return false if @
|
106
|
-
token_requestor_validator = EnumAttributeValidator.new('String', ['APPLE', 'SAMSUNG', 'GOOGLE'])
|
107
|
-
return false unless token_requestor_validator.valid?(@token_requestor)
|
172
|
+
return false if @user_id.nil?
|
173
|
+
return false if @name.nil?
|
108
174
|
true
|
109
175
|
end
|
110
176
|
|
111
|
-
# Custom attribute writer method checking allowed values (enum).
|
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}.'
|
117
|
-
end
|
118
|
-
@token_requestor = token_requestor
|
119
|
-
end
|
120
|
-
|
121
177
|
# Checks equality by comparing each attribute.
|
122
178
|
# @param [Object] Object to be compared
|
123
179
|
def ==(o)
|
124
180
|
return true if self.equal?(o)
|
125
181
|
self.class == o.class &&
|
126
|
-
|
127
|
-
|
128
|
-
|
182
|
+
tag == o.tag &&
|
183
|
+
user_id == o.user_id &&
|
184
|
+
nick_name == o.nick_name &&
|
185
|
+
name == o.name &&
|
186
|
+
address == o.address &&
|
187
|
+
iban == o.iban &&
|
188
|
+
bic == o.bic &&
|
189
|
+
sepa_creditor_identifier == o.sepa_creditor_identifier &&
|
190
|
+
sdd_b2b_whitelist == o.sdd_b2b_whitelist &&
|
191
|
+
sdd_core_blacklist == o.sdd_core_blacklist &&
|
192
|
+
usable_for_sct == o.usable_for_sct &&
|
193
|
+
fields == o.fields
|
129
194
|
end
|
130
195
|
|
131
196
|
# @see the `==` method
|
@@ -137,7 +202,7 @@ module TreezorClient
|
|
137
202
|
# Calculates hash code according to all attributes.
|
138
203
|
# @return [Fixnum] Hash code
|
139
204
|
def hash
|
140
|
-
[
|
205
|
+
[tag, user_id, nick_name, name, address, iban, bic, sepa_creditor_identifier, sdd_b2b_whitelist, sdd_core_blacklist, usable_for_sct, fields].hash
|
141
206
|
end
|
142
207
|
|
143
208
|
# Builds the object from hash
|