@hastehaul/common 2.0.15 → 2.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- * The subject for customer OTP request events.
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
- * The subject for customer OTP request events.
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/index.d.ts CHANGED
@@ -137,6 +137,7 @@ export * from "./events/common/interfaces/customer-events-interfaces/customer-cr
137
137
  export * from "./events/common/interfaces/customer-events-interfaces/customer-unblocked-event";
138
138
  export * from "./events/common/interfaces/customer-events-interfaces/customer-new-event";
139
139
  export * from "./events/common/interfaces/customer-events-interfaces/customer-otp-request-event";
140
+ export * from "./events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request";
140
141
  /**
141
142
  * Re-exports all the interfaces related to streams from the "stream-interfaces" file.
142
143
  *
package/build/index.js CHANGED
@@ -169,6 +169,7 @@ __exportStar(require("./events/common/interfaces/customer-events-interfaces/cust
169
169
  __exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-unblocked-event"), exports);
170
170
  __exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-new-event"), exports);
171
171
  __exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-otp-request-event"), exports);
172
+ __exportStar(require("./events/common/interfaces/customer-events-interfaces/customer-paymentmethod-request"), exports);
172
173
  //! Interfaces related to payment events are currently commented out using '//'.
173
174
  // export * from "./payment-event-interfaces";
174
175
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",