@emilgroup/payment-sdk-node 1.13.1-beta.13 → 1.13.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.
@@ -98,7 +98,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  * 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.
101
- * @summary Create the payment-method
101
+ * @summary Create the payment method
102
102
  * @param {object} body
103
103
  * @param {string} [authorization] Bearer Token
104
104
  * @param {*} [options] Override http request option.
@@ -145,67 +145,17 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
145
145
  });
146
146
  });
147
147
  },
148
- /**
149
- * 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.
150
- * @summary Delete a payment method
151
- * @param {number} id Unique identifier for payment method
152
- * @param {string} [authorization] Bearer Token
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- deletePaymentMethod: function (id, 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 'id' is not null or undefined
164
- (0, common_1.assertParamExists)('deletePaymentMethod', 'id', id);
165
- localVarPath = "/paymentservice/v1/payment-methods/{id}";
166
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
- if (configuration) {
168
- baseOptions = configuration.baseOptions;
169
- baseAccessToken = configuration.accessToken;
170
- }
171
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
172
- localVarHeaderParameter = {};
173
- localVarQueryParameter = {};
174
- // authentication bearer required
175
- // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
177
- case 1:
178
- // authentication bearer required
179
- // http bearer authentication required
180
- _a.sent();
181
- if (id !== undefined) {
182
- localVarQueryParameter['id'] = id;
183
- }
184
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
- }
187
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
189
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
190
- return [2 /*return*/, {
191
- url: (0, common_1.toPathString)(localVarUrlObj),
192
- options: localVarRequestOptions,
193
- }];
194
- }
195
- });
196
- });
197
- },
198
148
  /**
199
149
  * 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.
200
- * @summary Retrieve a payment method
201
- * @param {string} code Unique identifier for the object.
150
+ * @summary Retrieve the payment method
151
+ * @param {string} code
152
+ * @param {string} code2 Unique identifier for the object.
202
153
  * @param {string} expand Fields to expand response by
203
- * @param {string} expand2 Fields to expand response by
204
154
  * @param {string} [authorization] Bearer Token
205
155
  * @param {*} [options] Override http request option.
206
156
  * @throws {RequiredError}
207
157
  */
208
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
158
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
209
159
  if (options === void 0) { options = {}; }
210
160
  return __awaiter(_this, void 0, void 0, function () {
211
161
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -214,11 +164,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
214
164
  case 0:
215
165
  // verify required parameter 'code' is not null or undefined
216
166
  (0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
167
+ // verify required parameter 'code2' is not null or undefined
168
+ (0, common_1.assertParamExists)('getPaymentMethod', 'code2', code2);
217
169
  // verify required parameter 'expand' is not null or undefined
218
170
  (0, common_1.assertParamExists)('getPaymentMethod', 'expand', expand);
219
- // verify required parameter 'expand2' is not null or undefined
220
- (0, common_1.assertParamExists)('getPaymentMethod', 'expand2', expand2);
221
- localVarPath = "/paymentservice/v1/payment-methods/{code}";
171
+ localVarPath = "/paymentservice/v1/payment-methods/{code}"
172
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
173
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
223
174
  if (configuration) {
224
175
  baseOptions = configuration.baseOptions;
@@ -234,15 +185,12 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
234
185
  // authentication bearer required
235
186
  // http bearer authentication required
236
187
  _a.sent();
237
- if (code !== undefined) {
238
- localVarQueryParameter['code'] = code;
188
+ if (code2 !== undefined) {
189
+ localVarQueryParameter['code'] = code2;
239
190
  }
240
191
  if (expand !== undefined) {
241
192
  localVarQueryParameter['expand'] = expand;
242
193
  }
243
- if (expand2 !== undefined) {
244
- localVarQueryParameter['expand'] = expand2;
245
- }
246
194
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
195
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
196
  }
@@ -258,7 +206,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
258
206
  });
259
207
  },
260
208
  /**
261
- * 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.
209
+ * 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.
262
210
  * @summary List payment methods
263
211
  * @param {string} [authorization] Bearer Token
264
212
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -341,7 +289,7 @@ var PaymentMethodsApiFp = function (configuration) {
341
289
  return {
342
290
  /**
343
291
  * 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.
344
- * @summary Create the payment-method
292
+ * @summary Create the payment method
345
293
  * @param {object} body
346
294
  * @param {string} [authorization] Bearer Token
347
295
  * @param {*} [options] Override http request option.
@@ -360,43 +308,22 @@ var PaymentMethodsApiFp = function (configuration) {
360
308
  });
361
309
  });
362
310
  },
363
- /**
364
- * 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.
365
- * @summary Delete a payment method
366
- * @param {number} id Unique identifier for payment method
367
- * @param {string} [authorization] Bearer Token
368
- * @param {*} [options] Override http request option.
369
- * @throws {RequiredError}
370
- */
371
- deletePaymentMethod: function (id, authorization, options) {
372
- return __awaiter(this, void 0, void 0, function () {
373
- var localVarAxiosArgs;
374
- return __generator(this, function (_a) {
375
- switch (_a.label) {
376
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options)];
377
- case 1:
378
- localVarAxiosArgs = _a.sent();
379
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
380
- }
381
- });
382
- });
383
- },
384
311
  /**
385
312
  * 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.
386
- * @summary Retrieve a payment method
387
- * @param {string} code Unique identifier for the object.
313
+ * @summary Retrieve the payment method
314
+ * @param {string} code
315
+ * @param {string} code2 Unique identifier for the object.
388
316
  * @param {string} expand Fields to expand response by
389
- * @param {string} expand2 Fields to expand response by
390
317
  * @param {string} [authorization] Bearer Token
391
318
  * @param {*} [options] Override http request option.
392
319
  * @throws {RequiredError}
393
320
  */
394
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
321
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
395
322
  return __awaiter(this, void 0, void 0, function () {
396
323
  var localVarAxiosArgs;
397
324
  return __generator(this, function (_a) {
398
325
  switch (_a.label) {
399
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options)];
326
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPaymentMethod(code, code2, expand, authorization, options)];
400
327
  case 1:
401
328
  localVarAxiosArgs = _a.sent();
402
329
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -405,7 +332,7 @@ var PaymentMethodsApiFp = function (configuration) {
405
332
  });
406
333
  },
407
334
  /**
408
- * 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.
335
+ * 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.
409
336
  * @summary List payment methods
410
337
  * @param {string} [authorization] Bearer Token
411
338
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -443,7 +370,7 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
443
370
  return {
444
371
  /**
445
372
  * 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.
446
- * @summary Create the payment-method
373
+ * @summary Create the payment method
447
374
  * @param {object} body
448
375
  * @param {string} [authorization] Bearer Token
449
376
  * @param {*} [options] Override http request option.
@@ -452,32 +379,21 @@ var PaymentMethodsApiFactory = function (configuration, basePath, axios) {
452
379
  createPaymentMethod: function (body, authorization, options) {
453
380
  return localVarFp.createPaymentMethod(body, authorization, options).then(function (request) { return request(axios, basePath); });
454
381
  },
455
- /**
456
- * 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.
457
- * @summary Delete a payment method
458
- * @param {number} id Unique identifier for payment method
459
- * @param {string} [authorization] Bearer Token
460
- * @param {*} [options] Override http request option.
461
- * @throws {RequiredError}
462
- */
463
- deletePaymentMethod: function (id, authorization, options) {
464
- return localVarFp.deletePaymentMethod(id, authorization, options).then(function (request) { return request(axios, basePath); });
465
- },
466
382
  /**
467
383
  * 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.
468
- * @summary Retrieve a payment method
469
- * @param {string} code Unique identifier for the object.
384
+ * @summary Retrieve the payment method
385
+ * @param {string} code
386
+ * @param {string} code2 Unique identifier for the object.
470
387
  * @param {string} expand Fields to expand response by
471
- * @param {string} expand2 Fields to expand response by
472
388
  * @param {string} [authorization] Bearer Token
473
389
  * @param {*} [options] Override http request option.
474
390
  * @throws {RequiredError}
475
391
  */
476
- getPaymentMethod: function (code, expand, expand2, authorization, options) {
477
- return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
392
+ getPaymentMethod: function (code, code2, expand, authorization, options) {
393
+ return localVarFp.getPaymentMethod(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
478
394
  },
479
395
  /**
480
- * 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.
396
+ * 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.
481
397
  * @summary List payment methods
482
398
  * @param {string} [authorization] Bearer Token
483
399
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
@@ -509,7 +425,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
509
425
  }
510
426
  /**
511
427
  * 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.
512
- * @summary Create the payment-method
428
+ * @summary Create the payment method
513
429
  * @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
514
430
  * @param {*} [options] Override http request option.
515
431
  * @throws {RequiredError}
@@ -519,21 +435,9 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
519
435
  var _this = this;
520
436
  return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
521
437
  };
522
- /**
523
- * 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.
524
- * @summary Delete a payment method
525
- * @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
526
- * @param {*} [options] Override http request option.
527
- * @throws {RequiredError}
528
- * @memberof PaymentMethodsApi
529
- */
530
- PaymentMethodsApi.prototype.deletePaymentMethod = function (requestParameters, options) {
531
- var _this = this;
532
- return (0, exports.PaymentMethodsApiFp)(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
533
- };
534
438
  /**
535
439
  * 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.
536
- * @summary Retrieve a payment method
440
+ * @summary Retrieve the payment method
537
441
  * @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
538
442
  * @param {*} [options] Override http request option.
539
443
  * @throws {RequiredError}
@@ -541,10 +445,10 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
541
445
  */
542
446
  PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
543
447
  var _this = this;
544
- 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); });
448
+ 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); });
545
449
  };
546
450
  /**
547
- * 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.
451
+ * 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.
548
452
  * @summary List payment methods
549
453
  * @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
550
454
  * @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.