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 CardApi
|
@@ -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 card image
|
24
23
|
# Return virtual card's image
|
25
24
|
# @param card_id Vitual card's id.
|
@@ -31,7 +30,7 @@ module TreezorClient
|
|
31
30
|
# @return [InlineResponse2007]
|
32
31
|
def cardimages_get(card_id, opts = {})
|
33
32
|
data, _status_code, _headers = cardimages_get_with_http_info(card_id, opts)
|
34
|
-
|
33
|
+
data
|
35
34
|
end
|
36
35
|
|
37
36
|
# get a card image
|
@@ -45,14 +44,14 @@ module TreezorClient
|
|
45
44
|
# @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
|
46
45
|
def cardimages_get_with_http_info(card_id, opts = {})
|
47
46
|
if @api_client.config.debugging
|
48
|
-
@api_client.config.logger.debug
|
47
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cardimages_get ...'
|
49
48
|
end
|
50
49
|
# verify the required parameter 'card_id' is set
|
51
50
|
if @api_client.config.client_side_validation && card_id.nil?
|
52
51
|
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardApi.cardimages_get"
|
53
52
|
end
|
54
53
|
# resource path
|
55
|
-
local_var_path =
|
54
|
+
local_var_path = '/cardimages'
|
56
55
|
|
57
56
|
# query parameters
|
58
57
|
query_params = {}
|
@@ -83,7 +82,6 @@ module TreezorClient
|
|
83
82
|
end
|
84
83
|
return data, status_code, headers
|
85
84
|
end
|
86
|
-
|
87
85
|
# create a virtual card
|
88
86
|
# Create a new virtual card. To use a card you will need to activate it (/cards/{id}/Activate/).
|
89
87
|
# @param user_id User's id of cardholder
|
@@ -117,7 +115,7 @@ module TreezorClient
|
|
117
115
|
# @return [InlineResponse2006]
|
118
116
|
def cards_create_virtual_post(user_id, wallet_id, perms_group, card_print, opts = {})
|
119
117
|
data, _status_code, _headers = cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts)
|
120
|
-
|
118
|
+
data
|
121
119
|
end
|
122
120
|
|
123
121
|
# create a virtual card
|
@@ -153,7 +151,7 @@ module TreezorClient
|
|
153
151
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
154
152
|
def cards_create_virtual_post_with_http_info(user_id, wallet_id, perms_group, card_print, opts = {})
|
155
153
|
if @api_client.config.debugging
|
156
|
-
@api_client.config.logger.debug
|
154
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_create_virtual_post ...'
|
157
155
|
end
|
158
156
|
# verify the required parameter 'user_id' is set
|
159
157
|
if @api_client.config.client_side_validation && user_id.nil?
|
@@ -172,7 +170,7 @@ module TreezorClient
|
|
172
170
|
fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_create_virtual_post"
|
173
171
|
end
|
174
172
|
# resource path
|
175
|
-
local_var_path =
|
173
|
+
local_var_path = '/cards/CreateVirtual'
|
176
174
|
|
177
175
|
# query parameters
|
178
176
|
query_params = {}
|
@@ -225,9 +223,7 @@ module TreezorClient
|
|
225
223
|
end
|
226
224
|
return data, status_code, headers
|
227
225
|
end
|
228
|
-
|
229
226
|
# search cards
|
230
|
-
#
|
231
227
|
# @param [Hash] opts the optional parameters
|
232
228
|
# @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).
|
233
229
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
@@ -255,11 +251,10 @@ module TreezorClient
|
|
255
251
|
# @return [InlineResponse2006]
|
256
252
|
def cards_get(opts = {})
|
257
253
|
data, _status_code, _headers = cards_get_with_http_info(opts)
|
258
|
-
|
254
|
+
data
|
259
255
|
end
|
260
256
|
|
261
257
|
# search cards
|
262
|
-
#
|
263
258
|
# @param [Hash] opts the optional parameters
|
264
259
|
# @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).
|
265
260
|
# @option opts [String] :access_tag Access tag is used for idem potency query. More info [here](https://agent.treezor.com/basics).
|
@@ -287,10 +282,10 @@ module TreezorClient
|
|
287
282
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
288
283
|
def cards_get_with_http_info(opts = {})
|
289
284
|
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug
|
285
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_get ...'
|
291
286
|
end
|
292
287
|
# resource path
|
293
|
-
local_var_path =
|
288
|
+
local_var_path = '/cards'
|
294
289
|
|
295
290
|
# query parameters
|
296
291
|
query_params = {}
|
@@ -339,7 +334,6 @@ module TreezorClient
|
|
339
334
|
end
|
340
335
|
return data, status_code, headers
|
341
336
|
end
|
342
|
-
|
343
337
|
# activate a card
|
344
338
|
# The Activate endpoint change card status to activate. An activated card can be freely used.
|
345
339
|
# @param id Card's id.
|
@@ -352,7 +346,7 @@ module TreezorClient
|
|
352
346
|
# @return [InlineResponse2006]
|
353
347
|
def cards_id_activate_put(id, opts = {})
|
354
348
|
data, _status_code, _headers = cards_id_activate_put_with_http_info(id, opts)
|
355
|
-
|
349
|
+
data
|
356
350
|
end
|
357
351
|
|
358
352
|
# activate a card
|
@@ -367,14 +361,14 @@ module TreezorClient
|
|
367
361
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
368
362
|
def cards_id_activate_put_with_http_info(id, opts = {})
|
369
363
|
if @api_client.config.debugging
|
370
|
-
@api_client.config.logger.debug
|
364
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_activate_put ...'
|
371
365
|
end
|
372
366
|
# verify the required parameter 'id' is set
|
373
367
|
if @api_client.config.client_side_validation && id.nil?
|
374
368
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_activate_put"
|
375
369
|
end
|
376
370
|
# resource path
|
377
|
-
local_var_path =
|
371
|
+
local_var_path = '/cards/{id}/Activate/'.sub('{' + 'id' + '}', id.to_s)
|
378
372
|
|
379
373
|
# query parameters
|
380
374
|
query_params = {}
|
@@ -405,7 +399,6 @@ module TreezorClient
|
|
405
399
|
end
|
406
400
|
return data, status_code, headers
|
407
401
|
end
|
408
|
-
|
409
402
|
# change card's PIN
|
410
403
|
# Change card's PIN code knowing the current one.
|
411
404
|
# @param id Card's id.
|
@@ -420,7 +413,7 @@ module TreezorClient
|
|
420
413
|
# @return [InlineResponse2006]
|
421
414
|
def cards_id_change_pin_put(id, current_pin, new_pin, confirm_pin, opts = {})
|
422
415
|
data, _status_code, _headers = cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts)
|
423
|
-
|
416
|
+
data
|
424
417
|
end
|
425
418
|
|
426
419
|
# change card's PIN
|
@@ -437,7 +430,7 @@ module TreezorClient
|
|
437
430
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
438
431
|
def cards_id_change_pin_put_with_http_info(id, current_pin, new_pin, confirm_pin, opts = {})
|
439
432
|
if @api_client.config.debugging
|
440
|
-
@api_client.config.logger.debug
|
433
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_change_pin_put ...'
|
441
434
|
end
|
442
435
|
# verify the required parameter 'id' is set
|
443
436
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -456,7 +449,7 @@ module TreezorClient
|
|
456
449
|
fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_change_pin_put"
|
457
450
|
end
|
458
451
|
# resource path
|
459
|
-
local_var_path =
|
452
|
+
local_var_path = '/cards/{id}/ChangePIN/'.sub('{' + 'id' + '}', id.to_s)
|
460
453
|
|
461
454
|
# query parameters
|
462
455
|
query_params = {}
|
@@ -489,7 +482,6 @@ module TreezorClient
|
|
489
482
|
end
|
490
483
|
return data, status_code, headers
|
491
484
|
end
|
492
|
-
|
493
485
|
# convert card to virtual
|
494
486
|
# Convert a virtual card into a physical one. The converted card will be both virtual and physical.
|
495
487
|
# @param id Card's id.
|
@@ -501,7 +493,7 @@ module TreezorClient
|
|
501
493
|
# @return [InlineResponse2006]
|
502
494
|
def cards_id_convert_virtual_put(id, opts = {})
|
503
495
|
data, _status_code, _headers = cards_id_convert_virtual_put_with_http_info(id, opts)
|
504
|
-
|
496
|
+
data
|
505
497
|
end
|
506
498
|
|
507
499
|
# convert card to virtual
|
@@ -515,14 +507,14 @@ module TreezorClient
|
|
515
507
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
516
508
|
def cards_id_convert_virtual_put_with_http_info(id, opts = {})
|
517
509
|
if @api_client.config.debugging
|
518
|
-
@api_client.config.logger.debug
|
510
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_convert_virtual_put ...'
|
519
511
|
end
|
520
512
|
# verify the required parameter 'id' is set
|
521
513
|
if @api_client.config.client_side_validation && id.nil?
|
522
514
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_convert_virtual_put"
|
523
515
|
end
|
524
516
|
# resource path
|
525
|
-
local_var_path =
|
517
|
+
local_var_path = '/cards/{id}/ConvertVirtual/'.sub('{' + 'id' + '}', id.to_s)
|
526
518
|
|
527
519
|
# query parameters
|
528
520
|
query_params = {}
|
@@ -552,32 +544,29 @@ module TreezorClient
|
|
552
544
|
end
|
553
545
|
return data, status_code, headers
|
554
546
|
end
|
555
|
-
|
556
547
|
# deactivate a card
|
557
|
-
#
|
558
548
|
# @param id Card's id.
|
559
549
|
# @param [Hash] opts the optional parameters
|
560
550
|
# @return [InlineResponse2006]
|
561
551
|
def cards_id_delete(id, opts = {})
|
562
552
|
data, _status_code, _headers = cards_id_delete_with_http_info(id, opts)
|
563
|
-
|
553
|
+
data
|
564
554
|
end
|
565
555
|
|
566
556
|
# deactivate a card
|
567
|
-
#
|
568
557
|
# @param id Card's id.
|
569
558
|
# @param [Hash] opts the optional parameters
|
570
559
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
571
560
|
def cards_id_delete_with_http_info(id, opts = {})
|
572
561
|
if @api_client.config.debugging
|
573
|
-
@api_client.config.logger.debug
|
562
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_delete ...'
|
574
563
|
end
|
575
564
|
# verify the required parameter 'id' is set
|
576
565
|
if @api_client.config.client_side_validation && id.nil?
|
577
566
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_delete"
|
578
567
|
end
|
579
568
|
# resource path
|
580
|
-
local_var_path =
|
569
|
+
local_var_path = '/cards/{id}'.sub('{' + 'id' + '}', id.to_s)
|
581
570
|
|
582
571
|
# query parameters
|
583
572
|
query_params = {}
|
@@ -603,32 +592,29 @@ module TreezorClient
|
|
603
592
|
end
|
604
593
|
return data, status_code, headers
|
605
594
|
end
|
606
|
-
|
607
595
|
# get a card
|
608
|
-
#
|
609
596
|
# @param id Card's id.
|
610
597
|
# @param [Hash] opts the optional parameters
|
611
598
|
# @return [InlineResponse2006]
|
612
599
|
def cards_id_get(id, opts = {})
|
613
600
|
data, _status_code, _headers = cards_id_get_with_http_info(id, opts)
|
614
|
-
|
601
|
+
data
|
615
602
|
end
|
616
603
|
|
617
604
|
# get a card
|
618
|
-
#
|
619
605
|
# @param id Card's id.
|
620
606
|
# @param [Hash] opts the optional parameters
|
621
607
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
622
608
|
def cards_id_get_with_http_info(id, opts = {})
|
623
609
|
if @api_client.config.debugging
|
624
|
-
@api_client.config.logger.debug
|
610
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_get ...'
|
625
611
|
end
|
626
612
|
# verify the required parameter 'id' is set
|
627
613
|
if @api_client.config.client_side_validation && id.nil?
|
628
614
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_get"
|
629
615
|
end
|
630
616
|
# resource path
|
631
|
-
local_var_path =
|
617
|
+
local_var_path = '/cards/{id}'.sub('{' + 'id' + '}', id.to_s)
|
632
618
|
|
633
619
|
# query parameters
|
634
620
|
query_params = {}
|
@@ -654,7 +640,6 @@ module TreezorClient
|
|
654
640
|
end
|
655
641
|
return data, status_code, headers
|
656
642
|
end
|
657
|
-
|
658
643
|
# update card's limits
|
659
644
|
# Update of the card limits.
|
660
645
|
# @param id Card's id.
|
@@ -677,7 +662,7 @@ module TreezorClient
|
|
677
662
|
# @return [InlineResponse2006]
|
678
663
|
def cards_id_limits_put(id, opts = {})
|
679
664
|
data, _status_code, _headers = cards_id_limits_put_with_http_info(id, opts)
|
680
|
-
|
665
|
+
data
|
681
666
|
end
|
682
667
|
|
683
668
|
# update card's limits
|
@@ -702,14 +687,14 @@ module TreezorClient
|
|
702
687
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
703
688
|
def cards_id_limits_put_with_http_info(id, opts = {})
|
704
689
|
if @api_client.config.debugging
|
705
|
-
@api_client.config.logger.debug
|
690
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_limits_put ...'
|
706
691
|
end
|
707
692
|
# verify the required parameter 'id' is set
|
708
693
|
if @api_client.config.client_side_validation && id.nil?
|
709
694
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_limits_put"
|
710
695
|
end
|
711
696
|
# resource path
|
712
|
-
local_var_path =
|
697
|
+
local_var_path = '/cards/{id}/Limits/'.sub('{' + 'id' + '}', id.to_s)
|
713
698
|
|
714
699
|
# query parameters
|
715
700
|
query_params = {}
|
@@ -750,7 +735,6 @@ module TreezorClient
|
|
750
735
|
end
|
751
736
|
return data, status_code, headers
|
752
737
|
end
|
753
|
-
|
754
738
|
# update card's blocking status
|
755
739
|
# Block or unblock a card.
|
756
740
|
# @param id Card's id.
|
@@ -763,7 +747,7 @@ module TreezorClient
|
|
763
747
|
# @return [InlineResponse2006]
|
764
748
|
def cards_id_lock_unlock_put(id, lock_status, opts = {})
|
765
749
|
data, _status_code, _headers = cards_id_lock_unlock_put_with_http_info(id, lock_status, opts)
|
766
|
-
|
750
|
+
data
|
767
751
|
end
|
768
752
|
|
769
753
|
# update card's blocking status
|
@@ -778,7 +762,7 @@ module TreezorClient
|
|
778
762
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
779
763
|
def cards_id_lock_unlock_put_with_http_info(id, lock_status, opts = {})
|
780
764
|
if @api_client.config.debugging
|
781
|
-
@api_client.config.logger.debug
|
765
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_lock_unlock_put ...'
|
782
766
|
end
|
783
767
|
# verify the required parameter 'id' is set
|
784
768
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -789,7 +773,7 @@ module TreezorClient
|
|
789
773
|
fail ArgumentError, "Missing the required parameter 'lock_status' when calling CardApi.cards_id_lock_unlock_put"
|
790
774
|
end
|
791
775
|
# resource path
|
792
|
-
local_var_path =
|
776
|
+
local_var_path = '/cards/{id}/LockUnlock/'.sub('{' + 'id' + '}', id.to_s)
|
793
777
|
|
794
778
|
# query parameters
|
795
779
|
query_params = {}
|
@@ -820,7 +804,6 @@ module TreezorClient
|
|
820
804
|
end
|
821
805
|
return data, status_code, headers
|
822
806
|
end
|
823
|
-
|
824
807
|
# update card's options
|
825
808
|
# Allows to update card's permission group.
|
826
809
|
# @param id Card's id.
|
@@ -836,7 +819,7 @@ module TreezorClient
|
|
836
819
|
# @return [InlineResponse2006]
|
837
820
|
def cards_id_options_put(id, foreign, online, atm, nfc, opts = {})
|
838
821
|
data, _status_code, _headers = cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts)
|
839
|
-
|
822
|
+
data
|
840
823
|
end
|
841
824
|
|
842
825
|
# update card's options
|
@@ -854,7 +837,7 @@ module TreezorClient
|
|
854
837
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
855
838
|
def cards_id_options_put_with_http_info(id, foreign, online, atm, nfc, opts = {})
|
856
839
|
if @api_client.config.debugging
|
857
|
-
@api_client.config.logger.debug
|
840
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_options_put ...'
|
858
841
|
end
|
859
842
|
# verify the required parameter 'id' is set
|
860
843
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -877,7 +860,7 @@ module TreezorClient
|
|
877
860
|
fail ArgumentError, "Missing the required parameter 'nfc' when calling CardApi.cards_id_options_put"
|
878
861
|
end
|
879
862
|
# resource path
|
880
|
-
local_var_path =
|
863
|
+
local_var_path = '/cards/{id}/Options/'.sub('{' + 'id' + '}', id.to_s)
|
881
864
|
|
882
865
|
# query parameters
|
883
866
|
query_params = {}
|
@@ -911,7 +894,6 @@ module TreezorClient
|
|
911
894
|
end
|
912
895
|
return data, status_code, headers
|
913
896
|
end
|
914
|
-
|
915
897
|
# update card informations
|
916
898
|
# Actually update mccRestrictionGroupId and merchantRestrictionGroupId of a card
|
917
899
|
# @param id Card's id.
|
@@ -926,7 +908,7 @@ module TreezorClient
|
|
926
908
|
# @return [InlineResponse2006]
|
927
909
|
def cards_id_put(id, opts = {})
|
928
910
|
data, _status_code, _headers = cards_id_put_with_http_info(id, opts)
|
929
|
-
|
911
|
+
data
|
930
912
|
end
|
931
913
|
|
932
914
|
# update card informations
|
@@ -943,14 +925,14 @@ module TreezorClient
|
|
943
925
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
944
926
|
def cards_id_put_with_http_info(id, opts = {})
|
945
927
|
if @api_client.config.debugging
|
946
|
-
@api_client.config.logger.debug
|
928
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_put ...'
|
947
929
|
end
|
948
930
|
# verify the required parameter 'id' is set
|
949
931
|
if @api_client.config.client_side_validation && id.nil?
|
950
932
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_put"
|
951
933
|
end
|
952
934
|
# resource path
|
953
|
-
local_var_path =
|
935
|
+
local_var_path = '/cards/{id}'.sub('{' + 'id' + '}', id.to_s)
|
954
936
|
|
955
937
|
# query parameters
|
956
938
|
query_params = {}
|
@@ -983,7 +965,6 @@ module TreezorClient
|
|
983
965
|
end
|
984
966
|
return data, status_code, headers
|
985
967
|
end
|
986
|
-
|
987
968
|
# regenerate card
|
988
969
|
# If card is Lost or Stolen (card's status), the card itself will get regenerated. Otherwise only the card image gets recreated.
|
989
970
|
# @param id Card's id.
|
@@ -995,7 +976,7 @@ module TreezorClient
|
|
995
976
|
# @return [InlineResponse2006]
|
996
977
|
def cards_id_regenerate_put(id, opts = {})
|
997
978
|
data, _status_code, _headers = cards_id_regenerate_put_with_http_info(id, opts)
|
998
|
-
|
979
|
+
data
|
999
980
|
end
|
1000
981
|
|
1001
982
|
# regenerate card
|
@@ -1009,14 +990,14 @@ module TreezorClient
|
|
1009
990
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
1010
991
|
def cards_id_regenerate_put_with_http_info(id, opts = {})
|
1011
992
|
if @api_client.config.debugging
|
1012
|
-
@api_client.config.logger.debug
|
993
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_regenerate_put ...'
|
1013
994
|
end
|
1014
995
|
# verify the required parameter 'id' is set
|
1015
996
|
if @api_client.config.client_side_validation && id.nil?
|
1016
997
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_regenerate_put"
|
1017
998
|
end
|
1018
999
|
# resource path
|
1019
|
-
local_var_path =
|
1000
|
+
local_var_path = '/cards/{id}/Regenerate/'.sub('{' + 'id' + '}', id.to_s)
|
1020
1001
|
|
1021
1002
|
# query parameters
|
1022
1003
|
query_params = {}
|
@@ -1046,7 +1027,6 @@ module TreezorClient
|
|
1046
1027
|
end
|
1047
1028
|
return data, status_code, headers
|
1048
1029
|
end
|
1049
|
-
|
1050
1030
|
# set card's PIN
|
1051
1031
|
# Overwrite card's PIN.
|
1052
1032
|
# @param id Card's id.
|
@@ -1060,7 +1040,7 @@ module TreezorClient
|
|
1060
1040
|
# @return [InlineResponse2006]
|
1061
1041
|
def cards_id_set_pin_put(id, new_pin, confirm_pin, opts = {})
|
1062
1042
|
data, _status_code, _headers = cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts)
|
1063
|
-
|
1043
|
+
data
|
1064
1044
|
end
|
1065
1045
|
|
1066
1046
|
# set card's PIN
|
@@ -1076,7 +1056,7 @@ module TreezorClient
|
|
1076
1056
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
1077
1057
|
def cards_id_set_pin_put_with_http_info(id, new_pin, confirm_pin, opts = {})
|
1078
1058
|
if @api_client.config.debugging
|
1079
|
-
@api_client.config.logger.debug
|
1059
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_set_pin_put ...'
|
1080
1060
|
end
|
1081
1061
|
# verify the required parameter 'id' is set
|
1082
1062
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -1091,7 +1071,7 @@ module TreezorClient
|
|
1091
1071
|
fail ArgumentError, "Missing the required parameter 'confirm_pin' when calling CardApi.cards_id_set_pin_put"
|
1092
1072
|
end
|
1093
1073
|
# resource path
|
1094
|
-
local_var_path =
|
1074
|
+
local_var_path = '/cards/{id}/setPIN/'.sub('{' + 'id' + '}', id.to_s)
|
1095
1075
|
|
1096
1076
|
# query parameters
|
1097
1077
|
query_params = {}
|
@@ -1123,7 +1103,6 @@ module TreezorClient
|
|
1123
1103
|
end
|
1124
1104
|
return data, status_code, headers
|
1125
1105
|
end
|
1126
|
-
|
1127
1106
|
# unblock card's PIN
|
1128
1107
|
# Unblock card's PIN code.
|
1129
1108
|
# @param id Card's id.
|
@@ -1135,7 +1114,7 @@ module TreezorClient
|
|
1135
1114
|
# @return [InlineResponse2006]
|
1136
1115
|
def cards_id_unblock_pin_put(id, opts = {})
|
1137
1116
|
data, _status_code, _headers = cards_id_unblock_pin_put_with_http_info(id, opts)
|
1138
|
-
|
1117
|
+
data
|
1139
1118
|
end
|
1140
1119
|
|
1141
1120
|
# unblock card's PIN
|
@@ -1149,14 +1128,14 @@ module TreezorClient
|
|
1149
1128
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
1150
1129
|
def cards_id_unblock_pin_put_with_http_info(id, opts = {})
|
1151
1130
|
if @api_client.config.debugging
|
1152
|
-
@api_client.config.logger.debug
|
1131
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_id_unblock_pin_put ...'
|
1153
1132
|
end
|
1154
1133
|
# verify the required parameter 'id' is set
|
1155
1134
|
if @api_client.config.client_side_validation && id.nil?
|
1156
1135
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardApi.cards_id_unblock_pin_put"
|
1157
1136
|
end
|
1158
1137
|
# resource path
|
1159
|
-
local_var_path =
|
1138
|
+
local_var_path = '/cards/{id}/UnblockPIN/'.sub('{' + 'id' + '}', id.to_s)
|
1160
1139
|
|
1161
1140
|
# query parameters
|
1162
1141
|
query_params = {}
|
@@ -1186,7 +1165,6 @@ module TreezorClient
|
|
1186
1165
|
end
|
1187
1166
|
return data, status_code, headers
|
1188
1167
|
end
|
1189
|
-
|
1190
1168
|
# Register 3D secure
|
1191
1169
|
# Register a card to 3D secure service.
|
1192
1170
|
# @param card_id Card's ID to register
|
@@ -1195,7 +1173,7 @@ module TreezorClient
|
|
1195
1173
|
# @return [InlineResponse2006]
|
1196
1174
|
def cards_register3_ds_post(card_id, opts = {})
|
1197
1175
|
data, _status_code, _headers = cards_register3_ds_post_with_http_info(card_id, opts)
|
1198
|
-
|
1176
|
+
data
|
1199
1177
|
end
|
1200
1178
|
|
1201
1179
|
# Register 3D secure
|
@@ -1206,14 +1184,14 @@ module TreezorClient
|
|
1206
1184
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
1207
1185
|
def cards_register3_ds_post_with_http_info(card_id, opts = {})
|
1208
1186
|
if @api_client.config.debugging
|
1209
|
-
@api_client.config.logger.debug
|
1187
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_register3_ds_post ...'
|
1210
1188
|
end
|
1211
1189
|
# verify the required parameter 'card_id' is set
|
1212
1190
|
if @api_client.config.client_side_validation && card_id.nil?
|
1213
1191
|
fail ArgumentError, "Missing the required parameter 'card_id' when calling CardApi.cards_register3_ds_post"
|
1214
1192
|
end
|
1215
1193
|
# resource path
|
1216
|
-
local_var_path =
|
1194
|
+
local_var_path = '/cards/Register3DS'
|
1217
1195
|
|
1218
1196
|
# query parameters
|
1219
1197
|
query_params = {}
|
@@ -1241,7 +1219,6 @@ module TreezorClient
|
|
1241
1219
|
end
|
1242
1220
|
return data, status_code, headers
|
1243
1221
|
end
|
1244
|
-
|
1245
1222
|
# create a physical card
|
1246
1223
|
# Create a new physical card. To use a card you will need to activate it (/cards/{id}/Activate/).
|
1247
1224
|
# @param user_id User's id of cardholder
|
@@ -1275,7 +1252,7 @@ module TreezorClient
|
|
1275
1252
|
# @return [InlineResponse2006]
|
1276
1253
|
def cards_request_physical_post(user_id, wallet_id, perms_group, card_tag, card_print, opts = {})
|
1277
1254
|
data, _status_code, _headers = cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts)
|
1278
|
-
|
1255
|
+
data
|
1279
1256
|
end
|
1280
1257
|
|
1281
1258
|
# create a physical card
|
@@ -1311,7 +1288,7 @@ module TreezorClient
|
|
1311
1288
|
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
1312
1289
|
def cards_request_physical_post_with_http_info(user_id, wallet_id, perms_group, card_tag, card_print, opts = {})
|
1313
1290
|
if @api_client.config.debugging
|
1314
|
-
@api_client.config.logger.debug
|
1291
|
+
@api_client.config.logger.debug 'Calling API: CardApi.cards_request_physical_post ...'
|
1315
1292
|
end
|
1316
1293
|
# verify the required parameter 'user_id' is set
|
1317
1294
|
if @api_client.config.client_side_validation && user_id.nil?
|
@@ -1334,7 +1311,7 @@ module TreezorClient
|
|
1334
1311
|
fail ArgumentError, "Missing the required parameter 'card_print' when calling CardApi.cards_request_physical_post"
|
1335
1312
|
end
|
1336
1313
|
# resource path
|
1337
|
-
local_var_path =
|
1314
|
+
local_var_path = '/cards/RequestPhysical'
|
1338
1315
|
|
1339
1316
|
# query parameters
|
1340
1317
|
query_params = {}
|