@emilgroup/payment-sdk-node 1.13.1-beta.2 → 1.13.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +1 -1
  4. package/api/bank-transaction-api.ts +2 -203
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +1 -1
  7. package/api/payment-reminders-api.ts +1 -1
  8. package/api/payment-setup-api.ts +1 -1
  9. package/api/payments-api.ts +1 -1
  10. package/api/tenant-bank-account-api.ts +1 -1
  11. package/api/webhooks-api.ts +1 -1
  12. package/api.ts +1 -3
  13. package/base.ts +1 -1
  14. package/common.ts +2 -2
  15. package/configuration.ts +1 -1
  16. package/dist/api/bank-accounts-api.d.ts +1 -1
  17. package/dist/api/bank-accounts-api.js +1 -1
  18. package/dist/api/bank-transaction-api.d.ts +1 -111
  19. package/dist/api/bank-transaction-api.js +1 -185
  20. package/dist/api/default-api.d.ts +1 -1
  21. package/dist/api/default-api.js +1 -1
  22. package/dist/api/payment-methods-api.d.ts +1 -1
  23. package/dist/api/payment-methods-api.js +1 -1
  24. package/dist/api/payment-reminders-api.d.ts +1 -1
  25. package/dist/api/payment-reminders-api.js +1 -1
  26. package/dist/api/payment-setup-api.d.ts +1 -1
  27. package/dist/api/payment-setup-api.js +1 -1
  28. package/dist/api/payments-api.d.ts +1 -1
  29. package/dist/api/payments-api.js +1 -1
  30. package/dist/api/tenant-bank-account-api.d.ts +1 -1
  31. package/dist/api/tenant-bank-account-api.js +1 -1
  32. package/dist/api/webhooks-api.d.ts +1 -1
  33. package/dist/api/webhooks-api.js +1 -1
  34. package/dist/api.d.ts +1 -2
  35. package/dist/api.js +1 -2
  36. package/dist/base.d.ts +1 -1
  37. package/dist/base.js +1 -1
  38. package/dist/common.d.ts +2 -2
  39. package/dist/common.js +1 -1
  40. package/dist/configuration.d.ts +1 -1
  41. package/dist/configuration.js +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/models/bank-transaction-response-class.d.ts +7 -1
  45. package/dist/models/bank-transaction-response-class.js +1 -1
  46. package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
  47. package/dist/models/create-payment-reminder-request-dto.js +1 -1
  48. package/dist/models/create-payment-request-dto.d.ts +1 -1
  49. package/dist/models/create-payment-request-dto.js +1 -1
  50. package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
  51. package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
  52. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  53. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  54. package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
  55. package/dist/models/get-bank-transactions-response-class.js +1 -1
  56. package/dist/models/get-request-dto.d.ts +1 -1
  57. package/dist/models/get-request-dto.js +1 -1
  58. package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
  59. package/dist/models/get-tenant-bank-account-response-class.js +1 -1
  60. package/dist/models/index.d.ts +0 -5
  61. package/dist/models/index.js +0 -5
  62. package/dist/models/inline-response200.d.ts +1 -1
  63. package/dist/models/inline-response200.js +1 -1
  64. package/dist/models/inline-response503.d.ts +1 -1
  65. package/dist/models/inline-response503.js +1 -1
  66. package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
  67. package/dist/models/list-bank-transactions-response-class.js +1 -1
  68. package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
  69. package/dist/models/tenant-bank-account-response-class.js +1 -1
  70. package/dist/models/transaction-class.d.ts +1 -1
  71. package/dist/models/transaction-class.js +1 -1
  72. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
  73. package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
  74. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -1
  75. package/dist/models/validate-pspconfig-request-dto.js +1 -1
  76. package/index.ts +1 -1
  77. package/models/bank-transaction-response-class.ts +7 -1
  78. package/models/create-payment-reminder-request-dto.ts +1 -1
  79. package/models/create-payment-request-dto.ts +1 -1
  80. package/models/create-tenant-bank-account-request-dto.ts +1 -1
  81. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  82. package/models/get-bank-transactions-response-class.ts +1 -1
  83. package/models/get-request-dto.ts +1 -1
  84. package/models/get-tenant-bank-account-response-class.ts +1 -1
  85. package/models/index.ts +0 -5
  86. package/models/inline-response200.ts +1 -1
  87. package/models/inline-response503.ts +1 -1
  88. package/models/list-bank-transactions-response-class.ts +1 -1
  89. package/models/tenant-bank-account-response-class.ts +1 -1
  90. package/models/transaction-class.ts +1 -1
  91. package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
  92. package/models/validate-pspconfig-request-dto.ts +1 -1
  93. package/package.json +1 -1
  94. package/api/refunds-api.ts +0 -480
  95. package/dist/api/refunds-api.d.ts +0 -269
  96. package/dist/api/refunds-api.js +0 -453
  97. package/dist/models/create-refund-request-dto.d.ts +0 -24
  98. package/dist/models/create-refund-request-dto.js +0 -15
  99. package/dist/models/create-refund-response-class.d.ts +0 -25
  100. package/dist/models/create-refund-response-class.js +0 -15
  101. package/dist/models/get-refund-response-class.d.ts +0 -25
  102. package/dist/models/get-refund-response-class.js +0 -15
  103. package/dist/models/list-refunds-response-class.d.ts +0 -31
  104. package/dist/models/list-refunds-response-class.js +0 -15
  105. package/dist/models/refund-class.d.ts +0 -104
  106. package/dist/models/refund-class.js +0 -28
  107. package/models/create-refund-request-dto.ts +0 -30
  108. package/models/create-refund-response-class.ts +0 -31
  109. package/models/get-refund-response-class.ts +0 -31
  110. package/models/list-refunds-response-class.ts +0 -37
  111. package/models/refund-class.ts +0 -114
