Class BookingSchedulingPolicy

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

    public class BookingSchedulingPolicy
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “This type represents the set of policies that dictate how bookings can be created in a Booking Calendar.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • allowStaffSelection

        protected Boolean allowStaffSelection
      • customAvailabilitiesNextLink

        protected String customAvailabilitiesNextLink
      • isMeetingInviteToCustomersEnabled

        protected Boolean isMeetingInviteToCustomersEnabled
      • maximumAdvance

        protected Duration maximumAdvance
      • minimumLeadTime

        protected Duration minimumLeadTime
      • sendConfirmationsToOwner

        protected Boolean sendConfirmationsToOwner
      • timeSlotInterval

        protected Duration timeSlotInterval
    • Constructor Detail

      • BookingSchedulingPolicy

        protected BookingSchedulingPolicy()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getAllowStaffSelection

        public Optional<Boolean> getAllowStaffSelection()
        “Allow customers to choose a specific person for the booking.”
        Returns:
        property allowStaffSelection
      • withAllowStaffSelection

        public BookingSchedulingPolicy withAllowStaffSelection​(Boolean allowStaffSelection)
        Returns an immutable copy of this with just the allowStaffSelection 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.

        “Allow customers to choose a specific person for the booking.”

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

        public com.github.davidmoten.odata.client.CollectionPage<BookingsAvailabilityWindow> getCustomAvailabilities()
        “collection of custom availabilities for a given time range.”
        Returns:
        property customAvailabilities
      • getCustomAvailabilities

        public com.github.davidmoten.odata.client.CollectionPage<BookingsAvailabilityWindow> getCustomAvailabilities​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “collection of custom availabilities for a given time range.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property customAvailabilities
      • getGeneralAvailability

        public Optional<BookingsAvailability> getGeneralAvailability()
        “General availability”
        Returns:
        property generalAvailability
      • withGeneralAvailability

        public BookingSchedulingPolicy withGeneralAvailability​(BookingsAvailability generalAvailability)
        Returns an immutable copy of this with just the generalAvailability 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.

        “General availability”

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

        public Optional<Boolean> getIsMeetingInviteToCustomersEnabled()
        “Enable sending meeting invite to customers. False by default.”
        Returns:
        property isMeetingInviteToCustomersEnabled
      • withIsMeetingInviteToCustomersEnabled

        public BookingSchedulingPolicy withIsMeetingInviteToCustomersEnabled​(Boolean isMeetingInviteToCustomersEnabled)
        Returns an immutable copy of this with just the isMeetingInviteToCustomersEnabled 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.

        “Enable sending meeting invite to customers. False by default.”

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

        public Optional<Duration> getMaximumAdvance()
        “Maximum number of days in advance that a booking can be made.”
        Returns:
        property maximumAdvance
      • withMaximumAdvance

        public BookingSchedulingPolicy withMaximumAdvance​(Duration maximumAdvance)
        Returns an immutable copy of this with just the maximumAdvance 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.

        “Maximum number of days in advance that a booking can be made.”

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

        public Optional<Duration> getMinimumLeadTime()
        “Minimum lead time for bookings and cancellations.”
        Returns:
        property minimumLeadTime
      • withMinimumLeadTime

        public BookingSchedulingPolicy withMinimumLeadTime​(Duration minimumLeadTime)
        Returns an immutable copy of this with just the minimumLeadTime 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.

        “Minimum lead time for bookings and cancellations.”

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

        public Optional<Boolean> getSendConfirmationsToOwner()
        “Notify the business via email when a booking is created or changed.”
        Returns:
        property sendConfirmationsToOwner
      • withSendConfirmationsToOwner

        public BookingSchedulingPolicy withSendConfirmationsToOwner​(Boolean sendConfirmationsToOwner)
        Returns an immutable copy of this with just the sendConfirmationsToOwner 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.

        “Notify the business via email when a booking is created or changed.”

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

        public Optional<Duration> getTimeSlotInterval()
        “Duration of each time slot.”
        Returns:
        property timeSlotInterval
      • withTimeSlotInterval

        public BookingSchedulingPolicy withTimeSlotInterval​(Duration timeSlotInterval)
        Returns an immutable copy of this with just the timeSlotInterval 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.

        “Duration of each time slot.”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static BookingSchedulingPolicy.Builder builder()
        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