@hastehaul/common 2.0.15 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/build/events/common/enums/durable-names/customer-dname.d.ts +2 -1
- package/build/events/common/enums/durable-names/customer-dname.js +1 -0
- package/build/events/common/enums/subjects/customer-subjects.d.ts +7 -3
- package/build/events/common/enums/subjects/customer-subjects.js +6 -2
- package/build/events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request.d.ts +25 -0
- package/build/events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request.js +2 -0
- package/package.json +1 -1
@@ -14,5 +14,6 @@ export declare enum CustomerDurableName {
|
|
14
14
|
* The durable name for the consumer handling customer created events.
|
15
15
|
*/
|
16
16
|
CustomerCreatedDurablename = "customer-created-consumer",
|
17
|
-
CustomerOtpRequestDurablename = "customer-otp-request"
|
17
|
+
CustomerOtpRequestDurablename = "customer-otp-request",
|
18
|
+
CustomerPaymentMethodRequestDurablename = "customer-paymentmethod-request"
|
18
19
|
}
|
@@ -19,4 +19,5 @@ var CustomerDurableName;
|
|
19
19
|
*/
|
20
20
|
CustomerDurableName["CustomerCreatedDurablename"] = "customer-created-consumer";
|
21
21
|
CustomerDurableName["CustomerOtpRequestDurablename"] = "customer-otp-request";
|
22
|
+
CustomerDurableName["CustomerPaymentMethodRequestDurablename"] = "customer-paymentmethod-request";
|
22
23
|
})(CustomerDurableName || (exports.CustomerDurableName = CustomerDurableName = {}));
|
@@ -15,7 +15,11 @@ export declare enum CustomerSubjects {
|
|
15
15
|
*/
|
16
16
|
CustomerUnblocked = "customer.unblocked",
|
17
17
|
/**
|
18
|
-
|
19
|
-
|
20
|
-
CustomerOtpRequest = "customer.otp-request"
|
18
|
+
* The subject for customer OTP request events.
|
19
|
+
*/
|
20
|
+
CustomerOtpRequest = "customer.otp-request",
|
21
|
+
/**
|
22
|
+
* The subject for a customer to reuest default payment methods
|
23
|
+
*/
|
24
|
+
CustomerPaymentMethodRequest = "customer.paymentmethod-request"
|
21
25
|
}
|
@@ -19,7 +19,11 @@ var CustomerSubjects;
|
|
19
19
|
*/
|
20
20
|
CustomerSubjects["CustomerUnblocked"] = "customer.unblocked";
|
21
21
|
/**
|
22
|
-
|
23
|
-
|
22
|
+
* The subject for customer OTP request events.
|
23
|
+
*/
|
24
24
|
CustomerSubjects["CustomerOtpRequest"] = "customer.otp-request";
|
25
|
+
/**
|
26
|
+
* The subject for a customer to reuest default payment methods
|
27
|
+
*/
|
28
|
+
CustomerSubjects["CustomerPaymentMethodRequest"] = "customer.paymentmethod-request";
|
25
29
|
})(CustomerSubjects || (exports.CustomerSubjects = CustomerSubjects = {}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { CustomerDurableName } from '../../enums/durable-names/customer-dname';
|
2
|
+
import { CustomerStream } from '../../enums/streams/customer-stream';
|
3
|
+
import { CustomerSubjects } from '../../enums/subjects/customer-subjects';
|
4
|
+
/**
|
5
|
+
* Interface representing the "Customer PaymentMethodRequest" event.
|
6
|
+
*
|
7
|
+
* The "CustomerPaymentMethodRequestEvent" interface defines the structure of an event related to the cancellation of an customer.
|
8
|
+
* Events of this type are used to communicate customer cancellation details across the application.
|
9
|
+
*/
|
10
|
+
export interface CustomerPaymentMethodRequestEvent {
|
11
|
+
/**
|
12
|
+
* The subject of the event, specifying that it represents an "Customer PaymentMethodRequest" event.
|
13
|
+
*/
|
14
|
+
subject: CustomerSubjects.CustomerPaymentMethodRequest;
|
15
|
+
/**
|
16
|
+
* The durable name associated with the consumer handling the "Customer PaymentMethodRequest" event.
|
17
|
+
* This property is optional and may be used to identify the consumer processing the event in a durable manner.
|
18
|
+
*/
|
19
|
+
durableName?: CustomerDurableName.CustomerPaymentMethodRequestDurablename;
|
20
|
+
/**
|
21
|
+
* The stream to which the event belongs, specifying that it is an "Customer" stream.
|
22
|
+
* Events of different types may be grouped into different streams based on their common characteristics.
|
23
|
+
*/
|
24
|
+
stream: CustomerStream.Customer;
|
25
|
+
}
|