@@ -1,453 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: z
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.RefundsApi = exports.RefundsApiFactory = exports.RefundsApiFp = exports.RefundsApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- // URLSearchParams not necessarily used
89
- // @ts-ignore
90
- var url_1 = require("url");
91
- var FormData = require('form-data');
92
- /**
93
- * RefundsApi - axios parameter creator
94
- * @export
95
- */
96
- var RefundsApiAxiosParamCreator = function (configuration) {
97
- var _this = this;
98
- return {
99
- /**
100
- *
101
- * @param {CreateRefundRequestDto} createRefundRequestDto
102
- * @param {string} [authorization] Bearer Token
103
- * @param {*} [options] Override http request option.
104
- * @throws {RequiredError}
105
- */
106
- createRefund: function (createRefundRequestDto, authorization, options) {
107
- if (options === void 0) { options = {}; }
108
- return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
- return __generator(this, function (_a) {
111
- switch (_a.label) {
112
- case 0:
113
- // verify required parameter 'createRefundRequestDto' is not null or undefined
114
- (0, common_1.assertParamExists)('createRefund', 'createRefundRequestDto', createRefundRequestDto);
115
- localVarPath = "/paymentservice/v1/refunds";
116
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
- if (configuration) {
118
- baseOptions = configuration.baseOptions;
119
- baseAccessToken = configuration.accessToken;
120
- }
121
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
122
- localVarHeaderParameter = {};
123
- localVarQueryParameter = {};
124
- // authentication bearer required
125
- // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
- case 1:
128
- // authentication bearer required
129
- // http bearer authentication required
130
- _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
- }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRefundRequestDto, localVarRequestOptions, configuration);
139
- return [2 /*return*/, {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }];
143
- }
144
- });
145
- });
146
- },
147
- /**
148
- *
149
- * @param {string} code
150
- * @param {string} code2 Unique identifier for the object.
151
- * @param {string} expand Fields to expand response by
152
- * @param {string} [authorization] Bearer Token
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- getRefund: function (code, code2, expand, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0:
163
- // verify required parameter 'code' is not null or undefined
164
- (0, common_1.assertParamExists)('getRefund', 'code', code);
165
- // verify required parameter 'code2' is not null or undefined
166
- (0, common_1.assertParamExists)('getRefund', 'code2', code2);
167
- // verify required parameter 'expand' is not null or undefined
168
- (0, common_1.assertParamExists)('getRefund', 'expand', expand);
169
- localVarPath = "/paymentservice/v1/refunds/{code}"
170
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
171
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
172
- if (configuration) {
173
- baseOptions = configuration.baseOptions;
174
- baseAccessToken = configuration.accessToken;
175
- }
176
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
177
- localVarHeaderParameter = {};
178
- localVarQueryParameter = {};
179
- // authentication bearer required
180
- // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
- case 1:
183
- // authentication bearer required
184
- // http bearer authentication required
185
- _a.sent();
186
- if (code2 !== undefined) {
187
- localVarQueryParameter['code'] = code2;
188
- }
189
- if (expand !== undefined) {
190
- localVarQueryParameter['expand'] = expand;
191
- }
192
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
193
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
- }
195
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
198
- return [2 /*return*/, {
199
- url: (0, common_1.toPathString)(localVarUrlObj),
200
- options: localVarRequestOptions,
201
- }];
202
- }
203
- });
204
- });
205
- },
206
- /**
207
- *
208
- * @param {string} [authorization] Bearer Token
209
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
210
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
211
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
212
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
213
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
214
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
215
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
216
- * @param {*} [options] Override http request option.
217
- * @throws {RequiredError}
218
- */
219
- listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
220
- if (options === void 0) { options = {}; }
221
- return __awaiter(_this, void 0, void 0, function () {
222
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
223
- return __generator(this, function (_a) {
224
- switch (_a.label) {
225
- case 0:
226
- localVarPath = "/paymentservice/v1/refunds";
227
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
228
- if (configuration) {
229
- baseOptions = configuration.baseOptions;
230
- baseAccessToken = configuration.accessToken;
231
- }
232
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
233
- localVarHeaderParameter = {};
234
- localVarQueryParameter = {};
235
- // authentication bearer required
236
- // http bearer authentication required
237
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
238
- case 1:
239
- // authentication bearer required
240
- // http bearer authentication required
241
- _a.sent();
242
- if (pageSize !== undefined) {
243
- localVarQueryParameter['pageSize'] = pageSize;
244
- }
245
- if (pageToken !== undefined) {
246
- localVarQueryParameter['pageToken'] = pageToken;
247
- }
248
- if (filter !== undefined) {
249
- localVarQueryParameter['filter'] = filter;
250
- }
251
- if (search !== undefined) {
252
- localVarQueryParameter['search'] = search;
253
- }
254
- if (order !== undefined) {
255
- localVarQueryParameter['order'] = order;
256
- }
257
- if (expand !== undefined) {
258
- localVarQueryParameter['expand'] = expand;
259
- }
260
- if (filters !== undefined) {
261
- localVarQueryParameter['filters'] = filters;
262
- }
263
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
264
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
265
- }
266
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
267
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
269
- return [2 /*return*/, {
270
- url: (0, common_1.toPathString)(localVarUrlObj),
271
- options: localVarRequestOptions,
272
- }];
273
- }
274
- });
275
- });
276
- },
277
- };
278
- };
279
- exports.RefundsApiAxiosParamCreator = RefundsApiAxiosParamCreator;
280
- /**
281
- * RefundsApi - functional programming interface
282
- * @export
283
- */
284
- var RefundsApiFp = function (configuration) {
285
- var localVarAxiosParamCreator = (0, exports.RefundsApiAxiosParamCreator)(configuration);
286
- return {
287
- /**
288
- *
289
- * @param {CreateRefundRequestDto} createRefundRequestDto
290
- * @param {string} [authorization] Bearer Token
291
- * @param {*} [options] Override http request option.
292
- * @throws {RequiredError}
293
- */
294
- createRefund: function (createRefundRequestDto, authorization, options) {
295
- return __awaiter(this, void 0, void 0, function () {
296
- var localVarAxiosArgs;
297
- return __generator(this, function (_a) {
298
- switch (_a.label) {
299
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRefund(createRefundRequestDto, authorization, options)];
300
- case 1:
301
- localVarAxiosArgs = _a.sent();
302
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
303
- }
304
- });
305
- });
306
- },
307
- /**
308
- *
309
- * @param {string} code
310
- * @param {string} code2 Unique identifier for the object.
311
- * @param {string} expand Fields to expand response by
312
- * @param {string} [authorization] Bearer Token
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- getRefund: function (code, code2, expand, authorization, options) {
317
- return __awaiter(this, void 0, void 0, function () {
318
- var localVarAxiosArgs;
319
- return __generator(this, function (_a) {
320
- switch (_a.label) {
321
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options)];
322
- case 1:
323
- localVarAxiosArgs = _a.sent();
324
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
325
- }
326
- });
327
- });
328
- },
329
- /**
330
- *
331
- * @param {string} [authorization] Bearer Token
332
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
333
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
334
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
335
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
336
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
337
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
338
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
339
- * @param {*} [options] Override http request option.
340
- * @throws {RequiredError}
341
- */
342
- listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
343
- return __awaiter(this, void 0, void 0, function () {
344
- var localVarAxiosArgs;
345
- return __generator(this, function (_a) {
346
- switch (_a.label) {
347
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
348
- case 1:
349
- localVarAxiosArgs = _a.sent();
350
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
351
- }
352
- });
353
- });
354
- },
355
- };
356
- };
357
- exports.RefundsApiFp = RefundsApiFp;
358
- /**
359
- * RefundsApi - factory interface
360
- * @export
361
- */
362
- var RefundsApiFactory = function (configuration, basePath, axios) {
363
- var localVarFp = (0, exports.RefundsApiFp)(configuration);
364
- return {
365
- /**
366
- *
367
- * @param {CreateRefundRequestDto} createRefundRequestDto
368
- * @param {string} [authorization] Bearer Token
369
- * @param {*} [options] Override http request option.
370
- * @throws {RequiredError}
371
- */
372
- createRefund: function (createRefundRequestDto, authorization, options) {
373
- return localVarFp.createRefund(createRefundRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
374
- },
375
- /**
376
- *
377
- * @param {string} code
378
- * @param {string} code2 Unique identifier for the object.
379
- * @param {string} expand Fields to expand response by
380
- * @param {string} [authorization] Bearer Token
381
- * @param {*} [options] Override http request option.
382
- * @throws {RequiredError}
383
- */
384
- getRefund: function (code, code2, expand, authorization, options) {
385
- return localVarFp.getRefund(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
386
- },
387
- /**
388
- *
389
- * @param {string} [authorization] Bearer Token
390
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
391
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
392
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
393
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
394
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
395
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
396
- * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
397
- * @param {*} [options] Override http request option.
398
- * @throws {RequiredError}
399
- */
400
- listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
401
- return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
402
- },
403
- };
404
- };
405
- exports.RefundsApiFactory = RefundsApiFactory;
406
- /**
407
- * RefundsApi - object-oriented interface
408
- * @export
409
- * @class RefundsApi
410
- * @extends {BaseAPI}
411
- */
412
- var RefundsApi = /** @class */ (function (_super) {
413
- __extends(RefundsApi, _super);
414
- function RefundsApi() {
415
- return _super !== null && _super.apply(this, arguments) || this;
416
- }
417
- /**
418
- *
419
- * @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- * @memberof RefundsApi
423
- */
424
- RefundsApi.prototype.createRefund = function (requestParameters, options) {
425
- var _this = this;
426
- return (0, exports.RefundsApiFp)(this.configuration).createRefund(requestParameters.createRefundRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
427
- };
428
- /**
429
- *
430
- * @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
431
- * @param {*} [options] Override http request option.
432
- * @throws {RequiredError}
433
- * @memberof RefundsApi
434
- */
435
- RefundsApi.prototype.getRefund = function (requestParameters, options) {
436
- var _this = this;
437
- return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
438
- };
439
- /**
440
- *
441
- * @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- * @memberof RefundsApi
445
- */
446
- RefundsApi.prototype.listRefunds = function (requestParameters, options) {
447
- var _this = this;
448
- if (requestParameters === void 0) { requestParameters = {}; }
449
- return (0, exports.RefundsApiFp)(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
450
- };
451
- return RefundsApi;
452
- }(base_1.BaseAPI));
453
- exports.RefundsApi = RefundsApi;
@@ -1,24 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: z
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CreateRefundRequestDto
16
- */
17
- export interface CreateRefundRequestDto {
18
- /**
19
- * The code of the invoice to refund, must be of type Withdraw or Final or Correction
20
- * @type {string}
21
- * @memberof CreateRefundRequestDto
22
- */
23
- 'invoiceCode': string;
24
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: z
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: z
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { RefundClass } from './refund-class';
13
- /**
14
- *
15
- * @export
16
- * @interface CreateRefundResponseClass
17
- */
18
- export interface CreateRefundResponseClass {
19
- /**
20
- * Refund
21
- * @type {RefundClass}
22
- * @memberof CreateRefundResponseClass
23
- */
24
- 'refund': RefundClass;
25
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: z
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: z
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { RefundClass } from './refund-class';
13
- /**
14
- *
15
- * @export
16
- * @interface GetRefundResponseClass
17
- */
18
- export interface GetRefundResponseClass {
19
- /**
20
- * Refund
21
- * @type {RefundClass}
22
- * @memberof GetRefundResponseClass
23
- */
24
- 'refund': RefundClass;
25
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: z
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- /**
2
- * Emil Payment Service
3
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: z
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { RefundClass } from './refund-class';
13
- /**
14
- *
15
- * @export
16
- * @interface ListRefundsResponseClass
17
- */
18
- export interface ListRefundsResponseClass {
19
- /**
20
- * The list of refundss.
21
- * @type {Array<RefundClass>}
22
- * @memberof ListRefundsResponseClass
23
- */
24
- 'items': Array<RefundClass>;
25
- /**
26
- * Next page token
27
- * @type {string}
28
- * @memberof ListRefundsResponseClass
29
- */
30
- 'nextPageToken': string;
31
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Emil Payment Service
6
- * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: z
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });