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()
      Gets the order id.
      Returns:
      the order id
    • setOrderId

      public void setOrderId(int orderId)
      Sets the order id.
      Parameters:
      orderId - the order id
    • getUsername

      public String getUsername()
      Gets the username.
      Returns:
      the username
    • setUsername

      public void setUsername(String username)
      Sets the username.
      Parameters:
      username - the username
    • getOrderDate

      public Date getOrderDate()
      Gets the order date.
      Returns:
      the order date
    • setOrderDate

      public void setOrderDate(Date orderDate)
      Sets the order date.
      Parameters:
      orderDate - the order date
    • getShipAddress1

      public String getShipAddress1()
      Gets the ship address1.
      Returns:
      the ship address1
    • setShipAddress1

      public void setShipAddress1(String shipAddress1)
      Sets the ship address1.
      Parameters:
      shipAddress1 - the ship address1
    • getShipAddress2

      public String getShipAddress2()
      Gets the ship address2.
      Returns:
      the ship address2
    • setShipAddress2

      public void setShipAddress2(String shipAddress2)
      Sets the ship address2.
      Parameters:
      shipAddress2 - the ship address2
    • getShipCity

      public String getShipCity()
      Gets the ship city.
      Returns:
      the ship city
    • setShipCity

      public void setShipCity(String shipCity)
      Sets the ship city.
      Parameters:
      shipCity - the ship city
    • getShipState

      public String getShipState()
      Gets the ship state.
      Returns:
      the ship state
    • setShipState

      public void setShipState(String shipState)
      Sets the ship state.
      Parameters:
      shipState - the ship state
    • getShipZip

      public String getShipZip()
      Gets the ship zip.
      Returns:
      the ship zip
    • setShipZip

      public void setShipZip(String shipZip)
      Sets the ship zip.
      Parameters:
      shipZip - the ship zip
    • getShipCountry

      public String getShipCountry()
      Gets the ship country.
      Returns:
      the ship country
    • setShipCountry

      public void setShipCountry(String shipCountry)
      Sets the ship country.
      Parameters:
      shipCountry - the ship country
    • getBillAddress1

      public String getBillAddress1()
      Gets the bill address1.
      Returns:
      the bill address1
    • setBillAddress1

      public void setBillAddress1(String billAddress1)
      Sets the bill address1.
      Parameters:
      billAddress1 - the bill address1
    • getBillAddress2

      public String getBillAddress2()
      Gets the bill address2.
      Returns:
      the bill address2
    • setBillAddress2

      public void setBillAddress2(String billAddress2)
      Sets the bill address2.
      Parameters:
      billAddress2 - the bill address2
    • getBillCity

      public String getBillCity()
      Gets the bill city.
      Returns:
      the bill city
    • setBillCity

      public void setBillCity(String billCity)
      Sets the bill city.
      Parameters:
      billCity - the bill city
    • getBillState

      public String getBillState()
      Gets the bill state.
      Returns:
      the bill state
    • setBillState

      public void setBillState(String billState)
      Sets the bill state.
      Parameters:
      billState - the bill state
    • getBillZip

      public String getBillZip()
      Gets the bill zip.
      Returns:
      the bill zip
    • setBillZip

      public void setBillZip(String billZip)
      Sets the bill zip.
      Parameters:
      billZip - the bill zip
    • getBillCountry

      public String getBillCountry()
      Gets the bill country.
      Returns:
      the bill country
    • setBillCountry

      public void setBillCountry(String billCountry)
      Sets the bill country.
      Parameters:
      billCountry - the bill country
    • getCourier

      public String getCourier()
      Gets the courier.
      Returns:
      the courier
    • setCourier

      public void setCourier(String courier)
      Sets the courier.
      Parameters:
      courier - the courier
    • getTotalPrice

      public BigDecimal getTotalPrice()
      Gets the total price.
      Returns:
      the total price
    • setTotalPrice

      public void setTotalPrice(BigDecimal totalPrice)
      Sets the total price.
      Parameters:
      totalPrice - the total price
    • getBillToFirstName

      public String getBillToFirstName()
      Gets the bill to first name.
      Returns:
      the bill to first name
    • setBillToFirstName

      public void setBillToFirstName(String billToFirstName)
      Sets the bill to first name.
      Parameters:
      billToFirstName - the bill to first name
    • getBillToLastName

      public String getBillToLastName()
      Gets the bill to last name.
      Returns:
      the bill to last name
    • setBillToLastName

      public void setBillToLastName(String billToLastName)
      Sets the bill to last name.
      Parameters:
      billToLastName - the bill to last name
    • getShipToFirstName

      public String getShipToFirstName()
      Gets the ship to first name.
      Returns:
      the ship to first name
    • setShipToFirstName

      public void setShipToFirstName(String shipFoFirstName)
      Sets the ship to first name.
      Parameters:
      shipFoFirstName - the ship fo first name
    • getShipToLastName

      public String getShipToLastName()
      Gets the ship to last name.
      Returns:
      the ship to last name
    • setShipToLastName

      public void setShipToLastName(String shipToLastName)
      Sets the ship to last name.
      Parameters:
      shipToLastName - the ship to last name
    • getCreditCard

      public String getCreditCard()
      Gets the credit card.
      Returns:
      the credit card
    • setCreditCard

      public void setCreditCard(String creditCard)
      Sets the credit card.
      Parameters:
      creditCard - the credit card
    • getExpiryDate

      public String getExpiryDate()
      Gets the expiry date.
      Returns:
      the expiry date
    • setExpiryDate

      public void setExpiryDate(String expiryDate)
      Sets the expiry date.
      Parameters:
      expiryDate - the expiry date
    • getCardType

      public String getCardType()
      Gets the card type.
      Returns:
      the card type
    • setCardType

      public void setCardType(String cardType)
      Sets the card type.
      Parameters:
      cardType - the card type
    • getLocale

      public String getLocale()
      Gets the locale.
      Returns:
      the locale
    • setLocale

      public void setLocale(String locale)
      Sets the locale.
      Parameters:
      locale - the locale
    • getStatus

      public String getStatus()
      Gets the status.
      Returns:
      the status
    • setStatus

      public void setStatus(String status)
      Sets the status.
      Parameters:
      status - the status
    • setLineItems

      public void setLineItems(List<LineItem> lineItems)
      Sets the line items.
      Parameters:
      lineItems - the line items
    • getLineItems

      public List<LineItem> getLineItems()
      Gets the line items.
      Returns:
      the line items
    • initOrder

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

      public void addLineItem(CartItem cartItem)
      Add line item.
      Parameters:
      cartItem - the cart item
    • addLineItem

      public void addLineItem(LineItem lineItem)
      Add line item.
      Parameters:
      lineItem - the line item