@emilgroup/customer-sdk-node 1.18.0 → 1.19.0

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 (33) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +2 -2
  3. package/dist/models/create-lead-request-dto.d.ts +7 -0
  4. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  5. package/dist/models/grpc-update-lead-request-dto.d.ts +7 -0
  6. package/dist/models/index.d.ts +3 -1
  7. package/dist/models/index.js +3 -1
  8. package/dist/models/invoice-class.d.ts +32 -26
  9. package/dist/models/lead-class.d.ts +14 -0
  10. package/dist/models/premium-override-dto.d.ts +1 -0
  11. package/dist/models/premium-override-dto.js +1 -0
  12. package/dist/models/sepa-dto.d.ts +30 -0
  13. package/dist/models/sepa-dto.js +15 -0
  14. package/dist/models/shared-invoice-item-class.d.ts +46 -19
  15. package/dist/models/shared-invoice-item-class.js +9 -0
  16. package/dist/models/shared-invoice-status-class.d.ts +47 -0
  17. package/dist/models/shared-invoice-status-class.js +20 -0
  18. package/dist/models/update-lead-request-dto.d.ts +7 -0
  19. package/models/create-lead-request-dto.ts +7 -0
  20. package/models/create-payment-method-request-dto.ts +37 -0
  21. package/models/grpc-update-lead-request-dto.ts +7 -0
  22. package/models/index.ts +3 -1
  23. package/models/invoice-class.ts +32 -26
  24. package/models/lead-class.ts +14 -0
  25. package/models/premium-override-dto.ts +1 -0
  26. package/models/sepa-dto.ts +36 -0
  27. package/models/shared-invoice-item-class.ts +49 -19
  28. package/models/shared-invoice-status-class.ts +56 -0
  29. package/models/update-lead-request-dto.ts +7 -0
  30. package/package.json +2 -2
  31. package/dist/models/currency-class.d.ts +0 -48
  32. package/models/currency-class.ts +0 -54
  33. /package/dist/models/{currency-class.js → create-payment-method-request-dto.js} +0 -0
@@ -34,9 +34,9 @@ models/create-customer-request-dto.ts
34
34
  models/create-customer-response-class.ts
35
35
  models/create-lead-request-dto.ts
36
36
  models/create-lead-response-class.ts
37
+ models/create-payment-method-request-dto.ts
37
38
  models/create-policy-request-dto.ts
38
39
  models/create-presigned-post-response-class.ts
39
- models/currency-class.ts
40
40
  models/customer-class.ts
41
41
  models/customer-document-class.ts
42
42
  models/customer-product-class.ts
@@ -83,8 +83,10 @@ models/request-policy-update-response-class.ts
83
83
  models/reset-password-by-customer-request-dto.ts
84
84
  models/respond-to-auth-challenge-class.ts
85
85
  models/respond-to-auth-challenge-request-dto.ts
86
+ models/sepa-dto.ts
86
87
  models/shared-customer-policy-object-request-dto.ts
87
88
  models/shared-invoice-item-class.ts
89
+ models/shared-invoice-status-class.ts
88
90
  models/terminate-customer-policy-request-dto.ts
89
91
  models/terminate-customer-policy-response-class.ts
90
92
  models/timeslice-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/customer-sdk-node@1.18.0 --save
