Class BookingService

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

    public class BookingService
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Represents a particular service offered by a booking business.”
    • Field Detail

      • additionalInformation

        protected String additionalInformation
      • customQuestionsNextLink

        protected String customQuestionsNextLink
      • defaultDuration

        protected Duration defaultDuration
      • defaultLocation

        protected Location defaultLocation
      • defaultPrice

        protected Double defaultPrice
      • defaultRemindersNextLink

        protected String defaultRemindersNextLink
      • description

        protected String description
      • displayName

        protected String displayName
      • isHiddenFromCustomers

        protected Boolean isHiddenFromCustomers
      • isLocationOnline

        protected Boolean isLocationOnline
      • maximumAttendeesCount

        protected Integer maximumAttendeesCount
      • notes

        protected String notes
      • postBuffer

        protected Duration postBuffer
      • preBuffer

        protected Duration preBuffer
      • smsNotificationsEnabled

        protected Boolean smsNotificationsEnabled
      • staffMemberIds

        protected List<String> staffMemberIds
      • staffMemberIdsNextLink

        protected String staffMemberIdsNextLink
      • webUrl

        protected String webUrl
    • Constructor Detail

      • BookingService

        protected BookingService()
    • Method Detail

      • odataTypeName

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

        public static BookingService.Builder builderBookingService()
        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 Entity
      • postInject

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

        public Optional<String> getAdditionalInformation()
      • withAdditionalInformation

        public BookingService withAdditionalInformation​(String additionalInformation)
      • getCustomQuestions

        public com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment> getCustomQuestions()
      • getCustomQuestions

        public com.github.davidmoten.odata.client.CollectionPage<BookingQuestionAssignment> getCustomQuestions​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getDefaultReminders

        public com.github.davidmoten.odata.client.CollectionPage<BookingReminder> getDefaultReminders()
        “The value of this property is only available when reading an individual booking service by id.”
        Returns:
        property defaultReminders
      • withDefaultReminders

        public BookingService withDefaultReminders​(List<BookingReminder> defaultReminders)
        Returns an immutable copy of this with just the defaultReminders 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.

        “The value of this property is only available when reading an individual booking service by id.”

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

        public com.github.davidmoten.odata.client.CollectionPage<BookingReminder> getDefaultReminders​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The value of this property is only available when reading an individual booking service by id.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property defaultReminders
      • getDisplayName

        public Optional<String> getDisplayName()
        “The display name is suitable for human-readable interfaces.”
        Returns:
        property displayName
      • withDisplayName

        public BookingService withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName 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.

        “The display name is suitable for human-readable interfaces.”

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

        public Optional<Boolean> getIsHiddenFromCustomers()
      • withIsHiddenFromCustomers

        public BookingService withIsHiddenFromCustomers​(Boolean isHiddenFromCustomers)
      • getMaximumAttendeesCount

        public Optional<Integer> getMaximumAttendeesCount()
      • withMaximumAttendeesCount

        public BookingService withMaximumAttendeesCount​(Integer maximumAttendeesCount)
      • getSmsNotificationsEnabled

        public Optional<Boolean> getSmsNotificationsEnabled()
      • withSmsNotificationsEnabled

        public BookingService withSmsNotificationsEnabled​(Boolean smsNotificationsEnabled)
      • getStaffMemberIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getStaffMemberIds()
      • getStaffMemberIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getStaffMemberIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • getWebUrl

        public Optional<String> getWebUrl()
        “The URL of the booking service.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.IsURL

        true

        Returns:
        property webUrl
      • withWebUrl

        public BookingService withWebUrl​(String webUrl)
        Returns an immutable copy of this with just the webUrl 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.

        “The URL of the booking service.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.IsURL

        true

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

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

        public BookingService patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        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 BookingService 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 Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected