@emilgroup/payment-sdk-node 1.22.1-beta.48 → 1.22.1-beta.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/credit-allocation-api.ts +169 -0
  4. package/api/policy-payment-methods-api.ts +23 -6
  5. package/api.ts +2 -0
  6. package/dist/api/credit-allocation-api.d.ts +97 -0
  7. package/dist/api/credit-allocation-api.js +228 -0
  8. package/dist/api/policy-payment-methods-api.d.ts +13 -3
  9. package/dist/api/policy-payment-methods-api.js +13 -6
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  13. package/dist/models/activate-policy-payment-method-request-dto.js +15 -0
  14. package/dist/models/billing-address-dto.d.ts +2 -16
  15. package/dist/models/billing-address-dto.js +0 -14
  16. package/dist/models/create-credit-allocation-request-dto.d.ts +54 -0
  17. package/dist/models/create-credit-allocation-request-dto.js +21 -0
  18. package/dist/models/create-credit-allocation-response-class.d.ts +25 -0
  19. package/dist/models/create-credit-allocation-response-class.js +15 -0
  20. package/dist/models/credit-allocation-class.d.ts +115 -0
  21. package/dist/models/credit-allocation-class.js +21 -0
  22. package/dist/models/exceeding-credit-class.d.ts +6 -0
  23. package/dist/models/index.d.ts +4 -0
  24. package/dist/models/index.js +4 -0
  25. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  26. package/models/billing-address-dto.ts +2 -19
  27. package/models/create-credit-allocation-request-dto.ts +63 -0
  28. package/models/create-credit-allocation-response-class.ts +31 -0
  29. package/models/credit-allocation-class.ts +124 -0
  30. package/models/exceeding-credit-class.ts +6 -0
  31. package/models/index.ts +4 -0
  32. package/package.json +1 -1
