Class Order

java.lang.Object
org.mybatis.jpetstore.domain.Order
All Implemented Interfaces:
Serializable

public class Order extends Object implements Serializable
The Class Order.
Author:
Eduardo Macarron
See Also:
  • Constructor Details

    • Order

      public Order()
  • Method Details

    • getOrderId

      public int getOrderId()
    • setOrderId

      public void setOrderId(int orderId)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getOrderDate

      public Date getOrderDate()
    • setOrderDate

      public void setOrderDate(Date orderDate)
    • getShipAddress1

      public String getShipAddress1()
    • setShipAddress1

      public void setShipAddress1(String shipAddress1)
    • getShipAddress2

      public String getShipAddress2()
    • setShipAddress2

      public void setShipAddress2(String shipAddress2)
    • getShipCity

      public String getShipCity()
    • setShipCity

      public void setShipCity(String shipCity)
    • getShipState

      public String getShipState()
    • setShipState

      public void setShipState(String shipState)
    • getShipZip

      public String getShipZip()
    • setShipZip

      public void setShipZip(String shipZip)
    • getShipCountry

      public String getShipCountry()
    • setShipCountry

      public void setShipCountry(String shipCountry)
    • getBillAddress1

      public String getBillAddress1()
    • setBillAddress1

      public void setBillAddress1(String billAddress1)
    • getBillAddress2

      public String getBillAddress2()
    • setBillAddress2

      public void setBillAddress2(String billAddress2)
    • getBillCity

      public String getBillCity()
    • setBillCity

      public void setBillCity(String billCity)
    • getBillState

      public String getBillState()
    • setBillState

      public void setBillState(String billState)
    • getBillZip

      public String getBillZip()
    • setBillZip

      public void setBillZip(String billZip)
    • getBillCountry

      public String getBillCountry()
    • setBillCountry

      public void setBillCountry(String billCountry)
    • getCourier

      public String getCourier()
    • setCourier

      public void setCourier(String courier)
    • getTotalPrice

      public BigDecimal getTotalPrice()
    • setTotalPrice

      public void setTotalPrice(BigDecimal totalPrice)
    • getBillToFirstName

      public String getBillToFirstName()
    • setBillToFirstName

      public void setBillToFirstName(String billToFirstName)
    • getBillToLastName

      public String getBillToLastName()
    • setBillToLastName

      public void setBillToLastName(String billToLastName)
    • getShipToFirstName

      public String getShipToFirstName()
    • setShipToFirstName

      public void setShipToFirstName(String shipFoFirstName)
    • getShipToLastName

      public String getShipToLastName()
    • setShipToLastName

      public void setShipToLastName(String shipToLastName)
    • getCreditCard

      public String getCreditCard()
    • setCreditCard

      public void setCreditCard(String creditCard)
    • getExpiryDate

      public String getExpiryDate()
    • setExpiryDate

      public void setExpiryDate(String expiryDate)
    • getCardType

      public String getCardType()
    • setCardType

      public void setCardType(String cardType)
    • getLocale

      public String getLocale()
    • setLocale

      public void setLocale(String locale)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • setLineItems

      public void setLineItems(List<LineItem> lineItems)
    • getLineItems

      public List<LineItem> getLineItems()
    • initOrder

      public void initOrder(Account account, Cart cart)
      Inits the order.
      Parameters:
      account - the account
      cart - the cart
    • addLineItem

      public void addLineItem(CartItem cartItem)
    • addLineItem

      public void addLineItem(LineItem lineItem)