@@ -58,6 +58,29 @@ const BaseCheckoutSchema = z.object({
5858 customer : CustomerOutputSchema . nullable ( ) ,
5959 customerBillingAddress : z . record ( z . any ( ) ) . nullable ( ) ,
6060 products : z . array ( CheckoutProductSchema ) . nullable ( ) ,
61+ /**
62+ * The selected product ID (from the products array).
63+ * For PRODUCTS checkouts, this is the product the customer has chosen.
64+ * null for AMOUNT/TOP_UP checkouts.
65+ */
66+ productId : z . string ( ) . nullable ( ) ,
67+ /**
68+ * The selected product price ID.
69+ * References a price from the selected product's prices array.
70+ * null for AMOUNT/TOP_UP checkouts.
71+ */
72+ productPriceId : z . string ( ) . nullable ( ) ,
73+ /**
74+ * User-provided amount for CUSTOM price products.
75+ * Only set when the selected price has amountType: CUSTOM.
76+ */
77+ customAmount : z . number ( ) . nullable ( ) ,
78+ /**
79+ * The selected product with full details (convenience field).
80+ * Same shape as items in the products array.
81+ * null if no product is selected.
82+ */
83+ product : CheckoutProductSchema . nullable ( ) ,
6184 providedAmount : z . number ( ) . nullable ( ) ,
6285 totalAmount : z . number ( ) . nullable ( ) ,
6386 discountAmount : z . number ( ) . nullable ( ) ,
0 commit comments