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 PayoutApi
|
@@ -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 payout
|
24
23
|
# Change pay out status to CANCELED. A VALIDATED pay out can't be canceled.
|
25
24
|
# @param id Payouts internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20020]
|
28
27
|
def delete_payout(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_payout_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# cancel a payout
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
38
37
|
def delete_payout_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: PayoutApi.delete_payout ...'
|
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 PayoutApi.delete_payout"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/payouts/{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 payout
|
79
77
|
# Get a pay out from the system.
|
80
78
|
# @param id Payouts internal id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20020]
|
83
81
|
def get_payout(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_payout_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a payout
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
93
91
|
def get_payout_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: PayoutApi.get_payout ...'
|
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 PayoutApi.get_payout"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/payouts/{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 pay outs
|
134
131
|
# Get pay out that match search criteria.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -164,7 +161,7 @@ module TreezorClient
|
|
164
161
|
# @return [InlineResponse20020]
|
165
162
|
def get_payouts(opts = {})
|
166
163
|
data, _status_code, _headers = get_payouts_with_http_info(opts)
|
167
|
-
|
164
|
+
data
|
168
165
|
end
|
169
166
|
|
170
167
|
# search pay outs
|
@@ -201,10 +198,10 @@ module TreezorClient
|
|
201
198
|
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
202
199
|
def get_payouts_with_http_info(opts = {})
|
203
200
|
if @api_client.config.debugging
|
204
|
-
@api_client.config.logger.debug
|
201
|
+
@api_client.config.logger.debug 'Calling API: PayoutApi.get_payouts ...'
|
205
202
|
end
|
206
203
|
# resource path
|
207
|
-
local_var_path =
|
204
|
+
local_var_path = '/payouts'
|
208
205
|
|
209
206
|
# query parameters
|
210
207
|
query_params = {}
|
@@ -262,7 +259,6 @@ module TreezorClient
|
|
262
259
|
end
|
263
260
|
return data, status_code, headers
|
264
261
|
end
|
265
|
-
|
266
262
|
# create a pay out
|
267
263
|
# Create a new pay out in the system.
|
268
264
|
# @param wallet_id Pay out wallet id.
|
@@ -281,7 +277,7 @@ module TreezorClient
|
|
281
277
|
# @return [InlineResponse20020]
|
282
278
|
def post_payout(wallet_id, amount, currency, opts = {})
|
283
279
|
data, _status_code, _headers = post_payout_with_http_info(wallet_id, amount, currency, opts)
|
284
|
-
|
280
|
+
data
|
285
281
|
end
|
286
282
|
|
287
283
|
# create a pay out
|
@@ -302,7 +298,7 @@ module TreezorClient
|
|
302
298
|
# @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
|
303
299
|
def post_payout_with_http_info(wallet_id, amount, currency, opts = {})
|
304
300
|
if @api_client.config.debugging
|
305
|
-
@api_client.config.logger.debug
|
301
|
+
@api_client.config.logger.debug 'Calling API: PayoutApi.post_payout ...'
|
306
302
|
end
|
307
303
|
# verify the required parameter 'wallet_id' is set
|
308
304
|
if @api_client.config.client_side_validation && wallet_id.nil?
|
@@ -317,7 +313,7 @@ module TreezorClient
|
|
317
313
|
fail ArgumentError, "Missing the required parameter 'currency' when calling PayoutApi.post_payout"
|
318
314
|
end
|
319
315
|
# resource path
|
320
|
-
local_var_path =
|
316
|
+
local_var_path = '/payouts'
|
321
317
|
|
322
318
|
# query parameters
|
323
319
|
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 PayoutRefundsApi
|
@@ -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
|
# search pay outs refund
|
24
23
|
# Get pay out refund that match search criteria.
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -36,7 +35,7 @@ module TreezorClient
|
|
36
35
|
# @return [InlineResponse20021]
|
37
36
|
def get_payout_refunds(opts = {})
|
38
37
|
data, _status_code, _headers = get_payout_refunds_with_http_info(opts)
|
39
|
-
|
38
|
+
data
|
40
39
|
end
|
41
40
|
|
42
41
|
# search pay outs refund
|
@@ -55,10 +54,10 @@ module TreezorClient
|
|
55
54
|
# @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
|
56
55
|
def get_payout_refunds_with_http_info(opts = {})
|
57
56
|
if @api_client.config.debugging
|
58
|
-
@api_client.config.logger.debug
|
57
|
+
@api_client.config.logger.debug 'Calling API: PayoutRefundsApi.get_payout_refunds ...'
|
59
58
|
end
|
60
59
|
# resource path
|
61
|
-
local_var_path =
|
60
|
+
local_var_path = '/payoutRefunds'
|
62
61
|
|
63
62
|
# query parameters
|
64
63
|
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 TaxResidenceApi
|
@@ -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
|
# search a residence
|
24
23
|
# Search a residence that match search criteria
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -29,7 +28,7 @@ module TreezorClient
|
|
29
28
|
# @return [InlineResponse20028]
|
30
29
|
def tax_residences_get(opts = {})
|
31
30
|
data, _status_code, _headers = tax_residences_get_with_http_info(opts)
|
32
|
-
|
31
|
+
data
|
33
32
|
end
|
34
33
|
|
35
34
|
# search a residence
|
@@ -41,10 +40,10 @@ module TreezorClient
|
|
41
40
|
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
42
41
|
def tax_residences_get_with_http_info(opts = {})
|
43
42
|
if @api_client.config.debugging
|
44
|
-
@api_client.config.logger.debug
|
43
|
+
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_get ...'
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/taxResidences'
|
48
47
|
|
49
48
|
# query parameters
|
50
49
|
query_params = {}
|
@@ -73,7 +72,6 @@ module TreezorClient
|
|
73
72
|
end
|
74
73
|
return data, status_code, headers
|
75
74
|
end
|
76
|
-
|
77
75
|
# delete a residence
|
78
76
|
# Delete a residence that match id
|
79
77
|
# @param id id of the residence
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20028]
|
83
81
|
def tax_residences_id_delete(id, opts = {})
|
84
82
|
data, _status_code, _headers = tax_residences_id_delete_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# delete a residence
|
@@ -93,14 +91,14 @@ module TreezorClient
|
|
93
91
|
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
94
92
|
def tax_residences_id_delete_with_http_info(id, opts = {})
|
95
93
|
if @api_client.config.debugging
|
96
|
-
@api_client.config.logger.debug
|
94
|
+
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_delete ...'
|
97
95
|
end
|
98
96
|
# verify the required parameter 'id' is set
|
99
97
|
if @api_client.config.client_side_validation && id.nil?
|
100
98
|
fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_delete"
|
101
99
|
end
|
102
100
|
# resource path
|
103
|
-
local_var_path =
|
101
|
+
local_var_path = '/taxResidences/{id}'.sub('{' + 'id' + '}', id.to_s)
|
104
102
|
|
105
103
|
# query parameters
|
106
104
|
query_params = {}
|
@@ -127,7 +125,6 @@ module TreezorClient
|
|
127
125
|
end
|
128
126
|
return data, status_code, headers
|
129
127
|
end
|
130
|
-
|
131
128
|
# read the informations of a residence
|
132
129
|
# Read the informations of a residence that match with id
|
133
130
|
# @param id id of the residence
|
@@ -136,7 +133,7 @@ module TreezorClient
|
|
136
133
|
# @return [InlineResponse20028]
|
137
134
|
def tax_residences_id_get(id, opts = {})
|
138
135
|
data, _status_code, _headers = tax_residences_id_get_with_http_info(id, opts)
|
139
|
-
|
136
|
+
data
|
140
137
|
end
|
141
138
|
|
142
139
|
# read the informations of a residence
|
@@ -147,14 +144,14 @@ module TreezorClient
|
|
147
144
|
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
148
145
|
def tax_residences_id_get_with_http_info(id, opts = {})
|
149
146
|
if @api_client.config.debugging
|
150
|
-
@api_client.config.logger.debug
|
147
|
+
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_get ...'
|
151
148
|
end
|
152
149
|
# verify the required parameter 'id' is set
|
153
150
|
if @api_client.config.client_side_validation && id.nil?
|
154
151
|
fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_get"
|
155
152
|
end
|
156
153
|
# resource path
|
157
|
-
local_var_path =
|
154
|
+
local_var_path = '/taxResidences/{id}'.sub('{' + 'id' + '}', id.to_s)
|
158
155
|
|
159
156
|
# query parameters
|
160
157
|
query_params = {}
|
@@ -181,7 +178,6 @@ module TreezorClient
|
|
181
178
|
end
|
182
179
|
return data, status_code, headers
|
183
180
|
end
|
184
|
-
|
185
181
|
# update the residence
|
186
182
|
# Update a residence already created.
|
187
183
|
# @param id residence id
|
@@ -194,7 +190,7 @@ module TreezorClient
|
|
194
190
|
# @return [InlineResponse20028]
|
195
191
|
def tax_residences_id_put(id, opts = {})
|
196
192
|
data, _status_code, _headers = tax_residences_id_put_with_http_info(id, opts)
|
197
|
-
|
193
|
+
data
|
198
194
|
end
|
199
195
|
|
200
196
|
# update the residence
|
@@ -209,14 +205,14 @@ module TreezorClient
|
|
209
205
|
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
210
206
|
def tax_residences_id_put_with_http_info(id, opts = {})
|
211
207
|
if @api_client.config.debugging
|
212
|
-
@api_client.config.logger.debug
|
208
|
+
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_id_put ...'
|
213
209
|
end
|
214
210
|
# verify the required parameter 'id' is set
|
215
211
|
if @api_client.config.client_side_validation && id.nil?
|
216
212
|
fail ArgumentError, "Missing the required parameter 'id' when calling TaxResidenceApi.tax_residences_id_put"
|
217
213
|
end
|
218
214
|
# resource path
|
219
|
-
local_var_path =
|
215
|
+
local_var_path = '/taxResidences/{id}'.sub('{' + 'id' + '}', id.to_s)
|
220
216
|
|
221
217
|
# query parameters
|
222
218
|
query_params = {}
|
@@ -247,7 +243,6 @@ module TreezorClient
|
|
247
243
|
end
|
248
244
|
return data, status_code, headers
|
249
245
|
end
|
250
|
-
|
251
246
|
# create a residence
|
252
247
|
# Create a new tax residence.
|
253
248
|
# @param user_id User's id residence
|
@@ -259,7 +254,7 @@ module TreezorClient
|
|
259
254
|
# @return [InlineResponse20028]
|
260
255
|
def tax_residences_post(user_id, country, opts = {})
|
261
256
|
data, _status_code, _headers = tax_residences_post_with_http_info(user_id, country, opts)
|
262
|
-
|
257
|
+
data
|
263
258
|
end
|
264
259
|
|
265
260
|
# create a residence
|
@@ -273,7 +268,7 @@ module TreezorClient
|
|
273
268
|
# @return [Array<(InlineResponse20028, Fixnum, Hash)>] InlineResponse20028 data, response status code and response headers
|
274
269
|
def tax_residences_post_with_http_info(user_id, country, opts = {})
|
275
270
|
if @api_client.config.debugging
|
276
|
-
@api_client.config.logger.debug
|
271
|
+
@api_client.config.logger.debug 'Calling API: TaxResidenceApi.tax_residences_post ...'
|
277
272
|
end
|
278
273
|
# verify the required parameter 'user_id' is set
|
279
274
|
if @api_client.config.client_side_validation && user_id.nil?
|
@@ -284,7 +279,7 @@ module TreezorClient
|
|
284
279
|
fail ArgumentError, "Missing the required parameter 'country' when calling TaxResidenceApi.tax_residences_post"
|
285
280
|
end
|
286
281
|
# resource path
|
287
|
-
local_var_path =
|
282
|
+
local_var_path = '/taxResidences'
|
288
283
|
|
289
284
|
# query parameters
|
290
285
|
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 TransactionApi
|
@@ -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 transaction
|
24
23
|
# Get a transaction from the system.
|
25
24
|
# @param id Transaction's internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20022]
|
28
27
|
def get_transaction(id, opts = {})
|
29
28
|
data, _status_code, _headers = get_transaction_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# get a transaction
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
38
37
|
def get_transaction_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: TransactionApi.get_transaction ...'
|
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 TransactionApi.get_transaction"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/transactions/{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 transactions
|
79
77
|
# Get transactions that match search criteria.
|
80
78
|
# @param [Hash] opts the optional parameters
|
@@ -101,7 +99,7 @@ module TreezorClient
|
|
101
99
|
# @return [InlineResponse20022]
|
102
100
|
def get_transactions(opts = {})
|
103
101
|
data, _status_code, _headers = get_transactions_with_http_info(opts)
|
104
|
-
|
102
|
+
data
|
105
103
|
end
|
106
104
|
|
107
105
|
# search transactions
|
@@ -130,10 +128,10 @@ module TreezorClient
|
|
130
128
|
# @return [Array<(InlineResponse20022, Fixnum, Hash)>] InlineResponse20022 data, response status code and response headers
|
131
129
|
def get_transactions_with_http_info(opts = {})
|
132
130
|
if @api_client.config.debugging
|
133
|
-
@api_client.config.logger.debug
|
131
|
+
@api_client.config.logger.debug 'Calling API: TransactionApi.get_transactions ...'
|
134
132
|
end
|
135
133
|
# resource path
|
136
|
-
local_var_path =
|
134
|
+
local_var_path = '/transactions'
|
137
135
|
|
138
136
|
# query parameters
|
139
137
|
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 TransferApi
|
@@ -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
|
24
23
|
# Change transfer's status to CANCELED. A validated transfer can't be cancelled.
|
25
24
|
# @param id Transfert internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20023]
|
28
27
|
def delete_transfer(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_transfer_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# cancel a transfer
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
38
37
|
def delete_transfer_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: TransferApi.delete_transfer ...'
|
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 TransferApi.delete_transfer"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/transfers/{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
|
79
77
|
# Get a transfert from the system.
|
80
78
|
# @param id Transfers internal id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20023]
|
83
81
|
def get_transfer(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_transfer_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a transfer
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
93
91
|
def get_transfer_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: TransferApi.get_transfer ...'
|
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 TransferApi.get_transfer"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/transfers/{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 transfers
|
134
131
|
# Search for transfers in the system.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -164,7 +161,7 @@ module TreezorClient
|
|
164
161
|
# @return [InlineResponse20023]
|
165
162
|
def get_transfers(opts = {})
|
166
163
|
data, _status_code, _headers = get_transfers_with_http_info(opts)
|
167
|
-
|
164
|
+
data
|
168
165
|
end
|
169
166
|
|
170
167
|
# search transfers
|
@@ -201,10 +198,10 @@ module TreezorClient
|
|
201
198
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
202
199
|
def get_transfers_with_http_info(opts = {})
|
203
200
|
if @api_client.config.debugging
|
204
|
-
@api_client.config.logger.debug
|
201
|
+
@api_client.config.logger.debug 'Calling API: TransferApi.get_transfers ...'
|
205
202
|
end
|
206
203
|
# resource path
|
207
|
-
local_var_path =
|
204
|
+
local_var_path = '/transfers'
|
208
205
|
|
209
206
|
# query parameters
|
210
207
|
query_params = {}
|
@@ -262,7 +259,6 @@ module TreezorClient
|
|
262
259
|
end
|
263
260
|
return data, status_code, headers
|
264
261
|
end
|
265
|
-
|
266
262
|
# create a transfer
|
267
263
|
# Create a new transfer in the system.
|
268
264
|
# @param wallet_id Debited wallet's ID
|
@@ -280,7 +276,7 @@ module TreezorClient
|
|
280
276
|
# @return [InlineResponse20023]
|
281
277
|
def post_transfers(wallet_id, beneficiary_wallet_id, amount, currency, opts = {})
|
282
278
|
data, _status_code, _headers = post_transfers_with_http_info(wallet_id, beneficiary_wallet_id, amount, currency, opts)
|
283
|
-
|
279
|
+
data
|
284
280
|
end
|
285
281
|
|
286
282
|
# create a transfer
|
@@ -300,7 +296,7 @@ module TreezorClient
|
|
300
296
|
# @return [Array<(InlineResponse20023, Fixnum, Hash)>] InlineResponse20023 data, response status code and response headers
|
301
297
|
def post_transfers_with_http_info(wallet_id, beneficiary_wallet_id, amount, currency, opts = {})
|
302
298
|
if @api_client.config.debugging
|
303
|
-
@api_client.config.logger.debug
|
299
|
+
@api_client.config.logger.debug 'Calling API: TransferApi.post_transfers ...'
|
304
300
|
end
|
305
301
|
# verify the required parameter 'wallet_id' is set
|
306
302
|
if @api_client.config.client_side_validation && wallet_id.nil?
|
@@ -319,7 +315,7 @@ module TreezorClient
|
|
319
315
|
fail ArgumentError, "Missing the required parameter 'currency' when calling TransferApi.post_transfers"
|
320
316
|
end
|
321
317
|
# resource path
|
322
|
-
local_var_path =
|
318
|
+
local_var_path = '/transfers'
|
323
319
|
|
324
320
|
# query parameters
|
325
321
|
query_params = {}
|