add booking and payment schema
This commit is contained in:
@@ -60,3 +60,36 @@ export const ParticipantStatus = {
|
||||
} as const
|
||||
|
||||
export type ParticipantStatus = (typeof ParticipantStatus)[keyof typeof ParticipantStatus]
|
||||
|
||||
|
||||
export const BookingStatus = {
|
||||
PENDING: 'PENDING',
|
||||
AWAITING_PAY: 'AWAITING_PAY',
|
||||
PAID: 'PAID',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REFUNDED: 'REFUNDED',
|
||||
EXPIRED: 'EXPIRED'
|
||||
} as const
|
||||
|
||||
export type BookingStatus = (typeof BookingStatus)[keyof typeof BookingStatus]
|
||||
|
||||
|
||||
export const PaymentProvider = {
|
||||
MANUAL: 'MANUAL',
|
||||
MIDTRANS: 'MIDTRANS'
|
||||
} as const
|
||||
|
||||
export type PaymentProvider = (typeof PaymentProvider)[keyof typeof PaymentProvider]
|
||||
|
||||
|
||||
export const PaymentStatus = {
|
||||
PENDING: 'PENDING',
|
||||
AWAITING: 'AWAITING',
|
||||
PAID: 'PAID',
|
||||
FAILED: 'FAILED',
|
||||
EXPIRED: 'EXPIRED',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REFUNDED: 'REFUNDED'
|
||||
} as const
|
||||
|
||||
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]
|
||||
|
||||
Reference in New Issue
Block a user