Class WebPosTransaction


  • public class WebPosTransaction
    extends java.lang.Object
    • Constructor Detail

      • WebPosTransaction

        public WebPosTransaction​(WebPosSession session)
    • Method Detail

      • getUserLoginId

        public java.lang.String getUserLoginId()
        get user login id
      • getDrawerNumber

        public int getDrawerNumber()
        get drawer number
      • getTransactionId

        public java.lang.String getTransactionId()
        get transaction id
      • getTerminalId

        public java.lang.String getTerminalId()
        get terminal id
      • getFacilityId

        public java.lang.String getFacilityId()
        get facilityId
      • getTerminalLogId

        public java.lang.String getTerminalLogId()
        get terminal log id
      • isOpen

        public boolean isOpen()
        is open
      • getTerminalState

        public GenericValue getTerminalState()
        get terminal state
      • closeTx

        public void closeTx()
        close tax
      • paidInOut

        public void paidInOut​(java.lang.String type)
        paid in out
      • modifyPrice

        public void modifyPrice​(int cartLineIdx,
                                java.math.BigDecimal price)
        modify price
      • calcTax

        public void calcTax()
        calc tax
      • clearPayments

        public void clearPayments()
        clear payments
      • clearPayment

        public void clearPayment​(int index)
        clear payment
      • clearPayment

        public void clearPayment​(java.lang.String id)
        clear payment
      • getPaymentMethodTypeId

        public java.lang.String getPaymentMethodTypeId​(int index)
        get payment method type id
      • checkPaymentMethodType

        public int checkPaymentMethodType​(java.lang.String paymentMethodTypeId)
        check payment method type
      • getNoPaymentCode

        public static int getNoPaymentCode()
      • getExternalPaymentCode

        public static int getExternalPaymentCode()
      • getInternalPaymentCode

        public static int getInternalPaymentCode()
      • addPayment

        public java.math.BigDecimal addPayment​(java.lang.String id,
                                               java.math.BigDecimal amount)
        add payment
      • addPayment

        public java.math.BigDecimal addPayment​(java.lang.String id,
                                               java.math.BigDecimal amount,
                                               java.lang.String refNum,
                                               java.lang.String authCode)
        add payment
      • processNoPayment

        public void processNoPayment​(java.lang.String paymentMethodTypeId)
        process no payment
      • processExternalPayment

        public void processExternalPayment​(java.lang.String paymentMethodTypeId,
                                           java.math.BigDecimal amount,
                                           java.lang.String refNum)
        process external payment
      • makeCreditCardVo

        public java.lang.String makeCreditCardVo​(java.lang.String cardNumber,
                                                 java.lang.String expDate,
                                                 java.lang.String firstName,
                                                 java.lang.String lastName)
        make credit card vo
      • setPaymentRefNum

        public void setPaymentRefNum​(int paymentIndex,
                                     java.lang.String refNum,
                                     java.lang.String authCode)
        set payment ref num
      • setPaymentSecurityCode

        public void setPaymentSecurityCode​(java.lang.String paymentId,
                                           java.lang.String refNum,
                                           java.lang.String securityCode)
        CVV2 code should be entered when a card can't be swiped
      • setPaymentTrack2

        public void setPaymentTrack2​(java.lang.String paymentId,
                                     java.lang.String refNum,
                                     java.lang.String securityCode)
        Track2 data should be sent to processor when a card is swiped.
      • setPaymentPostalCode

        public void setPaymentPostalCode​(java.lang.String paymentId,
                                         java.lang.String refNum,
                                         java.lang.String postalCode)
        Postal code should be entered when a card can't be swiped
      • getTaxTotal

        public java.math.BigDecimal getTaxTotal()
        get tax total
      • getGrandTotal

        public java.math.BigDecimal getGrandTotal()
        get grand total
      • getNumberOfPayments

        public int getNumberOfPayments()
        get number of payments
      • getPaymentTotal

        public java.math.BigDecimal getPaymentTotal()
        get payment total
      • getTotalQuantity

        public java.math.BigDecimal getTotalQuantity()
        get total quantity
      • getTotalDue

        public java.math.BigDecimal getTotalDue()
        get total due
      • addProductPromoCode

        public java.lang.String addProductPromoCode​(java.lang.String code)
        add product promo code