20
+ npm install @emilgroup/customer-sdk-node@1.19.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/customer-sdk-node@1.18.0
24
+ yarn add @emilgroup/customer-sdk-node@1.19.0
25
25
  ```
26
26
 
27
27
  And then you can import `CustomersApi`.
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
13
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
13
14
  import { PolicyObjectDto } from './policy-object-dto';
14
15
  import { PremiumOverrideRequestDto } from './premium-override-request-dto';
15
16
  import { UploadedDocumentDto } from './uploaded-document-dto';
@@ -73,4 +74,10 @@ export interface CreateLeadRequestDto {
73
74
  * @memberof CreateLeadRequestDto
74
75
  */
75
76
  'premiumOverride'?: PremiumOverrideRequestDto;
77
+ /**
78
+ * Payment method
79
+ * @type {CreatePaymentMethodRequestDto}
80
+ * @memberof CreateLeadRequestDto
81
+ */
82
+ 'paymentMethod': CreatePaymentMethodRequestDto;
76
83
  }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
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 { SepaDto } from './sepa-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreatePaymentMethodRequestDto
17
+ */
18
+ export interface CreatePaymentMethodRequestDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreatePaymentMethodRequestDto
23
+ */
24
+ 'type': string;
25
+ /**
26
+ *
27
+ * @type {SepaDto}
28
+ * @memberof CreatePaymentMethodRequestDto
29
+ */
30
+ 'sepa'?: SepaDto;
31
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
12
13
  import { PolicyObjectDto } from './policy-object-dto';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface GrpcUpdateLeadRequestDto {
34
35
  * @memberof GrpcUpdateLeadRequestDto
35
36
  */
36
37
  'status'?: string;
38
+ /**
39
+ * Payment method
40
+ * @type {CreatePaymentMethodRequestDto}
41
+ * @memberof GrpcUpdateLeadRequestDto
42
+ */
43
+ 'paymentMethod': CreatePaymentMethodRequestDto;
37
44
  /**
38
45
  *
39
46
  * @type {string}
@@ -14,9 +14,9 @@ export * from './create-customer-request-dto';
14
14
  export * from './create-customer-response-class';
15
15
  export * from './create-lead-request-dto';
16
16
  export * from './create-lead-response-class';
17
+ export * from './create-payment-method-request-dto';
17
18
  export * from './create-policy-request-dto';
18
19
  export * from './create-presigned-post-response-class';
19
- export * from './currency-class';
20
20
  export * from './customer-class';
21
21
  export * from './customer-document-class';
22
22
  export * from './customer-product-class';
@@ -62,8 +62,10 @@ export * from './request-policy-update-response-class';
62
62
  export * from './reset-password-by-customer-request-dto';
63
63
  export * from './respond-to-auth-challenge-class';
64
64
  export * from './respond-to-auth-challenge-request-dto';
65
+ export * from './sepa-dto';
65
66
  export * from './shared-customer-policy-object-request-dto';
66
67
  export * from './shared-invoice-item-class';
68
+ export * from './shared-invoice-status-class';
67
69
  export * from './terminate-customer-policy-request-dto';
68
70
  export * from './terminate-customer-policy-response-class';
69
71
  export * from './timeslice-class';
@@ -30,9 +30,9 @@ __exportStar(require("./create-customer-request-dto"), exports);
30
30
  __exportStar(require("./create-customer-response-class"), exports);
31
31
  __exportStar(require("./create-lead-request-dto"), exports);
32
32
  __exportStar(require("./create-lead-response-class"), exports);
33
+ __exportStar(require("./create-payment-method-request-dto"), exports);
33
34
  __exportStar(require("./create-policy-request-dto"), exports);
34
35
  __exportStar(require("./create-presigned-post-response-class"), exports);
35
- __exportStar(require("./currency-class"), exports);
36
36
  __exportStar(require("./customer-class"), exports);
37
37
  __exportStar(require("./customer-document-class"), exports);
38
38
  __exportStar(require("./customer-product-class"), exports);
@@ -78,8 +78,10 @@ __exportStar(require("./request-policy-update-response-class"), exports);
78
78
  __exportStar(require("./reset-password-by-customer-request-dto"), exports);
79
79
  __exportStar(require("./respond-to-auth-challenge-class"), exports);
80
80
  __exportStar(require("./respond-to-auth-challenge-request-dto"), exports);
81
+ __exportStar(require("./sepa-dto"), exports);
81
82
  __exportStar(require("./shared-customer-policy-object-request-dto"), exports);
82
83
  __exportStar(require("./shared-invoice-item-class"), exports);
84
+ __exportStar(require("./shared-invoice-status-class"), exports);
83
85
  __exportStar(require("./terminate-customer-policy-request-dto"), exports);
84
86
  __exportStar(require("./terminate-customer-policy-response-class"), exports);
85
87
  __exportStar(require("./timeslice-class"), exports);
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { CurrencyClass } from './currency-class';
13
12
  import { SharedInvoiceItemClass } from './shared-invoice-item-class';
13
+ import { SharedInvoiceStatusClass } from './shared-invoice-status-class';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -18,113 +18,119 @@ import { SharedInvoiceItemClass } from './shared-invoice-item-class';
18
18
  */
19
19
  export interface InvoiceClass {
20
20
  /**
21
- * policy code
21
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
22
+ * @type {number}
23
+ * @memberof InvoiceClass
24
+ */
25
+ 'id': number;
26
+ /**
27
+ * Unique identifier of the policy that this object belongs to.
22
28
  * @type {string}
23
29
  * @memberof InvoiceClass
24
30
  */
25
31
  'policyCode': string;
26
32
  /**
27
- * Account number
33
+ * Account number.
28
34
  * @type {string}
29
35
  * @memberof InvoiceClass
30
36
  */
31
37
  'accountNumber': string;
32
38
  /**
33
- * Invoice code
39
+ * Unique identifier for the object.
34
40
  * @type {string}
35
41
  * @memberof InvoiceClass
36
42
  */
37
43
  'code': string;
38
44
  /**
39
- * Invoice type
45
+ * Invoice type.
40
46
  * @type {string}
41
47
  * @memberof InvoiceClass
42
48
  */
43
49
  'type': InvoiceClassTypeEnum;
44
50
  /**
45
- * Invoice number
51
+ * Invoice number.
46
52
  * @type {string}
47
53
  * @memberof InvoiceClass
48
54
  */
49
55
  'invoiceNumber': string;
50
56
  /**
51
- * Net amount
57
+ * Net amount is in cents.
52
58
  * @type {number}
53
59
  * @memberof InvoiceClass
54
60
  */
55
61
  'netAmount': number;
56
62
  /**
57
- * Tax amount
63
+ * Tax amount is in cents.
58
64
  * @type {number}
59
65
  * @memberof InvoiceClass
60
66
  */
61
67
  'taxAmount': number;
62
68
  /**
63
- * Credit amount
69
+ * Credit amount.
64
70
  * @type {number}
65
71
  * @memberof InvoiceClass
66
72
  */
67
73
  'creditAmount': number;
68
74
  /**
69
- * Surcharge amount
70
- * @type {number}
71
- * @memberof InvoiceClass
72
- */
73
- 'surcharge': number;
74
- /**
75
- * Gross amount
75
+ * Gross amount. This property is sum of taxAmount and netAmount.
76
76
  * @type {number}
77
77
  * @memberof InvoiceClass
78
78
  */
79
79
  'grossAmount': number;
80
80
  /**
81
- * Invoice status
81
+ * Invoice status.
82
82
  * @type {string}
83
83
  * @memberof InvoiceClass
84
84
  */
85
85
  'status': InvoiceClassStatusEnum;
86
86
  /**
87
- * Invoice due date
87
+ * Invoice due date.
88
88
  * @type {string}
89
89
  * @memberof InvoiceClass
90
90
  */
91
91
  'dueDate': string;
92
92
  /**
93
- * Invoice metadata
93
+ * Metadata contains extra information that the object would need for specific cases.
94
94
  * @type {object}
95
95
  * @memberof InvoiceClass
96
96
  */
97
97
  'metadata': object;
98
98
  /**
99
- * Invoice billing interval from
99
+ * Start date of billing interval.
100
100
  * @type {string}
101
101
  * @memberof InvoiceClass
102
102
  */
103
103
  'billingIntervalFrom': string;
104
104
  /**
105
- * Invoice billing interval to
105
+ * End date of billing interval.
106
106
  * @type {string}
107
107
  * @memberof InvoiceClass
108
108
  */
109
109
  'billingIntervalTo': string;
110
110
  /**
111
- * Invoice created at
111
+ * Time at which the object was created.
112
112
  * @type {string}
113
113
  * @memberof InvoiceClass
114
114
  */
115
115
  'createdAt': string;
116
116
  /**
117
- * Invoice items
117
+ * Invoice items.
118
118
  * @type {Array<SharedInvoiceItemClass>}
119
119
  * @memberof InvoiceClass
120
120
  */
121
121
  'invoiceItems': Array<SharedInvoiceItemClass>;
122
122
  /**
123
- * Currency. Set to EUR by default
124
- * @type {CurrencyClass}
123
+ * Invoice statuses.
124
+ * @type {Array<SharedInvoiceStatusClass>}
125
+ * @memberof InvoiceClass
126
+ */
127
+ 'statuses': Array<SharedInvoiceStatusClass>;
128
+ /**
129
+ * Invoice currency. EUR is used by default.
130
+ * @type {string}
125
131
  * @memberof InvoiceClass
126
132
  */
127
- 'currency': CurrencyClass;
133
+ 'currency': string;
128
134
  }
129
135
  export declare const InvoiceClassTypeEnum: {
130
136
  readonly Initial: "initial";
@@ -10,7 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CreateAccountRequestDto } from './create-account-request-dto';
13
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
13
14
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
15
+ import { InvoiceClass } from './invoice-class';
14
16
  import { LeadBankAccountClass } from './lead-bank-account-class';
15
17
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
16
18
  import { UploadedDocumentDto } from './uploaded-document-dto';
@@ -92,6 +94,18 @@ export interface LeadClass {
92
94
  * @memberof LeadClass
93
95
  */
94
96
  'ern': string;
97
+ /**
98
+ * Quote or price details.
99
+ * @type {InvoiceClass}
100
+ * @memberof LeadClass
101
+ */
102
+ 'quote': InvoiceClass;
103
+ /**
104
+ * Payment method. When a payment method is provided, it needs to be handled in the workflow based on its type.
105
+ * @type {CreatePaymentMethodRequestDto}
106
+ * @memberof LeadClass
107
+ */
108
+ 'paymentMethod': CreatePaymentMethodRequestDto;
95
109
  /**
96
110
  * Time at which the object was created.
97
111
  * @type {string}
@@ -48,6 +48,7 @@ export declare const PremiumOverrideDtoUnitEnum: {
48
48
  readonly Day: "day";
49
49
  readonly Week: "week";
50
50
  readonly Month: "month";
51
+ readonly Quarter: "quarter";
51
52
  readonly Year: "year";
52
53
  readonly OneTimePayment: "oneTimePayment";
53
54
  };
@@ -21,6 +21,7 @@ exports.PremiumOverrideDtoUnitEnum = {
21
21
  Day: 'day',
22
22
  Week: 'week',
23
23
  Month: 'month',
24
+ Quarter: 'quarter',
24
25
  Year: 'year',
25
26
  OneTimePayment: 'oneTimePayment'
26
27
  };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
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 SepaDto
16
+ */
17
+ export interface SepaDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SepaDto
22
+ */
23
+ 'iban': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SepaDto
28
+ */
29
+ 'holderName'?: string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
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,87 +16,114 @@
16
16
  */
17
17
  export interface SharedInvoiceItemClass {
18
18
  /**
19
- * product name
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof SharedInvoiceItemClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the premium formula.
26
+ * @type {number}
27
+ * @memberof SharedInvoiceItemClass
28
+ */
29
+ 'premiumFormulaId': number;
30
+ /**
31
+ * Product name.
20
32
  * @type {string}
21
33
  * @memberof SharedInvoiceItemClass
22
34
  */
23
35
  'name': string;
24
36
  /**
25
- * tax code
37
+ * Unique identifier of the tax that this object belongs to.
26
38
  * @type {string}
27
39
  * @memberof SharedInvoiceItemClass
28
40
  */
29
41
  'taxCode': string;
30
42
  /**
31
- * Invoice type
43
+ * The Premium unit determined based on time or distance.
32
44
  * @type {string}
33
45
  * @memberof SharedInvoiceItemClass
34
46
  */
35
- 'unit': string;
47
+ 'unit': SharedInvoiceItemClassUnitEnum;
36
48
  /**
37
- * group
49
+ * Invoice group.
38
50
  * @type {string}
39
51
  * @memberof SharedInvoiceItemClass
40
52
  */
41
53
  'group': string;
42
54
  /**
43
- * Item quantity
55
+ * Item quantity property determines number of days during the billing interval.
44
56
  * @type {number}
45
57
  * @memberof SharedInvoiceItemClass
46
58
  */
47
59
  'quantity': number;
48
60
  /**
49
- * Item price per unit
61
+ * Item price per unit.
50
62
  * @type {number}
51
63
  * @memberof SharedInvoiceItemClass
52
64
  */
53
65
  'pricePerUnit': number;
54
66
  /**
55
- * Item tax rate
67
+ * Item tax rate.
56
68
  * @type {number}
57
69
  * @memberof SharedInvoiceItemClass
58
70
  */
59
71
  'taxRate': number;
60
72
  /**
61
- * Net amount
73
+ * Net amount is in cents. It is calculated by multiplying the quantity and the price Per unit.
62
74
  * @type {number}
63
75
  * @memberof SharedInvoiceItemClass
64
76
  */
65
77
  'netAmount': number;
66
78
  /**
67
- * Net tax amount
79
+ * Tax amount is in cents.
68
80
  * @type {number}
69
81
  * @memberof SharedInvoiceItemClass
70
82
  */
71
83
  'taxAmount': number;
72
84
  /**
73
- * Gross amount
85
+ * Gross amount. This property is sum of taxAmount and netAmount.
74
86
  * @type {number}
75
87
  * @memberof SharedInvoiceItemClass
76
88
  */
77
89
  'grossAmount': number;
78
90
  /**
79
- * Credit amount
91
+ * Credit amount.
80
92
  * @type {number}
81
93
  * @memberof SharedInvoiceItemClass
82
94
  */
83
95
  'creditAmount': number;
84
96
  /**
85
- * Surcharge amount
86
- * @type {number}
97
+ * This is the date from which the invoice item interval starts.
98
+ * @type {string}
87
99
  * @memberof SharedInvoiceItemClass
88
100
  */
89
- 'surcharge': number;
101
+ 'billingIntervalFrom': string;
90
102
  /**
91
- * Invoice item interval from
103
+ * This is the date that the invoice item interval ends.
92
104
  * @type {string}
93
105
  * @memberof SharedInvoiceItemClass
94
106
  */
95
- 'billingIntervalFrom': string;
107
+ 'billingIntervalTo': string;
96
108
  /**
97
- * Invoice item interval to
109
+ * Type of Premium item.
98
110
  * @type {string}
99
111
  * @memberof SharedInvoiceItemClass
100
112
  */
101
- 'billingIntervalTo': string;
113
+ 'itemType'?: string;
114
+ /**
115
+ * Visibility of Premium item.
116
+ * @type {string}
117
+ * @memberof SharedInvoiceItemClass
118
+ */
119
+ 'visibility'?: string;
102
120
  }
121
+ export declare const SharedInvoiceItemClassUnitEnum: {
122
+ readonly Day: "day";
123
+ readonly Week: "week";
124
+ readonly Month: "month";
125
+ readonly Quarter: "quarter";
126
+ readonly Year: "year";
127
+ readonly OneTimePayment: "oneTimePayment";
128
+ };
129
+ export type SharedInvoiceItemClassUnitEnum = typeof SharedInvoiceItemClassUnitEnum[keyof typeof SharedInvoiceItemClassUnitEnum];
@@ -13,3 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SharedInvoiceItemClassUnitEnum = void 0;
17
+ exports.SharedInvoiceItemClassUnitEnum = {
18
+ Day: 'day',
19
+ Week: 'week',
20
+ Month: 'month',
21
+ Quarter: 'quarter',
22
+ Year: 'year',
23
+ OneTimePayment: 'oneTimePayment'
24
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService API description
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 SharedInvoiceStatusClass
16
+ */
17
+ export interface SharedInvoiceStatusClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof SharedInvoiceStatusClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier referencing the invoice.
26
+ * @type {number}
27
+ * @memberof SharedInvoiceStatusClass
28
+ */
29
+ 'invoiceId': number;
30
+ /**
31
+ * Invoice type.
32
+ * @type {string}
33
+ * @memberof SharedInvoiceStatusClass
34
+ */
35
+ 'status': SharedInvoiceStatusClassStatusEnum;
36
+ /**
37
+ * Time at which the object was created.
38
+ * @type {string}
39
+ * @memberof SharedInvoiceStatusClass
40
+ */
41
+ 'createdAt': string;
42
+ }
43
+ export declare const SharedInvoiceStatusClassStatusEnum: {
44
+ readonly Open: "open";
45
+ readonly Paid: "paid";
46
+ };
47
+ export type SharedInvoiceStatusClassStatusEnum = typeof SharedInvoiceStatusClassStatusEnum[keyof typeof SharedInvoiceStatusClassStatusEnum];
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
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.SharedInvoiceStatusClassStatusEnum = void 0;
17
+ exports.SharedInvoiceStatusClassStatusEnum = {
18
+ Open: 'open',
19
+ Paid: 'paid'
20
+ };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
12
13
  import { PolicyObjectDto } from './policy-object-dto';
13
14
  /**
14
15
  *
@@ -34,4 +35,10 @@ export interface UpdateLeadRequestDto {
34
35
  * @memberof UpdateLeadRequestDto
35
36
  */
36
37
  'status'?: string;
38
+ /**
39
+ * Payment method
40
+ * @type {CreatePaymentMethodRequestDto}
41
+ * @memberof UpdateLeadRequestDto
42
+ */
43
+ 'paymentMethod': CreatePaymentMethodRequestDto;
37
44
  }
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { CreateBankAccountRequestDto } from './create-bank-account-request-dto';
17
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
17
18
  import { PolicyObjectDto } from './policy-object-dto';
18
19
  import { PremiumOverrideRequestDto } from './premium-override-request-dto';
19
20
  import { UploadedDocumentDto } from './uploaded-document-dto';
@@ -78,5 +79,11 @@ export interface CreateLeadRequestDto {
78
79
  * @memberof CreateLeadRequestDto
79
80
  */
80
81
  'premiumOverride'?: PremiumOverrideRequestDto;
82
+ /**
83
+ * Payment method
84
+ * @type {CreatePaymentMethodRequestDto}
85
+ * @memberof CreateLeadRequestDto
86
+ */
87
+ 'paymentMethod': CreatePaymentMethodRequestDto;
81
88
  }
82
89
 
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
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
+ import { SepaDto } from './sepa-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreatePaymentMethodRequestDto
22
+ */
23
+ export interface CreatePaymentMethodRequestDto {
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreatePaymentMethodRequestDto
28
+ */
29
+ 'type': string;
30
+ /**
31
+ *
32
+ * @type {SepaDto}
33
+ * @memberof CreatePaymentMethodRequestDto
34
+ */
35
+ 'sepa'?: SepaDto;
36
+ }
37
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
16
17
  import { PolicyObjectDto } from './policy-object-dto';
17
18
 
18
19
  /**
@@ -39,6 +40,12 @@ export interface GrpcUpdateLeadRequestDto {
39
40
  * @memberof GrpcUpdateLeadRequestDto
40
41
  */
41
42
  'status'?: string;
43
+ /**
44
+ * Payment method
45
+ * @type {CreatePaymentMethodRequestDto}
46
+ * @memberof GrpcUpdateLeadRequestDto
47
+ */
48
+ 'paymentMethod': CreatePaymentMethodRequestDto;
42
49
  /**
43
50
  *
44
51
  * @type {string}
package/models/index.ts CHANGED
@@ -14,9 +14,9 @@ export * from './create-customer-request-dto';
14
14
  export * from './create-customer-response-class';
15
15
  export * from './create-lead-request-dto';
16
16
  export * from './create-lead-response-class';
17
+ export * from './create-payment-method-request-dto';
17
18
  export * from './create-policy-request-dto';
18
19
  export * from './create-presigned-post-response-class';
19
- export * from './currency-class';
20
20
  export * from './customer-class';
21
21
  export * from './customer-document-class';
22
22
  export * from './customer-product-class';
@@ -62,8 +62,10 @@ export * from './request-policy-update-response-class';
62
62
  export * from './reset-password-by-customer-request-dto';
63
63
  export * from './respond-to-auth-challenge-class';
64
64
  export * from './respond-to-auth-challenge-request-dto';
65
+ export * from './sepa-dto';
65
66
  export * from './shared-customer-policy-object-request-dto';
66
67
  export * from './shared-invoice-item-class';
68
+ export * from './shared-invoice-status-class';
67
69
  export * from './terminate-customer-policy-request-dto';
68
70
  export * from './terminate-customer-policy-response-class';
69
71
  export * from './timeslice-class';
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
 
16
- import { CurrencyClass } from './currency-class';
17
16
  import { SharedInvoiceItemClass } from './shared-invoice-item-class';
17
+ import { SharedInvoiceStatusClass } from './shared-invoice-status-class';
18
18
 
19
19
  /**
20
20
  *
@@ -23,113 +23,119 @@ import { SharedInvoiceItemClass } from './shared-invoice-item-class';
23
23
  */
24
24
  export interface InvoiceClass {
25
25
  /**
26
- * policy code
26
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
27
+ * @type {number}
28
+ * @memberof InvoiceClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * Unique identifier of the policy that this object belongs to.
27
33
  * @type {string}
28
34
  * @memberof InvoiceClass
29
35
  */
30
36
  'policyCode': string;
31
37
  /**
32
- * Account number
38
+ * Account number.
33
39
  * @type {string}
34
40
  * @memberof InvoiceClass
35
41
  */
36
42
  'accountNumber': string;
37
43
  /**
38
- * Invoice code
44
+ * Unique identifier for the object.
39
45
  * @type {string}
40
46
  * @memberof InvoiceClass
41
47
  */
42
48
  'code': string;
43
49
  /**
44
- * Invoice type
50
+ * Invoice type.
45
51
  * @type {string}
46
52
  * @memberof InvoiceClass
47
53
  */
48
54
  'type': InvoiceClassTypeEnum;
49
55
  /**
50
- * Invoice number
56
+ * Invoice number.
51
57
  * @type {string}
52
58
  * @memberof InvoiceClass
53
59
  */
54
60
  'invoiceNumber': string;
55
61
  /**
56
- * Net amount
62
+ * Net amount is in cents.
57
63
  * @type {number}
58
64
  * @memberof InvoiceClass
59
65
  */
60
66
  'netAmount': number;
61
67
  /**
62
- * Tax amount
68
+ * Tax amount is in cents.
63
69
  * @type {number}
64
70
  * @memberof InvoiceClass
65
71
  */
66
72
  'taxAmount': number;
67
73
  /**
68
- * Credit amount
74
+ * Credit amount.
69
75
  * @type {number}
70
76
  * @memberof InvoiceClass
71
77
  */
72
78
  'creditAmount': number;
73
79
  /**
74
- * Surcharge amount
75
- * @type {number}
76
- * @memberof InvoiceClass
77
- */
78
- 'surcharge': number;
79
- /**
80
- * Gross amount
80
+ * Gross amount. This property is sum of taxAmount and netAmount.
81
81
  * @type {number}
82
82
  * @memberof InvoiceClass
83
83
  */
84
84
  'grossAmount': number;
85
85
  /**
86
- * Invoice status
86
+ * Invoice status.
87
87
  * @type {string}
88
88
  * @memberof InvoiceClass
89
89
  */
90
90
  'status': InvoiceClassStatusEnum;
91
91
  /**
92
- * Invoice due date
92
+ * Invoice due date.
93
93
  * @type {string}
94
94
  * @memberof InvoiceClass
95
95
  */
96
96
  'dueDate': string;
97
97
  /**
98
- * Invoice metadata
98
+ * Metadata contains extra information that the object would need for specific cases.
99
99
  * @type {object}
100
100
  * @memberof InvoiceClass
101
101
  */
102
102
  'metadata': object;
103
103
  /**
104
- * Invoice billing interval from
104
+ * Start date of billing interval.
105
105
  * @type {string}
106
106
  * @memberof InvoiceClass
107
107
  */
108
108
  'billingIntervalFrom': string;
109
109
  /**
110
- * Invoice billing interval to
110
+ * End date of billing interval.
111
111
  * @type {string}
112
112
  * @memberof InvoiceClass
113
113
  */
114
114
  'billingIntervalTo': string;
115
115
  /**
116
- * Invoice created at
116
+ * Time at which the object was created.
117
117
  * @type {string}
118
118
  * @memberof InvoiceClass
119
119
  */
120
120
  'createdAt': string;
121
121
  /**
122
- * Invoice items
122
+ * Invoice items.
123
123
  * @type {Array<SharedInvoiceItemClass>}
124
124
  * @memberof InvoiceClass
125
125
  */
126
126
  'invoiceItems': Array<SharedInvoiceItemClass>;
127
127
  /**
128
- * Currency. Set to EUR by default
129
- * @type {CurrencyClass}
128
+ * Invoice statuses.
129
+ * @type {Array<SharedInvoiceStatusClass>}
130
+ * @memberof InvoiceClass
131
+ */
132
+ 'statuses': Array<SharedInvoiceStatusClass>;
133
+ /**
134
+ * Invoice currency. EUR is used by default.
135
+ * @type {string}
130
136
  * @memberof InvoiceClass
131
137
  */
132
- 'currency': CurrencyClass;
138
+ 'currency': string;
133
139
  }
134
140
 
135
141
  export const InvoiceClassTypeEnum = {
@@ -14,7 +14,9 @@
14
14
 
15
15
 
16
16
  import { CreateAccountRequestDto } from './create-account-request-dto';
17
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
17
18
  import { CreatePolicyRequestDto } from './create-policy-request-dto';
19
+ import { InvoiceClass } from './invoice-class';
18
20
  import { LeadBankAccountClass } from './lead-bank-account-class';
19
21
  import { PremiumOverrideRequestClass } from './premium-override-request-class';
20
22
  import { UploadedDocumentDto } from './uploaded-document-dto';
@@ -97,6 +99,18 @@ export interface LeadClass {
97
99
  * @memberof LeadClass
98
100
  */
99
101
  'ern': string;
102
+ /**
103
+ * Quote or price details.
104
+ * @type {InvoiceClass}
105
+ * @memberof LeadClass
106
+ */
107
+ 'quote': InvoiceClass;
108
+ /**
109
+ * Payment method. When a payment method is provided, it needs to be handled in the workflow based on its type.
110
+ * @type {CreatePaymentMethodRequestDto}
111
+ * @memberof LeadClass
112
+ */
113
+ 'paymentMethod': CreatePaymentMethodRequestDto;
100
114
  /**
101
115
  * Time at which the object was created.
102
116
  * @type {string}
@@ -55,6 +55,7 @@ export const PremiumOverrideDtoUnitEnum = {
55
55
  Day: 'day',
56
56
  Week: 'week',
57
57
  Month: 'month',
58
+ Quarter: 'quarter',
58
59
  Year: 'year',
59
60
  OneTimePayment: 'oneTimePayment'
60
61
  } as const;
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
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 SepaDto
21
+ */
22
+ export interface SepaDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof SepaDto
27
+ */
28
+ 'iban': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SepaDto
33
+ */
34
+ 'holderName'?: string;
35
+ }
36
+
@@ -21,88 +21,118 @@
21
21
  */
22
22
  export interface SharedInvoiceItemClass {
23
23
  /**
24
- * product name
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof SharedInvoiceItemClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the premium formula.
31
+ * @type {number}
32
+ * @memberof SharedInvoiceItemClass
33
+ */
34
+ 'premiumFormulaId': number;
35
+ /**
36
+ * Product name.
25
37
  * @type {string}
26
38
  * @memberof SharedInvoiceItemClass
27
39
  */
28
40
  'name': string;
29
41
  /**
30
- * tax code
42
+ * Unique identifier of the tax that this object belongs to.
31
43
  * @type {string}
32
44
  * @memberof SharedInvoiceItemClass
33
45
  */
34
46
  'taxCode': string;
35
47
  /**
36
- * Invoice type
48
+ * The Premium unit determined based on time or distance.
37
49
  * @type {string}
38
50
  * @memberof SharedInvoiceItemClass
39
51
  */
40
- 'unit': string;
52
+ 'unit': SharedInvoiceItemClassUnitEnum;
41
53
  /**
42
- * group
54
+ * Invoice group.
43
55
  * @type {string}
44
56
  * @memberof SharedInvoiceItemClass
45
57
  */
46
58
  'group': string;
47
59
  /**
48
- * Item quantity
60
+ * Item quantity property determines number of days during the billing interval.
49
61
  * @type {number}
50
62
  * @memberof SharedInvoiceItemClass
51
63
  */
52
64
  'quantity': number;
53
65
  /**
54
- * Item price per unit
66
+ * Item price per unit.
55
67
  * @type {number}
56
68
  * @memberof SharedInvoiceItemClass
57
69
  */
58
70
  'pricePerUnit': number;
59
71
  /**
60
- * Item tax rate
72
+ * Item tax rate.
61
73
  * @type {number}
62
74
  * @memberof SharedInvoiceItemClass
63
75
  */
64
76
  'taxRate': number;
65
77
  /**
66
- * Net amount
78
+ * Net amount is in cents. It is calculated by multiplying the quantity and the price Per unit.
67
79
  * @type {number}
68
80
  * @memberof SharedInvoiceItemClass
69
81
  */
70
82
  'netAmount': number;
71
83
  /**
72
- * Net tax amount
84
+ * Tax amount is in cents.
73
85
  * @type {number}
74
86
  * @memberof SharedInvoiceItemClass
75
87
  */
76
88
  'taxAmount': number;
77
89
  /**
78
- * Gross amount
90
+ * Gross amount. This property is sum of taxAmount and netAmount.
79
91
  * @type {number}
80
92
  * @memberof SharedInvoiceItemClass
81
93
  */
82
94
  'grossAmount': number;
83
95
  /**
84
- * Credit amount
96
+ * Credit amount.
85
97
  * @type {number}
86
98
  * @memberof SharedInvoiceItemClass
87
99
  */
88
100
  'creditAmount': number;
89
101
  /**
90
- * Surcharge amount
91
- * @type {number}
102
+ * This is the date from which the invoice item interval starts.
103
+ * @type {string}
92
104
  * @memberof SharedInvoiceItemClass
93
105
  */
94
- 'surcharge': number;
106
+ 'billingIntervalFrom': string;
95
107
  /**
96
- * Invoice item interval from
108
+ * This is the date that the invoice item interval ends.
97
109
  * @type {string}
98
110
  * @memberof SharedInvoiceItemClass
99
111
  */
100
- 'billingIntervalFrom': string;
112
+ 'billingIntervalTo': string;
101
113
  /**
102
- * Invoice item interval to
114
+ * Type of Premium item.
103
115
  * @type {string}
104
116
  * @memberof SharedInvoiceItemClass
105
117
  */
106
- 'billingIntervalTo': string;
118
+ 'itemType'?: string;
119
+ /**
120
+ * Visibility of Premium item.
121
+ * @type {string}
122
+ * @memberof SharedInvoiceItemClass
123
+ */
124
+ 'visibility'?: string;
107
125
  }
108
126
 
127
+ export const SharedInvoiceItemClassUnitEnum = {
128
+ Day: 'day',
129
+ Week: 'week',
130
+ Month: 'month',
131
+ Quarter: 'quarter',
132
+ Year: 'year',
133
+ OneTimePayment: 'oneTimePayment'
134
+ } as const;
135
+
136
+ export type SharedInvoiceItemClassUnitEnum = typeof SharedInvoiceItemClassUnitEnum[keyof typeof SharedInvoiceItemClassUnitEnum];
137
+
138
+
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CustomerService
5
+ * The EMIL CustomerService API description
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 SharedInvoiceStatusClass
21
+ */
22
+ export interface SharedInvoiceStatusClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof SharedInvoiceStatusClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier referencing the invoice.
31
+ * @type {number}
32
+ * @memberof SharedInvoiceStatusClass
33
+ */
34
+ 'invoiceId': number;
35
+ /**
36
+ * Invoice type.
37
+ * @type {string}
38
+ * @memberof SharedInvoiceStatusClass
39
+ */
40
+ 'status': SharedInvoiceStatusClassStatusEnum;
41
+ /**
42
+ * Time at which the object was created.
43
+ * @type {string}
44
+ * @memberof SharedInvoiceStatusClass
45
+ */
46
+ 'createdAt': string;
47
+ }
48
+
49
+ export const SharedInvoiceStatusClassStatusEnum = {
50
+ Open: 'open',
51
+ Paid: 'paid'
52
+ } as const;
53
+
54
+ export type SharedInvoiceStatusClassStatusEnum = typeof SharedInvoiceStatusClassStatusEnum[keyof typeof SharedInvoiceStatusClassStatusEnum];
55
+
56
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { CreatePaymentMethodRequestDto } from './create-payment-method-request-dto';
16
17
  import { PolicyObjectDto } from './policy-object-dto';
17
18
 
18
19
  /**
@@ -39,5 +40,11 @@ export interface UpdateLeadRequestDto {
39
40
  * @memberof UpdateLeadRequestDto
40
41
  */
41
42
  'status'?: string;
43
+ /**
44
+ * Payment method
45
+ * @type {CreatePaymentMethodRequestDto}
46
+ * @memberof UpdateLeadRequestDto
47
+ */
48
+ 'paymentMethod': CreatePaymentMethodRequestDto;
42
49
  }
43
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }
@@ -1,48 +0,0 @@
1
- /**
2
- * EMIL CustomerService
3
- * The EMIL CustomerService API description
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 CurrencyClass
16
- */
17
- export interface CurrencyClass {
18
- /**
19
- * Internal unique identifier for the object. You should not have to use this, use code instead.
20
- * @type {number}
21
- * @memberof CurrencyClass
22
- */
23
- 'id': number;
24
- /**
25
- * Name of currency in English.
26
- * @type {string}
27
- * @memberof CurrencyClass
28
- */
29
- 'name': string;
30
- /**
31
- * Name of currency in native language.
32
- * @type {string}
33
- * @memberof CurrencyClass
34
- */
35
- 'nativeName': string;
36
- /**
37
- * Code defined by ISO 4217 standard.
38
- * @type {string}
39
- * @memberof CurrencyClass
40
- */
41
- 'code': string;
42
- /**
43
- * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
44
- * @type {string}
45
- * @memberof CurrencyClass
46
- */
47
- 'symbol': string;
48
- }
@@ -1,54 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL CustomerService
5
- * The EMIL CustomerService API description
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 CurrencyClass
21
- */
22
- export interface CurrencyClass {
23
- /**
24
- * Internal unique identifier for the object. You should not have to use this, use code instead.
25
- * @type {number}
26
- * @memberof CurrencyClass
27
- */
28
- 'id': number;
29
- /**
30
- * Name of currency in English.
31
- * @type {string}
32
- * @memberof CurrencyClass
33
- */
34
- 'name': string;
35
- /**
36
- * Name of currency in native language.
37
- * @type {string}
38
- * @memberof CurrencyClass
39
- */
40
- 'nativeName': string;
41
- /**
42
- * Code defined by ISO 4217 standard.
43
- * @type {string}
44
- * @memberof CurrencyClass
45
- */
46
- 'code': string;
47
- /**
48
- * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
49
- * @type {string}
50
- * @memberof CurrencyClass
51
- */
52
- 'symbol': string;
53
- }
54
-