@epztickets/common 1.88.0 → 1.89.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.
|
@@ -51,7 +51,9 @@ export declare enum Subjects {
|
|
|
51
51
|
RenterApprovalChanged = "events.orientation.renter-approval-changed",
|
|
52
52
|
OrientationScheduled = "events.orientation.scheduled",
|
|
53
53
|
OrientationUpdated = "events.orientation.updated",
|
|
54
|
-
OwnerPlanUpdated = "events.owner-plan.updated"
|
|
54
|
+
OwnerPlanUpdated = "events.owner-plan.updated",
|
|
55
|
+
SubscriptionPaymentFailed = "events.billing.payment-failed",
|
|
56
|
+
SubscriptionPaymentRecovered = "events.billing.payment-recovered"
|
|
55
57
|
}
|
|
56
58
|
export declare enum Streams {
|
|
57
59
|
Events = "events",
|
package/build/events/subjects.js
CHANGED
|
@@ -164,6 +164,9 @@ var Subjects;
|
|
|
164
164
|
// rate, negotiated per owner. orders mirrors the commission rate to
|
|
165
165
|
// snapshot it onto each booking.
|
|
166
166
|
Subjects["OwnerPlanUpdated"] = "events.owner-plan.updated";
|
|
167
|
+
// Monthly platform-fee payment outcomes (payments → notifications).
|
|
168
|
+
Subjects["SubscriptionPaymentFailed"] = "events.billing.payment-failed";
|
|
169
|
+
Subjects["SubscriptionPaymentRecovered"] = "events.billing.payment-recovered";
|
|
167
170
|
})(Subjects || (exports.Subjects = Subjects = {}));
|
|
168
171
|
var Streams;
|
|
169
172
|
(function (Streams) {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Subjects } from "./subjects";
|
|
2
|
+
export interface SubscriptionPaymentFailedEvent {
|
|
3
|
+
subject: Subjects.SubscriptionPaymentFailed;
|
|
4
|
+
data: {
|
|
5
|
+
ownerUserId: string;
|
|
6
|
+
invoiceId: string;
|
|
7
|
+
amountCents: number;
|
|
8
|
+
attemptCount: number;
|
|
9
|
+
finalAttempt: boolean;
|
|
10
|
+
nextAttemptAt: string | null;
|
|
11
|
+
invoiceUrl: string | null;
|
|
12
|
+
occurredAt: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface SubscriptionPaymentRecoveredEvent {
|
|
16
|
+
subject: Subjects.SubscriptionPaymentRecovered;
|
|
17
|
+
data: {
|
|
18
|
+
ownerUserId: string;
|
|
19
|
+
invoiceId: string;
|
|
20
|
+
amountCents: number;
|
|
21
|
+
occurredAt: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
package/build/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ export * from "./events/orientation-scheduled-event";
|
|
|
39
39
|
export * from "./events/orientation-updated-event";
|
|
40
40
|
export * from "./events/class-category";
|
|
41
41
|
export * from "./events/owner-plan-updated-event";
|
|
42
|
+
export * from "./events/subscription-payment-events";
|
|
42
43
|
export * from "./events/order-cancelled-event";
|
|
43
44
|
export * from "./events/order-completed-event";
|
|
44
45
|
export * from "./events/order-created-event";
|
package/build/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __exportStar(require("./events/orientation-scheduled-event"), exports);
|
|
|
59
59
|
__exportStar(require("./events/orientation-updated-event"), exports);
|
|
60
60
|
__exportStar(require("./events/class-category"), exports);
|
|
61
61
|
__exportStar(require("./events/owner-plan-updated-event"), exports);
|
|
62
|
+
__exportStar(require("./events/subscription-payment-events"), exports);
|
|
62
63
|
__exportStar(require("./events/order-cancelled-event"), exports);
|
|
63
64
|
__exportStar(require("./events/order-completed-event"), exports);
|
|
64
65
|
__exportStar(require("./events/order-created-event"), exports);
|