@emilgroup/payment-sdk-node 1.21.1-beta.126 → 1.21.1-beta.127

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.
@@ -21,6 +21,7 @@ common.ts
21
21
  configuration.ts
22
22
  git_push.sh
23
23
  index.ts
24
+ models/activate-policy-payment-method-request-dto.ts
24
25
  models/bank-account-class-without-expand-properties.ts
25
26
  models/bank-account-class.ts
26
27
  models/bank-order-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk-node@1.21.1-beta.126 --save
20
+ npm install @emilgroup/payment-sdk-node@1.21.1-beta.127 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk-node@1.21.1-beta.126
24
+ yarn add @emilgroup/payment-sdk-node@1.21.1-beta.127
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { ActivatePolicyPaymentMethodRequestDto } from '../models';
25
+ // @ts-ignore
24
26
  import { CreatePolicyPaymentMethodRequestDto } from '../models';
25
27
  // @ts-ignore
26
28
  import { CreatePolicyPaymentMethodResponseClass } from '../models';
@@ -36,6 +38,57 @@ const FormData = require('form-data');
36
38
  */
37
39
  export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
38
40
  return {
41
+ /**
42
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
43
+ * @summary Activate the policy payment method
44
+ * @param {string} code
45
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
46
+ * @param {string} [authorization] Bearer Token
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ activatePolicyPaymentMethod: async (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ // verify required parameter 'code' is not null or undefined
52
+ assertParamExists('activatePolicyPaymentMethod', 'code', code)
53
+ // verify required parameter 'activatePolicyPaymentMethodRequestDto' is not null or undefined
54
+ assertParamExists('activatePolicyPaymentMethod', 'activatePolicyPaymentMethodRequestDto', activatePolicyPaymentMethodRequestDto)
55
+ const localVarPath = `/paymentservice/v1/policy-payment-methods/activate/{code}`
56
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
39
92
  /**
40
93
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
41
94
  * @summary Create the policy payment method
@@ -169,6 +222,19 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
169
222
  export const PolicyPaymentMethodsApiFp = function(configuration?: Configuration) {
170
223
  const localVarAxiosParamCreator = PolicyPaymentMethodsApiAxiosParamCreator(configuration)
171
224
  return {
225
+ /**
226
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
227
+ * @summary Activate the policy payment method
228
+ * @param {string} code
229
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
230
+ * @param {string} [authorization] Bearer Token
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ async activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options);
236
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
237
+ },
172
238
  /**
173
239
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
174
240
  * @summary Create the policy payment method
@@ -209,6 +275,18 @@ export const PolicyPaymentMethodsApiFp = function(configuration?: Configuration)
209
275
  export const PolicyPaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
210
276
  const localVarFp = PolicyPaymentMethodsApiFp(configuration)
211
277
  return {
278
+ /**
279
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
280
+ * @summary Activate the policy payment method
281
+ * @param {string} code
282
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
283
+ * @param {string} [authorization] Bearer Token
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
288
+ return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
289
+ },
212
290
  /**
213
291
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
214
292
  * @summary Create the policy payment method
@@ -240,6 +318,34 @@ export const PolicyPaymentMethodsApiFactory = function (configuration?: Configur
240
318
  };
241
319
  };
242
320
 
321
+ /**
322
+ * Request parameters for activatePolicyPaymentMethod operation in PolicyPaymentMethodsApi.
323
+ * @export
324
+ * @interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest
325
+ */
326
+ export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
327
+ /**
328
+ *
329
+ * @type {string}
330
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
331
+ */
332
+ readonly code: string
333
+
334
+ /**
335
+ *
336
+ * @type {ActivatePolicyPaymentMethodRequestDto}
337
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
338
+ */
339
+ readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto
340
+
341
+ /**
342
+ * Bearer Token
343
+ * @type {string}
344
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
345
+ */
346
+ readonly authorization?: string
347
+ }
348
+
243
349
  /**
244
350
  * Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
245
351
  * @export
@@ -331,6 +437,18 @@ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
331
437
  * @extends {BaseAPI}
332
438
  */
