bookingBusiness 资源类型
命名空间:microsoft.graph
表示Microsoft Bookings中的业务。 这是Microsoft Bookings API 中的顶级对象。 它包含业务信息和相关业务对象,例如约会、客户、服务和员工成员。
方法
方法 | 返回类型 | 说明 |
---|---|---|
列出 bookingBusinesses | bookingBusiness 集合 | 获取租户中的 bookingBusiness 对象的集合。 |
创建 bookingBusiness | bookingBusiness | 创建新的Microsoft Bookings业务。 |
获取 bookingBusiness | bookingBusiness | 读取 bookingBusiness 对象的属性和关系。 |
更新 | 无 | 更新 bookingBusiness 对象中的属性。 |
删除 | 无 | 删除 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 对象的集合。 |
发布 | 无 | 使此业务的计划页可供外部客户使用。 将 isPublished 属性设置为 true ,将 publicUrl 属性设置为计划页的 URL。 |
取消发布 | 无 | 使外部客户无法使用此业务的计划页。 将 isPublished 属性设置为 false ,将 publicUrl 属性设置为 null 。 |
属性
属性 | 类型 | 说明 |
---|---|---|
address | physicalAddress | 企业的街道地址。 address 属性与 phone 和 webSiteUrl 一起显示在业务计划页的页脚中。 v1.0 不支持 physicalAddress 的属性 类型 。 在内部,我们将地址映射到类型 others 。 |
businessHours | bookingWorkHours 集合 | 业务的营业时间。 |
businessType | String | 业务类型。 |
defaultCurrencyIso | String | 业务在Microsoft Bookings上运营的货币的代码。 |
displayName | String | 与客户交互的业务名称。 此名称显示在业务计划页的顶部。 |
String | 企业的电子邮件地址。 | |
id | String | 业务的唯一编程标识符。 此为只读属性。 |
isPublished | 布尔值 | 计划页已提供给外部客户。 使用 发布 和 取消发布 操作设置此属性。 此为只读属性。 |
languageTag | String | 自助预订页面的语言。 |
phone | String | 企业的电话号码。 phone 属性以及 address 和 webSiteUrl 显示在业务计划页的页脚中。 |
publicUrl | String | 计划页的 URL,在 发布 或 取消发布 页面后设置。 此为只读属性。 |
schedulingPolicy | bookingSchedulingPolicy | 指定如何为此业务创建预订。 |
webSiteUrl | String | 业务网站的 URL。 webSiteUrl 属性以及地址、电话显示在业务计划页的页脚中。 |
关系
关系 | 类型 | 说明 |
---|---|---|
appointments | bookingAppointment 集合 | 此业务的所有约会。 此为只读属性。 可为 Null。 |
calendarView | bookingAppointment 集合 | 指定日期范围内的此业务的约会集。 此为只读属性。 可为 NULL。 |
客户 | bookingCustomer 集合 | 此业务的所有客户。 此为只读属性。 可为 NULL。 |
customQuestions | bookingCustomQuestion 集合 | 此业务的所有自定义问题。 此为只读属性。 可为 NULL。 |
服务 | bookingService 集合 | 此业务提供的所有服务。 此为只读属性。 可为 NULL。 |
staffMembers | bookingStaffMember 集合 | 在此业务中提供服务的所有员工。 此为只读属性。 可为 Null。 |
JSON 表示形式
下面是资源的 JSON 表示形式。
{
"address": {"@odata.type": "microsoft.graph.physicalAddress"},
"businessHours": [{"@odata.type": "microsoft.graph.bookingWorkHours"}],
"businessType": "String",
"defaultCurrencyIso": "String",
"displayName": "String",
"email": "String",
"id": "String (identifier)",
"isPublished": "Boolean",
"languageTag": "String",
"phone": "String",
"publicUrl": "String",
"schedulingPolicy": {"@odata.type": "microsoft.graph.bookingSchedulingPolicy"},
"webSiteUrl": "String"
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