Class BookingBusiness

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class BookingBusiness
    extends BookingNamedEntity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The bookingBusiness is the top level object which contains business information and related business objects such as appointments, customers, services and staff members.”
    • Constructor Detail

      • BookingBusiness

        protected BookingBusiness()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class BookingNamedEntity
      • builderBookingBusiness

        public static BookingBusiness.Builder builderBookingBusiness()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class BookingNamedEntity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class BookingNamedEntity
      • getBusinessHours

        public com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> getBusinessHours()
      • getBusinessHours

        public com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> getBusinessHours​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getDefaultCurrencyIso

        public Optional<String> getDefaultCurrencyIso()
      • getIsPublished

        public Optional<Boolean> getIsPublished()

        Org.OData.Core.V1.Computed

        true

        Returns:
        property isPublished
      • withIsPublished

        public BookingBusiness withIsPublished​(Boolean isPublished)
        Returns an immutable copy of this with just the isPublished field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Core.V1.Computed

        true

        Parameters:
        isPublished - new value of isPublished field (as defined in service metadata)
        Returns:
        immutable copy of this with just the isPublished field changed
      • getPublicUrl

        public Optional<String> getPublicUrl()

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.IsURL

        true

        Returns:
        property publicUrl
      • withPublicUrl

        public BookingBusiness withPublicUrl​(String publicUrl)
        Returns an immutable copy of this with just the publicUrl field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.IsURL

        true

        Parameters:
        publicUrl - new value of publicUrl field (as defined in service metadata)
        Returns:
        immutable copy of this with just the publicUrl field changed
      • getWebSiteUrl

        public Optional<String> getWebSiteUrl()
        “Example: https://www.contoso.com”

        Org.OData.Core.V1.IsURL

        true

        Returns:
        property webSiteUrl
      • withWebSiteUrl

        public BookingBusiness withWebSiteUrl​(String webSiteUrl)
        Returns an immutable copy of this with just the webSiteUrl field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Example: https://www.contoso.com”

        Org.OData.Core.V1.IsURL

        true

        Parameters:
        webSiteUrl - new value of webSiteUrl field (as defined in service metadata)
        Returns:
        immutable copy of this with just the webSiteUrl field changed
      • getCalendarView

        public BookingAppointmentCollectionRequest getCalendarView()
        “A calendar view of appointments in this business.”
        Returns:
        navigational property calendarView
      • getStaffMembers

        public BookingStaffMemberCollectionRequest getStaffMembers()
        “All staff members that provides services in this business.”
        Returns:
        navigational property staffMembers
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class BookingNamedEntity
      • patch

        public BookingBusiness patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class BookingNamedEntity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public BookingBusiness put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class BookingNamedEntity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • publish

        public com.github.davidmoten.odata.client.ActionRequestNoReturn publish()
      • unpublish

        public com.github.davidmoten.odata.client.ActionRequestNoReturn unpublish()