@emilgroup/payment-sdk 1.13.1-beta.126 → 1.13.1-beta.128
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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/policy-payment-methods-api.ts +118 -0
- package/dist/api/policy-payment-methods-api.d.ts +65 -0
- package/dist/api/policy-payment-methods-api.js +99 -0
- package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
- package/dist/models/activate-policy-payment-method-request-dto.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/activate-policy-payment-method-request-dto.ts +30 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
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@1.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.13.1-beta.128 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.13.1-beta.128
|
|
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';
|
|
@@ -32,6 +34,57 @@ import { ListPolicyPaymentMethodsResponseClass } from '../models';
|
|
|
32
34
|
*/
|
|
33
35
|
export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
36
|
return {
|
|
37
|
+
/**
|
|
38
|
+
* 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\"
|
|
39
|
+
* @summary Activate the policy payment method
|
|
40
|
+
* @param {string} code
|
|
41
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
activatePolicyPaymentMethod: async (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
// verify required parameter 'code' is not null or undefined
|
|
48
|
+
assertParamExists('activatePolicyPaymentMethod', 'code', code)
|
|
49
|
+
// verify required parameter 'activatePolicyPaymentMethodRequestDto' is not null or undefined
|
|
50
|
+
assertParamExists('activatePolicyPaymentMethod', 'activatePolicyPaymentMethodRequestDto', activatePolicyPaymentMethodRequestDto)
|
|
51
|
+
const localVarPath = `/paymentservice/v1/policy-payment-methods/activate/{code}`
|
|
52
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
let baseAccessToken;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
baseAccessToken = configuration.accessToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63
|
+
const localVarHeaderParameter = {} as any;
|
|
64
|
+
const localVarQueryParameter = {} as any;
|
|
65
|
+
|
|
66
|
+
// authentication bearer required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
+
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration)
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
35
88
|
/**
|
|
36
89
|
* 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\"
|
|
37
90
|
* @summary Create the policy payment method
|
|
@@ -165,6 +218,19 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
|
|
|
165
218
|
export const PolicyPaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
166
219
|
const localVarAxiosParamCreator = PolicyPaymentMethodsApiAxiosParamCreator(configuration)
|
|
167
220
|
return {
|
|
221
|
+
/**
|
|
222
|
+
* 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\"
|
|
223
|
+
* @summary Activate the policy payment method
|
|
224
|
+
* @param {string} code
|
|
225
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
226
|
+
* @param {string} [authorization] Bearer Token
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
async activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options);
|
|
232
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
233
|
+
},
|
|
168
234
|
/**
|
|
169
235
|
* 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\"
|
|
170
236
|
* @summary Create the policy payment method
|
|
@@ -205,6 +271,18 @@ export const PolicyPaymentMethodsApiFp = function(configuration?: Configuration)
|
|
|
205
271
|
export const PolicyPaymentMethodsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
206
272
|
const localVarFp = PolicyPaymentMethodsApiFp(configuration)
|
|
207
273
|
return {
|
|
274
|
+
/**
|
|
275
|
+
* 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\"
|
|
276
|
+
* @summary Activate the policy payment method
|
|
277
|
+
* @param {string} code
|
|
278
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
279
|
+
* @param {string} [authorization] Bearer Token
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
284
|
+
return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
285
|
+
},
|
|
208
286
|
/**
|
|
209
287
|
* 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\"
|
|
210
288
|
* @summary Create the policy payment method
|
|
@@ -236,6 +314,34 @@ export const PolicyPaymentMethodsApiFactory = function (configuration?: Configur
|
|
|
236
314
|
};
|
|
237
315
|
};
|
|
238
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Request parameters for activatePolicyPaymentMethod operation in PolicyPaymentMethodsApi.
|
|
319
|
+
* @export
|
|
320
|
+
* @interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest
|
|
321
|
+
*/
|
|
322
|
+
export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
|
|
327
|
+
*/
|
|
328
|
+
readonly code: string
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @type {ActivatePolicyPaymentMethodRequestDto}
|
|
333
|
+
* @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
|
|
334
|
+
*/
|
|
335
|
+
readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Bearer Token
|
|
339
|
+
* @type {string}
|
|
340
|
+
* @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
|
|
341
|
+
*/
|
|
342
|
+
readonly authorization?: string
|
|
343
|
+
}
|
|
344
|
+
|
|
239
345
|
/**
|
|
240
346
|
* Request parameters for createPolicyPaymentMethod operation in PolicyPaymentMethodsApi.
|
|
241
347
|
* @export
|
|
@@ -327,6 +433,18 @@ export interface PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest {
|
|
|
327
433
|
* @extends {BaseAPI}
|
|
328
434
|
*/
|
|
329
435
|
export class PolicyPaymentMethodsApi extends BaseAPI {
|
|
436
|
+
/**
|
|
437
|
+
* 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\"
|
|
438
|
+
* @summary Activate the policy payment method
|
|
439
|
+
* @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
|
|
440
|
+
* @param {*} [options] Override http request option.
|
|
441
|
+
* @throws {RequiredError}
|
|
442
|
+
* @memberof PolicyPaymentMethodsApi
|
|
443
|
+
*/
|
|
444
|
+
public activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
445
|
+
return PolicyPaymentMethodsApiFp(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
446
|
+
}
|
|
447
|
+
|
|
330
448
|
/**
|
|
331
449
|
* 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
450
|
* @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
|
|
@@ -92,6 +92,59 @@ var base_1 = require("../base");
|
|
|
92
92
|
var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
* 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\"
|
|
97
|
+
* @summary Activate the policy payment method
|
|
98
|
+
* @param {string} code
|
|
99
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
|
|
105
|
+
if (options === void 0) { options = {}; }
|
|
106
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('activatePolicyPaymentMethod', 'code', code);
|
|
113
|
+
// verify required parameter 'activatePolicyPaymentMethodRequestDto' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('activatePolicyPaymentMethod', 'activatePolicyPaymentMethodRequestDto', activatePolicyPaymentMethodRequestDto);
|
|
115
|
+
localVarPath = "/paymentservice/v1/policy-payment-methods/activate/{code}"
|
|
116
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
117
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
baseAccessToken = configuration.accessToken;
|
|
121
|
+
}
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
123
|
+
localVarHeaderParameter = {};
|
|
124
|
+
localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
|
+
case 1:
|
|
129
|
+
// authentication bearer required
|
|
130
|
+
// http bearer authentication required
|
|
131
|
+
_a.sent();
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
|
+
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration);
|
|
140
|
+
return [2 /*return*/, {
|
|
141
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
},
|
|
95
148
|
/**
|
|
96
149
|
* 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\"
|
|
97
150
|
* @summary Create the policy payment method
|
|
@@ -223,6 +276,28 @@ exports.PolicyPaymentMethodsApiAxiosParamCreator = PolicyPaymentMethodsApiAxiosP
|
|
|
223
276
|
var PolicyPaymentMethodsApiFp = function (configuration) {
|
|
224
277
|
var localVarAxiosParamCreator = (0, exports.PolicyPaymentMethodsApiAxiosParamCreator)(configuration);
|
|
225
278
|
return {
|
|
279
|
+
/**
|
|
280
|
+
* 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\"
|
|
281
|
+
* @summary Activate the policy payment method
|
|
282
|
+
* @param {string} code
|
|
283
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
284
|
+
* @param {string} [authorization] Bearer Token
|
|
285
|
+
* @param {*} [options] Override http request option.
|
|
286
|
+
* @throws {RequiredError}
|
|
287
|
+
*/
|
|
288
|
+
activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
290
|
+
var localVarAxiosArgs;
|
|
291
|
+
return __generator(this, function (_a) {
|
|
292
|
+
switch (_a.label) {
|
|
293
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options)];
|
|
294
|
+
case 1:
|
|
295
|
+
localVarAxiosArgs = _a.sent();
|
|
296
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
},
|
|
226
301
|
/**
|
|
227
302
|
* 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\"
|
|
228
303
|
* @summary Create the policy payment method
|
|
@@ -281,6 +356,18 @@ exports.PolicyPaymentMethodsApiFp = PolicyPaymentMethodsApiFp;
|
|
|
281
356
|
var PolicyPaymentMethodsApiFactory = function (configuration, basePath, axios) {
|
|
282
357
|
var localVarFp = (0, exports.PolicyPaymentMethodsApiFp)(configuration);
|
|
283
358
|
return {
|
|
359
|
+
/**
|
|
360
|
+
* 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\"
|
|
361
|
+
* @summary Activate the policy payment method
|
|
362
|
+
* @param {string} code
|
|
363
|
+
* @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
|
|
364
|
+
* @param {string} [authorization] Bearer Token
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
|
|
369
|
+
return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
370
|
+
},
|
|
284
371
|
/**
|
|
285
372
|
* 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\"
|
|
286
373
|
* @summary Create the policy payment method
|
|
@@ -323,6 +410,18 @@ var PolicyPaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
323
410
|
function PolicyPaymentMethodsApi() {
|
|
324
411
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
325
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* 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\"
|
|
415
|
+
* @summary Activate the policy payment method
|
|
416
|
+
* @param {PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest} requestParameters Request parameters.
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
* @memberof PolicyPaymentMethodsApi
|
|
420
|
+
*/
|
|
421
|
+
PolicyPaymentMethodsApi.prototype.activatePolicyPaymentMethod = function (requestParameters, options) {
|
|
422
|
+
var _this = this;
|
|
423
|
+
return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
424
|
+
};
|
|
326
425
|
/**
|
|
327
426
|
* 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\"
|
|
328
427
|
* @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 });
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -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