24 lines
686 B
TypeScript
24 lines
686 B
TypeScript
|
|
/**
|
||
|
|
* 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];
|
||
|
|
|
||
|
|
// Re-export types from schema
|
||
|
|
export type { OrderType, PriceBreakdownItem, CartItem } from "./schema.js";
|