treezor_client 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/BalanceApi.md +3 -3
- data/docs/BankaccountApi.md +21 -21
- data/docs/BeneficiariesApi.md +18 -18
- data/docs/BusinessApi.md +22 -22
- data/docs/CardApi.md +66 -66
- data/docs/CardDigitalizationsApi.md +9 -9
- data/docs/CardReserveApi.md +9 -9
- data/docs/CardtransactionApi.md +5 -5
- data/docs/CountryRestrictionGroupsApi.md +16 -16
- data/docs/DocumentApi.md +23 -23
- data/docs/HeartbeatApi.md +3 -3
- data/docs/IssuerInitiatedDigitizationDataApi.md +10 -10
- data/docs/MandateApi.md +33 -33
- data/docs/MccRestrictionGroupsApi.md +16 -16
- data/docs/MerchantIdRestrictionGroupsApi.md +15 -15
- data/docs/PayinApi.md +28 -28
- data/docs/PayinrefundApi.md +20 -20
- data/docs/PayoutApi.md +27 -27
- data/docs/PayoutRefundsApi.md +6 -6
- data/docs/TaxResidenceApi.md +9 -9
- data/docs/TransactionApi.md +14 -14
- data/docs/TransferApi.md +23 -23
- data/docs/TransferrefundApi.md +19 -19
- data/docs/UserApi.md +103 -103
- data/docs/VirtualibansApi.md +24 -24
- data/docs/WalletApi.md +45 -45
- data/lib/treezor_client/api/balance_api.rb +5 -6
- data/lib/treezor_client/api/bankaccount_api.rb +14 -18
- data/lib/treezor_client/api/beneficiaries_api.rb +14 -18
- data/lib/treezor_client/api/business_api.rb +11 -13
- data/lib/treezor_client/api/card_api.rb +53 -76
- data/lib/treezor_client/api/card_digitalizations_api.rb +14 -18
- data/lib/treezor_client/api/card_reserve_api.rb +11 -14
- data/lib/treezor_client/api/cardtransaction_api.rb +8 -10
- data/lib/treezor_client/api/country_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/document_api.rb +28 -33
- data/lib/treezor_client/api/heartbeat_api.rb +5 -6
- data/lib/treezor_client/api/issuer_initiated_digitization_data_api.rb +8 -10
- data/lib/treezor_client/api/mandate_api.rb +20 -26
- data/lib/treezor_client/api/mcc_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/merchant_id_restriction_groups_api.rb +17 -22
- data/lib/treezor_client/api/payin_api.rb +14 -18
- data/lib/treezor_client/api/payinrefund_api.rb +14 -18
- data/lib/treezor_client/api/payout_api.rb +14 -18
- data/lib/treezor_client/api/payout_refunds_api.rb +5 -6
- data/lib/treezor_client/api/tax_residence_api.rb +17 -22
- data/lib/treezor_client/api/transaction_api.rb +8 -10
- data/lib/treezor_client/api/transfer_api.rb +14 -18
- data/lib/treezor_client/api/transferrefund_api.rb +14 -18
- data/lib/treezor_client/api/user_api.rb +20 -26
- data/lib/treezor_client/api/virtualibans_api.rb +14 -18
- data/lib/treezor_client/api/wallet_api.rb +17 -22
- data/lib/treezor_client/api_client.rb +9 -9
- data/lib/treezor_client/api_error.rb +1 -1
- data/lib/treezor_client/configuration.rb +2 -2
- data/lib/treezor_client/models/balance.rb +6 -11
- data/lib/treezor_client/models/bankaccount.rb +9 -13
- data/lib/treezor_client/models/beneficiaries_sdd_b2b_whitelist.rb +8 -13
- data/lib/treezor_client/models/beneficiary.rb +6 -11
- data/lib/treezor_client/models/body.rb +11 -15
- data/lib/treezor_client/models/body_1.rb +8 -13
- data/lib/treezor_client/models/body_10.rb +9 -13
- data/lib/treezor_client/models/body_2.rb +6 -11
- data/lib/treezor_client/models/body_3.rb +8 -13
- data/lib/treezor_client/models/body_4.rb +8 -13
- data/lib/treezor_client/models/body_5.rb +11 -15
- data/lib/treezor_client/models/body_6.rb +9 -13
- data/lib/treezor_client/models/body_7.rb +11 -15
- data/lib/treezor_client/models/body_8.rb +9 -13
- data/lib/treezor_client/models/body_9.rb +11 -15
- data/lib/treezor_client/models/businesssearchs_businessinformations.rb +9 -13
- data/lib/treezor_client/models/card.rb +9 -13
- data/lib/treezor_client/models/card_digitalization.rb +6 -11
- data/lib/treezor_client/models/country_restriction_group.rb +9 -13
- data/lib/treezor_client/models/document.rb +9 -13
- data/lib/treezor_client/models/error.rb +6 -11
- data/lib/treezor_client/models/inline_response_200.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_1.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_10_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_11_cardtransactions.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_12.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_13.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_14.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_15.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_16.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_17.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_18.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_19.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_2.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_20.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_21.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_22.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_23.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_24.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_25.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_26.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_27.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_28.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_3.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_4.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_5_businessinformations.rb +21 -25
- data/lib/treezor_client/models/inline_response_200_5_users.rb +9 -13
- data/lib/treezor_client/models/inline_response_200_6.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_7_cardimages.rb +8 -14
- data/lib/treezor_client/models/inline_response_200_8.rb +6 -11
- data/lib/treezor_client/models/inline_response_200_9.rb +6 -11
- data/lib/treezor_client/models/inline_response_default.rb +6 -11
- data/lib/treezor_client/models/issuer_initiated_digitization_datas_additionnal_data.rb +8 -13
- data/lib/treezor_client/models/mandate.rb +15 -19
- data/lib/treezor_client/models/mcc_restriction_group.rb +9 -13
- data/lib/treezor_client/models/merchant_id_restriction_group.rb +9 -13
- data/lib/treezor_client/models/payin.rb +9 -13
- data/lib/treezor_client/models/payinrefund.rb +9 -13
- data/lib/treezor_client/models/payout.rb +12 -16
- data/lib/treezor_client/models/payout_refund.rb +9 -13
- data/lib/treezor_client/models/tav.rb +6 -11
- data/lib/treezor_client/models/tax_residence.rb +6 -11
- data/lib/treezor_client/models/transaction.rb +6 -11
- data/lib/treezor_client/models/transfer.rb +9 -13
- data/lib/treezor_client/models/transferrefund.rb +9 -13
- data/lib/treezor_client/models/user.rb +12 -16
- data/lib/treezor_client/models/virtualiban.rb +6 -11
- data/lib/treezor_client/models/wallet.rb +9 -13
- data/lib/treezor_client/version.rb +2 -2
- data/lib/treezor_client.rb +1 -1
- data/pkg/treezor_client-1.3.0.gem +0 -0
- data/pkg/treezor_client-1.4.0.gem +0 -0
- data/treezor_api_spec.yaml +11 -11
- metadata +4 -2
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class TransferrefundApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# cancel a transfer refund
|
24
23
|
# Change transfer refund's status to CANCELED. A validated transfer refund can't be cancelled.
|
25
24
|
# @param id Transferrefunds internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20024]
|
28
27
|
def delete_transferrefund(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_transferrefund_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# cancel a transfer refund
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
38
37
|
def delete_transferrefund_with_http_info(id, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: TransferrefundApi.delete_transferrefund ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'id' is set
|
43
42
|
if @api_client.config.client_side_validation && id.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'id' when calling TransferrefundApi.delete_transferrefund"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/transferrefunds/{id}'.sub('{' + 'id' + '}', id.to_s)
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module TreezorClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# get a transfer refund
|
79
77
|
# Get a transfer refund from the system.
|
80
78
|
# @param id Trasnfert refund internal id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20024]
|
83
81
|
def get_transferrefund(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_transferrefund_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a transfer refund
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
93
91
|
def get_transferrefund_with_http_info(id, opts = {})
|
94
92
|
if @api_client.config.debugging
|
95
|
-
@api_client.config.logger.debug
|
93
|
+
@api_client.config.logger.debug 'Calling API: TransferrefundApi.get_transferrefund ...'
|
96
94
|
end
|
97
95
|
# verify the required parameter 'id' is set
|
98
96
|
if @api_client.config.client_side_validation && id.nil?
|
99
97
|
fail ArgumentError, "Missing the required parameter 'id' when calling TransferrefundApi.get_transferrefund"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/transferrefunds/{id}'.sub('{' + 'id' + '}', id.to_s)
|
103
101
|
|
104
102
|
# query parameters
|
105
103
|
query_params = {}
|
@@ -129,7 +127,6 @@ module TreezorClient
|
|
129
127
|
end
|
130
128
|
return data, status_code, headers
|
131
129
|
end
|
132
|
-
|
133
130
|
# search transfer refunds
|
134
131
|
# Get transfer refunds that match search criteria.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -157,7 +154,7 @@ module TreezorClient
|
|
157
154
|
# @return [InlineResponse20024]
|
158
155
|
def get_transferrefunds(opts = {})
|
159
156
|
data, _status_code, _headers = get_transferrefunds_with_http_info(opts)
|
160
|
-
|
157
|
+
data
|
161
158
|
end
|
162
159
|
|
163
160
|
# search transfer refunds
|
@@ -187,10 +184,10 @@ module TreezorClient
|
|
187
184
|
# @return [Array<(InlineResponse20024, Fixnum, Hash)>] InlineResponse20024 data, response status code and response headers
|
188
185
|
def get_transferrefunds_with_http_info(opts = {})
|
189
186
|
if @api_client.config.debugging
|
190
|
-
@api_client.config.logger.debug
|
187
|
+
@api_client.config.logger.debug 'Calling API: TransferrefundApi.get_transferrefunds ...'
|
191
188
|
end
|
192
189
|
# resource path
|
193
|
-
local_var_path =
|
190
|
+
local_var_path = '/transferrefunds'
|
194
191
|
|
195
192
|
# query parameters
|
196
193
|
query_params = {}
|
@@ -241,7 +238,6 @@ module TreezorClient
|
|
241
238
|
end
|
242
239
|
return data, status_code, headers
|
243
240
|
end
|
244
|
-
|
245
241
|
# create a transfer refund
|
246
242
|
# Create a new transfer refund in the system.
|
247
243
|
# @param transfer_id transfer's id to refund.
|
@@ -257,7 +253,7 @@ module TreezorClient
|
|
257
253
|
# @return [InlineResponse20025]
|
258
254
|
def post_transferrefunds(transfer_id, amount, currency, opts = {})
|
259
255
|
data, _status_code, _headers = post_transferrefunds_with_http_info(transfer_id, amount, currency, opts)
|
260
|
-
|
256
|
+
data
|
261
257
|
end
|
262
258
|
|
263
259
|
# create a transfer refund
|
@@ -275,7 +271,7 @@ module TreezorClient
|
|
275
271
|
# @return [Array<(InlineResponse20025, Fixnum, Hash)>] InlineResponse20025 data, response status code and response headers
|
276
272
|
def post_transferrefunds_with_http_info(transfer_id, amount, currency, opts = {})
|
277
273
|
if @api_client.config.debugging
|
278
|
-
@api_client.config.logger.debug
|
274
|
+
@api_client.config.logger.debug 'Calling API: TransferrefundApi.post_transferrefunds ...'
|
279
275
|
end
|
280
276
|
# verify the required parameter 'transfer_id' is set
|
281
277
|
if @api_client.config.client_side_validation && transfer_id.nil?
|
@@ -290,7 +286,7 @@ module TreezorClient
|
|
290
286
|
fail ArgumentError, "Missing the required parameter 'currency' when calling TransferrefundApi.post_transferrefunds"
|
291
287
|
end
|
292
288
|
# resource path
|
293
|
-
local_var_path =
|
289
|
+
local_var_path = '/transferrefunds'
|
294
290
|
|
295
291
|
# query parameters
|
296
292
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class UserApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# delete a user
|
24
23
|
# Change user's status to **CANCELED**.
|
25
24
|
# @param id User's ID
|
@@ -32,7 +31,7 @@ module TreezorClient
|
|
32
31
|
# @return [InlineResponse20026]
|
33
32
|
def delete_user(id, origin, opts = {})
|
34
33
|
data, _status_code, _headers = delete_user_with_http_info(id, origin, opts)
|
35
|
-
|
34
|
+
data
|
36
35
|
end
|
37
36
|
|
38
37
|
# delete a user
|
@@ -47,7 +46,7 @@ module TreezorClient
|
|
47
46
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
48
47
|
def delete_user_with_http_info(id, origin, opts = {})
|
49
48
|
if @api_client.config.debugging
|
50
|
-
@api_client.config.logger.debug
|
49
|
+
@api_client.config.logger.debug 'Calling API: UserApi.delete_user ...'
|
51
50
|
end
|
52
51
|
# verify the required parameter 'id' is set
|
53
52
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -58,7 +57,7 @@ module TreezorClient
|
|
58
57
|
fail ArgumentError, "Missing the required parameter 'origin' when calling UserApi.delete_user"
|
59
58
|
end
|
60
59
|
# resource path
|
61
|
-
local_var_path =
|
60
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
62
61
|
|
63
62
|
# query parameters
|
64
63
|
query_params = {}
|
@@ -93,7 +92,6 @@ module TreezorClient
|
|
93
92
|
end
|
94
93
|
return data, status_code, headers
|
95
94
|
end
|
96
|
-
|
97
95
|
# get an user
|
98
96
|
# Get user's information for given user's id.
|
99
97
|
# @param id User's ID
|
@@ -105,7 +103,7 @@ module TreezorClient
|
|
105
103
|
# @return [InlineResponse20026]
|
106
104
|
def get_user(id, opts = {})
|
107
105
|
data, _status_code, _headers = get_user_with_http_info(id, opts)
|
108
|
-
|
106
|
+
data
|
109
107
|
end
|
110
108
|
|
111
109
|
# get an user
|
@@ -119,14 +117,14 @@ module TreezorClient
|
|
119
117
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
120
118
|
def get_user_with_http_info(id, opts = {})
|
121
119
|
if @api_client.config.debugging
|
122
|
-
@api_client.config.logger.debug
|
120
|
+
@api_client.config.logger.debug 'Calling API: UserApi.get_user ...'
|
123
121
|
end
|
124
122
|
# verify the required parameter 'id' is set
|
125
123
|
if @api_client.config.client_side_validation && id.nil?
|
126
124
|
fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.get_user"
|
127
125
|
end
|
128
126
|
# resource path
|
129
|
-
local_var_path =
|
127
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
130
128
|
|
131
129
|
# query parameters
|
132
130
|
query_params = {}
|
@@ -160,7 +158,6 @@ module TreezorClient
|
|
160
158
|
end
|
161
159
|
return data, status_code, headers
|
162
160
|
end
|
163
|
-
|
164
161
|
# search users
|
165
162
|
# Get users from the system.
|
166
163
|
# @param [Hash] opts the optional parameters
|
@@ -190,7 +187,7 @@ module TreezorClient
|
|
190
187
|
# @return [InlineResponse20026]
|
191
188
|
def get_users(opts = {})
|
192
189
|
data, _status_code, _headers = get_users_with_http_info(opts)
|
193
|
-
|
190
|
+
data
|
194
191
|
end
|
195
192
|
|
196
193
|
# search users
|
@@ -222,10 +219,10 @@ module TreezorClient
|
|
222
219
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
223
220
|
def get_users_with_http_info(opts = {})
|
224
221
|
if @api_client.config.debugging
|
225
|
-
@api_client.config.logger.debug
|
222
|
+
@api_client.config.logger.debug 'Calling API: UserApi.get_users ...'
|
226
223
|
end
|
227
224
|
# resource path
|
228
|
-
local_var_path =
|
225
|
+
local_var_path = '/users'
|
229
226
|
|
230
227
|
# query parameters
|
231
228
|
query_params = {}
|
@@ -278,7 +275,6 @@ module TreezorClient
|
|
278
275
|
end
|
279
276
|
return data, status_code, headers
|
280
277
|
end
|
281
|
-
|
282
278
|
# update a user
|
283
279
|
# Update user's information.
|
284
280
|
# @param id User's ID
|
@@ -330,7 +326,7 @@ module TreezorClient
|
|
330
326
|
# @return [InlineResponse20026]
|
331
327
|
def put_user(id, opts = {})
|
332
328
|
data, _status_code, _headers = put_user_with_http_info(id, opts)
|
333
|
-
|
329
|
+
data
|
334
330
|
end
|
335
331
|
|
336
332
|
# update a user
|
@@ -384,7 +380,7 @@ module TreezorClient
|
|
384
380
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
385
381
|
def put_user_with_http_info(id, opts = {})
|
386
382
|
if @api_client.config.debugging
|
387
|
-
@api_client.config.logger.debug
|
383
|
+
@api_client.config.logger.debug 'Calling API: UserApi.put_user ...'
|
388
384
|
end
|
389
385
|
# verify the required parameter 'id' is set
|
390
386
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -409,7 +405,7 @@ module TreezorClient
|
|
409
405
|
fail ArgumentError, 'invalid value for "personal_assets", must be one of 0-2, 3-22, 23-128, 129-319, 320-464, 465-'
|
410
406
|
end
|
411
407
|
# resource path
|
412
|
-
local_var_path =
|
408
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', id.to_s)
|
413
409
|
|
414
410
|
# query parameters
|
415
411
|
query_params = {}
|
@@ -483,7 +479,6 @@ module TreezorClient
|
|
483
479
|
end
|
484
480
|
return data, status_code, headers
|
485
481
|
end
|
486
|
-
|
487
482
|
# create user
|
488
483
|
# Create a new user in the system.
|
489
484
|
# @param specified_us_person Est considÉrÉ comme ayant la nationalitÉ ou la citoyennetÉ amÉricaine : Tout citoyen des États-Unis : une personne est prÉsumÉe citoyen des Etats-Unis dès lors qu’elle possède un passeport amÉricain ou qu’elle est nÉe sur le territoire des Etats-Unis, même lorsqu’un tel lieu de naissance figure sur un passeport d’un autre pays, ou que la personne possède Également une autre nationalitÉ ou a sa rÉsidence dans un autre pays. Une condition nÉanmoins : la personne ne doit pas avoir renoncÉ Ã la citoyennetÉ amÉricaine ; • Tout rÉsident lÉgal des États-Unis, quelle que soit sa nationalitÉ : (i) quiconque est considÉrÉ comme rÉsident fiscal aux Etats-Unis aux termes de la loi fÉdÉrale amÉricaine, (ii) quiconque demande à être traitÉ comme rÉsident fiscal aux Etats-Unis, ou (iii) quiconque est considÉrÉ comme rÉsident fiscal aux termes de la loi de cet Etat amÉricain. • Toute personne titulaire d’une carte de sÉjour permanent (green card) aux Etats-Unis ou rÉsidant de façon permanente aux Etats-Unis ou y ayant passÉ une pÉriode suffisamment longue au cours des trois dernières annÉes : | Value | Type | | --- | --- | | 0 | No | | 1 | Yes |
|
@@ -537,7 +532,7 @@ module TreezorClient
|
|
537
532
|
# @return [InlineResponse20026]
|
538
533
|
def put_users(specified_us_person, email, opts = {})
|
539
534
|
data, _status_code, _headers = put_users_with_http_info(specified_us_person, email, opts)
|
540
|
-
|
535
|
+
data
|
541
536
|
end
|
542
537
|
|
543
538
|
# create user
|
@@ -593,7 +588,7 @@ module TreezorClient
|
|
593
588
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
594
589
|
def put_users_with_http_info(specified_us_person, email, opts = {})
|
595
590
|
if @api_client.config.debugging
|
596
|
-
@api_client.config.logger.debug
|
591
|
+
@api_client.config.logger.debug 'Calling API: UserApi.put_users ...'
|
597
592
|
end
|
598
593
|
# verify the required parameter 'specified_us_person' is set
|
599
594
|
if @api_client.config.client_side_validation && specified_us_person.nil?
|
@@ -622,7 +617,7 @@ module TreezorClient
|
|
622
617
|
fail ArgumentError, 'invalid value for "personal_assets", must be one of 0-2, 3-22, 23-128, 129-319, 320-464, 465-'
|
623
618
|
end
|
624
619
|
# resource path
|
625
|
-
local_var_path =
|
620
|
+
local_var_path = '/users'
|
626
621
|
|
627
622
|
# query parameters
|
628
623
|
query_params = {}
|
@@ -699,7 +694,6 @@ module TreezorClient
|
|
699
694
|
end
|
700
695
|
return data, status_code, headers
|
701
696
|
end
|
702
|
-
|
703
697
|
# review user information
|
704
698
|
# Perform a KYC review for given user.
|
705
699
|
# @param id User's id.
|
@@ -712,7 +706,7 @@ module TreezorClient
|
|
712
706
|
# @return [InlineResponse20026]
|
713
707
|
def users_id_kycreview_put(id, opts = {})
|
714
708
|
data, _status_code, _headers = users_id_kycreview_put_with_http_info(id, opts)
|
715
|
-
|
709
|
+
data
|
716
710
|
end
|
717
711
|
|
718
712
|
# review user information
|
@@ -727,14 +721,14 @@ module TreezorClient
|
|
727
721
|
# @return [Array<(InlineResponse20026, Fixnum, Hash)>] InlineResponse20026 data, response status code and response headers
|
728
722
|
def users_id_kycreview_put_with_http_info(id, opts = {})
|
729
723
|
if @api_client.config.debugging
|
730
|
-
@api_client.config.logger.debug
|
724
|
+
@api_client.config.logger.debug 'Calling API: UserApi.users_id_kycreview_put ...'
|
731
725
|
end
|
732
726
|
# verify the required parameter 'id' is set
|
733
727
|
if @api_client.config.client_side_validation && id.nil?
|
734
728
|
fail ArgumentError, "Missing the required parameter 'id' when calling UserApi.users_id_kycreview_put"
|
735
729
|
end
|
736
730
|
# resource path
|
737
|
-
local_var_path =
|
731
|
+
local_var_path = '/users/{id}/Kycreview/'.sub('{' + 'id' + '}', id.to_s)
|
738
732
|
|
739
733
|
# query parameters
|
740
734
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class VirtualibansApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# get a virtualiban by Id
|
24
23
|
# Get a virtualiban from the system by its id.
|
25
24
|
# @param id VirtualIban's id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20018]
|
28
27
|
def getvirtualiban(id, opts = {})
|
29
28
|
data, _status_code, _headers = getvirtualiban_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# get a virtualiban by Id
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
38
37
|
def getvirtualiban_with_http_info(id, opts = {})
|
39
38
|
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug
|
39
|
+
@api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualiban ...'
|
41
40
|
end
|
42
41
|
# verify the required parameter 'id' is set
|
43
42
|
if @api_client.config.client_side_validation && id.nil?
|
44
43
|
fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.getvirtualiban"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/virtualibans/{id}'.sub('{' + 'id' + '}', id.to_s)
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -74,7 +73,6 @@ module TreezorClient
|
|
74
73
|
end
|
75
74
|
return data, status_code, headers
|
76
75
|
end
|
77
|
-
|
78
76
|
# search virtualibans
|
79
77
|
# Get virtualiban that match search criteria.
|
80
78
|
# @param valid_from The beginning date of validity.
|
@@ -102,7 +100,7 @@ module TreezorClient
|
|
102
100
|
# @return [InlineResponse20018]
|
103
101
|
def getvirtualibans(valid_from, opts = {})
|
104
102
|
data, _status_code, _headers = getvirtualibans_with_http_info(valid_from, opts)
|
105
|
-
|
103
|
+
data
|
106
104
|
end
|
107
105
|
|
108
106
|
# search virtualibans
|
@@ -132,14 +130,14 @@ module TreezorClient
|
|
132
130
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
133
131
|
def getvirtualibans_with_http_info(valid_from, opts = {})
|
134
132
|
if @api_client.config.debugging
|
135
|
-
@api_client.config.logger.debug
|
133
|
+
@api_client.config.logger.debug 'Calling API: VirtualibansApi.getvirtualibans ...'
|
136
134
|
end
|
137
135
|
# verify the required parameter 'valid_from' is set
|
138
136
|
if @api_client.config.client_side_validation && valid_from.nil?
|
139
137
|
fail ArgumentError, "Missing the required parameter 'valid_from' when calling VirtualibansApi.getvirtualibans"
|
140
138
|
end
|
141
139
|
# resource path
|
142
|
-
local_var_path =
|
140
|
+
local_var_path = '/virtualibans'
|
143
141
|
|
144
142
|
# query parameters
|
145
143
|
query_params = {}
|
@@ -190,7 +188,6 @@ module TreezorClient
|
|
190
188
|
end
|
191
189
|
return data, status_code, headers
|
192
190
|
end
|
193
|
-
|
194
191
|
# create a virtual IBAN
|
195
192
|
# Create a new virtual IBAN in in the system.
|
196
193
|
# @param wallet_id The Id Of the Wallet. The Wallet must be in validated status. The wallet must be of type \"payment\" or \"electronic money\"
|
@@ -209,7 +206,7 @@ module TreezorClient
|
|
209
206
|
# @return [InlineResponse20018]
|
210
207
|
def post_virtual_iban(wallet_id, type_id, opts = {})
|
211
208
|
data, _status_code, _headers = post_virtual_iban_with_http_info(wallet_id, type_id, opts)
|
212
|
-
|
209
|
+
data
|
213
210
|
end
|
214
211
|
|
215
212
|
# create a virtual IBAN
|
@@ -230,7 +227,7 @@ module TreezorClient
|
|
230
227
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
231
228
|
def post_virtual_iban_with_http_info(wallet_id, type_id, opts = {})
|
232
229
|
if @api_client.config.debugging
|
233
|
-
@api_client.config.logger.debug
|
230
|
+
@api_client.config.logger.debug 'Calling API: VirtualibansApi.post_virtual_iban ...'
|
234
231
|
end
|
235
232
|
# verify the required parameter 'wallet_id' is set
|
236
233
|
if @api_client.config.client_side_validation && wallet_id.nil?
|
@@ -241,7 +238,7 @@ module TreezorClient
|
|
241
238
|
fail ArgumentError, "Missing the required parameter 'type_id' when calling VirtualibansApi.post_virtual_iban"
|
242
239
|
end
|
243
240
|
# resource path
|
244
|
-
local_var_path =
|
241
|
+
local_var_path = '/virtualibans'
|
245
242
|
|
246
243
|
# query parameters
|
247
244
|
query_params = {}
|
@@ -283,7 +280,6 @@ module TreezorClient
|
|
283
280
|
end
|
284
281
|
return data, status_code, headers
|
285
282
|
end
|
286
|
-
|
287
283
|
# update a Virtual IBAN
|
288
284
|
# Update Virtual IBAN's information.
|
289
285
|
# @param id VirtualIban's id.
|
@@ -300,7 +296,7 @@ module TreezorClient
|
|
300
296
|
# @return [InlineResponse20018]
|
301
297
|
def put_virtual_iban(id, opts = {})
|
302
298
|
data, _status_code, _headers = put_virtual_iban_with_http_info(id, opts)
|
303
|
-
|
299
|
+
data
|
304
300
|
end
|
305
301
|
|
306
302
|
# update a Virtual IBAN
|
@@ -319,14 +315,14 @@ module TreezorClient
|
|
319
315
|
# @return [Array<(InlineResponse20018, Fixnum, Hash)>] InlineResponse20018 data, response status code and response headers
|
320
316
|
def put_virtual_iban_with_http_info(id, opts = {})
|
321
317
|
if @api_client.config.debugging
|
322
|
-
@api_client.config.logger.debug
|
318
|
+
@api_client.config.logger.debug 'Calling API: VirtualibansApi.put_virtual_iban ...'
|
323
319
|
end
|
324
320
|
# verify the required parameter 'id' is set
|
325
321
|
if @api_client.config.client_side_validation && id.nil?
|
326
322
|
fail ArgumentError, "Missing the required parameter 'id' when calling VirtualibansApi.put_virtual_iban"
|
327
323
|
end
|
328
324
|
# resource path
|
329
|
-
local_var_path =
|
325
|
+
local_var_path = '/virtualibans/{id}'.sub('{' + 'id' + '}', id.to_s)
|
330
326
|
|
331
327
|
# query parameters
|
332
328
|
query_params = {}
|
@@ -6,11 +6,11 @@
|
|
6
6
|
OpenAPI spec version: 0.1.1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'uri'
|
14
14
|
|
15
15
|
module TreezorClient
|
16
16
|
class WalletApi
|
@@ -19,7 +19,6 @@ module TreezorClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
|
23
22
|
# delete a wallet
|
24
23
|
# Change wallet's status to **CANCELED**.
|
25
24
|
# @param id Wallet's id
|
@@ -32,7 +31,7 @@ module TreezorClient
|
|
32
31
|
# @return [InlineResponse20027]
|
33
32
|
def delete_wallet(id, origin, opts = {})
|
34
33
|
data, _status_code, _headers = delete_wallet_with_http_info(id, origin, opts)
|
35
|
-
|
34
|
+
data
|
36
35
|
end
|
37
36
|
|
38
37
|
# delete a wallet
|
@@ -47,7 +46,7 @@ module TreezorClient
|
|
47
46
|
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
48
47
|
def delete_wallet_with_http_info(id, origin, opts = {})
|
49
48
|
if @api_client.config.debugging
|
50
|
-
@api_client.config.logger.debug
|
49
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.delete_wallet ...'
|
51
50
|
end
|
52
51
|
# verify the required parameter 'id' is set
|
53
52
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -58,7 +57,7 @@ module TreezorClient
|
|
58
57
|
fail ArgumentError, "Missing the required parameter 'origin' when calling WalletApi.delete_wallet"
|
59
58
|
end
|
60
59
|
# resource path
|
61
|
-
local_var_path =
|
60
|
+
local_var_path = '/wallets/{id}'.sub('{' + 'id' + '}', id.to_s)
|
62
61
|
|
63
62
|
# query parameters
|
64
63
|
query_params = {}
|
@@ -93,7 +92,6 @@ module TreezorClient
|
|
93
92
|
end
|
94
93
|
return data, status_code, headers
|
95
94
|
end
|
96
|
-
|
97
95
|
# get a wallet
|
98
96
|
#
|
99
97
|
# @param id Object internal id.
|
@@ -105,7 +103,7 @@ module TreezorClient
|
|
105
103
|
# @return [InlineResponse20027]
|
106
104
|
def get_wallet(id, opts = {})
|
107
105
|
data, _status_code, _headers = get_wallet_with_http_info(id, opts)
|
108
|
-
|
106
|
+
data
|
109
107
|
end
|
110
108
|
|
111
109
|
# get a wallet
|
@@ -119,14 +117,14 @@ module TreezorClient
|
|
119
117
|
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
120
118
|
def get_wallet_with_http_info(id, opts = {})
|
121
119
|
if @api_client.config.debugging
|
122
|
-
@api_client.config.logger.debug
|
120
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_wallet ...'
|
123
121
|
end
|
124
122
|
# verify the required parameter 'id' is set
|
125
123
|
if @api_client.config.client_side_validation && id.nil?
|
126
124
|
fail ArgumentError, "Missing the required parameter 'id' when calling WalletApi.get_wallet"
|
127
125
|
end
|
128
126
|
# resource path
|
129
|
-
local_var_path =
|
127
|
+
local_var_path = '/wallets/{id}'.sub('{' + 'id' + '}', id.to_s)
|
130
128
|
|
131
129
|
# query parameters
|
132
130
|
query_params = {}
|
@@ -160,7 +158,6 @@ module TreezorClient
|
|
160
158
|
end
|
161
159
|
return data, status_code, headers
|
162
160
|
end
|
163
|
-
|
164
161
|
# search wallets
|
165
162
|
# Get wallets from the system that match the search criteria.
|
166
163
|
# @param [Hash] opts the optional parameters
|
@@ -192,7 +189,7 @@ module TreezorClient
|
|
192
189
|
# @return [InlineResponse20027]
|
193
190
|
def get_wallets(opts = {})
|
194
191
|
data, _status_code, _headers = get_wallets_with_http_info(opts)
|
195
|
-
|
192
|
+
data
|
196
193
|
end
|
197
194
|
|
198
195
|
# search wallets
|
@@ -226,10 +223,10 @@ module TreezorClient
|
|
226
223
|
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
227
224
|
def get_wallets_with_http_info(opts = {})
|
228
225
|
if @api_client.config.debugging
|
229
|
-
@api_client.config.logger.debug
|
226
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_wallets ...'
|
230
227
|
end
|
231
228
|
# resource path
|
232
|
-
local_var_path =
|
229
|
+
local_var_path = '/wallets'
|
233
230
|
|
234
231
|
# query parameters
|
235
232
|
query_params = {}
|
@@ -284,7 +281,6 @@ module TreezorClient
|
|
284
281
|
end
|
285
282
|
return data, status_code, headers
|
286
283
|
end
|
287
|
-
|
288
284
|
# create a wallet
|
289
285
|
# Create a new wallet in the system..
|
290
286
|
# @param wallet_type_id Wallet type id. The following values are defined: | Id | Description | |----|----| | 9 | Electronic Money Wallet | | 10 | Payment Account Wallet | | 13 | Mirror Wallet | | 14 | Electronic Money Card (Internal only) |
|
@@ -308,7 +304,7 @@ module TreezorClient
|
|
308
304
|
# @return [InlineResponse20027]
|
309
305
|
def post_wallets(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
310
306
|
data, _status_code, _headers = post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts)
|
311
|
-
|
307
|
+
data
|
312
308
|
end
|
313
309
|
|
314
310
|
# create a wallet
|
@@ -334,7 +330,7 @@ module TreezorClient
|
|
334
330
|
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
335
331
|
def post_wallets_with_http_info(wallet_type_id, tariff_id, user_id, currency, event_name, opts = {})
|
336
332
|
if @api_client.config.debugging
|
337
|
-
@api_client.config.logger.debug
|
333
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.post_wallets ...'
|
338
334
|
end
|
339
335
|
# verify the required parameter 'wallet_type_id' is set
|
340
336
|
if @api_client.config.client_side_validation && wallet_type_id.nil?
|
@@ -357,7 +353,7 @@ module TreezorClient
|
|
357
353
|
fail ArgumentError, "Missing the required parameter 'event_name' when calling WalletApi.post_wallets"
|
358
354
|
end
|
359
355
|
# resource path
|
360
|
-
local_var_path =
|
356
|
+
local_var_path = '/wallets'
|
361
357
|
|
362
358
|
# query parameters
|
363
359
|
query_params = {}
|
@@ -404,7 +400,6 @@ module TreezorClient
|
|
404
400
|
end
|
405
401
|
return data, status_code, headers
|
406
402
|
end
|
407
|
-
|
408
403
|
# update a wallet
|
409
404
|
# Modifiy wallet information
|
410
405
|
# @param id Object internal id.
|
@@ -426,7 +421,7 @@ module TreezorClient
|
|
426
421
|
# @return [InlineResponse20027]
|
427
422
|
def put_wallet(id, opts = {})
|
428
423
|
data, _status_code, _headers = put_wallet_with_http_info(id, opts)
|
429
|
-
|
424
|
+
data
|
430
425
|
end
|
431
426
|
|
432
427
|
# update a wallet
|
@@ -450,14 +445,14 @@ module TreezorClient
|
|
450
445
|
# @return [Array<(InlineResponse20027, Fixnum, Hash)>] InlineResponse20027 data, response status code and response headers
|
451
446
|
def put_wallet_with_http_info(id, opts = {})
|
452
447
|
if @api_client.config.debugging
|
453
|
-
@api_client.config.logger.debug
|
448
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.put_wallet ...'
|
454
449
|
end
|
455
450
|
# verify the required parameter 'id' is set
|
456
451
|
if @api_client.config.client_side_validation && id.nil?
|
457
452
|
fail ArgumentError, "Missing the required parameter 'id' when calling WalletApi.put_wallet"
|
458
453
|
end
|
459
454
|
# resource path
|
460
|
-
local_var_path =
|
455
|
+
local_var_path = '/wallets/{id}'.sub('{' + 'id' + '}', id.to_s)
|
461
456
|
|
462
457
|
# query parameters
|
463
458
|
query_params = {}
|