Package com.clover.sdk.v3.onlineorder
Class OnlineOrder
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.onlineorder.OnlineOrder
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class OnlineOrder extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OnlineOrder.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<OnlineOrder>
CREATOR
static JSONifiable.Creator<OnlineOrder>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description OnlineOrder()
Constructs a new empty instance.protected
OnlineOrder(boolean noInit)
Constructs a new empty instance.OnlineOrder(OnlineOrder src)
Constructs a new instance that is a deep copy of the source instance.OnlineOrder(String json)
Constructs a new instance from the given JSON String.OnlineOrder(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearDeliverTime()
Clears the 'deliverTime' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearLeadTime()
Clears the 'leadTime' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearNote()
Clears the 'note' field, the 'has' method for this field will now return falsevoid
clearOnlineOrderCustomer()
Clears the 'onlineOrderCustomer' field, the 'has' method for this field will now return falsevoid
clearOnlineOrderId()
Clears the 'onlineOrderId' field, the 'has' method for this field will now return falsevoid
clearOrderState()
Clears the 'orderState' field, the 'has' method for this field will now return falsevoid
clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return falsevoid
clearProviderId()
Clears the 'providerId' field, the 'has' method for this field will now return falsevoid
clearReason()
Clears the 'reason' field, the 'has' method for this field will now return falsevoid
clearReceiptId()
Clears the 'receiptId' field, the 'has' method for this field will now return falsevoid
clearScheduled()
Clears the 'scheduled' field, the 'has' method for this field will now return falsevoid
clearScheduledPickupTime()
Clears the 'scheduledPickupTime' field, the 'has' method for this field will now return falsevoid
clearService()
Clears the 'service' field, the 'has' method for this field will now return falsevoid
clearServiceFee()
Clears the 'serviceFee' field, the 'has' method for this field will now return falsevoid
clearServiceFeeItem()
Clears the 'serviceFeeItem' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.OnlineOrder
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getCreatedTime()
Timestamp when the online ordering item was createdLong
getDeletedTime()
Timestamp when online ordering item was last deletedLong
getDeliverTime()
The timestamp the order gets deliveredprotected GenericClient
getGenericClient()
String
getId()
order idJSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.Integer
getLeadTime()
Minutes of the lead time which overrides the default lead timeLong
getModifiedTime()
Timestamp when the online ordering item was last modifiedString
getNote()
An arbitrary string with information about this online order from customer to merchant, may be printed on the order receipt and displayed in appsOnlineOrderCustomer
getOnlineOrderCustomer()
the customer who submitted the order request from providerString
getOnlineOrderId()
Online Order idOrderState
getOrderState()
online order statusReference
getProvider()
online order providerProviderId
getProviderId()
Deprecated, please ignore.Reason
getReason()
The reason the online order gets rejected or cancelledString
getReceiptId()
Receipt idBoolean
getScheduled()
If the online order is a scheduled order or ASAP orderLong
getScheduledPickupTime()
The timestamp the order is scheduled to be picked upReference
getService()
online order serviceLong
getServiceFee()
amount of the service fee for the fulfillment service, such as delivery feeReference
getServiceFeeItem()
boolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasDeliverTime()
Checks whether the 'deliverTime' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasLeadTime()
Checks whether the 'leadTime' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasNote()
Checks whether the 'note' field has been set, however the value could be nullboolean
hasOnlineOrderCustomer()
Checks whether the 'onlineOrderCustomer' field has been set, however the value could be nullboolean
hasOnlineOrderId()
Checks whether the 'onlineOrderId' field has been set, however the value could be nullboolean
hasOrderState()
Checks whether the 'orderState' field has been set, however the value could be nullboolean
hasProvider()
Checks whether the 'provider' field has been set, however the value could be nullboolean
hasProviderId()
Checks whether the 'providerId' field has been set, however the value could be nullboolean
hasReason()
Checks whether the 'reason' field has been set, however the value could be nullboolean
hasReceiptId()
Checks whether the 'receiptId' field has been set, however the value could be nullboolean
hasScheduled()
Checks whether the 'scheduled' field has been set, however the value could be nullboolean
hasScheduledPickupTime()
Checks whether the 'scheduledPickupTime' field has been set, however the value could be nullboolean
hasService()
Checks whether the 'service' field has been set, however the value could be nullboolean
hasServiceFee()
Checks whether the 'serviceFee' field has been set, however the value could be nullboolean
hasServiceFeeItem()
Checks whether the 'serviceFeeItem' field has been set, however the value could be nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullDeliverTime()
Checks whether the 'deliverTime' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullLeadTime()
Checks whether the 'leadTime' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullNote()
Checks whether the 'note' field is set and is not nullboolean
isNotNullOnlineOrderCustomer()
Checks whether the 'onlineOrderCustomer' field is set and is not nullboolean
isNotNullOnlineOrderId()
Checks whether the 'onlineOrderId' field is set and is not nullboolean
isNotNullOrderState()
Checks whether the 'orderState' field is set and is not nullboolean
isNotNullProvider()
Checks whether the 'provider' field is set and is not nullboolean
isNotNullProviderId()
Checks whether the 'providerId' field is set and is not nullboolean
isNotNullReason()
Checks whether the 'reason' field is set and is not nullboolean
isNotNullReceiptId()
Checks whether the 'receiptId' field is set and is not nullboolean
isNotNullScheduled()
Checks whether the 'scheduled' field is set and is not nullboolean
isNotNullScheduledPickupTime()
Checks whether the 'scheduledPickupTime' field is set and is not nullboolean
isNotNullService()
Checks whether the 'service' field is set and is not nullboolean
isNotNullServiceFee()
Checks whether the 'serviceFee' field is set and is not nullboolean
isNotNullServiceFeeItem()
Checks whether the 'serviceFeeItem' field is set and is not nullvoid
mergeChanges(OnlineOrder src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.OnlineOrder
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.OnlineOrder
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.OnlineOrder
setDeliverTime(Long deliverTime)
Sets the field 'deliverTime'.OnlineOrder
setId(String id)
Sets the field 'id'.OnlineOrder
setLeadTime(Integer leadTime)
Sets the field 'leadTime'.OnlineOrder
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.OnlineOrder
setNote(String note)
Sets the field 'note'.OnlineOrder
setOnlineOrderCustomer(OnlineOrderCustomer onlineOrderCustomer)
Sets the field 'onlineOrderCustomer'.OnlineOrder
setOnlineOrderId(String onlineOrderId)
Sets the field 'onlineOrderId'.OnlineOrder
setOrderState(OrderState orderState)
Sets the field 'orderState'.OnlineOrder
setProvider(Reference provider)
Sets the field 'provider'.OnlineOrder
setProviderId(ProviderId providerId)
Sets the field 'providerId'.OnlineOrder
setReason(Reason reason)
Sets the field 'reason'.OnlineOrder
setReceiptId(String receiptId)
Sets the field 'receiptId'.OnlineOrder
setScheduled(Boolean scheduled)
Sets the field 'scheduled'.OnlineOrder
setScheduledPickupTime(Long scheduledPickupTime)
Sets the field 'scheduledPickupTime'.OnlineOrder
setService(Reference service)
Sets the field 'service'.OnlineOrder
setServiceFee(Long serviceFee)
Sets the field 'serviceFee'.OnlineOrder
setServiceFeeItem(Reference serviceFeeItem)
Sets the field 'serviceFeeItem'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<OnlineOrder> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<OnlineOrder> JSON_CREATOR
-
-
Constructor Detail
-
OnlineOrder
public OnlineOrder()
Constructs a new empty instance.
-
OnlineOrder
protected OnlineOrder(boolean noInit)
Constructs a new empty instance.
-
OnlineOrder
public OnlineOrder(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
OnlineOrder
public OnlineOrder(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
OnlineOrder
public OnlineOrder(OnlineOrder src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
order id
-
getOnlineOrderId
public String getOnlineOrderId()
Online Order id
-
getReceiptId
public String getReceiptId()
Receipt id
-
getService
public Reference getService()
online order service
-
getProvider
public Reference getProvider()
online order provider
-
getProviderId
public ProviderId getProviderId()
Deprecated, please ignore.
-
getOrderState
public OrderState getOrderState()
online order status
-
getOnlineOrderCustomer
public OnlineOrderCustomer getOnlineOrderCustomer()
the customer who submitted the order request from provider
-
getDeliverTime
public Long getDeliverTime()
The timestamp the order gets delivered
-
getLeadTime
public Integer getLeadTime()
Minutes of the lead time which overrides the default lead time
-
getScheduledPickupTime
public Long getScheduledPickupTime()
The timestamp the order is scheduled to be picked up
-
getReason
public Reason getReason()
The reason the online order gets rejected or cancelled
-
getNote
public String getNote()
An arbitrary string with information about this online order from customer to merchant, may be printed on the order receipt and displayed in apps
-
getScheduled
public Boolean getScheduled()
If the online order is a scheduled order or ASAP order
-
getServiceFee
public Long getServiceFee()
amount of the service fee for the fulfillment service, such as delivery fee
-
getServiceFeeItem
public Reference getServiceFeeItem()
-
getCreatedTime
public Long getCreatedTime()
Timestamp when the online ordering item was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the online ordering item was last modified
-
getDeletedTime
public Long getDeletedTime()
Timestamp when online ordering item was last deleted
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullOnlineOrderId
public boolean isNotNullOnlineOrderId()
Checks whether the 'onlineOrderId' field is set and is not null
-
isNotNullReceiptId
public boolean isNotNullReceiptId()
Checks whether the 'receiptId' field is set and is not null
-
isNotNullService
public boolean isNotNullService()
Checks whether the 'service' field is set and is not null
-
isNotNullProvider
public boolean isNotNullProvider()
Checks whether the 'provider' field is set and is not null
-
isNotNullProviderId
public boolean isNotNullProviderId()
Checks whether the 'providerId' field is set and is not null
-
isNotNullOrderState
public boolean isNotNullOrderState()
Checks whether the 'orderState' field is set and is not null
-
isNotNullOnlineOrderCustomer
public boolean isNotNullOnlineOrderCustomer()
Checks whether the 'onlineOrderCustomer' field is set and is not null
-
isNotNullDeliverTime
public boolean isNotNullDeliverTime()
Checks whether the 'deliverTime' field is set and is not null
-
isNotNullLeadTime
public boolean isNotNullLeadTime()
Checks whether the 'leadTime' field is set and is not null
-
isNotNullScheduledPickupTime
public boolean isNotNullScheduledPickupTime()
Checks whether the 'scheduledPickupTime' field is set and is not null
-
isNotNullReason
public boolean isNotNullReason()
Checks whether the 'reason' field is set and is not null
-
isNotNullNote
public boolean isNotNullNote()
Checks whether the 'note' field is set and is not null
-
isNotNullScheduled
public boolean isNotNullScheduled()
Checks whether the 'scheduled' field is set and is not null
-
isNotNullServiceFee
public boolean isNotNullServiceFee()
Checks whether the 'serviceFee' field is set and is not null
-
isNotNullServiceFeeItem
public boolean isNotNullServiceFeeItem()
Checks whether the 'serviceFeeItem' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasOnlineOrderId
public boolean hasOnlineOrderId()
Checks whether the 'onlineOrderId' field has been set, however the value could be null
-
hasReceiptId
public boolean hasReceiptId()
Checks whether the 'receiptId' field has been set, however the value could be null
-
hasService
public boolean hasService()
Checks whether the 'service' field has been set, however the value could be null
-
hasProvider
public boolean hasProvider()
Checks whether the 'provider' field has been set, however the value could be null
-
hasProviderId
public boolean hasProviderId()
Checks whether the 'providerId' field has been set, however the value could be null
-
hasOrderState
public boolean hasOrderState()
Checks whether the 'orderState' field has been set, however the value could be null
-
hasOnlineOrderCustomer
public boolean hasOnlineOrderCustomer()
Checks whether the 'onlineOrderCustomer' field has been set, however the value could be null
-
hasDeliverTime
public boolean hasDeliverTime()
Checks whether the 'deliverTime' field has been set, however the value could be null
-
hasLeadTime
public boolean hasLeadTime()
Checks whether the 'leadTime' field has been set, however the value could be null
-
hasScheduledPickupTime
public boolean hasScheduledPickupTime()
Checks whether the 'scheduledPickupTime' field has been set, however the value could be null
-
hasReason
public boolean hasReason()
Checks whether the 'reason' field has been set, however the value could be null
-
hasNote
public boolean hasNote()
Checks whether the 'note' field has been set, however the value could be null
-
hasScheduled
public boolean hasScheduled()
Checks whether the 'scheduled' field has been set, however the value could be null
-
hasServiceFee
public boolean hasServiceFee()
Checks whether the 'serviceFee' field has been set, however the value could be null
-
hasServiceFeeItem
public boolean hasServiceFeeItem()
Checks whether the 'serviceFeeItem' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
setId
public OnlineOrder setId(String id)
Sets the field 'id'.
-
setOnlineOrderId
public OnlineOrder setOnlineOrderId(String onlineOrderId)
Sets the field 'onlineOrderId'.
-
setReceiptId
public OnlineOrder setReceiptId(String receiptId)
Sets the field 'receiptId'.
-
setService
public OnlineOrder setService(Reference service)
Sets the field 'service'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setProvider
public OnlineOrder setProvider(Reference provider)
Sets the field 'provider'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setProviderId
public OnlineOrder setProviderId(ProviderId providerId)
Sets the field 'providerId'.
-
setOrderState
public OnlineOrder setOrderState(OrderState orderState)
Sets the field 'orderState'.
-
setOnlineOrderCustomer
public OnlineOrder setOnlineOrderCustomer(OnlineOrderCustomer onlineOrderCustomer)
Sets the field 'onlineOrderCustomer'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDeliverTime
public OnlineOrder setDeliverTime(Long deliverTime)
Sets the field 'deliverTime'.
-
setLeadTime
public OnlineOrder setLeadTime(Integer leadTime)
Sets the field 'leadTime'.
-
setScheduledPickupTime
public OnlineOrder setScheduledPickupTime(Long scheduledPickupTime)
Sets the field 'scheduledPickupTime'.
-
setReason
public OnlineOrder setReason(Reason reason)
Sets the field 'reason'.
-
setNote
public OnlineOrder setNote(String note)
Sets the field 'note'.
-
setScheduled
public OnlineOrder setScheduled(Boolean scheduled)
Sets the field 'scheduled'.
-
setServiceFee
public OnlineOrder setServiceFee(Long serviceFee)
Sets the field 'serviceFee'.
-
setServiceFeeItem
public OnlineOrder setServiceFeeItem(Reference serviceFeeItem)
Sets the field 'serviceFeeItem'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCreatedTime
public OnlineOrder setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public OnlineOrder setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setDeletedTime
public OnlineOrder setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearOnlineOrderId
public void clearOnlineOrderId()
Clears the 'onlineOrderId' field, the 'has' method for this field will now return false
-
clearReceiptId
public void clearReceiptId()
Clears the 'receiptId' field, the 'has' method for this field will now return false
-
clearService
public void clearService()
Clears the 'service' field, the 'has' method for this field will now return false
-
clearProvider
public void clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return false
-
clearProviderId
public void clearProviderId()
Clears the 'providerId' field, the 'has' method for this field will now return false
-
clearOrderState
public void clearOrderState()
Clears the 'orderState' field, the 'has' method for this field will now return false
-
clearOnlineOrderCustomer
public void clearOnlineOrderCustomer()
Clears the 'onlineOrderCustomer' field, the 'has' method for this field will now return false
-
clearDeliverTime
public void clearDeliverTime()
Clears the 'deliverTime' field, the 'has' method for this field will now return false
-
clearLeadTime
public void clearLeadTime()
Clears the 'leadTime' field, the 'has' method for this field will now return false
-
clearScheduledPickupTime
public void clearScheduledPickupTime()
Clears the 'scheduledPickupTime' field, the 'has' method for this field will now return false
-
clearReason
public void clearReason()
Clears the 'reason' field, the 'has' method for this field will now return false
-
clearNote
public void clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
-
clearScheduled
public void clearScheduled()
Clears the 'scheduled' field, the 'has' method for this field will now return false
-
clearServiceFee
public void clearServiceFee()
Clears the 'serviceFee' field, the 'has' method for this field will now return false
-
clearServiceFeeItem
public void clearServiceFeeItem()
Clears the 'serviceFeeItem' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public OnlineOrder copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(OnlineOrder src)
Copy all the changed fields from the given source to this instance.
-
-