add checkout
This commit is contained in:
@@ -41,3 +41,22 @@ export const formSchema = z.object({
|
||||
})
|
||||
|
||||
export type Schema = z.infer<typeof formSchema>
|
||||
|
||||
export type User = {
|
||||
id: string
|
||||
name: string
|
||||
email: string
|
||||
cpf: string
|
||||
}
|
||||
|
||||
export type Course = {
|
||||
id: string
|
||||
name: string
|
||||
access_period: number
|
||||
metadata__unit_price?: number
|
||||
}
|
||||
|
||||
export type Enrolled = {
|
||||
status: 'fail' | 'success'
|
||||
input_record: { user: any; course: any }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user