Class WebPosTransaction
java.lang.Object
org.apache.ofbiz.webpos.transaction.WebPosTransaction
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPayment
(String id, BigDecimal amount) add paymentaddPayment
(String id, BigDecimal amount, String refNum, String authCode) add paymentaddProductPromoCode
(String code) add product promo codevoid
calcTax()
calc taxint
checkPaymentMethodType
(String paymentMethodTypeId) check payment method typevoid
clearPayment
(int index) clear paymentvoid
clearPayment
(String id) clear paymentvoid
clear paymentsvoid
closeTx()
close taxgetCart()
get cartint
get drawer numberstatic int
get facilityIdget grand totalstatic int
static int
int
get number of paymentsgetPaymentInfo
(int index) get payment infogetPaymentMethodTypeId
(int index) get payment method type idget payment totalget tax totalget terminal idget terminal log idget terminal stateget total dueget total quantityget transaction idget user login idboolean
isOpen()
is openmakeCreditCardVo
(String cardNumber, String expDate, String firstName, String lastName) make credit card vovoid
modifyPrice
(int cartLineIdx, BigDecimal price) modify pricevoid
paid in outprocessAmount
(BigDecimal amount) process amountvoid
processExternalPayment
(String paymentMethodTypeId, BigDecimal amount, String refNum) process external paymentvoid
processNoPayment
(String paymentMethodTypeId) process no paymentprocess salevoid
setPaymentPostalCode
(String paymentId, String refNum, String postalCode) Postal code should be entered when a card can't be swipedvoid
setPaymentRefNum
(int paymentIndex, String refNum, String authCode) set payment ref numvoid
setPaymentSecurityCode
(String paymentId, String refNum, String securityCode) CVV2 code should be entered when a card can't be swipedvoid
setPaymentTrack2
(String paymentId, String refNum, String securityCode) Track2 data should be sent to processor when a card is swiped.
-
Field Details
-
NO_PAYMENT
public static final int NO_PAYMENT- See Also:
-
INTERNAL_PAYMENT
public static final int INTERNAL_PAYMENT- See Also:
-
EXTERNAL_PAYMENT
public static final int EXTERNAL_PAYMENT- See Also:
-
-
Constructor Details
-
WebPosTransaction
-
-
Method Details
-
getUserLoginId
get user login id -
getDrawerNumber
public int getDrawerNumber()get drawer number -
getTransactionId
get transaction id -
getTerminalId
get terminal id -
getFacilityId
get facilityId -
getTerminalLogId
get terminal log id -
isOpen
public boolean isOpen()is open -
getTerminalState
get terminal state -
closeTx
public void closeTx()close tax -
paidInOut
paid in out -
modifyPrice
modify price -
calcTax
public void calcTax()calc tax -
processSale
process sale- Throws:
GeneralException
-
clearPayments
public void clearPayments()clear payments -
clearPayment
public void clearPayment(int index) clear payment -
clearPayment
clear payment -
getPaymentInfo
get payment info -
getPaymentMethodTypeId
get payment method type id -
checkPaymentMethodType
check payment method type -
getNoPaymentCode
public static int getNoPaymentCode() -
getExternalPaymentCode
public static int getExternalPaymentCode() -
getInternalPaymentCode
public static int getInternalPaymentCode() -
addPayment
add payment -
addPayment
add payment -
processAmount
process amount- Throws:
GeneralException
-
processNoPayment
process no payment -
processExternalPayment
process external payment -
makeCreditCardVo
public String makeCreditCardVo(String cardNumber, String expDate, String firstName, String lastName) make credit card vo -
setPaymentRefNum
set payment ref num -
setPaymentSecurityCode
CVV2 code should be entered when a card can't be swiped -
setPaymentTrack2
Track2 data should be sent to processor when a card is swiped. -
setPaymentPostalCode
Postal code should be entered when a card can't be swiped -
getTaxTotal
get tax total -
getGrandTotal
get grand total -
getNumberOfPayments
public int getNumberOfPayments()get number of payments -
getPaymentTotal
get payment total -
getTotalQuantity
get total quantity -
getTotalDue
get total due -
addProductPromoCode
add product promo code -
getCart
get cart
-