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 CardDigitalizationsApi
|
@@ -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 digitalizations based on its internal id
|
24
23
|
# Get a card digitalizations based on its internal id
|
25
24
|
# @param id Card digitalization internal id.
|
@@ -28,7 +27,7 @@ module TreezorClient
|
|
28
27
|
# @return [InlineResponse2008]
|
29
28
|
def card_digitalizations_id(id, opts = {})
|
30
29
|
data, _status_code, _headers = card_digitalizations_id_with_http_info(id, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# Get a card digitalizations based on its internal id
|
@@ -39,14 +38,14 @@ module TreezorClient
|
|
39
38
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
40
39
|
def card_digitalizations_id_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: CardDigitalizationsApi.card_digitalizations_id ...'
|
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 CardDigitalizationsApi.card_digitalizations_id"
|
47
46
|
end
|
48
47
|
# resource path
|
49
|
-
local_var_path =
|
48
|
+
local_var_path = '/cardDigitalizations/{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
|
# Deletes a payment Token
|
82
80
|
# Deletes a payment Token
|
83
81
|
# @param id Card digitalization internal id.
|
@@ -86,7 +84,7 @@ module TreezorClient
|
|
86
84
|
# @return [InlineResponse2008]
|
87
85
|
def deletecard_digitalizations_id(id, reason_code, opts = {})
|
88
86
|
data, _status_code, _headers = deletecard_digitalizations_id_with_http_info(id, reason_code, opts)
|
89
|
-
|
87
|
+
data
|
90
88
|
end
|
91
89
|
|
92
90
|
# Deletes a payment Token
|
@@ -97,7 +95,7 @@ module TreezorClient
|
|
97
95
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
98
96
|
def deletecard_digitalizations_id_with_http_info(id, reason_code, opts = {})
|
99
97
|
if @api_client.config.debugging
|
100
|
-
@api_client.config.logger.debug
|
98
|
+
@api_client.config.logger.debug 'Calling API: CardDigitalizationsApi.deletecard_digitalizations_id ...'
|
101
99
|
end
|
102
100
|
# verify the required parameter 'id' is set
|
103
101
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -108,7 +106,7 @@ module TreezorClient
|
|
108
106
|
fail ArgumentError, "Missing the required parameter 'reason_code' when calling CardDigitalizationsApi.deletecard_digitalizations_id"
|
109
107
|
end
|
110
108
|
# resource path
|
111
|
-
local_var_path =
|
109
|
+
local_var_path = '/cardDigitalizations/{id}'.sub('{' + 'id' + '}', id.to_s)
|
112
110
|
|
113
111
|
# query parameters
|
114
112
|
query_params = {}
|
@@ -139,7 +137,6 @@ module TreezorClient
|
|
139
137
|
end
|
140
138
|
return data, status_code, headers
|
141
139
|
end
|
142
|
-
|
143
140
|
# Update the status of a payment Token
|
144
141
|
# Update the status of a payment Token
|
145
142
|
# @param id Card digitalization internal id.
|
@@ -149,7 +146,7 @@ module TreezorClient
|
|
149
146
|
# @return [InlineResponse2008]
|
150
147
|
def putcard_digitalizations_id(id, status, reason_code, opts = {})
|
151
148
|
data, _status_code, _headers = putcard_digitalizations_id_with_http_info(id, status, reason_code, opts)
|
152
|
-
|
149
|
+
data
|
153
150
|
end
|
154
151
|
|
155
152
|
# Update the status of a payment Token
|
@@ -161,7 +158,7 @@ module TreezorClient
|
|
161
158
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
162
159
|
def putcard_digitalizations_id_with_http_info(id, status, reason_code, opts = {})
|
163
160
|
if @api_client.config.debugging
|
164
|
-
@api_client.config.logger.debug
|
161
|
+
@api_client.config.logger.debug 'Calling API: CardDigitalizationsApi.putcard_digitalizations_id ...'
|
165
162
|
end
|
166
163
|
# verify the required parameter 'id' is set
|
167
164
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -176,7 +173,7 @@ module TreezorClient
|
|
176
173
|
fail ArgumentError, "Missing the required parameter 'reason_code' when calling CardDigitalizationsApi.putcard_digitalizations_id"
|
177
174
|
end
|
178
175
|
# resource path
|
179
|
-
local_var_path =
|
176
|
+
local_var_path = '/cardDigitalizations/{id}'.sub('{' + 'id' + '}', id.to_s)
|
180
177
|
|
181
178
|
# query parameters
|
182
179
|
query_params = {}
|
@@ -208,7 +205,6 @@ module TreezorClient
|
|
208
205
|
end
|
209
206
|
return data, status_code, headers
|
210
207
|
end
|
211
|
-
|
212
208
|
# search for card digitalizations
|
213
209
|
# Search for card digitalizations.
|
214
210
|
# @param [Hash] opts the optional parameters
|
@@ -221,7 +217,7 @@ module TreezorClient
|
|
221
217
|
# @return [InlineResponse2008]
|
222
218
|
def readcard_digitalizations(opts = {})
|
223
219
|
data, _status_code, _headers = readcard_digitalizations_with_http_info(opts)
|
224
|
-
|
220
|
+
data
|
225
221
|
end
|
226
222
|
|
227
223
|
# search for card digitalizations
|
@@ -236,10 +232,10 @@ module TreezorClient
|
|
236
232
|
# @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
|
237
233
|
def readcard_digitalizations_with_http_info(opts = {})
|
238
234
|
if @api_client.config.debugging
|
239
|
-
@api_client.config.logger.debug
|
235
|
+
@api_client.config.logger.debug 'Calling API: CardDigitalizationsApi.readcard_digitalizations ...'
|
240
236
|
end
|
241
237
|
# resource path
|
242
|
-
local_var_path =
|
238
|
+
local_var_path = '/cardDigitalizations'
|
243
239
|
|
244
240
|
# query parameters
|
245
241
|
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 CardReserveApi
|
@@ -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
|
# add an amount to the reserved amount of a card
|
24
23
|
# add an amount to the reserved amount of a card
|
25
24
|
# @param [Hash] opts the optional parameters
|
@@ -31,7 +30,7 @@ module TreezorClient
|
|
31
30
|
# @return [Float]
|
32
31
|
def card_reserve_add_to(opts = {})
|
33
32
|
data, _status_code, _headers = card_reserve_add_to_with_http_info(opts)
|
34
|
-
|
33
|
+
data
|
35
34
|
end
|
36
35
|
|
37
36
|
# add an amount to the reserved amount of a card
|
@@ -45,10 +44,10 @@ module TreezorClient
|
|
45
44
|
# @return [Array<(Float, Fixnum, Hash)>] Float data, response status code and response headers
|
46
45
|
def card_reserve_add_to_with_http_info(opts = {})
|
47
46
|
if @api_client.config.debugging
|
48
|
-
@api_client.config.logger.debug
|
47
|
+
@api_client.config.logger.debug 'Calling API: CardReserveApi.card_reserve_add_to ...'
|
49
48
|
end
|
50
49
|
# resource path
|
51
|
-
local_var_path =
|
50
|
+
local_var_path = '/cardReserves/AddTo'
|
52
51
|
|
53
52
|
# query parameters
|
54
53
|
query_params = {}
|
@@ -82,7 +81,6 @@ module TreezorClient
|
|
82
81
|
end
|
83
82
|
return data, status_code, headers
|
84
83
|
end
|
85
|
-
|
86
84
|
# check reserved amount
|
87
85
|
# Check if an amount can be substract to the reserved amount
|
88
86
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +92,7 @@ module TreezorClient
|
|
94
92
|
# @return [BOOLEAN]
|
95
93
|
def card_reserve_check(opts = {})
|
96
94
|
data, _status_code, _headers = card_reserve_check_with_http_info(opts)
|
97
|
-
|
95
|
+
data
|
98
96
|
end
|
99
97
|
|
100
98
|
# check reserved amount
|
@@ -108,10 +106,10 @@ module TreezorClient
|
|
108
106
|
# @return [Array<(BOOLEAN, Fixnum, Hash)>] BOOLEAN data, response status code and response headers
|
109
107
|
def card_reserve_check_with_http_info(opts = {})
|
110
108
|
if @api_client.config.debugging
|
111
|
-
@api_client.config.logger.debug
|
109
|
+
@api_client.config.logger.debug 'Calling API: CardReserveApi.card_reserve_check ...'
|
112
110
|
end
|
113
111
|
# resource path
|
114
|
-
local_var_path =
|
112
|
+
local_var_path = '/cardReserves/Check'
|
115
113
|
|
116
114
|
# query parameters
|
117
115
|
query_params = {}
|
@@ -145,7 +143,6 @@ module TreezorClient
|
|
145
143
|
end
|
146
144
|
return data, status_code, headers
|
147
145
|
end
|
148
|
-
|
149
146
|
# get the reserved amount of a card
|
150
147
|
# get the reserved amount of a card
|
151
148
|
# @param id the cardId of the reserved amount you want to pick up
|
@@ -157,7 +154,7 @@ module TreezorClient
|
|
157
154
|
# @return [InlineResponse2009]
|
158
155
|
def card_reserve_get(id, opts = {})
|
159
156
|
data, _status_code, _headers = card_reserve_get_with_http_info(id, opts)
|
160
|
-
|
157
|
+
data
|
161
158
|
end
|
162
159
|
|
163
160
|
# get the reserved amount of a card
|
@@ -171,14 +168,14 @@ module TreezorClient
|
|
171
168
|
# @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
|
172
169
|
def card_reserve_get_with_http_info(id, opts = {})
|
173
170
|
if @api_client.config.debugging
|
174
|
-
@api_client.config.logger.debug
|
171
|
+
@api_client.config.logger.debug 'Calling API: CardReserveApi.card_reserve_get ...'
|
175
172
|
end
|
176
173
|
# verify the required parameter 'id' is set
|
177
174
|
if @api_client.config.client_side_validation && id.nil?
|
178
175
|
fail ArgumentError, "Missing the required parameter 'id' when calling CardReserveApi.card_reserve_get"
|
179
176
|
end
|
180
177
|
# resource path
|
181
|
-
local_var_path =
|
178
|
+
local_var_path = '/cardReserves/{id}'.sub('{' + 'id' + '}', id.to_s)
|
182
179
|
|
183
180
|
# query parameters
|
184
181
|
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 CardtransactionApi
|
@@ -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 transaction
|
24
23
|
# get a card transaction
|
25
24
|
# @param id Card transactions's internal id.
|
@@ -27,7 +26,7 @@ module TreezorClient
|
|
27
26
|
# @return [InlineResponse20011]
|
28
27
|
def get_cardtransaction(id, opts = {})
|
29
28
|
data, _status_code, _headers = get_cardtransaction_with_http_info(id, opts)
|
30
|
-
|
29
|
+
data
|
31
30
|
end
|
32
31
|
|
33
32
|
# get a card transaction
|
@@ -37,14 +36,14 @@ module TreezorClient
|
|
37
36
|
# @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
|
38
37
|
def get_cardtransaction_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: CardtransactionApi.get_cardtransaction ...'
|
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 CardtransactionApi.get_cardtransaction"
|
45
44
|
end
|
46
45
|
# resource path
|
47
|
-
local_var_path =
|
46
|
+
local_var_path = '/cardtransactions/{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 for card transactions
|
79
77
|
# Search for documents.
|
80
78
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +92,7 @@ module TreezorClient
|
|
94
92
|
# @return [InlineResponse20010]
|
95
93
|
def read_card_transaction(opts = {})
|
96
94
|
data, _status_code, _headers = read_card_transaction_with_http_info(opts)
|
97
|
-
|
95
|
+
data
|
98
96
|
end
|
99
97
|
|
100
98
|
# search for card transactions
|
@@ -116,10 +114,10 @@ module TreezorClient
|
|
116
114
|
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
117
115
|
def read_card_transaction_with_http_info(opts = {})
|
118
116
|
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug
|
117
|
+
@api_client.config.logger.debug 'Calling API: CardtransactionApi.read_card_transaction ...'
|
120
118
|
end
|
121
119
|
# resource path
|
122
|
-
local_var_path =
|
120
|
+
local_var_path = '/cardtransactions'
|
123
121
|
|
124
122
|
# query parameters
|
125
123
|
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 CountryRestrictionGroupsApi
|
@@ -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 country group
|
24
23
|
# Cancel a country restriction group from the system.
|
25
24
|
# @param id country restriction Group internal id.
|
@@ -28,7 +27,7 @@ module TreezorClient
|
|
28
27
|
# @return [InlineResponse20016]
|
29
28
|
def delete_country_restriction_groups(id, opts = {})
|
30
29
|
data, _status_code, _headers = delete_country_restriction_groups_with_http_info(id, opts)
|
31
|
-
|
30
|
+
data
|
32
31
|
end
|
33
32
|
|
34
33
|
# cancel a country group
|
@@ -39,14 +38,14 @@ module TreezorClient
|
|
39
38
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
40
39
|
def delete_country_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: CountryRestrictionGroupsApi.delete_country_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 CountryRestrictionGroupsApi.delete_country_restriction_groups"
|
47
46
|
end
|
48
47
|
# resource path
|
49
|
-
local_var_path =
|
48
|
+
local_var_path = '/countryRestrictionGroups/{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 country restriction groups
|
82
80
|
# Get country restriction groups that match search criteria.
|
83
81
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +92,7 @@ module TreezorClient
|
|
94
92
|
# @return [InlineResponse20016]
|
95
93
|
def get_country_restriction_groups(opts = {})
|
96
94
|
data, _status_code, _headers = get_country_restriction_groups_with_http_info(opts)
|
97
|
-
|
95
|
+
data
|
98
96
|
end
|
99
97
|
|
100
98
|
# search country restriction groups
|
@@ -113,10 +111,10 @@ module TreezorClient
|
|
113
111
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
114
112
|
def get_country_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: CountryRestrictionGroupsApi.get_country_restriction_groups ...'
|
117
115
|
end
|
118
116
|
# resource path
|
119
|
-
local_var_path =
|
117
|
+
local_var_path = '/countryRestrictionGroups'
|
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 country group
|
161
158
|
# Get a country group from the system.
|
162
159
|
# @param id country restriction Group internal id.
|
@@ -165,7 +162,7 @@ module TreezorClient
|
|
165
162
|
# @return [InlineResponse20016]
|
166
163
|
def get_country_restriction_groups_id(id, opts = {})
|
167
164
|
data, _status_code, _headers = get_country_restriction_groups_id_with_http_info(id, opts)
|
168
|
-
|
165
|
+
data
|
169
166
|
end
|
170
167
|
|
171
168
|
# get a country group
|
@@ -176,14 +173,14 @@ module TreezorClient
|
|
176
173
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
177
174
|
def get_country_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: CountryRestrictionGroupsApi.get_country_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 CountryRestrictionGroupsApi.get_country_restriction_groups_id"
|
184
181
|
end
|
185
182
|
# resource path
|
186
|
-
local_var_path =
|
183
|
+
local_var_path = '/countryRestrictionGroups/{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 countryRestrictionGroup
|
219
215
|
# Create a new country restriction group in the system.
|
220
216
|
# @param [Hash] opts the optional parameters
|
@@ -227,7 +223,7 @@ module TreezorClient
|
|
227
223
|
# @return [InlineResponse20016]
|
228
224
|
def post_country_restriction_group(opts = {})
|
229
225
|
data, _status_code, _headers = post_country_restriction_group_with_http_info(opts)
|
230
|
-
|
226
|
+
data
|
231
227
|
end
|
232
228
|
|
233
229
|
# create a countryRestrictionGroup
|
@@ -242,10 +238,10 @@ module TreezorClient
|
|
242
238
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
243
239
|
def post_country_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: CountryRestrictionGroupsApi.post_country_restriction_group ...'
|
246
242
|
end
|
247
243
|
# resource path
|
248
|
-
local_var_path =
|
244
|
+
local_var_path = '/countryRestrictionGroups'
|
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 country restriction group
|
285
280
|
# Edit a country restriction group in the system.
|
286
281
|
# @param id country group's id.
|
@@ -293,7 +288,7 @@ module TreezorClient
|
|
293
288
|
# @return [InlineResponse20016]
|
294
289
|
def put_country_restriction_groups(id, opts = {})
|
295
290
|
data, _status_code, _headers = put_country_restriction_groups_with_http_info(id, opts)
|
296
|
-
|
291
|
+
data
|
297
292
|
end
|
298
293
|
|
299
294
|
# edit a country restriction group
|
@@ -308,14 +303,14 @@ module TreezorClient
|
|
308
303
|
# @return [Array<(InlineResponse20016, Fixnum, Hash)>] InlineResponse20016 data, response status code and response headers
|
309
304
|
def put_country_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: CountryRestrictionGroupsApi.put_country_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 CountryRestrictionGroupsApi.put_country_restriction_groups"
|
316
311
|
end
|
317
312
|
# resource path
|
318
|
-
local_var_path =
|
313
|
+
local_var_path = '/countryRestrictionGroups/{id}'.sub('{' + 'id' + '}', id.to_s)
|
319
314
|
|
320
315
|
# query parameters
|
321
316
|
query_params = {}
|