Type Alias: PaymentType
@arolariu/website / types/invoices/Payment / PaymentType
Type Alias: PaymentType
PaymentType = typeof
PaymentType[keyof typeofPaymentType]
Defined in: types/invoices/Payment.ts:57
Enumerates the supported payment method types.
Remarks
Identifies how a transaction was settled. Payment type is extracted from invoice text during AI analysis or manually specified by users.
Numeric Values:
Values are spaced by 100 to allow future payment type additions.
Unknown (0) is the default for invoices with unidentified payment methods.
Common Mappings:
Cash: Physical currency paymentCard: Credit/debit card (Visa, Mastercard, etc.)Transfer: Bank wire or IBAN transferMobilePayment: Apple Pay, Google Pay, Revolut, etc.Voucher: Gift cards, meal vouchers, discount coupons
Example
const paymentInfo: PaymentInformation = {
paymentType: PaymentType.Card,
// ... other properties
};
// Analytics by payment method
const cardPayments = invoices.filter(i =>
i.paymentInformation.paymentType === PaymentType.Card
);
See
PaymentInformation for complete payment details
// was this page useful?