Class OrderFields

  • All Implemented Interfaces:
    android.os.Parcelable

    public class OrderFields
    extends BaseParams
    Class that handles all field parameters for Orders
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OrderFields.Builder  
      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<OrderFields> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderFields()
      Constructor for OrderFields
      OrderFields​(android.os.Parcel in)
      Constructor with Parcel parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBusinessDate()
      Returns the business date set for this field parameter
      java.lang.Double getChargedAmount()
      Returns the charged amount
      java.lang.String getLastFourDigits()
      Returns the last 4 digits of the credit card used
      java.lang.String getPlaceId()
      Returns the Place Id set for this field parameter
      java.lang.String getRegisterName()
      Returns the register name set for this field parameter
      java.lang.Double getSubtotal()
      Returns the subtotal set for this field parameter
      java.lang.Double getTotalAmount()
      Returns the total amount
      java.lang.String getTransactionId()
      Returns the transaction id set for this field parameter
      void setBusinessDate​(java.lang.String businessDate)
      Set the business date for this field parameter
      void setChargedAmount​(java.lang.Double chargedAmount)
      Sets the charged amount for the transaction
      void setLastFourDigits​(java.lang.String last4Digits)
      Sets the last 4 digits of the credit card used
      void setPlaceId​(java.lang.String placeId)
      Sets the place id for this field parameter
      void setRegisterName​(java.lang.String registerName)
      Sets the register name for this field parameter
      void setSubtotal​(java.lang.Double subtotal)
      Sets the subtotal value for this field parameter
      void setTotalAmount​(java.lang.Double totalAmount)
      Sets the total amount for the transaction
      void setTransactionId​(java.lang.String transactionId)
      Set the transaction id for this field parameter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<OrderFields> CREATOR
    • Constructor Detail

      • OrderFields

        public OrderFields​(android.os.Parcel in)
        Constructor with Parcel parameter
        Parameters:
        in - parcel parameter
      • OrderFields

        public OrderFields()
        Constructor for OrderFields
    • Method Detail

      • setTransactionId

        public void setTransactionId​(java.lang.String transactionId)
        Set the transaction id for this field parameter
        Parameters:
        transactionId - String transaction id of the order
      • getTransactionId

        public java.lang.String getTransactionId()
        Returns the transaction id set for this field parameter
        Returns:
        transaction id
      • setBusinessDate

        public void setBusinessDate​(java.lang.String businessDate)
        Set the business date for this field parameter
        Parameters:
        businessDate - Date transaction date of the order
      • getBusinessDate

        public java.lang.String getBusinessDate()
        Returns the business date set for this field parameter
        Returns:
        business date
      • setPlaceId

        public void setPlaceId​(java.lang.String placeId)
        Sets the place id for this field parameter
        Parameters:
        placeId - String value of the place id
      • getPlaceId

        public java.lang.String getPlaceId()
        Returns the Place Id set for this field parameter
        Returns:
        value for place id
      • setRegisterName

        public void setRegisterName​(java.lang.String registerName)
        Sets the register name for this field parameter
        Parameters:
        registerName - String value of the register name
      • getRegisterName

        public java.lang.String getRegisterName()
        Returns the register name set for this field parameter
        Returns:
        register name
      • setSubtotal

        public void setSubtotal​(java.lang.Double subtotal)
        Sets the subtotal value for this field parameter
        Parameters:
        subtotal - Double value of the subtotal
      • getSubtotal

        public java.lang.Double getSubtotal()
        Returns the subtotal set for this field parameter
        Returns:
        subtotal
      • setLastFourDigits

        public void setLastFourDigits​(java.lang.String last4Digits)
        Sets the last 4 digits of the credit card used
        Parameters:
        last4Digits - last 4 digits of the credit card
      • getLastFourDigits

        public java.lang.String getLastFourDigits()
        Returns the last 4 digits of the credit card used
        Returns:
        last 4 digits
      • setChargedAmount

        public void setChargedAmount​(java.lang.Double chargedAmount)
        Sets the charged amount for the transaction
        Parameters:
        chargedAmount - amount charged to credit card
      • getChargedAmount

        public java.lang.Double getChargedAmount()
        Returns the charged amount
        Returns:
        charged amount
      • setTotalAmount

        public void setTotalAmount​(java.lang.Double totalAmount)
        Sets the total amount for the transaction
        Parameters:
        totalAmount - total amount paid for this transaction
      • getTotalAmount

        public java.lang.Double getTotalAmount()
        Returns the total amount
        Returns:
        total amount