bookingBusiness 资源类型
命名空间:microsoft.graph
重要
Microsoft Graph /beta
版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
代表 Microsoft Bookings 中的企业。 这是 Microsoft Bookings API 中的顶级对象。 它包含业务信息和相关业务对象,例如约会、客户、服务和员工成员。
方法
方法 | 返回类型 | 说明 |
---|---|---|
列出 bookingBusinesses | bookingBusiness 集合 | 获取租户中的 bookingbusiness 对象的集合。 |
创建 bookingBusiness | bookingBusiness | 创建新的Microsoft Bookings 业务。 |
获取 bookingBusiness | bookingBusiness | 读取 bookingBusiness 对象的属性和关系。 |
更新 | bookingBusiness | 更新 bookingBusiness 对象的属性。 |
删除 | None | 删除 bookingBusiness 对象。 |
创建 bookingAppointment | bookingAppointment | 通过发布到约会集合来创建新的 bookingAppointment。 |
列出约会 | bookingAppointment 集合 | 获取 bookingAppointment 对象集合。 |
创建 bookingCustomer | bookingCustomer | 通过发布到客户集合来创建新的 bookingCustomer。 |
列出客户 | bookingCustomer 集合 | 获取 bookingCustomer 对象集合。 |
创建 bookingService | bookingService | 通过发布到服务集合来创建新的 bookingService。 |
列出服务 | bookingService 集合 | 获取 bookingService 对象集合。 |
创建 bookingStaffMember | bookingStaffMember | 通过发布到 staffMembers 集合来创建新的 bookingStaffMember。 |
列出 staffMembers | bookingStaffMember 集合 | 获取 bookingStaffMember 对象集合。 |
列出 customQuestions | bookingCustomQuestion 集合 | 从 customQuestions 导航属性获取 bookingCustomQuestion 资源。 |
创建 bookingCustomQuestion | bookingCustomQuestion | 创建新的 bookingCustomQuestion 对象。 |
List calendarView | bookingAppointment 集合 | 获取在指定日期范围内发生的 bookingAppointment 对象的集合。 |
发布 | None | 使此业务的计划页可供外部客户使用。 将 isPublished 属性设置为 true,将 publicUrl 属性设置为计划页的 URL。 |
取消发布 | None | 使外部客户无法使用此业务的计划页。 将 isPublished 属性设置为 false,将 publicUrl 属性设置为 null。 |
获取员工可用性 | staffAvailabilityItem 集合 | 获取Microsoft Bookings 日历中员工的可用性信息。 |
属性
属性 | 类型 | 说明 |
---|---|---|
address | physicalAddress | 企业的街道地址。 address 属性与 phone 和 webSiteUrl 一起显示在业务计划页的页脚中。 |
bookingPageSettings | bookingPageSettings | 已发布的预订页面的设置。 |
businessHours | bookingWorkHours 集合 | 业务的营业时间。 |
businessType | String | 业务类型。 |
createdDateTime | DateTimeOffset | 创建预订业务的日期、时间和时区。 |
defaultCurrencyIso | String | 业务在 Bookings 上运营的货币的代码Microsoft。 |
displayName | String | 与客户交互的业务名称。 此名称显示在业务计划页的顶部。 |
String | 企业的电子邮件地址。 | |
id | String | 业务的唯一编程标识符。 此为只读属性。 |
isPublished | 布尔值 | 计划页已提供给外部客户。 使用 发布 和 取消发布 操作设置此属性。 此为只读属性。 |
languageTag | String | 自助预订页面的语言 |
lastUpdatedDateTime | DateTimeOffset | 上次更新预订业务的日期、时间和时区。 |
phone | String | 企业的电话号码。 phone 属性以及 address 和 webSiteUrl 显示在业务计划页的页脚中。 |
publicUrl | String | 计划页的 URL,在 发布 或 取消发布 页面后设置。 此为只读属性。 |
schedulingPolicy | bookingSchedulingPolicy | 指定如何为此业务创建预订。 |
webSiteUrl | String | 业务网站的 URL。 webSiteUrl 属性以及地址、电话显示在业务计划页的页脚中。 |
关系
关系 | 类型 | 说明 |
---|---|---|
appointments | bookingAppointment 集合 | 此业务的所有约会。 此为只读属性。 可为 Null。 |
calendarView | bookingAppointment 集合 | 指定日期范围内的此业务的约会集。 此为只读属性。 可为 NULL。 |
客户 | bookingCustomer 集合 | 此业务的所有客户。 此为只读属性。 可为 NULL。 |
服务业 | bookingService 集合 | 此业务提供的所有服务。 此为只读属性。 可为 NULL。 |
staffMembers | bookingStaffMember 集合 | 在此业务中提供服务的所有员工。 此为只读属性。 可为 Null。 |
JSON 表示形式
以下 JSON 表示形式显示了资源类型。
{
"@odata.type": "#microsoft.graph.bookingBusiness",
"id": "String (identifier)",
"displayName": "String",
"businessType": "String",
"address": {
"@odata.type": "microsoft.graph.physicalAddress"
},
"phone": "String",
"email": "String",
"webSiteUrl": "String",
"defaultCurrencyIso": "String",
"businessHours": [
{
"@odata.type": "microsoft.graph.bookingWorkHours"
}
],
"languageTag": "String",
"schedulingPolicy": {
"@odata.type": "microsoft.graph.bookingSchedulingPolicy"
},
"bookingPageSettings": {
"@odata.type": "microsoft.graph.bookingPageSettings"
},
"createdDateTime": "String (timestamp)",
"lastUpdatedDateTime": "String (timestamp)",
"isPublished": "Boolean",
"publicUrl": "String"
}