addPayment

public final Unit addPayment(PaymentData paymentData)

See also


public final Unit addPayment(Integer paymentNumber, String paymentName, Integer paymentValue, PaymentOrChange paymentOrChange, PaymentSetOrAddOrSubtract paymentSetOrAddOrSub, PaymentKind paymentKindONLINE)

save payment details on printer and print them at the end of automaticGrantedToReceipt

Parameters

paymentNumber

number of payment

paymentName

name of payment

paymentValue

value of payment

paymentOrChange

is payment or is change

paymentSetOrAddOrSub

can be null; if 'Set' then value of this number is set to paidInForeignCurrency if 'Add' then paidInForeignCurrency is add to value of this currency number; if 'Sub' then paidInForeignCurrency is subtracted from value of this currency number