makeTaxiReceiptWithDiscountOrSurcharge

public final Unit makeTaxiReceiptWithDiscountOrSurcharge(TaxiData taxiData, PaymentData paymentData, String NIP, OutputStream outPut, Boolean printOnPaper, DiscountSurchargeInfo discountSurcharge)

make taxi receipt and read e-receipt if output set

Parameters

taxiData

trip information (TaxiContractPriceData)

paymentData

payment information. Can be null

NIP

purchaser NIP. Can be null

outPut

if set then write e-receipt to stream. Can be null

if

true print receipt on paper

discountSurcharge

discount/surcharge for this receipt