@emilgroup/customer-sdk-node 1.63.1-beta.0 → 1.63.1-beta.5

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 (45) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/customer-controller-rest-api.ts +270 -0
  4. package/api/payments-api.ts +270 -0
  5. package/dist/api/customer-controller-rest-api.d.ts +158 -0
  6. package/dist/api/customer-controller-rest-api.js +195 -0
  7. package/dist/api/payments-api.d.ts +158 -0
  8. package/dist/api/payments-api.js +195 -0
  9. package/dist/models/attach-customer-payment-method-request-dto.d.ts +24 -0
  10. package/dist/models/attach-customer-payment-method-request-dto.js +15 -0
  11. package/dist/models/attach-customer-payment-method-response-class.d.ts +25 -0
  12. package/dist/models/attach-customer-payment-method-response-class.js +15 -0
  13. package/dist/models/create-account-request-dto.d.ts +8 -4
  14. package/dist/models/create-customer-claim-request-dto.d.ts +4 -2
  15. package/dist/models/create-lead-request-dto.d.ts +4 -2
  16. package/dist/models/customer-payment-method-class.d.ts +54 -0
  17. package/dist/models/customer-payment-method-class.js +15 -0
  18. package/dist/models/customer-policy-payment-method-class.d.ts +49 -0
  19. package/dist/models/customer-policy-payment-method-class.js +15 -0
  20. package/dist/models/index.d.ts +5 -0
  21. package/dist/models/index.js +5 -0
  22. package/dist/models/initiate-auth-request-dto.d.ts +4 -2
  23. package/dist/models/list-customer-payment-methods-response-class.d.ts +31 -0
  24. package/dist/models/list-customer-payment-methods-response-class.js +15 -0
  25. package/dist/models/policy-object-dto.d.ts +4 -2
  26. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +4 -2
  27. package/dist/models/shared-customer-policy-object-request-dto.d.ts +4 -2
  28. package/dist/models/update-account-request-dto.d.ts +8 -4
  29. package/dist/models/update-customer-claim-request-dto.d.ts +4 -2
  30. package/models/attach-customer-payment-method-request-dto.ts +30 -0
  31. package/models/attach-customer-payment-method-response-class.ts +31 -0
  32. package/models/create-account-request-dto.ts +4 -4
  33. package/models/create-customer-claim-request-dto.ts +2 -2
  34. package/models/create-lead-request-dto.ts +2 -2
  35. package/models/customer-payment-method-class.ts +60 -0
  36. package/models/customer-policy-payment-method-class.ts +55 -0
  37. package/models/index.ts +5 -0
  38. package/models/initiate-auth-request-dto.ts +2 -2
  39. package/models/list-customer-payment-methods-response-class.ts +37 -0
  40. package/models/policy-object-dto.ts +2 -2
  41. package/models/respond-to-auth-challenge-request-dto.ts +2 -2
  42. package/models/shared-customer-policy-object-request-dto.ts +2 -2
  43. package/models/update-account-request-dto.ts +4 -4
  44. package/models/update-customer-claim-request-dto.ts +2 -2
  45. package/package.json +1 -1
@@ -23,10 +23,12 @@ export interface RespondToAuthChallengeRequestDto {
23
23
  'session'?: string;
24
24
  /**
25
25
  * Responses for the challenges sent during last challenge
26
- * @type {object}
26
+ * @type {{ [key: string]: object; }}
27
27
  * @memberof RespondToAuthChallengeRequestDto
28
28
  */
29
- 'challengeResponses'?: object;
29
+ 'challengeResponses'?: {
30
+ [key: string]: object;
31
+ };
30
32
  /**
31
33
  * Challenge name
32
34
  * @type {string}
@@ -29,8 +29,10 @@ export interface SharedCustomerPolicyObjectRequestDto {
29
29
  'insuredObjectId'?: number;
30
30
  /**
31
31
  * Insured object data
32
- * @type {object}
32
+ * @type {{ [key: string]: object; }}
33
33
  * @memberof SharedCustomerPolicyObjectRequestDto
34
34
  */
35
- 'data': object;
35
+ 'data': {
36
+ [key: string]: object;
37
+ };
36
38
  }
@@ -84,16 +84,20 @@ export interface UpdateAccountRequestDto {
84
84
  'phone'?: string;
85
85
  /**
86
86
  * Optional field to enter extra information.
87
- * @type {object}
87
+ * @type {{ [key: string]: object; }}
88
88
  * @memberof UpdateAccountRequestDto
89
89
  */
90
- 'metadata'?: object;
90
+ 'metadata'?: {
91
+ [key: string]: object;
92
+ };
91
93
  /**
92
94
  * Optional field to add predefined custom fields.
93
- * @type {object}
95
+ * @type {{ [key: string]: object; }}
94
96
  * @memberof UpdateAccountRequestDto
95
97
  */
96
- 'customFields'?: object;
98
+ 'customFields'?: {
99
+ [key: string]: object;
100
+ };
97
101
  /**
98
102
  * The account\'s holder company name (Required for account of type org).
99
103
  * @type {string}
@@ -107,10 +107,12 @@ export interface UpdateCustomerClaimRequestDto {
107
107
  'notificationDate': string;
108
108
  /**
109
109
  * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
110
- * @type {object}
110
+ * @type {{ [key: string]: object; }}
111
111
  * @memberof UpdateCustomerClaimRequestDto
112
112
  */
113
- 'customFields'?: object;
113
+ 'customFields'?: {
114
+ [key: string]: object;
115
+ };
114
116
  /**
115
117
  * The policyholder for whom the claim will be created
116
118
  * @type {string}
@@ -0,0 +1,30 @@
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 AttachCustomerPaymentMethodRequestDto
21
+ */
22
+ export interface AttachCustomerPaymentMethodRequestDto {
23
+ /**
24
+ * Code of the policy to pay with this payment method from now on. The policy must belong to the customer.
25
+ * @type {string}
26
+ * @memberof AttachCustomerPaymentMethodRequestDto
27
+ */
28
+ 'policyCode': string;
29
+ }
30
+
@@ -0,0 +1,31 @@
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 { CustomerPolicyPaymentMethodClass } from './customer-policy-payment-method-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface AttachCustomerPaymentMethodResponseClass
22
+ */
23
+ export interface AttachCustomerPaymentMethodResponseClass {
24
+ /**
25
+ * The payment method now attached to the policy.
26
+ * @type {CustomerPolicyPaymentMethodClass}
27
+ * @memberof AttachCustomerPaymentMethodResponseClass
28
+ */
29
+ 'policyPaymentMethod': CustomerPolicyPaymentMethodClass;
30
+ }
31
+
@@ -100,16 +100,16 @@ export interface CreateAccountRequestDto {
100
100
  'accountNumber'?: string;
101
101
  /**
102
102
  * Optional field to enter extra information.
103
- * @type {object}
103
+ * @type {{ [key: string]: object; }}
104
104
  * @memberof CreateAccountRequestDto
105
105
  */
106
- 'metadata'?: object;
106
+ 'metadata'?: { [key: string]: object; };
107
107
  /**
108
108
  * Optional field to add predefined custom fields.
109
- * @type {object}
109
+ * @type {{ [key: string]: object; }}
110
110
  * @memberof CreateAccountRequestDto
111
111
  */
112
- 'customFields'?: object;
112
+ 'customFields'?: { [key: string]: object; };
113
113
  }
114
114
 
115
115
  export const CreateAccountRequestDtoTitleEnum = {
@@ -118,9 +118,9 @@ export interface CreateCustomerClaimRequestDto {
118
118
  'notificationDate': string;
119
119
  /**
120
120
  * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
121
- * @type {object}
121
+ * @type {{ [key: string]: object; }}
122
122
  * @memberof CreateCustomerClaimRequestDto
123
123
  */
124
- 'customFields'?: object;
124
+ 'customFields'?: { [key: string]: object; };
125
125
  }
126
126
 
@@ -58,10 +58,10 @@ export interface CreateLeadRequestDto {
58
58
  'bankAccount'?: CreateBankAccountRequestDto;
59
59
  /**
60
60
  * Custom data.
61
- * @type {object}
61
+ * @type {{ [key: string]: object; }}
62
62
  * @memberof CreateLeadRequestDto
63
63
  */
64
- 'customData'?: object;
64
+ 'customData'?: { [key: string]: object; };
65
65
  /**
66
66
  * Codes for documents to be uploaded.
67
67
  * @type {UploadedDocumentDto}
@@ -0,0 +1,60 @@
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 CustomerPaymentMethodClass
21
+ */
22
+ export interface CustomerPaymentMethodClass {
23
+ /**
24
+ * Unique identifier for the object.
25
+ * @type {string}
26
+ * @memberof CustomerPaymentMethodClass
27
+ */
28
+ 'code': string;
29
+ /**
30
+ * The payment method type.
31
+ * @type {string}
32
+ * @memberof CustomerPaymentMethodClass
33
+ */
34
+ 'type': string;
35
+ /**
36
+ * The payment service provider used by this payment method.
37
+ * @type {string}
38
+ * @memberof CustomerPaymentMethodClass
39
+ */
40
+ 'psp': string;
41
+ /**
42
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
43
+ * @type {string}
44
+ * @memberof CustomerPaymentMethodClass
45
+ */
46
+ 'productSlug'?: string;
47
+ /**
48
+ * When the payment method was added.
49
+ * @type {string}
50
+ * @memberof CustomerPaymentMethodClass
51
+ */
52
+ 'createdAt'?: string;
53
+ /**
54
+ * Details for display, such as the card brand or the last four digits of the IBAN (all other IBAN digits are masked).
55
+ * @type {object}
56
+ * @memberof CustomerPaymentMethodClass
57
+ */
58
+ 'details'?: object;
59
+ }
60
+
@@ -0,0 +1,55 @@
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 { CustomerPaymentMethodClass } from './customer-payment-method-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CustomerPolicyPaymentMethodClass
22
+ */
23
+ export interface CustomerPolicyPaymentMethodClass {
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof CustomerPolicyPaymentMethodClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Policy code
32
+ * @type {string}
33
+ * @memberof CustomerPolicyPaymentMethodClass
34
+ */
35
+ 'policyCode': string;
36
+ /**
37
+ * Whether this is the payment method now used for the policy. Always true after an attach.
38
+ * @type {boolean}
39
+ * @memberof CustomerPolicyPaymentMethodClass
40
+ */
41
+ 'isActive': boolean;
42
+ /**
43
+ * When the payment method was attached to the policy.
44
+ * @type {string}
45
+ * @memberof CustomerPolicyPaymentMethodClass
46
+ */
47
+ 'createdAt'?: string;
48
+ /**
49
+ *
50
+ * @type {CustomerPaymentMethodClass}
51
+ * @memberof CustomerPolicyPaymentMethodClass
52
+ */
53
+ 'paymentMethod': CustomerPaymentMethodClass;
54
+ }
55
+
package/models/index.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export * from './account-class';
2
2
  export * from './account-policy-class';
3
+ export * from './attach-customer-payment-method-request-dto';
4
+ export * from './attach-customer-payment-method-response-class';
3
5
  export * from './authentication-result-class';
4
6
  export * from './bank-transfer-dto';
5
7
  export * from './billing-address-dto';
@@ -26,6 +28,8 @@ export * from './create-policy-request-dto';
26
28
  export * from './create-presigned-post-response-class';
27
29
  export * from './customer-class';
28
30
  export * from './customer-document-class';
31
+ export * from './customer-payment-method-class';
32
+ export * from './customer-policy-payment-method-class';
29
33
  export * from './customer-product-class';
30
34
  export * from './forgot-password-request-dto';
31
35
  export * from './get-customer-claim-response-class';
@@ -60,6 +64,7 @@ export * from './lead-bank-account-class';
60
64
  export * from './lead-class';
61
65
  export * from './link-lead-partner-request-dto';
62
66
  export * from './list-customer-claims-response-class';
67
+ export * from './list-customer-payment-methods-response-class';
63
68
  export * from './list-documents-response-class';
64
69
  export * from './list-invoices-response-class';
65
70
  export * from './list-leads-response-class';
@@ -28,10 +28,10 @@ export interface InitiateAuthRequestDto {
28
28
  'authFlow': string;
29
29
  /**
30
30
  * Auth flow parameters for the authentication process
31
- * @type {object}
31
+ * @type {{ [key: string]: object; }}
32
32
  * @memberof InitiateAuthRequestDto
33
33
  */
34
- 'authParameters'?: object;
34
+ 'authParameters'?: { [key: string]: object; };
35
35
  /**
36
36
  * Tenant slug
37
37
  * @type {string}
@@ -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 { CustomerPaymentMethodClass } from './customer-payment-method-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListCustomerPaymentMethodsResponseClass
22
+ */
23
+ export interface ListCustomerPaymentMethodsResponseClass {
24
+ /**
25
+ * The customer\'s payment methods.
26
+ * @type {Array<CustomerPaymentMethodClass>}
27
+ * @memberof ListCustomerPaymentMethodsResponseClass
28
+ */
29
+ 'items': Array<CustomerPaymentMethodClass>;
30
+ /**
31
+ * Next page token
32
+ * @type {string}
33
+ * @memberof ListCustomerPaymentMethodsResponseClass
34
+ */
35
+ 'nextPageToken'?: string;
36
+ }
37
+
@@ -34,10 +34,10 @@ export interface PolicyObjectDto {
34
34
  'insuredObjectName'?: string;
35
35
  /**
36
36
  * Insured object data.
37
- * @type {object}
37
+ * @type {{ [key: string]: object; }}
38
38
  * @memberof PolicyObjectDto
39
39
  */
40
- 'data': object;
40
+ 'data': { [key: string]: object; };
41
41
  /**
42
42
  * Unique identifier for the object.
43
43
  * @type {string}
@@ -28,10 +28,10 @@ export interface RespondToAuthChallengeRequestDto {
28
28
  'session'?: string;
29
29
  /**
30
30
  * Responses for the challenges sent during last challenge
31
- * @type {object}
31
+ * @type {{ [key: string]: object; }}
32
32
  * @memberof RespondToAuthChallengeRequestDto
33
33
  */
34
- 'challengeResponses'?: object;
34
+ 'challengeResponses'?: { [key: string]: object; };
35
35
  /**
36
36
  * Challenge name
37
37
  * @type {string}
@@ -34,9 +34,9 @@ export interface SharedCustomerPolicyObjectRequestDto {
34
34
  'insuredObjectId'?: number;
35
35
  /**
36
36
  * Insured object data
37
- * @type {object}
37
+ * @type {{ [key: string]: object; }}
38
38
  * @memberof SharedCustomerPolicyObjectRequestDto
39
39
  */
40
- 'data': object;
40
+ 'data': { [key: string]: object; };
41
41
  }
42
42
 
@@ -89,16 +89,16 @@ export interface UpdateAccountRequestDto {
89
89
  'phone'?: string;
90
90
  /**
91
91
  * Optional field to enter extra information.
92
- * @type {object}
92
+ * @type {{ [key: string]: object; }}
93
93
  * @memberof UpdateAccountRequestDto
94
94
  */
95
- 'metadata'?: object;
95
+ 'metadata'?: { [key: string]: object; };
96
96
  /**
97
97
  * Optional field to add predefined custom fields.
98
- * @type {object}
98
+ * @type {{ [key: string]: object; }}
99
99
  * @memberof UpdateAccountRequestDto
100
100
  */
101
- 'customFields'?: object;
101
+ 'customFields'?: { [key: string]: object; };
102
102
  /**
103
103
  * The account\'s holder company name (Required for account of type org).
104
104
  * @type {string}
@@ -112,10 +112,10 @@ export interface UpdateCustomerClaimRequestDto {
112
112
  'notificationDate': string;
113
113
  /**
114
114
  * Tenant specific custom fields for claims (e.g. IMEI, Serial Number, etc.)
115
- * @type {object}
115
+ * @type {{ [key: string]: object; }}
116
116
  * @memberof UpdateCustomerClaimRequestDto
117
117
  */
118
- 'customFields'?: object;
118
+ 'customFields'?: { [key: string]: object; };
119
119
  /**
120
120
  * The policyholder for whom the claim will be created
121
121
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.63.1-beta.0",
3
+ "version": "1.63.1-beta.5",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [