💥 Done (almost)
This commit is contained in:
@@ -102,16 +102,22 @@ export function getDefaultPaginatedOrderInfoModel(): PaginatedOrderInfoModel {
|
||||
};
|
||||
}
|
||||
|
||||
export const newOrderModel = orderModel.pick({
|
||||
basePrice: true,
|
||||
displayPrice: true,
|
||||
discountAmount: true,
|
||||
orderPrice: true,
|
||||
fullfilledPrice: true,
|
||||
productId: true,
|
||||
customerInfoId: true,
|
||||
paymentInfoId: true,
|
||||
});
|
||||
export const newOrderModel = orderModel
|
||||
.pick({
|
||||
basePrice: true,
|
||||
displayPrice: true,
|
||||
discountAmount: true,
|
||||
orderPrice: true,
|
||||
fullfilledPrice: true,
|
||||
productId: true,
|
||||
customerInfoId: true,
|
||||
paymentInfoId: true,
|
||||
})
|
||||
.extend({
|
||||
currency: z.string().default("USD"),
|
||||
customerInfoId: z.number().optional(),
|
||||
paymentInfoId: z.number().optional(),
|
||||
});
|
||||
export type NewOrderModel = z.infer<typeof newOrderModel>;
|
||||
|
||||
export const createOrderPayloadModel = z.object({
|
||||
|
||||
Reference in New Issue
Block a user