wedance-shared 1.0.137 → 1.0.140

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.
@@ -12,10 +12,13 @@ export type TicketCoupon = {
12
12
  discountType: TicketCouponDiscountType;
13
13
  /**
14
14
  * If fixed, discount amount is in MINOR unit. (eg: 1000 for 10.00)
15
- * if percentage, discount amount is a percentage of the ticket price. (eg: 10 for 10%)
16
- * So never decimal numbers are allowed.
17
15
  */
18
- discountAmount: number;
16
+ discountAmount: number | null;
17
+ /**
18
+ * If percentage, discount percentage is a percentage of the ticket price. (eg: 10 for 10%)
19
+ * Decimal numbers are allowed.
20
+ */
21
+ discountPercentage: number | null;
19
22
  startDate: string | null;
20
23
  expiryDate: string | null;
21
24
  organizerId: string | null;
@@ -30,7 +30,7 @@ export type OrganizerData = {
30
30
  isFlagged: boolean;
31
31
  status: "active" | "suspended" | "archived" | "inactive";
32
32
  capabilities: OrganizerCapabilities;
33
- platformFeePercentage: number;
33
+ platformFeePercentage?: number | null;
34
34
  /**
35
35
  * From 0 to 5. 0 is the highest priority.
36
36
  */
@@ -45,7 +45,8 @@ export type Ticket = {
45
45
  appliedCoupon?: {
46
46
  id: string;
47
47
  code: string;
48
- discountAmount: number;
48
+ discountAmount: number | null;
49
+ discountPercentage: number | null;
49
50
  discountType: "fixed" | "percentage";
50
51
  } | null;
51
52
  checkedInAt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.137",
3
+ "version": "1.0.140",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",