feat(payment): support user-bound seven-discount offers
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const CommercialOfferResponseSchema = z
|
||||
.object({
|
||||
commercialOfferId: z.string().min(1),
|
||||
planId: z.string().min(1),
|
||||
subscriptionType: z.enum(["vip", "topup"]),
|
||||
discountPercent: z.number().int().min(0).max(100),
|
||||
pricePercent: z.number().int().min(0).max(100),
|
||||
expiresAt: z.string().min(1),
|
||||
message: z.string().min(1),
|
||||
promotionType: z.string().min(1),
|
||||
})
|
||||
.readonly();
|
||||
|
||||
export type CommercialOfferResponse = z.output<
|
||||
typeof CommercialOfferResponseSchema
|
||||
>;
|
||||
Reference in New Issue
Block a user