MicrosoftbookingsClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'CreateAppointment': {'operation_id': 'CreateAppointment', 'path': '/{connectionId}/BookingsService/api/V1/bookingBusinesses/{SMTPAddress}/webhook/AppointmentCreated', 'method': 'post', 'required_parameters': ['SMTPAddress', 'body'], 'callback_payload_type': 'WebhookResponse'}, 'UpdateAppointment': {'operation_id': 'UpdateAppointment', 'path': '/{connectionId}/BookingsService/api/V1/bookingBusinesses/{SMTPAddress}/webhook/AppointmentUpdated', 'method': 'post', 'required_parameters': ['SMTPAddress', 'body'], 'callback_payload_type': None}, 'CancelAppointment': {'operation_id': 'CancelAppointment', 'path': '/{connectionId}/BookingsService/api/V1/bookingBusinesses/{SMTPAddress}/webhook/AppointmentDeleted', 'method': 'post', 'required_parameters': ['SMTPAddress', 'body'], 'callback_payload_type': None}}
Classes
CreateAppointmentInput
dataclass
When a appointment is Created
WebhookResponse
dataclass
UpdateAppointmentInput
dataclass
When an appointment is Updated
CancelAppointmentInput
dataclass
When an appointment is Cancelled
ListMailboxResponse
dataclass
MailboxEntity
dataclass
AppointmentData
dataclass
AppointmentData(additional_info: Optional[str] = None, customer_email: Optional[str] = None, customer_id: Optional[str] = None, customer_location: Optional[Dict[str, Any]] = None, customer_name: Optional[str] = None, customer_notes: Optional[str] = None, custom_question_answers: Optional[List[CustomQuestion]] = None, customer_phone: Optional[str] = None, customer_time_zone: Optional[str] = None, customers: Optional[List[CustomerData]] = None, duration: Optional[int] = None, end_time: Optional[str] = None, filled_attendees_count: Optional[int] = None, id: Optional[str] = None, is_s_m_s_notifications_enabled: Optional[bool] = None, join_web_u_r_l: Optional[str] = None, max_attendees_count: Optional[int] = None, self_service_appointment_id: Optional[str] = None, service_id: Optional[str] = None, service_name: Optional[str] = None, service_notes: Optional[str] = None, staff_members: Optional[List[StaffMemberData]] = None, start_time: Optional[str] = None, tracking_data: Optional[str] = None, cancel_reason: Optional[str] = None)
Definition: AppointmentData
Attributes
additional_info
class-attribute
instance-attribute
Additional Info about the booking.
customer_email
class-attribute
instance-attribute
Customer Email address in case of 1:1 bookings.
customer_id
class-attribute
instance-attribute
Customer Id in case of 1:1 bookings.
customer_location
class-attribute
instance-attribute
customer_location: Optional[Dict[str, Any]] = field(default=None, metadata={'wire_name': 'CustomerLocation'})
Location of customer in 1:1 booking
customer_name
class-attribute
instance-attribute
Customer Name for 1:1 booking.
customer_notes
class-attribute
instance-attribute
Customer Notes for 1:1 booking.
custom_question_answers
class-attribute
instance-attribute
custom_question_answers: Optional[List[CustomQuestion]] = field(default=None, metadata={'wire_name': 'CustomQuestionAnswers'})
All the custom questions and answers for 1:1 booking.
customer_phone
class-attribute
instance-attribute
Customer phone for 1:1 booking.
customer_time_zone
class-attribute
instance-attribute
Customer Time Zone for 1:1 booking.
customers
class-attribute
instance-attribute
List of customers in the 1:N booking
duration
class-attribute
instance-attribute
Duration of the appointment
end_time
class-attribute
instance-attribute
End Time of the appointment.
filled_attendees_count
class-attribute
instance-attribute
filled_attendees_count: Optional[int] = field(default=None, metadata={'wire_name': 'FilledAttendeesCount'})
Number of attendees who have booked this appoinment slot.
id
class-attribute
instance-attribute
[Deprecated] - use selfServiceAppointmentId as unique identifier for the bookings appointment.
is_s_m_s_notifications_enabled
class-attribute
instance-attribute
is_s_m_s_notifications_enabled: Optional[bool] = field(default=None, metadata={'wire_name': 'IsSMSNotificationsEnabled'})
Field to check if SMS notification is enabled for the appointment.
join_web_u_r_l
class-attribute
instance-attribute
URL for joining this online appointment.
max_attendees_count
class-attribute
instance-attribute
max_attendees_count: Optional[int] = field(default=None, metadata={'wire_name': 'MaxAttendeesCount'})
Max number of attendees allowed in this appoinment.
self_service_appointment_id
class-attribute
instance-attribute
self_service_appointment_id: Optional[str] = field(default=None, metadata={'wire_name': 'SelfServiceAppointmentId'})
Appointment id for the booking appointment.
service_id
class-attribute
instance-attribute
Unique Service Identifier.
service_name
class-attribute
instance-attribute
Name of the bookings service.
service_notes
class-attribute
instance-attribute
Service level notes for the staff and admin.
staff_members
class-attribute
instance-attribute
staff_members: Optional[List[StaffMemberData]] = field(default=None, metadata={'wire_name': 'StaffMembers'})
List of staff members
start_time
class-attribute
instance-attribute
Start Time of the appointment.
tracking_data
class-attribute
instance-attribute
Campaign tracking Data.
CustomerData
dataclass
CustomerData(email: Optional[str] = None, id: Optional[str] = None, location: Optional[Dict[str, Any]] = None, name: Optional[str] = None, notes: Optional[str] = None, time_zone: Optional[str] = None, answers: Optional[List[CustomQuestion]] = None)
Definition: CustomerData
Attributes
email
class-attribute
instance-attribute
Email of the customer in the group booking.
id
class-attribute
instance-attribute
Unique ID of the customer in the group booking.
location
class-attribute
instance-attribute
Location of customer in a group booking.
name
class-attribute
instance-attribute
Display Name of the customer in the group booking.
notes
class-attribute
instance-attribute
Notes of the customer in the group booking.
time_zone
class-attribute
instance-attribute
Timezone of the customer in the group booking.
StaffMemberData
dataclass
StaffMemberData(display_name: Optional[str] = None, email_address: Optional[str] = None, id: Optional[str] = None)
Definition: StaffMemberData
Attributes
display_name
class-attribute
instance-attribute
Display Name of the staff assigned for this appointment.
email_address
class-attribute
instance-attribute
Email Address of the staff assigned to this appointment.
CustomQuestion
dataclass
CustomQuestion(answer: Optional[str] = None, answer_options: Optional[List[str]] = None, is_required: Optional[bool] = None, question: Optional[str] = None, question_id: Optional[str] = None, selected_options: Optional[List[int]] = None)
Definition: CustomQuestion
Attributes
answer
class-attribute
instance-attribute
Answer to this custom question.
answer_options
class-attribute
instance-attribute
All the answer options.
is_required
class-attribute
instance-attribute
Tells if answering this question is mandatory.
question
class-attribute
instance-attribute
Question to be answered.
question_id
class-attribute
instance-attribute
Unique Identifier of the Question to be answered.
MicrosoftbookingsClient
MicrosoftbookingsClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for microsoftbookings connector.
Initialize a MicrosoftbookingsClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|