Package org.mybatis.jpetstore.domain
Class Order
java.lang.Object
org.mybatis.jpetstore.domain.Order
- All Implemented Interfaces:
Serializable
The Class Order.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLineItem
(CartItem cartItem) void
addLineItem
(LineItem lineItem) int
void
Inits the order.void
setBillAddress1
(String billAddress1) void
setBillAddress2
(String billAddress2) void
setBillCity
(String billCity) void
setBillCountry
(String billCountry) void
setBillState
(String billState) void
setBillToFirstName
(String billToFirstName) void
setBillToLastName
(String billToLastName) void
setBillZip
(String billZip) void
setCardType
(String cardType) void
setCourier
(String courier) void
setCreditCard
(String creditCard) void
setExpiryDate
(String expiryDate) void
setLineItems
(List<LineItem> lineItems) void
void
setOrderDate
(Date orderDate) void
setOrderId
(int orderId) void
setShipAddress1
(String shipAddress1) void
setShipAddress2
(String shipAddress2) void
setShipCity
(String shipCity) void
setShipCountry
(String shipCountry) void
setShipState
(String shipState) void
setShipToFirstName
(String shipFoFirstName) void
setShipToLastName
(String shipToLastName) void
setShipZip
(String shipZip) void
void
setTotalPrice
(BigDecimal totalPrice) void
setUsername
(String username)
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getOrderId
public int getOrderId() -
setOrderId
public void setOrderId(int orderId) -
getUsername
-
setUsername
-
getOrderDate
-
setOrderDate
-
getShipAddress1
-
setShipAddress1
-
getShipAddress2
-
setShipAddress2
-
getShipCity
-
setShipCity
-
getShipState
-
setShipState
-
getShipZip
-
setShipZip
-
getShipCountry
-
setShipCountry
-
getBillAddress1
-
setBillAddress1
-
getBillAddress2
-
setBillAddress2
-
getBillCity
-
setBillCity
-
getBillState
-
setBillState
-
getBillZip
-
setBillZip
-
getBillCountry
-
setBillCountry
-
getCourier
-
setCourier
-
getTotalPrice
-
setTotalPrice
-
getBillToFirstName
-
setBillToFirstName
-
getBillToLastName
-
setBillToLastName
-
getShipToFirstName
-
setShipToFirstName
-
getShipToLastName
-
setShipToLastName
-
getCreditCard
-
setCreditCard
-
getExpiryDate
-
setExpiryDate
-
getCardType
-
setCardType
-
getLocale
-
setLocale
-
getStatus
-
setStatus
-
setLineItems
-
getLineItems
-
initOrder
Inits the order.- Parameters:
account
- the accountcart
- the cart
-
addLineItem
-
addLineItem
-