2026-01-13 14:25:14 +09:00
|
|
|
/**
|
|
|
|
|
* 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];
|
|
|
|
|
|
2026-02-24 11:57:43 +09:00
|
|
|
// Schema-derived types (OrderType, PriceBreakdownItem, CartItem)
|
|
|
|
|
// are exported from index.ts, not contract.ts.
|