wedance-shared 1.0.139 → 1.0.141

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;
@@ -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;
@@ -238,6 +239,7 @@ export type CheckoutSession = {
238
239
  discount_code: string | null;
239
240
  discount_code_id: string | null;
240
241
  discount_amount: number | null;
242
+ discount_percentage: number | null;
241
243
  discount_type: string | null;
242
244
  partner_name: string | null;
243
245
  test: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
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",