@emilgroup/payment-sdk 1.4.1-beta.14 → 1.4.1-beta.16

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.
@@ -19,35 +19,26 @@ import { RequestArgs, BaseAPI } from '../base';
19
19
  export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
20
20
  /**
21
21
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
22
- * @summary Create the payment-method
22
+ * @summary Create the payment method
23
23
  * @param {object} body
24
24
  * @param {string} [authorization] Bearer Token
25
25
  * @param {*} [options] Override http request option.
26
26
  * @throws {RequiredError}
27
27
  */
28
28
  createPaymentMethod: (body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29
- /**
30
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
31
- * @summary Delete a payment method
32
- * @param {number} id Unique identifier for payment method
33
- * @param {string} [authorization] Bearer Token
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- deletePaymentMethod: (id: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
29
  /**
39
30
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
40
- * @summary Retrieve a payment method
41
- * @param {string} code Unique identifier for the object.
31
+ * @summary Retrieve the payment method
32
+ * @param {string} code
33
+ * @param {string} code2 Unique identifier for the object.
42
34
  * @param {string} expand Fields to expand response by
43
- * @param {string} expand2 Fields to expand response by
44
35
  * @param {string} [authorization] Bearer Token
45
36
  * @param {*} [options] Override http request option.
46
37
  * @throws {RequiredError}
47
38
  */
48
- getPaymentMethod: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
+ getPaymentMethod: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
49
40
  /**
50
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
41
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
51
42
  * @summary List payment methods
52
43
  * @param {string} [authorization] Bearer Token
53
44
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -69,35 +60,26 @@ export declare const PaymentMethodsApiAxiosParamCreator: (configuration?: Config
69
60
  export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
70
61
  /**
71
62
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
72
- * @summary Create the payment-method
63
+ * @summary Create the payment method
73
64
  * @param {object} body
74
65
  * @param {string} [authorization] Bearer Token
75
66
  * @param {*} [options] Override http request option.
76
67
  * @throws {RequiredError}
77
68
  */
78
69
  createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
79
- /**
80
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
81
- * @summary Delete a payment method
82
- * @param {number} id Unique identifier for payment method
83
- * @param {string} [authorization] Bearer Token
84
- * @param {*} [options] Override http request option.
85
- * @throws {RequiredError}
86
- */
87
- deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
88
70
  /**
89
71
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
90
- * @summary Retrieve a payment method
91
- * @param {string} code Unique identifier for the object.
72
+ * @summary Retrieve the payment method
73
+ * @param {string} code
74
+ * @param {string} code2 Unique identifier for the object.
92
75
  * @param {string} expand Fields to expand response by
93
- * @param {string} expand2 Fields to expand response by
94
76
  * @param {string} [authorization] Bearer Token
95
77
  * @param {*} [options] Override http request option.
96
78
  * @throws {RequiredError}
97
79
  */
98
- getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
80
+ getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
99
81
  /**
100
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
82
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
83
  * @summary List payment methods
102
84
  * @param {string} [authorization] Bearer Token
103
85
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -119,35 +101,26 @@ export declare const PaymentMethodsApiFp: (configuration?: Configuration) => {
119
101
  export declare const PaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
120
102
  /**
121
103
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
122
- * @summary Create the payment-method
104
+ * @summary Create the payment method
123
105
  * @param {object} body
124
106
  * @param {string} [authorization] Bearer Token
125
107
  * @param {*} [options] Override http request option.
126
108
  * @throws {RequiredError}
127
109
  */
128
110
  createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void>;
129
- /**
130
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
131
- * @summary Delete a payment method
132
- * @param {number} id Unique identifier for payment method
133
- * @param {string} [authorization] Bearer Token
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- */
137
- deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void>;
138
111
  /**
139
112
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
140
- * @summary Retrieve a payment method
141
- * @param {string} code Unique identifier for the object.
113
+ * @summary Retrieve the payment method
114
+ * @param {string} code
115
+ * @param {string} code2 Unique identifier for the object.
142
116
  * @param {string} expand Fields to expand response by
143
- * @param {string} expand2 Fields to expand response by
144
117
  * @param {string} [authorization] Bearer Token
145
118
  * @param {*} [options] Override http request option.
146
119
  * @throws {RequiredError}
147
120
  */
148
- getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
121
+ getPaymentMethod(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<void>;
149
122
  /**
150
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
123
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
151
124
  * @summary List payment methods
152
125
  * @param {string} [authorization] Bearer Token
153
126
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -181,25 +154,6 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
181
154
  */
182
155
  readonly authorization?: string;
183
156
  }
184
- /**
185
- * Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
186
- * @export
187
- * @interface PaymentMethodsApiDeletePaymentMethodRequest
188
- */
189
- export interface PaymentMethodsApiDeletePaymentMethodRequest {
190
- /**
191
- * Unique identifier for payment method
192
- * @type {number}
193
- * @memberof PaymentMethodsApiDeletePaymentMethod
194
- */
195
- readonly id: number;
196
- /**
197
- * Bearer Token
198
- * @type {string}
199
- * @memberof PaymentMethodsApiDeletePaymentMethod
200
- */
201
- readonly authorization?: string;
202
- }
203
157
  /**
204
158
  * Request parameters for getPaymentMethod operation in PaymentMethodsApi.
205
159
  * @export
@@ -207,23 +161,23 @@ export interface PaymentMethodsApiDeletePaymentMethodRequest {
207
161
  */
208
162
  export interface PaymentMethodsApiGetPaymentMethodRequest {
209
163
  /**
210
- * Unique identifier for the object.
164
+ *
211
165
  * @type {string}
212
166
  * @memberof PaymentMethodsApiGetPaymentMethod
213
167
  */
214
168
  readonly code: string;
215
169
  /**
216
- * Fields to expand response by
170
+ * Unique identifier for the object.
217
171
  * @type {string}
218
172
  * @memberof PaymentMethodsApiGetPaymentMethod
219
173
  */
220
- readonly expand: string;
174
+ readonly code2: string;
221
175
  /**
222
176
  * Fields to expand response by
223
177
  * @type {string}
224
178
  * @memberof PaymentMethodsApiGetPaymentMethod
225
179
  */
226
- readonly expand2: string;
180
+ readonly expand: string;
227
181
  /**
228
182
  * Bearer Token
229
183
  * @type {string}
@@ -295,25 +249,16 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
295
249
  export declare class PaymentMethodsApi extends BaseAPI {
296
250
  /**
297
251
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
298
- * @summary Create the payment-method
252
+ * @summary Create the payment method
299
253
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
300
254
  * @param {*} [options] Override http request option.
301
255
  * @throws {RequiredError}
302
256
  * @memberof PaymentMethodsApi
303
257
  */
304
258
  createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
305
- /**
306
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
307
- * @summary Delete a payment method
308
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
309
- * @param {*} [options] Override http request option.
310
- * @throws {RequiredError}
311
- * @memberof PaymentMethodsApi
312
- */
313
- deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
314
259
  /**
315
260
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
316
- * @summary Retrieve a payment method
261
+ * @summary Retrieve the payment method
317
262
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
318
263
  * @param {*} [options] Override http request option.
319
264
  * @throws {RequiredError}
@@ -321,7 +266,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
321
266
  */
322
267
  getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
323
268
  /**
324
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
269
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
325
270
  * @summary List payment methods
326
271
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
327
272
  * @param {*} [options] Override http request option.
@@ -94,7 +94,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
94
94
  return {
95
95
  /**
96
96
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
97
- * @summary Create the payment-method
97
+ * @summary Create the payment method
98
98
  * @param {object} body
99
99
  * @param {string} [authorization] Bearer Token
100
100
  * @param {*} [options] Override http request option.
@@ -141,67 +141,17 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
141
141
  });
142
142
  });
143
143
  },
144
- /**
145
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
146
- * @summary Delete a payment method
147
- * @param {number} id Unique identifier for payment method
148
- * @param {string} [authorization] Bearer Token
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- deletePaymentMethod: function (id, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
158
- case 0:
159
- // verify required parameter 'id' is not null or undefined
160
- (0, common_1.assertParamExists)('deletePaymentMethod', 'id', id);
161
- localVarPath = "/paymentservice/v1/payment-methods/{id}";
162
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions;
165
- baseAccessToken = configuration.accessToken;
166
- }
167
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
168
- localVarHeaderParameter = {};
169
- localVarQueryParameter = {};
170
- // authentication bearer required
171
- // http bearer authentication required
172
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
173
- case 1:
174
- // authentication bearer required
175
- // http bearer authentication required
176
- _a.sent();
177
- if (id !== undefined) {
178
- localVarQueryParameter['id'] = id;
179
- }
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
- }
183
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
- return [2 /*return*/, {
187
- url: (0, common_1.toPathString)(localVarUrlObj),
188
- options: localVarRequestOptions,
189
- }];
190
- }
191
- });
192
- });
193
- },
194
144
  /**
195
145
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
196
- * @summary Retrieve a payment method
197
- * @param {string} code Unique identifier for the object.
146
+ * @summary Retrieve the payment method
147
+ * @param {string} code
148
+ * @param {string} code2 Unique identifier for the object.
198
149
  * @param {string} expand Fields to expand response by
199
- * @param {string} expand2 Fields to expand response by
200
150
  * @param {string} [authorization] Bearer Token
201
151
  * @param {*} [options] Override http request option.
202
152
  * @throws {RequiredError}
203
153
  */
