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 information
    CreditCard getCreditCard()
    Returns payers creditCart
    java.lang.Long getId()
    Returns Order Id
    java.lang.String getShipmentAddress()
    Returns payer shipmentaddress
    java.lang.String getUserName()
    Returns username of User
    void setCartInfo​(Cart cartInfo)
    Sets information of Cart
    void setCreditCard​(CreditCard creditCard)
    Sets credit card which was used to pay order
    void setId​(java.lang.Long id)
    Sets order ID
    void setShipmentAddress​(java.lang.String shipmentAddress)
    Sets payers shipmentadress
    void setUserName​(java.lang.String userName)
    Sets user name of User

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setCreditCard

      public void setCreditCard​(CreditCard creditCard)
      Sets credit card which was used to pay order
      Parameters:
      creditCard - - credit card which was used to pay order
    • getCreditCard

      public CreditCard 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

      public void setCartInfo​(Cart cartInfo)
      Sets information of Cart
      Parameters:
      cartInfo - - new cart information
    • getCartInfo

      public Cart 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