Skip to main content

Variable: PaymentType

@arolariu/website


@arolariu/website / types/invoices/Payment / PaymentType

Variable: PaymentType

const PaymentType: object

Defined in: types/invoices/Payment.ts:57

Enumerates the supported payment method types.

Type Declaration

Unknown

readonly Unknown: 0 = 0

Cash

readonly Cash: 100 = 100

Card

readonly Card: 200 = 200

Transfer

readonly Transfer: 300 = 300

MobilePayment

readonly MobilePayment: 400 = 400

Voucher

readonly Voucher: 500 = 500

Other

readonly Other: 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 payment
  • Card: Credit/debit card (Visa, Mastercard, etc.)
  • Transfer: Bank wire or IBAN transfer
  • MobilePayment: 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?