diff options
author | Qais Patankar <qaisjp@gmail.com> | 2020-03-15 22:43:46 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2020-03-22 00:02:48 +0100 |
commit | 76e5fe5a87d7e60919075f96eee599f3c6255a9f (patch) | |
tree | af3181ad6aadaea02069473a3718a827be888426 /vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go | |
parent | 802c80f40c709ba4967de317e40a8d6abe57f6be (diff) | |
download | matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.gz matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.tar.bz2 matterbridge-msglm-76e5fe5a87d7e60919075f96eee599f3c6255a9f.zip |
Update vendor yaegashi/msgraph.go to v0.1.2 (2)
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go')
-rw-r--r-- | vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go | 281 |
1 files changed, 281 insertions, 0 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go new file mode 100644 index 00000000..766f8f34 --- /dev/null +++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go @@ -0,0 +1,281 @@ +// Code generated by msgraph-generate.go DO NOT EDIT. + +package msgraph + +import "context" + +// BookingAppointmentRequestBuilder is request builder for BookingAppointment +type BookingAppointmentRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingAppointmentRequest +func (b *BookingAppointmentRequestBuilder) Request() *BookingAppointmentRequest { + return &BookingAppointmentRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingAppointmentRequest is request for BookingAppointment +type BookingAppointmentRequest struct{ BaseRequest } + +// Get performs GET request for BookingAppointment +func (r *BookingAppointmentRequest) Get(ctx context.Context) (resObj *BookingAppointment, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingAppointment +func (r *BookingAppointmentRequest) Update(ctx context.Context, reqObj *BookingAppointment) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingAppointment +func (r *BookingAppointmentRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingBusinessRequestBuilder is request builder for BookingBusiness +type BookingBusinessRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingBusinessRequest +func (b *BookingBusinessRequestBuilder) Request() *BookingBusinessRequest { + return &BookingBusinessRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingBusinessRequest is request for BookingBusiness +type BookingBusinessRequest struct{ BaseRequest } + +// Get performs GET request for BookingBusiness +func (r *BookingBusinessRequest) Get(ctx context.Context) (resObj *BookingBusiness, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingBusiness +func (r *BookingBusinessRequest) Update(ctx context.Context, reqObj *BookingBusiness) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingBusiness +func (r *BookingBusinessRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingCurrencyRequestBuilder is request builder for BookingCurrency +type BookingCurrencyRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingCurrencyRequest +func (b *BookingCurrencyRequestBuilder) Request() *BookingCurrencyRequest { + return &BookingCurrencyRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingCurrencyRequest is request for BookingCurrency +type BookingCurrencyRequest struct{ BaseRequest } + +// Get performs GET request for BookingCurrency +func (r *BookingCurrencyRequest) Get(ctx context.Context) (resObj *BookingCurrency, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingCurrency +func (r *BookingCurrencyRequest) Update(ctx context.Context, reqObj *BookingCurrency) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingCurrency +func (r *BookingCurrencyRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingCustomerRequestBuilder is request builder for BookingCustomer +type BookingCustomerRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingCustomerRequest +func (b *BookingCustomerRequestBuilder) Request() *BookingCustomerRequest { + return &BookingCustomerRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingCustomerRequest is request for BookingCustomer +type BookingCustomerRequest struct{ BaseRequest } + +// Get performs GET request for BookingCustomer +func (r *BookingCustomerRequest) Get(ctx context.Context) (resObj *BookingCustomer, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingCustomer +func (r *BookingCustomerRequest) Update(ctx context.Context, reqObj *BookingCustomer) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingCustomer +func (r *BookingCustomerRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingServiceRequestBuilder is request builder for BookingService +type BookingServiceRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingServiceRequest +func (b *BookingServiceRequestBuilder) Request() *BookingServiceRequest { + return &BookingServiceRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingServiceRequest is request for BookingService +type BookingServiceRequest struct{ BaseRequest } + +// Get performs GET request for BookingService +func (r *BookingServiceRequest) Get(ctx context.Context) (resObj *BookingService, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingService +func (r *BookingServiceRequest) Update(ctx context.Context, reqObj *BookingService) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingService +func (r *BookingServiceRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// BookingStaffMemberRequestBuilder is request builder for BookingStaffMember +type BookingStaffMemberRequestBuilder struct{ BaseRequestBuilder } + +// Request returns BookingStaffMemberRequest +func (b *BookingStaffMemberRequestBuilder) Request() *BookingStaffMemberRequest { + return &BookingStaffMemberRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client}, + } +} + +// BookingStaffMemberRequest is request for BookingStaffMember +type BookingStaffMemberRequest struct{ BaseRequest } + +// Get performs GET request for BookingStaffMember +func (r *BookingStaffMemberRequest) Get(ctx context.Context) (resObj *BookingStaffMember, err error) { + var query string + if r.query != nil { + query = "?" + r.query.Encode() + } + err = r.JSONRequest(ctx, "GET", query, nil, &resObj) + return +} + +// Update performs PATCH request for BookingStaffMember +func (r *BookingStaffMemberRequest) Update(ctx context.Context, reqObj *BookingStaffMember) error { + return r.JSONRequest(ctx, "PATCH", "", reqObj, nil) +} + +// Delete performs DELETE request for BookingStaffMember +func (r *BookingStaffMemberRequest) Delete(ctx context.Context) error { + return r.JSONRequest(ctx, "DELETE", "", nil, nil) +} + +// +type BookingAppointmentCancelRequestBuilder struct{ BaseRequestBuilder } + +// Cancel action undocumented +func (b *BookingAppointmentRequestBuilder) Cancel(reqObj *BookingAppointmentCancelRequestParameter) *BookingAppointmentCancelRequestBuilder { + bb := &BookingAppointmentCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/cancel" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingAppointmentCancelRequest struct{ BaseRequest } + +// +func (b *BookingAppointmentCancelRequestBuilder) Request() *BookingAppointmentCancelRequest { + return &BookingAppointmentCancelRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingAppointmentCancelRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type BookingBusinessPublishRequestBuilder struct{ BaseRequestBuilder } + +// Publish action undocumented +func (b *BookingBusinessRequestBuilder) Publish(reqObj *BookingBusinessPublishRequestParameter) *BookingBusinessPublishRequestBuilder { + bb := &BookingBusinessPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/publish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingBusinessPublishRequest struct{ BaseRequest } + +// +func (b *BookingBusinessPublishRequestBuilder) Request() *BookingBusinessPublishRequest { + return &BookingBusinessPublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingBusinessPublishRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} + +// +type BookingBusinessUnpublishRequestBuilder struct{ BaseRequestBuilder } + +// Unpublish action undocumented +func (b *BookingBusinessRequestBuilder) Unpublish(reqObj *BookingBusinessUnpublishRequestParameter) *BookingBusinessUnpublishRequestBuilder { + bb := &BookingBusinessUnpublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder} + bb.BaseRequestBuilder.baseURL += "/unpublish" + bb.BaseRequestBuilder.requestObject = reqObj + return bb +} + +// +type BookingBusinessUnpublishRequest struct{ BaseRequest } + +// +func (b *BookingBusinessUnpublishRequestBuilder) Request() *BookingBusinessUnpublishRequest { + return &BookingBusinessUnpublishRequest{ + BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject}, + } +} + +// +func (r *BookingBusinessUnpublishRequest) Post(ctx context.Context) error { + return r.JSONRequest(ctx, "POST", "", r.requestObject, nil) +} |