wedance-shared 1.0.9 → 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 +57 -1
- package/package.json +1 -1
- package/src/ticket.ts +59 -1
package/dist/ticket.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type EventTicket = {
|
|
|
41
41
|
ticketType: string;
|
|
42
42
|
eventId: string;
|
|
43
43
|
quantity: number;
|
|
44
|
-
|
|
44
|
+
amountSold: number;
|
|
45
45
|
coupons?: CouponCode[];
|
|
46
46
|
name: string;
|
|
47
47
|
description?: string;
|
|
@@ -52,4 +52,60 @@ export type EventTicket = {
|
|
|
52
52
|
isEarlyBird?: boolean;
|
|
53
53
|
isTransferable: boolean;
|
|
54
54
|
isRefundable: boolean;
|
|
55
|
+
status: "published" | "draft";
|
|
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;
|
|
55
111
|
};
|
package/package.json
CHANGED
package/src/ticket.ts
CHANGED
|
@@ -47,10 +47,11 @@ 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
|
|
53
|
-
|
|
54
|
+
amountSold: number; // Number of tickets sold
|
|
54
55
|
coupons?: CouponCode[];
|
|
55
56
|
name: string;
|
|
56
57
|
description?: string;
|
|
@@ -61,4 +62,61 @@ export type EventTicket = {
|
|
|
61
62
|
isEarlyBird?: boolean;
|
|
62
63
|
isTransferable: boolean;
|
|
63
64
|
isRefundable: boolean;
|
|
65
|
+
status: "published" | "draft";
|
|
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;
|
|
64
122
|
};
|