Package com.cyran.tp.server.pojo
Class Order
java.lang.Object
com.cyran.tp.server.pojo.Order
public class Order
extends java.lang.Object
Class for creating Order entity
- Author:
- Peter Spusta
-
Constructor Summary
Constructors Constructor Description Order()
-
Method Summary
Modifier and Type Method Description Cart
getCartInfo()
Returns Cart informationCreditCard
getCreditCard()
Returns payers creditCartjava.lang.Long
getId()
Returns Order Idjava.lang.String
getShipmentAddress()
Returns payer shipmentaddressjava.lang.String
getUserName()
Returns username of Uservoid
setCartInfo(Cart cartInfo)
Sets information of Cartvoid
setCreditCard(CreditCard creditCard)
Sets credit card which was used to pay ordervoid
setId(java.lang.Long id)
Sets order IDvoid
setShipmentAddress(java.lang.String shipmentAddress)
Sets payers shipmentadressvoid
setUserName(java.lang.String userName)
Sets user name of User
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
setCreditCard
Sets credit card which was used to pay order- Parameters:
creditCard
- - credit card which was used to pay order
-
getCreditCard
Returns payers creditCart- Returns:
- creditCard
-
setUserName
public void setUserName(java.lang.String userName)Sets user name of User- Parameters:
userName
- - new user name
-
getUserName
public java.lang.String getUserName()Returns username of User- Returns:
- userName
-
setShipmentAddress
public void setShipmentAddress(java.lang.String shipmentAddress)Sets payers shipmentadress- Parameters:
shipmentAddress
- - new shipmentaddress of payer
-
getShipmentAddress
public java.lang.String getShipmentAddress()Returns payer shipmentaddress- Returns:
- shipmentAddress
-
setCartInfo
Sets information of Cart- Parameters:
cartInfo
- - new cart information
-
getCartInfo
Returns Cart information- Returns:
- cartInfo
-
setId
public void setId(java.lang.Long id)Sets order ID- Parameters:
id
- - new order id
-
getId
public java.lang.Long getId()Returns Order Id- Returns:
- id
-