-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelBooking.go
474 lines (422 loc) · 16.1 KB
/
ModelBooking.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
// Code generated by msgraph.go/gen DO NOT EDIT.
package msgraph
// BookingAppointment undocumented
type BookingAppointment struct {
// Entity is the base model of BookingAppointment
Entity
ODataType string `json:"@odata.type,omitempty"`
// AdditionalInformation undocumented
AdditionalInformation *string `json:"additionalInformation,omitempty"`
// AnonymousJoinWebURL undocumented
AnonymousJoinWebURL *string `json:"anonymousJoinWebUrl,omitempty"`
// Customers undocumented
Customers []BookingCustomerInformationBase `json:"customers,omitempty"`
// CustomerTimeZone undocumented
CustomerTimeZone *string `json:"customerTimeZone,omitempty"`
// Duration undocumented
Duration *Duration `json:"duration,omitempty"`
// EndDateTime undocumented
EndDateTime *DateTimeTimeZone `json:"endDateTime,omitempty"`
// FilledAttendeesCount undocumented
FilledAttendeesCount *int `json:"filledAttendeesCount,omitempty"`
// IsLocationOnline undocumented
IsLocationOnline *bool `json:"isLocationOnline,omitempty"`
// JoinWebURL undocumented
JoinWebURL *string `json:"joinWebUrl,omitempty"`
// MaximumAttendeesCount undocumented
MaximumAttendeesCount *int `json:"maximumAttendeesCount,omitempty"`
// OptOutOfCustomerEmail undocumented
OptOutOfCustomerEmail *bool `json:"optOutOfCustomerEmail,omitempty"`
// PostBuffer undocumented
PostBuffer *Duration `json:"postBuffer,omitempty"`
// PreBuffer undocumented
PreBuffer *Duration `json:"preBuffer,omitempty"`
// Price undocumented
Price *float64 `json:"price,omitempty"`
// PriceType undocumented
PriceType *BookingPriceType `json:"priceType,omitempty"`
// Reminders undocumented
Reminders []BookingReminder `json:"reminders,omitempty"`
// SelfServiceAppointmentID undocumented
SelfServiceAppointmentID *string `json:"selfServiceAppointmentId,omitempty"`
// ServiceID undocumented
ServiceID *string `json:"serviceId,omitempty"`
// ServiceLocation undocumented
ServiceLocation *Location `json:"serviceLocation,omitempty"`
// ServiceName undocumented
ServiceName *string `json:"serviceName,omitempty"`
// ServiceNotes undocumented
ServiceNotes *string `json:"serviceNotes,omitempty"`
// SmsNotificationsEnabled undocumented
SmsNotificationsEnabled *bool `json:"smsNotificationsEnabled,omitempty"`
// StaffMemberIDs undocumented
StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
// StartDateTime undocumented
StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
}
func NewBookingAppointment() (*BookingAppointment, error) {
newBookingAppointment := &BookingAppointment{
ODataType: "#microsoft.graph.BookingAppointment",
}
return newBookingAppointment, nil
}
// BookingBusiness undocumented
type BookingBusiness struct {
// Entity is the base model of BookingBusiness
Entity
ODataType string `json:"@odata.type,omitempty"`
// Address undocumented
Address *PhysicalAddress `json:"address,omitempty"`
// BusinessHours undocumented
BusinessHours []BookingWorkHours `json:"businessHours,omitempty"`
// BusinessType undocumented
BusinessType *string `json:"businessType,omitempty"`
// DefaultCurrencyIso undocumented
DefaultCurrencyIso *string `json:"defaultCurrencyIso,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// Email undocumented
Email *string `json:"email,omitempty"`
// IsPublished undocumented
IsPublished *bool `json:"isPublished,omitempty"`
// LanguageTag undocumented
LanguageTag *string `json:"languageTag,omitempty"`
// Phone undocumented
Phone *string `json:"phone,omitempty"`
// PublicURL undocumented
PublicURL *string `json:"publicUrl,omitempty"`
// SchedulingPolicy undocumented
SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
// WebSiteURL undocumented
WebSiteURL *string `json:"webSiteUrl,omitempty"`
// Appointments undocumented
Appointments []BookingAppointment `json:"appointments,omitempty"`
// CalendarView undocumented
CalendarView []BookingAppointment `json:"calendarView,omitempty"`
// Customers undocumented
Customers []BookingCustomerBase `json:"customers,omitempty"`
// CustomQuestions undocumented
CustomQuestions []BookingCustomQuestion `json:"customQuestions,omitempty"`
// Services undocumented
Services []BookingService `json:"services,omitempty"`
// StaffMembers undocumented
StaffMembers []BookingStaffMemberBase `json:"staffMembers,omitempty"`
}
func NewBookingBusiness() (*BookingBusiness, error) {
newBookingBusiness := &BookingBusiness{
ODataType: "#microsoft.graph.BookingBusiness",
}
return newBookingBusiness, nil
}
// BookingCurrency undocumented
type BookingCurrency struct {
// Entity is the base model of BookingCurrency
Entity
ODataType string `json:"@odata.type,omitempty"`
// Symbol undocumented
Symbol *string `json:"symbol,omitempty"`
}
func NewBookingCurrency() (*BookingCurrency, error) {
newBookingCurrency := &BookingCurrency{
ODataType: "#microsoft.graph.BookingCurrency",
}
return newBookingCurrency, nil
}
// BookingCustomQuestion undocumented
type BookingCustomQuestion struct {
// Entity is the base model of BookingCustomQuestion
Entity
ODataType string `json:"@odata.type,omitempty"`
// AnswerInputType undocumented
AnswerInputType *AnswerInputType `json:"answerInputType,omitempty"`
// AnswerOptions undocumented
AnswerOptions []string `json:"answerOptions,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
}
func NewBookingCustomQuestion() (*BookingCustomQuestion, error) {
newBookingCustomQuestion := &BookingCustomQuestion{
ODataType: "#microsoft.graph.BookingCustomQuestion",
}
return newBookingCustomQuestion, nil
}
// BookingCustomer undocumented
type BookingCustomer struct {
// BookingCustomerBase is the base model of BookingCustomer
BookingCustomerBase
ODataType string `json:"@odata.type,omitempty"`
// Addresses undocumented
Addresses []PhysicalAddress `json:"addresses,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// EmailAddress undocumented
EmailAddress *string `json:"emailAddress,omitempty"`
// Phones undocumented
Phones []Phone `json:"phones,omitempty"`
}
func NewBookingCustomer() (*BookingCustomer, error) {
newBookingCustomer := &BookingCustomer{
ODataType: "#microsoft.graph.BookingCustomer",
}
return newBookingCustomer, nil
}
// BookingCustomerBase undocumented
type BookingCustomerBase struct {
// Entity is the base model of BookingCustomerBase
Entity
ODataType string `json:"@odata.type,omitempty"`
}
func NewBookingCustomerBase() (*BookingCustomerBase, error) {
newBookingCustomerBase := &BookingCustomerBase{
ODataType: "#microsoft.graph.BookingCustomerBase",
}
return newBookingCustomerBase, nil
}
// BookingCustomerInformation undocumented
type BookingCustomerInformation struct {
// BookingCustomerInformationBase is the base model of BookingCustomerInformation
BookingCustomerInformationBase
ODataType string `json:"@odata.type,omitempty"`
// CustomerID undocumented
CustomerID *string `json:"customerId,omitempty"`
// CustomQuestionAnswers undocumented
CustomQuestionAnswers []BookingQuestionAnswer `json:"customQuestionAnswers,omitempty"`
// EmailAddress undocumented
EmailAddress *string `json:"emailAddress,omitempty"`
// Location undocumented
Location *Location `json:"location,omitempty"`
// Name undocumented
Name *string `json:"name,omitempty"`
// Notes undocumented
Notes *string `json:"notes,omitempty"`
// Phone undocumented
Phone *string `json:"phone,omitempty"`
// TimeZone undocumented
TimeZone *string `json:"timeZone,omitempty"`
}
func NewBookingCustomerInformation() (*BookingCustomerInformation, error) {
newBookingCustomerInformation := &BookingCustomerInformation{
ODataType: "#microsoft.graph.BookingCustomerInformation",
}
return newBookingCustomerInformation, nil
}
// BookingCustomerInformationBase undocumented
type BookingCustomerInformationBase struct {
// Object is the base model of BookingCustomerInformationBase
Object
ODataType string `json:"@odata.type,omitempty"`
}
func NewBookingCustomerInformationBase() (*BookingCustomerInformationBase, error) {
newBookingCustomerInformationBase := &BookingCustomerInformationBase{
ODataType: "#microsoft.graph.BookingCustomerInformationBase",
}
return newBookingCustomerInformationBase, nil
}
// BookingQuestionAnswer undocumented
type BookingQuestionAnswer struct {
// Object is the base model of BookingQuestionAnswer
Object
ODataType string `json:"@odata.type,omitempty"`
// Answer undocumented
Answer *string `json:"answer,omitempty"`
// AnswerInputType undocumented
AnswerInputType *AnswerInputType `json:"answerInputType,omitempty"`
// AnswerOptions undocumented
AnswerOptions []string `json:"answerOptions,omitempty"`
// IsRequired undocumented
IsRequired *bool `json:"isRequired,omitempty"`
// Question undocumented
Question *string `json:"question,omitempty"`
// QuestionID undocumented
QuestionID *string `json:"questionId,omitempty"`
// SelectedOptions undocumented
SelectedOptions []string `json:"selectedOptions,omitempty"`
}
func NewBookingQuestionAnswer() (*BookingQuestionAnswer, error) {
newBookingQuestionAnswer := &BookingQuestionAnswer{
ODataType: "#microsoft.graph.BookingQuestionAnswer",
}
return newBookingQuestionAnswer, nil
}
// BookingQuestionAssignment undocumented
type BookingQuestionAssignment struct {
// Object is the base model of BookingQuestionAssignment
Object
ODataType string `json:"@odata.type,omitempty"`
// IsRequired undocumented
IsRequired *bool `json:"isRequired,omitempty"`
// QuestionID undocumented
QuestionID *string `json:"questionId,omitempty"`
}
func NewBookingQuestionAssignment() (*BookingQuestionAssignment, error) {
newBookingQuestionAssignment := &BookingQuestionAssignment{
ODataType: "#microsoft.graph.BookingQuestionAssignment",
}
return newBookingQuestionAssignment, nil
}
// BookingReminder undocumented
type BookingReminder struct {
// Object is the base model of BookingReminder
Object
ODataType string `json:"@odata.type,omitempty"`
// Message undocumented
Message *string `json:"message,omitempty"`
// Offset undocumented
Offset *Duration `json:"offset,omitempty"`
// Recipients undocumented
Recipients *BookingReminderRecipients `json:"recipients,omitempty"`
}
func NewBookingReminder() (*BookingReminder, error) {
newBookingReminder := &BookingReminder{
ODataType: "#microsoft.graph.BookingReminder",
}
return newBookingReminder, nil
}
// BookingSchedulingPolicy undocumented
type BookingSchedulingPolicy struct {
// Object is the base model of BookingSchedulingPolicy
Object
ODataType string `json:"@odata.type,omitempty"`
// AllowStaffSelection undocumented
AllowStaffSelection *bool `json:"allowStaffSelection,omitempty"`
// MaximumAdvance undocumented
MaximumAdvance *Duration `json:"maximumAdvance,omitempty"`
// MinimumLeadTime undocumented
MinimumLeadTime *Duration `json:"minimumLeadTime,omitempty"`
// SendConfirmationsToOwner undocumented
SendConfirmationsToOwner *bool `json:"sendConfirmationsToOwner,omitempty"`
// TimeSlotInterval undocumented
TimeSlotInterval *Duration `json:"timeSlotInterval,omitempty"`
}
func NewBookingSchedulingPolicy() (*BookingSchedulingPolicy, error) {
newBookingSchedulingPolicy := &BookingSchedulingPolicy{
ODataType: "#microsoft.graph.BookingSchedulingPolicy",
}
return newBookingSchedulingPolicy, nil
}
// BookingService undocumented
type BookingService struct {
// Entity is the base model of BookingService
Entity
ODataType string `json:"@odata.type,omitempty"`
// AdditionalInformation undocumented
AdditionalInformation *string `json:"additionalInformation,omitempty"`
// CustomQuestions undocumented
CustomQuestions []BookingQuestionAssignment `json:"customQuestions,omitempty"`
// DefaultDuration undocumented
DefaultDuration *Duration `json:"defaultDuration,omitempty"`
// DefaultLocation undocumented
DefaultLocation *Location `json:"defaultLocation,omitempty"`
// DefaultPrice undocumented
DefaultPrice *float64 `json:"defaultPrice,omitempty"`
// DefaultPriceType undocumented
DefaultPriceType *BookingPriceType `json:"defaultPriceType,omitempty"`
// DefaultReminders undocumented
DefaultReminders []BookingReminder `json:"defaultReminders,omitempty"`
// Description undocumented
Description *string `json:"description,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// IsAnonymousJoinEnabled undocumented
IsAnonymousJoinEnabled *bool `json:"isAnonymousJoinEnabled,omitempty"`
// IsHiddenFromCustomers undocumented
IsHiddenFromCustomers *bool `json:"isHiddenFromCustomers,omitempty"`
// IsLocationOnline undocumented
IsLocationOnline *bool `json:"isLocationOnline,omitempty"`
// LanguageTag undocumented
LanguageTag *string `json:"languageTag,omitempty"`
// MaximumAttendeesCount undocumented
MaximumAttendeesCount *int `json:"maximumAttendeesCount,omitempty"`
// Notes undocumented
Notes *string `json:"notes,omitempty"`
// PostBuffer undocumented
PostBuffer *Duration `json:"postBuffer,omitempty"`
// PreBuffer undocumented
PreBuffer *Duration `json:"preBuffer,omitempty"`
// SchedulingPolicy undocumented
SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
// SmsNotificationsEnabled undocumented
SmsNotificationsEnabled *bool `json:"smsNotificationsEnabled,omitempty"`
// StaffMemberIDs undocumented
StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
// WebURL undocumented
WebURL *string `json:"webUrl,omitempty"`
}
func NewBookingService() (*BookingService, error) {
newBookingService := &BookingService{
ODataType: "#microsoft.graph.BookingService",
}
return newBookingService, nil
}
// BookingStaffMember undocumented
type BookingStaffMember struct {
// BookingStaffMemberBase is the base model of BookingStaffMember
BookingStaffMemberBase
ODataType string `json:"@odata.type,omitempty"`
// AvailabilityIsAffectedByPersonalCalendar undocumented
AvailabilityIsAffectedByPersonalCalendar *bool `json:"availabilityIsAffectedByPersonalCalendar,omitempty"`
// DisplayName undocumented
DisplayName *string `json:"displayName,omitempty"`
// EmailAddress undocumented
EmailAddress *string `json:"emailAddress,omitempty"`
// IsEmailNotificationEnabled undocumented
IsEmailNotificationEnabled *bool `json:"isEmailNotificationEnabled,omitempty"`
// Role undocumented
Role *BookingStaffRole `json:"role,omitempty"`
// TimeZone undocumented
TimeZone *string `json:"timeZone,omitempty"`
// UseBusinessHours undocumented
UseBusinessHours *bool `json:"useBusinessHours,omitempty"`
// WorkingHours undocumented
WorkingHours []BookingWorkHours `json:"workingHours,omitempty"`
}
func NewBookingStaffMember() (*BookingStaffMember, error) {
newBookingStaffMember := &BookingStaffMember{
ODataType: "#microsoft.graph.BookingStaffMember",
}
return newBookingStaffMember, nil
}
// BookingStaffMemberBase undocumented
type BookingStaffMemberBase struct {
// Entity is the base model of BookingStaffMemberBase
Entity
ODataType string `json:"@odata.type,omitempty"`
}
func NewBookingStaffMemberBase() (*BookingStaffMemberBase, error) {
newBookingStaffMemberBase := &BookingStaffMemberBase{
ODataType: "#microsoft.graph.BookingStaffMemberBase",
}
return newBookingStaffMemberBase, nil
}
// BookingWorkHours undocumented
type BookingWorkHours struct {
// Object is the base model of BookingWorkHours
Object
ODataType string `json:"@odata.type,omitempty"`
// Day undocumented
Day *DayOfWeek `json:"day,omitempty"`
// TimeSlots undocumented
TimeSlots []BookingWorkTimeSlot `json:"timeSlots,omitempty"`
}
func NewBookingWorkHours() (*BookingWorkHours, error) {
newBookingWorkHours := &BookingWorkHours{
ODataType: "#microsoft.graph.BookingWorkHours",
}
return newBookingWorkHours, nil
}
// BookingWorkTimeSlot undocumented
type BookingWorkTimeSlot struct {
// Object is the base model of BookingWorkTimeSlot
Object
ODataType string `json:"@odata.type,omitempty"`
// EndTime undocumented
EndTime *TimeOfDay `json:"endTime,omitempty"`
// StartTime undocumented
StartTime *TimeOfDay `json:"startTime,omitempty"`
}
func NewBookingWorkTimeSlot() (*BookingWorkTimeSlot, error) {
newBookingWorkTimeSlot := &BookingWorkTimeSlot{
ODataType: "#microsoft.graph.BookingWorkTimeSlot",
}
return newBookingWorkTimeSlot, nil
}