Class OrderFields
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.orders.core.api.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 class com.cheetahdigital.corekit.rest.params.BaseParams
BaseParams.BaseBuilder<T extends BaseParams,B extends BaseParams.BaseBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<OrderFields>
CREATOR
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
mId, mQueryMap
-
-
Constructor Summary
Constructors Constructor Description OrderFields()
Constructor forOrderFields
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 parameterjava.lang.Double
getChargedAmount()
Returns the charged amountjava.lang.String
getLastFourDigits()
Returns the last 4 digits of the credit card usedjava.lang.String
getPlaceId()
Returns the Place Id set for this field parameterjava.lang.String
getRegisterName()
Returns the register name set for this field parameterjava.lang.Double
getSubtotal()
Returns the subtotal set for this field parameterjava.lang.Double
getTotalAmount()
Returns the total amountjava.lang.String
getTransactionId()
Returns the transaction id set for this field parametervoid
setBusinessDate(java.lang.String businessDate)
Set the business date for this field parametervoid
setChargedAmount(java.lang.Double chargedAmount)
Sets the charged amount for the transactionvoid
setLastFourDigits(java.lang.String last4Digits)
Sets the last 4 digits of the credit card usedvoid
setPlaceId(java.lang.String placeId)
Sets the place id for this field parametervoid
setRegisterName(java.lang.String registerName)
Sets the register name for this field parametervoid
setSubtotal(java.lang.Double subtotal)
Sets the subtotal value for this field parametervoid
setTotalAmount(java.lang.Double totalAmount)
Sets the total amount for the transactionvoid
setTransactionId(java.lang.String transactionId)
Set the transaction id for this field parameter-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
addParam, describeContents, getAccessToken, getId, getParam, getQueryMap, setAccessToken, setId, writeToParcel
-
-
-
-
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 forOrderFields
-
-
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
-
-