204
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
154
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
205
155
  if (options === void 0) { options = {}; }
206
156
  return __awaiter(_this, void 0, void 0, function () {
207
157
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -210,11 +160,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
210
160
  case 0:
211
161
  // verify required parameter 'code' is not null or undefined
212
162
  (0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
163
+ // verify required parameter 'code2' is not null or undefined
164
+ (0, common_1.assertParamExists)('getPaymentMethod', 'code2', code2);
213
165
  // verify required parameter 'expand' is not null or undefined
214
166
  (0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
215
- // verify required parameter 'expand2' is not null or undefined
216
- (0, common_1.assertParamExists)('getPaymentMethod', 'expand2', expand2);
217
- localVarPath = "/paymentservice/v1/payment-methods/{code}";
167
+ localVarPath = "/paymentservice/v1/payment-methods/{code}"
168
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
218
169
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
219
170
  if (configuration) {
220
171
  baseOptions = configuration.baseOptions;
@@ -230,15 +181,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
230
181
  // authentication bearer required
231
182
  // http bearer authentication required
232
183
  _a.sent();
233
- if (code !== undefined) {
234
- localVarQueryParameter['code'] = code;
184
+ if (code2 !== undefined) {
185
+ localVarQueryParameter['code'] = code2;
235
186
  }
236
187
  if (expand !== undefined) {
237
188
  localVarQueryParameter['expand'] = expand;
238
189
  }
239
- if (expand2 !== undefined) {
240
- localVarQueryParameter['expand'] = expand2;
241
- }
242
190
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
191
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
192
  }
@@ -254,7 +202,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
254
202
  });
255
203
  },
256
204
  /**
257
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
205
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
258
206
  * @summary List payment methods
259
207
  * @param {string} [authorization] Bearer Token
260
208
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -337,7 +285,7 @@ var PaymentMethodsApiFp = function (configuration) {
337
285
  return {
338
286
  /**
339
287
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
340
- * @summary Create the payment-method
288
+ * @summary Create the payment method
341
289
  * @param {object} body
342
290
  * @param {string} [authorization] Bearer Token
343
291
  * @param {*} [options] Override http request option.
@@ -356,43 +304,22 @@ var PaymentMethodsApiFp = function (configuration) {
356
304
  });
357
305
  });
358
306
  },
359
- /**
360
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
361
- * @summary Delete a payment method
362
- * @param {number} id Unique identifier for payment method
363
- * @param {string} [authorization] Bearer Token
364
- * @param {*} [options] Override http request option.
365
- * @throws {RequiredError}
366
- */
367
- deletePaymentMethod: function (id, authorization, options) {
368
- return __awaiter(this, void 0, void 0, function () {
369
- var localVarAxiosArgs;
370
- return __generator(this, function (_a) {
371
- switch (_a.label) {
372
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options)];
373
- case 1:
374
- localVarAxiosArgs = _a.sent();
375
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
376
- }
377
- });
378
- });
379
- },
380
307
  /**
381
308
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
382
- * @summary Retrieve a payment method
383
- * @param {string} code Unique identifier for the object.
309
+ * @summary Retrieve the payment method
310
+ * @param {string} code
311
+ * @param {string} code2 Unique identifier for the object.
384
312
  * @param {string} expand Fields to expand response by
385
- * @param {string} expand2 Fields to expand response by
386
313
  * @param {string} [authorization] Bearer Token
387
314
  * @param {*} [options] Override http request option.
388
315
  * @throws {RequiredError}
389
316
  */
390
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
317
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
391
318
  return __awaiter(this, void 0, void 0, function () {
392
319
  var localVarAxiosArgs;
393
320
  return __generator(this, function (_a) {
394
321
  switch (_a.label) {
395
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options)];
322
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options)];
396
323
  case 1:
397
324
  localVarAxiosArgs = _a.sent();
398
325
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -401,7 +328,7 @@ var PaymentMethodsApiFp = function (configuration) {
401
328
  });
402
329
  },
403
330
  /**
404
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
331
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
405
332
  * @summary List payment methods
406
333
  * @param {string} [authorization] Bearer Token
407
334
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -439,7 +366,7 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
439
366
  return {
440
367
  /**
441
368
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
442
- * @summary Create the payment-method
369
+ * @summary Create the payment method
443
370
  * @param {object} body
444
371
  * @param {string} [authorization] Bearer Token
445
372
  * @param {*} [options] Override http request option.
@@ -448,32 +375,21 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
448
375
  createPaymentMethod: function (body, authorization, options) {
449
376
  return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
450
377
  },
451
- /**
452
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
453
- * @summary Delete a payment method
454
- * @param {number} id Unique identifier for payment method
455
- * @param {string} [authorization] Bearer Token
456
- * @param {*} [options] Override http request option.
457
- * @throws {RequiredError}
458
- */
459
- deletePaymentMethod: function (id, authorization, options) {
460
- return localVarFp.deletePaymentMethod(id, authorization, options).then(function (request) { return request(axios, basePath); });
461
- },
462
378
  /**
463
379
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
464
- * @summary Retrieve a payment method
465
- * @param {string} code Unique identifier for the object.
380
+ * @summary Retrieve the payment method
381
+ * @param {string} code
382
+ * @param {string} code2 Unique identifier for the object.
466
383
  * @param {string} expand Fields to expand response by
467
- * @param {string} expand2 Fields to expand response by
468
384
  * @param {string} [authorization] Bearer Token
469
385
  * @param {*} [options] Override http request option.
470
386
  * @throws {RequiredError}
471
387
  */
