public class BookingBusiness extends BookingNamedEntity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
BookingBusiness.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected PhysicalAddress |
address |
protected List<BookingWorkHours> |
businessHours |
protected String |
businessHoursNextLink |
protected String |
businessType |
protected String |
defaultCurrencyIso |
protected String |
email |
protected Boolean |
isPublished |
protected String |
phone |
protected String |
publicUrl |
protected BookingSchedulingPolicy |
schedulingPolicy |
protected String |
webSiteUrl |
displayNamechangedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
BookingBusiness() |
| Modifier and Type | Method and Description |
|---|---|
static BookingBusiness.Builder |
builderBookingBusiness()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<PhysicalAddress> |
getAddress() |
BookingAppointmentCollectionRequest |
getAppointments()
“All appointments in this business.”
|
com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> |
getBusinessHours() |
Optional<String> |
getBusinessType() |
BookingAppointmentCollectionRequest |
getCalendarView()
“A calendar view of appointments in this business.”
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
BookingCustomerCollectionRequest |
getCustomers()
“All customers of this business.”
|
Optional<String> |
getDefaultCurrencyIso() |
Optional<String> |
getEmail() |
Optional<Boolean> |
getIsPublished()
Org.OData.Core.V1.Computed
|
Optional<String> |
getPhone() |
Optional<String> |
getPublicUrl()
Org.OData.Core.V1.Computed
|
Optional<BookingSchedulingPolicy> |
getSchedulingPolicy() |
BookingServiceCollectionRequest |
getServices()
“All services offered by this business.”
|
BookingStaffMemberCollectionRequest |
getStaffMembers()
“All staff members that provides services in this business.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<String> |
getWebSiteUrl()
“Example: https://www.contoso.com”
|
String |
odataTypeName() |
BookingBusiness |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
com.github.davidmoten.odata.client.ActionRequestNoReturn |
publish() |
BookingBusiness |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
com.github.davidmoten.odata.client.ActionRequestNoReturn |
unpublish() |
BookingBusiness |
withAddress(PhysicalAddress address) |
BookingBusiness |
withBusinessType(String businessType) |
BookingBusiness |
withDefaultCurrencyIso(String defaultCurrencyIso) |
BookingBusiness |
withEmail(String email) |
BookingBusiness |
withIsPublished(Boolean isPublished)
Returns an immutable copy of
this with just the isPublished
field changed. |
BookingBusiness |
withPhone(String phone) |
BookingBusiness |
withPublicUrl(String publicUrl)
Returns an immutable copy of
this with just the publicUrl field
changed. |
BookingBusiness |
withSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy) |
BookingBusiness |
withWebSiteUrl(String webSiteUrl)
Returns an immutable copy of
this with just the webSiteUrl field
changed. |
getDisplayName, withDisplayNameprotected String businessType
protected PhysicalAddress address
protected String phone
protected String email
protected String webSiteUrl
protected String defaultCurrencyIso
protected List<BookingWorkHours> businessHours
protected String businessHoursNextLink
protected BookingSchedulingPolicy schedulingPolicy
protected Boolean isPublished
protected String publicUrl
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class BookingNamedEntitypublic static BookingBusiness.Builder builderBookingBusiness()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class BookingNamedEntitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class BookingNamedEntitypublic BookingBusiness withBusinessType(String businessType)
public Optional<PhysicalAddress> getAddress()
public BookingBusiness withAddress(PhysicalAddress address)
public BookingBusiness withPhone(String phone)
public BookingBusiness withEmail(String email)
public Optional<String> getWebSiteUrl()
Org.OData.Core.V1.IsURL
true
public BookingBusiness withWebSiteUrl(String webSiteUrl)
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
webSiteUrl - new value of webSiteUrl field (as defined in service metadata)this with just the webSiteUrl field changedpublic BookingBusiness withDefaultCurrencyIso(String defaultCurrencyIso)
public com.github.davidmoten.odata.client.CollectionPage<BookingWorkHours> getBusinessHours()
public Optional<BookingSchedulingPolicy> getSchedulingPolicy()
public BookingBusiness withSchedulingPolicy(BookingSchedulingPolicy schedulingPolicy)
public Optional<Boolean> getIsPublished()
Org.OData.Core.V1.Computed
true
public BookingBusiness withIsPublished(Boolean isPublished)
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
isPublished - new value of isPublished field (as defined in service metadata)this with just the isPublished field changedpublic Optional<String> getPublicUrl()
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.IsURL
true
public BookingBusiness withPublicUrl(String publicUrl)
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
publicUrl - new value of publicUrl field (as defined in service metadata)this with just the publicUrl field changedpublic BookingAppointmentCollectionRequest getAppointments()
public BookingAppointmentCollectionRequest getCalendarView()
public BookingCustomerCollectionRequest getCustomers()
public BookingServiceCollectionRequest getServices()
public BookingStaffMemberCollectionRequest getStaffMembers()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class BookingNamedEntitypublic BookingBusiness patch()
this with changed fields reset.patch in class BookingNamedEntitythis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic BookingBusiness put()
this
with changed fields reset (they were ignored anyway).put in class BookingNamedEntitythis with changed fields resetcom.github.davidmoten.odata.client.ClientException - if HTTP response is not as expectedpublic com.github.davidmoten.odata.client.ActionRequestNoReturn publish()
public com.github.davidmoten.odata.client.ActionRequestNoReturn unpublish()
public String toString()
toString in class BookingNamedEntityCopyright © 2018–2020. All rights reserved.