@emilgroup/payment-sdk-node 1.0.1 → 1.3.0

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 (129) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +3 -3
  3. package/api/bank-accounts-api.ts +1 -1
  4. package/api/payment-methods-api.ts +1 -1
  5. package/api/payment-reminders-api.ts +560 -0
  6. package/api/payment-service-providers-api.ts +1 -1
  7. package/api/payment-setup-api.ts +1 -1
  8. package/api/payments-api.ts +1 -1
  9. package/api/webhooks-api.ts +1 -1
  10. package/api.ts +3 -6
  11. package/base.ts +27 -36
  12. package/common.ts +62 -1
  13. package/configuration.ts +1 -1
  14. package/dist/api/bank-accounts-api.d.ts +1 -1
  15. package/dist/api/bank-accounts-api.js +2 -2
  16. package/dist/api/payment-methods-api.d.ts +1 -1
  17. package/dist/api/payment-methods-api.js +2 -2
  18. package/dist/api/payment-reminders-api.d.ts +317 -0
  19. package/dist/api/payment-reminders-api.js +542 -0
  20. package/dist/api/payment-service-providers-api.d.ts +1 -1
  21. package/dist/api/payment-service-providers-api.js +2 -2
  22. package/dist/api/payment-setup-api.d.ts +1 -1
  23. package/dist/api/payment-setup-api.js +2 -2
  24. package/dist/api/payments-api.d.ts +1 -1
  25. package/dist/api/payments-api.js +2 -2
  26. package/dist/api/webhooks-api.d.ts +1 -1
  27. package/dist/api/webhooks-api.js +2 -2
  28. package/dist/api.d.ts +2 -5
  29. package/dist/api.js +2 -7
  30. package/dist/base.d.ts +5 -5
  31. package/dist/base.js +24 -25
  32. package/dist/common.d.ts +27 -1
  33. package/dist/common.js +36 -3
  34. package/dist/configuration.d.ts +1 -1
  35. package/dist/configuration.js +1 -1
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +3 -2
  38. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +1 -1
  39. package/dist/models/complete-braintree-payment-setup-request-dto.js +1 -1
  40. package/dist/models/complete-payment-setup-request-dto.d.ts +1 -1
  41. package/dist/models/complete-payment-setup-request-dto.js +1 -1
  42. package/dist/models/complete-payment-setup-response-class.d.ts +1 -1
  43. package/dist/models/complete-payment-setup-response-class.js +1 -1
  44. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -3
  45. package/dist/models/complete-stripe-payment-setup-request-dto.js +1 -1
  46. package/dist/models/create-bank-account-request-dto.d.ts +1 -1
  47. package/dist/models/create-bank-account-request-dto.js +1 -1
  48. package/dist/models/create-payment-method-response-class.d.ts +1 -1
  49. package/dist/models/create-payment-method-response-class.js +1 -1
  50. package/dist/models/create-payment-reminder-request-dto.d.ts +63 -0
  51. package/dist/models/create-payment-reminder-request-dto.js +24 -0
  52. package/dist/models/create-payment-request-dto.d.ts +7 -1
  53. package/dist/models/create-payment-request-dto.js +1 -1
  54. package/dist/models/create-payment-response-class.d.ts +1 -1
  55. package/dist/models/create-payment-response-class.js +1 -1
  56. package/dist/models/create-psp-payment-method-request-dto.d.ts +2 -2
  57. package/dist/models/create-psp-payment-method-request-dto.js +1 -1
  58. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +30 -0
  59. package/dist/models/deactivate-payment-reminder-request-dto.js +21 -0
  60. package/dist/models/get-payment-method-response-class.d.ts +1 -1
  61. package/dist/models/get-payment-method-response-class.js +1 -1
  62. package/dist/models/get-payment-response-class.d.ts +1 -1
  63. package/dist/models/get-payment-response-class.js +1 -1
  64. package/dist/models/get-request-dto.d.ts +1 -1
  65. package/dist/models/get-request-dto.js +1 -1
  66. package/dist/models/index.d.ts +4 -0
  67. package/dist/models/index.js +4 -0
  68. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +9 -3
  69. package/dist/models/initiate-braintree-payment-setup-request-dto.js +1 -1
  70. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +1 -1
  71. package/dist/models/initiate-braintree-payment-setup-response-class.js +1 -1
  72. package/dist/models/initiate-payment-setup-request-dto.d.ts +1 -1
  73. package/dist/models/initiate-payment-setup-request-dto.js +1 -1
  74. package/dist/models/initiate-payment-setup-response-class.d.ts +1 -1
  75. package/dist/models/initiate-payment-setup-response-class.js +1 -1
  76. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +9 -3
  77. package/dist/models/initiate-stripe-payment-setup-request-dto.js +1 -1
  78. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +1 -1
  79. package/dist/models/initiate-stripe-payment-setup-response-class.js +1 -1
  80. package/dist/models/list-payment-methods-response-class.d.ts +1 -1
  81. package/dist/models/list-payment-methods-response-class.js +1 -1
  82. package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
  83. package/dist/models/list-payment-reminders-response-class.js +15 -0
  84. package/dist/models/list-payments-response-class.d.ts +1 -1
  85. package/dist/models/list-payments-response-class.js +1 -1
  86. package/dist/models/payment-class.d.ts +1 -1
  87. package/dist/models/payment-class.js +1 -1
  88. package/dist/models/payment-method-class.d.ts +1 -1
  89. package/dist/models/payment-method-class.js +1 -1
  90. package/dist/models/payment-reminder-class.d.ts +108 -0
  91. package/dist/models/payment-reminder-class.js +32 -0
  92. package/dist/models/sepa-direct-dto.d.ts +1 -1
  93. package/dist/models/sepa-direct-dto.js +1 -1
  94. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -2
  95. package/dist/models/validate-pspconfig-request-dto.js +1 -1
  96. package/dist/models/validate-pspconfig-response-class.d.ts +1 -1
  97. package/dist/models/validate-pspconfig-response-class.js +1 -1
  98. package/index.ts +2 -2
  99. package/models/complete-braintree-payment-setup-request-dto.ts +1 -1
  100. package/models/complete-payment-setup-request-dto.ts +1 -1
  101. package/models/complete-payment-setup-response-class.ts +1 -1
  102. package/models/complete-stripe-payment-setup-request-dto.ts +9 -3
  103. package/models/create-bank-account-request-dto.ts +1 -1
  104. package/models/create-payment-method-response-class.ts +1 -1
  105. package/models/create-payment-reminder-request-dto.ts +72 -0
  106. package/models/create-payment-request-dto.ts +7 -1
  107. package/models/create-payment-response-class.ts +1 -1
  108. package/models/create-psp-payment-method-request-dto.ts +1 -1
  109. package/models/deactivate-payment-reminder-request-dto.ts +39 -0
  110. package/models/get-payment-method-response-class.ts +1 -1
  111. package/models/get-payment-response-class.ts +1 -1
  112. package/models/get-request-dto.ts +1 -1
  113. package/models/index.ts +4 -0
  114. package/models/initiate-braintree-payment-setup-request-dto.ts +9 -3
  115. package/models/initiate-braintree-payment-setup-response-class.ts +1 -1
  116. package/models/initiate-payment-setup-request-dto.ts +1 -1
  117. package/models/initiate-payment-setup-response-class.ts +1 -1
  118. package/models/initiate-stripe-payment-setup-request-dto.ts +9 -3
  119. package/models/initiate-stripe-payment-setup-response-class.ts +1 -1
  120. package/models/list-payment-methods-response-class.ts +1 -1
  121. package/models/list-payment-reminders-response-class.ts +37 -0
  122. package/models/list-payments-response-class.ts +1 -1
  123. package/models/payment-class.ts +1 -1
  124. package/models/payment-method-class.ts +1 -1
  125. package/models/payment-reminder-class.ts +118 -0
  126. package/models/sepa-direct-dto.ts +1 -1
  127. package/models/validate-pspconfig-request-dto.ts +1 -1
  128. package/models/validate-pspconfig-response-class.ts +1 -1
  129. package/package.json +2 -3
@@ -0,0 +1,542 @@
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: kontakt@emil.de
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.PaymentRemindersApi = exports.PaymentRemindersApiFactory = exports.PaymentRemindersApiFp = exports.PaymentRemindersApiAxiosParamCreator = 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
+ * PaymentRemindersApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create a payment reminder in the database.
101
+ * @summary Create the payment-reminder
102
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createPaymentReminder: function (createPaymentReminderRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createPaymentReminderRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createPaymentReminder', 'createPaymentReminderRequestDto', createPaymentReminderRequestDto);
116
+ localVarPath = "/paymentservice/v1/payment-reminders";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPaymentReminderRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
150
+ * @summary Update the payment-reminder
151
+ * @param {string} code Unique identifier for the object.
152
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ deactivatePaymentReminder: function (code, deactivatePaymentReminderRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'code' is not null or undefined
165
+ (0, common_1.assertParamExists)('deactivatePaymentReminder', 'code', code);
166
+ // verify required parameter 'deactivatePaymentReminderRequestDto' is not null or undefined
167
+ (0, common_1.assertParamExists)('deactivatePaymentReminder', 'deactivatePaymentReminderRequestDto', deactivatePaymentReminderRequestDto);
168
+ localVarPath = "/paymentservice/v1/payment-reminders/{code}/deactivate"
169
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
170
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deactivatePaymentReminderRequestDto, localVarRequestOptions, configuration);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
203
+ * @summary Retrieve the payment reminder
204
+ * @param {string} code Unique identifier for the object.
205
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getPolicy: function (code, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
213
+ return __generator(this, function (_a) {
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'code' is not null or undefined
217
+ (0, common_1.assertParamExists)('getPolicy', 'code', code);
218
+ localVarPath = "/paymentservice/v1/payment-reminders/{code}"
219
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
220
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ baseAccessToken = configuration.accessToken;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ case 1:
232
+ // authentication bearer required
233
+ // http bearer authentication required
234
+ _a.sent();
235
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ }
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ return [2 /*return*/, {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ }];
245
+ }
246
+ });
247
+ });
248
+ },
249
+ /**
250
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
251
+ * @summary List payment reminders
252
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
254
+ * @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.
255
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
256
+ * @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.
257
+ * @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.
258
+ * @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.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
263
+ if (options === void 0) { options = {}; }
264
+ return __awaiter(_this, void 0, void 0, function () {
265
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0:
269
+ localVarPath = "/paymentservice/v1/payment-reminders";
270
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
276
+ localVarHeaderParameter = {};
277
+ localVarQueryParameter = {};
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
281
+ case 1:
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ _a.sent();
285
+ if (pageSize !== undefined) {
286
+ localVarQueryParameter['pageSize'] = pageSize;
287
+ }
288
+ if (pageToken !== undefined) {
289
+ localVarQueryParameter['pageToken'] = pageToken;
290
+ }
291
+ if (filter !== undefined) {
292
+ localVarQueryParameter['filter'] = filter;
293
+ }
294
+ if (search !== undefined) {
295
+ localVarQueryParameter['search'] = search;
296
+ }
297
+ if (order !== undefined) {
298
+ localVarQueryParameter['order'] = order;
299
+ }
300
+ if (expand !== undefined) {
301
+ localVarQueryParameter['expand'] = expand;
302
+ }
303
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
304
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
305
+ }
306
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
307
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
309
+ return [2 /*return*/, {
310
+ url: (0, common_1.toPathString)(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ }];
313
+ }
314
+ });
315
+ });
316
+ },
317
+ };
318
+ };
319
+ exports.PaymentRemindersApiAxiosParamCreator = PaymentRemindersApiAxiosParamCreator;
320
+ /**
321
+ * PaymentRemindersApi - functional programming interface
322
+ * @export
323
+ */
324
+ var PaymentRemindersApiFp = function (configuration) {
325
+ var localVarAxiosParamCreator = (0, exports.PaymentRemindersApiAxiosParamCreator)(configuration);
326
+ return {
327
+ /**
328
+ * This will create a payment reminder in the database.
329
+ * @summary Create the payment-reminder
330
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
331
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ createPaymentReminder: function (createPaymentReminderRequestDto, authorization, options) {
336
+ return __awaiter(this, void 0, void 0, function () {
337
+ var localVarAxiosArgs;
338
+ return __generator(this, function (_a) {
339
+ switch (_a.label) {
340
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options)];
341
+ case 1:
342
+ localVarAxiosArgs = _a.sent();
343
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ /**
349
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
350
+ * @summary Update the payment-reminder
351
+ * @param {string} code Unique identifier for the object.
352
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
353
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ deactivatePaymentReminder: function (code, deactivatePaymentReminderRequestDto, authorization, options) {
358
+ return __awaiter(this, void 0, void 0, function () {
359
+ var localVarAxiosArgs;
360
+ return __generator(this, function (_a) {
361
+ switch (_a.label) {
362
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options)];
363
+ case 1:
364
+ localVarAxiosArgs = _a.sent();
365
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
366
+ }
367
+ });
368
+ });
369
+ },
370
+ /**
371
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
372
+ * @summary Retrieve the payment reminder
373
+ * @param {string} code Unique identifier for the object.
374
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ getPolicy: function (code, authorization, options) {
379
+ return __awaiter(this, void 0, void 0, function () {
380
+ var localVarAxiosArgs;
381
+ return __generator(this, function (_a) {
382
+ switch (_a.label) {
383
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPolicy(code, authorization, options)];
384
+ case 1:
385
+ localVarAxiosArgs = _a.sent();
386
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
387
+ }
388
+ });
389
+ });
390
+ },
391
+ /**
392
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
393
+ * @summary List payment reminders
394
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
395
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
396
+ * @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.
397
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
+ * @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.
399
+ * @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.
400
+ * @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.
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
405
+ return __awaiter(this, void 0, void 0, function () {
406
+ var localVarAxiosArgs;
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options)];
410
+ case 1:
411
+ localVarAxiosArgs = _a.sent();
412
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
413
+ }
414
+ });
415
+ });
416
+ },
417
+ };
418
+ };
419
+ exports.PaymentRemindersApiFp = PaymentRemindersApiFp;
420
+ /**
421
+ * PaymentRemindersApi - factory interface
422
+ * @export
423
+ */
424
+ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
425
+ var localVarFp = (0, exports.PaymentRemindersApiFp)(configuration);
426
+ return {
427
+ /**
428
+ * This will create a payment reminder in the database.
429
+ * @summary Create the payment-reminder
430
+ * @param {CreatePaymentReminderRequestDto} createPaymentReminderRequestDto
431
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ createPaymentReminder: function (createPaymentReminderRequestDto, authorization, options) {
436
+ return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
437
+ },
438
+ /**
439
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
440
+ * @summary Update the payment-reminder
441
+ * @param {string} code Unique identifier for the object.
442
+ * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
443
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ deactivatePaymentReminder: function (code, deactivatePaymentReminderRequestDto, authorization, options) {
448
+ return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
449
+ },
450
+ /**
451
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
452
+ * @summary Retrieve the payment reminder
453
+ * @param {string} code Unique identifier for the object.
454
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ getPolicy: function (code, authorization, options) {
459
+ return localVarFp.getPolicy(code, authorization, options).then(function (request) { return request(axios, basePath); });
460
+ },
461
+ /**
462
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
463
+ * @summary List payment reminders
464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
466
+ * @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.
467
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
468
+ * @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.
469
+ * @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.
470
+ * @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.
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ listPaymentReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
475
+ return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
476
+ },
477
+ };
478
+ };
479
+ exports.PaymentRemindersApiFactory = PaymentRemindersApiFactory;
480
+ /**
481
+ * PaymentRemindersApi - object-oriented interface
482
+ * @export
483
+ * @class PaymentRemindersApi
484
+ * @extends {BaseAPI}
485
+ */
486
+ var PaymentRemindersApi = /** @class */ (function (_super) {
487
+ __extends(PaymentRemindersApi, _super);
488
+ function PaymentRemindersApi() {
489
+ return _super !== null && _super.apply(this, arguments) || this;
490
+ }
491
+ /**
492
+ * This will create a payment reminder in the database.
493
+ * @summary Create the payment-reminder
494
+ * @param {PaymentRemindersApiCreatePaymentReminderRequest} requestParameters Request parameters.
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ * @memberof PaymentRemindersApi
498
+ */
499
+ PaymentRemindersApi.prototype.createPaymentReminder = function (requestParameters, options) {
500
+ var _this = this;
501
+ return (0, exports.PaymentRemindersApiFp)(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
502
+ };
503
+ /**
504
+ * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
505
+ * @summary Update the payment-reminder
506
+ * @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ * @memberof PaymentRemindersApi
510
+ */
511
+ PaymentRemindersApi.prototype.deactivatePaymentReminder = function (requestParameters, options) {
512
+ var _this = this;
513
+ return (0, exports.PaymentRemindersApiFp)(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
514
+ };
515
+ /**
516
+ * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
517
+ * @summary Retrieve the payment reminder
518
+ * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ * @memberof PaymentRemindersApi
522
+ */
523
+ PaymentRemindersApi.prototype.getPolicy = function (requestParameters, options) {
524
+ var _this = this;
525
+ return (0, exports.PaymentRemindersApiFp)(this.configuration).getPolicy(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
526
+ };
527
+ /**
528
+ * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
529
+ * @summary List payment reminders
530
+ * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ * @memberof PaymentRemindersApi
534
+ */
535
+ PaymentRemindersApi.prototype.listPaymentReminders = function (requestParameters, options) {
536
+ var _this = this;
537
+ if (requestParameters === void 0) { requestParameters = {}; }
538
+ return (0, exports.PaymentRemindersApiFp)(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
+ };
540
+ return PaymentRemindersApi;
541
+ }(base_1.BaseAPI));
542
+ exports.PaymentRemindersApi = PaymentRemindersApi;
@@ -3,7 +3,7 @@
3
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -6,7 +6,7 @@
6
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
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
56
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
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
58
  if (y = 0, t) op = [op[0] & 2, t.value];
59
59
  switch (op[0]) {
@@ -3,7 +3,7 @@
3
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -6,7 +6,7 @@
6
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
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
56
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
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
58
  if (y = 0, t) op = [op[0] & 2, t.value];
59
59
  switch (op[0]) {
@@ -3,7 +3,7 @@
3
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
@@ -6,7 +6,7 @@
6
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
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -53,7 +53,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
56
- while (_) try {
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
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
58
  if (y = 0, t) op = [op[0] & 2, t.value];
59
59
  switch (op[0]) {
@@ -3,7 +3,7 @@
3
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
4
  *
5
5
  * The version of the OpenAPI document: 1.0
6
- *
6
+ * Contact: kontakt@emil.de
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech