@emilgroup/customer-sdk-node 1.40.0 → 1.41.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 (41) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +8 -8
  4. package/api/payments-api.ts +23 -6
  5. package/base.ts +13 -23
  6. package/dist/api/leads-api.d.ts +8 -8
  7. package/dist/api/leads-api.js +8 -8
  8. package/dist/api/payments-api.d.ts +13 -3
  9. package/dist/api/payments-api.js +13 -6
  10. package/dist/base.d.ts +2 -4
  11. package/dist/base.js +28 -37
  12. package/dist/models/card-details-dto.d.ts +42 -0
  13. package/dist/models/card-details-dto.js +15 -0
  14. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +80 -0
  15. package/dist/models/complete-adyen-payment-setup-request-dto.js +15 -0
  16. package/dist/models/complete-payment-setup-psp-request.d.ts +13 -0
  17. package/dist/models/complete-payment-setup-response-class.d.ts +3 -2
  18. package/dist/models/index.d.ts +6 -0
  19. package/dist/models/index.js +6 -0
  20. package/dist/models/initiate-adyen-payment-setup-response-class.d.ts +42 -0
  21. package/dist/models/initiate-adyen-payment-setup-response-class.js +15 -0
  22. package/dist/models/initiate-payment-setup-request-dto.d.ts +30 -0
  23. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  24. package/dist/models/initiate-payment-setup-response-class.d.ts +7 -0
  25. package/dist/models/lead-class.d.ts +1 -1
  26. package/dist/models/payment-method-class.d.ts +78 -0
  27. package/dist/models/payment-method-class.js +15 -0
  28. package/dist/models/sepa-direct-dto.d.ts +24 -0
  29. package/dist/models/sepa-direct-dto.js +15 -0
  30. package/models/card-details-dto.ts +48 -0
  31. package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
  32. package/models/complete-payment-setup-psp-request.ts +13 -0
  33. package/models/complete-payment-setup-response-class.ts +3 -2
  34. package/models/index.ts +6 -0
  35. package/models/initiate-adyen-payment-setup-response-class.ts +48 -0
  36. package/models/initiate-payment-setup-request-dto.ts +36 -0
  37. package/models/initiate-payment-setup-response-class.ts +7 -0
  38. package/models/lead-class.ts +1 -1
  39. package/models/payment-method-class.ts +84 -0
  40. package/models/sepa-direct-dto.ts +30 -0
  41. package/package.json +1 -1
@@ -0,0 +1,78 @@
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 PaymentMethodClass
16
+ */
17
+ export interface PaymentMethodClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof PaymentMethodClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof PaymentMethodClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * A unique identifier generated by the payment service provider for this payment method.
32
+ * @type {string}
33
+ * @memberof PaymentMethodClass
34
+ */
35
+ 'providerToken': string;
36
+ /**
37
+ * Customer identifier for the payment service provider.
38
+ * @type {string}
39
+ * @memberof PaymentMethodClass
40
+ */
41
+ 'pspCustomerId': string;
42
+ /**
43
+ * The payment service provider used by this payment method.
44
+ * @type {string}
45
+ * @memberof PaymentMethodClass
46
+ */
47
+ 'psp': string;
48
+ /**
49
+ * The payment method type.
50
+ * @type {string}
51
+ * @memberof PaymentMethodClass
52
+ */
53
+ 'type': string;
54
+ /**
55
+ * Identifier of the user who created the record.
56
+ * @type {string}
57
+ * @memberof PaymentMethodClass
58
+ */
59
+ 'createdBy': string;
60
+ /**
61
+ * Identifier of the user who updated the record.
62
+ * @type {string}
63
+ * @memberof PaymentMethodClass
64
+ */
65
+ 'updatedBy': string;
66
+ /**
67
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
68
+ * @type {string}
69
+ * @memberof PaymentMethodClass
70
+ */
71
+ 'productSlug'?: string;
72
+ /**
73
+ * Optional field contain extra information.
74
+ * @type {object}
75
+ * @memberof PaymentMethodClass
76
+ */
77
+ 'metadata'?: object;
78
+ }
@@ -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 });
@@ -0,0 +1,24 @@
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 SepaDirectDto
16
+ */
17
+ export interface SepaDirectDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SepaDirectDto
22
+ */
23
+ 'iban': string;
24
+ }
@@ -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 });
@@ -0,0 +1,48 @@
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 CardDetailsDto
21
+ */
22
+ export interface CardDetailsDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof CardDetailsDto
27
+ */
28
+ 'encryptedCardNumber': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CardDetailsDto
33
+ */
34
+ 'encryptedExpiryMonth': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CardDetailsDto
39
+ */
40
+ 'encryptedExpiryYear': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof CardDetailsDto
45
+ */
46
+ 'encryptedSecurityCode': string;
47
+ }
48
+
@@ -0,0 +1,86 @@
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 { CardDetailsDto } from './card-details-dto';
17
+ import { SepaDirectDto } from './sepa-direct-dto';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CompleteAdyenPaymentSetupRequestDto
23
+ */
24
+ export interface CompleteAdyenPaymentSetupRequestDto {
25
+ /**
26
+ * Unique identifier for the shopper on Adyen.
27
+ * @type {string}
28
+ * @memberof CompleteAdyenPaymentSetupRequestDto
29
+ */
30
+ 'shopperReference': string;
31
+ /**
32
+ * The payment method type on Adyen.
33
+ * @type {string}
34
+ * @memberof CompleteAdyenPaymentSetupRequestDto
35
+ */
36
+ 'paymentMethodType': string;
37
+ /**
38
+ * Unique identifier of the lead that this object belongs to.
39
+ * @type {string}
40
+ * @memberof CompleteAdyenPaymentSetupRequestDto
41
+ */
42
+ 'leadCode'?: string;
43
+ /**
44
+ * The account\'s type.
45
+ * @type {string}
46
+ * @memberof CompleteAdyenPaymentSetupRequestDto
47
+ */
48
+ 'accountType': string;
49
+ /**
50
+ * The accounts holder\'s first name.
51
+ * @type {string}
52
+ * @memberof CompleteAdyenPaymentSetupRequestDto
53
+ */
54
+ 'firstName'?: string;
55
+ /**
56
+ * The account holder\'s last name.
57
+ * @type {string}
58
+ * @memberof CompleteAdyenPaymentSetupRequestDto
59
+ */
60
+ 'lastName'?: string;
61
+ /**
62
+ * The account\'s company name.
63
+ * @type {string}
64
+ * @memberof CompleteAdyenPaymentSetupRequestDto
65
+ */
66
+ 'companyName'?: string;
67
+ /**
68
+ * The account\'s email address
69
+ * @type {string}
70
+ * @memberof CompleteAdyenPaymentSetupRequestDto
71
+ */
72
+ 'email': string;
73
+ /**
74
+ *
75
+ * @type {CardDetailsDto}
76
+ * @memberof CompleteAdyenPaymentSetupRequestDto
77
+ */
78
+ 'cardDetails'?: CardDetailsDto;
79
+ /**
80
+ *
81
+ * @type {SepaDirectDto}
82
+ * @memberof CompleteAdyenPaymentSetupRequestDto
83
+ */
84
+ 'sepaDetails'?: SepaDirectDto;
85
+ }
86
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { CompleteAdyenPaymentSetupRequestDto } from './complete-adyen-payment-setup-request-dto';
16
17
  import { CompleteBraintreePaymentSetupRequestDto } from './complete-braintree-payment-setup-request-dto';
17
18
  import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-setup-request-dto';
18
19
 
@@ -22,6 +23,12 @@ import { CompleteStripePaymentSetupRequestDto } from './complete-stripe-payment-
22
23
  * @interface CompletePaymentSetupPspRequest
23
24
  */
24
25
  export interface CompletePaymentSetupPspRequest {
26
+ /**
27
+ * Product slug.
28
+ * @type {string}
29
+ * @memberof CompletePaymentSetupPspRequest
30
+ */
31
+ 'productSlug'?: string;
25
32
  /**
26
33
  *
27
34
  * @type {CompleteStripePaymentSetupRequestDto}
@@ -34,5 +41,11 @@ export interface CompletePaymentSetupPspRequest {
34
41
  * @memberof CompletePaymentSetupPspRequest
35
42
  */
36
43
  'braintree'?: CompleteBraintreePaymentSetupRequestDto;
44
+ /**
45
+ *
46
+ * @type {CompleteAdyenPaymentSetupRequestDto}
47
+ * @memberof CompletePaymentSetupPspRequest
48
+ */
49
+ 'adyen'?: CompleteAdyenPaymentSetupRequestDto;
37
50
  }
38
51
 
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { PaymentMethodClass } from './payment-method-class';
16
17
 
17
18
  /**
18
19
  *
@@ -22,9 +23,9 @@
22
23
  export interface CompletePaymentSetupResponseClass {
23
24
  /**
24
25
  * Payment method saved in the DB.
25
- * @type {object}
26
+ * @type {PaymentMethodClass}
26
27
  * @memberof CompletePaymentSetupResponseClass
27
28
  */
28
- 'paymentMethod': object;
29
+ 'paymentMethod': PaymentMethodClass;
29
30
  }
30
31
 
package/models/index.ts CHANGED
@@ -1,10 +1,12 @@
1
1
  export * from './account-class';
2
2
  export * from './account-policy-class';
3
3
  export * from './authentication-result-class';
4
+ export * from './card-details-dto';
4
5
  export * from './change-customer-email-request-dto';
5
6
  export * from './change-password-request-dto';
6
7
  export * from './change-password-response-class';
7
8
  export * from './claim-class';
9
+ export * from './complete-adyen-payment-setup-request-dto';
8
10
  export * from './complete-braintree-payment-setup-request-dto';
9
11
  export * from './complete-payment-setup-psp-request';
10
12
  export * from './complete-payment-setup-response-class';
@@ -31,9 +33,11 @@ export * from './get-lead-response-class';
31
33
  export * from './get-policy-response-class';
32
34
  export * from './get-product-response-class';
33
35
  export * from './grpc-update-lead-request-dto';
36
+ export * from './initiate-adyen-payment-setup-response-class';
34
37
  export * from './initiate-auth-request-dto';
35
38
  export * from './initiate-auth-response-class';
36
39
  export * from './initiate-braintree-payment-setup-response-class';
40
+ export * from './initiate-payment-setup-request-dto';
37
41
  export * from './initiate-payment-setup-response-class';
38
42
  export * from './initiate-stripe-payment-setup-response-class';
39
43
  export * from './inline-response200';
@@ -54,6 +58,7 @@ export * from './list-leads-response-class';
54
58
  export * from './list-policies-response-class';
55
59
  export * from './list-products-response-class';
56
60
  export * from './partner-link-class';
61
+ export * from './payment-method-class';
57
62
  export * from './policy-class';
58
63
  export * from './policy-object-class';
59
64
  export * from './policy-object-dto';
@@ -71,6 +76,7 @@ export * from './request-policy-update-response-class';
71
76
  export * from './reset-password-by-customer-request-dto';
72
77
  export * from './respond-to-auth-challenge-class';
73
78
  export * from './respond-to-auth-challenge-request-dto';
79
+ export * from './sepa-direct-dto';
74
80
  export * from './sepa-dto';
75
81
  export * from './shared-customer-policy-object-request-dto';
76
82
  export * from './shared-invoice-item-class';
@@ -0,0 +1,48 @@
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 InitiateAdyenPaymentSetupResponseClass
21
+ */
22
+ export interface InitiateAdyenPaymentSetupResponseClass {
23
+ /**
24
+ * The client key associated with the Adyen account.
25
+ * @type {string}
26
+ * @memberof InitiateAdyenPaymentSetupResponseClass
27
+ */
28
+ 'clientKey': string;
29
+ /**
30
+ * A unique reference for the shopper.
31
+ * @type {string}
32
+ * @memberof InitiateAdyenPaymentSetupResponseClass
33
+ */
34
+ 'shopperReference': string;
35
+ /**
36
+ * The environment in which the payment request is being made (e.g., \"TEST\" or \"LIVE\").
37
+ * @type {string}
38
+ * @memberof InitiateAdyenPaymentSetupResponseClass
39
+ */
40
+ 'environment': string;
41
+ /**
42
+ * The country code associated with the shopper\'s payment details.
43
+ * @type {string}
44
+ * @memberof InitiateAdyenPaymentSetupResponseClass
45
+ */
46
+ 'country': string;
47
+ }
48
+
@@ -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 InitiatePaymentSetupRequestDto
21
+ */
22
+ export interface InitiatePaymentSetupRequestDto {
23
+ /**
24
+ * Customer code.
25
+ * @type {string}
26
+ * @memberof InitiatePaymentSetupRequestDto
27
+ */
28
+ 'customerCode': string;
29
+ /**
30
+ * Product slug.
31
+ * @type {string}
32
+ * @memberof InitiatePaymentSetupRequestDto
33
+ */
34
+ 'productSlug'?: string;
35
+ }
36
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { InitiateAdyenPaymentSetupResponseClass } from './initiate-adyen-payment-setup-response-class';
16
17
  import { InitiateBraintreePaymentSetupResponseClass } from './initiate-braintree-payment-setup-response-class';
17
18
  import { InitiateStripePaymentSetupResponseClass } from './initiate-stripe-payment-setup-response-class';
18
19
 
@@ -34,5 +35,11 @@ export interface InitiatePaymentSetupResponseClass {
34
35
  * @memberof InitiatePaymentSetupResponseClass
35
36
  */
36
37
  'braintree': InitiateBraintreePaymentSetupResponseClass;
38
+ /**
39
+ * Adyen response after generating client token.
40
+ * @type {InitiateAdyenPaymentSetupResponseClass}
41
+ * @memberof InitiatePaymentSetupResponseClass
42
+ */
43
+ 'adyen': InitiateAdyenPaymentSetupResponseClass;
37
44
  }
38
45
 
@@ -89,7 +89,7 @@ export interface LeadClass {
89
89
  */
90
90
  'premiumOverride'?: PremiumOverrideRequestClass;
91
91
  /**
92
- * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
92
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
93
93
  * @type {string}
94
94
  * @memberof LeadClass
95
95
  */
@@ -0,0 +1,84 @@
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 PaymentMethodClass
21
+ */
22
+ export interface PaymentMethodClass {
23
+ /**
24
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
25
+ * @type {number}
26
+ * @memberof PaymentMethodClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof PaymentMethodClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * A unique identifier generated by the payment service provider for this payment method.
37
+ * @type {string}
38
+ * @memberof PaymentMethodClass
39
+ */
40
+ 'providerToken': string;
41
+ /**
42
+ * Customer identifier for the payment service provider.
43
+ * @type {string}
44
+ * @memberof PaymentMethodClass
45
+ */
46
+ 'pspCustomerId': string;
47
+ /**
48
+ * The payment service provider used by this payment method.
49
+ * @type {string}
50
+ * @memberof PaymentMethodClass
51
+ */
52
+ 'psp': string;
53
+ /**
54
+ * The payment method type.
55
+ * @type {string}
56
+ * @memberof PaymentMethodClass
57
+ */
58
+ 'type': string;
59
+ /**
60
+ * Identifier of the user who created the record.
61
+ * @type {string}
62
+ * @memberof PaymentMethodClass
63
+ */
64
+ 'createdBy': string;
65
+ /**
66
+ * Identifier of the user who updated the record.
67
+ * @type {string}
68
+ * @memberof PaymentMethodClass
69
+ */
70
+ 'updatedBy': string;
71
+ /**
72
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
73
+ * @type {string}
74
+ * @memberof PaymentMethodClass
75
+ */
76
+ 'productSlug'?: string;
77
+ /**
78
+ * Optional field contain extra information.
79
+ * @type {object}
80
+ * @memberof PaymentMethodClass
81
+ */
82
+ 'metadata'?: object;
83
+ }
84
+
@@ -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 SepaDirectDto
21
+ */
22
+ export interface SepaDirectDto {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof SepaDirectDto
27
+ */
28
+ 'iban': string;
29
+ }
30
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/customer-sdk-node",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "OpenAPI client for @emilgroup/customer-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [