Class OnlineOrder

    • Constructor Detail

      • OnlineOrder

        public OnlineOrder()
        Constructs a new empty instance.
      • OnlineOrder

        protected OnlineOrder​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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
      • 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'.
      • 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.