24 lines
693 B
TypeScript
Raw Permalink Normal View History

/**
* Checkout Domain - Contract
*
* Business constants and helpers for the checkout flow.
*/
// Re-export ORDER_TYPE from orders domain for convenience
export { ORDER_TYPE, type OrderTypeValue } from "../orders/contract.js";
/**
* Checkout-specific order types (subset of ORDER_TYPE, excludes "Other")
* These are the types that can be ordered through checkout.
*/
export const CHECKOUT_ORDER_TYPE = {
INTERNET: "Internet",
SIM: "SIM",
VPN: "VPN",
} as const;
export type CheckoutOrderTypeValue = (typeof CHECKOUT_ORDER_TYPE)[keyof typeof CHECKOUT_ORDER_TYPE];
// Schema-derived types (OrderType, PriceBreakdownItem, CartItem)
// are exported from index.ts, not contract.ts.