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 MccRestrictionGroupsApi
|
@@ -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 mcc group
|
24
23
|
# Cancel a mcc restriction group from the system.
|
25
24
|
# @param id MCC restriction Group internal id.
|
@@ -28,7 +27,7 @@ module TreezorClient
|
|
28
27
|
# @return [InlineResponse20014]
|
29
28
|
def delete_mcc_restriction_groups(id, opts = {})
|
30
29
|
data, _status_code, _headers = delete_mcc_restriction_groups_with_http_info(id, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# cancel a mcc group
|
@@ -39,14 +38,14 @@ module TreezorClient
|
|
39
38
|
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
40
39
|
def delete_mcc_restriction_groups_with_http_info(id, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: MccRestrictionGroupsApi.delete_mcc_restriction_groups ...'
|
43
42
|
end
|
44
43
|
# verify the required parameter 'id' is set
|
45
44
|
if @api_client.config.client_side_validation && id.nil?
|
46
45
|
fail ArgumentError, "Missing the required parameter 'id' when calling MccRestrictionGroupsApi.delete_mcc_restriction_groups"
|
47
46
|
end
|
48
47
|
# resource path
|
49
|
-
local_var_path =
|
48
|
+
local_var_path = '/mccRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
50
49
|
|
51
50
|
# query parameters
|
52
51
|
query_params = {}
|
@@ -77,7 +76,6 @@ module TreezorClient
|
|
77
76
|
end
|
78
77
|
return data, status_code, headers
|
79
78
|
end
|
80
|
-
|
81
79
|
# search mcc restriction groups
|
82
80
|
# Get mcc restriction groups that match search criteria.
|
83
81
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +92,7 @@ module TreezorClient
|
|
94
92
|
# @return [InlineResponse20014]
|
95
93
|
def get_mcc_restriction_groups(opts = {})
|
96
94
|
data, _status_code, _headers = get_mcc_restriction_groups_with_http_info(opts)
|
97
|
-
|
95
|
+
data
|
98
96
|
end
|
99
97
|
|
100
98
|
# search mcc restriction groups
|
@@ -113,10 +111,10 @@ module TreezorClient
|
|
113
111
|
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
114
112
|
def get_mcc_restriction_groups_with_http_info(opts = {})
|
115
113
|
if @api_client.config.debugging
|
116
|
-
@api_client.config.logger.debug
|
114
|
+
@api_client.config.logger.debug 'Calling API: MccRestrictionGroupsApi.get_mcc_restriction_groups ...'
|
117
115
|
end
|
118
116
|
# resource path
|
119
|
-
local_var_path =
|
117
|
+
local_var_path = '/mccRestrictionGroups'
|
120
118
|
|
121
119
|
# query parameters
|
122
120
|
query_params = {}
|
@@ -156,7 +154,6 @@ module TreezorClient
|
|
156
154
|
end
|
157
155
|
return data, status_code, headers
|
158
156
|
end
|
159
|
-
|
160
157
|
# get a mcc group
|
161
158
|
# Get a mcc group from the system.
|
162
159
|
# @param id MCC restriction Group internal id.
|
@@ -165,7 +162,7 @@ module TreezorClient
|
|
165
162
|
# @return [InlineResponse20014]
|
166
163
|
def get_mcc_restriction_groups_id(id, opts = {})
|
167
164
|
data, _status_code, _headers = get_mcc_restriction_groups_id_with_http_info(id, opts)
|
168
|
-
|
165
|
+
data
|
169
166
|
end
|
170
167
|
|
171
168
|
# get a mcc group
|
@@ -176,14 +173,14 @@ module TreezorClient
|
|
176
173
|
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
177
174
|
def get_mcc_restriction_groups_id_with_http_info(id, opts = {})
|
178
175
|
if @api_client.config.debugging
|
179
|
-
@api_client.config.logger.debug
|
176
|
+
@api_client.config.logger.debug 'Calling API: MccRestrictionGroupsApi.get_mcc_restriction_groups_id ...'
|
180
177
|
end
|
181
178
|
# verify the required parameter 'id' is set
|
182
179
|
if @api_client.config.client_side_validation && id.nil?
|
183
180
|
fail ArgumentError, "Missing the required parameter 'id' when calling MccRestrictionGroupsApi.get_mcc_restriction_groups_id"
|
184
181
|
end
|
185
182
|
# resource path
|
186
|
-
local_var_path =
|
183
|
+
local_var_path = '/mccRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
187
184
|
|
188
185
|
# query parameters
|
189
186
|
query_params = {}
|
@@ -214,7 +211,6 @@ module TreezorClient
|
|
214
211
|
end
|
215
212
|
return data, status_code, headers
|
216
213
|
end
|
217
|
-
|
218
214
|
# create a mccRestrictionGroup
|
219
215
|
# Create a new mcc restriction group in the system.
|
220
216
|
# @param [Hash] opts the optional parameters
|
@@ -227,7 +223,7 @@ module TreezorClient
|
|
227
223
|
# @return [InlineResponse20014]
|
228
224
|
def post_mcc_restriction_group(opts = {})
|
229
225
|
data, _status_code, _headers = post_mcc_restriction_group_with_http_info(opts)
|
230
|
-
|
226
|
+
data
|
231
227
|
end
|
232
228
|
|
233
229
|
# create a mccRestrictionGroup
|
@@ -242,10 +238,10 @@ module TreezorClient
|
|
242
238
|
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
243
239
|
def post_mcc_restriction_group_with_http_info(opts = {})
|
244
240
|
if @api_client.config.debugging
|
245
|
-
@api_client.config.logger.debug
|
241
|
+
@api_client.config.logger.debug 'Calling API: MccRestrictionGroupsApi.post_mcc_restriction_group ...'
|
246
242
|
end
|
247
243
|
# resource path
|
248
|
-
local_var_path =
|
244
|
+
local_var_path = '/mccRestrictionGroups'
|
249
245
|
|
250
246
|
# query parameters
|
251
247
|
query_params = {}
|
@@ -280,7 +276,6 @@ module TreezorClient
|
|
280
276
|
end
|
281
277
|
return data, status_code, headers
|
282
278
|
end
|
283
|
-
|
284
279
|
# edit a mcc restriction group
|
285
280
|
# Edit a mcc restriction group in the system.
|
286
281
|
# @param id MCC group's id.
|
@@ -293,7 +288,7 @@ module TreezorClient
|
|
293
288
|
# @return [InlineResponse20014]
|
294
289
|
def put_mcc_restriction_groups(id, opts = {})
|
295
290
|
data, _status_code, _headers = put_mcc_restriction_groups_with_http_info(id, opts)
|
296
|
-
|
291
|
+
data
|
297
292
|
end
|
298
293
|
|
299
294
|
# edit a mcc restriction group
|
@@ -308,14 +303,14 @@ module TreezorClient
|
|
308
303
|
# @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
|
309
304
|
def put_mcc_restriction_groups_with_http_info(id, opts = {})
|
310
305
|
if @api_client.config.debugging
|
311
|
-
@api_client.config.logger.debug
|
306
|
+
@api_client.config.logger.debug 'Calling API: MccRestrictionGroupsApi.put_mcc_restriction_groups ...'
|
312
307
|
end
|
313
308
|
# verify the required parameter 'id' is set
|
314
309
|
if @api_client.config.client_side_validation && id.nil?
|
315
310
|
fail ArgumentError, "Missing the required parameter 'id' when calling MccRestrictionGroupsApi.put_mcc_restriction_groups"
|
316
311
|
end
|
317
312
|
# resource path
|
318
|
-
local_var_path =
|
313
|
+
local_var_path = '/mccRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
319
314
|
|
320
315
|
# query parameters
|
321
316
|
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 MerchantIdRestrictionGroupsApi
|
@@ -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 merchant id restriction group
|
24
23
|
# Cancel a merchant id restriction group from the system.
|
25
24
|
# @param id Merchant ID restriction Group internal id.
|
@@ -28,7 +27,7 @@ module TreezorClient
|
|
28
27
|
# @return [InlineResponse20015]
|
29
28
|
def delete_merchant_id_restriction_groups(id, opts = {})
|
30
29
|
data, _status_code, _headers = delete_merchant_id_restriction_groups_with_http_info(id, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# cancel a merchant id restriction group
|
@@ -39,14 +38,14 @@ module TreezorClient
|
|
39
38
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
40
39
|
def delete_merchant_id_restriction_groups_with_http_info(id, opts = {})
|
41
40
|
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug
|
41
|
+
@api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.delete_merchant_id_restriction_groups ...'
|
43
42
|
end
|
44
43
|
# verify the required parameter 'id' is set
|
45
44
|
if @api_client.config.client_side_validation && id.nil?
|
46
45
|
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.delete_merchant_id_restriction_groups"
|
47
46
|
end
|
48
47
|
# resource path
|
49
|
-
local_var_path =
|
48
|
+
local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
50
49
|
|
51
50
|
# query parameters
|
52
51
|
query_params = {}
|
@@ -77,7 +76,6 @@ module TreezorClient
|
|
77
76
|
end
|
78
77
|
return data, status_code, headers
|
79
78
|
end
|
80
|
-
|
81
79
|
# search merchant id restriction groups
|
82
80
|
# Get merchant ID restriction groups that match search criteria.
|
83
81
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +92,7 @@ module TreezorClient
|
|
94
92
|
# @return [InlineResponse20015]
|
95
93
|
def get_merchant_id_restriction_group(opts = {})
|
96
94
|
data, _status_code, _headers = get_merchant_id_restriction_group_with_http_info(opts)
|
97
|
-
|
95
|
+
data
|
98
96
|
end
|
99
97
|
|
100
98
|
# search merchant id restriction groups
|
@@ -113,10 +111,10 @@ module TreezorClient
|
|
113
111
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
114
112
|
def get_merchant_id_restriction_group_with_http_info(opts = {})
|
115
113
|
if @api_client.config.debugging
|
116
|
-
@api_client.config.logger.debug
|
114
|
+
@api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_group ...'
|
117
115
|
end
|
118
116
|
# resource path
|
119
|
-
local_var_path =
|
117
|
+
local_var_path = '/merchantIdRestrictionGroups'
|
120
118
|
|
121
119
|
# query parameters
|
122
120
|
query_params = {}
|
@@ -156,7 +154,6 @@ module TreezorClient
|
|
156
154
|
end
|
157
155
|
return data, status_code, headers
|
158
156
|
end
|
159
|
-
|
160
157
|
# get a merchant ID restriction group
|
161
158
|
# Get a merchant ID restriction group from the system.
|
162
159
|
# @param id Merchant ID restriction Group internal id.
|
@@ -165,7 +162,7 @@ module TreezorClient
|
|
165
162
|
# @return [InlineResponse20015]
|
166
163
|
def get_merchant_id_restriction_groups_id(id, opts = {})
|
167
164
|
data, _status_code, _headers = get_merchant_id_restriction_groups_id_with_http_info(id, opts)
|
168
|
-
|
165
|
+
data
|
169
166
|
end
|
170
167
|
|
171
168
|
# get a merchant ID restriction group
|
@@ -176,14 +173,14 @@ module TreezorClient
|
|
176
173
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
177
174
|
def get_merchant_id_restriction_groups_id_with_http_info(id, opts = {})
|
178
175
|
if @api_client.config.debugging
|
179
|
-
@api_client.config.logger.debug
|
176
|
+
@api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_groups_id ...'
|
180
177
|
end
|
181
178
|
# verify the required parameter 'id' is set
|
182
179
|
if @api_client.config.client_side_validation && id.nil?
|
183
180
|
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.get_merchant_id_restriction_groups_id"
|
184
181
|
end
|
185
182
|
# resource path
|
186
|
-
local_var_path =
|
183
|
+
local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
187
184
|
|
188
185
|
# query parameters
|
189
186
|
query_params = {}
|
@@ -214,7 +211,6 @@ module TreezorClient
|
|
214
211
|
end
|
215
212
|
return data, status_code, headers
|
216
213
|
end
|
217
|
-
|
218
214
|
# create a merchantIdRestrictionGroup
|
219
215
|
# Create a new merchant ID restriction group in the system.
|
220
216
|
# @param [Hash] opts the optional parameters
|
@@ -226,7 +222,7 @@ module TreezorClient
|
|
226
222
|
# @return [InlineResponse20015]
|
227
223
|
def post_merchant_id_restriction_group(opts = {})
|
228
224
|
data, _status_code, _headers = post_merchant_id_restriction_group_with_http_info(opts)
|
229
|
-
|
225
|
+
data
|
230
226
|
end
|
231
227
|
|
232
228
|
# create a merchantIdRestrictionGroup
|
@@ -240,10 +236,10 @@ module TreezorClient
|
|
240
236
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
241
237
|
def post_merchant_id_restriction_group_with_http_info(opts = {})
|
242
238
|
if @api_client.config.debugging
|
243
|
-
@api_client.config.logger.debug
|
239
|
+
@api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.post_merchant_id_restriction_group ...'
|
244
240
|
end
|
245
241
|
# resource path
|
246
|
-
local_var_path =
|
242
|
+
local_var_path = '/merchantIdRestrictionGroups'
|
247
243
|
|
248
244
|
# query parameters
|
249
245
|
query_params = {}
|
@@ -277,7 +273,6 @@ module TreezorClient
|
|
277
273
|
end
|
278
274
|
return data, status_code, headers
|
279
275
|
end
|
280
|
-
|
281
276
|
# edit a merchant id restriction group
|
282
277
|
# Edit a merchant id restriction group in the system.
|
283
278
|
# @param id Merchant ID restriction group's id.
|
@@ -290,7 +285,7 @@ module TreezorClient
|
|
290
285
|
# @return [InlineResponse20015]
|
291
286
|
def put_merchant_id_restriction_groups(id, opts = {})
|
292
287
|
data, _status_code, _headers = put_merchant_id_restriction_groups_with_http_info(id, opts)
|
293
|
-
|
288
|
+
data
|
294
289
|
end
|
295
290
|
|
296
291
|
# edit a merchant id restriction group
|
@@ -305,14 +300,14 @@ module TreezorClient
|
|
305
300
|
# @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 data, response status code and response headers
|
306
301
|
def put_merchant_id_restriction_groups_with_http_info(id, opts = {})
|
307
302
|
if @api_client.config.debugging
|
308
|
-
@api_client.config.logger.debug
|
303
|
+
@api_client.config.logger.debug 'Calling API: MerchantIdRestrictionGroupsApi.put_merchant_id_restriction_groups ...'
|
309
304
|
end
|
310
305
|
# verify the required parameter 'id' is set
|
311
306
|
if @api_client.config.client_side_validation && id.nil?
|
312
307
|
fail ArgumentError, "Missing the required parameter 'id' when calling MerchantIdRestrictionGroupsApi.put_merchant_id_restriction_groups"
|
313
308
|
end
|
314
309
|
# resource path
|
315
|
-
local_var_path =
|
310
|
+
local_var_path = '/merchantIdRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
316
311
|
|
317
312
|
# query parameters
|
318
313
|
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 PayinApi
|
@@ -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 pay in
|
24
23
|
# Deactivate a payin in the system.
|
25
24
|
# @param id Payin's id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20017]
|
28
27
|
def delete_payin(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_payin_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# delete a pay in
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
38
37
|
def delete_payin_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: PayinApi.delete_payin ...'
|
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 PayinApi.delete_payin"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/payins/{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 pay in
|
79
77
|
# Get a payin from the system by its id.
|
80
78
|
# @param id Payin's id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20017]
|
83
81
|
def get_payin(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_payin_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a pay in
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
93
91
|
def get_payin_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: PayinApi.get_payin ...'
|
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 PayinApi.get_payin"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/payins/{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 ins
|
134
131
|
# Get payins that match search criteria.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -159,7 +156,7 @@ module TreezorClient
|
|
159
156
|
# @return [InlineResponse20017]
|
160
157
|
def get_payins(opts = {})
|
161
158
|
data, _status_code, _headers = get_payins_with_http_info(opts)
|
162
|
-
|
159
|
+
data
|
163
160
|
end
|
164
161
|
|
165
162
|
# search pay ins
|
@@ -191,10 +188,10 @@ module TreezorClient
|
|
191
188
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
192
189
|
def get_payins_with_http_info(opts = {})
|
193
190
|
if @api_client.config.debugging
|
194
|
-
@api_client.config.logger.debug
|
191
|
+
@api_client.config.logger.debug 'Calling API: PayinApi.get_payins ...'
|
195
192
|
end
|
196
193
|
# resource path
|
197
|
-
local_var_path =
|
194
|
+
local_var_path = '/payins'
|
198
195
|
|
199
196
|
# query parameters
|
200
197
|
query_params = {}
|
@@ -247,7 +244,6 @@ module TreezorClient
|
|
247
244
|
end
|
248
245
|
return data, status_code, headers
|
249
246
|
end
|
250
|
-
|
251
247
|
# create a pay in
|
252
248
|
# Create a new pay in in the system.
|
253
249
|
# @param wallet_id Credited wallet's ID
|
@@ -276,7 +272,7 @@ module TreezorClient
|
|
276
272
|
# @return [InlineResponse20017]
|
277
273
|
def post_payin(wallet_id, payment_method_id, amount, currency, opts = {})
|
278
274
|
data, _status_code, _headers = post_payin_with_http_info(wallet_id, payment_method_id, amount, currency, opts)
|
279
|
-
|
275
|
+
data
|
280
276
|
end
|
281
277
|
|
282
278
|
# create a pay in
|
@@ -307,7 +303,7 @@ module TreezorClient
|
|
307
303
|
# @return [Array<(InlineResponse20017, Fixnum, Hash)>] InlineResponse20017 data, response status code and response headers
|
308
304
|
def post_payin_with_http_info(wallet_id, payment_method_id, amount, currency, opts = {})
|
309
305
|
if @api_client.config.debugging
|
310
|
-
@api_client.config.logger.debug
|
306
|
+
@api_client.config.logger.debug 'Calling API: PayinApi.post_payin ...'
|
311
307
|
end
|
312
308
|
# verify the required parameter 'wallet_id' is set
|
313
309
|
if @api_client.config.client_side_validation && wallet_id.nil?
|
@@ -329,7 +325,7 @@ module TreezorClient
|
|
329
325
|
fail ArgumentError, 'invalid value for "language", must be one of FRA, GBR, ESP, ITA, PRT'
|
330
326
|
end
|
331
327
|
# resource path
|
332
|
-
local_var_path =
|
328
|
+
local_var_path = '/payins'
|
333
329
|
|
334
330
|
# query parameters
|
335
331
|
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 PayinrefundApi
|
@@ -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 pay in refund
|
24
23
|
# Change payin refund's status to CANCELED. A validated payin refund can't be cancelled.
|
25
24
|
# @param id Payinrefund's internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20019]
|
28
27
|
def delete_payinrefund(id, opts = {})
|
29
28
|
data, _status_code, _headers = delete_payinrefund_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# cancel a pay in refund
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
38
37
|
def delete_payinrefund_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: PayinrefundApi.delete_payinrefund ...'
|
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 PayinrefundApi.delete_payinrefund"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/payinrefunds/{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 pay in refund
|
79
77
|
# Get a payin refund from the system.
|
80
78
|
# @param id Payinrefund's internal id.
|
@@ -82,7 +80,7 @@ module TreezorClient
|
|
82
80
|
# @return [InlineResponse20019]
|
83
81
|
def get_payinrefund(id, opts = {})
|
84
82
|
data, _status_code, _headers = get_payinrefund_with_http_info(id, opts)
|
85
|
-
|
83
|
+
data
|
86
84
|
end
|
87
85
|
|
88
86
|
# get a pay in refund
|
@@ -92,14 +90,14 @@ module TreezorClient
|
|
92
90
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
93
91
|
def get_payinrefund_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: PayinrefundApi.get_payinrefund ...'
|
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 PayinrefundApi.get_payinrefund"
|
100
98
|
end
|
101
99
|
# resource path
|
102
|
-
local_var_path =
|
100
|
+
local_var_path = '/payinrefunds/{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 in refunds
|
134
131
|
# Search for payinrefunds in the system.
|
135
132
|
# @param [Hash] opts the optional parameters
|
@@ -157,7 +154,7 @@ module TreezorClient
|
|
157
154
|
# @return [InlineResponse20019]
|
158
155
|
def get_payinrefunds(opts = {})
|
159
156
|
data, _status_code, _headers = get_payinrefunds_with_http_info(opts)
|
160
|
-
|
157
|
+
data
|
161
158
|
end
|
162
159
|
|
163
160
|
# search pay in refunds
|
@@ -187,10 +184,10 @@ module TreezorClient
|
|
187
184
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
188
185
|
def get_payinrefunds_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: PayinrefundApi.get_payinrefunds ...'
|
191
188
|
end
|
192
189
|
# resource path
|
193
|
-
local_var_path =
|
190
|
+
local_var_path = '/payinrefunds'
|
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 pay in refund
|
246
242
|
# Create a new payinrefund in the system.
|
247
243
|
# @param payin_id payin's id to refund.
|
@@ -257,7 +253,7 @@ module TreezorClient
|
|
257
253
|
# @return [InlineResponse20019]
|
258
254
|
def post_payinrefunds(payin_id, amount, currency, opts = {})
|
259
255
|
data, _status_code, _headers = post_payinrefunds_with_http_info(payin_id, amount, currency, opts)
|
260
|
-
|
256
|
+
data
|
261
257
|
end
|
262
258
|
|
263
259
|
# create a pay in refund
|
@@ -275,7 +271,7 @@ module TreezorClient
|
|
275
271
|
# @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
|
276
272
|
def post_payinrefunds_with_http_info(payin_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: PayinrefundApi.post_payinrefunds ...'
|
279
275
|
end
|
280
276
|
# verify the required parameter 'payin_id' is set
|
281
277
|
if @api_client.config.client_side_validation && payin_id.nil?
|
@@ -290,7 +286,7 @@ module TreezorClient
|
|
290
286
|
fail ArgumentError, "Missing the required parameter 'currency' when calling PayinrefundApi.post_payinrefunds"
|
291
287
|
end
|
292
288
|
# resource path
|
293
|
-
local_var_path =
|
289
|
+
local_var_path = '/payinrefunds'
|
294
290
|
|
295
291
|
# query parameters
|
296
292
|
query_params = {}
|