refund roadmap pr-1 and pr-2
This commit is contained in:
@@ -68,6 +68,7 @@ export const BookingStatus = {
|
||||
PAID: 'PAID',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REFUNDED: 'REFUNDED',
|
||||
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
|
||||
EXPIRED: 'EXPIRED'
|
||||
} as const
|
||||
|
||||
@@ -93,3 +94,45 @@ export const PaymentStatus = {
|
||||
} as const
|
||||
|
||||
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]
|
||||
|
||||
|
||||
export const RefundReason = {
|
||||
USER_CANCELLATION: 'USER_CANCELLATION',
|
||||
ORGANIZER_CANCELLED: 'ORGANIZER_CANCELLED',
|
||||
TRIP_ISSUE: 'TRIP_ISSUE',
|
||||
ADMIN_ADJUSTMENT: 'ADMIN_ADJUSTMENT',
|
||||
DISPUTE_RESOLVED: 'DISPUTE_RESOLVED',
|
||||
OTHER: 'OTHER'
|
||||
} as const
|
||||
|
||||
export type RefundReason = (typeof RefundReason)[keyof typeof RefundReason]
|
||||
|
||||
|
||||
export const RefundStatus = {
|
||||
PENDING: 'PENDING',
|
||||
APPROVED: 'APPROVED',
|
||||
REJECTED: 'REJECTED',
|
||||
PROCESSING: 'PROCESSING',
|
||||
SUCCEEDED: 'SUCCEEDED',
|
||||
FAILED: 'FAILED'
|
||||
} as const
|
||||
|
||||
export type RefundStatus = (typeof RefundStatus)[keyof typeof RefundStatus]
|
||||
|
||||
|
||||
export const RefundInitiator = {
|
||||
USER: 'USER',
|
||||
ORGANIZER: 'ORGANIZER',
|
||||
SYSTEM: 'SYSTEM',
|
||||
ADMIN: 'ADMIN'
|
||||
} as const
|
||||
|
||||
export type RefundInitiator = (typeof RefundInitiator)[keyof typeof RefundInitiator]
|
||||
|
||||
|
||||
export const RefundReporter = {
|
||||
PARTICIPANT: 'PARTICIPANT',
|
||||
ORGANIZER: 'ORGANIZER'
|
||||
} as const
|
||||
|
||||
export type RefundReporter = (typeof RefundReporter)[keyof typeof RefundReporter]
|
||||
|
||||
Reference in New Issue
Block a user