333
439
  export class PolicyPaymentMethodsApi extends BaseAPI {
440
+ /**
441
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
442
+ * @summary Activate the policy payment method
443
+ * @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ * @memberof PolicyPaymentMethodsApi
447
+ */
448
+ public activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
449
+ return PolicyPaymentMethodsApiFp(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
450
+ }
451
+
334
452
  /**
335
453
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
336
454
  * @summary Create the policy payment method
@@ -12,6 +12,7 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ActivatePolicyPaymentMethodRequestDto } from '../models';
15
16
  import { CreatePolicyPaymentMethodRequestDto } from '../models';
16
17
  import { CreatePolicyPaymentMethodResponseClass } from '../models';
17
18
  import { ListPolicyPaymentMethodsResponseClass } from '../models';
@@ -20,6 +21,16 @@ import { ListPolicyPaymentMethodsResponseClass } from '../models';
20
21
  * @export
21
22
  */
22
23
  export declare const PolicyPaymentMethodsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
26
+ * @summary Activate the policy payment method
27
+ * @param {string} code
28
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
29
+ * @param {string} [authorization] Bearer Token
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ activatePolicyPaymentMethod: (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
23
34
  /**
24
35
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
25
36
  * @summary Create the policy payment method
@@ -50,6 +61,16 @@ export declare const PolicyPaymentMethodsApiAxiosParamCreator: (configuration?:
50
61
  * @export
51
62
  */
52
63
  export declare const PolicyPaymentMethodsApiFp: (configuration?: Configuration) => {
64
+ /**
65
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
66
+ * @summary Activate the policy payment method
67
+ * @param {string} code
68
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
69
+ * @param {string} [authorization] Bearer Token
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
53
74
  /**
54
75
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
55
76
  * @summary Create the policy payment method
@@ -80,6 +101,16 @@ export declare const PolicyPaymentMethodsApiFp: (configuration?: Configuration)
80
101
  * @export
81
102
  */
82
103
  export declare const PolicyPaymentMethodsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
104
+ /**
105
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
106
+ * @summary Activate the policy payment method
107
+ * @param {string} code
108
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
109
+ * @param {string} [authorization] Bearer Token
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
83
114
  /**
84
115
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
85
116
  * @summary Create the policy payment method
@@ -105,6 +136,31 @@ export declare const PolicyPaymentMethodsApiFactory: (configuration?: Configurat
105
136
  */
106
137
  listPolicyPaymentMethods(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPolicyPaymentMethodsResponseClass>;
107
138
  };
139
+ /**
140
+ * Request parameters for activatePolicyPaymentMethod operation in PolicyPaymentMethodsApi.
141
+ * @export
142
+ * @interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest
143
+ */
144
+ export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
145
+ /**
146
+ *
147
+ * @type {string}
148
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
149
+ */
150
+ readonly code: string;
151
+ /**
152
+ *
153
+ * @type {ActivatePolicyPaymentMethodRequestDto}
154
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
155
+ */
156
+ readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto;
157
+ /**
158
+ * Bearer Token
159
+ * @type {string}
160
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
161
+ */
162
+ readonly authorization?: string;
163
+ }
108
164
  /**
109
165
  * Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
110
166
  * @export
@@ -186,6 +242,15 @@ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
186
242
  * @extends {BaseAPI}
187
243
  */
188
244
  export declare class PolicyPaymentMethodsApi extends BaseAPI {
245
+ /**
246
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
247
+ * @summary Activate the policy payment method
248
+ * @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof PolicyPaymentMethodsApi
252
+ */
253
+ activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
189
254
  /**
190
255
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
191
256
  * @summary Create the policy payment method
@@ -96,6 +96,59 @@ var FormData = require('form-data');
96
96
  var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
101
+ * @summary Activate the policy payment method
102
+ * @param {string} code
103
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'code' is not null or undefined
116
+ (0, common_1.assertParamExists)('activatePolicyPaymentMethod', 'code', code);
117
+ // verify required parameter 'activatePolicyPaymentMethodRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('activatePolicyPaymentMethod', 'activatePolicyPaymentMethodRequestDto', activatePolicyPaymentMethodRequestDto);
119
+ localVarPath = "/paymentservice/v1/policy-payment-methods/activate/{code}"
120
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
99
152
  /**
100
153
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
101
154
  * @summary Create the policy payment method
@@ -227,6 +280,28 @@ exports.PolicyPaymentMethodsApiAxiosParamCreator = PolicyPaymentMethodsApiAxiosP
227
280
  var PolicyPaymentMethodsApiFp = function (configuration) {
228
281
  var localVarAxiosParamCreator = (0, exports.PolicyPaymentMethodsApiAxiosParamCreator)(configuration);
229
282
  return {
283
+ /**
284
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
285
+ * @summary Activate the policy payment method
286
+ * @param {string} code
287
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
288
+ * @param {string} [authorization] Bearer Token
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
293
+ return __awaiter(this, void 0, void 0, function () {
294
+ var localVarAxiosArgs;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
297
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options)];
298
+ case 1:
299
+ localVarAxiosArgs = _a.sent();
300
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
301
+ }
302
+ });
303
+ });
304
+ },
230
305
  /**
231
306
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
232
307
  * @summary Create the policy payment method
@@ -285,6 +360,18 @@ exports.PolicyPaymentMethodsApiFp = PolicyPaymentMethodsApiFp;
285
360
  var PolicyPaymentMethodsApiFactory = function (configuration, basePath, axios) {
286
361
  var localVarFp = (0, exports.PolicyPaymentMethodsApiFp)(configuration);
287
362
  return {
363
+ /**
364
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
365
+ * @summary Activate the policy payment method
366
+ * @param {string} code
367
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
368
+ * @param {string} [authorization] Bearer Token
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
373
+ return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
374
+ },
288
375
  /**
289
376
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
290
377
  * @summary Create the policy payment method
@@ -327,6 +414,18 @@ var PolicyPaymentMethodsApi = /** @class */ (function (_super) {
327
414
  function PolicyPaymentMethodsApi() {
328
415
  return _super !== null && _super.apply(this, arguments) || this;
329
416
  }
417
+ /**
418
+ * Activates the requested policy payment method and automatically deactivates any currently active policy payment method for the same policy. **Required Permissions** \"payment-management.payments.update\"
419
+ * @summary Activate the policy payment method
420
+ * @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ * @memberof PolicyPaymentMethodsApi
424
+ */
425
+ PolicyPaymentMethodsApi.prototype.activatePolicyPaymentMethod = function (requestParameters, options) {
426
+ var _this = this;
427
+ return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
428
+ };
330
429
  /**
331
430
  * Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
332
431
  * @summary Create the policy payment method
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActivatePolicyPaymentMethodRequestDto
16
+ */
17
+ export interface ActivatePolicyPaymentMethodRequestDto {
18
+ /**
19
+ * Whether to trigger the Policy Payment Method Activated workflow event.
20
+ * @type {boolean}
21
+ * @memberof ActivatePolicyPaymentMethodRequestDto
22
+ */
23
+ 'shouldTriggerWorkflow'?: boolean;
24
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from './activate-policy-payment-method-request-dto';
1
2
  export * from './bank-account-class';
2
3
  export * from './bank-account-class-without-expand-properties';
3
4
  export * from './bank-order-class';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./activate-policy-payment-method-request-dto"), exports);
17
18
  __exportStar(require("./bank-account-class"), exports);
18
19
  __exportStar(require("./bank-account-class-without-expand-properties"), exports);
19
20
  __exportStar(require("./bank-order-class"), exports);
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * 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.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ActivatePolicyPaymentMethodRequestDto
21
+ */
22
+ export interface ActivatePolicyPaymentMethodRequestDto {
23
+ /**
24
+ * Whether to trigger the Policy Payment Method Activated workflow event.
25
+ * @type {boolean}
26
+ * @memberof ActivatePolicyPaymentMethodRequestDto
27
+ */
28
+ 'shouldTriggerWorkflow'?: boolean;
29
+ }
30
+
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './activate-policy-payment-method-request-dto';
1
2
  export * from './bank-account-class';
2
3
  export * from './bank-account-class-without-expand-properties';
3
4
  export * from './bank-order-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/payment-sdk-node",
3
- "version": "1.21.1-beta.126",
3
+ "version": "1.21.1-beta.127",
4
4
  "description": "OpenAPI client for @emilgroup/payment-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [