@epztickets/common 1.87.0 → 1.88.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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Subjects } from "./subjects";
|
|
2
|
+
export declare const DEFAULT_MONTHLY_FEE_CENTS = 0;
|
|
3
|
+
export declare const DEFAULT_COMMISSION_RATE = 0.1;
|
|
4
|
+
export interface OwnerPlanUpdatedEvent {
|
|
5
|
+
subject: Subjects.OwnerPlanUpdated;
|
|
6
|
+
data: {
|
|
7
|
+
ownerUserId: string;
|
|
8
|
+
monthlyFeeCents: number;
|
|
9
|
+
commissionRate: number;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_COMMISSION_RATE = exports.DEFAULT_MONTHLY_FEE_CENTS = void 0;
|
|
4
|
+
// Platform default for owners without a negotiated plan:
|
|
5
|
+
// no monthly fee, 10% commission on bookings made through the app.
|
|
6
|
+
exports.DEFAULT_MONTHLY_FEE_CENTS = 0;
|
|
7
|
+
exports.DEFAULT_COMMISSION_RATE = 0.1;
|
|
@@ -50,7 +50,8 @@ export declare enum Subjects {
|
|
|
50
50
|
OrientationSettingsUpdated = "events.orientation.settings-updated",
|
|
51
51
|
RenterApprovalChanged = "events.orientation.renter-approval-changed",
|
|
52
52
|
OrientationScheduled = "events.orientation.scheduled",
|
|
53
|
-
OrientationUpdated = "events.orientation.updated"
|
|
53
|
+
OrientationUpdated = "events.orientation.updated",
|
|
54
|
+
OwnerPlanUpdated = "events.owner-plan.updated"
|
|
54
55
|
}
|
|
55
56
|
export declare enum Streams {
|
|
56
57
|
Events = "events",
|
package/build/events/subjects.js
CHANGED
|
@@ -160,6 +160,10 @@ var Subjects;
|
|
|
160
160
|
Subjects["RenterApprovalChanged"] = "events.orientation.renter-approval-changed";
|
|
161
161
|
Subjects["OrientationScheduled"] = "events.orientation.scheduled";
|
|
162
162
|
Subjects["OrientationUpdated"] = "events.orientation.updated";
|
|
163
|
+
// Owner pricing plan (payments owns it): monthly fee + commission
|
|
164
|
+
// rate, negotiated per owner. orders mirrors the commission rate to
|
|
165
|
+
// snapshot it onto each booking.
|
|
166
|
+
Subjects["OwnerPlanUpdated"] = "events.owner-plan.updated";
|
|
163
167
|
})(Subjects || (exports.Subjects = Subjects = {}));
|
|
164
168
|
var Streams;
|
|
165
169
|
(function (Streams) {
|
package/build/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export * from "./events/renter-approval-changed-event";
|
|
|
38
38
|
export * from "./events/orientation-scheduled-event";
|
|
39
39
|
export * from "./events/orientation-updated-event";
|
|
40
40
|
export * from "./events/class-category";
|
|
41
|
+
export * from "./events/owner-plan-updated-event";
|
|
41
42
|
export * from "./events/order-cancelled-event";
|
|
42
43
|
export * from "./events/order-completed-event";
|
|
43
44
|
export * from "./events/order-created-event";
|
package/build/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __exportStar(require("./events/renter-approval-changed-event"), exports);
|
|
|
58
58
|
__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
|
+
__exportStar(require("./events/owner-plan-updated-event"), exports);
|
|
61
62
|
__exportStar(require("./events/order-cancelled-event"), exports);
|
|
62
63
|
__exportStar(require("./events/order-completed-event"), exports);
|
|
63
64
|
__exportStar(require("./events/order-created-event"), exports);
|