@@ -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';
@@ -24,11 +25,12 @@ export declare const PolicyPaymentMethodsApiAxiosParamCreator: (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\"
25
26
  * @summary Activate the policy payment method
26
27
  * @param {string} code
28
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
27
29
  * @param {string} [authorization] Bearer Token
28
30
  * @param {*} [options] Override http request option.
29
31
  * @throws {RequiredError}
30
32
  */
31
- activatePolicyPaymentMethod: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ activatePolicyPaymentMethod: (code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
34
  /**
33
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\"
34
36
  * @summary Create the policy payment method
@@ -63,11 +65,12 @@ export declare const PolicyPaymentMethodsApiFp: (configuration?: Configuration)
63
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\"
64
66
  * @summary Activate the policy payment method
65
67
  * @param {string} code
68
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
66
69
  * @param {string} [authorization] Bearer Token
67
70
  * @param {*} [options] Override http request option.
68
71
  * @throws {RequiredError}
69
72
  */
70
- activatePolicyPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
73
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
71
74
  /**
72
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\"
73
76
  * @summary Create the policy payment method
@@ -102,11 +105,12 @@ export declare const PolicyPaymentMethodsApiFactory: (configuration?: Configurat
102
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\"
103
106
  * @summary Activate the policy payment method
104
107
  * @param {string} code
108
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
105
109
  * @param {string} [authorization] Bearer Token
106
110
  * @param {*} [options] Override http request option.
107
111
  * @throws {RequiredError}
108
112
  */
109
- activatePolicyPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<object>;
113
+ activatePolicyPaymentMethod(code: string, activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
110
114
  /**
111
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\"
112
116
  * @summary Create the policy payment method
@@ -144,6 +148,12 @@ export interface PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest {
144
148
  * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
145
149
  */
146
150
  readonly code: string;
151
+ /**
152
+ *
153
+ * @type {ActivatePolicyPaymentMethodRequestDto}
154
+ * @memberof PolicyPaymentMethodsApiActivatePolicyPaymentMethod
155
+ */
156
+ readonly activatePolicyPaymentMethodRequestDto: ActivatePolicyPaymentMethodRequestDto;
147
157
  /**
148
158
  * Bearer Token
149
159
  * @type {string}
@@ -100,11 +100,12 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
100
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
101
  * @summary Activate the policy payment method
102
102
  * @param {string} code
103
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
103
104
  * @param {string} [authorization] Bearer Token
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
106
107
  */
107
- activatePolicyPaymentMethod: function (code, authorization, options) {
108
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
108
109
  if (options === void 0) { options = {}; }
109
110
  return __awaiter(_this, void 0, void 0, function () {
110
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -113,6 +114,8 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
113
114
  case 0:
114
115
  // verify required parameter 'code' is not null or undefined
115
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);
116
119
  localVarPath = "/paymentservice/v1/policy-payment-methods/activate/{code}"
117
120
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
118
121
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -133,9 +136,11 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
133
136
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
137
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
138
  }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
141
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
142
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(activatePolicyPaymentMethodRequestDto, localVarRequestOptions, configuration);
139
144
  return [2 /*return*/, {
140
145
  url: (0, common_1.toPathString)(localVarUrlObj),
141
146
  options: localVarRequestOptions,
@@ -279,16 +284,17 @@ var PolicyPaymentMethodsApiFp = function (configuration) {
279
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\"
280
285
  * @summary Activate the policy payment method
281
286
  * @param {string} code
287
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
282
288
  * @param {string} [authorization] Bearer Token
283
289
  * @param {*} [options] Override http request option.
284
290
  * @throws {RequiredError}
285
291
  */
286
- activatePolicyPaymentMethod: function (code, authorization, options) {
292
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
287
293
  return __awaiter(this, void 0, void 0, function () {
288
294
  var localVarAxiosArgs;
289
295
  return __generator(this, function (_a) {
290
296
  switch (_a.label) {
291
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicyPaymentMethod(code, authorization, options)];
297
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options)];
292
298
  case 1:
293
299
  localVarAxiosArgs = _a.sent();
294
300
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -358,12 +364,13 @@ var PolicyPaymentMethodsApiFactory = function (configuration, basePath, axios) {
358
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\"
359
365
  * @summary Activate the policy payment method
360
366
  * @param {string} code
367
+ * @param {ActivatePolicyPaymentMethodRequestDto} activatePolicyPaymentMethodRequestDto
361
368
  * @param {string} [authorization] Bearer Token
362
369
  * @param {*} [options] Override http request option.
363
370
  * @throws {RequiredError}
364
371
  */
365
- activatePolicyPaymentMethod: function (code, authorization, options) {
366
- return localVarFp.activatePolicyPaymentMethod(code, authorization, options).then(function (request) { return request(axios, basePath); });
372
+ activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
373
+ return localVarFp.activatePolicyPaymentMethod(code, activatePolicyPaymentMethodRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
367
374
  },
368
375
  /**
369
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\"
@@ -417,7 +424,7 @@ var PolicyPaymentMethodsApi = /** @class */ (function (_super) {
417
424
  */
418
425
  PolicyPaymentMethodsApi.prototype.activatePolicyPaymentMethod = function (requestParameters, options) {
419
426
  var _this = this;
420
- return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
427
+ return (0, exports.PolicyPaymentMethodsApiFp)(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
421
428
  };
422
429
  /**
423
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\"
package/dist/api.d.ts CHANGED
@@ -12,6 +12,7 @@
12
12
  export * from './api/bank-accounts-api';
13
13
  export * from './api/bank-orders-api';
14
14
  export * from './api/bank-transaction-api';
15
+ export * from './api/credit-allocation-api';
15
16
  export * from './api/exceeding-credits-api';
16
17
  export * from './api/health-check-api';
17
18
  export * from './api/payment-methods-api';
package/dist/api.js CHANGED
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/bank-accounts-api"), exports);
31
31
  __exportStar(require("./api/bank-orders-api"), exports);
32
32
  __exportStar(require("./api/bank-transaction-api"), exports);
33
+ __exportStar(require("./api/credit-allocation-api"), exports);
33
34
  __exportStar(require("./api/exceeding-credits-api"), exports);
34
35
  __exportStar(require("./api/health-check-api"), exports);
35
36
  __exportStar(require("./api/payment-methods-api"), exports);
@@ -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 });
@@ -52,23 +52,9 @@ export interface BillingAddressDto {
52
52
  */
53
53
  'city': string;
54
54
  /**
55
- * Country for billing address
55
+ * Country code for billing address
56
56
  * @type {string}
57
57
  * @memberof BillingAddressDto
58
58
  */
59
- 'country'?: BillingAddressDtoCountryEnum;
59
+ 'countryCode'?: string;
60
60
  }
61
- export declare const BillingAddressDtoCountryEnum: {
62
- readonly De: "DE";
63
- readonly Us: "US";
64
- readonly Gb: "GB";
65
- readonly Ch: "CH";
66
- readonly Pl: "PL";
67
- readonly Au: "AU";
68
- readonly Ca: "CA";
69
- readonly Dk: "DK";
70
- readonly Hu: "HU";
71
- readonly No: "NO";
72
- readonly Se: "SE";
73
- };
74
- export type BillingAddressDtoCountryEnum = typeof BillingAddressDtoCountryEnum[keyof typeof BillingAddressDtoCountryEnum];
@@ -13,17 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BillingAddressDtoCountryEnum = void 0;
17
- exports.BillingAddressDtoCountryEnum = {
18
- De: 'DE',
19
- Us: 'US',
20
- Gb: 'GB',
21
- Ch: 'CH',
22
- Pl: 'PL',
23
- Au: 'AU',
24
- Ca: 'CA',
25
- Dk: 'DK',
26
- Hu: 'HU',
27
- No: 'NO',
28
- Se: 'SE'
29
- };
@@ -0,0 +1,54 @@
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 CreateCreditAllocationRequestDto
16
+ */
17
+ export interface CreateCreditAllocationRequestDto {
18
+ /**
19
+ * Codes of the exceeding credits to allocate.
20
+ * @type {Array<string>}
21
+ * @memberof CreateCreditAllocationRequestDto
22
+ */
23
+ 'exceedingCreditCodes': Array<string>;
24
+ /**
25
+ * Financial account code to use for the refund. Required only when allocationType is \"separate_refund\".
26
+ * @type {string}
27
+ * @memberof CreateCreditAllocationRequestDto
28
+ */
29
+ 'financialAccountCode'?: string;
30
+ /**
31
+ * Type of credit allocation.
32
+ * @type {string}
33
+ * @memberof CreateCreditAllocationRequestDto
34
+ */
35
+ 'allocationType': CreateCreditAllocationRequestDtoAllocationTypeEnum;
36
+ /**
37
+ * Amount of the credit allocation in cents.
38
+ * @type {number}
39
+ * @memberof CreateCreditAllocationRequestDto
40
+ */
41
+ 'allocationAmount': number;
42
+ /**
43
+ * Booking date of the credit allocation.
44
+ * @type {string}
45
+ * @memberof CreateCreditAllocationRequestDto
46
+ */
47
+ 'bookingDate'?: string;
48
+ }
49
+ export declare const CreateCreditAllocationRequestDtoAllocationTypeEnum: {
50
+ readonly NextInvoice: "next_invoice";
51
+ readonly LastInvoice: "last_invoice";
52
+ readonly SeparateRefund: "separate_refund";
53
+ };
54
+ export type CreateCreditAllocationRequestDtoAllocationTypeEnum = typeof CreateCreditAllocationRequestDtoAllocationTypeEnum[keyof typeof CreateCreditAllocationRequestDtoAllocationTypeEnum];
@@ -0,0 +1,21 @@
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 });
16
+ exports.CreateCreditAllocationRequestDtoAllocationTypeEnum = void 0;
17
+ exports.CreateCreditAllocationRequestDtoAllocationTypeEnum = {
18
+ NextInvoice: 'next_invoice',
19
+ LastInvoice: 'last_invoice',
20
+ SeparateRefund: 'separate_refund'
21
+ };
@@ -0,0 +1,25 @@
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
+ import { CreditAllocationClass } from './credit-allocation-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCreditAllocationResponseClass
17
+ */
18
+ export interface CreateCreditAllocationResponseClass {
19
+ /**
20
+ * Credit allocation created.
21
+ * @type {CreditAllocationClass}
22
+ * @memberof CreateCreditAllocationResponseClass
23
+ */
24
+ 'creditAllocation'?: CreditAllocationClass;
25
+ }
@@ -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 });
@@ -0,0 +1,115 @@
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
+ import { ExceedingCreditClass } from './exceeding-credit-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreditAllocationClass
17
+ */
18
+ export interface CreditAllocationClass {
19
+ /**
20
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
21
+ * @type {number}
22
+ * @memberof CreditAllocationClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Code of the credit allocation.
27
+ * @type {string}
28
+ * @memberof CreditAllocationClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * Codes of the exceeding credits that were allocated.
33
+ * @type {Array<string>}
34
+ * @memberof CreditAllocationClass
35
+ */
36
+ 'exceedingCreditCodes': Array<string>;
37
+ /**
38
+ * Policy code associated with the credit.
39
+ * @type {string}
40
+ * @memberof CreditAllocationClass
41
+ */
42
+ 'policyCode': string;
43
+ /**
44
+ * Policy number associated with the credit.
45
+ * @type {string}
46
+ * @memberof CreditAllocationClass
47
+ */
48
+ 'policyNumber': string;
49
+ /**
50
+ * Amount of the credit allocation in cents.
51
+ * @type {number}
52
+ * @memberof CreditAllocationClass
53
+ */
54
+ 'allocationAmount': number;
55
+ /**
56
+ * Currency of the credit allocation.
57
+ * @type {string}
58
+ * @memberof CreditAllocationClass
59
+ */
60
+ 'allocationCurrency': string;
61
+ /**
62
+ * Type of credit allocation.
63
+ * @type {string}
64
+ * @memberof CreditAllocationClass
65
+ */
66
+ 'allocationType': CreditAllocationClassAllocationTypeEnum;
67
+ /**
68
+ * Financial account code used for the allocation.
69
+ * @type {string}
70
+ * @memberof CreditAllocationClass
71
+ */
72
+ 'financialAccountCode'?: string;
73
+ /**
74
+ * Booking date of the credit allocation.
75
+ * @type {string}
76
+ * @memberof CreditAllocationClass
77
+ */
78
+ 'bookingDate'?: string;
79
+ /**
80
+ * Time at which the object was created.
81
+ * @type {string}
82
+ * @memberof CreditAllocationClass
83
+ */
84
+ 'createdAt': string;
85
+ /**
86
+ * Time at which the object was updated.
87
+ * @type {string}
88
+ * @memberof CreditAllocationClass
89
+ */
90
+ 'updatedAt': string;
91
+ /**
92
+ * Identifier of the user who created the record.
93
+ * @type {string}
94
+ * @memberof CreditAllocationClass
95
+ */
96
+ 'createdBy': string;
97
+ /**
98
+ * Identifier of the user who last updated the record.
99
+ * @type {string}
100
+ * @memberof CreditAllocationClass
101
+ */
102
+ 'updatedBy': string;
103
+ /**
104
+ * List of exceeding credits associated with this allocation.
105
+ * @type {Array<ExceedingCreditClass>}
106
+ * @memberof CreditAllocationClass
107
+ */
108
+ 'exceedingCredits'?: Array<ExceedingCreditClass>;
109
+ }
110
+ export declare const CreditAllocationClassAllocationTypeEnum: {
111
+ readonly NextInvoice: "next_invoice";
112
+ readonly LastInvoice: "last_invoice";
113
+ readonly SeparateRefund: "separate_refund";
114
+ };
115
+ export type CreditAllocationClassAllocationTypeEnum = typeof CreditAllocationClassAllocationTypeEnum[keyof typeof CreditAllocationClassAllocationTypeEnum];
@@ -0,0 +1,21 @@
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 });
16
+ exports.CreditAllocationClassAllocationTypeEnum = void 0;
17
+ exports.CreditAllocationClassAllocationTypeEnum = {
18
+ NextInvoice: 'next_invoice',
19
+ LastInvoice: 'last_invoice',
20
+ SeparateRefund: 'separate_refund'
21
+ };
@@ -75,6 +75,12 @@ export interface ExceedingCreditClass {
75
75
  * @memberof ExceedingCreditClass
76
76
  */
77
77
  'policyCode': string;
78
+ /**
79
+ * The allocation ID if this credit has been allocated.
80
+ * @type {number}
81
+ * @memberof ExceedingCreditClass
82
+ */
83
+ 'allocationId'?: number;
78
84
  /**
79
85
  * Time at which the object was created.
80
86
  * @type {string}
@@ -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';
@@ -20,6 +21,8 @@ export * from './create-bank-account-request-dto';
20
21
  export * from './create-bank-account-response-class';
21
22
  export * from './create-bank-order-request-dto';
22
23
  export * from './create-bank-order-response-class';
24
+ export * from './create-credit-allocation-request-dto';
25
+ export * from './create-credit-allocation-response-class';
23
26
  export * from './create-payment-method-response-class';
24
27
  export * from './create-payment-order-dto';
25
28
  export * from './create-payment-order-request-dto';
@@ -34,6 +37,7 @@ export * from './create-refund-request-dto';
34
37
  export * from './create-refund-response-class';
35
38
  export * from './create-tenant-bank-account-request-dto';
36
39
  export * from './create-tenant-bank-account-response-class';
40
+ export * from './credit-allocation-class';
37
41
  export * from './deactivate-payment-reminder-request-dto';
38
42
  export * from './deactivate-payment-reminder-response-class';
39
43
  export * from './deactivated-payment-reminder-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);
@@ -36,6 +37,8 @@ __exportStar(require("./create-bank-account-request-dto"), exports);
36
37
  __exportStar(require("./create-bank-account-response-class"), exports);
37
38
  __exportStar(require("./create-bank-order-request-dto"), exports);
38
39
  __exportStar(require("./create-bank-order-response-class"), exports);
40
+ __exportStar(require("./create-credit-allocation-request-dto"), exports);
41
+ __exportStar(require("./create-credit-allocation-response-class"), exports);
39
42
  __exportStar(require("./create-payment-method-response-class"), exports);
40
43
  __exportStar(require("./create-payment-order-dto"), exports);
41
44
  __exportStar(require("./create-payment-order-request-dto"), exports);
@@ -50,6 +53,7 @@ __exportStar(require("./create-refund-request-dto"), exports);
50
53
  __exportStar(require("./create-refund-response-class"), exports);
51
54
  __exportStar(require("./create-tenant-bank-account-request-dto"), exports);
52
55
  __exportStar(require("./create-tenant-bank-account-response-class"), exports);
56
+ __exportStar(require("./credit-allocation-class"), exports);
53
57
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
54
58
  __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
55
59
  __exportStar(require("./deactivated-payment-reminder-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
+
@@ -57,27 +57,10 @@ export interface BillingAddressDto {
57
57
  */
58
58
  'city': string;
59
59
  /**
60
- * Country for billing address
60
+ * Country code for billing address
61
61
  * @type {string}
62
62
  * @memberof BillingAddressDto
63
63
  */
64
- 'country'?: BillingAddressDtoCountryEnum;
64
+ 'countryCode'?: string;
65
65
  }
66
66
 
67
- export const BillingAddressDtoCountryEnum = {
68
- De: 'DE',
69
- Us: 'US',
70
- Gb: 'GB',
71
- Ch: 'CH',
72
- Pl: 'PL',
73
- Au: 'AU',
74
- Ca: 'CA',
75
- Dk: 'DK',
76
- Hu: 'HU',
77
- No: 'NO',
78
- Se: 'SE'
79
- } as const;
80
-
81
- export type BillingAddressDtoCountryEnum = typeof BillingAddressDtoCountryEnum[keyof typeof BillingAddressDtoCountryEnum];
82
-
83
-