wedance-shared 1.0.10 → 1.0.11

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.
package/dist/ticket.d.ts CHANGED
@@ -54,3 +54,58 @@ export type EventTicket = {
54
54
  isRefundable: boolean;
55
55
  status: "published" | "draft";
56
56
  };
57
+ export type Payment = {
58
+ amount: number;
59
+ amount_capturable: number;
60
+ amount_details: {
61
+ tip: {
62
+ amount_received: number;
63
+ };
64
+ };
65
+ application: string | null;
66
+ application_fee_amount: number | null;
67
+ automatic_payment_methods: {
68
+ allow_redirects: "always" | "never";
69
+ enabled: boolean;
70
+ };
71
+ canceled_at: string | null;
72
+ cancellation_reason: string | null;
73
+ capture_method: "automatic" | "manual";
74
+ client_secret: string;
75
+ confirmation_method: string;
76
+ created: number;
77
+ currency: string;
78
+ customer: string;
79
+ description: string | null;
80
+ id: string;
81
+ invoice: string | null;
82
+ last_payment_error: string | null;
83
+ latest_charge: string;
84
+ livemode: boolean;
85
+ metadata: Record<string, any>;
86
+ next_action: string | null;
87
+ object: string;
88
+ on_behalf_of: string | null;
89
+ payment_method_types: ("card" | "mobilepay")[];
90
+ payment_method_configuration_details: {
91
+ id: string;
92
+ };
93
+ payment_method_options: {
94
+ card: {
95
+ network?: string;
96
+ request_three_d_secure: string;
97
+ };
98
+ mobilepay: any;
99
+ };
100
+ processing: string | null;
101
+ receipt_email: string;
102
+ review: string | null;
103
+ setup_future_usage: string | null;
104
+ shipping: string | null;
105
+ source: string | null;
106
+ statement_descriptor: string | null;
107
+ statement_descriptor_suffix: string | null;
108
+ status: "succeeded" | string;
109
+ transfer_data: string | null;
110
+ transfer_group: string | null;
111
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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",
package/src/ticket.ts CHANGED
@@ -47,6 +47,7 @@ export type CouponCode = {
47
47
  export type EventTicket = {
48
48
  id: string;
49
49
  price: number;
50
+ // ticketType is deprecated, use name instead
50
51
  ticketType: string;
51
52
  eventId: string;
52
53
  quantity: number; // Total tickets allocated
@@ -63,3 +64,59 @@ export type EventTicket = {
63
64
  isRefundable: boolean;
64
65
  status: "published" | "draft";
65
66
  };
67
+
68
+ export type Payment = {
69
+ amount: number;
70
+ amount_capturable: number;
71
+ amount_details: {
72
+ tip: {
73
+ amount_received: number;
74
+ };
75
+ };
76
+ application: string | null;
77
+ application_fee_amount: number | null;
78
+ automatic_payment_methods: {
79
+ allow_redirects: "always" | "never";
80
+ enabled: boolean;
81
+ };
82
+ canceled_at: string | null;
83
+ cancellation_reason: string | null;
84
+ capture_method: "automatic" | "manual";
85
+ client_secret: string;
86
+ confirmation_method: string;
87
+ created: number;
88
+ currency: string;
89
+ customer: string;
90
+ description: string | null;
91
+ id: string;
92
+ invoice: string | null;
93
+ last_payment_error: string | null;
94
+ latest_charge: string;
95
+ livemode: boolean;
96
+ metadata: Record<string, any>;
97
+ next_action: string | null;
98
+ object: string;
99
+ on_behalf_of: string | null;
100
+ payment_method_types: ("card" | "mobilepay")[];
101
+ payment_method_configuration_details: {
102
+ id: string;
103
+ };
104
+ payment_method_options: {
105
+ card: {
106
+ network?: string;
107
+ request_three_d_secure: string;
108
+ };
109
+ mobilepay: any;
110
+ };
111
+ processing: string | null;
112
+ receipt_email: string;
113
+ review: string | null;
114
+ setup_future_usage: string | null;
115
+ shipping: string | null;
116
+ source: string | null;
117
+ statement_descriptor: string | null;
118
+ statement_descriptor_suffix: string | null;
119
+ status: "succeeded" | string;
120
+ transfer_data: string | null;
121
+ transfer_group: string | null;
122
+ };