2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* Payments Domain - Contract
|
2025-12-25 17:30:02 +09:00
|
|
|
*
|
2025-10-08 10:33:33 +09:00
|
|
|
* Constants and types for the payments domain.
|
|
|
|
|
* All validated types are derived from schemas (see schema.ts).
|
2025-10-03 14:26:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// Payment Method Type Constants
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
2025-10-03 14:26:55 +09:00
|
|
|
export const PAYMENT_METHOD_TYPE = {
|
|
|
|
|
CREDIT_CARD: "CreditCard",
|
|
|
|
|
BANK_ACCOUNT: "BankAccount",
|
|
|
|
|
REMOTE_CREDIT_CARD: "RemoteCreditCard",
|
|
|
|
|
REMOTE_BANK_ACCOUNT: "RemoteBankAccount",
|
|
|
|
|
MANUAL: "Manual",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// Payment Gateway Type Constants
|
|
|
|
|
// ============================================================================
|
2025-10-03 14:26:55 +09:00
|
|
|
|
|
|
|
|
export const PAYMENT_GATEWAY_TYPE = {
|
|
|
|
|
MERCHANT: "merchant",
|
|
|
|
|
THIRDPARTY: "thirdparty",
|
|
|
|
|
TOKENIZATION: "tokenization",
|
|
|
|
|
MANUAL: "manual",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// Re-export Types from Schema (Schema-First Approach)
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
|
|
|
|
export type {
|
|
|
|
|
PaymentMethodType,
|
|
|
|
|
PaymentMethod,
|
|
|
|
|
PaymentMethodList,
|
|
|
|
|
PaymentGatewayType,
|
|
|
|
|
PaymentGateway,
|
|
|
|
|
PaymentGatewayList,
|
2025-12-26 13:04:15 +09:00
|
|
|
InvoicePaymentLink,
|
2025-12-25 17:30:02 +09:00
|
|
|
} from "./schema.js";
|