Class WebPosTransaction

java.lang.Object
org.apache.ofbiz.webpos.transaction.WebPosTransaction

public class WebPosTransaction extends Object
  • Field Details

  • Constructor Details

    • WebPosTransaction

      public WebPosTransaction(WebPosSession session)
  • Method Details

    • getUserLoginId

      public String getUserLoginId()
      get user login id
    • getDrawerNumber

      public int getDrawerNumber()
      get drawer number
    • getTransactionId

      public String getTransactionId()
      get transaction id
    • getTerminalId

      public String getTerminalId()
      get terminal id
    • getFacilityId

      public String getFacilityId()
      get facilityId
    • getTerminalLogId

      public 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(String type)
      paid in out
    • modifyPrice

      public void modifyPrice(int cartLineIdx, BigDecimal price)
      modify price
    • calcTax

      public void calcTax()
      calc tax
    • processSale

      public BigDecimal processSale() throws GeneralException
      process sale
      Throws:
      GeneralException
    • clearPayments

      public void clearPayments()
      clear payments
    • clearPayment

      public void clearPayment(int index)
      clear payment
    • clearPayment

      public void clearPayment(String id)
      clear payment
    • getPaymentInfo

      public ShoppingCart.CartPaymentInfo getPaymentInfo(int index)
      get payment info
    • getPaymentMethodTypeId

      public String getPaymentMethodTypeId(int index)
      get payment method type id
    • checkPaymentMethodType

      public int checkPaymentMethodType(String paymentMethodTypeId)
      check payment method type
    • getNoPaymentCode

      public static int getNoPaymentCode()
    • getExternalPaymentCode

      public static int getExternalPaymentCode()
    • getInternalPaymentCode

      public static int getInternalPaymentCode()
    • addPayment

      public BigDecimal addPayment(String id, BigDecimal amount)
      add payment
    • addPayment

      public BigDecimal addPayment(String id, BigDecimal amount, String refNum, String authCode)
      add payment
    • processAmount

      public BigDecimal processAmount(BigDecimal amount) throws GeneralException
      process amount
      Throws:
      GeneralException
    • processNoPayment

      public void processNoPayment(String paymentMethodTypeId)
      process no payment
    • processExternalPayment

      public void processExternalPayment(String paymentMethodTypeId, BigDecimal amount, String refNum)
      process external payment
    • makeCreditCardVo

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

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

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

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

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

      public BigDecimal getTaxTotal()
      get tax total
    • getGrandTotal

      public BigDecimal getGrandTotal()
      get grand total
    • getNumberOfPayments

      public int getNumberOfPayments()
      get number of payments
    • getPaymentTotal

      public BigDecimal getPaymentTotal()
      get payment total
    • getTotalQuantity

      public BigDecimal getTotalQuantity()
      get total quantity
    • getTotalDue

      public BigDecimal getTotalDue()
      get total due
    • addProductPromoCode

      public String addProductPromoCode(String code)
      add product promo code
    • getCart

      public ShoppingCart getCart()
      get cart