public class BookingAppointment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
BookingAppointment.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
customerEmailAddress |
protected String |
customerId |
protected Location |
customerLocation |
protected String |
customerName |
protected String |
customerNotes |
protected String |
customerPhone |
protected Duration |
duration |
protected DateTimeTimeZone |
end |
protected Double |
invoiceAmount |
protected DateTimeTimeZone |
invoiceDate |
protected String |
invoiceId |
protected BookingInvoiceStatus |
invoiceStatus |
protected String |
invoiceUrl |
protected Boolean |
optOutOfCustomerEmail |
protected Duration |
postBuffer |
protected Duration |
preBuffer |
protected Double |
price |
protected BookingPriceType |
priceType |
protected List<BookingReminder> |
reminders |
protected String |
remindersNextLink |
protected String |
selfServiceAppointmentId |
protected String |
serviceId |
protected Location |
serviceLocation |
protected String |
serviceName |
protected String |
serviceNotes |
protected List<String> |
staffMemberIds |
protected String |
staffMemberIdsNextLink |
protected DateTimeTimeZone |
start |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
BookingAppointment() |
| Modifier and Type | Method and Description |
|---|---|
static BookingAppointment.Builder |
builderBookingAppointment()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.ActionRequestNoReturn |
cancel(String cancellationMessage) |
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getCustomerEmailAddress() |
Optional<String> |
getCustomerId()
“If CustomerId is not specified when an appointment is created then a new
customer is created based on the appointment customer information.
|
Optional<Location> |
getCustomerLocation() |
Optional<String> |
getCustomerName() |
Optional<String> |
getCustomerNotes()
“The value of this property is only available when reading an individual booking
appointment by id.
|
Optional<String> |
getCustomerPhone() |
Optional<Duration> |
getDuration()
Org.OData.Core.V1.Computed
|
Optional<DateTimeTimeZone> |
getEnd() |
Optional<Double> |
getInvoiceAmount() |
Optional<DateTimeTimeZone> |
getInvoiceDate() |
Optional<String> |
getInvoiceId() |
Optional<BookingInvoiceStatus> |
getInvoiceStatus() |
Optional<String> |
getInvoiceUrl()
Org.OData.Core.V1.IsURL
|
Optional<Boolean> |
getOptOutOfCustomerEmail() |
Optional<Duration> |
getPostBuffer() |
Optional<Duration> |
getPreBuffer() |
Optional<Double> |
getPrice() |
Optional<BookingPriceType> |
getPriceType() |
com.github.davidmoten.odata.client.CollectionPage<BookingReminder> |
getReminders()
“The value of this property is only available when reading an individual booking
appointment by id.”
|
Optional<String> |
getSelfServiceAppointmentId() |
Optional<String> |
getServiceId()
“The id of the booking service associated with this appointment.”
|
Optional<Location> |
getServiceLocation() |
Optional<String> |
getServiceName()
“This property is optional when creating a new appointment.
|
Optional<String> |
getServiceNotes()
“The value of this property is only available when reading an individual booking
appointment by id.”
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getStaffMemberIds() |
Optional<DateTimeTimeZone> |
getStart() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
BookingAppointment |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
BookingAppointment |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
BookingAppointment |
withCustomerEmailAddress(String customerEmailAddress) |
BookingAppointment |
withCustomerId(String customerId)
Returns an immutable copy of
this with just the customerId field
changed. |
BookingAppointment |
withCustomerLocation(Location customerLocation) |
BookingAppointment |
withCustomerName(String customerName) |
BookingAppointment |
withCustomerNotes(String customerNotes)
Returns an immutable copy of
this with just the customerNotes
field changed. |
BookingAppointment |
withCustomerPhone(String customerPhone) |
BookingAppointment |
withDuration(Duration duration)
Returns an immutable copy of
this with just the duration field
changed. |
BookingAppointment |
withEnd(DateTimeTimeZone end) |
BookingAppointment |
withInvoiceAmount(Double invoiceAmount) |
BookingAppointment |
withInvoiceDate(DateTimeTimeZone invoiceDate) |
BookingAppointment |
withInvoiceId(String invoiceId) |
BookingAppointment |
withInvoiceStatus(BookingInvoiceStatus invoiceStatus) |
BookingAppointment |
withInvoiceUrl(String invoiceUrl)
Returns an immutable copy of
this with just the invoiceUrl field
changed. |
BookingAppointment |
withOptOutOfCustomerEmail(Boolean optOutOfCustomerEmail) |
BookingAppointment |
withPostBuffer(Duration postBuffer) |
BookingAppointment |
withPreBuffer(Duration preBuffer) |
BookingAppointment |
withPrice(Double price) |
BookingAppointment |
withPriceType(BookingPriceType priceType) |
BookingAppointment |
withSelfServiceAppointmentId(String selfServiceAppointmentId) |
BookingAppointment |
withServiceId(String serviceId)
Returns an immutable copy of
this with just the serviceId field
changed. |
BookingAppointment |
withServiceLocation(Location serviceLocation) |
BookingAppointment |
withServiceName(String serviceName)
Returns an immutable copy of
this with just the serviceName
field changed. |
BookingAppointment |
withServiceNotes(String serviceNotes)
Returns an immutable copy of
this with just the serviceNotes
field changed. |
BookingAppointment |
withStart(DateTimeTimeZone start) |
protected String selfServiceAppointmentId
protected String customerId
protected String customerName
protected String customerEmailAddress
protected String customerPhone
protected Location customerLocation
protected String customerNotes
protected String serviceId
protected String serviceName
protected DateTimeTimeZone start
protected DateTimeTimeZone end
protected Duration duration
protected Duration preBuffer
protected Duration postBuffer
protected Location serviceLocation
protected BookingPriceType priceType
protected Double price
protected String serviceNotes
protected List<BookingReminder> reminders
protected String remindersNextLink
protected Boolean optOutOfCustomerEmail
protected String staffMemberIdsNextLink
protected Double invoiceAmount
protected DateTimeTimeZone invoiceDate
protected String invoiceId
protected BookingInvoiceStatus invoiceStatus
protected String invoiceUrl
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static BookingAppointment.Builder builderBookingAppointment()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic BookingAppointment withSelfServiceAppointmentId(String selfServiceAppointmentId)
public Optional<String> getCustomerId()
public BookingAppointment withCustomerId(String customerId)
this with just the customerId 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.
“If CustomerId is not specified when an appointment is created then a new customer is created based on the appointment customer information. Once set, the customerId should be considered immutable.”
customerId - new value of customerId field (as defined in service metadata)this with just the customerId field changedpublic BookingAppointment withCustomerName(String customerName)
public BookingAppointment withCustomerEmailAddress(String customerEmailAddress)
public BookingAppointment withCustomerPhone(String customerPhone)
public BookingAppointment withCustomerLocation(Location customerLocation)
public Optional<String> getCustomerNotes()
Org.OData.Core.V1.Immutable
true
public BookingAppointment withCustomerNotes(String customerNotes)
this with just the customerNotes
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 appointment by id. Its value can only be set when creating a new appointment with a new customer, ie, without specifying a CustomerId. After that, the property is computed from the customer represented by CustomerId.”
Org.OData.Core.V1.Immutable
true
customerNotes - new value of customerNotes field (as defined in service metadata)this with just the customerNotes field changedpublic Optional<String> getServiceId()
Org.OData.Core.V1.Immutable
true
public BookingAppointment withServiceId(String serviceId)
this with just the serviceId 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 id of the booking service associated with this appointment.”
Org.OData.Core.V1.Immutable
true
serviceId - new value of serviceId field (as defined in service metadata)this with just the serviceId field changedpublic Optional<String> getServiceName()
public BookingAppointment withServiceName(String serviceName)
this with just the serviceName
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.
“This property is optional when creating a new appointment. If not specified, it is computed from the service associated with the appointment by the service id.”
serviceName - new value of serviceName field (as defined in service metadata)this with just the serviceName field changedpublic Optional<DateTimeTimeZone> getStart()
public BookingAppointment withStart(DateTimeTimeZone start)
public Optional<DateTimeTimeZone> getEnd()
public BookingAppointment withEnd(DateTimeTimeZone end)
public Optional<Duration> getDuration()
Org.OData.Core.V1.Computed
true
public BookingAppointment withDuration(Duration duration)
this with just the duration 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
duration - new value of duration field (as defined in service metadata)this with just the duration field changedpublic BookingAppointment withPreBuffer(Duration preBuffer)
public BookingAppointment withPostBuffer(Duration postBuffer)
public BookingAppointment withServiceLocation(Location serviceLocation)
public Optional<BookingPriceType> getPriceType()
public BookingAppointment withPriceType(BookingPriceType priceType)
public BookingAppointment withPrice(Double price)
public Optional<String> getServiceNotes()
public BookingAppointment withServiceNotes(String serviceNotes)
this with just the serviceNotes
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 appointment by id.”
serviceNotes - new value of serviceNotes field (as defined in service metadata)this with just the serviceNotes field changedpublic com.github.davidmoten.odata.client.CollectionPage<BookingReminder> getReminders()
public BookingAppointment withOptOutOfCustomerEmail(Boolean optOutOfCustomerEmail)
public com.github.davidmoten.odata.client.CollectionPage<String> getStaffMemberIds()
public BookingAppointment withInvoiceAmount(Double invoiceAmount)
public Optional<DateTimeTimeZone> getInvoiceDate()
public BookingAppointment withInvoiceDate(DateTimeTimeZone invoiceDate)
public BookingAppointment withInvoiceId(String invoiceId)
public Optional<BookingInvoiceStatus> getInvoiceStatus()
public BookingAppointment withInvoiceStatus(BookingInvoiceStatus invoiceStatus)
public Optional<String> getInvoiceUrl()
Org.OData.Core.V1.IsURL
true
public BookingAppointment withInvoiceUrl(String invoiceUrl)
this with just the invoiceUrl 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.IsURL
true
invoiceUrl - new value of invoiceUrl field (as defined in service metadata)this with just the invoiceUrl field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic BookingAppointment patch()
this with changed fields reset.public BookingAppointment put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel(String cancellationMessage)
Copyright © 2018–2020. All rights reserved.