Variable: PaymentType
@arolariu/website / types/invoices/Payment / PaymentType
Variable: PaymentType
constPaymentType:object
Defined in: types/invoices/Payment.ts:57
Enumerates the supported payment method types.
Type Declaration
Unknown
readonlyUnknown:0=0
Cash
readonlyCash:100=100
Card
readonlyCard:200=200
Transfer
readonlyTransfer:300=300
MobilePayment
readonlyMobilePayment:400=400
Voucher
readonlyVoucher:500=500
Other
readonlyOther:9999=9999
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?