472
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
473
- return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
388
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
389
+ return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
474
390
  },
475
391
  /**
476
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
392
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
477
393
  * @summary List payment methods
478
394
  * @param {string} [authorization] Bearer Token
479
395
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -505,7 +421,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
505
421
  }
506
422
  /**
507
423
  * This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
508
- * @summary Create the payment-method
424
+ * @summary Create the payment method
509
425
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
510
426
  * @param {*} [options] Override http request option.
511
427
  * @throws {RequiredError}
@@ -515,21 +431,9 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
515
431
  var _this = this;
516
432
  return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
517
433
  };
518
- /**
519
- * Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
520
- * @summary Delete a payment method
521
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
522
- * @param {*} [options] Override http request option.
523
- * @throws {RequiredError}
524
- * @memberof PaymentMethodsApi
525
- */
526
- PaymentMethodsApi.prototype.deletePaymentMethod = function (requestParameters, options) {
527
- var _this = this;
528
- return (0, exports.PaymentMethodsApiFp)(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
529
- };
530
434
  /**
531
435
  * Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
532
- * @summary Retrieve a payment method
436
+ * @summary Retrieve the payment method
533
437
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
534
438
  * @param {*} [options] Override http request option.
535
439
  * @throws {RequiredError}
@@ -537,10 +441,10 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
537
441
  */
538
442
  PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
539
443
  var _this = this;
540
- return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
444
+ return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
541
445
  };
542
446
  /**
543
- * Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
447
+ * Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
544
448
  * @summary List payment methods
545
449
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
546
450
  * @param {*} [options] Override http request option.
@@ -39,7 +39,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
39
39
  */
40
40
  deactivatePaymentReminder: (code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
41
  /**
42
- * 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.
42
+ * 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.
43
43
  * @summary Retrieve the payment reminder
44
44
  * @param {string} code Unique identifier for the object.
45
45
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -48,7 +48,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
48
48
  */
49
49
  getPolicy: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
50
  /**
51
- * 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.
51
+ * 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.
52
52
  * @summary List payment reminders
53
53
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
54
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -88,7 +88,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
88
88
  */
89
89
  deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
90
90
  /**
91
- * 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.
91
+ * 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.
92
92
  * @summary Retrieve the payment reminder
93
93
  * @param {string} code Unique identifier for the object.
94
94
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -97,7 +97,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
97
97
  */
98
98
  getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
99
99
  /**
100
- * 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.
100
+ * 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.
101
101
  * @summary List payment reminders
102
102
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
103
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -137,7 +137,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
137
137
  */
138
138
  deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
139
139
  /**
140
- * 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.
140
+ * 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.
141
141
  * @summary Retrieve the payment reminder
142
142
  * @param {string} code Unique identifier for the object.
143
143
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -146,7 +146,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
146
146
  */
147
147
  getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void>;
148
148
  /**
149
- * 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.
149
+ * 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.
150
150
  * @summary List payment reminders
151
151
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
152
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -305,7 +305,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
305
305
  */
306
306
  deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
307
307
  /**
308
- * 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.
308
+ * 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.
309
309
  * @summary Retrieve the payment reminder
310
310
  * @param {PaymentRemindersApiGetPolicyRequest} requestParameters Request parameters.
311
311
  * @param {*} [options] Override http request option.
@@ -314,7 +314,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
314
314
  */
315
315
  getPolicy(requestParameters: PaymentRemindersApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
316
316
  /**
317
- * 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.
317
+ * 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.
318
318
  * @summary List payment reminders
319
319
  * @param {PaymentRemindersApiListPaymentRemindersRequest} requestParameters Request parameters.
320
320
  * @param {*} [options] Override http request option.