Class OrderRequest

java.lang.Object
com.cyran.tp.server.pojo.OrderRequest

public class OrderRequest
extends java.lang.Object
Class for creating order request
Author:
Peter Spusta
  • Constructor Summary

    Constructors 
    Constructor Description
    OrderRequest()  
  • Method Summary

    Modifier and Type Method Description
    Cart getCartInfo()
    Returns Cart information
    CreditCard getCreditCardInfo()
    Returns payers credit cart information
    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 setCreditCardInfo​(CreditCard creditCardInfo)
    Sets information of credit cart
    void setId​(java.lang.Long id)
    Sets order request ID
    void setShipmentAddress​(java.lang.String shipmentAddress)
    Sets payers shipmentadress
    void setUserName​(java.lang.String userName)
    Sets payers Username

    Methods inherited from class java.lang.Object

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

  • Method Details

    • setCreditCardInfo

      public void setCreditCardInfo​(CreditCard creditCardInfo)
      Sets information of credit cart
      Parameters:
      creditCardInfo - - new credit card information
    • getCreditCardInfo

      public CreditCard getCreditCardInfo()
      Returns payers credit cart information
      Returns:
      creditCardInfo
    • setUserName

      public void setUserName​(java.lang.String userName)
      Sets payers Username
      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 request ID
      Parameters:
      id - - new order id
    • getId

      public java.lang.Long getId()
      Returns Order Id
      Returns:
      id