api

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewAssignWorkLineMechanicRequest added in v0.1.1

func NewAssignWorkLineMechanicRequest(server string, jobId string, workLineId string, params *AssignWorkLineMechanicParams, body AssignWorkLineMechanicJSONRequestBody) (*http.Request, error)

NewAssignWorkLineMechanicRequest calls the generic AssignWorkLineMechanic builder with application/json body

func NewAssignWorkLineMechanicRequestWithBody added in v0.1.1

func NewAssignWorkLineMechanicRequestWithBody(server string, jobId string, workLineId string, params *AssignWorkLineMechanicParams, contentType string, body io.Reader) (*http.Request, error)

NewAssignWorkLineMechanicRequestWithBody generates requests for AssignWorkLineMechanic with any type of body

func NewAvailabilityRequest added in v0.1.1

func NewAvailabilityRequest(server string, businessId string, params *AvailabilityParams) (*http.Request, error)

NewAvailabilityRequest generates requests for Availability

func NewAvailabilitySlotsRequest added in v0.1.1

func NewAvailabilitySlotsRequest(server string, businessId string, params *AvailabilitySlotsParams) (*http.Request, error)

NewAvailabilitySlotsRequest generates requests for AvailabilitySlots

func NewBusinessIntegrationRequest added in v0.1.1

func NewBusinessIntegrationRequest(server string, businessId string, params *BusinessIntegrationParams) (*http.Request, error)

NewBusinessIntegrationRequest generates requests for BusinessIntegration

func NewChangeAcceptedStatusRequest added in v0.1.1

func NewChangeAcceptedStatusRequest(server string, jobId string, params *ChangeAcceptedStatusParams, body ChangeAcceptedStatusJSONRequestBody) (*http.Request, error)

NewChangeAcceptedStatusRequest calls the generic ChangeAcceptedStatus builder with application/json body

func NewChangeAcceptedStatusRequestWithBody added in v0.1.1

func NewChangeAcceptedStatusRequestWithBody(server string, jobId string, params *ChangeAcceptedStatusParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeAcceptedStatusRequestWithBody generates requests for ChangeAcceptedStatus with any type of body

func NewChangeInvoiceAutoSyncRequest added in v0.1.1

func NewChangeInvoiceAutoSyncRequest(server string, invoiceId string, params *ChangeInvoiceAutoSyncParams, body ChangeInvoiceAutoSyncJSONRequestBody) (*http.Request, error)

NewChangeInvoiceAutoSyncRequest calls the generic ChangeInvoiceAutoSync builder with application/json body

func NewChangeInvoiceAutoSyncRequestWithBody added in v0.1.1

func NewChangeInvoiceAutoSyncRequestWithBody(server string, invoiceId string, params *ChangeInvoiceAutoSyncParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeInvoiceAutoSyncRequestWithBody generates requests for ChangeInvoiceAutoSync with any type of body

func NewChangeInvoiceSyncCompletionRequest added in v0.1.1

func NewChangeInvoiceSyncCompletionRequest(server string, invoiceId string, params *ChangeInvoiceSyncCompletionParams, body ChangeInvoiceSyncCompletionJSONRequestBody) (*http.Request, error)

NewChangeInvoiceSyncCompletionRequest calls the generic ChangeInvoiceSyncCompletion builder with application/json body

func NewChangeInvoiceSyncCompletionRequestWithBody added in v0.1.1

func NewChangeInvoiceSyncCompletionRequestWithBody(server string, invoiceId string, params *ChangeInvoiceSyncCompletionParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeInvoiceSyncCompletionRequestWithBody generates requests for ChangeInvoiceSyncCompletion with any type of body

func NewChangeScheduleRequest added in v0.1.1

func NewChangeScheduleRequest(server string, jobId string, params *ChangeScheduleParams, body ChangeScheduleJSONRequestBody) (*http.Request, error)

NewChangeScheduleRequest calls the generic ChangeSchedule builder with application/json body

func NewChangeScheduleRequestWithBody added in v0.1.1

func NewChangeScheduleRequestWithBody(server string, jobId string, params *ChangeScheduleParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeScheduleRequestWithBody generates requests for ChangeSchedule with any type of body

func NewChangeStatusRequest added in v0.1.1

func NewChangeStatusRequest(server string, invoiceId string, params *ChangeStatusParams, body ChangeStatusJSONRequestBody) (*http.Request, error)

NewChangeStatusRequest calls the generic ChangeStatus builder with application/json body

func NewChangeStatusRequestWithBody added in v0.1.1

func NewChangeStatusRequestWithBody(server string, invoiceId string, params *ChangeStatusParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeStatusRequestWithBody generates requests for ChangeStatus with any type of body

func NewChangeWorkLineStatusRequest added in v0.1.1

func NewChangeWorkLineStatusRequest(server string, jobId string, workLineId string, params *ChangeWorkLineStatusParams, body ChangeWorkLineStatusJSONRequestBody) (*http.Request, error)

NewChangeWorkLineStatusRequest calls the generic ChangeWorkLineStatus builder with application/json body

func NewChangeWorkLineStatusRequestWithBody added in v0.1.1

func NewChangeWorkLineStatusRequestWithBody(server string, jobId string, workLineId string, params *ChangeWorkLineStatusParams, contentType string, body io.Reader) (*http.Request, error)

NewChangeWorkLineStatusRequestWithBody generates requests for ChangeWorkLineStatus with any type of body

func NewChatMessagesRequest

func NewChatMessagesRequest(server string, customerId string, params *ChatMessagesParams) (*http.Request, error)

NewChatMessagesRequest generates requests for ChatMessages

func NewCreateAssetRequest added in v0.1.1

func NewCreateAssetRequest(server string, params *CreateAssetParams, body CreateAssetJSONRequestBody) (*http.Request, error)

NewCreateAssetRequest calls the generic CreateAsset builder with application/json body

func NewCreateAssetRequestWithBody added in v0.1.1

func NewCreateAssetRequestWithBody(server string, params *CreateAssetParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateAssetRequestWithBody generates requests for CreateAsset with any type of body

func NewCreateChatAttachmentsRequestWithBody added in v0.1.1

func NewCreateChatAttachmentsRequestWithBody(server string, customerId string, params *CreateChatAttachmentsParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateChatAttachmentsRequestWithBody generates requests for CreateChatAttachments with any type of body

func NewCreateChatMessageRequest added in v0.1.1

func NewCreateChatMessageRequest(server string, customerId string, params *CreateChatMessageParams, body CreateChatMessageJSONRequestBody) (*http.Request, error)

NewCreateChatMessageRequest calls the generic CreateChatMessage builder with application/json body

func NewCreateChatMessageRequestWithBody added in v0.1.1

func NewCreateChatMessageRequestWithBody(server string, customerId string, params *CreateChatMessageParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateChatMessageRequestWithBody generates requests for CreateChatMessage with any type of body

func NewCreateCustomerRequest added in v0.1.1

func NewCreateCustomerRequest(server string, params *CreateCustomerParams, body CreateCustomerJSONRequestBody) (*http.Request, error)

NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body

func NewCreateCustomerRequestWithBody added in v0.1.1

func NewCreateCustomerRequestWithBody(server string, params *CreateCustomerParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body

func NewCreateInvoiceItemRequest added in v0.1.1

func NewCreateInvoiceItemRequest(server string, params *CreateInvoiceItemParams, body CreateInvoiceItemJSONRequestBody) (*http.Request, error)

NewCreateInvoiceItemRequest calls the generic CreateInvoiceItem builder with application/json body

func NewCreateInvoiceItemRequestWithBody added in v0.1.1

func NewCreateInvoiceItemRequestWithBody(server string, params *CreateInvoiceItemParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateInvoiceItemRequestWithBody generates requests for CreateInvoiceItem with any type of body

func NewCreateJobBookingRequest added in v0.1.1

func NewCreateJobBookingRequest(server string, params *CreateJobBookingParams, body CreateJobBookingJSONRequestBody) (*http.Request, error)

NewCreateJobBookingRequest calls the generic CreateJobBooking builder with application/json body

func NewCreateJobBookingRequestWithBody added in v0.1.1

func NewCreateJobBookingRequestWithBody(server string, params *CreateJobBookingParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateJobBookingRequestWithBody generates requests for CreateJobBooking with any type of body

func NewCreateRequest added in v0.1.1

func NewCreateRequest(server string, params *CreateParams, body CreateJSONRequestBody) (*http.Request, error)

NewCreateRequest calls the generic Create builder with application/json body

func NewCreateRequestWithBody added in v0.1.1

func NewCreateRequestWithBody(server string, params *CreateParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateRequestWithBody generates requests for Create with any type of body

func NewCreateServiceRequest added in v0.1.1

func NewCreateServiceRequest(server string, businessId string, params *CreateServiceParams, body CreateServiceJSONRequestBody) (*http.Request, error)

NewCreateServiceRequest calls the generic CreateService builder with application/json body

func NewCreateServiceRequestWithBody added in v0.1.1

func NewCreateServiceRequestWithBody(server string, businessId string, params *CreateServiceParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateServiceRequestWithBody generates requests for CreateService with any type of body

func NewCreateWebhookEndpointRequest added in v0.1.1

func NewCreateWebhookEndpointRequest(server string, params *CreateWebhookEndpointParams, body CreateWebhookEndpointJSONRequestBody) (*http.Request, error)

NewCreateWebhookEndpointRequest calls the generic CreateWebhookEndpoint builder with application/json body

func NewCreateWebhookEndpointRequestWithBody added in v0.1.1

func NewCreateWebhookEndpointRequestWithBody(server string, params *CreateWebhookEndpointParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateWebhookEndpointRequestWithBody generates requests for CreateWebhookEndpoint with any type of body

func NewCustomerRequest added in v0.1.1

func NewCustomerRequest(server string, customerId string, params *CustomerParams) (*http.Request, error)

NewCustomerRequest generates requests for Customer

func NewCustomersRequest added in v0.1.1

func NewCustomersRequest(server string, params *CustomersParams) (*http.Request, error)

NewCustomersRequest generates requests for Customers

func NewDeleteAssetRequest added in v0.1.1

func NewDeleteAssetRequest(server string, assetId string, params *DeleteAssetParams) (*http.Request, error)

NewDeleteAssetRequest generates requests for DeleteAsset

func NewDeleteInvoiceItemRequest added in v0.1.1

func NewDeleteInvoiceItemRequest(server string, invoiceItemId string, params *DeleteInvoiceItemParams) (*http.Request, error)

NewDeleteInvoiceItemRequest generates requests for DeleteInvoiceItem

func NewDeleteRequest added in v0.1.1

func NewDeleteRequest(server string, backOrderId string, params *DeleteParams) (*http.Request, error)

NewDeleteRequest generates requests for Delete

func NewDeleteWebhookEndpointRequest added in v0.1.1

func NewDeleteWebhookEndpointRequest(server string, endpointId string, params *DeleteWebhookEndpointParams) (*http.Request, error)

NewDeleteWebhookEndpointRequest generates requests for DeleteWebhookEndpoint

func NewGetActivityRequest added in v0.2.0

func NewGetActivityRequest(server string, activityId string, params *GetActivityParams) (*http.Request, error)

NewGetActivityRequest generates requests for GetActivity

func NewGetAssetRequest added in v0.1.1

func NewGetAssetRequest(server string, assetId string, params *GetAssetParams) (*http.Request, error)

NewGetAssetRequest generates requests for GetAsset

func NewGetBusinessRequest added in v0.1.1

func NewGetBusinessRequest(server string, businessId string, params *GetBusinessParams) (*http.Request, error)

NewGetBusinessRequest generates requests for GetBusiness

func NewGetForJobRequest added in v0.2.0

func NewGetForJobRequest(server string, jobId string, activityId string, params *GetForJobParams) (*http.Request, error)

NewGetForJobRequest generates requests for GetForJob

func NewGetInvoiceItemRequest added in v0.1.1

func NewGetInvoiceItemRequest(server string, invoiceItemId string, params *GetInvoiceItemParams) (*http.Request, error)

NewGetInvoiceItemRequest generates requests for GetInvoiceItem

func NewGetInvoiceRequest added in v0.1.1

func NewGetInvoiceRequest(server string, invoiceId string, params *GetInvoiceParams) (*http.Request, error)

NewGetInvoiceRequest generates requests for GetInvoice

func NewGetJobReportForJobRequest added in v0.1.1

func NewGetJobReportForJobRequest(server string, jobId string, jobReportId string, params *GetJobReportForJobParams) (*http.Request, error)

NewGetJobReportForJobRequest generates requests for GetJobReportForJob

func NewGetJobReportRequest added in v0.1.1

func NewGetJobReportRequest(server string, jobReportId string, params *GetJobReportParams) (*http.Request, error)

NewGetJobReportRequest generates requests for GetJobReport

func NewGetPaymentRequest added in v0.1.2

func NewGetPaymentRequest(server string, paymentId string, params *GetPaymentParams) (*http.Request, error)

NewGetPaymentRequest generates requests for GetPayment

func NewGetRequest added in v0.1.1

func NewGetRequest(server string, backOrderId string, params *GetParams) (*http.Request, error)

NewGetRequest generates requests for Get

func NewGetServiceRequest added in v0.1.1

func NewGetServiceRequest(server string, serviceId string, params *GetServiceParams) (*http.Request, error)

NewGetServiceRequest generates requests for GetService

func NewGetStockVariationRequest added in v0.1.1

func NewGetStockVariationRequest(server string, stockVariationId string, params *GetStockVariationParams) (*http.Request, error)

NewGetStockVariationRequest generates requests for GetStockVariation

func NewGetTeamMemberRequest added in v0.2.0

func NewGetTeamMemberRequest(server string, teamMemberId string, params *GetTeamMemberParams) (*http.Request, error)

NewGetTeamMemberRequest generates requests for GetTeamMember

func NewGetWebhookDeliveryRequest added in v0.1.1

func NewGetWebhookDeliveryRequest(server string, deliveryId string, params *GetWebhookDeliveryParams) (*http.Request, error)

NewGetWebhookDeliveryRequest generates requests for GetWebhookDelivery

func NewGetWebhookEndpointRequest added in v0.1.1

func NewGetWebhookEndpointRequest(server string, endpointId string, params *GetWebhookEndpointParams) (*http.Request, error)

NewGetWebhookEndpointRequest generates requests for GetWebhookEndpoint

func NewInvoiceIntegrationSyncBatchRequest added in v0.1.2

func NewInvoiceIntegrationSyncBatchRequest(server string, params *InvoiceIntegrationSyncBatchParams, body InvoiceIntegrationSyncBatchJSONRequestBody) (*http.Request, error)

NewInvoiceIntegrationSyncBatchRequest calls the generic InvoiceIntegrationSyncBatch builder with application/json body

func NewInvoiceIntegrationSyncBatchRequestWithBody added in v0.1.2

func NewInvoiceIntegrationSyncBatchRequestWithBody(server string, params *InvoiceIntegrationSyncBatchParams, contentType string, body io.Reader) (*http.Request, error)

NewInvoiceIntegrationSyncBatchRequestWithBody generates requests for InvoiceIntegrationSyncBatch with any type of body

func NewInvoiceIntegrationSyncEventsRequest added in v0.1.1

func NewInvoiceIntegrationSyncEventsRequest(server string, invoiceId string, params *InvoiceIntegrationSyncEventsParams) (*http.Request, error)

NewInvoiceIntegrationSyncEventsRequest generates requests for InvoiceIntegrationSyncEvents

func NewInvoiceIntegrationSyncRequest added in v0.1.1

func NewInvoiceIntegrationSyncRequest(server string, invoiceId string, params *InvoiceIntegrationSyncParams) (*http.Request, error)

NewInvoiceIntegrationSyncRequest generates requests for InvoiceIntegrationSync

func NewJobRequest added in v0.1.1

func NewJobRequest(server string, jobId string, params *JobParams) (*http.Request, error)

NewJobRequest generates requests for Job

func NewJobStatusesRequest added in v0.1.1

func NewJobStatusesRequest(server string, businessId string, params *JobStatusesParams) (*http.Request, error)

NewJobStatusesRequest generates requests for JobStatuses

func NewJobsRequest added in v0.1.1

func NewJobsRequest(server string, params *JobsParams) (*http.Request, error)

NewJobsRequest generates requests for Jobs

func NewListActivityRequest added in v0.2.0

func NewListActivityRequest(server string, params *ListActivityParams) (*http.Request, error)

NewListActivityRequest generates requests for ListActivity

func NewListAssetRequest added in v0.1.1

func NewListAssetRequest(server string, params *ListAssetParams) (*http.Request, error)

NewListAssetRequest generates requests for ListAsset

func NewListBusinessRequest added in v0.1.1

func NewListBusinessRequest(server string, params *ListBusinessParams) (*http.Request, error)

NewListBusinessRequest generates requests for ListBusiness

func NewListForCustomerRequest added in v0.1.1

func NewListForCustomerRequest(server string, customerId string, params *ListForCustomerParams) (*http.Request, error)

NewListForCustomerRequest generates requests for ListForCustomer

func NewListForEndpointRequest added in v0.1.1

func NewListForEndpointRequest(server string, endpointId string, params *ListForEndpointParams) (*http.Request, error)

NewListForEndpointRequest generates requests for ListForEndpoint

func NewListForInvoiceRequest added in v0.2.0

func NewListForInvoiceRequest(server string, invoiceId string, params *ListForInvoiceParams) (*http.Request, error)

NewListForInvoiceRequest generates requests for ListForInvoice

func NewListForJobRequest added in v0.2.0

func NewListForJobRequest(server string, jobId string, params *ListForJobParams) (*http.Request, error)

NewListForJobRequest generates requests for ListForJob

func NewListInvoiceRequest added in v0.1.1

func NewListInvoiceRequest(server string, params *ListInvoiceParams) (*http.Request, error)

NewListInvoiceRequest generates requests for ListInvoice

func NewListJobReportForJobRequest added in v0.1.1

func NewListJobReportForJobRequest(server string, jobId string, params *ListJobReportForJobParams) (*http.Request, error)

NewListJobReportForJobRequest generates requests for ListJobReportForJob

func NewListJobReportRequest added in v0.1.1

func NewListJobReportRequest(server string, params *ListJobReportParams) (*http.Request, error)

NewListJobReportRequest generates requests for ListJobReport

func NewListPaymentRequest added in v0.1.2

func NewListPaymentRequest(server string, params *ListPaymentParams) (*http.Request, error)

NewListPaymentRequest generates requests for ListPayment

func NewListRequest added in v0.1.1

func NewListRequest(server string, params *ListParams) (*http.Request, error)

NewListRequest generates requests for List

func NewListServiceRequest added in v0.1.1

func NewListServiceRequest(server string, params *ListServiceParams) (*http.Request, error)

NewListServiceRequest generates requests for ListService

func NewListStockVariationRequest added in v0.1.1

func NewListStockVariationRequest(server string, params *ListStockVariationParams) (*http.Request, error)

NewListStockVariationRequest generates requests for ListStockVariation

func NewListTeamMemberRequest added in v0.2.0

func NewListTeamMemberRequest(server string, params *ListTeamMemberParams) (*http.Request, error)

NewListTeamMemberRequest generates requests for ListTeamMember

func NewListWebhookEndpointRequest added in v0.1.1

func NewListWebhookEndpointRequest(server string, params *ListWebhookEndpointParams) (*http.Request, error)

NewListWebhookEndpointRequest generates requests for ListWebhookEndpoint

func NewListWebhookEventRequest added in v0.1.1

func NewListWebhookEventRequest(server string, params *ListWebhookEventParams) (*http.Request, error)

NewListWebhookEventRequest generates requests for ListWebhookEvent

func NewMarkReadRequest added in v0.1.1

func NewMarkReadRequest(server string, customerId string, params *MarkReadParams) (*http.Request, error)

NewMarkReadRequest generates requests for MarkRead

func NewNextAvailableSlotRequest added in v0.1.1

func NewNextAvailableSlotRequest(server string, businessId string, params *NextAvailableSlotParams) (*http.Request, error)

NewNextAvailableSlotRequest generates requests for NextAvailableSlot

func NewPartAuthorisationsRequest added in v0.1.1

func NewPartAuthorisationsRequest(server string, jobId string, params *PartAuthorisationsParams) (*http.Request, error)

NewPartAuthorisationsRequest generates requests for PartAuthorisations

func NewPaymentLinkRequest added in v0.1.1

func NewPaymentLinkRequest(server string, invoiceId string, params *PaymentLinkParams) (*http.Request, error)

NewPaymentLinkRequest generates requests for PaymentLink

func NewPdfRequest added in v0.1.1

func NewPdfRequest(server string, invoiceId string, params *PdfParams) (*http.Request, error)

NewPdfRequest generates requests for Pdf

func NewReceiveRequest added in v0.1.1

func NewReceiveRequest(server string, params *ReceiveParams, body ReceiveJSONRequestBody) (*http.Request, error)

NewReceiveRequest calls the generic Receive builder with application/json body

func NewReceiveRequestWithBody added in v0.1.1

func NewReceiveRequestWithBody(server string, params *ReceiveParams, contentType string, body io.Reader) (*http.Request, error)

NewReceiveRequestWithBody generates requests for Receive with any type of body

func NewRecordPaymentRequest added in v0.1.1

func NewRecordPaymentRequest(server string, invoiceId string, params *RecordPaymentParams, body RecordPaymentJSONRequestBody) (*http.Request, error)

NewRecordPaymentRequest calls the generic RecordPayment builder with application/json body

func NewRecordPaymentRequestWithBody added in v0.1.1

func NewRecordPaymentRequestWithBody(server string, invoiceId string, params *RecordPaymentParams, contentType string, body io.Reader) (*http.Request, error)

NewRecordPaymentRequestWithBody generates requests for RecordPayment with any type of body

func NewRefundRequest added in v0.1.1

func NewRefundRequest(server string, paymentId string, params *RefundParams, body RefundJSONRequestBody) (*http.Request, error)

NewRefundRequest calls the generic Refund builder with application/json body

func NewRefundRequestWithBody added in v0.1.1

func NewRefundRequestWithBody(server string, paymentId string, params *RefundParams, contentType string, body io.Reader) (*http.Request, error)

NewRefundRequestWithBody generates requests for Refund with any type of body

func NewReplaceWorkLineServicesRequest added in v0.1.1

func NewReplaceWorkLineServicesRequest(server string, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, body ReplaceWorkLineServicesJSONRequestBody) (*http.Request, error)

NewReplaceWorkLineServicesRequest calls the generic ReplaceWorkLineServices builder with application/json body

func NewReplaceWorkLineServicesRequestWithBody added in v0.1.1

func NewReplaceWorkLineServicesRequestWithBody(server string, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, contentType string, body io.Reader) (*http.Request, error)

NewReplaceWorkLineServicesRequestWithBody generates requests for ReplaceWorkLineServices with any type of body

func NewReplayRequest added in v0.1.1

func NewReplayRequest(server string, deliveryId string, params *ReplayParams) (*http.Request, error)

NewReplayRequest generates requests for Replay

func NewRequestPartAuthorisationRequest added in v0.1.1

func NewRequestPartAuthorisationRequest(server string, jobId string, params *RequestPartAuthorisationParams, body RequestPartAuthorisationJSONRequestBody) (*http.Request, error)

NewRequestPartAuthorisationRequest calls the generic RequestPartAuthorisation builder with application/json body

func NewRequestPartAuthorisationRequestWithBody added in v0.1.1

func NewRequestPartAuthorisationRequestWithBody(server string, jobId string, params *RequestPartAuthorisationParams, contentType string, body io.Reader) (*http.Request, error)

NewRequestPartAuthorisationRequestWithBody generates requests for RequestPartAuthorisation with any type of body

func NewRetryInvoiceIntegrationSyncRequest added in v0.1.1

func NewRetryInvoiceIntegrationSyncRequest(server string, invoiceId string, params *RetryInvoiceIntegrationSyncParams) (*http.Request, error)

NewRetryInvoiceIntegrationSyncRequest generates requests for RetryInvoiceIntegrationSync

func NewRotateSecretRequest added in v0.1.1

func NewRotateSecretRequest(server string, endpointId string, params *RotateSecretParams) (*http.Request, error)

NewRotateSecretRequest generates requests for RotateSecret

func NewSendRequest added in v0.1.1

func NewSendRequest(server string, invoiceId string, params *SendParams, body SendJSONRequestBody) (*http.Request, error)

NewSendRequest calls the generic Send builder with application/json body

func NewSendRequestWithBody added in v0.1.1

func NewSendRequestWithBody(server string, invoiceId string, params *SendParams, contentType string, body io.Reader) (*http.Request, error)

NewSendRequestWithBody generates requests for Send with any type of body

func NewServicesRequest added in v0.1.1

func NewServicesRequest(server string, businessId string, params *ServicesParams) (*http.Request, error)

NewServicesRequest generates requests for Services

func NewSubmitPartAuthorisationDecisionsRequest added in v0.1.1

func NewSubmitPartAuthorisationDecisionsRequest(server string, jobId string, params *SubmitPartAuthorisationDecisionsParams, body SubmitPartAuthorisationDecisionsJSONRequestBody) (*http.Request, error)

NewSubmitPartAuthorisationDecisionsRequest calls the generic SubmitPartAuthorisationDecisions builder with application/json body

func NewSubmitPartAuthorisationDecisionsRequestWithBody added in v0.1.1

func NewSubmitPartAuthorisationDecisionsRequestWithBody(server string, jobId string, params *SubmitPartAuthorisationDecisionsParams, contentType string, body io.Reader) (*http.Request, error)

NewSubmitPartAuthorisationDecisionsRequestWithBody generates requests for SubmitPartAuthorisationDecisions with any type of body

func NewTriggerCustomerSyncRequest added in v0.1.1

func NewTriggerCustomerSyncRequest(server string, businessId string, params *TriggerCustomerSyncParams, body TriggerCustomerSyncJSONRequestBody) (*http.Request, error)

NewTriggerCustomerSyncRequest calls the generic TriggerCustomerSync builder with application/json body

func NewTriggerCustomerSyncRequestWithBody added in v0.1.1

func NewTriggerCustomerSyncRequestWithBody(server string, businessId string, params *TriggerCustomerSyncParams, contentType string, body io.Reader) (*http.Request, error)

NewTriggerCustomerSyncRequestWithBody generates requests for TriggerCustomerSync with any type of body

func NewTriggerInvoiceIntegrationSyncRequest added in v0.1.1

func NewTriggerInvoiceIntegrationSyncRequest(server string, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, body TriggerInvoiceIntegrationSyncJSONRequestBody) (*http.Request, error)

NewTriggerInvoiceIntegrationSyncRequest calls the generic TriggerInvoiceIntegrationSync builder with application/json body

func NewTriggerInvoiceIntegrationSyncRequestWithBody added in v0.1.1

func NewTriggerInvoiceIntegrationSyncRequestWithBody(server string, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, contentType string, body io.Reader) (*http.Request, error)

NewTriggerInvoiceIntegrationSyncRequestWithBody generates requests for TriggerInvoiceIntegrationSync with any type of body

func NewTriggerStockSyncRequest added in v0.1.1

func NewTriggerStockSyncRequest(server string, businessId string, params *TriggerStockSyncParams, body TriggerStockSyncJSONRequestBody) (*http.Request, error)

NewTriggerStockSyncRequest calls the generic TriggerStockSync builder with application/json body

func NewTriggerStockSyncRequestWithBody added in v0.1.1

func NewTriggerStockSyncRequestWithBody(server string, businessId string, params *TriggerStockSyncParams, contentType string, body io.Reader) (*http.Request, error)

NewTriggerStockSyncRequestWithBody generates requests for TriggerStockSync with any type of body

func NewUpdateAssetRequest added in v0.1.1

func NewUpdateAssetRequest(server string, assetId string, params *UpdateAssetParams, body UpdateAssetJSONRequestBody) (*http.Request, error)

NewUpdateAssetRequest calls the generic UpdateAsset builder with application/json body

func NewUpdateAssetRequestWithBody added in v0.1.1

func NewUpdateAssetRequestWithBody(server string, assetId string, params *UpdateAssetParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAssetRequestWithBody generates requests for UpdateAsset with any type of body

func NewUpdateCustomerRequest added in v0.1.1

func NewUpdateCustomerRequest(server string, customerId string, params *UpdateCustomerParams, body UpdateCustomerJSONRequestBody) (*http.Request, error)

NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body

func NewUpdateCustomerRequestWithBody added in v0.1.1

func NewUpdateCustomerRequestWithBody(server string, customerId string, params *UpdateCustomerParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body

func NewUpdateInvoiceItemRequest added in v0.1.1

func NewUpdateInvoiceItemRequest(server string, invoiceItemId string, params *UpdateInvoiceItemParams, body UpdateInvoiceItemJSONRequestBody) (*http.Request, error)

NewUpdateInvoiceItemRequest calls the generic UpdateInvoiceItem builder with application/json body

func NewUpdateInvoiceItemRequestWithBody added in v0.1.1

func NewUpdateInvoiceItemRequestWithBody(server string, invoiceItemId string, params *UpdateInvoiceItemParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateInvoiceItemRequestWithBody generates requests for UpdateInvoiceItem with any type of body

func NewUpdateInvoiceRequest added in v0.1.1

func NewUpdateInvoiceRequest(server string, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody) (*http.Request, error)

NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body

func NewUpdateInvoiceRequestWithBody added in v0.1.1

func NewUpdateInvoiceRequestWithBody(server string, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body

func NewUpdateJobRequest added in v0.1.1

func NewUpdateJobRequest(server string, jobId string, params *UpdateJobParams, body UpdateJobJSONRequestBody) (*http.Request, error)

NewUpdateJobRequest calls the generic UpdateJob builder with application/json body

func NewUpdateJobRequestWithBody added in v0.1.1

func NewUpdateJobRequestWithBody(server string, jobId string, params *UpdateJobParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateJobRequestWithBody generates requests for UpdateJob with any type of body

func NewUpdateRequest added in v0.1.1

func NewUpdateRequest(server string, backOrderId string, params *UpdateParams, body UpdateJSONRequestBody) (*http.Request, error)

NewUpdateRequest calls the generic Update builder with application/json body

func NewUpdateRequestWithBody added in v0.1.1

func NewUpdateRequestWithBody(server string, backOrderId string, params *UpdateParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRequestWithBody generates requests for Update with any type of body

func NewUpdateServiceRequest added in v0.1.1

func NewUpdateServiceRequest(server string, businessId string, serviceId string, params *UpdateServiceParams, body UpdateServiceJSONRequestBody) (*http.Request, error)

NewUpdateServiceRequest calls the generic UpdateService builder with application/json body

func NewUpdateServiceRequestWithBody added in v0.1.1

func NewUpdateServiceRequestWithBody(server string, businessId string, serviceId string, params *UpdateServiceParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateServiceRequestWithBody generates requests for UpdateService with any type of body

func NewUpdateWebhookEndpointRequest added in v0.1.1

func NewUpdateWebhookEndpointRequest(server string, endpointId string, params *UpdateWebhookEndpointParams, body UpdateWebhookEndpointJSONRequestBody) (*http.Request, error)

NewUpdateWebhookEndpointRequest calls the generic UpdateWebhookEndpoint builder with application/json body

func NewUpdateWebhookEndpointRequestWithBody added in v0.1.1

func NewUpdateWebhookEndpointRequestWithBody(server string, endpointId string, params *UpdateWebhookEndpointParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWebhookEndpointRequestWithBody generates requests for UpdateWebhookEndpoint with any type of body

func NewUpdateWorkLineRequest added in v0.1.1

func NewUpdateWorkLineRequest(server string, jobId string, workLineId string, params *UpdateWorkLineParams, body UpdateWorkLineJSONRequestBody) (*http.Request, error)

NewUpdateWorkLineRequest calls the generic UpdateWorkLine builder with application/json body

func NewUpdateWorkLineRequestWithBody added in v0.1.1

func NewUpdateWorkLineRequestWithBody(server string, jobId string, workLineId string, params *UpdateWorkLineParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateWorkLineRequestWithBody generates requests for UpdateWorkLine with any type of body

Types

type AcceptedStatusChangeNotifications added in v0.1.1

type AcceptedStatusChangeNotifications struct {
	// Customer Notification control. Allowed values: `default`, `send`, or `skip`.
	Customer *AcceptedStatusChangeNotificationsCustomer `json:"customer,omitempty"`
}

AcceptedStatusChangeNotifications Notification options for accepted, rejected, and cancelled job status changes.

type AcceptedStatusChangeNotificationsCustomer added in v0.1.1

type AcceptedStatusChangeNotificationsCustomer string

AcceptedStatusChangeNotificationsCustomer Notification control. Allowed values: `default`, `send`, or `skip`.

const (
	AcceptedStatusChangeNotificationsCustomerDefault AcceptedStatusChangeNotificationsCustomer = "default"
	AcceptedStatusChangeNotificationsCustomerSend    AcceptedStatusChangeNotificationsCustomer = "send"
	AcceptedStatusChangeNotificationsCustomerSkip    AcceptedStatusChangeNotificationsCustomer = "skip"
)

Defines values for AcceptedStatusChangeNotificationsCustomer.

func (AcceptedStatusChangeNotificationsCustomer) Valid added in v0.1.1

Valid indicates whether the value is a known member of the AcceptedStatusChangeNotificationsCustomer enum.

type Activity added in v0.2.0

type Activity struct {
	// ActivityType Activity type in snake_case, such as status_changed or comment.
	ActivityType *ActivityActivityType `json:"activity_type,omitempty"`

	// ActorId Public team member id for the staff member who performed the action, when known.
	ActorId *string `json:"actor_id,omitempty"`

	// ActorName Display name of the staff member who performed the action, when known.
	ActorName *string `json:"actor_name,omitempty"`

	// ActorUserId Stable user id for the staff member who performed the action, when known. Matches `team_members.user_id`.
	ActorUserId *string `json:"actor_user_id,omitempty"`

	// AssetName Asset name for work-line context, such as services_changed events.
	AssetName *string `json:"asset_name,omitempty"`

	// Change Before/after values for activity types that represent a transition.
	Change *ActivityChange `json:"change,omitempty"`

	// CreatedAt UTC timestamp when the activity was recorded.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// InvoiceId Public invoice id when the activity relates to an invoice.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// JobId Public job id when the activity relates to a job.
	JobId *string `json:"job_id,omitempty"`

	// Object Resource object type. Always activity.
	Object *ActivityObject `json:"object,omitempty"`

	// Payment Payment amounts and label for payment-related activities.
	Payment *ActivityPaymentDetails `json:"payment,omitempty"`

	// PaymentId Public payment id when the activity relates to a payment.
	PaymentId *string `json:"payment_id,omitempty"`

	// Text Text content for comments, general notes, and opaque template keys.
	Text *string `json:"text,omitempty"`

	// WorkLineId Public work line id when the activity relates to one work line.
	WorkLineId *string `json:"work_line_id,omitempty"`
}

Activity Public representation of a workshop activity (audit trail entry).

type ActivityActivityType added in v0.2.0

type ActivityActivityType string

ActivityActivityType Activity type in snake_case, such as status_changed or comment.

const (
	ActivityActivityTypeAcceptedStatusChanged            ActivityActivityType = "accepted_status_changed"
	ActivityActivityTypeCollectionAreaChanged            ActivityActivityType = "collection_area_changed"
	ActivityActivityTypeCollectionBringInChanged         ActivityActivityType = "collection_bring_in_changed"
	ActivityActivityTypeCollectionLocationChanged        ActivityActivityType = "collection_location_changed"
	ActivityActivityTypeComment                          ActivityActivityType = "comment"
	ActivityActivityTypeCustomerBookedCustomerCollection ActivityActivityType = "customer_booked_customer_collection"
	ActivityActivityTypeCustomerBookedMechanicDropOff    ActivityActivityType = "customer_booked_mechanic_drop_off"
	ActivityActivityTypeCustomerCollectionDateChanged    ActivityActivityType = "customer_collection_date_changed"
	ActivityActivityTypeCustomerDropOffDateChanged       ActivityActivityType = "customer_drop_off_date_changed"
	ActivityActivityTypeCustomerRescheduledCollection    ActivityActivityType = "customer_rescheduled_collection"
	ActivityActivityTypeCustomerRescheduledDropOff       ActivityActivityType = "customer_rescheduled_drop_off"
	ActivityActivityTypeCustomerRescheduledOnSiteService ActivityActivityType = "customer_rescheduled_on_site_service"
	ActivityActivityTypeEmailSentToCustomer              ActivityActivityType = "email_sent_to_customer"
	ActivityActivityTypeEndDateChanged                   ActivityActivityType = "end_date_changed"
	ActivityActivityTypeGeneral                          ActivityActivityType = "general"
	ActivityActivityTypeInvoiceCreated                   ActivityActivityType = "invoice_created"
	ActivityActivityTypeInvoiceSentToCustomer            ActivityActivityType = "invoice_sent_to_customer"
	ActivityActivityTypeInvoiceStatusUpdated             ActivityActivityType = "invoice_status_updated"
	ActivityActivityTypeJobAuthorisationStatusChanged    ActivityActivityType = "job_authorisation_status_changed"
	ActivityActivityTypeMechanicCollectionDateChanged    ActivityActivityType = "mechanic_collection_date_changed"
	ActivityActivityTypeMechanicCollectionWindowChanged  ActivityActivityType = "mechanic_collection_window_changed"
	ActivityActivityTypeMechanicDropOffDateChanged       ActivityActivityType = "mechanic_drop_off_date_changed"
	ActivityActivityTypeMechanicDropOffWindowChanged     ActivityActivityType = "mechanic_drop_off_window_changed"
	ActivityActivityTypePaymentCancelled                 ActivityActivityType = "payment_cancelled"
	ActivityActivityTypePaymentCaptured                  ActivityActivityType = "payment_captured"
	ActivityActivityTypePaymentCreated                   ActivityActivityType = "payment_created"
	ActivityActivityTypeServicesChanged                  ActivityActivityType = "services_changed"
	ActivityActivityTypeStartDateChanged                 ActivityActivityType = "start_date_changed"
	ActivityActivityTypeStatusChanged                    ActivityActivityType = "status_changed"
)

Defines values for ActivityActivityType.

func (ActivityActivityType) Valid added in v0.2.0

func (e ActivityActivityType) Valid() bool

Valid indicates whether the value is a known member of the ActivityActivityType enum.

type ActivityChange added in v0.2.0

type ActivityChange struct {
	// From Previous value before the change, when known.
	From *string `json:"from,omitempty"`

	// To New value after the change, when known.
	To *string `json:"to,omitempty"`
}

ActivityChange Before/after values for activity types that represent a transition.

type ActivityObject added in v0.2.0

type ActivityObject string

ActivityObject Resource object type. Always activity.

const (
	ActivityObjectActivity ActivityObject = "activity"
)

Defines values for ActivityObject.

func (ActivityObject) Valid added in v0.2.0

func (e ActivityObject) Valid() bool

Valid indicates whether the value is a known member of the ActivityObject enum.

type ActivityPaymentDetails added in v0.2.0

type ActivityPaymentDetails struct {
	// AmountCapturable Amount that can be captured for the payment.
	AmountCapturable *string `json:"amount_capturable,omitempty"`

	// AmountReceived Amount received for the payment.
	AmountReceived *string `json:"amount_received,omitempty"`

	// ItemName Display name of the payment item, such as a deposit label.
	ItemName *string `json:"item_name,omitempty"`
}

ActivityPaymentDetails Payment amounts and label for payment-related activities.

type Asset added in v0.1.1

type Asset struct {
	// BikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).
	BikeType *AssetBikeType `json:"bike_type,omitempty"`

	// BusinessId Workshop that owns the customer asset.
	BusinessId *string `json:"business_id,omitempty"`

	// CustomerId Customer that owns this asset.
	CustomerId *string `json:"customer_id,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Make Asset make or manufacturer.
	Make *string `json:"make,omitempty"`

	// Model Asset model.
	Model *string `json:"model,omitempty"`

	// Name Asset display name.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always `asset`.
	Object *AssetObject `json:"object,omitempty"`

	// SerialNumber Asset serial number, when known.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset year, when known.
	Year *int32 `json:"year,omitempty"`
}

Asset Public customer bike asset read model. Assets are bikes today; `bike_type` classifies the bike category.

type AssetBikeType added in v0.1.1

type AssetBikeType string

AssetBikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).

const (
	AssetBikeTypeBmx           AssetBikeType = "bmx"
	AssetBikeTypeECargo        AssetBikeType = "e_cargo"
	AssetBikeTypeEGravel       AssetBikeType = "e_gravel"
	AssetBikeTypeERoad         AssetBikeType = "e_road"
	AssetBikeTypeElectricBike  AssetBikeType = "electric_bike"
	AssetBikeTypeGenericBike   AssetBikeType = "generic_bike"
	AssetBikeTypeGravel        AssetBikeType = "gravel"
	AssetBikeTypeHybrid        AssetBikeType = "hybrid"
	AssetBikeTypeKidsBike      AssetBikeType = "kids_bike"
	AssetBikeTypeMountainBike  AssetBikeType = "mountain_bike"
	AssetBikeTypeOther         AssetBikeType = "other"
	AssetBikeTypeRoadBike      AssetBikeType = "road_bike"
	AssetBikeTypeSingleSpeed   AssetBikeType = "single_speed"
	AssetBikeTypeStaticBike    AssetBikeType = "static_bike"
	AssetBikeTypeTriathlonBike AssetBikeType = "triathlon_bike"
)

Defines values for AssetBikeType.

func (AssetBikeType) Valid added in v0.1.1

func (e AssetBikeType) Valid() bool

Valid indicates whether the value is a known member of the AssetBikeType enum.

type AssetCreateRequest added in v0.1.1

type AssetCreateRequest struct {
	// BikeType Bike category (bikes only). Snake_case enum. Defaults to `generic_bike` when omitted on create.
	BikeType *AssetCreateRequestBikeType `json:"bike_type,omitempty"`

	// CustomerId Required. Customer public id that will own the asset (`cus_...`).
	CustomerId string `json:"customer_id"`

	// Make Asset make or manufacturer.
	Make *string `json:"make,omitempty"`

	// Model Asset model.
	Model *string `json:"model,omitempty"`

	// Name Asset display name.
	Name *string `json:"name,omitempty"`

	// SerialNumber Asset serial number.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset model year.
	Year *int32 `json:"year,omitempty"`
}

AssetCreateRequest Request body for creating a customer asset through the public API.

type AssetCreateRequestBikeType added in v0.1.1

type AssetCreateRequestBikeType string

AssetCreateRequestBikeType Bike category (bikes only). Snake_case enum. Defaults to `generic_bike` when omitted on create.

const (
	AssetCreateRequestBikeTypeBmx           AssetCreateRequestBikeType = "bmx"
	AssetCreateRequestBikeTypeECargo        AssetCreateRequestBikeType = "e_cargo"
	AssetCreateRequestBikeTypeEGravel       AssetCreateRequestBikeType = "e_gravel"
	AssetCreateRequestBikeTypeERoad         AssetCreateRequestBikeType = "e_road"
	AssetCreateRequestBikeTypeElectricBike  AssetCreateRequestBikeType = "electric_bike"
	AssetCreateRequestBikeTypeGenericBike   AssetCreateRequestBikeType = "generic_bike"
	AssetCreateRequestBikeTypeGravel        AssetCreateRequestBikeType = "gravel"
	AssetCreateRequestBikeTypeHybrid        AssetCreateRequestBikeType = "hybrid"
	AssetCreateRequestBikeTypeKidsBike      AssetCreateRequestBikeType = "kids_bike"
	AssetCreateRequestBikeTypeMountainBike  AssetCreateRequestBikeType = "mountain_bike"
	AssetCreateRequestBikeTypeOther         AssetCreateRequestBikeType = "other"
	AssetCreateRequestBikeTypeRoadBike      AssetCreateRequestBikeType = "road_bike"
	AssetCreateRequestBikeTypeSingleSpeed   AssetCreateRequestBikeType = "single_speed"
	AssetCreateRequestBikeTypeStaticBike    AssetCreateRequestBikeType = "static_bike"
	AssetCreateRequestBikeTypeTriathlonBike AssetCreateRequestBikeType = "triathlon_bike"
)

Defines values for AssetCreateRequestBikeType.

func (AssetCreateRequestBikeType) Valid added in v0.1.1

func (e AssetCreateRequestBikeType) Valid() bool

Valid indicates whether the value is a known member of the AssetCreateRequestBikeType enum.

type AssetDeleted added in v0.1.1

type AssetDeleted struct {
	// Deleted Whether the asset was deleted.
	Deleted *bool `json:"deleted,omitempty"`

	// Id Deleted public asset id.
	Id *string `json:"id,omitempty"`
}

AssetDeleted Response returned after deleting an asset.

type AssetObject added in v0.1.1

type AssetObject string

AssetObject Resource object type. Always `asset`.

const (
	AssetObjectAsset AssetObject = "asset"
)

Defines values for AssetObject.

func (AssetObject) Valid added in v0.1.1

func (e AssetObject) Valid() bool

Valid indicates whether the value is a known member of the AssetObject enum.

type AssetUpdateRequest added in v0.1.1

type AssetUpdateRequest struct {
	// BikeType Bike category (bikes only). Snake_case enum. Omit to leave unchanged.
	BikeType *AssetUpdateRequestBikeType `json:"bike_type,omitempty"`

	// Make Asset make or manufacturer. Omit to leave unchanged.
	Make *string `json:"make,omitempty"`

	// Model Asset model. Omit to leave unchanged.
	Model *string `json:"model,omitempty"`

	// Name Asset display name. Omit to leave unchanged.
	Name *string `json:"name,omitempty"`

	// SerialNumber Asset serial number. Omit to leave unchanged.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset model year. Omit to leave unchanged.
	Year *int32 `json:"year,omitempty"`
}

AssetUpdateRequest Request body for updating a customer's asset through an authenticated business-scoped public API key.

type AssetUpdateRequestBikeType added in v0.1.1

type AssetUpdateRequestBikeType string

AssetUpdateRequestBikeType Bike category (bikes only). Snake_case enum. Omit to leave unchanged.

const (
	AssetUpdateRequestBikeTypeBmx           AssetUpdateRequestBikeType = "bmx"
	AssetUpdateRequestBikeTypeECargo        AssetUpdateRequestBikeType = "e_cargo"
	AssetUpdateRequestBikeTypeEGravel       AssetUpdateRequestBikeType = "e_gravel"
	AssetUpdateRequestBikeTypeERoad         AssetUpdateRequestBikeType = "e_road"
	AssetUpdateRequestBikeTypeElectricBike  AssetUpdateRequestBikeType = "electric_bike"
	AssetUpdateRequestBikeTypeGenericBike   AssetUpdateRequestBikeType = "generic_bike"
	AssetUpdateRequestBikeTypeGravel        AssetUpdateRequestBikeType = "gravel"
	AssetUpdateRequestBikeTypeHybrid        AssetUpdateRequestBikeType = "hybrid"
	AssetUpdateRequestBikeTypeKidsBike      AssetUpdateRequestBikeType = "kids_bike"
	AssetUpdateRequestBikeTypeMountainBike  AssetUpdateRequestBikeType = "mountain_bike"
	AssetUpdateRequestBikeTypeOther         AssetUpdateRequestBikeType = "other"
	AssetUpdateRequestBikeTypeRoadBike      AssetUpdateRequestBikeType = "road_bike"
	AssetUpdateRequestBikeTypeSingleSpeed   AssetUpdateRequestBikeType = "single_speed"
	AssetUpdateRequestBikeTypeStaticBike    AssetUpdateRequestBikeType = "static_bike"
	AssetUpdateRequestBikeTypeTriathlonBike AssetUpdateRequestBikeType = "triathlon_bike"
)

Defines values for AssetUpdateRequestBikeType.

func (AssetUpdateRequestBikeType) Valid added in v0.1.1

func (e AssetUpdateRequestBikeType) Valid() bool

Valid indicates whether the value is a known member of the AssetUpdateRequestBikeType enum.

type AssignWorkLineMechanicJSONRequestBody added in v0.1.1

type AssignWorkLineMechanicJSONRequestBody = JobWorkLineMechanicAssignmentRequest

AssignWorkLineMechanicJSONRequestBody defines body for AssignWorkLineMechanic for application/json ContentType.

type AssignWorkLineMechanicParams added in v0.1.1

type AssignWorkLineMechanicParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

AssignWorkLineMechanicParams defines parameters for AssignWorkLineMechanic.

type AssignWorkLineMechanicResponse added in v0.1.1

type AssignWorkLineMechanicResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseAssignWorkLineMechanicResponse added in v0.1.1

func ParseAssignWorkLineMechanicResponse(rsp *http.Response) (*AssignWorkLineMechanicResponse, error)

ParseAssignWorkLineMechanicResponse parses an HTTP response from a AssignWorkLineMechanicWithResponse call

func (AssignWorkLineMechanicResponse) ContentType added in v0.1.1

func (r AssignWorkLineMechanicResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AssignWorkLineMechanicResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (AssignWorkLineMechanicResponse) StatusCode added in v0.1.1

func (r AssignWorkLineMechanicResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AvailabilityCalendar added in v0.1.1

type AvailabilityCalendar struct {
	// BusinessId Public business id for this availability response.
	BusinessId *string `json:"business_id,omitempty"`

	// CollectionDates Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	CollectionDates *[]openapi_types.Date `json:"collection_dates,omitempty"`

	// CustomerCollectionDates Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	CustomerCollectionDates *[]openapi_types.Date `json:"customer_collection_dates,omitempty"`

	// CustomerDropOffDates Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	CustomerDropOffDates *[]openapi_types.Date `json:"customer_drop_off_dates,omitempty"`

	// From Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	From *openapi_types.Date `json:"from,omitempty"`

	// Object Resource object type. Always availability.
	Object *AvailabilityCalendarObject `json:"object,omitempty"`

	// To Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	To *openapi_types.Date `json:"to,omitempty"`
}

AvailabilityCalendar Public availability response for a business over a date range.

type AvailabilityCalendarObject added in v0.1.1

type AvailabilityCalendarObject string

AvailabilityCalendarObject Resource object type. Always availability.

const (
	Availability AvailabilityCalendarObject = "availability"
)

Defines values for AvailabilityCalendarObject.

func (AvailabilityCalendarObject) Valid added in v0.1.1

func (e AvailabilityCalendarObject) Valid() bool

Valid indicates whether the value is a known member of the AvailabilityCalendarObject enum.

type AvailabilityParams added in v0.1.1

type AvailabilityParams struct {
	// From Inclusive start date (`YYYY-MM-DD`). Optional; defaults to workshop-local today on availability and next_available_slot.
	From *openapi_types.Date `form:"from,omitempty" json:"from,omitempty"`

	// To Inclusive end date (`YYYY-MM-DD`). Optional; defaults to `from` + 42 days on availability, or `from` + 90 days on next_available_slot.
	To *openapi_types.Date `form:"to,omitempty" json:"to,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

AvailabilityParams defines parameters for Availability.

type AvailabilityResponse

type AvailabilityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AvailabilityCalendar
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseAvailabilityResponse added in v0.1.1

func ParseAvailabilityResponse(rsp *http.Response) (*AvailabilityResponse, error)

ParseAvailabilityResponse parses an HTTP response from a AvailabilityWithResponse call

func (AvailabilityResponse) ContentType added in v0.1.1

func (r AvailabilityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AvailabilityResponse) Status added in v0.1.1

func (r AvailabilityResponse) Status() string

Status returns HTTPResponse.Status

func (AvailabilityResponse) StatusCode added in v0.1.1

func (r AvailabilityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AvailabilitySlot added in v0.1.1

type AvailabilitySlot struct {
	// EndTime End time of the available slot in the business's local schedule.
	EndTime *string `json:"end_time,omitempty"`

	// IsAvailable True when the slot is available for customer selection.
	IsAvailable *bool `json:"is_available,omitempty"`

	// StartTime Start time of the available slot in the business's local schedule.
	StartTime *string `json:"start_time,omitempty"`
}

AvailabilitySlot Public availability time slot.

type AvailabilitySlotsParams added in v0.1.1

type AvailabilitySlotsParams struct {
	// Date Calendar date for slot lookup (`YYYY-MM-DD`, required on availability/slots).
	Date openapi_types.Date `form:"date" json:"date"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

AvailabilitySlotsParams defines parameters for AvailabilitySlots.

type AvailabilitySlotsResponse

type AvailabilitySlotsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AvailabilitySlotsResult
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseAvailabilitySlotsResponse added in v0.1.1

func ParseAvailabilitySlotsResponse(rsp *http.Response) (*AvailabilitySlotsResponse, error)

ParseAvailabilitySlotsResponse parses an HTTP response from a AvailabilitySlotsWithResponse call

func (AvailabilitySlotsResponse) ContentType added in v0.1.1

func (r AvailabilitySlotsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AvailabilitySlotsResponse) Status added in v0.1.1

func (r AvailabilitySlotsResponse) Status() string

Status returns HTTPResponse.Status

func (AvailabilitySlotsResponse) StatusCode added in v0.1.1

func (r AvailabilitySlotsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AvailabilitySlotsResult added in v0.1.1

type AvailabilitySlotsResult struct {
	// BusinessId Public business id for this availability result.
	BusinessId *string `json:"business_id,omitempty"`

	// Date Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only.
	Date *openapi_types.Date `json:"date,omitempty"`

	// Object Resource object type. Always availability_slots.
	Object *AvailabilitySlotsResultObject `json:"object,omitempty"`

	// Slots Collection/drop-off time windows configured for this date.
	Slots *[]AvailabilitySlot `json:"slots,omitempty"`
}

AvailabilitySlotsResult Public availability time slots for a single calendar date.

type AvailabilitySlotsResultObject added in v0.1.1

type AvailabilitySlotsResultObject string

AvailabilitySlotsResultObject Resource object type. Always availability_slots.

const (
	AvailabilitySlots AvailabilitySlotsResultObject = "availability_slots"
)

Defines values for AvailabilitySlotsResultObject.

func (AvailabilitySlotsResultObject) Valid added in v0.1.1

Valid indicates whether the value is a known member of the AvailabilitySlotsResultObject enum.

type BackOrder added in v0.1.1

type BackOrder struct {
	// AddedBy Workshop user or integration label that added the line.
	AddedBy *string `json:"added_by,omitempty"`

	// BusinessId Workshop that owns this back order (`org_...`).
	BusinessId *string `json:"business_id,omitempty"`

	// CreatedAt UTC timestamp when the back order was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CustomerId Customer public id (`cus_...`) when a job or invoice provides one.
	CustomerId *string `json:"customer_id,omitempty"`

	// CustomerName Customer display name when available.
	CustomerName *string `json:"customer_name,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// InvoiceId Linked invoice public id (`inv_...`), when the back order is tied to an invoice.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// InvoiceTitle Display label for the linked invoice, when present.
	InvoiceTitle *string `json:"invoice_title,omitempty"`

	// JobId Linked job public id (`job_...`), when the back order is tied to a job.
	JobId *string `json:"job_id,omitempty"`

	// JobTitle Display label for the linked job, when present.
	JobTitle *string `json:"job_title,omitempty"`

	// Object Resource object type. Always `back_order`.
	Object *BackOrderObject `json:"object,omitempty"`

	// Quantity Quantity still required.
	Quantity *int32 `json:"quantity,omitempty"`

	// ServiceItemInstanceId Linked service item instance public id, when the back order is tied to a job report checklist step.
	ServiceItemInstanceId *string `json:"service_item_instance_id,omitempty"`

	// ServiceItemName Checklist or service item name when linked to a job report line.
	ServiceItemName *string `json:"service_item_name,omitempty"`

	// Source Where the back order was created: `general`, `job`, or `invoice`.
	Source *BackOrderSource `json:"source,omitempty"`

	// Status Ordering status: `needs_ordering`, `waiting_on_delivery`, or `received`.
	Status *BackOrderStatus `json:"status,omitempty"`

	// StockVariation Public stock variation (SKU) read model for catalogue and inventory lookup.
	StockVariation *StockVariation `json:"stock_variation,omitempty"`

	// StockVariationId Stock variation public id (`stkv_...`) for the part being ordered.
	StockVariationId *string `json:"stock_variation_id,omitempty"`

	// UpdatedAt UTC timestamp when the back order was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

BackOrder Public back order line in a workshop needs-ordering collection.

type BackOrderCreateRequest added in v0.1.1

type BackOrderCreateRequest struct {
	// BusinessId Workshop public id (`org_...`) that owns the back order.
	BusinessId string `json:"business_id"`

	// InvoiceId Optional linked invoice public id (`inv_...`). Mutually exclusive with `job_id` and `service_item_instance_id`.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// JobId Optional linked job public id (`job_...`). Mutually exclusive with `invoice_id` and `service_item_instance_id`.
	JobId *string `json:"job_id,omitempty"`

	// Quantity Quantity required. Must be at least 1.
	Quantity int32 `json:"quantity"`

	// ServiceItemInstanceId Optional linked service item instance public id. Mutually exclusive with `job_id` and `invoice_id`.
	ServiceItemInstanceId *string `json:"service_item_instance_id,omitempty"`

	// Status Optional initial status. Defaults to `needs_ordering` when omitted.
	Status *BackOrderCreateRequestStatus `json:"status,omitempty"`

	// StockVariationId Stock variation public id (`stkv_...`) for the part to order.
	StockVariationId string `json:"stock_variation_id"`
}

BackOrderCreateRequest Request body for creating or upserting a back order through the public API.

type BackOrderCreateRequestStatus added in v0.1.1

type BackOrderCreateRequestStatus string

BackOrderCreateRequestStatus Optional initial status. Defaults to `needs_ordering` when omitted.

const (
	BackOrderCreateRequestStatusNeedsOrdering     BackOrderCreateRequestStatus = "needs_ordering"
	BackOrderCreateRequestStatusReceived          BackOrderCreateRequestStatus = "received"
	BackOrderCreateRequestStatusWaitingOnDelivery BackOrderCreateRequestStatus = "waiting_on_delivery"
)

Defines values for BackOrderCreateRequestStatus.

func (BackOrderCreateRequestStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the BackOrderCreateRequestStatus enum.

type BackOrderDeleted added in v0.1.1

type BackOrderDeleted struct {
	// Deleted Always true when the delete succeeded.
	Deleted *bool `json:"deleted,omitempty"`

	// Id Public back order id that was removed.
	Id *string `json:"id,omitempty"`
}

BackOrderDeleted Confirmation payload after deleting a back order.

type BackOrderObject added in v0.1.1

type BackOrderObject string

BackOrderObject Resource object type. Always `back_order`.

const (
	BackOrderObjectBackOrder BackOrderObject = "back_order"
)

Defines values for BackOrderObject.

func (BackOrderObject) Valid added in v0.1.1

func (e BackOrderObject) Valid() bool

Valid indicates whether the value is a known member of the BackOrderObject enum.

type BackOrderReceiveItemRequest added in v0.1.1

type BackOrderReceiveItemRequest struct {
	// BackOrderId Back order public id (`pordi_...`) being received.
	BackOrderId string `json:"back_order_id"`

	// CreateStockItem When true, create a workshop stock item from a supplier catalogue variation if one does not already exist for the SKU.
	CreateStockItem *bool `json:"create_stock_item,omitempty"`

	// RemoveBackOrder When true, remove the back order line after processing.
	RemoveBackOrder *bool `json:"remove_back_order,omitempty"`

	// UpdateStockLevel When true, increase remaining stock for the variation by the back order quantity.
	UpdateStockLevel *bool `json:"update_stock_level,omitempty"`
}

BackOrderReceiveItemRequest Per-line options when marking back orders as received.

type BackOrderReceiveRequest added in v0.1.1

type BackOrderReceiveRequest struct {
	// Items Back orders to mark as received with per-line stock options.
	Items []BackOrderReceiveItemRequest `json:"items"`
}

BackOrderReceiveRequest Batch request for processing received back orders.

type BackOrderSource added in v0.1.1

type BackOrderSource string

BackOrderSource Where the back order was created: `general`, `job`, or `invoice`.

const (
	BackOrderSourceGeneral BackOrderSource = "general"
	BackOrderSourceInvoice BackOrderSource = "invoice"
	BackOrderSourceJob     BackOrderSource = "job"
)

Defines values for BackOrderSource.

func (BackOrderSource) Valid added in v0.1.1

func (e BackOrderSource) Valid() bool

Valid indicates whether the value is a known member of the BackOrderSource enum.

type BackOrderStatus added in v0.1.1

type BackOrderStatus string

BackOrderStatus Ordering status: `needs_ordering`, `waiting_on_delivery`, or `received`.

const (
	BackOrderStatusNeedsOrdering     BackOrderStatus = "needs_ordering"
	BackOrderStatusReceived          BackOrderStatus = "received"
	BackOrderStatusWaitingOnDelivery BackOrderStatus = "waiting_on_delivery"
)

Defines values for BackOrderStatus.

func (BackOrderStatus) Valid added in v0.1.1

func (e BackOrderStatus) Valid() bool

Valid indicates whether the value is a known member of the BackOrderStatus enum.

type BackOrderUpdateRequest added in v0.1.1

type BackOrderUpdateRequest struct {
	// Quantity New quantity. Must be at least 1. Use `DELETE` to remove the back order instead of sending 0.
	Quantity *int32 `json:"quantity,omitempty"`

	// Status New status: `needs_ordering`, `waiting_on_delivery`, or `received`.
	Status *BackOrderUpdateRequestStatus `json:"status,omitempty"`
}

BackOrderUpdateRequest Patch body for updating a back order quantity or status.

type BackOrderUpdateRequestStatus added in v0.1.1

type BackOrderUpdateRequestStatus string

BackOrderUpdateRequestStatus New status: `needs_ordering`, `waiting_on_delivery`, or `received`.

const (
	BackOrderUpdateRequestStatusNeedsOrdering     BackOrderUpdateRequestStatus = "needs_ordering"
	BackOrderUpdateRequestStatusReceived          BackOrderUpdateRequestStatus = "received"
	BackOrderUpdateRequestStatusWaitingOnDelivery BackOrderUpdateRequestStatus = "waiting_on_delivery"
)

Defines values for BackOrderUpdateRequestStatus.

func (BackOrderUpdateRequestStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the BackOrderUpdateRequestStatus enum.

type BatchResponseOfBackOrder added in v0.1.1

type BatchResponseOfBackOrder struct {
	// Data Resources affected or created by the action.
	Data *[]BackOrder `json:"data,omitempty"`
}

BatchResponseOfBackOrder Public API batch response for bounded action results that are not cursor-paginated.

type BatchResponseOfChatMessage added in v0.1.1

type BatchResponseOfChatMessage struct {
	// Data Resources affected or created by the action.
	Data *[]ChatMessage `json:"data,omitempty"`
}

BatchResponseOfChatMessage Public API batch response for bounded action results that are not cursor-paginated.

type BatchResponseOfPartAuthorisation added in v0.1.1

type BatchResponseOfPartAuthorisation struct {
	// Data Resources affected or created by the action.
	Data *[]PartAuthorisation `json:"data,omitempty"`
}

BatchResponseOfPartAuthorisation Public API batch response for bounded action results that are not cursor-paginated.

type Business added in v0.1.1

type Business struct {
	// BookingsEnabled True when the business currently accepts customer bookings/jobs.
	BookingsEnabled *bool `json:"bookings_enabled,omitempty"`

	// BusinessType Workshop operating model. Allowed values: `location` (fixed premises) or `mobile` (mobile/collection business).
	BusinessType *BusinessBusinessType `json:"business_type,omitempty"`

	// CollectionEnabled True when mechanic collection is enabled for the business.
	CollectionEnabled *bool `json:"collection_enabled,omitempty"`

	// ContactEmail Public contact email for the business, when configured.
	ContactEmail *string `json:"contact_email,omitempty"`

	// ContactPhone Public contact phone number for the business, when configured.
	ContactPhone *string `json:"contact_phone,omitempty"`

	// Country ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).
	Country *BusinessCountry `json:"country,omitempty"`

	// Description Public business profile description.
	Description *string `json:"description,omitempty"`

	// DropOffsEnabled True when customer drop-off is enabled for the business.
	DropOffsEnabled *bool `json:"drop_offs_enabled,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// ImageUrl Public image or logo URL for the business.
	ImageUrl *string `json:"image_url,omitempty"`

	// Name Public display name of the business.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always business.
	Object *BusinessObject `json:"object,omitempty"`

	// ServicesVisible True when the business has chosen to show services publicly.
	ServicesVisible *bool `json:"services_visible,omitempty"`

	// Slug Public profile slug when the business has one.
	Slug *string `json:"slug,omitempty"`
}

Business Public business profile returned by the public API.

type BusinessBusinessType added in v0.1.1

type BusinessBusinessType string

BusinessBusinessType Workshop operating model. Allowed values: `location` (fixed premises) or `mobile` (mobile/collection business).

const (
	Location BusinessBusinessType = "location"
	Mobile   BusinessBusinessType = "mobile"
)

Defines values for BusinessBusinessType.

func (BusinessBusinessType) Valid added in v0.1.1

func (e BusinessBusinessType) Valid() bool

Valid indicates whether the value is a known member of the BusinessBusinessType enum.

type BusinessCountry added in v0.1.1

type BusinessCountry string

BusinessCountry ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).

const (
	BusinessCountryABW BusinessCountry = "ABW"
	BusinessCountryAFG BusinessCountry = "AFG"
	BusinessCountryAGO BusinessCountry = "AGO"
	BusinessCountryAIA BusinessCountry = "AIA"
	BusinessCountryALA BusinessCountry = "ALA"
	BusinessCountryALB BusinessCountry = "ALB"
	BusinessCountryAND BusinessCountry = "AND"
	BusinessCountryANT BusinessCountry = "ANT"
	BusinessCountryARE BusinessCountry = "ARE"
	BusinessCountryARG BusinessCountry = "ARG"
	BusinessCountryARM BusinessCountry = "ARM"
	BusinessCountryASM BusinessCountry = "ASM"
	BusinessCountryATA BusinessCountry = "ATA"
	BusinessCountryATF BusinessCountry = "ATF"
	BusinessCountryATG BusinessCountry = "ATG"
	BusinessCountryAUS BusinessCountry = "AUS"
	BusinessCountryAUT BusinessCountry = "AUT"
	BusinessCountryAZE BusinessCountry = "AZE"
	BusinessCountryBDI BusinessCountry = "BDI"
	BusinessCountryBEL BusinessCountry = "BEL"
	BusinessCountryBEN BusinessCountry = "BEN"
	BusinessCountryBES BusinessCountry = "BES"
	BusinessCountryBFA BusinessCountry = "BFA"
	BusinessCountryBGD BusinessCountry = "BGD"
	BusinessCountryBGR BusinessCountry = "BGR"
	BusinessCountryBHR BusinessCountry = "BHR"
	BusinessCountryBHS BusinessCountry = "BHS"
	BusinessCountryBIH BusinessCountry = "BIH"
	BusinessCountryBLM BusinessCountry = "BLM"
	BusinessCountryBLR BusinessCountry = "BLR"
	BusinessCountryBLZ BusinessCountry = "BLZ"
	BusinessCountryBMU BusinessCountry = "BMU"
	BusinessCountryBOL BusinessCountry = "BOL"
	BusinessCountryBRA BusinessCountry = "BRA"
	BusinessCountryBRB BusinessCountry = "BRB"
	BusinessCountryBRN BusinessCountry = "BRN"
	BusinessCountryBTN BusinessCountry = "BTN"
	BusinessCountryBVT BusinessCountry = "BVT"
	BusinessCountryBWA BusinessCountry = "BWA"
	BusinessCountryCAF BusinessCountry = "CAF"
	BusinessCountryCAN BusinessCountry = "CAN"
	BusinessCountryCCK BusinessCountry = "CCK"
	BusinessCountryCHE BusinessCountry = "CHE"
	BusinessCountryCHL BusinessCountry = "CHL"
	BusinessCountryCHN BusinessCountry = "CHN"
	BusinessCountryCIV BusinessCountry = "CIV"
	BusinessCountryCMR BusinessCountry = "CMR"
	BusinessCountryCOD BusinessCountry = "COD"
	BusinessCountryCOG BusinessCountry = "COG"
	BusinessCountryCOK BusinessCountry = "COK"
	BusinessCountryCOL BusinessCountry = "COL"
	BusinessCountryCOM BusinessCountry = "COM"
	BusinessCountryCPV BusinessCountry = "CPV"
	BusinessCountryCRI BusinessCountry = "CRI"
	BusinessCountryCUB BusinessCountry = "CUB"
	BusinessCountryCUW BusinessCountry = "CUW"
	BusinessCountryCXR BusinessCountry = "CXR"
	BusinessCountryCYM BusinessCountry = "CYM"
	BusinessCountryCYP BusinessCountry = "CYP"
	BusinessCountryCZE BusinessCountry = "CZE"
	BusinessCountryDEU BusinessCountry = "DEU"
	BusinessCountryDJI BusinessCountry = "DJI"
	BusinessCountryDMA BusinessCountry = "DMA"
	BusinessCountryDNK BusinessCountry = "DNK"
	BusinessCountryDOM BusinessCountry = "DOM"
	BusinessCountryDZA BusinessCountry = "DZA"
	BusinessCountryECU BusinessCountry = "ECU"
	BusinessCountryEGY BusinessCountry = "EGY"
	BusinessCountryERI BusinessCountry = "ERI"
	BusinessCountryESH BusinessCountry = "ESH"
	BusinessCountryESP BusinessCountry = "ESP"
	BusinessCountryEST BusinessCountry = "EST"
	BusinessCountryETH BusinessCountry = "ETH"
	BusinessCountryFIN BusinessCountry = "FIN"
	BusinessCountryFJI BusinessCountry = "FJI"
	BusinessCountryFLK BusinessCountry = "FLK"
	BusinessCountryFRA BusinessCountry = "FRA"
	BusinessCountryFRO BusinessCountry = "FRO"
	BusinessCountryFSM BusinessCountry = "FSM"
	BusinessCountryGAB BusinessCountry = "GAB"
	BusinessCountryGBR BusinessCountry = "GBR"
	BusinessCountryGEO BusinessCountry = "GEO"
	BusinessCountryGGY BusinessCountry = "GGY"
	BusinessCountryGHA BusinessCountry = "GHA"
	BusinessCountryGIB BusinessCountry = "GIB"
	BusinessCountryGIN BusinessCountry = "GIN"
	BusinessCountryGLP BusinessCountry = "GLP"
	BusinessCountryGMB BusinessCountry = "GMB"
	BusinessCountryGNB BusinessCountry = "GNB"
	BusinessCountryGNQ BusinessCountry = "GNQ"
	BusinessCountryGRC BusinessCountry = "GRC"
	BusinessCountryGRD BusinessCountry = "GRD"
	BusinessCountryGRL BusinessCountry = "GRL"
	BusinessCountryGTM BusinessCountry = "GTM"
	BusinessCountryGUF BusinessCountry = "GUF"
	BusinessCountryGUM BusinessCountry = "GUM"
	BusinessCountryGUY BusinessCountry = "GUY"
	BusinessCountryHKG BusinessCountry = "HKG"
	BusinessCountryHMD BusinessCountry = "HMD"
	BusinessCountryHND BusinessCountry = "HND"
	BusinessCountryHRV BusinessCountry = "HRV"
	BusinessCountryHTI BusinessCountry = "HTI"
	BusinessCountryHUN BusinessCountry = "HUN"
	BusinessCountryIDN BusinessCountry = "IDN"
	BusinessCountryIMN BusinessCountry = "IMN"
	BusinessCountryIND BusinessCountry = "IND"
	BusinessCountryIOT BusinessCountry = "IOT"
	BusinessCountryIRL BusinessCountry = "IRL"
	BusinessCountryIRN BusinessCountry = "IRN"
	BusinessCountryIRQ BusinessCountry = "IRQ"
	BusinessCountryISL BusinessCountry = "ISL"
	BusinessCountryISR BusinessCountry = "ISR"
	BusinessCountryITA BusinessCountry = "ITA"
	BusinessCountryJAM BusinessCountry = "JAM"
	BusinessCountryJEY BusinessCountry = "JEY"
	BusinessCountryJOR BusinessCountry = "JOR"
	BusinessCountryJPN BusinessCountry = "JPN"
	BusinessCountryKAZ BusinessCountry = "KAZ"
	BusinessCountryKEN BusinessCountry = "KEN"
	BusinessCountryKGZ BusinessCountry = "KGZ"
	BusinessCountryKHM BusinessCountry = "KHM"
	BusinessCountryKIR BusinessCountry = "KIR"
	BusinessCountryKNA BusinessCountry = "KNA"
	BusinessCountryKOR BusinessCountry = "KOR"
	BusinessCountryKWT BusinessCountry = "KWT"
	BusinessCountryLAO BusinessCountry = "LAO"
	BusinessCountryLBN BusinessCountry = "LBN"
	BusinessCountryLBR BusinessCountry = "LBR"
	BusinessCountryLBY BusinessCountry = "LBY"
	BusinessCountryLCA BusinessCountry = "LCA"
	BusinessCountryLIE BusinessCountry = "LIE"
	BusinessCountryLKA BusinessCountry = "LKA"
	BusinessCountryLSO BusinessCountry = "LSO"
	BusinessCountryLTU BusinessCountry = "LTU"
	BusinessCountryLUX BusinessCountry = "LUX"
	BusinessCountryLVA BusinessCountry = "LVA"
	BusinessCountryMAC BusinessCountry = "MAC"
	BusinessCountryMAF BusinessCountry = "MAF"
	BusinessCountryMAR BusinessCountry = "MAR"
	BusinessCountryMCO BusinessCountry = "MCO"
	BusinessCountryMDA BusinessCountry = "MDA"
	BusinessCountryMDG BusinessCountry = "MDG"
	BusinessCountryMDV BusinessCountry = "MDV"
	BusinessCountryMEX BusinessCountry = "MEX"
	BusinessCountryMHL BusinessCountry = "MHL"
	BusinessCountryMKD BusinessCountry = "MKD"
	BusinessCountryMLI BusinessCountry = "MLI"
	BusinessCountryMLT BusinessCountry = "MLT"
	BusinessCountryMMR BusinessCountry = "MMR"
	BusinessCountryMNE BusinessCountry = "MNE"
	BusinessCountryMNG BusinessCountry = "MNG"
	BusinessCountryMNP BusinessCountry = "MNP"
	BusinessCountryMOZ BusinessCountry = "MOZ"
	BusinessCountryMRT BusinessCountry = "MRT"
	BusinessCountryMSR BusinessCountry = "MSR"
	BusinessCountryMTQ BusinessCountry = "MTQ"
	BusinessCountryMUS BusinessCountry = "MUS"
	BusinessCountryMWI BusinessCountry = "MWI"
	BusinessCountryMYS BusinessCountry = "MYS"
	BusinessCountryMYT BusinessCountry = "MYT"
	BusinessCountryNAM BusinessCountry = "NAM"
	BusinessCountryNCL BusinessCountry = "NCL"
	BusinessCountryNER BusinessCountry = "NER"
	BusinessCountryNFK BusinessCountry = "NFK"
	BusinessCountryNGA BusinessCountry = "NGA"
	BusinessCountryNIC BusinessCountry = "NIC"
	BusinessCountryNIU BusinessCountry = "NIU"
	BusinessCountryNLD BusinessCountry = "NLD"
	BusinessCountryNOR BusinessCountry = "NOR"
	BusinessCountryNPL BusinessCountry = "NPL"
	BusinessCountryNRU BusinessCountry = "NRU"
	BusinessCountryNZL BusinessCountry = "NZL"
	BusinessCountryOMN BusinessCountry = "OMN"
	BusinessCountryPAK BusinessCountry = "PAK"
	BusinessCountryPAN BusinessCountry = "PAN"
	BusinessCountryPCN BusinessCountry = "PCN"
	BusinessCountryPER BusinessCountry = "PER"
	BusinessCountryPHL BusinessCountry = "PHL"
	BusinessCountryPLW BusinessCountry = "PLW"
	BusinessCountryPNG BusinessCountry = "PNG"
	BusinessCountryPOL BusinessCountry = "POL"
	BusinessCountryPRI BusinessCountry = "PRI"
	BusinessCountryPRK BusinessCountry = "PRK"
	BusinessCountryPRT BusinessCountry = "PRT"
	BusinessCountryPRY BusinessCountry = "PRY"
	BusinessCountryPSE BusinessCountry = "PSE"
	BusinessCountryPYF BusinessCountry = "PYF"
	BusinessCountryQAT BusinessCountry = "QAT"
	BusinessCountryREU BusinessCountry = "REU"
	BusinessCountryROU BusinessCountry = "ROU"
	BusinessCountryRUS BusinessCountry = "RUS"
	BusinessCountryRWA BusinessCountry = "RWA"
	BusinessCountrySAU BusinessCountry = "SAU"
	BusinessCountrySCG BusinessCountry = "SCG"
	BusinessCountrySDN BusinessCountry = "SDN"
	BusinessCountrySEN BusinessCountry = "SEN"
	BusinessCountrySGP BusinessCountry = "SGP"
	BusinessCountrySGS BusinessCountry = "SGS"
	BusinessCountrySHN BusinessCountry = "SHN"
	BusinessCountrySJM BusinessCountry = "SJM"
	BusinessCountrySLB BusinessCountry = "SLB"
	BusinessCountrySLE BusinessCountry = "SLE"
	BusinessCountrySLV BusinessCountry = "SLV"
	BusinessCountrySMR BusinessCountry = "SMR"
	BusinessCountrySOM BusinessCountry = "SOM"
	BusinessCountrySPM BusinessCountry = "SPM"
	BusinessCountrySRB BusinessCountry = "SRB"
	BusinessCountrySSD BusinessCountry = "SSD"
	BusinessCountrySTP BusinessCountry = "STP"
	BusinessCountrySUR BusinessCountry = "SUR"
	BusinessCountrySVK BusinessCountry = "SVK"
	BusinessCountrySVN BusinessCountry = "SVN"
	BusinessCountrySWE BusinessCountry = "SWE"
	BusinessCountrySWZ BusinessCountry = "SWZ"
	BusinessCountrySXM BusinessCountry = "SXM"
	BusinessCountrySYC BusinessCountry = "SYC"
	BusinessCountrySYR BusinessCountry = "SYR"
	BusinessCountryTCA BusinessCountry = "TCA"
	BusinessCountryTCD BusinessCountry = "TCD"
	BusinessCountryTGO BusinessCountry = "TGO"
	BusinessCountryTHA BusinessCountry = "THA"
	BusinessCountryTJK BusinessCountry = "TJK"
	BusinessCountryTKL BusinessCountry = "TKL"
	BusinessCountryTKM BusinessCountry = "TKM"
	BusinessCountryTLS BusinessCountry = "TLS"
	BusinessCountryTON BusinessCountry = "TON"
	BusinessCountryTTO BusinessCountry = "TTO"
	BusinessCountryTUN BusinessCountry = "TUN"
	BusinessCountryTUR BusinessCountry = "TUR"
	BusinessCountryTUV BusinessCountry = "TUV"
	BusinessCountryTWN BusinessCountry = "TWN"
	BusinessCountryTZA BusinessCountry = "TZA"
	BusinessCountryUGA BusinessCountry = "UGA"
	BusinessCountryUKR BusinessCountry = "UKR"
	BusinessCountryUMI BusinessCountry = "UMI"
	BusinessCountryURY BusinessCountry = "URY"
	BusinessCountryUSA BusinessCountry = "USA"
	BusinessCountryUZB BusinessCountry = "UZB"
	BusinessCountryVAT BusinessCountry = "VAT"
	BusinessCountryVCT BusinessCountry = "VCT"
	BusinessCountryVEN BusinessCountry = "VEN"
	BusinessCountryVGB BusinessCountry = "VGB"
	BusinessCountryVIR BusinessCountry = "VIR"
	BusinessCountryVNM BusinessCountry = "VNM"
	BusinessCountryVUT BusinessCountry = "VUT"
	BusinessCountryWLF BusinessCountry = "WLF"
	BusinessCountryWSM BusinessCountry = "WSM"
	BusinessCountryXKX BusinessCountry = "XKX"
	BusinessCountryYEM BusinessCountry = "YEM"
	BusinessCountryZAF BusinessCountry = "ZAF"
	BusinessCountryZMB BusinessCountry = "ZMB"
	BusinessCountryZWE BusinessCountry = "ZWE"
)

Defines values for BusinessCountry.

func (BusinessCountry) Valid added in v0.1.1

func (e BusinessCountry) Valid() bool

Valid indicates whether the value is a known member of the BusinessCountry enum.

type BusinessIntegration added in v0.1.1

type BusinessIntegration struct {
	// BusinessId Public business id that owns this integration state.
	BusinessId *string `json:"business_id,omitempty"`

	// CanTriggerCustomerSync True when a public API caller can trigger customer sync for this integration.
	CanTriggerCustomerSync *bool `json:"can_trigger_customer_sync,omitempty"`

	// CanTriggerInvoiceSync True when a public API caller can trigger invoice sync for this integration.
	CanTriggerInvoiceSync *bool `json:"can_trigger_invoice_sync,omitempty"`

	// CanTriggerStockSync True when a public API caller can trigger stock/product sync for this integration.
	CanTriggerStockSync *bool `json:"can_trigger_stock_sync,omitempty"`

	// Category Public integration category: pos or accounting.
	Category *string `json:"category,omitempty"`

	// CustomerSync Public state for a background pull sync stream.
	CustomerSync *IntegrationPullSyncState `json:"customer_sync,omitempty"`

	// DefaultStoreName Default store, location, register, or account display name where available.
	DefaultStoreName *string `json:"default_store_name,omitempty"`

	// Enabled True when the internal connected account is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// HasIntegration True when the business has an active supported POS or accounting integration.
	HasIntegration *bool `json:"has_integration,omitempty"`

	// Object Resource object type. Always business_integration.
	Object *BusinessIntegrationObject `json:"object,omitempty"`

	// Provider Connected provider name in snake_case, when an integration is configured.
	Provider *string `json:"provider,omitempty"`

	// SetupCompleted True when the provider setup has completed.
	SetupCompleted *bool `json:"setup_completed,omitempty"`

	// StockSync Public state for a background pull sync stream.
	StockSync *IntegrationPullSyncState `json:"stock_sync,omitempty"`

	// SupportsCustomerSync True when Workshop can pull customers from this integration.
	SupportsCustomerSync *bool `json:"supports_customer_sync,omitempty"`

	// SupportsInvoiceSync True when invoices can be pushed to this integration.
	SupportsInvoiceSync *bool `json:"supports_invoice_sync,omitempty"`

	// SupportsPaymentLinks True when the business can create Stripe-backed payment links.
	SupportsPaymentLinks *bool `json:"supports_payment_links,omitempty"`

	// SupportsStockSync True when Workshop can pull stock/products from this integration.
	SupportsStockSync *bool `json:"supports_stock_sync,omitempty"`
}

BusinessIntegration Public state for the active POS/accounting integration configured on a business.

type BusinessIntegrationObject added in v0.1.1

type BusinessIntegrationObject string

BusinessIntegrationObject Resource object type. Always business_integration.

const (
	BusinessIntegrationObjectBusinessIntegration BusinessIntegrationObject = "business_integration"
)

Defines values for BusinessIntegrationObject.

func (BusinessIntegrationObject) Valid added in v0.1.1

func (e BusinessIntegrationObject) Valid() bool

Valid indicates whether the value is a known member of the BusinessIntegrationObject enum.

type BusinessIntegrationParams added in v0.1.1

type BusinessIntegrationParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

BusinessIntegrationParams defines parameters for BusinessIntegration.

type BusinessIntegrationResponse added in v0.1.1

type BusinessIntegrationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BusinessIntegration
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseBusinessIntegrationResponse added in v0.1.1

func ParseBusinessIntegrationResponse(rsp *http.Response) (*BusinessIntegrationResponse, error)

ParseBusinessIntegrationResponse parses an HTTP response from a BusinessIntegrationWithResponse call

func (BusinessIntegrationResponse) ContentType added in v0.1.1

func (r BusinessIntegrationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (BusinessIntegrationResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (BusinessIntegrationResponse) StatusCode added in v0.1.1

func (r BusinessIntegrationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BusinessObject added in v0.1.1

type BusinessObject string

BusinessObject Resource object type. Always business.

const (
	BusinessObjectBusiness BusinessObject = "business"
)

Defines values for BusinessObject.

func (BusinessObject) Valid added in v0.1.1

func (e BusinessObject) Valid() bool

Valid indicates whether the value is a known member of the BusinessObject enum.

type ChangeAcceptedStatusJSONRequestBody added in v0.1.1

type ChangeAcceptedStatusJSONRequestBody = JobAcceptedStatusChangeRequest

ChangeAcceptedStatusJSONRequestBody defines body for ChangeAcceptedStatus for application/json ContentType.

type ChangeAcceptedStatusParams added in v0.1.1

type ChangeAcceptedStatusParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeAcceptedStatusParams defines parameters for ChangeAcceptedStatus.

type ChangeAcceptedStatusResponse added in v0.1.1

type ChangeAcceptedStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeAcceptedStatusResponse added in v0.1.1

func ParseChangeAcceptedStatusResponse(rsp *http.Response) (*ChangeAcceptedStatusResponse, error)

ParseChangeAcceptedStatusResponse parses an HTTP response from a ChangeAcceptedStatusWithResponse call

func (ChangeAcceptedStatusResponse) ContentType added in v0.1.1

func (r ChangeAcceptedStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeAcceptedStatusResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ChangeAcceptedStatusResponse) StatusCode added in v0.1.1

func (r ChangeAcceptedStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeInvoiceAutoSyncJSONRequestBody added in v0.1.1

type ChangeInvoiceAutoSyncJSONRequestBody = IntegrationAutoSyncChangeRequest

ChangeInvoiceAutoSyncJSONRequestBody defines body for ChangeInvoiceAutoSync for application/json ContentType.

type ChangeInvoiceAutoSyncParams added in v0.1.1

type ChangeInvoiceAutoSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeInvoiceAutoSyncParams defines parameters for ChangeInvoiceAutoSync.

type ChangeInvoiceAutoSyncResponse added in v0.1.1

type ChangeInvoiceAutoSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationSyncCommand
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeInvoiceAutoSyncResponse added in v0.1.1

func ParseChangeInvoiceAutoSyncResponse(rsp *http.Response) (*ChangeInvoiceAutoSyncResponse, error)

ParseChangeInvoiceAutoSyncResponse parses an HTTP response from a ChangeInvoiceAutoSyncWithResponse call

func (ChangeInvoiceAutoSyncResponse) ContentType added in v0.1.1

func (r ChangeInvoiceAutoSyncResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeInvoiceAutoSyncResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ChangeInvoiceAutoSyncResponse) StatusCode added in v0.1.1

func (r ChangeInvoiceAutoSyncResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeInvoiceSyncCompletionJSONRequestBody added in v0.1.1

type ChangeInvoiceSyncCompletionJSONRequestBody = IntegrationSyncCompletionRequest

ChangeInvoiceSyncCompletionJSONRequestBody defines body for ChangeInvoiceSyncCompletion for application/json ContentType.

type ChangeInvoiceSyncCompletionParams added in v0.1.1

type ChangeInvoiceSyncCompletionParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeInvoiceSyncCompletionParams defines parameters for ChangeInvoiceSyncCompletion.

type ChangeInvoiceSyncCompletionResponse added in v0.1.1

type ChangeInvoiceSyncCompletionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationSyncCommand
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeInvoiceSyncCompletionResponse added in v0.1.1

func ParseChangeInvoiceSyncCompletionResponse(rsp *http.Response) (*ChangeInvoiceSyncCompletionResponse, error)

ParseChangeInvoiceSyncCompletionResponse parses an HTTP response from a ChangeInvoiceSyncCompletionWithResponse call

func (ChangeInvoiceSyncCompletionResponse) ContentType added in v0.1.1

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeInvoiceSyncCompletionResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ChangeInvoiceSyncCompletionResponse) StatusCode added in v0.1.1

StatusCode returns HTTPResponse.StatusCode

type ChangeScheduleJSONRequestBody added in v0.1.1

type ChangeScheduleJSONRequestBody = JobScheduleChangeRequest

ChangeScheduleJSONRequestBody defines body for ChangeSchedule for application/json ContentType.

type ChangeScheduleParams added in v0.1.1

type ChangeScheduleParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeScheduleParams defines parameters for ChangeSchedule.

type ChangeScheduleResponse added in v0.1.1

type ChangeScheduleResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeScheduleResponse added in v0.1.1

func ParseChangeScheduleResponse(rsp *http.Response) (*ChangeScheduleResponse, error)

ParseChangeScheduleResponse parses an HTTP response from a ChangeScheduleWithResponse call

func (ChangeScheduleResponse) ContentType added in v0.1.1

func (r ChangeScheduleResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeScheduleResponse) Status added in v0.1.1

func (r ChangeScheduleResponse) Status() string

Status returns HTTPResponse.Status

func (ChangeScheduleResponse) StatusCode added in v0.1.1

func (r ChangeScheduleResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeStatusJSONRequestBody added in v0.1.1

type ChangeStatusJSONRequestBody = InvoiceStatusChangeRequest

ChangeStatusJSONRequestBody defines body for ChangeStatus for application/json ContentType.

type ChangeStatusParams added in v0.1.1

type ChangeStatusParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeStatusParams defines parameters for ChangeStatus.

type ChangeStatusResponse added in v0.1.1

type ChangeStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfInvoice
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeStatusResponse added in v0.1.1

func ParseChangeStatusResponse(rsp *http.Response) (*ChangeStatusResponse, error)

ParseChangeStatusResponse parses an HTTP response from a ChangeStatusWithResponse call

func (ChangeStatusResponse) ContentType added in v0.1.1

func (r ChangeStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeStatusResponse) Status added in v0.1.1

func (r ChangeStatusResponse) Status() string

Status returns HTTPResponse.Status

func (ChangeStatusResponse) StatusCode added in v0.1.1

func (r ChangeStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeWorkLineStatusJSONRequestBody added in v0.1.1

type ChangeWorkLineStatusJSONRequestBody = JobWorkLineStatusChangeRequest

ChangeWorkLineStatusJSONRequestBody defines body for ChangeWorkLineStatus for application/json ContentType.

type ChangeWorkLineStatusParams added in v0.1.1

type ChangeWorkLineStatusParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ChangeWorkLineStatusParams defines parameters for ChangeWorkLineStatus.

type ChangeWorkLineStatusResponse added in v0.1.1

type ChangeWorkLineStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChangeWorkLineStatusResponse added in v0.1.1

func ParseChangeWorkLineStatusResponse(rsp *http.Response) (*ChangeWorkLineStatusResponse, error)

ParseChangeWorkLineStatusResponse parses an HTTP response from a ChangeWorkLineStatusWithResponse call

func (ChangeWorkLineStatusResponse) ContentType added in v0.1.1

func (r ChangeWorkLineStatusResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangeWorkLineStatusResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ChangeWorkLineStatusResponse) StatusCode added in v0.1.1

func (r ChangeWorkLineStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChatAttachment added in v0.1.1

type ChatAttachment struct {
	// ContentType MIME type supplied for the uploaded file.
	ContentType *string `json:"content_type,omitempty"`

	// FileName Original or display file name.
	FileName *string `json:"file_name,omitempty"`

	// FileSizeBytes File size in bytes, when known.
	FileSizeBytes *int64 `json:"file_size_bytes,omitempty"`

	// Id Public document id for the attached file.
	Id *string `json:"id,omitempty"`
}

ChatAttachment Public metadata for a file attached to a chat message. Does not include a download URL.

type ChatMarkRead added in v0.1.1

type ChatMarkRead struct {
	// CustomerId Public customer id.
	CustomerId *string `json:"customer_id,omitempty"`

	// MessagesMarkedRead Number of messages changed to read.
	MessagesMarkedRead *int32 `json:"messages_marked_read,omitempty"`
}

ChatMarkRead Response returned after marking chat messages as read.

type ChatMessage added in v0.1.1

type ChatMessage struct {
	// Attachment Public metadata for a file attached to a chat message. Does not include a download URL.
	Attachment *ChatAttachment `json:"attachment,omitempty"`

	// Body Text body for text messages. File messages use attachment metadata instead.
	Body *string `json:"body,omitempty"`

	// BusinessId Public business id that owns the chat thread.
	BusinessId *string `json:"business_id,omitempty"`

	// ContentType Message payload type. Allowed values: `text`, `image`, `video`, or `file`.
	ContentType *ChatMessageContentType `json:"content_type,omitempty"`

	// CreatedAt UTC timestamp when the message was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CustomerId Public customer id for the chat thread.
	CustomerId *string `json:"customer_id,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// JobId Optional public job id echoed from the caller's `job_id` query parameter. Not stored per message.
	JobId *string `json:"job_id,omitempty"`

	// Object Resource object type. Always chat_message.
	Object *ChatMessageObject `json:"object,omitempty"`

	// Read Whether the message has been read by the recipient.
	Read *bool `json:"read,omitempty"`

	// ReadAt UTC timestamp when the message was read, when available.
	ReadAt *time.Time `json:"read_at,omitempty"`

	// Sender Message sender. Allowed values: `customer`, `business`, or `system`.
	Sender *ChatMessageSender `json:"sender,omitempty"`
}

ChatMessage Public representation of a customer/business chat message.

type ChatMessageContentType added in v0.1.1

type ChatMessageContentType string

ChatMessageContentType Message payload type. Allowed values: `text`, `image`, `video`, or `file`.

const (
	File  ChatMessageContentType = "file"
	Image ChatMessageContentType = "image"
	Text  ChatMessageContentType = "text"
	Video ChatMessageContentType = "video"
)

Defines values for ChatMessageContentType.

func (ChatMessageContentType) Valid added in v0.1.1

func (e ChatMessageContentType) Valid() bool

Valid indicates whether the value is a known member of the ChatMessageContentType enum.

type ChatMessageCreateRequest added in v0.1.1

type ChatMessageCreateRequest struct {
	// Body Plain text message body to add to the customer's chat thread.
	Body string `json:"body"`

	// Sender Message sender. Allowed values: `customer` or `business`. Defaults to `customer` when omitted.
	Sender *ChatMessageCreateRequestSender `json:"sender,omitempty"`
}

ChatMessageCreateRequest Request body for creating a customer chat text message through an authenticated public API key.

type ChatMessageCreateRequestSender added in v0.1.1

type ChatMessageCreateRequestSender string

ChatMessageCreateRequestSender Message sender. Allowed values: `customer` or `business`. Defaults to `customer` when omitted.

const (
	ChatMessageCreateRequestSenderBusiness ChatMessageCreateRequestSender = "business"
	ChatMessageCreateRequestSenderCustomer ChatMessageCreateRequestSender = "customer"
)

Defines values for ChatMessageCreateRequestSender.

func (ChatMessageCreateRequestSender) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ChatMessageCreateRequestSender enum.

type ChatMessageObject added in v0.1.1

type ChatMessageObject string

ChatMessageObject Resource object type. Always chat_message.

const (
	ChatMessageObjectChatMessage ChatMessageObject = "chat_message"
)

Defines values for ChatMessageObject.

func (ChatMessageObject) Valid added in v0.1.1

func (e ChatMessageObject) Valid() bool

Valid indicates whether the value is a known member of the ChatMessageObject enum.

type ChatMessageSender added in v0.1.1

type ChatMessageSender string

ChatMessageSender Message sender. Allowed values: `customer`, `business`, or `system`.

const (
	ChatMessageSenderBusiness ChatMessageSender = "business"
	ChatMessageSenderCustomer ChatMessageSender = "customer"
	ChatMessageSenderSystem   ChatMessageSender = "system"
)

Defines values for ChatMessageSender.

func (ChatMessageSender) Valid added in v0.1.1

func (e ChatMessageSender) Valid() bool

Valid indicates whether the value is a known member of the ChatMessageSender enum.

type ChatMessagesParams

type ChatMessagesParams struct {
	// JobId Optional public job id (`job_...`). Validates the job belongs to this customer and is echoed on each message. Does not filter the thread.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ChatMessagesParams defines parameters for ChatMessages.

type ChatMessagesResponse

type ChatMessagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfChatMessage
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseChatMessagesResponse

func ParseChatMessagesResponse(rsp *http.Response) (*ChatMessagesResponse, error)

ParseChatMessagesResponse parses an HTTP response from a ChatMessagesWithResponse call

func (ChatMessagesResponse) ContentType

func (r ChatMessagesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChatMessagesResponse) Status

func (r ChatMessagesResponse) Status() string

Status returns HTTPResponse.Status

func (ChatMessagesResponse) StatusCode

func (r ChatMessagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AssignWorkLineMechanic added in v0.1.1

func (c *Client) AssignWorkLineMechanic(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, body AssignWorkLineMechanicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AssignWorkLineMechanicWithBody added in v0.1.1

func (c *Client) AssignWorkLineMechanicWithBody(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Availability added in v0.1.1

func (c *Client) Availability(ctx context.Context, businessId string, params *AvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) AvailabilitySlots added in v0.1.1

func (c *Client) AvailabilitySlots(ctx context.Context, businessId string, params *AvailabilitySlotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) BusinessIntegration added in v0.1.1

func (c *Client) BusinessIntegration(ctx context.Context, businessId string, params *BusinessIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeAcceptedStatus added in v0.1.1

func (c *Client) ChangeAcceptedStatus(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, body ChangeAcceptedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeAcceptedStatusWithBody added in v0.1.1

func (c *Client) ChangeAcceptedStatusWithBody(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeInvoiceAutoSync added in v0.1.1

func (c *Client) ChangeInvoiceAutoSync(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, body ChangeInvoiceAutoSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeInvoiceAutoSyncWithBody added in v0.1.1

func (c *Client) ChangeInvoiceAutoSyncWithBody(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeInvoiceSyncCompletion added in v0.1.1

func (c *Client) ChangeInvoiceSyncCompletion(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, body ChangeInvoiceSyncCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeInvoiceSyncCompletionWithBody added in v0.1.1

func (c *Client) ChangeInvoiceSyncCompletionWithBody(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeSchedule added in v0.1.1

func (c *Client) ChangeSchedule(ctx context.Context, jobId string, params *ChangeScheduleParams, body ChangeScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeScheduleWithBody added in v0.1.1

func (c *Client) ChangeScheduleWithBody(ctx context.Context, jobId string, params *ChangeScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeStatus added in v0.1.1

func (c *Client) ChangeStatus(ctx context.Context, invoiceId string, params *ChangeStatusParams, body ChangeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeStatusWithBody added in v0.1.1

func (c *Client) ChangeStatusWithBody(ctx context.Context, invoiceId string, params *ChangeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeWorkLineStatus added in v0.1.1

func (c *Client) ChangeWorkLineStatus(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, body ChangeWorkLineStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChangeWorkLineStatusWithBody added in v0.1.1

func (c *Client) ChangeWorkLineStatusWithBody(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ChatMessages

func (c *Client) ChatMessages(ctx context.Context, customerId string, params *ChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Create added in v0.1.1

func (c *Client) Create(ctx context.Context, params *CreateParams, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAsset added in v0.1.1

func (c *Client) CreateAsset(ctx context.Context, params *CreateAssetParams, body CreateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAssetWithBody added in v0.1.1

func (c *Client) CreateAssetWithBody(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateChatAttachmentsWithBody added in v0.1.1

func (c *Client) CreateChatAttachmentsWithBody(ctx context.Context, customerId string, params *CreateChatAttachmentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateChatMessage added in v0.1.1

func (c *Client) CreateChatMessage(ctx context.Context, customerId string, params *CreateChatMessageParams, body CreateChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateChatMessageWithBody added in v0.1.1

func (c *Client) CreateChatMessageWithBody(ctx context.Context, customerId string, params *CreateChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomer added in v0.1.1

func (c *Client) CreateCustomer(ctx context.Context, params *CreateCustomerParams, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCustomerWithBody added in v0.1.1

func (c *Client) CreateCustomerWithBody(ctx context.Context, params *CreateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInvoiceItem added in v0.1.1

func (c *Client) CreateInvoiceItem(ctx context.Context, params *CreateInvoiceItemParams, body CreateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInvoiceItemWithBody added in v0.1.1

func (c *Client) CreateInvoiceItemWithBody(ctx context.Context, params *CreateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateJobBooking added in v0.1.1

func (c *Client) CreateJobBooking(ctx context.Context, params *CreateJobBookingParams, body CreateJobBookingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateJobBookingWithBody added in v0.1.1

func (c *Client) CreateJobBookingWithBody(ctx context.Context, params *CreateJobBookingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateService added in v0.1.1

func (c *Client) CreateService(ctx context.Context, businessId string, params *CreateServiceParams, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateServiceWithBody added in v0.1.1

func (c *Client) CreateServiceWithBody(ctx context.Context, businessId string, params *CreateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWebhookEndpoint added in v0.1.1

func (c *Client) CreateWebhookEndpoint(ctx context.Context, params *CreateWebhookEndpointParams, body CreateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWebhookEndpointWithBody added in v0.1.1

func (c *Client) CreateWebhookEndpointWithBody(ctx context.Context, params *CreateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateWithBody added in v0.1.1

func (c *Client) CreateWithBody(ctx context.Context, params *CreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Customer added in v0.1.1

func (c *Client) Customer(ctx context.Context, customerId string, params *CustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Customers added in v0.1.1

func (c *Client) Customers(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Delete added in v0.1.1

func (c *Client) Delete(ctx context.Context, backOrderId string, params *DeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAsset added in v0.1.1

func (c *Client) DeleteAsset(ctx context.Context, assetId string, params *DeleteAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteInvoiceItem added in v0.1.1

func (c *Client) DeleteInvoiceItem(ctx context.Context, invoiceItemId string, params *DeleteInvoiceItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteWebhookEndpoint added in v0.1.1

func (c *Client) DeleteWebhookEndpoint(ctx context.Context, endpointId string, params *DeleteWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Get added in v0.1.1

func (c *Client) Get(ctx context.Context, backOrderId string, params *GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetActivity added in v0.2.0

func (c *Client) GetActivity(ctx context.Context, activityId string, params *GetActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAsset added in v0.1.1

func (c *Client) GetAsset(ctx context.Context, assetId string, params *GetAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBusiness added in v0.1.1

func (c *Client) GetBusiness(ctx context.Context, businessId string, params *GetBusinessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetForJob added in v0.2.0

func (c *Client) GetForJob(ctx context.Context, jobId string, activityId string, params *GetForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInvoice added in v0.1.1

func (c *Client) GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInvoiceItem added in v0.1.1

func (c *Client) GetInvoiceItem(ctx context.Context, invoiceItemId string, params *GetInvoiceItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJobReport added in v0.1.1

func (c *Client) GetJobReport(ctx context.Context, jobReportId string, params *GetJobReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJobReportForJob added in v0.1.1

func (c *Client) GetJobReportForJob(ctx context.Context, jobId string, jobReportId string, params *GetJobReportForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPayment added in v0.1.2

func (c *Client) GetPayment(ctx context.Context, paymentId string, params *GetPaymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetService added in v0.1.1

func (c *Client) GetService(ctx context.Context, serviceId string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStockVariation added in v0.1.1

func (c *Client) GetStockVariation(ctx context.Context, stockVariationId string, params *GetStockVariationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTeamMember added in v0.2.0

func (c *Client) GetTeamMember(ctx context.Context, teamMemberId string, params *GetTeamMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWebhookDelivery added in v0.1.1

func (c *Client) GetWebhookDelivery(ctx context.Context, deliveryId string, params *GetWebhookDeliveryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWebhookEndpoint added in v0.1.1

func (c *Client) GetWebhookEndpoint(ctx context.Context, endpointId string, params *GetWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoiceIntegrationSync added in v0.1.1

func (c *Client) InvoiceIntegrationSync(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoiceIntegrationSyncBatch added in v0.1.2

func (c *Client) InvoiceIntegrationSyncBatch(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, body InvoiceIntegrationSyncBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoiceIntegrationSyncBatchWithBody added in v0.1.2

func (c *Client) InvoiceIntegrationSyncBatchWithBody(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) InvoiceIntegrationSyncEvents added in v0.1.1

func (c *Client) InvoiceIntegrationSyncEvents(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Job added in v0.1.1

func (c *Client) Job(ctx context.Context, jobId string, params *JobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) JobStatuses added in v0.1.1

func (c *Client) JobStatuses(ctx context.Context, businessId string, params *JobStatusesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Jobs added in v0.1.1

func (c *Client) Jobs(ctx context.Context, params *JobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) List added in v0.1.1

func (c *Client) List(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListActivity added in v0.2.0

func (c *Client) ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAsset added in v0.1.1

func (c *Client) ListAsset(ctx context.Context, params *ListAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBusiness added in v0.1.1

func (c *Client) ListBusiness(ctx context.Context, params *ListBusinessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListForCustomer added in v0.1.1

func (c *Client) ListForCustomer(ctx context.Context, customerId string, params *ListForCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListForEndpoint added in v0.1.1

func (c *Client) ListForEndpoint(ctx context.Context, endpointId string, params *ListForEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListForInvoice added in v0.2.0

func (c *Client) ListForInvoice(ctx context.Context, invoiceId string, params *ListForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListForJob added in v0.2.0

func (c *Client) ListForJob(ctx context.Context, jobId string, params *ListForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListInvoice added in v0.1.1

func (c *Client) ListInvoice(ctx context.Context, params *ListInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListJobReport added in v0.1.1

func (c *Client) ListJobReport(ctx context.Context, params *ListJobReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListJobReportForJob added in v0.1.1

func (c *Client) ListJobReportForJob(ctx context.Context, jobId string, params *ListJobReportForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPayment added in v0.1.2

func (c *Client) ListPayment(ctx context.Context, params *ListPaymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListService added in v0.1.1

func (c *Client) ListService(ctx context.Context, params *ListServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListStockVariation added in v0.1.1

func (c *Client) ListStockVariation(ctx context.Context, params *ListStockVariationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListTeamMember added in v0.2.0

func (c *Client) ListTeamMember(ctx context.Context, params *ListTeamMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListWebhookEndpoint added in v0.1.1

func (c *Client) ListWebhookEndpoint(ctx context.Context, params *ListWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListWebhookEvent added in v0.1.1

func (c *Client) ListWebhookEvent(ctx context.Context, params *ListWebhookEventParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) MarkRead added in v0.1.1

func (c *Client) MarkRead(ctx context.Context, customerId string, params *MarkReadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) NextAvailableSlot added in v0.1.1

func (c *Client) NextAvailableSlot(ctx context.Context, businessId string, params *NextAvailableSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PartAuthorisations added in v0.1.1

func (c *Client) PartAuthorisations(ctx context.Context, jobId string, params *PartAuthorisationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (c *Client) PaymentLink(ctx context.Context, invoiceId string, params *PaymentLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Pdf added in v0.1.1

func (c *Client) Pdf(ctx context.Context, invoiceId string, params *PdfParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Receive added in v0.1.1

func (c *Client) Receive(ctx context.Context, params *ReceiveParams, body ReceiveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReceiveWithBody added in v0.1.1

func (c *Client) ReceiveWithBody(ctx context.Context, params *ReceiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RecordPayment added in v0.1.1

func (c *Client) RecordPayment(ctx context.Context, invoiceId string, params *RecordPaymentParams, body RecordPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RecordPaymentWithBody added in v0.1.1

func (c *Client) RecordPaymentWithBody(ctx context.Context, invoiceId string, params *RecordPaymentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Refund added in v0.1.1

func (c *Client) Refund(ctx context.Context, paymentId string, params *RefundParams, body RefundJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RefundWithBody added in v0.1.1

func (c *Client) RefundWithBody(ctx context.Context, paymentId string, params *RefundParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceWorkLineServices added in v0.1.1

func (c *Client) ReplaceWorkLineServices(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, body ReplaceWorkLineServicesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceWorkLineServicesWithBody added in v0.1.1

func (c *Client) ReplaceWorkLineServicesWithBody(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Replay added in v0.1.1

func (c *Client) Replay(ctx context.Context, deliveryId string, params *ReplayParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RequestPartAuthorisation added in v0.1.1

func (c *Client) RequestPartAuthorisation(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, body RequestPartAuthorisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RequestPartAuthorisationWithBody added in v0.1.1

func (c *Client) RequestPartAuthorisationWithBody(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RetryInvoiceIntegrationSync added in v0.1.1

func (c *Client) RetryInvoiceIntegrationSync(ctx context.Context, invoiceId string, params *RetryInvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RotateSecret added in v0.1.1

func (c *Client) RotateSecret(ctx context.Context, endpointId string, params *RotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Send added in v0.1.1

func (c *Client) Send(ctx context.Context, invoiceId string, params *SendParams, body SendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SendWithBody added in v0.1.1

func (c *Client) SendWithBody(ctx context.Context, invoiceId string, params *SendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Services added in v0.1.1

func (c *Client) Services(ctx context.Context, businessId string, params *ServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubmitPartAuthorisationDecisions added in v0.1.1

func (c *Client) SubmitPartAuthorisationDecisions(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, body SubmitPartAuthorisationDecisionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SubmitPartAuthorisationDecisionsWithBody added in v0.1.1

func (c *Client) SubmitPartAuthorisationDecisionsWithBody(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerCustomerSync added in v0.1.1

func (c *Client) TriggerCustomerSync(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, body TriggerCustomerSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerCustomerSyncWithBody added in v0.1.1

func (c *Client) TriggerCustomerSyncWithBody(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerInvoiceIntegrationSync added in v0.1.1

func (c *Client) TriggerInvoiceIntegrationSync(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, body TriggerInvoiceIntegrationSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerInvoiceIntegrationSyncWithBody added in v0.1.1

func (c *Client) TriggerInvoiceIntegrationSyncWithBody(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerStockSync added in v0.1.1

func (c *Client) TriggerStockSync(ctx context.Context, businessId string, params *TriggerStockSyncParams, body TriggerStockSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) TriggerStockSyncWithBody added in v0.1.1

func (c *Client) TriggerStockSyncWithBody(ctx context.Context, businessId string, params *TriggerStockSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Update added in v0.1.1

func (c *Client) Update(ctx context.Context, backOrderId string, params *UpdateParams, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAsset added in v0.1.1

func (c *Client) UpdateAsset(ctx context.Context, assetId string, params *UpdateAssetParams, body UpdateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAssetWithBody added in v0.1.1

func (c *Client) UpdateAssetWithBody(ctx context.Context, assetId string, params *UpdateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCustomer added in v0.1.1

func (c *Client) UpdateCustomer(ctx context.Context, customerId string, params *UpdateCustomerParams, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCustomerWithBody added in v0.1.1

func (c *Client) UpdateCustomerWithBody(ctx context.Context, customerId string, params *UpdateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoice added in v0.1.1

func (c *Client) UpdateInvoice(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoiceItem added in v0.1.1

func (c *Client) UpdateInvoiceItem(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, body UpdateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoiceItemWithBody added in v0.1.1

func (c *Client) UpdateInvoiceItemWithBody(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateInvoiceWithBody added in v0.1.1

func (c *Client) UpdateInvoiceWithBody(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateJob added in v0.1.1

func (c *Client) UpdateJob(ctx context.Context, jobId string, params *UpdateJobParams, body UpdateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateJobWithBody added in v0.1.1

func (c *Client) UpdateJobWithBody(ctx context.Context, jobId string, params *UpdateJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateService added in v0.1.1

func (c *Client) UpdateService(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateServiceWithBody added in v0.1.1

func (c *Client) UpdateServiceWithBody(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWebhookEndpoint added in v0.1.1

func (c *Client) UpdateWebhookEndpoint(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, body UpdateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWebhookEndpointWithBody added in v0.1.1

func (c *Client) UpdateWebhookEndpointWithBody(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWithBody added in v0.1.1

func (c *Client) UpdateWithBody(ctx context.Context, backOrderId string, params *UpdateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkLine added in v0.1.1

func (c *Client) UpdateWorkLine(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, body UpdateWorkLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateWorkLineWithBody added in v0.1.1

func (c *Client) UpdateWorkLineWithBody(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListActivity request
	ListActivity(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetActivity request
	GetActivity(ctx context.Context, activityId string, params *GetActivityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAsset request
	ListAsset(ctx context.Context, params *ListAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAssetWithBody request with any body
	CreateAssetWithBody(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAsset(ctx context.Context, params *CreateAssetParams, body CreateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAsset request
	DeleteAsset(ctx context.Context, assetId string, params *DeleteAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAsset request
	GetAsset(ctx context.Context, assetId string, params *GetAssetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAssetWithBody request with any body
	UpdateAssetWithBody(ctx context.Context, assetId string, params *UpdateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAsset(ctx context.Context, assetId string, params *UpdateAssetParams, body UpdateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// List request
	List(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWithBody request with any body
	CreateWithBody(ctx context.Context, params *CreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Create(ctx context.Context, params *CreateParams, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReceiveWithBody request with any body
	ReceiveWithBody(ctx context.Context, params *ReceiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Receive(ctx context.Context, params *ReceiveParams, body ReceiveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Delete request
	Delete(ctx context.Context, backOrderId string, params *DeleteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Get request
	Get(ctx context.Context, backOrderId string, params *GetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWithBody request with any body
	UpdateWithBody(ctx context.Context, backOrderId string, params *UpdateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Update(ctx context.Context, backOrderId string, params *UpdateParams, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListBusiness request
	ListBusiness(ctx context.Context, params *ListBusinessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBusiness request
	GetBusiness(ctx context.Context, businessId string, params *GetBusinessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Availability request
	Availability(ctx context.Context, businessId string, params *AvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AvailabilitySlots request
	AvailabilitySlots(ctx context.Context, businessId string, params *AvailabilitySlotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BusinessIntegration request
	BusinessIntegration(ctx context.Context, businessId string, params *BusinessIntegrationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerCustomerSyncWithBody request with any body
	TriggerCustomerSyncWithBody(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TriggerCustomerSync(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, body TriggerCustomerSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerStockSyncWithBody request with any body
	TriggerStockSyncWithBody(ctx context.Context, businessId string, params *TriggerStockSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TriggerStockSync(ctx context.Context, businessId string, params *TriggerStockSyncParams, body TriggerStockSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// JobStatuses request
	JobStatuses(ctx context.Context, businessId string, params *JobStatusesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// NextAvailableSlot request
	NextAvailableSlot(ctx context.Context, businessId string, params *NextAvailableSlotParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Services request
	Services(ctx context.Context, businessId string, params *ServicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateServiceWithBody request with any body
	CreateServiceWithBody(ctx context.Context, businessId string, params *CreateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateService(ctx context.Context, businessId string, params *CreateServiceParams, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateServiceWithBody request with any body
	UpdateServiceWithBody(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateService(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Customers request
	Customers(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCustomerWithBody request with any body
	CreateCustomerWithBody(ctx context.Context, params *CreateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCustomer(ctx context.Context, params *CreateCustomerParams, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Customer request
	Customer(ctx context.Context, customerId string, params *CustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCustomerWithBody request with any body
	UpdateCustomerWithBody(ctx context.Context, customerId string, params *UpdateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCustomer(ctx context.Context, customerId string, params *UpdateCustomerParams, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForCustomer request
	ListForCustomer(ctx context.Context, customerId string, params *ListForCustomerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChatAttachmentsWithBody request with any body
	CreateChatAttachmentsWithBody(ctx context.Context, customerId string, params *CreateChatAttachmentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChatMessages request
	ChatMessages(ctx context.Context, customerId string, params *ChatMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateChatMessageWithBody request with any body
	CreateChatMessageWithBody(ctx context.Context, customerId string, params *CreateChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateChatMessage(ctx context.Context, customerId string, params *CreateChatMessageParams, body CreateChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MarkRead request
	MarkRead(ctx context.Context, customerId string, params *MarkReadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateInvoiceItemWithBody request with any body
	CreateInvoiceItemWithBody(ctx context.Context, params *CreateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateInvoiceItem(ctx context.Context, params *CreateInvoiceItemParams, body CreateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteInvoiceItem request
	DeleteInvoiceItem(ctx context.Context, invoiceItemId string, params *DeleteInvoiceItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInvoiceItem request
	GetInvoiceItem(ctx context.Context, invoiceItemId string, params *GetInvoiceItemParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateInvoiceItemWithBody request with any body
	UpdateInvoiceItemWithBody(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateInvoiceItem(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, body UpdateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListInvoice request
	ListInvoice(ctx context.Context, params *ListInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InvoiceIntegrationSyncBatchWithBody request with any body
	InvoiceIntegrationSyncBatchWithBody(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InvoiceIntegrationSyncBatch(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, body InvoiceIntegrationSyncBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInvoice request
	GetInvoice(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateInvoiceWithBody request with any body
	UpdateInvoiceWithBody(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateInvoice(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForInvoice request
	ListForInvoice(ctx context.Context, invoiceId string, params *ListForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeInvoiceAutoSyncWithBody request with any body
	ChangeInvoiceAutoSyncWithBody(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeInvoiceAutoSync(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, body ChangeInvoiceAutoSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InvoiceIntegrationSync request
	InvoiceIntegrationSync(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InvoiceIntegrationSyncEvents request
	InvoiceIntegrationSyncEvents(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeInvoiceSyncCompletionWithBody request with any body
	ChangeInvoiceSyncCompletionWithBody(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeInvoiceSyncCompletion(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, body ChangeInvoiceSyncCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RetryInvoiceIntegrationSync request
	RetryInvoiceIntegrationSync(ctx context.Context, invoiceId string, params *RetryInvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TriggerInvoiceIntegrationSyncWithBody request with any body
	TriggerInvoiceIntegrationSyncWithBody(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TriggerInvoiceIntegrationSync(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, body TriggerInvoiceIntegrationSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PaymentLink request
	PaymentLink(ctx context.Context, invoiceId string, params *PaymentLinkParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RecordPaymentWithBody request with any body
	RecordPaymentWithBody(ctx context.Context, invoiceId string, params *RecordPaymentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RecordPayment(ctx context.Context, invoiceId string, params *RecordPaymentParams, body RecordPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Pdf request
	Pdf(ctx context.Context, invoiceId string, params *PdfParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SendWithBody request with any body
	SendWithBody(ctx context.Context, invoiceId string, params *SendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Send(ctx context.Context, invoiceId string, params *SendParams, body SendJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeStatusWithBody request with any body
	ChangeStatusWithBody(ctx context.Context, invoiceId string, params *ChangeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeStatus(ctx context.Context, invoiceId string, params *ChangeStatusParams, body ChangeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListJobReport request
	ListJobReport(ctx context.Context, params *ListJobReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobReport request
	GetJobReport(ctx context.Context, jobReportId string, params *GetJobReportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Jobs request
	Jobs(ctx context.Context, params *JobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateJobBookingWithBody request with any body
	CreateJobBookingWithBody(ctx context.Context, params *CreateJobBookingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateJobBooking(ctx context.Context, params *CreateJobBookingParams, body CreateJobBookingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Job request
	Job(ctx context.Context, jobId string, params *JobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateJobWithBody request with any body
	UpdateJobWithBody(ctx context.Context, jobId string, params *UpdateJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateJob(ctx context.Context, jobId string, params *UpdateJobParams, body UpdateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeAcceptedStatusWithBody request with any body
	ChangeAcceptedStatusWithBody(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeAcceptedStatus(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, body ChangeAcceptedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForJob request
	ListForJob(ctx context.Context, jobId string, params *ListForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetForJob request
	GetForJob(ctx context.Context, jobId string, activityId string, params *GetForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListJobReportForJob request
	ListJobReportForJob(ctx context.Context, jobId string, params *ListJobReportForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetJobReportForJob request
	GetJobReportForJob(ctx context.Context, jobId string, jobReportId string, params *GetJobReportForJobParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PartAuthorisations request
	PartAuthorisations(ctx context.Context, jobId string, params *PartAuthorisationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubmitPartAuthorisationDecisionsWithBody request with any body
	SubmitPartAuthorisationDecisionsWithBody(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SubmitPartAuthorisationDecisions(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, body SubmitPartAuthorisationDecisionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RequestPartAuthorisationWithBody request with any body
	RequestPartAuthorisationWithBody(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RequestPartAuthorisation(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, body RequestPartAuthorisationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeScheduleWithBody request with any body
	ChangeScheduleWithBody(ctx context.Context, jobId string, params *ChangeScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeSchedule(ctx context.Context, jobId string, params *ChangeScheduleParams, body ChangeScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWorkLineWithBody request with any body
	UpdateWorkLineWithBody(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateWorkLine(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, body UpdateWorkLineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AssignWorkLineMechanicWithBody request with any body
	AssignWorkLineMechanicWithBody(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AssignWorkLineMechanic(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, body AssignWorkLineMechanicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReplaceWorkLineServicesWithBody request with any body
	ReplaceWorkLineServicesWithBody(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ReplaceWorkLineServices(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, body ReplaceWorkLineServicesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeWorkLineStatusWithBody request with any body
	ChangeWorkLineStatusWithBody(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeWorkLineStatus(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, body ChangeWorkLineStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPayment request
	ListPayment(ctx context.Context, params *ListPaymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPayment request
	GetPayment(ctx context.Context, paymentId string, params *GetPaymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefundWithBody request with any body
	RefundWithBody(ctx context.Context, paymentId string, params *RefundParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Refund(ctx context.Context, paymentId string, params *RefundParams, body RefundJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListService request
	ListService(ctx context.Context, params *ListServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetService request
	GetService(ctx context.Context, serviceId string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListStockVariation request
	ListStockVariation(ctx context.Context, params *ListStockVariationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStockVariation request
	GetStockVariation(ctx context.Context, stockVariationId string, params *GetStockVariationParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeamMember request
	ListTeamMember(ctx context.Context, params *ListTeamMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeamMember request
	GetTeamMember(ctx context.Context, teamMemberId string, params *GetTeamMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWebhookDelivery request
	GetWebhookDelivery(ctx context.Context, deliveryId string, params *GetWebhookDeliveryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Replay request
	Replay(ctx context.Context, deliveryId string, params *ReplayParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhookEndpoint request
	ListWebhookEndpoint(ctx context.Context, params *ListWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateWebhookEndpointWithBody request with any body
	CreateWebhookEndpointWithBody(ctx context.Context, params *CreateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateWebhookEndpoint(ctx context.Context, params *CreateWebhookEndpointParams, body CreateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteWebhookEndpoint request
	DeleteWebhookEndpoint(ctx context.Context, endpointId string, params *DeleteWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWebhookEndpoint request
	GetWebhookEndpoint(ctx context.Context, endpointId string, params *GetWebhookEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateWebhookEndpointWithBody request with any body
	UpdateWebhookEndpointWithBody(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateWebhookEndpoint(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, body UpdateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListForEndpoint request
	ListForEndpoint(ctx context.Context, endpointId string, params *ListForEndpointParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateSecret request
	RotateSecret(ctx context.Context, endpointId string, params *RotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWebhookEvent request
	ListWebhookEvent(ctx context.Context, params *ListWebhookEventParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AssignWorkLineMechanicWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) AssignWorkLineMechanicWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssignWorkLineMechanicResponse, error)

AssignWorkLineMechanicWithBodyWithResponse request with arbitrary body returning *AssignWorkLineMechanicResponse

func (*ClientWithResponses) AssignWorkLineMechanicWithResponse added in v0.1.1

func (c *ClientWithResponses) AssignWorkLineMechanicWithResponse(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, body AssignWorkLineMechanicJSONRequestBody, reqEditors ...RequestEditorFn) (*AssignWorkLineMechanicResponse, error)

func (*ClientWithResponses) AvailabilitySlotsWithResponse added in v0.1.1

func (c *ClientWithResponses) AvailabilitySlotsWithResponse(ctx context.Context, businessId string, params *AvailabilitySlotsParams, reqEditors ...RequestEditorFn) (*AvailabilitySlotsResponse, error)

AvailabilitySlotsWithResponse request returning *AvailabilitySlotsResponse

func (*ClientWithResponses) AvailabilityWithResponse added in v0.1.1

func (c *ClientWithResponses) AvailabilityWithResponse(ctx context.Context, businessId string, params *AvailabilityParams, reqEditors ...RequestEditorFn) (*AvailabilityResponse, error)

AvailabilityWithResponse request returning *AvailabilityResponse

func (*ClientWithResponses) BusinessIntegrationWithResponse added in v0.1.1

func (c *ClientWithResponses) BusinessIntegrationWithResponse(ctx context.Context, businessId string, params *BusinessIntegrationParams, reqEditors ...RequestEditorFn) (*BusinessIntegrationResponse, error)

BusinessIntegrationWithResponse request returning *BusinessIntegrationResponse

func (*ClientWithResponses) ChangeAcceptedStatusWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeAcceptedStatusWithBodyWithResponse(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeAcceptedStatusResponse, error)

ChangeAcceptedStatusWithBodyWithResponse request with arbitrary body returning *ChangeAcceptedStatusResponse

func (*ClientWithResponses) ChangeAcceptedStatusWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeAcceptedStatusWithResponse(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, body ChangeAcceptedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeAcceptedStatusResponse, error)

func (*ClientWithResponses) ChangeInvoiceAutoSyncWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeInvoiceAutoSyncWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceAutoSyncResponse, error)

ChangeInvoiceAutoSyncWithBodyWithResponse request with arbitrary body returning *ChangeInvoiceAutoSyncResponse

func (*ClientWithResponses) ChangeInvoiceAutoSyncWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeInvoiceAutoSyncWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, body ChangeInvoiceAutoSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceAutoSyncResponse, error)

func (*ClientWithResponses) ChangeInvoiceSyncCompletionWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeInvoiceSyncCompletionWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceSyncCompletionResponse, error)

ChangeInvoiceSyncCompletionWithBodyWithResponse request with arbitrary body returning *ChangeInvoiceSyncCompletionResponse

func (*ClientWithResponses) ChangeInvoiceSyncCompletionWithResponse added in v0.1.1

func (*ClientWithResponses) ChangeScheduleWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeScheduleWithBodyWithResponse(ctx context.Context, jobId string, params *ChangeScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeScheduleResponse, error)

ChangeScheduleWithBodyWithResponse request with arbitrary body returning *ChangeScheduleResponse

func (*ClientWithResponses) ChangeScheduleWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeScheduleWithResponse(ctx context.Context, jobId string, params *ChangeScheduleParams, body ChangeScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeScheduleResponse, error)

func (*ClientWithResponses) ChangeStatusWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeStatusWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeStatusResponse, error)

ChangeStatusWithBodyWithResponse request with arbitrary body returning *ChangeStatusResponse

func (*ClientWithResponses) ChangeStatusWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeStatusWithResponse(ctx context.Context, invoiceId string, params *ChangeStatusParams, body ChangeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeStatusResponse, error)

func (*ClientWithResponses) ChangeWorkLineStatusWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeWorkLineStatusWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeWorkLineStatusResponse, error)

ChangeWorkLineStatusWithBodyWithResponse request with arbitrary body returning *ChangeWorkLineStatusResponse

func (*ClientWithResponses) ChangeWorkLineStatusWithResponse added in v0.1.1

func (c *ClientWithResponses) ChangeWorkLineStatusWithResponse(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, body ChangeWorkLineStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeWorkLineStatusResponse, error)

func (*ClientWithResponses) ChatMessagesWithResponse

func (c *ClientWithResponses) ChatMessagesWithResponse(ctx context.Context, customerId string, params *ChatMessagesParams, reqEditors ...RequestEditorFn) (*ChatMessagesResponse, error)

ChatMessagesWithResponse request returning *ChatMessagesResponse

func (*ClientWithResponses) CreateAssetWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateAssetWithBodyWithResponse(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAssetResponse, error)

CreateAssetWithBodyWithResponse request with arbitrary body returning *CreateAssetResponse

func (*ClientWithResponses) CreateAssetWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateAssetWithResponse(ctx context.Context, params *CreateAssetParams, body CreateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAssetResponse, error)

func (*ClientWithResponses) CreateChatAttachmentsWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateChatAttachmentsWithBodyWithResponse(ctx context.Context, customerId string, params *CreateChatAttachmentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatAttachmentsResponse, error)

CreateChatAttachmentsWithBodyWithResponse request with arbitrary body returning *CreateChatAttachmentsResponse

func (*ClientWithResponses) CreateChatMessageWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateChatMessageWithBodyWithResponse(ctx context.Context, customerId string, params *CreateChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatMessageResponse, error)

CreateChatMessageWithBodyWithResponse request with arbitrary body returning *CreateChatMessageResponse

func (*ClientWithResponses) CreateChatMessageWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateChatMessageWithResponse(ctx context.Context, customerId string, params *CreateChatMessageParams, body CreateChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatMessageResponse, error)

func (*ClientWithResponses) CreateCustomerWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, params *CreateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)

CreateCustomerWithBodyWithResponse request with arbitrary body returning *CreateCustomerResponse

func (*ClientWithResponses) CreateCustomerWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, params *CreateCustomerParams, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)

func (*ClientWithResponses) CreateInvoiceItemWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateInvoiceItemWithBodyWithResponse(ctx context.Context, params *CreateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemResponse, error)

CreateInvoiceItemWithBodyWithResponse request with arbitrary body returning *CreateInvoiceItemResponse

func (*ClientWithResponses) CreateInvoiceItemWithResponse added in v0.1.1

func (*ClientWithResponses) CreateJobBookingWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateJobBookingWithBodyWithResponse(ctx context.Context, params *CreateJobBookingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJobBookingResponse, error)

CreateJobBookingWithBodyWithResponse request with arbitrary body returning *CreateJobBookingResponse

func (*ClientWithResponses) CreateJobBookingWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateJobBookingWithResponse(ctx context.Context, params *CreateJobBookingParams, body CreateJobBookingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJobBookingResponse, error)

func (*ClientWithResponses) CreateServiceWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, businessId string, params *CreateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

CreateServiceWithBodyWithResponse request with arbitrary body returning *CreateServiceResponse

func (*ClientWithResponses) CreateServiceWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, businessId string, params *CreateServiceParams, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

func (*ClientWithResponses) CreateWebhookEndpointWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateWebhookEndpointWithBodyWithResponse(ctx context.Context, params *CreateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookEndpointResponse, error)

CreateWebhookEndpointWithBodyWithResponse request with arbitrary body returning *CreateWebhookEndpointResponse

func (*ClientWithResponses) CreateWebhookEndpointWithResponse added in v0.1.1

func (*ClientWithResponses) CreateWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateWithBodyWithResponse(ctx context.Context, params *CreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

CreateWithBodyWithResponse request with arbitrary body returning *CreateResponse

func (*ClientWithResponses) CreateWithResponse added in v0.1.1

func (c *ClientWithResponses) CreateWithResponse(ctx context.Context, params *CreateParams, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

func (*ClientWithResponses) CustomerWithResponse added in v0.1.1

func (c *ClientWithResponses) CustomerWithResponse(ctx context.Context, customerId string, params *CustomerParams, reqEditors ...RequestEditorFn) (*CustomerResponse, error)

CustomerWithResponse request returning *CustomerResponse

func (*ClientWithResponses) CustomersWithResponse added in v0.1.1

func (c *ClientWithResponses) CustomersWithResponse(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*CustomersResponse, error)

CustomersWithResponse request returning *CustomersResponse

func (*ClientWithResponses) DeleteAssetWithResponse added in v0.1.1

func (c *ClientWithResponses) DeleteAssetWithResponse(ctx context.Context, assetId string, params *DeleteAssetParams, reqEditors ...RequestEditorFn) (*DeleteAssetResponse, error)

DeleteAssetWithResponse request returning *DeleteAssetResponse

func (*ClientWithResponses) DeleteInvoiceItemWithResponse added in v0.1.1

func (c *ClientWithResponses) DeleteInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *DeleteInvoiceItemParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemResponse, error)

DeleteInvoiceItemWithResponse request returning *DeleteInvoiceItemResponse

func (*ClientWithResponses) DeleteWebhookEndpointWithResponse added in v0.1.1

func (c *ClientWithResponses) DeleteWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *DeleteWebhookEndpointParams, reqEditors ...RequestEditorFn) (*DeleteWebhookEndpointResponse, error)

DeleteWebhookEndpointWithResponse request returning *DeleteWebhookEndpointResponse

func (*ClientWithResponses) DeleteWithResponse added in v0.1.1

func (c *ClientWithResponses) DeleteWithResponse(ctx context.Context, backOrderId string, params *DeleteParams, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

DeleteWithResponse request returning *DeleteResponse

func (*ClientWithResponses) GetActivityWithResponse added in v0.2.0

func (c *ClientWithResponses) GetActivityWithResponse(ctx context.Context, activityId string, params *GetActivityParams, reqEditors ...RequestEditorFn) (*GetActivityResponse, error)

GetActivityWithResponse request returning *GetActivityResponse

func (*ClientWithResponses) GetAssetWithResponse added in v0.1.1

func (c *ClientWithResponses) GetAssetWithResponse(ctx context.Context, assetId string, params *GetAssetParams, reqEditors ...RequestEditorFn) (*GetAssetResponse, error)

GetAssetWithResponse request returning *GetAssetResponse

func (*ClientWithResponses) GetBusinessWithResponse added in v0.1.1

func (c *ClientWithResponses) GetBusinessWithResponse(ctx context.Context, businessId string, params *GetBusinessParams, reqEditors ...RequestEditorFn) (*GetBusinessResponse, error)

GetBusinessWithResponse request returning *GetBusinessResponse

func (*ClientWithResponses) GetForJobWithResponse added in v0.2.0

func (c *ClientWithResponses) GetForJobWithResponse(ctx context.Context, jobId string, activityId string, params *GetForJobParams, reqEditors ...RequestEditorFn) (*GetForJobResponse, error)

GetForJobWithResponse request returning *GetForJobResponse

func (*ClientWithResponses) GetInvoiceItemWithResponse added in v0.1.1

func (c *ClientWithResponses) GetInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *GetInvoiceItemParams, reqEditors ...RequestEditorFn) (*GetInvoiceItemResponse, error)

GetInvoiceItemWithResponse request returning *GetInvoiceItemResponse

func (*ClientWithResponses) GetInvoiceWithResponse added in v0.1.1

func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)

GetInvoiceWithResponse request returning *GetInvoiceResponse

func (*ClientWithResponses) GetJobReportForJobWithResponse added in v0.1.1

func (c *ClientWithResponses) GetJobReportForJobWithResponse(ctx context.Context, jobId string, jobReportId string, params *GetJobReportForJobParams, reqEditors ...RequestEditorFn) (*GetJobReportForJobResponse, error)

GetJobReportForJobWithResponse request returning *GetJobReportForJobResponse

func (*ClientWithResponses) GetJobReportWithResponse added in v0.1.1

func (c *ClientWithResponses) GetJobReportWithResponse(ctx context.Context, jobReportId string, params *GetJobReportParams, reqEditors ...RequestEditorFn) (*GetJobReportResponse, error)

GetJobReportWithResponse request returning *GetJobReportResponse

func (*ClientWithResponses) GetPaymentWithResponse added in v0.1.2

func (c *ClientWithResponses) GetPaymentWithResponse(ctx context.Context, paymentId string, params *GetPaymentParams, reqEditors ...RequestEditorFn) (*GetPaymentResponse, error)

GetPaymentWithResponse request returning *GetPaymentResponse

func (*ClientWithResponses) GetServiceWithResponse added in v0.1.1

func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, serviceId string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

GetServiceWithResponse request returning *GetServiceResponse

func (*ClientWithResponses) GetStockVariationWithResponse added in v0.1.1

func (c *ClientWithResponses) GetStockVariationWithResponse(ctx context.Context, stockVariationId string, params *GetStockVariationParams, reqEditors ...RequestEditorFn) (*GetStockVariationResponse, error)

GetStockVariationWithResponse request returning *GetStockVariationResponse

func (*ClientWithResponses) GetTeamMemberWithResponse added in v0.2.0

func (c *ClientWithResponses) GetTeamMemberWithResponse(ctx context.Context, teamMemberId string, params *GetTeamMemberParams, reqEditors ...RequestEditorFn) (*GetTeamMemberResponse, error)

GetTeamMemberWithResponse request returning *GetTeamMemberResponse

func (*ClientWithResponses) GetWebhookDeliveryWithResponse added in v0.1.1

func (c *ClientWithResponses) GetWebhookDeliveryWithResponse(ctx context.Context, deliveryId string, params *GetWebhookDeliveryParams, reqEditors ...RequestEditorFn) (*GetWebhookDeliveryResponse, error)

GetWebhookDeliveryWithResponse request returning *GetWebhookDeliveryResponse

func (*ClientWithResponses) GetWebhookEndpointWithResponse added in v0.1.1

func (c *ClientWithResponses) GetWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *GetWebhookEndpointParams, reqEditors ...RequestEditorFn) (*GetWebhookEndpointResponse, error)

GetWebhookEndpointWithResponse request returning *GetWebhookEndpointResponse

func (*ClientWithResponses) GetWithResponse added in v0.1.1

func (c *ClientWithResponses) GetWithResponse(ctx context.Context, backOrderId string, params *GetParams, reqEditors ...RequestEditorFn) (*GetResponse, error)

GetWithResponse request returning *GetResponse

func (*ClientWithResponses) InvoiceIntegrationSyncBatchWithBodyWithResponse added in v0.1.2

func (c *ClientWithResponses) InvoiceIntegrationSyncBatchWithBodyWithResponse(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncBatchResponse, error)

InvoiceIntegrationSyncBatchWithBodyWithResponse request with arbitrary body returning *InvoiceIntegrationSyncBatchResponse

func (*ClientWithResponses) InvoiceIntegrationSyncBatchWithResponse added in v0.1.2

func (*ClientWithResponses) InvoiceIntegrationSyncEventsWithResponse added in v0.1.1

func (c *ClientWithResponses) InvoiceIntegrationSyncEventsWithResponse(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncEventsParams, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncEventsResponse, error)

InvoiceIntegrationSyncEventsWithResponse request returning *InvoiceIntegrationSyncEventsResponse

func (*ClientWithResponses) InvoiceIntegrationSyncWithResponse added in v0.1.1

func (c *ClientWithResponses) InvoiceIntegrationSyncWithResponse(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncResponse, error)

InvoiceIntegrationSyncWithResponse request returning *InvoiceIntegrationSyncResponse

func (*ClientWithResponses) JobStatusesWithResponse added in v0.1.1

func (c *ClientWithResponses) JobStatusesWithResponse(ctx context.Context, businessId string, params *JobStatusesParams, reqEditors ...RequestEditorFn) (*JobStatusesResponse, error)

JobStatusesWithResponse request returning *JobStatusesResponse

func (*ClientWithResponses) JobWithResponse added in v0.1.1

func (c *ClientWithResponses) JobWithResponse(ctx context.Context, jobId string, params *JobParams, reqEditors ...RequestEditorFn) (*JobResponse, error)

JobWithResponse request returning *JobResponse

func (*ClientWithResponses) JobsWithResponse added in v0.1.1

func (c *ClientWithResponses) JobsWithResponse(ctx context.Context, params *JobsParams, reqEditors ...RequestEditorFn) (*JobsResponse, error)

JobsWithResponse request returning *JobsResponse

func (*ClientWithResponses) ListActivityWithResponse added in v0.2.0

func (c *ClientWithResponses) ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)

ListActivityWithResponse request returning *ListActivityResponse

func (*ClientWithResponses) ListAssetWithResponse added in v0.1.1

func (c *ClientWithResponses) ListAssetWithResponse(ctx context.Context, params *ListAssetParams, reqEditors ...RequestEditorFn) (*ListAssetResponse, error)

ListAssetWithResponse request returning *ListAssetResponse

func (*ClientWithResponses) ListBusinessWithResponse added in v0.1.1

func (c *ClientWithResponses) ListBusinessWithResponse(ctx context.Context, params *ListBusinessParams, reqEditors ...RequestEditorFn) (*ListBusinessResponse, error)

ListBusinessWithResponse request returning *ListBusinessResponse

func (*ClientWithResponses) ListForCustomerWithResponse added in v0.1.1

func (c *ClientWithResponses) ListForCustomerWithResponse(ctx context.Context, customerId string, params *ListForCustomerParams, reqEditors ...RequestEditorFn) (*ListForCustomerResponse, error)

ListForCustomerWithResponse request returning *ListForCustomerResponse

func (*ClientWithResponses) ListForEndpointWithResponse added in v0.1.1

func (c *ClientWithResponses) ListForEndpointWithResponse(ctx context.Context, endpointId string, params *ListForEndpointParams, reqEditors ...RequestEditorFn) (*ListForEndpointResponse, error)

ListForEndpointWithResponse request returning *ListForEndpointResponse

func (*ClientWithResponses) ListForInvoiceWithResponse added in v0.2.0

func (c *ClientWithResponses) ListForInvoiceWithResponse(ctx context.Context, invoiceId string, params *ListForInvoiceParams, reqEditors ...RequestEditorFn) (*ListForInvoiceResponse, error)

ListForInvoiceWithResponse request returning *ListForInvoiceResponse

func (*ClientWithResponses) ListForJobWithResponse added in v0.2.0

func (c *ClientWithResponses) ListForJobWithResponse(ctx context.Context, jobId string, params *ListForJobParams, reqEditors ...RequestEditorFn) (*ListForJobResponse, error)

ListForJobWithResponse request returning *ListForJobResponse

func (*ClientWithResponses) ListInvoiceWithResponse added in v0.1.1

func (c *ClientWithResponses) ListInvoiceWithResponse(ctx context.Context, params *ListInvoiceParams, reqEditors ...RequestEditorFn) (*ListInvoiceResponse, error)

ListInvoiceWithResponse request returning *ListInvoiceResponse

func (*ClientWithResponses) ListJobReportForJobWithResponse added in v0.1.1

func (c *ClientWithResponses) ListJobReportForJobWithResponse(ctx context.Context, jobId string, params *ListJobReportForJobParams, reqEditors ...RequestEditorFn) (*ListJobReportForJobResponse, error)

ListJobReportForJobWithResponse request returning *ListJobReportForJobResponse

func (*ClientWithResponses) ListJobReportWithResponse added in v0.1.1

func (c *ClientWithResponses) ListJobReportWithResponse(ctx context.Context, params *ListJobReportParams, reqEditors ...RequestEditorFn) (*ListJobReportResponse, error)

ListJobReportWithResponse request returning *ListJobReportResponse

func (*ClientWithResponses) ListPaymentWithResponse added in v0.1.2

func (c *ClientWithResponses) ListPaymentWithResponse(ctx context.Context, params *ListPaymentParams, reqEditors ...RequestEditorFn) (*ListPaymentResponse, error)

ListPaymentWithResponse request returning *ListPaymentResponse

func (*ClientWithResponses) ListServiceWithResponse added in v0.1.1

func (c *ClientWithResponses) ListServiceWithResponse(ctx context.Context, params *ListServiceParams, reqEditors ...RequestEditorFn) (*ListServiceResponse, error)

ListServiceWithResponse request returning *ListServiceResponse

func (*ClientWithResponses) ListStockVariationWithResponse added in v0.1.1

func (c *ClientWithResponses) ListStockVariationWithResponse(ctx context.Context, params *ListStockVariationParams, reqEditors ...RequestEditorFn) (*ListStockVariationResponse, error)

ListStockVariationWithResponse request returning *ListStockVariationResponse

func (*ClientWithResponses) ListTeamMemberWithResponse added in v0.2.0

func (c *ClientWithResponses) ListTeamMemberWithResponse(ctx context.Context, params *ListTeamMemberParams, reqEditors ...RequestEditorFn) (*ListTeamMemberResponse, error)

ListTeamMemberWithResponse request returning *ListTeamMemberResponse

func (*ClientWithResponses) ListWebhookEndpointWithResponse added in v0.1.1

func (c *ClientWithResponses) ListWebhookEndpointWithResponse(ctx context.Context, params *ListWebhookEndpointParams, reqEditors ...RequestEditorFn) (*ListWebhookEndpointResponse, error)

ListWebhookEndpointWithResponse request returning *ListWebhookEndpointResponse

func (*ClientWithResponses) ListWebhookEventWithResponse added in v0.1.1

func (c *ClientWithResponses) ListWebhookEventWithResponse(ctx context.Context, params *ListWebhookEventParams, reqEditors ...RequestEditorFn) (*ListWebhookEventResponse, error)

ListWebhookEventWithResponse request returning *ListWebhookEventResponse

func (*ClientWithResponses) ListWithResponse added in v0.1.1

func (c *ClientWithResponses) ListWithResponse(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*ListResponse, error)

ListWithResponse request returning *ListResponse

func (*ClientWithResponses) MarkReadWithResponse added in v0.1.1

func (c *ClientWithResponses) MarkReadWithResponse(ctx context.Context, customerId string, params *MarkReadParams, reqEditors ...RequestEditorFn) (*MarkReadResponse, error)

MarkReadWithResponse request returning *MarkReadResponse

func (*ClientWithResponses) NextAvailableSlotWithResponse added in v0.1.1

func (c *ClientWithResponses) NextAvailableSlotWithResponse(ctx context.Context, businessId string, params *NextAvailableSlotParams, reqEditors ...RequestEditorFn) (*NextAvailableSlotResponse, error)

NextAvailableSlotWithResponse request returning *NextAvailableSlotResponse

func (*ClientWithResponses) PartAuthorisationsWithResponse added in v0.1.1

func (c *ClientWithResponses) PartAuthorisationsWithResponse(ctx context.Context, jobId string, params *PartAuthorisationsParams, reqEditors ...RequestEditorFn) (*PartAuthorisationsResponse, error)

PartAuthorisationsWithResponse request returning *PartAuthorisationsResponse

func (*ClientWithResponses) PaymentLinkWithResponse added in v0.1.1

func (c *ClientWithResponses) PaymentLinkWithResponse(ctx context.Context, invoiceId string, params *PaymentLinkParams, reqEditors ...RequestEditorFn) (*PaymentLinkResponse, error)

PaymentLinkWithResponse request returning *PaymentLinkResponse

func (*ClientWithResponses) PdfWithResponse added in v0.1.1

func (c *ClientWithResponses) PdfWithResponse(ctx context.Context, invoiceId string, params *PdfParams, reqEditors ...RequestEditorFn) (*PdfResponse, error)

PdfWithResponse request returning *PdfResponse

func (*ClientWithResponses) ReceiveWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ReceiveWithBodyWithResponse(ctx context.Context, params *ReceiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveResponse, error)

ReceiveWithBodyWithResponse request with arbitrary body returning *ReceiveResponse

func (*ClientWithResponses) ReceiveWithResponse added in v0.1.1

func (c *ClientWithResponses) ReceiveWithResponse(ctx context.Context, params *ReceiveParams, body ReceiveJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveResponse, error)

func (*ClientWithResponses) RecordPaymentWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) RecordPaymentWithBodyWithResponse(ctx context.Context, invoiceId string, params *RecordPaymentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordPaymentResponse, error)

RecordPaymentWithBodyWithResponse request with arbitrary body returning *RecordPaymentResponse

func (*ClientWithResponses) RecordPaymentWithResponse added in v0.1.1

func (c *ClientWithResponses) RecordPaymentWithResponse(ctx context.Context, invoiceId string, params *RecordPaymentParams, body RecordPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordPaymentResponse, error)

func (*ClientWithResponses) RefundWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) RefundWithBodyWithResponse(ctx context.Context, paymentId string, params *RefundParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefundResponse, error)

RefundWithBodyWithResponse request with arbitrary body returning *RefundResponse

func (*ClientWithResponses) RefundWithResponse added in v0.1.1

func (c *ClientWithResponses) RefundWithResponse(ctx context.Context, paymentId string, params *RefundParams, body RefundJSONRequestBody, reqEditors ...RequestEditorFn) (*RefundResponse, error)

func (*ClientWithResponses) ReplaceWorkLineServicesWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) ReplaceWorkLineServicesWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceWorkLineServicesResponse, error)

ReplaceWorkLineServicesWithBodyWithResponse request with arbitrary body returning *ReplaceWorkLineServicesResponse

func (*ClientWithResponses) ReplaceWorkLineServicesWithResponse added in v0.1.1

func (c *ClientWithResponses) ReplaceWorkLineServicesWithResponse(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, body ReplaceWorkLineServicesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceWorkLineServicesResponse, error)

func (*ClientWithResponses) ReplayWithResponse added in v0.1.1

func (c *ClientWithResponses) ReplayWithResponse(ctx context.Context, deliveryId string, params *ReplayParams, reqEditors ...RequestEditorFn) (*ReplayResponse, error)

ReplayWithResponse request returning *ReplayResponse

func (*ClientWithResponses) RequestPartAuthorisationWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) RequestPartAuthorisationWithBodyWithResponse(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestPartAuthorisationResponse, error)

RequestPartAuthorisationWithBodyWithResponse request with arbitrary body returning *RequestPartAuthorisationResponse

func (*ClientWithResponses) RequestPartAuthorisationWithResponse added in v0.1.1

func (*ClientWithResponses) RetryInvoiceIntegrationSyncWithResponse added in v0.1.1

func (c *ClientWithResponses) RetryInvoiceIntegrationSyncWithResponse(ctx context.Context, invoiceId string, params *RetryInvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*RetryInvoiceIntegrationSyncResponse, error)

RetryInvoiceIntegrationSyncWithResponse request returning *RetryInvoiceIntegrationSyncResponse

func (*ClientWithResponses) RotateSecretWithResponse added in v0.1.1

func (c *ClientWithResponses) RotateSecretWithResponse(ctx context.Context, endpointId string, params *RotateSecretParams, reqEditors ...RequestEditorFn) (*RotateSecretResponse, error)

RotateSecretWithResponse request returning *RotateSecretResponse

func (*ClientWithResponses) SendWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) SendWithBodyWithResponse(ctx context.Context, invoiceId string, params *SendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendResponse, error)

SendWithBodyWithResponse request with arbitrary body returning *SendResponse

func (*ClientWithResponses) SendWithResponse added in v0.1.1

func (c *ClientWithResponses) SendWithResponse(ctx context.Context, invoiceId string, params *SendParams, body SendJSONRequestBody, reqEditors ...RequestEditorFn) (*SendResponse, error)

func (*ClientWithResponses) ServicesWithResponse added in v0.1.1

func (c *ClientWithResponses) ServicesWithResponse(ctx context.Context, businessId string, params *ServicesParams, reqEditors ...RequestEditorFn) (*ServicesResponse, error)

ServicesWithResponse request returning *ServicesResponse

func (*ClientWithResponses) SubmitPartAuthorisationDecisionsWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) SubmitPartAuthorisationDecisionsWithBodyWithResponse(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPartAuthorisationDecisionsResponse, error)

SubmitPartAuthorisationDecisionsWithBodyWithResponse request with arbitrary body returning *SubmitPartAuthorisationDecisionsResponse

func (*ClientWithResponses) SubmitPartAuthorisationDecisionsWithResponse added in v0.1.1

func (*ClientWithResponses) TriggerCustomerSyncWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) TriggerCustomerSyncWithBodyWithResponse(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerCustomerSyncResponse, error)

TriggerCustomerSyncWithBodyWithResponse request with arbitrary body returning *TriggerCustomerSyncResponse

func (*ClientWithResponses) TriggerCustomerSyncWithResponse added in v0.1.1

func (c *ClientWithResponses) TriggerCustomerSyncWithResponse(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, body TriggerCustomerSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerCustomerSyncResponse, error)

func (*ClientWithResponses) TriggerInvoiceIntegrationSyncWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) TriggerInvoiceIntegrationSyncWithBodyWithResponse(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerInvoiceIntegrationSyncResponse, error)

TriggerInvoiceIntegrationSyncWithBodyWithResponse request with arbitrary body returning *TriggerInvoiceIntegrationSyncResponse

func (*ClientWithResponses) TriggerInvoiceIntegrationSyncWithResponse added in v0.1.1

func (*ClientWithResponses) TriggerStockSyncWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) TriggerStockSyncWithBodyWithResponse(ctx context.Context, businessId string, params *TriggerStockSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerStockSyncResponse, error)

TriggerStockSyncWithBodyWithResponse request with arbitrary body returning *TriggerStockSyncResponse

func (*ClientWithResponses) TriggerStockSyncWithResponse added in v0.1.1

func (c *ClientWithResponses) TriggerStockSyncWithResponse(ctx context.Context, businessId string, params *TriggerStockSyncParams, body TriggerStockSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerStockSyncResponse, error)

func (*ClientWithResponses) UpdateAssetWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateAssetWithBodyWithResponse(ctx context.Context, assetId string, params *UpdateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAssetResponse, error)

UpdateAssetWithBodyWithResponse request with arbitrary body returning *UpdateAssetResponse

func (*ClientWithResponses) UpdateAssetWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateAssetWithResponse(ctx context.Context, assetId string, params *UpdateAssetParams, body UpdateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAssetResponse, error)

func (*ClientWithResponses) UpdateCustomerWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, customerId string, params *UpdateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse

func (*ClientWithResponses) UpdateCustomerWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, customerId string, params *UpdateCustomerParams, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

func (*ClientWithResponses) UpdateInvoiceItemWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateInvoiceItemWithBodyWithResponse(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemResponse, error)

UpdateInvoiceItemWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceItemResponse

func (*ClientWithResponses) UpdateInvoiceItemWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, body UpdateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemResponse, error)

func (*ClientWithResponses) UpdateInvoiceWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)

UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse

func (*ClientWithResponses) UpdateInvoiceWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)

func (*ClientWithResponses) UpdateJobWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateJobWithBodyWithResponse(ctx context.Context, jobId string, params *UpdateJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobResponse, error)

UpdateJobWithBodyWithResponse request with arbitrary body returning *UpdateJobResponse

func (*ClientWithResponses) UpdateJobWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateJobWithResponse(ctx context.Context, jobId string, params *UpdateJobParams, body UpdateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobResponse, error)

func (*ClientWithResponses) UpdateServiceWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateServiceWithBodyWithResponse(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

UpdateServiceWithBodyWithResponse request with arbitrary body returning *UpdateServiceResponse

func (*ClientWithResponses) UpdateServiceWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateServiceWithResponse(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

func (*ClientWithResponses) UpdateWebhookEndpointWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWebhookEndpointWithBodyWithResponse(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookEndpointResponse, error)

UpdateWebhookEndpointWithBodyWithResponse request with arbitrary body returning *UpdateWebhookEndpointResponse

func (*ClientWithResponses) UpdateWebhookEndpointWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, body UpdateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookEndpointResponse, error)

func (*ClientWithResponses) UpdateWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, backOrderId string, params *UpdateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse

func (*ClientWithResponses) UpdateWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, backOrderId string, params *UpdateParams, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

func (*ClientWithResponses) UpdateWorkLineWithBodyWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWorkLineWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkLineResponse, error)

UpdateWorkLineWithBodyWithResponse request with arbitrary body returning *UpdateWorkLineResponse

func (*ClientWithResponses) UpdateWorkLineWithResponse added in v0.1.1

func (c *ClientWithResponses) UpdateWorkLineWithResponse(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, body UpdateWorkLineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkLineResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListActivityWithResponse request
	ListActivityWithResponse(ctx context.Context, params *ListActivityParams, reqEditors ...RequestEditorFn) (*ListActivityResponse, error)

	// GetActivityWithResponse request
	GetActivityWithResponse(ctx context.Context, activityId string, params *GetActivityParams, reqEditors ...RequestEditorFn) (*GetActivityResponse, error)

	// ListAssetWithResponse request
	ListAssetWithResponse(ctx context.Context, params *ListAssetParams, reqEditors ...RequestEditorFn) (*ListAssetResponse, error)

	// CreateAssetWithBodyWithResponse request with any body
	CreateAssetWithBodyWithResponse(ctx context.Context, params *CreateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAssetResponse, error)

	CreateAssetWithResponse(ctx context.Context, params *CreateAssetParams, body CreateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAssetResponse, error)

	// DeleteAssetWithResponse request
	DeleteAssetWithResponse(ctx context.Context, assetId string, params *DeleteAssetParams, reqEditors ...RequestEditorFn) (*DeleteAssetResponse, error)

	// GetAssetWithResponse request
	GetAssetWithResponse(ctx context.Context, assetId string, params *GetAssetParams, reqEditors ...RequestEditorFn) (*GetAssetResponse, error)

	// UpdateAssetWithBodyWithResponse request with any body
	UpdateAssetWithBodyWithResponse(ctx context.Context, assetId string, params *UpdateAssetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAssetResponse, error)

	UpdateAssetWithResponse(ctx context.Context, assetId string, params *UpdateAssetParams, body UpdateAssetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAssetResponse, error)

	// ListWithResponse request
	ListWithResponse(ctx context.Context, params *ListParams, reqEditors ...RequestEditorFn) (*ListResponse, error)

	// CreateWithBodyWithResponse request with any body
	CreateWithBodyWithResponse(ctx context.Context, params *CreateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	CreateWithResponse(ctx context.Context, params *CreateParams, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)

	// ReceiveWithBodyWithResponse request with any body
	ReceiveWithBodyWithResponse(ctx context.Context, params *ReceiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReceiveResponse, error)

	ReceiveWithResponse(ctx context.Context, params *ReceiveParams, body ReceiveJSONRequestBody, reqEditors ...RequestEditorFn) (*ReceiveResponse, error)

	// DeleteWithResponse request
	DeleteWithResponse(ctx context.Context, backOrderId string, params *DeleteParams, reqEditors ...RequestEditorFn) (*DeleteResponse, error)

	// GetWithResponse request
	GetWithResponse(ctx context.Context, backOrderId string, params *GetParams, reqEditors ...RequestEditorFn) (*GetResponse, error)

	// UpdateWithBodyWithResponse request with any body
	UpdateWithBodyWithResponse(ctx context.Context, backOrderId string, params *UpdateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	UpdateWithResponse(ctx context.Context, backOrderId string, params *UpdateParams, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)

	// ListBusinessWithResponse request
	ListBusinessWithResponse(ctx context.Context, params *ListBusinessParams, reqEditors ...RequestEditorFn) (*ListBusinessResponse, error)

	// GetBusinessWithResponse request
	GetBusinessWithResponse(ctx context.Context, businessId string, params *GetBusinessParams, reqEditors ...RequestEditorFn) (*GetBusinessResponse, error)

	// AvailabilityWithResponse request
	AvailabilityWithResponse(ctx context.Context, businessId string, params *AvailabilityParams, reqEditors ...RequestEditorFn) (*AvailabilityResponse, error)

	// AvailabilitySlotsWithResponse request
	AvailabilitySlotsWithResponse(ctx context.Context, businessId string, params *AvailabilitySlotsParams, reqEditors ...RequestEditorFn) (*AvailabilitySlotsResponse, error)

	// BusinessIntegrationWithResponse request
	BusinessIntegrationWithResponse(ctx context.Context, businessId string, params *BusinessIntegrationParams, reqEditors ...RequestEditorFn) (*BusinessIntegrationResponse, error)

	// TriggerCustomerSyncWithBodyWithResponse request with any body
	TriggerCustomerSyncWithBodyWithResponse(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerCustomerSyncResponse, error)

	TriggerCustomerSyncWithResponse(ctx context.Context, businessId string, params *TriggerCustomerSyncParams, body TriggerCustomerSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerCustomerSyncResponse, error)

	// TriggerStockSyncWithBodyWithResponse request with any body
	TriggerStockSyncWithBodyWithResponse(ctx context.Context, businessId string, params *TriggerStockSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerStockSyncResponse, error)

	TriggerStockSyncWithResponse(ctx context.Context, businessId string, params *TriggerStockSyncParams, body TriggerStockSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerStockSyncResponse, error)

	// JobStatusesWithResponse request
	JobStatusesWithResponse(ctx context.Context, businessId string, params *JobStatusesParams, reqEditors ...RequestEditorFn) (*JobStatusesResponse, error)

	// NextAvailableSlotWithResponse request
	NextAvailableSlotWithResponse(ctx context.Context, businessId string, params *NextAvailableSlotParams, reqEditors ...RequestEditorFn) (*NextAvailableSlotResponse, error)

	// ServicesWithResponse request
	ServicesWithResponse(ctx context.Context, businessId string, params *ServicesParams, reqEditors ...RequestEditorFn) (*ServicesResponse, error)

	// CreateServiceWithBodyWithResponse request with any body
	CreateServiceWithBodyWithResponse(ctx context.Context, businessId string, params *CreateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

	CreateServiceWithResponse(ctx context.Context, businessId string, params *CreateServiceParams, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error)

	// UpdateServiceWithBodyWithResponse request with any body
	UpdateServiceWithBodyWithResponse(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

	UpdateServiceWithResponse(ctx context.Context, businessId string, serviceId string, params *UpdateServiceParams, body UpdateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateServiceResponse, error)

	// CustomersWithResponse request
	CustomersWithResponse(ctx context.Context, params *CustomersParams, reqEditors ...RequestEditorFn) (*CustomersResponse, error)

	// CreateCustomerWithBodyWithResponse request with any body
	CreateCustomerWithBodyWithResponse(ctx context.Context, params *CreateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)

	CreateCustomerWithResponse(ctx context.Context, params *CreateCustomerParams, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)

	// CustomerWithResponse request
	CustomerWithResponse(ctx context.Context, customerId string, params *CustomerParams, reqEditors ...RequestEditorFn) (*CustomerResponse, error)

	// UpdateCustomerWithBodyWithResponse request with any body
	UpdateCustomerWithBodyWithResponse(ctx context.Context, customerId string, params *UpdateCustomerParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

	UpdateCustomerWithResponse(ctx context.Context, customerId string, params *UpdateCustomerParams, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)

	// ListForCustomerWithResponse request
	ListForCustomerWithResponse(ctx context.Context, customerId string, params *ListForCustomerParams, reqEditors ...RequestEditorFn) (*ListForCustomerResponse, error)

	// CreateChatAttachmentsWithBodyWithResponse request with any body
	CreateChatAttachmentsWithBodyWithResponse(ctx context.Context, customerId string, params *CreateChatAttachmentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatAttachmentsResponse, error)

	// ChatMessagesWithResponse request
	ChatMessagesWithResponse(ctx context.Context, customerId string, params *ChatMessagesParams, reqEditors ...RequestEditorFn) (*ChatMessagesResponse, error)

	// CreateChatMessageWithBodyWithResponse request with any body
	CreateChatMessageWithBodyWithResponse(ctx context.Context, customerId string, params *CreateChatMessageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatMessageResponse, error)

	CreateChatMessageWithResponse(ctx context.Context, customerId string, params *CreateChatMessageParams, body CreateChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatMessageResponse, error)

	// MarkReadWithResponse request
	MarkReadWithResponse(ctx context.Context, customerId string, params *MarkReadParams, reqEditors ...RequestEditorFn) (*MarkReadResponse, error)

	// CreateInvoiceItemWithBodyWithResponse request with any body
	CreateInvoiceItemWithBodyWithResponse(ctx context.Context, params *CreateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemResponse, error)

	CreateInvoiceItemWithResponse(ctx context.Context, params *CreateInvoiceItemParams, body CreateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceItemResponse, error)

	// DeleteInvoiceItemWithResponse request
	DeleteInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *DeleteInvoiceItemParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemResponse, error)

	// GetInvoiceItemWithResponse request
	GetInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *GetInvoiceItemParams, reqEditors ...RequestEditorFn) (*GetInvoiceItemResponse, error)

	// UpdateInvoiceItemWithBodyWithResponse request with any body
	UpdateInvoiceItemWithBodyWithResponse(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemResponse, error)

	UpdateInvoiceItemWithResponse(ctx context.Context, invoiceItemId string, params *UpdateInvoiceItemParams, body UpdateInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemResponse, error)

	// ListInvoiceWithResponse request
	ListInvoiceWithResponse(ctx context.Context, params *ListInvoiceParams, reqEditors ...RequestEditorFn) (*ListInvoiceResponse, error)

	// InvoiceIntegrationSyncBatchWithBodyWithResponse request with any body
	InvoiceIntegrationSyncBatchWithBodyWithResponse(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncBatchResponse, error)

	InvoiceIntegrationSyncBatchWithResponse(ctx context.Context, params *InvoiceIntegrationSyncBatchParams, body InvoiceIntegrationSyncBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncBatchResponse, error)

	// GetInvoiceWithResponse request
	GetInvoiceWithResponse(ctx context.Context, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)

	// UpdateInvoiceWithBodyWithResponse request with any body
	UpdateInvoiceWithBodyWithResponse(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)

	UpdateInvoiceWithResponse(ctx context.Context, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)

	// ListForInvoiceWithResponse request
	ListForInvoiceWithResponse(ctx context.Context, invoiceId string, params *ListForInvoiceParams, reqEditors ...RequestEditorFn) (*ListForInvoiceResponse, error)

	// ChangeInvoiceAutoSyncWithBodyWithResponse request with any body
	ChangeInvoiceAutoSyncWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceAutoSyncResponse, error)

	ChangeInvoiceAutoSyncWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceAutoSyncParams, body ChangeInvoiceAutoSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceAutoSyncResponse, error)

	// InvoiceIntegrationSyncWithResponse request
	InvoiceIntegrationSyncWithResponse(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncResponse, error)

	// InvoiceIntegrationSyncEventsWithResponse request
	InvoiceIntegrationSyncEventsWithResponse(ctx context.Context, invoiceId string, params *InvoiceIntegrationSyncEventsParams, reqEditors ...RequestEditorFn) (*InvoiceIntegrationSyncEventsResponse, error)

	// ChangeInvoiceSyncCompletionWithBodyWithResponse request with any body
	ChangeInvoiceSyncCompletionWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceSyncCompletionResponse, error)

	ChangeInvoiceSyncCompletionWithResponse(ctx context.Context, invoiceId string, params *ChangeInvoiceSyncCompletionParams, body ChangeInvoiceSyncCompletionJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceSyncCompletionResponse, error)

	// RetryInvoiceIntegrationSyncWithResponse request
	RetryInvoiceIntegrationSyncWithResponse(ctx context.Context, invoiceId string, params *RetryInvoiceIntegrationSyncParams, reqEditors ...RequestEditorFn) (*RetryInvoiceIntegrationSyncResponse, error)

	// TriggerInvoiceIntegrationSyncWithBodyWithResponse request with any body
	TriggerInvoiceIntegrationSyncWithBodyWithResponse(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerInvoiceIntegrationSyncResponse, error)

	TriggerInvoiceIntegrationSyncWithResponse(ctx context.Context, invoiceId string, params *TriggerInvoiceIntegrationSyncParams, body TriggerInvoiceIntegrationSyncJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerInvoiceIntegrationSyncResponse, error)

	// PaymentLinkWithResponse request
	PaymentLinkWithResponse(ctx context.Context, invoiceId string, params *PaymentLinkParams, reqEditors ...RequestEditorFn) (*PaymentLinkResponse, error)

	// RecordPaymentWithBodyWithResponse request with any body
	RecordPaymentWithBodyWithResponse(ctx context.Context, invoiceId string, params *RecordPaymentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordPaymentResponse, error)

	RecordPaymentWithResponse(ctx context.Context, invoiceId string, params *RecordPaymentParams, body RecordPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordPaymentResponse, error)

	// PdfWithResponse request
	PdfWithResponse(ctx context.Context, invoiceId string, params *PdfParams, reqEditors ...RequestEditorFn) (*PdfResponse, error)

	// SendWithBodyWithResponse request with any body
	SendWithBodyWithResponse(ctx context.Context, invoiceId string, params *SendParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendResponse, error)

	SendWithResponse(ctx context.Context, invoiceId string, params *SendParams, body SendJSONRequestBody, reqEditors ...RequestEditorFn) (*SendResponse, error)

	// ChangeStatusWithBodyWithResponse request with any body
	ChangeStatusWithBodyWithResponse(ctx context.Context, invoiceId string, params *ChangeStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeStatusResponse, error)

	ChangeStatusWithResponse(ctx context.Context, invoiceId string, params *ChangeStatusParams, body ChangeStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeStatusResponse, error)

	// ListJobReportWithResponse request
	ListJobReportWithResponse(ctx context.Context, params *ListJobReportParams, reqEditors ...RequestEditorFn) (*ListJobReportResponse, error)

	// GetJobReportWithResponse request
	GetJobReportWithResponse(ctx context.Context, jobReportId string, params *GetJobReportParams, reqEditors ...RequestEditorFn) (*GetJobReportResponse, error)

	// JobsWithResponse request
	JobsWithResponse(ctx context.Context, params *JobsParams, reqEditors ...RequestEditorFn) (*JobsResponse, error)

	// CreateJobBookingWithBodyWithResponse request with any body
	CreateJobBookingWithBodyWithResponse(ctx context.Context, params *CreateJobBookingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJobBookingResponse, error)

	CreateJobBookingWithResponse(ctx context.Context, params *CreateJobBookingParams, body CreateJobBookingJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJobBookingResponse, error)

	// JobWithResponse request
	JobWithResponse(ctx context.Context, jobId string, params *JobParams, reqEditors ...RequestEditorFn) (*JobResponse, error)

	// UpdateJobWithBodyWithResponse request with any body
	UpdateJobWithBodyWithResponse(ctx context.Context, jobId string, params *UpdateJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateJobResponse, error)

	UpdateJobWithResponse(ctx context.Context, jobId string, params *UpdateJobParams, body UpdateJobJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateJobResponse, error)

	// ChangeAcceptedStatusWithBodyWithResponse request with any body
	ChangeAcceptedStatusWithBodyWithResponse(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeAcceptedStatusResponse, error)

	ChangeAcceptedStatusWithResponse(ctx context.Context, jobId string, params *ChangeAcceptedStatusParams, body ChangeAcceptedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeAcceptedStatusResponse, error)

	// ListForJobWithResponse request
	ListForJobWithResponse(ctx context.Context, jobId string, params *ListForJobParams, reqEditors ...RequestEditorFn) (*ListForJobResponse, error)

	// GetForJobWithResponse request
	GetForJobWithResponse(ctx context.Context, jobId string, activityId string, params *GetForJobParams, reqEditors ...RequestEditorFn) (*GetForJobResponse, error)

	// ListJobReportForJobWithResponse request
	ListJobReportForJobWithResponse(ctx context.Context, jobId string, params *ListJobReportForJobParams, reqEditors ...RequestEditorFn) (*ListJobReportForJobResponse, error)

	// GetJobReportForJobWithResponse request
	GetJobReportForJobWithResponse(ctx context.Context, jobId string, jobReportId string, params *GetJobReportForJobParams, reqEditors ...RequestEditorFn) (*GetJobReportForJobResponse, error)

	// PartAuthorisationsWithResponse request
	PartAuthorisationsWithResponse(ctx context.Context, jobId string, params *PartAuthorisationsParams, reqEditors ...RequestEditorFn) (*PartAuthorisationsResponse, error)

	// SubmitPartAuthorisationDecisionsWithBodyWithResponse request with any body
	SubmitPartAuthorisationDecisionsWithBodyWithResponse(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPartAuthorisationDecisionsResponse, error)

	SubmitPartAuthorisationDecisionsWithResponse(ctx context.Context, jobId string, params *SubmitPartAuthorisationDecisionsParams, body SubmitPartAuthorisationDecisionsJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitPartAuthorisationDecisionsResponse, error)

	// RequestPartAuthorisationWithBodyWithResponse request with any body
	RequestPartAuthorisationWithBodyWithResponse(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestPartAuthorisationResponse, error)

	RequestPartAuthorisationWithResponse(ctx context.Context, jobId string, params *RequestPartAuthorisationParams, body RequestPartAuthorisationJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestPartAuthorisationResponse, error)

	// ChangeScheduleWithBodyWithResponse request with any body
	ChangeScheduleWithBodyWithResponse(ctx context.Context, jobId string, params *ChangeScheduleParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeScheduleResponse, error)

	ChangeScheduleWithResponse(ctx context.Context, jobId string, params *ChangeScheduleParams, body ChangeScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeScheduleResponse, error)

	// UpdateWorkLineWithBodyWithResponse request with any body
	UpdateWorkLineWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkLineResponse, error)

	UpdateWorkLineWithResponse(ctx context.Context, jobId string, workLineId string, params *UpdateWorkLineParams, body UpdateWorkLineJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkLineResponse, error)

	// AssignWorkLineMechanicWithBodyWithResponse request with any body
	AssignWorkLineMechanicWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AssignWorkLineMechanicResponse, error)

	AssignWorkLineMechanicWithResponse(ctx context.Context, jobId string, workLineId string, params *AssignWorkLineMechanicParams, body AssignWorkLineMechanicJSONRequestBody, reqEditors ...RequestEditorFn) (*AssignWorkLineMechanicResponse, error)

	// ReplaceWorkLineServicesWithBodyWithResponse request with any body
	ReplaceWorkLineServicesWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceWorkLineServicesResponse, error)

	ReplaceWorkLineServicesWithResponse(ctx context.Context, jobId string, workLineId string, params *ReplaceWorkLineServicesParams, body ReplaceWorkLineServicesJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceWorkLineServicesResponse, error)

	// ChangeWorkLineStatusWithBodyWithResponse request with any body
	ChangeWorkLineStatusWithBodyWithResponse(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeWorkLineStatusResponse, error)

	ChangeWorkLineStatusWithResponse(ctx context.Context, jobId string, workLineId string, params *ChangeWorkLineStatusParams, body ChangeWorkLineStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeWorkLineStatusResponse, error)

	// ListPaymentWithResponse request
	ListPaymentWithResponse(ctx context.Context, params *ListPaymentParams, reqEditors ...RequestEditorFn) (*ListPaymentResponse, error)

	// GetPaymentWithResponse request
	GetPaymentWithResponse(ctx context.Context, paymentId string, params *GetPaymentParams, reqEditors ...RequestEditorFn) (*GetPaymentResponse, error)

	// RefundWithBodyWithResponse request with any body
	RefundWithBodyWithResponse(ctx context.Context, paymentId string, params *RefundParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefundResponse, error)

	RefundWithResponse(ctx context.Context, paymentId string, params *RefundParams, body RefundJSONRequestBody, reqEditors ...RequestEditorFn) (*RefundResponse, error)

	// ListServiceWithResponse request
	ListServiceWithResponse(ctx context.Context, params *ListServiceParams, reqEditors ...RequestEditorFn) (*ListServiceResponse, error)

	// GetServiceWithResponse request
	GetServiceWithResponse(ctx context.Context, serviceId string, params *GetServiceParams, reqEditors ...RequestEditorFn) (*GetServiceResponse, error)

	// ListStockVariationWithResponse request
	ListStockVariationWithResponse(ctx context.Context, params *ListStockVariationParams, reqEditors ...RequestEditorFn) (*ListStockVariationResponse, error)

	// GetStockVariationWithResponse request
	GetStockVariationWithResponse(ctx context.Context, stockVariationId string, params *GetStockVariationParams, reqEditors ...RequestEditorFn) (*GetStockVariationResponse, error)

	// ListTeamMemberWithResponse request
	ListTeamMemberWithResponse(ctx context.Context, params *ListTeamMemberParams, reqEditors ...RequestEditorFn) (*ListTeamMemberResponse, error)

	// GetTeamMemberWithResponse request
	GetTeamMemberWithResponse(ctx context.Context, teamMemberId string, params *GetTeamMemberParams, reqEditors ...RequestEditorFn) (*GetTeamMemberResponse, error)

	// GetWebhookDeliveryWithResponse request
	GetWebhookDeliveryWithResponse(ctx context.Context, deliveryId string, params *GetWebhookDeliveryParams, reqEditors ...RequestEditorFn) (*GetWebhookDeliveryResponse, error)

	// ReplayWithResponse request
	ReplayWithResponse(ctx context.Context, deliveryId string, params *ReplayParams, reqEditors ...RequestEditorFn) (*ReplayResponse, error)

	// ListWebhookEndpointWithResponse request
	ListWebhookEndpointWithResponse(ctx context.Context, params *ListWebhookEndpointParams, reqEditors ...RequestEditorFn) (*ListWebhookEndpointResponse, error)

	// CreateWebhookEndpointWithBodyWithResponse request with any body
	CreateWebhookEndpointWithBodyWithResponse(ctx context.Context, params *CreateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookEndpointResponse, error)

	CreateWebhookEndpointWithResponse(ctx context.Context, params *CreateWebhookEndpointParams, body CreateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookEndpointResponse, error)

	// DeleteWebhookEndpointWithResponse request
	DeleteWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *DeleteWebhookEndpointParams, reqEditors ...RequestEditorFn) (*DeleteWebhookEndpointResponse, error)

	// GetWebhookEndpointWithResponse request
	GetWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *GetWebhookEndpointParams, reqEditors ...RequestEditorFn) (*GetWebhookEndpointResponse, error)

	// UpdateWebhookEndpointWithBodyWithResponse request with any body
	UpdateWebhookEndpointWithBodyWithResponse(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookEndpointResponse, error)

	UpdateWebhookEndpointWithResponse(ctx context.Context, endpointId string, params *UpdateWebhookEndpointParams, body UpdateWebhookEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookEndpointResponse, error)

	// ListForEndpointWithResponse request
	ListForEndpointWithResponse(ctx context.Context, endpointId string, params *ListForEndpointParams, reqEditors ...RequestEditorFn) (*ListForEndpointResponse, error)

	// RotateSecretWithResponse request
	RotateSecretWithResponse(ctx context.Context, endpointId string, params *RotateSecretParams, reqEditors ...RequestEditorFn) (*RotateSecretResponse, error)

	// ListWebhookEventWithResponse request
	ListWebhookEventWithResponse(ctx context.Context, params *ListWebhookEventParams, reqEditors ...RequestEditorFn) (*ListWebhookEventResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CommandEffects added in v0.1.1

type CommandEffects struct {
	// AuditLogged Whether the command is expected to create an audit trail entry.
	AuditLogged *bool `json:"audit_logged,omitempty"`

	// EmailsSent Customer or workshop emails sent by the command.
	EmailsSent *[]string `json:"emails_sent,omitempty"`

	// EmailsSkipped Customer or workshop emails intentionally skipped by the command.
	EmailsSkipped *[]string `json:"emails_skipped,omitempty"`

	// NotificationsCreated Whether the command created internal Workshop notifications.
	NotificationsCreated *bool `json:"notifications_created,omitempty"`

	// SyncEnqueued Whether an integration sync job was enqueued.
	SyncEnqueued *bool `json:"sync_enqueued,omitempty"`

	// Warnings Non-fatal notes about optional side effects.
	Warnings *[]string `json:"warnings,omitempty"`

	// WebhooksEnqueued Public webhook event types enqueued by the command, when known.
	WebhooksEnqueued *[]string `json:"webhooks_enqueued,omitempty"`
}

CommandEffects High-level side effects produced by a public API workflow command.

type CommandResponseOfBatchResponseOfBackOrder added in v0.1.1

type CommandResponseOfBatchResponseOfBackOrder struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public API batch response for bounded action results that are not cursor-paginated.
	Resource *BatchResponseOfBackOrder `json:"resource,omitempty"`
}

CommandResponseOfBatchResponseOfBackOrder Standard response envelope for public API workflow commands.

type CommandResponseOfBatchResponseOfChatMessage added in v0.1.1

type CommandResponseOfBatchResponseOfChatMessage struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public API batch response for bounded action results that are not cursor-paginated.
	Resource *BatchResponseOfChatMessage `json:"resource,omitempty"`
}

CommandResponseOfBatchResponseOfChatMessage Standard response envelope for public API workflow commands.

type CommandResponseOfBatchResponseOfPartAuthorisation added in v0.1.1

type CommandResponseOfBatchResponseOfPartAuthorisation struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public API batch response for bounded action results that are not cursor-paginated.
	Resource *BatchResponseOfPartAuthorisation `json:"resource,omitempty"`
}

CommandResponseOfBatchResponseOfPartAuthorisation Standard response envelope for public API workflow commands.

type CommandResponseOfChatMessage added in v0.1.1

type CommandResponseOfChatMessage struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public representation of a customer/business chat message.
	Resource *ChatMessage `json:"resource,omitempty"`
}

CommandResponseOfChatMessage Standard response envelope for public API workflow commands.

type CommandResponseOfInvoice added in v0.1.1

type CommandResponseOfInvoice struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public invoice for a job or standalone sale (Workshop costs).
	Resource *Invoice `json:"resource,omitempty"`
}

CommandResponseOfInvoice Standard response envelope for public API workflow commands.

type CommandResponseOfInvoicePaymentLink struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Workshop-hosted payment link generated for an invoice.
	Resource *InvoicePaymentLink `json:"resource,omitempty"`
}

CommandResponseOfInvoicePaymentLink Standard response envelope for public API workflow commands.

type CommandResponseOfJob added in v0.1.1

type CommandResponseOfJob struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public representation of a created or retrieved job.
	Resource *Job `json:"resource,omitempty"`
}

CommandResponseOfJob Standard response envelope for public API workflow commands.

type CommandResponseOfPayment added in v0.1.1

type CommandResponseOfPayment struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public representation of a payment recorded against an invoice.
	Resource *Payment `json:"resource,omitempty"`
}

CommandResponseOfPayment Standard response envelope for public API workflow commands.

type CommandResponseOfWebhookDelivery added in v0.1.1

type CommandResponseOfWebhookDelivery struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public representation of an outbound webhook delivery attempt.
	Resource *WebhookDelivery `json:"resource,omitempty"`
}

CommandResponseOfWebhookDelivery Standard response envelope for public API workflow commands.

type CommandResponseOfWebhookEndpointWithSecret added in v0.1.1

type CommandResponseOfWebhookEndpointWithSecret struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Response returned when a webhook endpoint is created. The signing secret is only returned once.
	Resource *WebhookEndpointWithSecret `json:"resource,omitempty"`
}

CommandResponseOfWebhookEndpointWithSecret Standard response envelope for public API workflow commands.

type CreateAssetJSONRequestBody added in v0.1.1

type CreateAssetJSONRequestBody = AssetCreateRequest

CreateAssetJSONRequestBody defines body for CreateAsset for application/json ContentType.

type CreateAssetParams added in v0.1.1

type CreateAssetParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateAssetParams defines parameters for CreateAsset.

type CreateAssetResponse added in v0.1.1

type CreateAssetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Asset
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateAssetResponse added in v0.1.1

func ParseCreateAssetResponse(rsp *http.Response) (*CreateAssetResponse, error)

ParseCreateAssetResponse parses an HTTP response from a CreateAssetWithResponse call

func (CreateAssetResponse) ContentType added in v0.1.1

func (r CreateAssetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateAssetResponse) Status added in v0.1.1

func (r CreateAssetResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAssetResponse) StatusCode added in v0.1.1

func (r CreateAssetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateChatAttachmentsMultipartBody added in v0.1.1

type CreateChatAttachmentsMultipartBody struct {
	// Files Binary file upload (`multipart/form-data`). Send one form part per file using the field name `files` — repeat the same field name for multiple files (up to 10 parts per request). This is not a JSON string array.
	Files openapi_types.File `json:"files"`

	// Sender Message sender: `customer` or `business`. Defaults to `customer` when omitted.
	Sender *string `json:"sender,omitempty"`
}

CreateChatAttachmentsMultipartBody defines parameters for CreateChatAttachments.

type CreateChatAttachmentsMultipartRequestBody added in v0.1.1

type CreateChatAttachmentsMultipartRequestBody CreateChatAttachmentsMultipartBody

CreateChatAttachmentsMultipartRequestBody defines body for CreateChatAttachments for multipart/form-data ContentType.

type CreateChatAttachmentsParams added in v0.1.1

type CreateChatAttachmentsParams struct {
	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateChatAttachmentsParams defines parameters for CreateChatAttachments.

type CreateChatAttachmentsResponse added in v0.1.1

type CreateChatAttachmentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfBatchResponseOfChatMessage
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateChatAttachmentsResponse added in v0.1.1

func ParseCreateChatAttachmentsResponse(rsp *http.Response) (*CreateChatAttachmentsResponse, error)

ParseCreateChatAttachmentsResponse parses an HTTP response from a CreateChatAttachmentsWithResponse call

func (CreateChatAttachmentsResponse) ContentType added in v0.1.1

func (r CreateChatAttachmentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateChatAttachmentsResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (CreateChatAttachmentsResponse) StatusCode added in v0.1.1

func (r CreateChatAttachmentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateChatMessageJSONRequestBody added in v0.1.1

type CreateChatMessageJSONRequestBody = ChatMessageCreateRequest

CreateChatMessageJSONRequestBody defines body for CreateChatMessage for application/json ContentType.

type CreateChatMessageParams added in v0.1.1

type CreateChatMessageParams struct {
	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateChatMessageParams defines parameters for CreateChatMessage.

type CreateChatMessageResponse added in v0.1.1

type CreateChatMessageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfChatMessage
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateChatMessageResponse added in v0.1.1

func ParseCreateChatMessageResponse(rsp *http.Response) (*CreateChatMessageResponse, error)

ParseCreateChatMessageResponse parses an HTTP response from a CreateChatMessageWithResponse call

func (CreateChatMessageResponse) ContentType added in v0.1.1

func (r CreateChatMessageResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateChatMessageResponse) Status added in v0.1.1

func (r CreateChatMessageResponse) Status() string

Status returns HTTPResponse.Status

func (CreateChatMessageResponse) StatusCode added in v0.1.1

func (r CreateChatMessageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCustomerJSONRequestBody added in v0.1.1

type CreateCustomerJSONRequestBody = CustomerCreateRequest

CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.

type CreateCustomerParams added in v0.1.1

type CreateCustomerParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateCustomerParams defines parameters for CreateCustomer.

type CreateCustomerResponse added in v0.1.1

type CreateCustomerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Customer
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateCustomerResponse added in v0.1.1

func ParseCreateCustomerResponse(rsp *http.Response) (*CreateCustomerResponse, error)

ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call

func (CreateCustomerResponse) ContentType added in v0.1.1

func (r CreateCustomerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateCustomerResponse) Status added in v0.1.1

func (r CreateCustomerResponse) Status() string

Status returns HTTPResponse.Status

func (CreateCustomerResponse) StatusCode added in v0.1.1

func (r CreateCustomerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateInvoiceItemJSONRequestBody added in v0.1.1

type CreateInvoiceItemJSONRequestBody = InvoiceItemCreateRequest

CreateInvoiceItemJSONRequestBody defines body for CreateInvoiceItem for application/json ContentType.

type CreateInvoiceItemParams added in v0.1.1

type CreateInvoiceItemParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateInvoiceItemParams defines parameters for CreateInvoiceItem.

type CreateInvoiceItemResponse added in v0.1.1

type CreateInvoiceItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *InvoiceItem
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateInvoiceItemResponse added in v0.1.1

func ParseCreateInvoiceItemResponse(rsp *http.Response) (*CreateInvoiceItemResponse, error)

ParseCreateInvoiceItemResponse parses an HTTP response from a CreateInvoiceItemWithResponse call

func (CreateInvoiceItemResponse) ContentType added in v0.1.1

func (r CreateInvoiceItemResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateInvoiceItemResponse) Status added in v0.1.1

func (r CreateInvoiceItemResponse) Status() string

Status returns HTTPResponse.Status

func (CreateInvoiceItemResponse) StatusCode added in v0.1.1

func (r CreateInvoiceItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJSONRequestBody added in v0.1.1

type CreateJSONRequestBody = BackOrderCreateRequest

CreateJSONRequestBody defines body for Create for application/json ContentType.

type CreateJobBookingJSONRequestBody added in v0.1.1

type CreateJobBookingJSONRequestBody = JobCreateRequest

CreateJobBookingJSONRequestBody defines body for CreateJobBooking for application/json ContentType.

type CreateJobBookingParams added in v0.1.1

type CreateJobBookingParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateJobBookingParams defines parameters for CreateJobBooking.

type CreateJobBookingResponse added in v0.1.1

type CreateJobBookingResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateJobBookingResponse added in v0.1.1

func ParseCreateJobBookingResponse(rsp *http.Response) (*CreateJobBookingResponse, error)

ParseCreateJobBookingResponse parses an HTTP response from a CreateJobBookingWithResponse call

func (CreateJobBookingResponse) ContentType added in v0.1.1

func (r CreateJobBookingResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateJobBookingResponse) Status added in v0.1.1

func (r CreateJobBookingResponse) Status() string

Status returns HTTPResponse.Status

func (CreateJobBookingResponse) StatusCode added in v0.1.1

func (r CreateJobBookingResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateParams added in v0.1.1

type CreateParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateParams defines parameters for Create.

type CreateResponse added in v0.1.1

type CreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *BackOrder
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateResponse added in v0.1.1

func ParseCreateResponse(rsp *http.Response) (*CreateResponse, error)

ParseCreateResponse parses an HTTP response from a CreateWithResponse call

func (CreateResponse) ContentType added in v0.1.1

func (r CreateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateResponse) Status added in v0.1.1

func (r CreateResponse) Status() string

Status returns HTTPResponse.Status

func (CreateResponse) StatusCode added in v0.1.1

func (r CreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateServiceJSONRequestBody added in v0.1.1

type CreateServiceJSONRequestBody = ServiceCreateRequest

CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType.

type CreateServiceParams added in v0.1.1

type CreateServiceParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateServiceParams defines parameters for CreateService.

type CreateServiceResponse added in v0.1.1

type CreateServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Service
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateServiceResponse added in v0.1.1

func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error)

ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call

func (CreateServiceResponse) ContentType added in v0.1.1

func (r CreateServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateServiceResponse) Status added in v0.1.1

func (r CreateServiceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateServiceResponse) StatusCode added in v0.1.1

func (r CreateServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateWebhookEndpointJSONRequestBody added in v0.1.1

type CreateWebhookEndpointJSONRequestBody = WebhookEndpointCreateRequest

CreateWebhookEndpointJSONRequestBody defines body for CreateWebhookEndpoint for application/json ContentType.

type CreateWebhookEndpointParams added in v0.1.1

type CreateWebhookEndpointParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

CreateWebhookEndpointParams defines parameters for CreateWebhookEndpoint.

type CreateWebhookEndpointResponse

type CreateWebhookEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *WebhookEndpointWithSecret
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCreateWebhookEndpointResponse added in v0.1.1

func ParseCreateWebhookEndpointResponse(rsp *http.Response) (*CreateWebhookEndpointResponse, error)

ParseCreateWebhookEndpointResponse parses an HTTP response from a CreateWebhookEndpointWithResponse call

func (CreateWebhookEndpointResponse) ContentType added in v0.1.1

func (r CreateWebhookEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateWebhookEndpointResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (CreateWebhookEndpointResponse) StatusCode added in v0.1.1

func (r CreateWebhookEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Customer added in v0.1.1

type Customer struct {
	// Assets Assets associated with the customer that may be serviced in jobs.
	Assets *[]CustomerAssetSummary `json:"assets,omitempty"`

	// BusinessId Public business id that owns this customer.
	BusinessId *string `json:"business_id,omitempty"`

	// Country ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).
	Country *CustomerCountry `json:"country,omitempty"`

	// CreatedAt UTC timestamp when the customer was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Email Customer email address, when available.
	Email *string `json:"email,omitempty"`

	// FirstName Customer first name.
	FirstName *string `json:"first_name,omitempty"`

	// FullName Customer display name.
	FullName *string `json:"full_name,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Landline Customer landline phone number, when available.
	Landline *string `json:"landline,omitempty"`

	// LastName Customer last name.
	LastName *string `json:"last_name,omitempty"`

	// Object Resource object type. Always customer.
	Object *CustomerObject `json:"object,omitempty"`

	// Phone Customer mobile phone number, when available.
	Phone *string `json:"phone,omitempty"`

	// PreferredContactMethod Preferred contact method. Allowed values: `email`, `phone`, `whats_app`, `instagram`, or `facebook`.
	PreferredContactMethod *CustomerPreferredContactMethod `json:"preferred_contact_method,omitempty"`

	// UpdatedAt UTC timestamp when the customer was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Customer Public representation of a customer available to authorized API clients.

type CustomerAddressInput added in v0.1.1

type CustomerAddressInput struct {
	// Country ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).
	Country *CustomerAddressInputCountry `json:"country,omitempty"`

	// Latitude Latitude for the default address.
	Latitude *float64 `json:"latitude,omitempty"`

	// Line1 First address line.
	Line1 *string `json:"line1,omitempty"`

	// Line2 Second address line.
	Line2 *string `json:"line2,omitempty"`

	// Longitude Longitude for the default address.
	Longitude *float64 `json:"longitude,omitempty"`

	// Postcode Postal code.
	Postcode *string `json:"postcode,omitempty"`

	// Town Town or city.
	Town *string `json:"town,omitempty"`
}

CustomerAddressInput Default customer address fields for create or patch requests.

type CustomerAddressInputCountry added in v0.1.1

type CustomerAddressInputCountry string

CustomerAddressInputCountry ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).

const (
	CustomerAddressInputCountryABW CustomerAddressInputCountry = "ABW"
	CustomerAddressInputCountryAFG CustomerAddressInputCountry = "AFG"
	CustomerAddressInputCountryAGO CustomerAddressInputCountry = "AGO"
	CustomerAddressInputCountryAIA CustomerAddressInputCountry = "AIA"
	CustomerAddressInputCountryALA CustomerAddressInputCountry = "ALA"
	CustomerAddressInputCountryALB CustomerAddressInputCountry = "ALB"
	CustomerAddressInputCountryAND CustomerAddressInputCountry = "AND"
	CustomerAddressInputCountryANT CustomerAddressInputCountry = "ANT"
	CustomerAddressInputCountryARE CustomerAddressInputCountry = "ARE"
	CustomerAddressInputCountryARG CustomerAddressInputCountry = "ARG"
	CustomerAddressInputCountryARM CustomerAddressInputCountry = "ARM"
	CustomerAddressInputCountryASM CustomerAddressInputCountry = "ASM"
	CustomerAddressInputCountryATA CustomerAddressInputCountry = "ATA"
	CustomerAddressInputCountryATF CustomerAddressInputCountry = "ATF"
	CustomerAddressInputCountryATG CustomerAddressInputCountry = "ATG"
	CustomerAddressInputCountryAUS CustomerAddressInputCountry = "AUS"
	CustomerAddressInputCountryAUT CustomerAddressInputCountry = "AUT"
	CustomerAddressInputCountryAZE CustomerAddressInputCountry = "AZE"
	CustomerAddressInputCountryBDI CustomerAddressInputCountry = "BDI"
	CustomerAddressInputCountryBEL CustomerAddressInputCountry = "BEL"
	CustomerAddressInputCountryBEN CustomerAddressInputCountry = "BEN"
	CustomerAddressInputCountryBES CustomerAddressInputCountry = "BES"
	CustomerAddressInputCountryBFA CustomerAddressInputCountry = "BFA"
	CustomerAddressInputCountryBGD CustomerAddressInputCountry = "BGD"
	CustomerAddressInputCountryBGR CustomerAddressInputCountry = "BGR"
	CustomerAddressInputCountryBHR CustomerAddressInputCountry = "BHR"
	CustomerAddressInputCountryBHS CustomerAddressInputCountry = "BHS"
	CustomerAddressInputCountryBIH CustomerAddressInputCountry = "BIH"
	CustomerAddressInputCountryBLM CustomerAddressInputCountry = "BLM"
	CustomerAddressInputCountryBLR CustomerAddressInputCountry = "BLR"
	CustomerAddressInputCountryBLZ CustomerAddressInputCountry = "BLZ"
	CustomerAddressInputCountryBMU CustomerAddressInputCountry = "BMU"
	CustomerAddressInputCountryBOL CustomerAddressInputCountry = "BOL"
	CustomerAddressInputCountryBRA CustomerAddressInputCountry = "BRA"
	CustomerAddressInputCountryBRB CustomerAddressInputCountry = "BRB"
	CustomerAddressInputCountryBRN CustomerAddressInputCountry = "BRN"
	CustomerAddressInputCountryBTN CustomerAddressInputCountry = "BTN"
	CustomerAddressInputCountryBVT CustomerAddressInputCountry = "BVT"
	CustomerAddressInputCountryBWA CustomerAddressInputCountry = "BWA"
	CustomerAddressInputCountryCAF CustomerAddressInputCountry = "CAF"
	CustomerAddressInputCountryCAN CustomerAddressInputCountry = "CAN"
	CustomerAddressInputCountryCCK CustomerAddressInputCountry = "CCK"
	CustomerAddressInputCountryCHE CustomerAddressInputCountry = "CHE"
	CustomerAddressInputCountryCHL CustomerAddressInputCountry = "CHL"
	CustomerAddressInputCountryCHN CustomerAddressInputCountry = "CHN"
	CustomerAddressInputCountryCIV CustomerAddressInputCountry = "CIV"
	CustomerAddressInputCountryCMR CustomerAddressInputCountry = "CMR"
	CustomerAddressInputCountryCOD CustomerAddressInputCountry = "COD"
	CustomerAddressInputCountryCOG CustomerAddressInputCountry = "COG"
	CustomerAddressInputCountryCOK CustomerAddressInputCountry = "COK"
	CustomerAddressInputCountryCOL CustomerAddressInputCountry = "COL"
	CustomerAddressInputCountryCOM CustomerAddressInputCountry = "COM"
	CustomerAddressInputCountryCPV CustomerAddressInputCountry = "CPV"
	CustomerAddressInputCountryCRI CustomerAddressInputCountry = "CRI"
	CustomerAddressInputCountryCUB CustomerAddressInputCountry = "CUB"
	CustomerAddressInputCountryCUW CustomerAddressInputCountry = "CUW"
	CustomerAddressInputCountryCXR CustomerAddressInputCountry = "CXR"
	CustomerAddressInputCountryCYM CustomerAddressInputCountry = "CYM"
	CustomerAddressInputCountryCYP CustomerAddressInputCountry = "CYP"
	CustomerAddressInputCountryCZE CustomerAddressInputCountry = "CZE"
	CustomerAddressInputCountryDEU CustomerAddressInputCountry = "DEU"
	CustomerAddressInputCountryDJI CustomerAddressInputCountry = "DJI"
	CustomerAddressInputCountryDMA CustomerAddressInputCountry = "DMA"
	CustomerAddressInputCountryDNK CustomerAddressInputCountry = "DNK"
	CustomerAddressInputCountryDOM CustomerAddressInputCountry = "DOM"
	CustomerAddressInputCountryDZA CustomerAddressInputCountry = "DZA"
	CustomerAddressInputCountryECU CustomerAddressInputCountry = "ECU"
	CustomerAddressInputCountryEGY CustomerAddressInputCountry = "EGY"
	CustomerAddressInputCountryERI CustomerAddressInputCountry = "ERI"
	CustomerAddressInputCountryESH CustomerAddressInputCountry = "ESH"
	CustomerAddressInputCountryESP CustomerAddressInputCountry = "ESP"
	CustomerAddressInputCountryEST CustomerAddressInputCountry = "EST"
	CustomerAddressInputCountryETH CustomerAddressInputCountry = "ETH"
	CustomerAddressInputCountryFIN CustomerAddressInputCountry = "FIN"
	CustomerAddressInputCountryFJI CustomerAddressInputCountry = "FJI"
	CustomerAddressInputCountryFLK CustomerAddressInputCountry = "FLK"
	CustomerAddressInputCountryFRA CustomerAddressInputCountry = "FRA"
	CustomerAddressInputCountryFRO CustomerAddressInputCountry = "FRO"
	CustomerAddressInputCountryFSM CustomerAddressInputCountry = "FSM"
	CustomerAddressInputCountryGAB CustomerAddressInputCountry = "GAB"
	CustomerAddressInputCountryGBR CustomerAddressInputCountry = "GBR"
	CustomerAddressInputCountryGEO CustomerAddressInputCountry = "GEO"
	CustomerAddressInputCountryGGY CustomerAddressInputCountry = "GGY"
	CustomerAddressInputCountryGHA CustomerAddressInputCountry = "GHA"
	CustomerAddressInputCountryGIB CustomerAddressInputCountry = "GIB"
	CustomerAddressInputCountryGIN CustomerAddressInputCountry = "GIN"
	CustomerAddressInputCountryGLP CustomerAddressInputCountry = "GLP"
	CustomerAddressInputCountryGMB CustomerAddressInputCountry = "GMB"
	CustomerAddressInputCountryGNB CustomerAddressInputCountry = "GNB"
	CustomerAddressInputCountryGNQ CustomerAddressInputCountry = "GNQ"
	CustomerAddressInputCountryGRC CustomerAddressInputCountry = "GRC"
	CustomerAddressInputCountryGRD CustomerAddressInputCountry = "GRD"
	CustomerAddressInputCountryGRL CustomerAddressInputCountry = "GRL"
	CustomerAddressInputCountryGTM CustomerAddressInputCountry = "GTM"
	CustomerAddressInputCountryGUF CustomerAddressInputCountry = "GUF"
	CustomerAddressInputCountryGUM CustomerAddressInputCountry = "GUM"
	CustomerAddressInputCountryGUY CustomerAddressInputCountry = "GUY"
	CustomerAddressInputCountryHKG CustomerAddressInputCountry = "HKG"
	CustomerAddressInputCountryHMD CustomerAddressInputCountry = "HMD"
	CustomerAddressInputCountryHND CustomerAddressInputCountry = "HND"
	CustomerAddressInputCountryHRV CustomerAddressInputCountry = "HRV"
	CustomerAddressInputCountryHTI CustomerAddressInputCountry = "HTI"
	CustomerAddressInputCountryHUN CustomerAddressInputCountry = "HUN"
	CustomerAddressInputCountryIDN CustomerAddressInputCountry = "IDN"
	CustomerAddressInputCountryIMN CustomerAddressInputCountry = "IMN"
	CustomerAddressInputCountryIND CustomerAddressInputCountry = "IND"
	CustomerAddressInputCountryIOT CustomerAddressInputCountry = "IOT"
	CustomerAddressInputCountryIRL CustomerAddressInputCountry = "IRL"
	CustomerAddressInputCountryIRN CustomerAddressInputCountry = "IRN"
	CustomerAddressInputCountryIRQ CustomerAddressInputCountry = "IRQ"
	CustomerAddressInputCountryISL CustomerAddressInputCountry = "ISL"
	CustomerAddressInputCountryISR CustomerAddressInputCountry = "ISR"
	CustomerAddressInputCountryITA CustomerAddressInputCountry = "ITA"
	CustomerAddressInputCountryJAM CustomerAddressInputCountry = "JAM"
	CustomerAddressInputCountryJEY CustomerAddressInputCountry = "JEY"
	CustomerAddressInputCountryJOR CustomerAddressInputCountry = "JOR"
	CustomerAddressInputCountryJPN CustomerAddressInputCountry = "JPN"
	CustomerAddressInputCountryKAZ CustomerAddressInputCountry = "KAZ"
	CustomerAddressInputCountryKEN CustomerAddressInputCountry = "KEN"
	CustomerAddressInputCountryKGZ CustomerAddressInputCountry = "KGZ"
	CustomerAddressInputCountryKHM CustomerAddressInputCountry = "KHM"
	CustomerAddressInputCountryKIR CustomerAddressInputCountry = "KIR"
	CustomerAddressInputCountryKNA CustomerAddressInputCountry = "KNA"
	CustomerAddressInputCountryKOR CustomerAddressInputCountry = "KOR"
	CustomerAddressInputCountryKWT CustomerAddressInputCountry = "KWT"
	CustomerAddressInputCountryLAO CustomerAddressInputCountry = "LAO"
	CustomerAddressInputCountryLBN CustomerAddressInputCountry = "LBN"
	CustomerAddressInputCountryLBR CustomerAddressInputCountry = "LBR"
	CustomerAddressInputCountryLBY CustomerAddressInputCountry = "LBY"
	CustomerAddressInputCountryLCA CustomerAddressInputCountry = "LCA"
	CustomerAddressInputCountryLIE CustomerAddressInputCountry = "LIE"
	CustomerAddressInputCountryLKA CustomerAddressInputCountry = "LKA"
	CustomerAddressInputCountryLSO CustomerAddressInputCountry = "LSO"
	CustomerAddressInputCountryLTU CustomerAddressInputCountry = "LTU"
	CustomerAddressInputCountryLUX CustomerAddressInputCountry = "LUX"
	CustomerAddressInputCountryLVA CustomerAddressInputCountry = "LVA"
	CustomerAddressInputCountryMAC CustomerAddressInputCountry = "MAC"
	CustomerAddressInputCountryMAF CustomerAddressInputCountry = "MAF"
	CustomerAddressInputCountryMAR CustomerAddressInputCountry = "MAR"
	CustomerAddressInputCountryMCO CustomerAddressInputCountry = "MCO"
	CustomerAddressInputCountryMDA CustomerAddressInputCountry = "MDA"
	CustomerAddressInputCountryMDG CustomerAddressInputCountry = "MDG"
	CustomerAddressInputCountryMDV CustomerAddressInputCountry = "MDV"
	CustomerAddressInputCountryMEX CustomerAddressInputCountry = "MEX"
	CustomerAddressInputCountryMHL CustomerAddressInputCountry = "MHL"
	CustomerAddressInputCountryMKD CustomerAddressInputCountry = "MKD"
	CustomerAddressInputCountryMLI CustomerAddressInputCountry = "MLI"
	CustomerAddressInputCountryMLT CustomerAddressInputCountry = "MLT"
	CustomerAddressInputCountryMMR CustomerAddressInputCountry = "MMR"
	CustomerAddressInputCountryMNE CustomerAddressInputCountry = "MNE"
	CustomerAddressInputCountryMNG CustomerAddressInputCountry = "MNG"
	CustomerAddressInputCountryMNP CustomerAddressInputCountry = "MNP"
	CustomerAddressInputCountryMOZ CustomerAddressInputCountry = "MOZ"
	CustomerAddressInputCountryMRT CustomerAddressInputCountry = "MRT"
	CustomerAddressInputCountryMSR CustomerAddressInputCountry = "MSR"
	CustomerAddressInputCountryMTQ CustomerAddressInputCountry = "MTQ"
	CustomerAddressInputCountryMUS CustomerAddressInputCountry = "MUS"
	CustomerAddressInputCountryMWI CustomerAddressInputCountry = "MWI"
	CustomerAddressInputCountryMYS CustomerAddressInputCountry = "MYS"
	CustomerAddressInputCountryMYT CustomerAddressInputCountry = "MYT"
	CustomerAddressInputCountryNAM CustomerAddressInputCountry = "NAM"
	CustomerAddressInputCountryNCL CustomerAddressInputCountry = "NCL"
	CustomerAddressInputCountryNER CustomerAddressInputCountry = "NER"
	CustomerAddressInputCountryNFK CustomerAddressInputCountry = "NFK"
	CustomerAddressInputCountryNGA CustomerAddressInputCountry = "NGA"
	CustomerAddressInputCountryNIC CustomerAddressInputCountry = "NIC"
	CustomerAddressInputCountryNIU CustomerAddressInputCountry = "NIU"
	CustomerAddressInputCountryNLD CustomerAddressInputCountry = "NLD"
	CustomerAddressInputCountryNOR CustomerAddressInputCountry = "NOR"
	CustomerAddressInputCountryNPL CustomerAddressInputCountry = "NPL"
	CustomerAddressInputCountryNRU CustomerAddressInputCountry = "NRU"
	CustomerAddressInputCountryNZL CustomerAddressInputCountry = "NZL"
	CustomerAddressInputCountryOMN CustomerAddressInputCountry = "OMN"
	CustomerAddressInputCountryPAK CustomerAddressInputCountry = "PAK"
	CustomerAddressInputCountryPAN CustomerAddressInputCountry = "PAN"
	CustomerAddressInputCountryPCN CustomerAddressInputCountry = "PCN"
	CustomerAddressInputCountryPER CustomerAddressInputCountry = "PER"
	CustomerAddressInputCountryPHL CustomerAddressInputCountry = "PHL"
	CustomerAddressInputCountryPLW CustomerAddressInputCountry = "PLW"
	CustomerAddressInputCountryPNG CustomerAddressInputCountry = "PNG"
	CustomerAddressInputCountryPOL CustomerAddressInputCountry = "POL"
	CustomerAddressInputCountryPRI CustomerAddressInputCountry = "PRI"
	CustomerAddressInputCountryPRK CustomerAddressInputCountry = "PRK"
	CustomerAddressInputCountryPRT CustomerAddressInputCountry = "PRT"
	CustomerAddressInputCountryPRY CustomerAddressInputCountry = "PRY"
	CustomerAddressInputCountryPSE CustomerAddressInputCountry = "PSE"
	CustomerAddressInputCountryPYF CustomerAddressInputCountry = "PYF"
	CustomerAddressInputCountryQAT CustomerAddressInputCountry = "QAT"
	CustomerAddressInputCountryREU CustomerAddressInputCountry = "REU"
	CustomerAddressInputCountryROU CustomerAddressInputCountry = "ROU"
	CustomerAddressInputCountryRUS CustomerAddressInputCountry = "RUS"
	CustomerAddressInputCountryRWA CustomerAddressInputCountry = "RWA"
	CustomerAddressInputCountrySAU CustomerAddressInputCountry = "SAU"
	CustomerAddressInputCountrySCG CustomerAddressInputCountry = "SCG"
	CustomerAddressInputCountrySDN CustomerAddressInputCountry = "SDN"
	CustomerAddressInputCountrySEN CustomerAddressInputCountry = "SEN"
	CustomerAddressInputCountrySGP CustomerAddressInputCountry = "SGP"
	CustomerAddressInputCountrySGS CustomerAddressInputCountry = "SGS"
	CustomerAddressInputCountrySHN CustomerAddressInputCountry = "SHN"
	CustomerAddressInputCountrySJM CustomerAddressInputCountry = "SJM"
	CustomerAddressInputCountrySLB CustomerAddressInputCountry = "SLB"
	CustomerAddressInputCountrySLE CustomerAddressInputCountry = "SLE"
	CustomerAddressInputCountrySLV CustomerAddressInputCountry = "SLV"
	CustomerAddressInputCountrySMR CustomerAddressInputCountry = "SMR"
	CustomerAddressInputCountrySOM CustomerAddressInputCountry = "SOM"
	CustomerAddressInputCountrySPM CustomerAddressInputCountry = "SPM"
	CustomerAddressInputCountrySRB CustomerAddressInputCountry = "SRB"
	CustomerAddressInputCountrySSD CustomerAddressInputCountry = "SSD"
	CustomerAddressInputCountrySTP CustomerAddressInputCountry = "STP"
	CustomerAddressInputCountrySUR CustomerAddressInputCountry = "SUR"
	CustomerAddressInputCountrySVK CustomerAddressInputCountry = "SVK"
	CustomerAddressInputCountrySVN CustomerAddressInputCountry = "SVN"
	CustomerAddressInputCountrySWE CustomerAddressInputCountry = "SWE"
	CustomerAddressInputCountrySWZ CustomerAddressInputCountry = "SWZ"
	CustomerAddressInputCountrySXM CustomerAddressInputCountry = "SXM"
	CustomerAddressInputCountrySYC CustomerAddressInputCountry = "SYC"
	CustomerAddressInputCountrySYR CustomerAddressInputCountry = "SYR"
	CustomerAddressInputCountryTCA CustomerAddressInputCountry = "TCA"
	CustomerAddressInputCountryTCD CustomerAddressInputCountry = "TCD"
	CustomerAddressInputCountryTGO CustomerAddressInputCountry = "TGO"
	CustomerAddressInputCountryTHA CustomerAddressInputCountry = "THA"
	CustomerAddressInputCountryTJK CustomerAddressInputCountry = "TJK"
	CustomerAddressInputCountryTKL CustomerAddressInputCountry = "TKL"
	CustomerAddressInputCountryTKM CustomerAddressInputCountry = "TKM"
	CustomerAddressInputCountryTLS CustomerAddressInputCountry = "TLS"
	CustomerAddressInputCountryTON CustomerAddressInputCountry = "TON"
	CustomerAddressInputCountryTTO CustomerAddressInputCountry = "TTO"
	CustomerAddressInputCountryTUN CustomerAddressInputCountry = "TUN"
	CustomerAddressInputCountryTUR CustomerAddressInputCountry = "TUR"
	CustomerAddressInputCountryTUV CustomerAddressInputCountry = "TUV"
	CustomerAddressInputCountryTWN CustomerAddressInputCountry = "TWN"
	CustomerAddressInputCountryTZA CustomerAddressInputCountry = "TZA"
	CustomerAddressInputCountryUGA CustomerAddressInputCountry = "UGA"
	CustomerAddressInputCountryUKR CustomerAddressInputCountry = "UKR"
	CustomerAddressInputCountryUMI CustomerAddressInputCountry = "UMI"
	CustomerAddressInputCountryURY CustomerAddressInputCountry = "URY"
	CustomerAddressInputCountryUSA CustomerAddressInputCountry = "USA"
	CustomerAddressInputCountryUZB CustomerAddressInputCountry = "UZB"
	CustomerAddressInputCountryVAT CustomerAddressInputCountry = "VAT"
	CustomerAddressInputCountryVCT CustomerAddressInputCountry = "VCT"
	CustomerAddressInputCountryVEN CustomerAddressInputCountry = "VEN"
	CustomerAddressInputCountryVGB CustomerAddressInputCountry = "VGB"
	CustomerAddressInputCountryVIR CustomerAddressInputCountry = "VIR"
	CustomerAddressInputCountryVNM CustomerAddressInputCountry = "VNM"
	CustomerAddressInputCountryVUT CustomerAddressInputCountry = "VUT"
	CustomerAddressInputCountryWLF CustomerAddressInputCountry = "WLF"
	CustomerAddressInputCountryWSM CustomerAddressInputCountry = "WSM"
	CustomerAddressInputCountryXKX CustomerAddressInputCountry = "XKX"
	CustomerAddressInputCountryYEM CustomerAddressInputCountry = "YEM"
	CustomerAddressInputCountryZAF CustomerAddressInputCountry = "ZAF"
	CustomerAddressInputCountryZMB CustomerAddressInputCountry = "ZMB"
	CustomerAddressInputCountryZWE CustomerAddressInputCountry = "ZWE"
)

Defines values for CustomerAddressInputCountry.

func (CustomerAddressInputCountry) Valid added in v0.1.1

Valid indicates whether the value is a known member of the CustomerAddressInputCountry enum.

type CustomerAssetSummary added in v0.1.1

type CustomerAssetSummary struct {
	// BikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).
	BikeType *CustomerAssetSummaryBikeType `json:"bike_type,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Make Asset make or manufacturer.
	Make *string `json:"make,omitempty"`

	// Model Asset model.
	Model *string `json:"model,omitempty"`

	// Name Asset display name.
	Name *string `json:"name,omitempty"`

	// SerialNumber Asset serial number, when known.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset year, when known.
	Year *int32 `json:"year,omitempty"`
}

CustomerAssetSummary Public customer asset summary embedded in customer responses.

type CustomerAssetSummaryBikeType added in v0.1.1

type CustomerAssetSummaryBikeType string

CustomerAssetSummaryBikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).

const (
	CustomerAssetSummaryBikeTypeBmx           CustomerAssetSummaryBikeType = "bmx"
	CustomerAssetSummaryBikeTypeECargo        CustomerAssetSummaryBikeType = "e_cargo"
	CustomerAssetSummaryBikeTypeEGravel       CustomerAssetSummaryBikeType = "e_gravel"
	CustomerAssetSummaryBikeTypeERoad         CustomerAssetSummaryBikeType = "e_road"
	CustomerAssetSummaryBikeTypeElectricBike  CustomerAssetSummaryBikeType = "electric_bike"
	CustomerAssetSummaryBikeTypeGenericBike   CustomerAssetSummaryBikeType = "generic_bike"
	CustomerAssetSummaryBikeTypeGravel        CustomerAssetSummaryBikeType = "gravel"
	CustomerAssetSummaryBikeTypeHybrid        CustomerAssetSummaryBikeType = "hybrid"
	CustomerAssetSummaryBikeTypeKidsBike      CustomerAssetSummaryBikeType = "kids_bike"
	CustomerAssetSummaryBikeTypeMountainBike  CustomerAssetSummaryBikeType = "mountain_bike"
	CustomerAssetSummaryBikeTypeOther         CustomerAssetSummaryBikeType = "other"
	CustomerAssetSummaryBikeTypeRoadBike      CustomerAssetSummaryBikeType = "road_bike"
	CustomerAssetSummaryBikeTypeSingleSpeed   CustomerAssetSummaryBikeType = "single_speed"
	CustomerAssetSummaryBikeTypeStaticBike    CustomerAssetSummaryBikeType = "static_bike"
	CustomerAssetSummaryBikeTypeTriathlonBike CustomerAssetSummaryBikeType = "triathlon_bike"
)

Defines values for CustomerAssetSummaryBikeType.

func (CustomerAssetSummaryBikeType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the CustomerAssetSummaryBikeType enum.

type CustomerCountry added in v0.1.1

type CustomerCountry string

CustomerCountry ISO 3166-1 alpha-3 country code in uppercase (for example `GBR`, `USA`, or `DEU`).

const (
	CustomerCountryABW CustomerCountry = "ABW"
	CustomerCountryAFG CustomerCountry = "AFG"
	CustomerCountryAGO CustomerCountry = "AGO"
	CustomerCountryAIA CustomerCountry = "AIA"
	CustomerCountryALA CustomerCountry = "ALA"
	CustomerCountryALB CustomerCountry = "ALB"
	CustomerCountryAND CustomerCountry = "AND"
	CustomerCountryANT CustomerCountry = "ANT"
	CustomerCountryARE CustomerCountry = "ARE"
	CustomerCountryARG CustomerCountry = "ARG"
	CustomerCountryARM CustomerCountry = "ARM"
	CustomerCountryASM CustomerCountry = "ASM"
	CustomerCountryATA CustomerCountry = "ATA"
	CustomerCountryATF CustomerCountry = "ATF"
	CustomerCountryATG CustomerCountry = "ATG"
	CustomerCountryAUS CustomerCountry = "AUS"
	CustomerCountryAUT CustomerCountry = "AUT"
	CustomerCountryAZE CustomerCountry = "AZE"
	CustomerCountryBDI CustomerCountry = "BDI"
	CustomerCountryBEL CustomerCountry = "BEL"
	CustomerCountryBEN CustomerCountry = "BEN"
	CustomerCountryBES CustomerCountry = "BES"
	CustomerCountryBFA CustomerCountry = "BFA"
	CustomerCountryBGD CustomerCountry = "BGD"
	CustomerCountryBGR CustomerCountry = "BGR"
	CustomerCountryBHR CustomerCountry = "BHR"
	CustomerCountryBHS CustomerCountry = "BHS"
	CustomerCountryBIH CustomerCountry = "BIH"
	CustomerCountryBLM CustomerCountry = "BLM"
	CustomerCountryBLR CustomerCountry = "BLR"
	CustomerCountryBLZ CustomerCountry = "BLZ"
	CustomerCountryBMU CustomerCountry = "BMU"
	CustomerCountryBOL CustomerCountry = "BOL"
	CustomerCountryBRA CustomerCountry = "BRA"
	CustomerCountryBRB CustomerCountry = "BRB"
	CustomerCountryBRN CustomerCountry = "BRN"
	CustomerCountryBTN CustomerCountry = "BTN"
	CustomerCountryBVT CustomerCountry = "BVT"
	CustomerCountryBWA CustomerCountry = "BWA"
	CustomerCountryCAF CustomerCountry = "CAF"
	CustomerCountryCAN CustomerCountry = "CAN"
	CustomerCountryCCK CustomerCountry = "CCK"
	CustomerCountryCHE CustomerCountry = "CHE"
	CustomerCountryCHL CustomerCountry = "CHL"
	CustomerCountryCHN CustomerCountry = "CHN"
	CustomerCountryCIV CustomerCountry = "CIV"
	CustomerCountryCMR CustomerCountry = "CMR"
	CustomerCountryCOD CustomerCountry = "COD"
	CustomerCountryCOG CustomerCountry = "COG"
	CustomerCountryCOK CustomerCountry = "COK"
	CustomerCountryCOL CustomerCountry = "COL"
	CustomerCountryCOM CustomerCountry = "COM"
	CustomerCountryCPV CustomerCountry = "CPV"
	CustomerCountryCRI CustomerCountry = "CRI"
	CustomerCountryCUB CustomerCountry = "CUB"
	CustomerCountryCUW CustomerCountry = "CUW"
	CustomerCountryCXR CustomerCountry = "CXR"
	CustomerCountryCYM CustomerCountry = "CYM"
	CustomerCountryCYP CustomerCountry = "CYP"
	CustomerCountryCZE CustomerCountry = "CZE"
	CustomerCountryDEU CustomerCountry = "DEU"
	CustomerCountryDJI CustomerCountry = "DJI"
	CustomerCountryDMA CustomerCountry = "DMA"
	CustomerCountryDNK CustomerCountry = "DNK"
	CustomerCountryDOM CustomerCountry = "DOM"
	CustomerCountryDZA CustomerCountry = "DZA"
	CustomerCountryECU CustomerCountry = "ECU"
	CustomerCountryEGY CustomerCountry = "EGY"
	CustomerCountryERI CustomerCountry = "ERI"
	CustomerCountryESH CustomerCountry = "ESH"
	CustomerCountryESP CustomerCountry = "ESP"
	CustomerCountryEST CustomerCountry = "EST"
	CustomerCountryETH CustomerCountry = "ETH"
	CustomerCountryFIN CustomerCountry = "FIN"
	CustomerCountryFJI CustomerCountry = "FJI"
	CustomerCountryFLK CustomerCountry = "FLK"
	CustomerCountryFRA CustomerCountry = "FRA"
	CustomerCountryFRO CustomerCountry = "FRO"
	CustomerCountryFSM CustomerCountry = "FSM"
	CustomerCountryGAB CustomerCountry = "GAB"
	CustomerCountryGBR CustomerCountry = "GBR"
	CustomerCountryGEO CustomerCountry = "GEO"
	CustomerCountryGGY CustomerCountry = "GGY"
	CustomerCountryGHA CustomerCountry = "GHA"
	CustomerCountryGIB CustomerCountry = "GIB"
	CustomerCountryGIN CustomerCountry = "GIN"
	CustomerCountryGLP CustomerCountry = "GLP"
	CustomerCountryGMB CustomerCountry = "GMB"
	CustomerCountryGNB CustomerCountry = "GNB"
	CustomerCountryGNQ CustomerCountry = "GNQ"
	CustomerCountryGRC CustomerCountry = "GRC"
	CustomerCountryGRD CustomerCountry = "GRD"
	CustomerCountryGRL CustomerCountry = "GRL"
	CustomerCountryGTM CustomerCountry = "GTM"
	CustomerCountryGUF CustomerCountry = "GUF"
	CustomerCountryGUM CustomerCountry = "GUM"
	CustomerCountryGUY CustomerCountry = "GUY"
	CustomerCountryHKG CustomerCountry = "HKG"
	CustomerCountryHMD CustomerCountry = "HMD"
	CustomerCountryHND CustomerCountry = "HND"
	CustomerCountryHRV CustomerCountry = "HRV"
	CustomerCountryHTI CustomerCountry = "HTI"
	CustomerCountryHUN CustomerCountry = "HUN"
	CustomerCountryIDN CustomerCountry = "IDN"
	CustomerCountryIMN CustomerCountry = "IMN"
	CustomerCountryIND CustomerCountry = "IND"
	CustomerCountryIOT CustomerCountry = "IOT"
	CustomerCountryIRL CustomerCountry = "IRL"
	CustomerCountryIRN CustomerCountry = "IRN"
	CustomerCountryIRQ CustomerCountry = "IRQ"
	CustomerCountryISL CustomerCountry = "ISL"
	CustomerCountryISR CustomerCountry = "ISR"
	CustomerCountryITA CustomerCountry = "ITA"
	CustomerCountryJAM CustomerCountry = "JAM"
	CustomerCountryJEY CustomerCountry = "JEY"
	CustomerCountryJOR CustomerCountry = "JOR"
	CustomerCountryJPN CustomerCountry = "JPN"
	CustomerCountryKAZ CustomerCountry = "KAZ"
	CustomerCountryKEN CustomerCountry = "KEN"
	CustomerCountryKGZ CustomerCountry = "KGZ"
	CustomerCountryKHM CustomerCountry = "KHM"
	CustomerCountryKIR CustomerCountry = "KIR"
	CustomerCountryKNA CustomerCountry = "KNA"
	CustomerCountryKOR CustomerCountry = "KOR"
	CustomerCountryKWT CustomerCountry = "KWT"
	CustomerCountryLAO CustomerCountry = "LAO"
	CustomerCountryLBN CustomerCountry = "LBN"
	CustomerCountryLBR CustomerCountry = "LBR"
	CustomerCountryLBY CustomerCountry = "LBY"
	CustomerCountryLCA CustomerCountry = "LCA"
	CustomerCountryLIE CustomerCountry = "LIE"
	CustomerCountryLKA CustomerCountry = "LKA"
	CustomerCountryLSO CustomerCountry = "LSO"
	CustomerCountryLTU CustomerCountry = "LTU"
	CustomerCountryLUX CustomerCountry = "LUX"
	CustomerCountryLVA CustomerCountry = "LVA"
	CustomerCountryMAC CustomerCountry = "MAC"
	CustomerCountryMAF CustomerCountry = "MAF"
	CustomerCountryMAR CustomerCountry = "MAR"
	CustomerCountryMCO CustomerCountry = "MCO"
	CustomerCountryMDA CustomerCountry = "MDA"
	CustomerCountryMDG CustomerCountry = "MDG"
	CustomerCountryMDV CustomerCountry = "MDV"
	CustomerCountryMEX CustomerCountry = "MEX"
	CustomerCountryMHL CustomerCountry = "MHL"
	CustomerCountryMKD CustomerCountry = "MKD"
	CustomerCountryMLI CustomerCountry = "MLI"
	CustomerCountryMLT CustomerCountry = "MLT"
	CustomerCountryMMR CustomerCountry = "MMR"
	CustomerCountryMNE CustomerCountry = "MNE"
	CustomerCountryMNG CustomerCountry = "MNG"
	CustomerCountryMNP CustomerCountry = "MNP"
	CustomerCountryMOZ CustomerCountry = "MOZ"
	CustomerCountryMRT CustomerCountry = "MRT"
	CustomerCountryMSR CustomerCountry = "MSR"
	CustomerCountryMTQ CustomerCountry = "MTQ"
	CustomerCountryMUS CustomerCountry = "MUS"
	CustomerCountryMWI CustomerCountry = "MWI"
	CustomerCountryMYS CustomerCountry = "MYS"
	CustomerCountryMYT CustomerCountry = "MYT"
	CustomerCountryNAM CustomerCountry = "NAM"
	CustomerCountryNCL CustomerCountry = "NCL"
	CustomerCountryNER CustomerCountry = "NER"
	CustomerCountryNFK CustomerCountry = "NFK"
	CustomerCountryNGA CustomerCountry = "NGA"
	CustomerCountryNIC CustomerCountry = "NIC"
	CustomerCountryNIU CustomerCountry = "NIU"
	CustomerCountryNLD CustomerCountry = "NLD"
	CustomerCountryNOR CustomerCountry = "NOR"
	CustomerCountryNPL CustomerCountry = "NPL"
	CustomerCountryNRU CustomerCountry = "NRU"
	CustomerCountryNZL CustomerCountry = "NZL"
	CustomerCountryOMN CustomerCountry = "OMN"
	CustomerCountryPAK CustomerCountry = "PAK"
	CustomerCountryPAN CustomerCountry = "PAN"
	CustomerCountryPCN CustomerCountry = "PCN"
	CustomerCountryPER CustomerCountry = "PER"
	CustomerCountryPHL CustomerCountry = "PHL"
	CustomerCountryPLW CustomerCountry = "PLW"
	CustomerCountryPNG CustomerCountry = "PNG"
	CustomerCountryPOL CustomerCountry = "POL"
	CustomerCountryPRI CustomerCountry = "PRI"
	CustomerCountryPRK CustomerCountry = "PRK"
	CustomerCountryPRT CustomerCountry = "PRT"
	CustomerCountryPRY CustomerCountry = "PRY"
	CustomerCountryPSE CustomerCountry = "PSE"
	CustomerCountryPYF CustomerCountry = "PYF"
	CustomerCountryQAT CustomerCountry = "QAT"
	CustomerCountryREU CustomerCountry = "REU"
	CustomerCountryROU CustomerCountry = "ROU"
	CustomerCountryRUS CustomerCountry = "RUS"
	CustomerCountryRWA CustomerCountry = "RWA"
	CustomerCountrySAU CustomerCountry = "SAU"
	CustomerCountrySCG CustomerCountry = "SCG"
	CustomerCountrySDN CustomerCountry = "SDN"
	CustomerCountrySEN CustomerCountry = "SEN"
	CustomerCountrySGP CustomerCountry = "SGP"
	CustomerCountrySGS CustomerCountry = "SGS"
	CustomerCountrySHN CustomerCountry = "SHN"
	CustomerCountrySJM CustomerCountry = "SJM"
	CustomerCountrySLB CustomerCountry = "SLB"
	CustomerCountrySLE CustomerCountry = "SLE"
	CustomerCountrySLV CustomerCountry = "SLV"
	CustomerCountrySMR CustomerCountry = "SMR"
	CustomerCountrySOM CustomerCountry = "SOM"
	CustomerCountrySPM CustomerCountry = "SPM"
	CustomerCountrySRB CustomerCountry = "SRB"
	CustomerCountrySSD CustomerCountry = "SSD"
	CustomerCountrySTP CustomerCountry = "STP"
	CustomerCountrySUR CustomerCountry = "SUR"
	CustomerCountrySVK CustomerCountry = "SVK"
	CustomerCountrySVN CustomerCountry = "SVN"
	CustomerCountrySWE CustomerCountry = "SWE"
	CustomerCountrySWZ CustomerCountry = "SWZ"
	CustomerCountrySXM CustomerCountry = "SXM"
	CustomerCountrySYC CustomerCountry = "SYC"
	CustomerCountrySYR CustomerCountry = "SYR"
	CustomerCountryTCA CustomerCountry = "TCA"
	CustomerCountryTCD CustomerCountry = "TCD"
	CustomerCountryTGO CustomerCountry = "TGO"
	CustomerCountryTHA CustomerCountry = "THA"
	CustomerCountryTJK CustomerCountry = "TJK"
	CustomerCountryTKL CustomerCountry = "TKL"
	CustomerCountryTKM CustomerCountry = "TKM"
	CustomerCountryTLS CustomerCountry = "TLS"
	CustomerCountryTON CustomerCountry = "TON"
	CustomerCountryTTO CustomerCountry = "TTO"
	CustomerCountryTUN CustomerCountry = "TUN"
	CustomerCountryTUR CustomerCountry = "TUR"
	CustomerCountryTUV CustomerCountry = "TUV"
	CustomerCountryTWN CustomerCountry = "TWN"
	CustomerCountryTZA CustomerCountry = "TZA"
	CustomerCountryUGA CustomerCountry = "UGA"
	CustomerCountryUKR CustomerCountry = "UKR"
	CustomerCountryUMI CustomerCountry = "UMI"
	CustomerCountryURY CustomerCountry = "URY"
	CustomerCountryUSA CustomerCountry = "USA"
	CustomerCountryUZB CustomerCountry = "UZB"
	CustomerCountryVAT CustomerCountry = "VAT"
	CustomerCountryVCT CustomerCountry = "VCT"
	CustomerCountryVEN CustomerCountry = "VEN"
	CustomerCountryVGB CustomerCountry = "VGB"
	CustomerCountryVIR CustomerCountry = "VIR"
	CustomerCountryVNM CustomerCountry = "VNM"
	CustomerCountryVUT CustomerCountry = "VUT"
	CustomerCountryWLF CustomerCountry = "WLF"
	CustomerCountryWSM CustomerCountry = "WSM"
	CustomerCountryXKX CustomerCountry = "XKX"
	CustomerCountryYEM CustomerCountry = "YEM"
	CustomerCountryZAF CustomerCountry = "ZAF"
	CustomerCountryZMB CustomerCountry = "ZMB"
	CustomerCountryZWE CustomerCountry = "ZWE"
)

Defines values for CustomerCountry.

func (CustomerCountry) Valid added in v0.1.1

func (e CustomerCountry) Valid() bool

Valid indicates whether the value is a known member of the CustomerCountry enum.

type CustomerCreateRequest added in v0.1.1

type CustomerCreateRequest struct {
	// Address Default customer address fields for create or patch requests.
	Address *CustomerAddressInput `json:"address,omitempty"`

	// BusinessId Public business id that should own the customer.
	BusinessId string `json:"business_id"`

	// Email Customer email address.
	Email *openapi_types.Email `json:"email,omitempty"`

	// FirstName Customer first name.
	FirstName *string `json:"first_name,omitempty"`

	// Landline Customer landline phone number.
	Landline *string `json:"landline,omitempty"`

	// LastName Customer last name.
	LastName *string `json:"last_name,omitempty"`

	// Phone Customer mobile phone number.
	Phone *string `json:"phone,omitempty"`

	// PreferredContactMethod Preferred contact method: email, phone, whats_app, instagram, or facebook.
	PreferredContactMethod *CustomerCreateRequestPreferredContactMethod `json:"preferred_contact_method,omitempty"`
}

CustomerCreateRequest Request body for creating a customer in a workshop.

type CustomerCreateRequestPreferredContactMethod added in v0.1.1

type CustomerCreateRequestPreferredContactMethod string

CustomerCreateRequestPreferredContactMethod Preferred contact method: email, phone, whats_app, instagram, or facebook.

const (
	CustomerCreateRequestPreferredContactMethodEmail     CustomerCreateRequestPreferredContactMethod = "email"
	CustomerCreateRequestPreferredContactMethodFacebook  CustomerCreateRequestPreferredContactMethod = "facebook"
	CustomerCreateRequestPreferredContactMethodInstagram CustomerCreateRequestPreferredContactMethod = "instagram"
	CustomerCreateRequestPreferredContactMethodPhone     CustomerCreateRequestPreferredContactMethod = "phone"
	CustomerCreateRequestPreferredContactMethodWhatsApp  CustomerCreateRequestPreferredContactMethod = "whats_app"
)

Defines values for CustomerCreateRequestPreferredContactMethod.

func (CustomerCreateRequestPreferredContactMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the CustomerCreateRequestPreferredContactMethod enum.

type CustomerObject added in v0.1.1

type CustomerObject string

CustomerObject Resource object type. Always customer.

const (
	CustomerObjectCustomer CustomerObject = "customer"
)

Defines values for CustomerObject.

func (CustomerObject) Valid added in v0.1.1

func (e CustomerObject) Valid() bool

Valid indicates whether the value is a known member of the CustomerObject enum.

type CustomerParams added in v0.1.1

type CustomerParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

CustomerParams defines parameters for Customer.

type CustomerPreferredContactMethod added in v0.1.1

type CustomerPreferredContactMethod string

CustomerPreferredContactMethod Preferred contact method. Allowed values: `email`, `phone`, `whats_app`, `instagram`, or `facebook`.

const (
	CustomerPreferredContactMethodEmail     CustomerPreferredContactMethod = "email"
	CustomerPreferredContactMethodFacebook  CustomerPreferredContactMethod = "facebook"
	CustomerPreferredContactMethodInstagram CustomerPreferredContactMethod = "instagram"
	CustomerPreferredContactMethodPhone     CustomerPreferredContactMethod = "phone"
	CustomerPreferredContactMethodWhatsApp  CustomerPreferredContactMethod = "whats_app"
)

Defines values for CustomerPreferredContactMethod.

func (CustomerPreferredContactMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the CustomerPreferredContactMethod enum.

type CustomerResponse

type CustomerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Customer
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCustomerResponse added in v0.1.1

func ParseCustomerResponse(rsp *http.Response) (*CustomerResponse, error)

ParseCustomerResponse parses an HTTP response from a CustomerWithResponse call

func (CustomerResponse) ContentType added in v0.1.1

func (r CustomerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CustomerResponse) Status added in v0.1.1

func (r CustomerResponse) Status() string

Status returns HTTPResponse.Status

func (CustomerResponse) StatusCode added in v0.1.1

func (r CustomerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CustomerUpdateRequest added in v0.1.1

type CustomerUpdateRequest struct {
	// Address Default customer address fields for create or patch requests.
	Address *CustomerAddressInput `json:"address,omitempty"`

	// Email Customer email address. Omit to leave unchanged.
	Email *string `json:"email,omitempty"`

	// FirstName Customer first name. Omit to leave unchanged.
	FirstName *string `json:"first_name,omitempty"`

	// Landline Customer landline phone number. Omit to leave unchanged.
	Landline *string `json:"landline,omitempty"`

	// LastName Customer last name. Omit to leave unchanged.
	LastName *string `json:"last_name,omitempty"`

	// Phone Customer mobile phone number. Omit to leave unchanged.
	Phone *string `json:"phone,omitempty"`

	// PreferredContactMethod Preferred contact method. Allowed values: `email`, `phone`, `whats_app`, `instagram`, or `facebook`.
	PreferredContactMethod *CustomerUpdateRequestPreferredContactMethod `json:"preferred_contact_method,omitempty"`
}

CustomerUpdateRequest Request body for updating a customer through an authenticated business-scoped public API key.

type CustomerUpdateRequestPreferredContactMethod added in v0.1.1

type CustomerUpdateRequestPreferredContactMethod string

CustomerUpdateRequestPreferredContactMethod Preferred contact method. Allowed values: `email`, `phone`, `whats_app`, `instagram`, or `facebook`.

const (
	CustomerUpdateRequestPreferredContactMethodEmail     CustomerUpdateRequestPreferredContactMethod = "email"
	CustomerUpdateRequestPreferredContactMethodFacebook  CustomerUpdateRequestPreferredContactMethod = "facebook"
	CustomerUpdateRequestPreferredContactMethodInstagram CustomerUpdateRequestPreferredContactMethod = "instagram"
	CustomerUpdateRequestPreferredContactMethodPhone     CustomerUpdateRequestPreferredContactMethod = "phone"
	CustomerUpdateRequestPreferredContactMethodWhatsApp  CustomerUpdateRequestPreferredContactMethod = "whats_app"
)

Defines values for CustomerUpdateRequestPreferredContactMethod.

func (CustomerUpdateRequestPreferredContactMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the CustomerUpdateRequestPreferredContactMethod enum.

type CustomersParams added in v0.1.1

type CustomersParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	Name       *string `form:"name,omitempty" json:"name,omitempty"`
	Email      *string `form:"email,omitempty" json:"email,omitempty"`
	Phone      *string `form:"phone,omitempty" json:"phone,omitempty"`

	// Sort Sort field. Allowed values: `created_at`, `name`, `email`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

CustomersParams defines parameters for Customers.

type CustomersResponse added in v0.1.1

type CustomersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfCustomer
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseCustomersResponse added in v0.1.1

func ParseCustomersResponse(rsp *http.Response) (*CustomersResponse, error)

ParseCustomersResponse parses an HTTP response from a CustomersWithResponse call

func (CustomersResponse) ContentType added in v0.1.1

func (r CustomersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CustomersResponse) Status added in v0.1.1

func (r CustomersResponse) Status() string

Status returns HTTPResponse.Status

func (CustomersResponse) StatusCode added in v0.1.1

func (r CustomersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAssetParams added in v0.1.1

type DeleteAssetParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

DeleteAssetParams defines parameters for DeleteAsset.

type DeleteAssetResponse added in v0.1.1

type DeleteAssetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AssetDeleted
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteAssetResponse added in v0.1.1

func ParseDeleteAssetResponse(rsp *http.Response) (*DeleteAssetResponse, error)

ParseDeleteAssetResponse parses an HTTP response from a DeleteAssetWithResponse call

func (DeleteAssetResponse) ContentType added in v0.1.1

func (r DeleteAssetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteAssetResponse) Status added in v0.1.1

func (r DeleteAssetResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAssetResponse) StatusCode added in v0.1.1

func (r DeleteAssetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteInvoiceItemParams added in v0.1.1

type DeleteInvoiceItemParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

DeleteInvoiceItemParams defines parameters for DeleteInvoiceItem.

type DeleteInvoiceItemResponse added in v0.1.1

type DeleteInvoiceItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoiceItemDeleted
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteInvoiceItemResponse added in v0.1.1

func ParseDeleteInvoiceItemResponse(rsp *http.Response) (*DeleteInvoiceItemResponse, error)

ParseDeleteInvoiceItemResponse parses an HTTP response from a DeleteInvoiceItemWithResponse call

func (DeleteInvoiceItemResponse) ContentType added in v0.1.1

func (r DeleteInvoiceItemResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteInvoiceItemResponse) Status added in v0.1.1

func (r DeleteInvoiceItemResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteInvoiceItemResponse) StatusCode added in v0.1.1

func (r DeleteInvoiceItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteParams added in v0.1.1

type DeleteParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

DeleteParams defines parameters for Delete.

type DeleteResponse added in v0.1.1

type DeleteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BackOrderDeleted
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteResponse added in v0.1.1

func ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error)

ParseDeleteResponse parses an HTTP response from a DeleteWithResponse call

func (DeleteResponse) ContentType added in v0.1.1

func (r DeleteResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteResponse) Status added in v0.1.1

func (r DeleteResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteResponse) StatusCode added in v0.1.1

func (r DeleteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteWebhookEndpointParams added in v0.1.1

type DeleteWebhookEndpointParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

DeleteWebhookEndpointParams defines parameters for DeleteWebhookEndpoint.

type DeleteWebhookEndpointResponse added in v0.1.1

type DeleteWebhookEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WebhookEndpoint
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseDeleteWebhookEndpointResponse added in v0.1.1

func ParseDeleteWebhookEndpointResponse(rsp *http.Response) (*DeleteWebhookEndpointResponse, error)

ParseDeleteWebhookEndpointResponse parses an HTTP response from a DeleteWebhookEndpointWithResponse call

func (DeleteWebhookEndpointResponse) ContentType added in v0.1.1

func (r DeleteWebhookEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteWebhookEndpointResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (DeleteWebhookEndpointResponse) StatusCode added in v0.1.1

func (r DeleteWebhookEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Error added in v0.1.1

type Error struct {
	// Code Machine-readable error code.
	Code *ErrorCode `json:"code,omitempty"`

	// Message Human-readable explanation of the error.
	Message *string `json:"message,omitempty"`

	// Parameter Request parameter related to the error, when the failure can be tied to one field.
	Parameter *string `json:"parameter,omitempty"`
}

Error Public API error details. Codes are stable machine-readable values.

type ErrorCode added in v0.1.1

type ErrorCode string

ErrorCode Machine-readable error code.

const (
	AuthenticationRequired           ErrorCode = "authentication_required"
	CannotDeleteResourceWithOpenJobs ErrorCode = "cannot_delete_resource_with_open_jobs"
	IdempotencyConflict              ErrorCode = "idempotency_conflict"
	IdempotencyKeyRequired           ErrorCode = "idempotency_key_required"
	InternalError                    ErrorCode = "internal_error"
	InvalidRequest                   ErrorCode = "invalid_request"
	InvalidStatusTransition          ErrorCode = "invalid_status_transition"
	InvalidWorkflowAction            ErrorCode = "invalid_workflow_action"
	InvoiceAlreadyPaid               ErrorCode = "invoice_already_paid"
	InvoiceNotPayable                ErrorCode = "invoice_not_payable"
	NotificationDisabled             ErrorCode = "notification_disabled"
	NotificationNotAllowed           ErrorCode = "notification_not_allowed"
	PermissionDenied                 ErrorCode = "permission_denied"
	RateLimited                      ErrorCode = "rate_limited"
	ResourceLocked                   ErrorCode = "resource_locked"
	ResourceNotFound                 ErrorCode = "resource_not_found"
	SyncUnavailable                  ErrorCode = "sync_unavailable"
)

Defines values for ErrorCode.

func (ErrorCode) Valid added in v0.1.1

func (e ErrorCode) Valid() bool

Valid indicates whether the value is a known member of the ErrorCode enum.

type ErrorResponse added in v0.1.1

type ErrorResponse struct {
	// Error Public API error details. Codes are stable machine-readable values.
	Error *Error `json:"error,omitempty"`

	// RequestId Request correlation id. Matches X-Bikebook-Request-Id when the caller supplies one.
	RequestId *string `json:"request_id,omitempty"`
}

ErrorResponse Standard error envelope returned by public API endpoints.

type GetActivityParams added in v0.2.0

type GetActivityParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetActivityParams defines parameters for GetActivity.

type GetActivityResponse added in v0.2.0

type GetActivityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Activity
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetActivityResponse added in v0.2.0

func ParseGetActivityResponse(rsp *http.Response) (*GetActivityResponse, error)

ParseGetActivityResponse parses an HTTP response from a GetActivityWithResponse call

func (GetActivityResponse) ContentType added in v0.2.0

func (r GetActivityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetActivityResponse) Status added in v0.2.0

func (r GetActivityResponse) Status() string

Status returns HTTPResponse.Status

func (GetActivityResponse) StatusCode added in v0.2.0

func (r GetActivityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAssetParams added in v0.1.1

type GetAssetParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetAssetParams defines parameters for GetAsset.

type GetAssetResponse added in v0.1.1

type GetAssetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Asset
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetAssetResponse added in v0.1.1

func ParseGetAssetResponse(rsp *http.Response) (*GetAssetResponse, error)

ParseGetAssetResponse parses an HTTP response from a GetAssetWithResponse call

func (GetAssetResponse) ContentType added in v0.1.1

func (r GetAssetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAssetResponse) Status added in v0.1.1

func (r GetAssetResponse) Status() string

Status returns HTTPResponse.Status

func (GetAssetResponse) StatusCode added in v0.1.1

func (r GetAssetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetBusinessParams added in v0.1.1

type GetBusinessParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetBusinessParams defines parameters for GetBusiness.

type GetBusinessResponse added in v0.1.1

type GetBusinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Business
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetBusinessResponse added in v0.1.1

func ParseGetBusinessResponse(rsp *http.Response) (*GetBusinessResponse, error)

ParseGetBusinessResponse parses an HTTP response from a GetBusinessWithResponse call

func (GetBusinessResponse) ContentType added in v0.1.1

func (r GetBusinessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBusinessResponse) Status added in v0.1.1

func (r GetBusinessResponse) Status() string

Status returns HTTPResponse.Status

func (GetBusinessResponse) StatusCode added in v0.1.1

func (r GetBusinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetForJobParams added in v0.2.0

type GetForJobParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetForJobParams defines parameters for GetForJob.

type GetForJobResponse added in v0.2.0

type GetForJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Activity
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetForJobResponse added in v0.2.0

func ParseGetForJobResponse(rsp *http.Response) (*GetForJobResponse, error)

ParseGetForJobResponse parses an HTTP response from a GetForJobWithResponse call

func (GetForJobResponse) ContentType added in v0.2.0

func (r GetForJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetForJobResponse) Status added in v0.2.0

func (r GetForJobResponse) Status() string

Status returns HTTPResponse.Status

func (GetForJobResponse) StatusCode added in v0.2.0

func (r GetForJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInvoiceItemParams added in v0.1.1

type GetInvoiceItemParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetInvoiceItemParams defines parameters for GetInvoiceItem.

type GetInvoiceItemResponse added in v0.1.1

type GetInvoiceItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoiceItem
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetInvoiceItemResponse added in v0.1.1

func ParseGetInvoiceItemResponse(rsp *http.Response) (*GetInvoiceItemResponse, error)

ParseGetInvoiceItemResponse parses an HTTP response from a GetInvoiceItemWithResponse call

func (GetInvoiceItemResponse) ContentType added in v0.1.1

func (r GetInvoiceItemResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetInvoiceItemResponse) Status added in v0.1.1

func (r GetInvoiceItemResponse) Status() string

Status returns HTTPResponse.Status

func (GetInvoiceItemResponse) StatusCode added in v0.1.1

func (r GetInvoiceItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInvoiceParams added in v0.1.1

type GetInvoiceParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetInvoiceParams defines parameters for GetInvoice.

type GetInvoiceResponse added in v0.1.1

type GetInvoiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Invoice
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetInvoiceResponse added in v0.1.1

func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error)

ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call

func (GetInvoiceResponse) ContentType added in v0.1.1

func (r GetInvoiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetInvoiceResponse) Status added in v0.1.1

func (r GetInvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetInvoiceResponse) StatusCode added in v0.1.1

func (r GetInvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobReportForJobParams added in v0.1.1

type GetJobReportForJobParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetJobReportForJobParams defines parameters for GetJobReportForJob.

type GetJobReportForJobResponse added in v0.1.1

type GetJobReportForJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JobReport
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetJobReportForJobResponse added in v0.1.1

func ParseGetJobReportForJobResponse(rsp *http.Response) (*GetJobReportForJobResponse, error)

ParseGetJobReportForJobResponse parses an HTTP response from a GetJobReportForJobWithResponse call

func (GetJobReportForJobResponse) ContentType added in v0.1.1

func (r GetJobReportForJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobReportForJobResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (GetJobReportForJobResponse) StatusCode added in v0.1.1

func (r GetJobReportForJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJobReportParams added in v0.1.1

type GetJobReportParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetJobReportParams defines parameters for GetJobReport.

type GetJobReportResponse added in v0.1.1

type GetJobReportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JobReport
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetJobReportResponse added in v0.1.1

func ParseGetJobReportResponse(rsp *http.Response) (*GetJobReportResponse, error)

ParseGetJobReportResponse parses an HTTP response from a GetJobReportWithResponse call

func (GetJobReportResponse) ContentType added in v0.1.1

func (r GetJobReportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJobReportResponse) Status added in v0.1.1

func (r GetJobReportResponse) Status() string

Status returns HTTPResponse.Status

func (GetJobReportResponse) StatusCode added in v0.1.1

func (r GetJobReportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetParams added in v0.1.1

type GetParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetParams defines parameters for Get.

type GetPaymentParams added in v0.1.2

type GetPaymentParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetPaymentParams defines parameters for GetPayment.

type GetPaymentResponse added in v0.1.2

type GetPaymentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Payment
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetPaymentResponse added in v0.1.2

func ParseGetPaymentResponse(rsp *http.Response) (*GetPaymentResponse, error)

ParseGetPaymentResponse parses an HTTP response from a GetPaymentWithResponse call

func (GetPaymentResponse) ContentType added in v0.1.2

func (r GetPaymentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPaymentResponse) Status added in v0.1.2

func (r GetPaymentResponse) Status() string

Status returns HTTPResponse.Status

func (GetPaymentResponse) StatusCode added in v0.1.2

func (r GetPaymentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResponse added in v0.1.1

type GetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BackOrder
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetResponse added in v0.1.1

func ParseGetResponse(rsp *http.Response) (*GetResponse, error)

ParseGetResponse parses an HTTP response from a GetWithResponse call

func (GetResponse) ContentType added in v0.1.1

func (r GetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetResponse) Status added in v0.1.1

func (r GetResponse) Status() string

Status returns HTTPResponse.Status

func (GetResponse) StatusCode added in v0.1.1

func (r GetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceParams added in v0.1.1

type GetServiceParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetServiceParams defines parameters for GetService.

type GetServiceResponse added in v0.1.1

type GetServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Service
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetServiceResponse added in v0.1.1

func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error)

ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call

func (GetServiceResponse) ContentType added in v0.1.1

func (r GetServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetServiceResponse) Status added in v0.1.1

func (r GetServiceResponse) Status() string

Status returns HTTPResponse.Status

func (GetServiceResponse) StatusCode added in v0.1.1

func (r GetServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStockVariationParams added in v0.1.1

type GetStockVariationParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetStockVariationParams defines parameters for GetStockVariation.

type GetStockVariationResponse added in v0.1.1

type GetStockVariationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *StockVariation
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetStockVariationResponse added in v0.1.1

func ParseGetStockVariationResponse(rsp *http.Response) (*GetStockVariationResponse, error)

ParseGetStockVariationResponse parses an HTTP response from a GetStockVariationWithResponse call

func (GetStockVariationResponse) ContentType added in v0.1.1

func (r GetStockVariationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStockVariationResponse) Status added in v0.1.1

func (r GetStockVariationResponse) Status() string

Status returns HTTPResponse.Status

func (GetStockVariationResponse) StatusCode added in v0.1.1

func (r GetStockVariationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTeamMemberParams added in v0.2.0

type GetTeamMemberParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetTeamMemberParams defines parameters for GetTeamMember.

type GetTeamMemberResponse added in v0.2.0

type GetTeamMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TeamMember
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetTeamMemberResponse added in v0.2.0

func ParseGetTeamMemberResponse(rsp *http.Response) (*GetTeamMemberResponse, error)

ParseGetTeamMemberResponse parses an HTTP response from a GetTeamMemberWithResponse call

func (GetTeamMemberResponse) ContentType added in v0.2.0

func (r GetTeamMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTeamMemberResponse) Status added in v0.2.0

func (r GetTeamMemberResponse) Status() string

Status returns HTTPResponse.Status

func (GetTeamMemberResponse) StatusCode added in v0.2.0

func (r GetTeamMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWebhookDeliveryParams added in v0.1.1

type GetWebhookDeliveryParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetWebhookDeliveryParams defines parameters for GetWebhookDelivery.

type GetWebhookDeliveryResponse added in v0.1.1

type GetWebhookDeliveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WebhookDelivery
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetWebhookDeliveryResponse added in v0.1.1

func ParseGetWebhookDeliveryResponse(rsp *http.Response) (*GetWebhookDeliveryResponse, error)

ParseGetWebhookDeliveryResponse parses an HTTP response from a GetWebhookDeliveryWithResponse call

func (GetWebhookDeliveryResponse) ContentType added in v0.1.1

func (r GetWebhookDeliveryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWebhookDeliveryResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (GetWebhookDeliveryResponse) StatusCode added in v0.1.1

func (r GetWebhookDeliveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWebhookEndpointParams added in v0.1.1

type GetWebhookEndpointParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

GetWebhookEndpointParams defines parameters for GetWebhookEndpoint.

type GetWebhookEndpointResponse added in v0.1.1

type GetWebhookEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WebhookEndpoint
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseGetWebhookEndpointResponse added in v0.1.1

func ParseGetWebhookEndpointResponse(rsp *http.Response) (*GetWebhookEndpointResponse, error)

ParseGetWebhookEndpointResponse parses an HTTP response from a GetWebhookEndpointWithResponse call

func (GetWebhookEndpointResponse) ContentType added in v0.1.1

func (r GetWebhookEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWebhookEndpointResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (GetWebhookEndpointResponse) StatusCode added in v0.1.1

func (r GetWebhookEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IntegrationAutoSyncChangeRequest added in v0.1.1

type IntegrationAutoSyncChangeRequest struct {
	// Enabled Whether auto-sync should be enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Reason Optional reason for disabling auto-sync.
	Reason *string `json:"reason,omitempty"`
}

IntegrationAutoSyncChangeRequest Request body for changing invoice auto-sync.

type IntegrationPullSyncAccepted added in v0.1.1

type IntegrationPullSyncAccepted struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// PollUrl URL to poll for updated integration state.
	PollUrl *string `json:"poll_url,omitempty"`

	// Resource Public state for the active POS/accounting integration configured on a business.
	Resource *BusinessIntegration `json:"resource,omitempty"`
}

IntegrationPullSyncAccepted Response from a background stock or customer sync trigger.

type IntegrationPullSyncRequest added in v0.1.1

type IntegrationPullSyncRequest struct {
	// FullResync When true, clears the last-sync cursor so the next worker pass performs a fuller resync.
	FullResync *bool `json:"full_resync,omitempty"`
}

IntegrationPullSyncRequest Request body for triggering a background stock or customer sync.

type IntegrationPullSyncState added in v0.1.1

type IntegrationPullSyncState struct {
	// Disabled True when this sync stream is disabled by the workshop.
	Disabled *bool `json:"disabled,omitempty"`

	// LastSyncedAt UTC timestamp when this stream last completed successfully.
	LastSyncedAt *time.Time `json:"last_synced_at,omitempty"`

	// Status Sync status in snake_case.
	Status *IntegrationPullSyncStateStatus `json:"status,omitempty"`
}

IntegrationPullSyncState Public state for a background pull sync stream.

type IntegrationPullSyncStateStatus added in v0.1.1

type IntegrationPullSyncStateStatus string

IntegrationPullSyncStateStatus Sync status in snake_case.

const (
	IntegrationPullSyncStateStatusCompleted IntegrationPullSyncStateStatus = "completed"
	IntegrationPullSyncStateStatusDeleted   IntegrationPullSyncStateStatus = "deleted"
	IntegrationPullSyncStateStatusFailed    IntegrationPullSyncStateStatus = "failed"
	IntegrationPullSyncStateStatusNotSynced IntegrationPullSyncStateStatus = "not_synced"
	IntegrationPullSyncStateStatusSynced    IntegrationPullSyncStateStatus = "synced"
	IntegrationPullSyncStateStatusSyncing   IntegrationPullSyncStateStatus = "syncing"
)

Defines values for IntegrationPullSyncStateStatus.

func (IntegrationPullSyncStateStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the IntegrationPullSyncStateStatus enum.

type IntegrationSyncCommand added in v0.1.1

type IntegrationSyncCommand struct {
	// Effects High-level side effects produced by a public API workflow command.
	Effects *CommandEffects `json:"effects,omitempty"`

	// Resource Public invoice sync state for the invoice's active business integration.
	Resource *InvoiceIntegrationSync `json:"resource,omitempty"`

	// SyncResult Public-safe result from a manual integration sync call.
	SyncResult *IntegrationSyncResult `json:"sync_result,omitempty"`
}

IntegrationSyncCommand Response from an inline invoice integration sync command.

type IntegrationSyncCompletionRequest added in v0.1.1

type IntegrationSyncCompletionRequest struct {
	// Completed Whether to mark the invoice integration sync as completed.
	Completed *bool `json:"completed,omitempty"`
}

IntegrationSyncCompletionRequest Request body for marking invoice integration sync completed or uncompleted.

type IntegrationSyncEvent added in v0.1.1

type IntegrationSyncEvent struct {
	// CompletedAt UTC timestamp when processing completed.
	CompletedAt *time.Time `json:"completed_at,omitempty"`

	// CreatedAt UTC timestamp when the event was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Direction Data flow direction for the sync event.
	Direction *IntegrationSyncEventDirection `json:"direction,omitempty"`

	// ErrorMessage Public-safe error message, when the sync failed.
	ErrorMessage *string `json:"error_message,omitempty"`

	// HttpStatusCode External HTTP status code, when available.
	HttpStatusCode *int32 `json:"http_status_code,omitempty"`

	// Id Public sync event id.
	Id *string `json:"id,omitempty"`

	// Operation Provider operation performed by the sync event.
	Operation *IntegrationSyncEventOperation `json:"operation,omitempty"`

	// ProcessingStartedAt UTC timestamp when processing started.
	ProcessingStartedAt *time.Time `json:"processing_started_at,omitempty"`

	// Retryable True when retrying this event can be useful.
	Retryable *bool `json:"retryable,omitempty"`

	// Status Integration sync event processing status.
	Status *IntegrationSyncEventStatus `json:"status,omitempty"`

	// Trigger What triggered the sync event.
	Trigger *IntegrationSyncEventTrigger `json:"trigger,omitempty"`

	// TriggerDescription Public-safe trigger description.
	TriggerDescription *string `json:"trigger_description,omitempty"`
}

IntegrationSyncEvent Public summary of an integration sync attempt.

type IntegrationSyncEventDirection added in v0.1.1

type IntegrationSyncEventDirection string

IntegrationSyncEventDirection Data flow direction for the sync event.

const (
	Bidirectional IntegrationSyncEventDirection = "bidirectional"
	Pull          IntegrationSyncEventDirection = "pull"
	Push          IntegrationSyncEventDirection = "push"
)

Defines values for IntegrationSyncEventDirection.

func (IntegrationSyncEventDirection) Valid added in v0.1.1

Valid indicates whether the value is a known member of the IntegrationSyncEventDirection enum.

type IntegrationSyncEventList added in v0.1.1

type IntegrationSyncEventList struct {
	// Events Recent sync events, newest first.
	Events *[]IntegrationSyncEvent `json:"events,omitempty"`
}

IntegrationSyncEventList Public sync event history response.

type IntegrationSyncEventOperation added in v0.1.1

type IntegrationSyncEventOperation string

IntegrationSyncEventOperation Provider operation performed by the sync event.

const (
	IntegrationSyncEventOperationComplete               IntegrationSyncEventOperation = "complete"
	IntegrationSyncEventOperationCompleteWarrantyUnpaid IntegrationSyncEventOperation = "complete_warranty_unpaid"
	IntegrationSyncEventOperationCreate                 IntegrationSyncEventOperation = "create"
	IntegrationSyncEventOperationDelete                 IntegrationSyncEventOperation = "delete"
	IntegrationSyncEventOperationPaymentSync            IntegrationSyncEventOperation = "payment_sync"
	IntegrationSyncEventOperationUpdate                 IntegrationSyncEventOperation = "update"
)

Defines values for IntegrationSyncEventOperation.

func (IntegrationSyncEventOperation) Valid added in v0.1.1

Valid indicates whether the value is a known member of the IntegrationSyncEventOperation enum.

type IntegrationSyncEventStatus added in v0.1.1

type IntegrationSyncEventStatus string

IntegrationSyncEventStatus Integration sync event processing status.

const (
	IntegrationSyncEventStatusCancelled  IntegrationSyncEventStatus = "cancelled"
	IntegrationSyncEventStatusFailed     IntegrationSyncEventStatus = "failed"
	IntegrationSyncEventStatusPending    IntegrationSyncEventStatus = "pending"
	IntegrationSyncEventStatusProcessing IntegrationSyncEventStatus = "processing"
	IntegrationSyncEventStatusSuccess    IntegrationSyncEventStatus = "success"
	IntegrationSyncEventStatusSuperseded IntegrationSyncEventStatus = "superseded"
)

Defines values for IntegrationSyncEventStatus.

func (IntegrationSyncEventStatus) Valid added in v0.1.1

func (e IntegrationSyncEventStatus) Valid() bool

Valid indicates whether the value is a known member of the IntegrationSyncEventStatus enum.

type IntegrationSyncEventTrigger added in v0.1.1

type IntegrationSyncEventTrigger string

IntegrationSyncEventTrigger What triggered the sync event.

const (
	IntegrationSyncEventTriggerAutoOnCreate      IntegrationSyncEventTrigger = "auto_on_create"
	IntegrationSyncEventTriggerAutoOnUpdate      IntegrationSyncEventTrigger = "auto_on_update"
	IntegrationSyncEventTriggerManual            IntegrationSyncEventTrigger = "manual"
	IntegrationSyncEventTriggerRetry             IntegrationSyncEventTrigger = "retry"
	IntegrationSyncEventTriggerShopifyPosWebhook IntegrationSyncEventTrigger = "shopify_pos_webhook"
)

Defines values for IntegrationSyncEventTrigger.

func (IntegrationSyncEventTrigger) Valid added in v0.1.1

Valid indicates whether the value is a known member of the IntegrationSyncEventTrigger enum.

type IntegrationSyncResult added in v0.1.1

type IntegrationSyncResult struct {
	// ErrorMessage Public-safe error message when the sync failed.
	ErrorMessage *string `json:"error_message,omitempty"`

	// ExternalSystemId Provider-specific external order or invoice id, when available.
	ExternalSystemId *string `json:"external_system_id,omitempty"`

	// ExternalSystemReference Provider-specific external reference, when available.
	ExternalSystemReference *string `json:"external_system_reference,omitempty"`

	// IsVoidFailed True when the requested replacement sync stopped because voiding the existing external record failed.
	IsVoidFailed *bool `json:"is_void_failed,omitempty"`

	// Success Whether the sync completed successfully.
	Success *bool `json:"success,omitempty"`

	// VoidErrorMessage Public-safe void failure message.
	VoidErrorMessage *string `json:"void_error_message,omitempty"`
}

IntegrationSyncResult Public-safe result from a manual integration sync call.

type IntegrationSyncTriggerRequest added in v0.1.1

type IntegrationSyncTriggerRequest struct {
	// CancelExisting When true and create_new is true, attempt to cancel or void the existing external order/invoice first.
	CancelExisting *bool `json:"cancel_existing,omitempty"`

	// CreateNew When true, create a new external order/invoice instead of updating the existing one.
	CreateNew *bool `json:"create_new,omitempty"`

	// Mode Manual sync mode. `auto` creates when no external id exists and updates otherwise.
	Mode *IntegrationSyncTriggerRequestMode `json:"mode,omitempty"`
}

IntegrationSyncTriggerRequest Request body for manually triggering invoice integration sync.

type IntegrationSyncTriggerRequestMode added in v0.1.1

type IntegrationSyncTriggerRequestMode string

IntegrationSyncTriggerRequestMode Manual sync mode. `auto` creates when no external id exists and updates otherwise.

const (
	IntegrationSyncTriggerRequestModeAuto        IntegrationSyncTriggerRequestMode = "auto"
	IntegrationSyncTriggerRequestModeComplete    IntegrationSyncTriggerRequestMode = "complete"
	IntegrationSyncTriggerRequestModeCreate      IntegrationSyncTriggerRequestMode = "create"
	IntegrationSyncTriggerRequestModePaymentSync IntegrationSyncTriggerRequestMode = "payment_sync"
	IntegrationSyncTriggerRequestModeUpdate      IntegrationSyncTriggerRequestMode = "update"
)

Defines values for IntegrationSyncTriggerRequestMode.

func (IntegrationSyncTriggerRequestMode) Valid added in v0.1.1

Valid indicates whether the value is a known member of the IntegrationSyncTriggerRequestMode enum.

type Invoice added in v0.1.1

type Invoice struct {
	// BusinessId Public business id that owns the invoice.
	BusinessId *string `json:"business_id,omitempty"`

	// CreatedAt UTC timestamp when the invoice was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Currency ISO currency code for all monetary fields, for example GBP.
	Currency *string `json:"currency,omitempty"`

	// CustomerId Public customer id for the billed party, for example cus_....
	CustomerId *string `json:"customer_id,omitempty"`

	// DiscountType Discount model when configured. Allowed values: `percentage` or `set_amount`.
	DiscountType *InvoiceDiscountType `json:"discount_type,omitempty"`

	// DiscountValue Discount value; interpretation depends on discount_type.
	DiscountValue *float64 `json:"discount_value,omitempty"`

	// DueAt UTC due date for payment, when set.
	DueAt *time.Time `json:"due_at,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// InvoiceNumber Human-readable invoice number shown in Workshop, for example INV-1234.
	InvoiceNumber *string `json:"invoice_number,omitempty"`

	// JobId Public job id when this invoice bills a job, for example job_....
	JobId *string `json:"job_id,omitempty"`

	// LastSentAt UTC timestamp when the invoice was last sent to the customer, when available.
	LastSentAt *time.Time `json:"last_sent_at,omitempty"`

	// LineItems Billable line items on the invoice (internal `InvoiceItem` rows).
	LineItems *[]InvoiceItem `json:"line_items,omitempty"`

	// Object Resource object type. Always invoice.
	Object *InvoiceObject `json:"object,omitempty"`

	// Origin How the invoice was created. Allowed values: `job`, `sale`, or `ad_hoc`.
	Origin *InvoiceOrigin `json:"origin,omitempty"`

	// OutstandingAmount Amount still outstanding on the invoice.
	OutstandingAmount *float64 `json:"outstanding_amount,omitempty"`

	// PaidAmount Amount already paid against the invoice.
	PaidAmount *float64 `json:"paid_amount,omitempty"`

	// PaidAt UTC timestamp when the invoice became fully paid, when available.
	PaidAt *time.Time `json:"paid_at,omitempty"`

	// PaymentLink Customer payment link when configured.
	PaymentLink *string `json:"payment_link,omitempty"`

	// RevenueBreakdown Revenue category totals for a public invoice.
	RevenueBreakdown *InvoiceRevenueBreakdown `json:"revenue_breakdown,omitempty"`

	// Status Invoice lifecycle status. Allowed values: `draft`, `pending`, `paid`, or `cancelled`.
	Status *InvoiceStatus `json:"status,omitempty"`

	// Tax Structured tax totals for a public invoice.
	Tax *InvoiceTaxBreakdown `json:"tax,omitempty"`

	// Total Invoice total after discounts, in currency units.
	Total *float64 `json:"total,omitempty"`

	// UpdatedAt UTC timestamp when the invoice was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Invoice Public invoice for a job or standalone sale (Workshop costs).

type InvoiceDiscountType added in v0.1.1

type InvoiceDiscountType string

InvoiceDiscountType Discount model when configured. Allowed values: `percentage` or `set_amount`.

const (
	InvoiceDiscountTypePercentage InvoiceDiscountType = "percentage"
	InvoiceDiscountTypeSetAmount  InvoiceDiscountType = "set_amount"
)

Defines values for InvoiceDiscountType.

func (InvoiceDiscountType) Valid added in v0.1.1

func (e InvoiceDiscountType) Valid() bool

Valid indicates whether the value is a known member of the InvoiceDiscountType enum.

type InvoiceIntegrationSync added in v0.1.1

type InvoiceIntegrationSync struct {
	// AutoSyncEnabled True when automatic invoice sync is enabled for this invoice/integration link.
	AutoSyncEnabled *bool `json:"auto_sync_enabled,omitempty"`

	// BusinessId Public business id that owns the invoice.
	BusinessId *string `json:"business_id,omitempty"`

	// ExternalSystemId Provider-specific external order or invoice id, when known.
	ExternalSystemId *string `json:"external_system_id,omitempty"`

	// ExternalSystemReference Provider-specific external reference, when known.
	ExternalSystemReference *string `json:"external_system_reference,omitempty"`

	// HasSync True when the invoice has a sync link for the business's active integration.
	HasSync *bool `json:"has_sync,omitempty"`

	// InvoiceId Public invoice id.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// LastSyncedAt UTC timestamp of the last successful sync.
	LastSyncedAt *time.Time `json:"last_synced_at,omitempty"`

	// LatestEvent Public summary of an integration sync attempt.
	LatestEvent *IntegrationSyncEvent `json:"latest_event,omitempty"`

	// Object Resource object type. Always invoice_integration_sync.
	Object *InvoiceIntegrationSyncObject `json:"object,omitempty"`

	// Provider Connected provider name in snake_case.
	Provider *string `json:"provider,omitempty"`

	// Status Current invoice integration sync status.
	Status *InvoiceIntegrationSyncStatus `json:"status,omitempty"`

	// SyncId Public sync link id when a link exists.
	SyncId *string `json:"sync_id,omitempty"`
}

InvoiceIntegrationSync Public invoice sync state for the invoice's active business integration.

type InvoiceIntegrationSyncBatch added in v0.1.2

type InvoiceIntegrationSyncBatch struct {
	// Results Per-invoice results in the same order as the request.
	Results *[]InvoiceIntegrationSyncBatchItem `json:"results,omitempty"`
}

InvoiceIntegrationSyncBatch Batch response containing per-invoice integration sync status or errors.

type InvoiceIntegrationSyncBatchItem added in v0.1.2

type InvoiceIntegrationSyncBatchItem struct {
	// Error Public API error details. Codes are stable machine-readable values.
	Error *Error `json:"error,omitempty"`

	// InvoiceId Public invoice id from the request.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// Resource Public invoice sync state for the invoice's active business integration.
	Resource *InvoiceIntegrationSync `json:"resource,omitempty"`

	// Succeeded True when v1.Integrations.PublicApiInvoiceIntegrationSyncBatchItemResponse.Resource is populated.
	Succeeded *bool `json:"succeeded,omitempty"`
}

InvoiceIntegrationSyncBatchItem One invoice result from a batch integration sync status lookup.

type InvoiceIntegrationSyncBatchJSONRequestBody added in v0.1.2

type InvoiceIntegrationSyncBatchJSONRequestBody = InvoiceIntegrationSyncBatchRequest

InvoiceIntegrationSyncBatchJSONRequestBody defines body for InvoiceIntegrationSyncBatch for application/json ContentType.

type InvoiceIntegrationSyncBatchParams added in v0.1.2

type InvoiceIntegrationSyncBatchParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

InvoiceIntegrationSyncBatchParams defines parameters for InvoiceIntegrationSyncBatch.

type InvoiceIntegrationSyncBatchRequest added in v0.1.2

type InvoiceIntegrationSyncBatchRequest struct {
	// InvoiceIds Public invoice ids to resolve. Capped by maximum_batch_invoice_integration_sync_ids.
	InvoiceIds *[]string `json:"invoice_ids,omitempty"`
}

InvoiceIntegrationSyncBatchRequest Request body for batch invoice integration sync status lookups.

type InvoiceIntegrationSyncBatchResponse added in v0.1.2

type InvoiceIntegrationSyncBatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoiceIntegrationSyncBatch
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseInvoiceIntegrationSyncBatchResponse added in v0.1.2

func ParseInvoiceIntegrationSyncBatchResponse(rsp *http.Response) (*InvoiceIntegrationSyncBatchResponse, error)

ParseInvoiceIntegrationSyncBatchResponse parses an HTTP response from a InvoiceIntegrationSyncBatchWithResponse call

func (InvoiceIntegrationSyncBatchResponse) ContentType added in v0.1.2

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InvoiceIntegrationSyncBatchResponse) Status added in v0.1.2

Status returns HTTPResponse.Status

func (InvoiceIntegrationSyncBatchResponse) StatusCode added in v0.1.2

StatusCode returns HTTPResponse.StatusCode

type InvoiceIntegrationSyncEventsParams added in v0.1.1

type InvoiceIntegrationSyncEventsParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

InvoiceIntegrationSyncEventsParams defines parameters for InvoiceIntegrationSyncEvents.

type InvoiceIntegrationSyncEventsResponse added in v0.1.1

type InvoiceIntegrationSyncEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationSyncEventList
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseInvoiceIntegrationSyncEventsResponse added in v0.1.1

func ParseInvoiceIntegrationSyncEventsResponse(rsp *http.Response) (*InvoiceIntegrationSyncEventsResponse, error)

ParseInvoiceIntegrationSyncEventsResponse parses an HTTP response from a InvoiceIntegrationSyncEventsWithResponse call

func (InvoiceIntegrationSyncEventsResponse) ContentType added in v0.1.1

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InvoiceIntegrationSyncEventsResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (InvoiceIntegrationSyncEventsResponse) StatusCode added in v0.1.1

StatusCode returns HTTPResponse.StatusCode

type InvoiceIntegrationSyncObject added in v0.1.1

type InvoiceIntegrationSyncObject string

InvoiceIntegrationSyncObject Resource object type. Always invoice_integration_sync.

const (
	InvoiceIntegrationSyncObjectInvoiceIntegrationSync InvoiceIntegrationSyncObject = "invoice_integration_sync"
)

Defines values for InvoiceIntegrationSyncObject.

func (InvoiceIntegrationSyncObject) Valid added in v0.1.1

Valid indicates whether the value is a known member of the InvoiceIntegrationSyncObject enum.

type InvoiceIntegrationSyncParams added in v0.1.1

type InvoiceIntegrationSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

InvoiceIntegrationSyncParams defines parameters for InvoiceIntegrationSync.

type InvoiceIntegrationSyncResponse added in v0.1.1

type InvoiceIntegrationSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoiceIntegrationSync
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseInvoiceIntegrationSyncResponse added in v0.1.1

func ParseInvoiceIntegrationSyncResponse(rsp *http.Response) (*InvoiceIntegrationSyncResponse, error)

ParseInvoiceIntegrationSyncResponse parses an HTTP response from a InvoiceIntegrationSyncWithResponse call

func (InvoiceIntegrationSyncResponse) ContentType added in v0.1.1

func (r InvoiceIntegrationSyncResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InvoiceIntegrationSyncResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (InvoiceIntegrationSyncResponse) StatusCode added in v0.1.1

func (r InvoiceIntegrationSyncResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InvoiceIntegrationSyncStatus added in v0.1.1

type InvoiceIntegrationSyncStatus string

InvoiceIntegrationSyncStatus Current invoice integration sync status.

const (
	InvoiceIntegrationSyncStatusCompleted InvoiceIntegrationSyncStatus = "completed"
	InvoiceIntegrationSyncStatusDeleted   InvoiceIntegrationSyncStatus = "deleted"
	InvoiceIntegrationSyncStatusFailed    InvoiceIntegrationSyncStatus = "failed"
	InvoiceIntegrationSyncStatusNotSynced InvoiceIntegrationSyncStatus = "not_synced"
	InvoiceIntegrationSyncStatusSynced    InvoiceIntegrationSyncStatus = "synced"
	InvoiceIntegrationSyncStatusSyncing   InvoiceIntegrationSyncStatus = "syncing"
)

Defines values for InvoiceIntegrationSyncStatus.

func (InvoiceIntegrationSyncStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the InvoiceIntegrationSyncStatus enum.

type InvoiceItem added in v0.1.1

type InvoiceItem struct {
	// AssetId Public customer asset id when the row is tied to a serviced asset, for example asset_....
	AssetId *string `json:"asset_id,omitempty"`

	// Description Optional longer description for the item.
	Description *string `json:"description,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// InvoiceId Public invoice id (`inv_...`) that this row belongs to.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// LineType Line item type. Allowed values: `service`, `part`, or `custom`.
	LineType *InvoiceItemLineType `json:"line_type,omitempty"`

	// Name Display name of the billed service or part.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always invoice_item.
	Object *InvoiceItemObject `json:"object,omitempty"`

	// Order Display order of the item on the invoice.
	Order *int32 `json:"order,omitempty"`

	// Quantity Quantity billed on the item.
	Quantity *float64 `json:"quantity,omitempty"`

	// TaxAmount Tax amount allocated to this line after invoice-level discounts.
	TaxAmount *float64 `json:"tax_amount,omitempty"`

	// TaxRatePercent Effective tax rate percentage for this line, when the business is tax registered.
	TaxRatePercent *float64 `json:"tax_rate_percent,omitempty"`

	// Total Row total (unit_price × quantity) in the invoice currency.
	Total *float64 `json:"total,omitempty"`

	// TotalExcludingTax Line total excluding tax after invoice-level discount allocation.
	TotalExcludingTax *float64 `json:"total_excluding_tax,omitempty"`

	// TotalIncludingTax Line total including tax after invoice-level discount allocation.
	TotalIncludingTax *float64 `json:"total_including_tax,omitempty"`

	// UnitPrice Unit price in the invoice currency.
	UnitPrice *float64 `json:"unit_price,omitempty"`

	// UnitPriceExcludingTax Discount-adjusted unit price excluding tax, when quantity is available.
	UnitPriceExcludingTax *float64 `json:"unit_price_excluding_tax,omitempty"`

	// UnitPriceIncludingTax Discount-adjusted unit price including tax, when quantity is available.
	UnitPriceIncludingTax *float64 `json:"unit_price_including_tax,omitempty"`
}

InvoiceItem One billable item on a public invoice (internal `InvoiceItem`).

type InvoiceItemCreateRequest added in v0.1.1

type InvoiceItemCreateRequest struct {
	// AssetId Public customer asset id (`asset_...`) when the row is tied to a serviced bike or asset.
	AssetId *string `json:"asset_id,omitempty"`

	// Description Optional longer description for the item.
	Description *string `json:"description,omitempty"`

	// InvoiceId Public invoice id (`inv_...`) that the new item belongs to.
	InvoiceId string `json:"invoice_id"`

	// Name Display name. Required for custom items when `service_id` and `stock_variation_id` are omitted.
	Name *string `json:"name,omitempty"`

	// Order Display order of the item on the invoice.
	Order *int32 `json:"order,omitempty"`

	// Quantity Quantity billed on the item. Defaults to 1.
	Quantity *float64 `json:"quantity,omitempty"`

	// ServiceId Public catalogue service id (`svc_...`) for a service line.
	ServiceId *string `json:"service_id,omitempty"`

	// ServiceItemInstanceId Public service item instance id (`svitn_...`) when attaching a part to a checklist step.
	ServiceItemInstanceId *string `json:"service_item_instance_id,omitempty"`

	// StockVariationId Public stock SKU id (`stkv_...`) for a part line.
	StockVariationId *string `json:"stock_variation_id,omitempty"`

	// UnitPrice Unit price in the invoice currency.
	UnitPrice *float64 `json:"unit_price,omitempty"`
}

InvoiceItemCreateRequest Creates a line on an invoice. `invoice_id` is always required. Also provide exactly one of `service_id`, `stock_variation_id`, or `name` (custom line).

type InvoiceItemDeleted added in v0.1.1

type InvoiceItemDeleted struct {
	// Deleted Whether the item was deleted.
	Deleted *bool `json:"deleted,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Object Resource object type. Always invoice_item.
	Object *InvoiceItemDeletedObject `json:"object,omitempty"`
}

InvoiceItemDeleted Response returned after deleting an invoice item.

type InvoiceItemDeletedObject added in v0.1.1

type InvoiceItemDeletedObject string

InvoiceItemDeletedObject Resource object type. Always invoice_item.

const (
	InvoiceItemDeletedObjectInvoiceItem InvoiceItemDeletedObject = "invoice_item"
)

Defines values for InvoiceItemDeletedObject.

func (InvoiceItemDeletedObject) Valid added in v0.1.1

func (e InvoiceItemDeletedObject) Valid() bool

Valid indicates whether the value is a known member of the InvoiceItemDeletedObject enum.

type InvoiceItemLineType added in v0.1.1

type InvoiceItemLineType string

InvoiceItemLineType Line item type. Allowed values: `service`, `part`, or `custom`.

const (
	InvoiceItemLineTypeCustom  InvoiceItemLineType = "custom"
	InvoiceItemLineTypePart    InvoiceItemLineType = "part"
	InvoiceItemLineTypeService InvoiceItemLineType = "service"
)

Defines values for InvoiceItemLineType.

func (InvoiceItemLineType) Valid added in v0.1.1

func (e InvoiceItemLineType) Valid() bool

Valid indicates whether the value is a known member of the InvoiceItemLineType enum.

type InvoiceItemObject added in v0.1.1

type InvoiceItemObject string

InvoiceItemObject Resource object type. Always invoice_item.

const (
	InvoiceItemObjectInvoiceItem InvoiceItemObject = "invoice_item"
)

Defines values for InvoiceItemObject.

func (InvoiceItemObject) Valid added in v0.1.1

func (e InvoiceItemObject) Valid() bool

Valid indicates whether the value is a known member of the InvoiceItemObject enum.

type InvoiceItemUpdateRequest added in v0.1.1

type InvoiceItemUpdateRequest struct {
	// AssetId Public customer asset id (`asset_...`). Omit to leave unchanged.
	AssetId *string `json:"asset_id,omitempty"`

	// Description Optional longer description. Omit to leave unchanged.
	Description *string `json:"description,omitempty"`

	// Name Display name. Omit to leave unchanged.
	Name *string `json:"name,omitempty"`

	// Order Display order of the item on the invoice. Omit to leave unchanged.
	Order *int32 `json:"order,omitempty"`

	// Quantity Quantity billed on the item. Omit to leave unchanged.
	Quantity *float64 `json:"quantity,omitempty"`

	// UnitPrice Unit price in the invoice currency. Omit to leave unchanged.
	UnitPrice *float64 `json:"unit_price,omitempty"`
}

InvoiceItemUpdateRequest Request body for updating an invoice item through the public API.

type InvoiceObject added in v0.1.1

type InvoiceObject string

InvoiceObject Resource object type. Always invoice.

const (
	InvoiceObjectInvoice InvoiceObject = "invoice"
)

Defines values for InvoiceObject.

func (InvoiceObject) Valid added in v0.1.1

func (e InvoiceObject) Valid() bool

Valid indicates whether the value is a known member of the InvoiceObject enum.

type InvoiceOrigin added in v0.1.1

type InvoiceOrigin string

InvoiceOrigin How the invoice was created. Allowed values: `job`, `sale`, or `ad_hoc`.

const (
	InvoiceOriginAdHoc InvoiceOrigin = "ad_hoc"
	InvoiceOriginJob   InvoiceOrigin = "job"
	InvoiceOriginSale  InvoiceOrigin = "sale"
)

Defines values for InvoiceOrigin.

func (InvoiceOrigin) Valid added in v0.1.1

func (e InvoiceOrigin) Valid() bool

Valid indicates whether the value is a known member of the InvoiceOrigin enum.

type InvoicePaymentCreateRequest added in v0.1.1

type InvoicePaymentCreateRequest struct {
	// Amount Payment amount in invoice currency units.
	Amount *float64 `json:"amount,omitempty"`

	// CustomPaymentMethodLabel Optional custom label when `payment_method` is `other`.
	CustomPaymentMethodLabel *string `json:"custom_payment_method_label,omitempty"`

	// MarkInvoiceAsPaid Whether to mark the invoice as paid after recording the payment.
	MarkInvoiceAsPaid *bool `json:"mark_invoice_as_paid,omitempty"`

	// PaymentMethod Payment method recorded against the invoice. Allowed values: `cash`, `card`, `layaway`, `bacs`, or `other`.
	PaymentMethod InvoicePaymentCreateRequestPaymentMethod `json:"payment_method"`
}

InvoicePaymentCreateRequest Request body for recording a manual or external invoice payment.

type InvoicePaymentCreateRequestPaymentMethod added in v0.1.1

type InvoicePaymentCreateRequestPaymentMethod string

InvoicePaymentCreateRequestPaymentMethod Payment method recorded against the invoice. Allowed values: `cash`, `card`, `layaway`, `bacs`, or `other`.

const (
	InvoicePaymentCreateRequestPaymentMethodBacs    InvoicePaymentCreateRequestPaymentMethod = "bacs"
	InvoicePaymentCreateRequestPaymentMethodCard    InvoicePaymentCreateRequestPaymentMethod = "card"
	InvoicePaymentCreateRequestPaymentMethodCash    InvoicePaymentCreateRequestPaymentMethod = "cash"
	InvoicePaymentCreateRequestPaymentMethodLayaway InvoicePaymentCreateRequestPaymentMethod = "layaway"
	InvoicePaymentCreateRequestPaymentMethodOther   InvoicePaymentCreateRequestPaymentMethod = "other"
)

Defines values for InvoicePaymentCreateRequestPaymentMethod.

func (InvoicePaymentCreateRequestPaymentMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the InvoicePaymentCreateRequestPaymentMethod enum.

type InvoicePaymentLink struct {
	// InvoiceId Public invoice id.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// PaymentLink Customer payment link processed through Workshop and backed by the workshop's connected Stripe account.
	PaymentLink *string `json:"payment_link,omitempty"`
}

InvoicePaymentLink Workshop-hosted payment link generated for an invoice.

type InvoicePdf added in v0.1.1

type InvoicePdf struct {
	// ContentType Viewer content type. The URL ultimately serves an invoice PDF.
	ContentType *string `json:"content_type,omitempty"`

	// InvoiceId Public invoice id.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// InvoiceUrl Stable Workshop invoice viewer URL. Opening this URL renders or redirects to the latest invoice PDF.
	InvoiceUrl *string `json:"invoice_url,omitempty"`
}

InvoicePdf Stable invoice PDF viewer link.

type InvoiceRevenueBreakdown added in v0.2.0

type InvoiceRevenueBreakdown struct {
	// Collection Collection or on-site service revenue from the job collection area.
	Collection *float64 `json:"collection,omitempty"`

	// FreeText Revenue from custom/free-text line items.
	FreeText *float64 `json:"free_text,omitempty"`

	// Parts Revenue from approved part line items.
	Parts *float64 `json:"parts,omitempty"`

	// Service Revenue from catalogue service line items.
	Service *float64 `json:"service,omitempty"`
}

InvoiceRevenueBreakdown Revenue category totals for a public invoice.

type InvoiceSendRequest added in v0.1.1

type InvoiceSendRequest struct {
	// Body Optional message body to include in the invoice email.
	Body *string `json:"body,omitempty"`

	// GeneratePaymentLink Whether to create a Workshop-hosted customer payment link backed by the workshop's connected Stripe account before sending.
	GeneratePaymentLink *bool `json:"generate_payment_link,omitempty"`

	// IncludeJobReports Whether to attach job reports when available. Public v1 currently sends the invoice PDF only.
	IncludeJobReports *bool `json:"include_job_reports,omitempty"`

	// SendCopyToBusiness Whether to copy the workshop contact email.
	SendCopyToBusiness *bool `json:"send_copy_to_business,omitempty"`

	// Subject Email subject. When omitted, Workshop uses a default invoice subject.
	Subject *string `json:"subject,omitempty"`

	// To Recipient email address. When omitted, Workshop uses the invoice customer email.
	To *openapi_types.Email `json:"to,omitempty"`
}

InvoiceSendRequest Request body for sending an invoice to a customer.

type InvoiceStatus added in v0.1.1

type InvoiceStatus string

InvoiceStatus Invoice lifecycle status. Allowed values: `draft`, `pending`, `paid`, or `cancelled`.

const (
	InvoiceStatusCancelled InvoiceStatus = "cancelled"
	InvoiceStatusDraft     InvoiceStatus = "draft"
	InvoiceStatusPaid      InvoiceStatus = "paid"
	InvoiceStatusPending   InvoiceStatus = "pending"
)

Defines values for InvoiceStatus.

func (InvoiceStatus) Valid added in v0.1.1

func (e InvoiceStatus) Valid() bool

Valid indicates whether the value is a known member of the InvoiceStatus enum.

type InvoiceStatusChangeRequest added in v0.1.1

type InvoiceStatusChangeRequest struct {
	// Reason Optional reason or note for the status change.
	Reason *string `json:"reason,omitempty"`

	// Status Target invoice status. Allowed values: `draft`, `pending`, `paid`, or `cancelled`.
	Status InvoiceStatusChangeRequestStatus `json:"status"`
}

InvoiceStatusChangeRequest Request body for changing an invoice lifecycle status.

type InvoiceStatusChangeRequestStatus added in v0.1.1

type InvoiceStatusChangeRequestStatus string

InvoiceStatusChangeRequestStatus Target invoice status. Allowed values: `draft`, `pending`, `paid`, or `cancelled`.

const (
	InvoiceStatusChangeRequestStatusCancelled InvoiceStatusChangeRequestStatus = "cancelled"
	InvoiceStatusChangeRequestStatusDraft     InvoiceStatusChangeRequestStatus = "draft"
	InvoiceStatusChangeRequestStatusPaid      InvoiceStatusChangeRequestStatus = "paid"
	InvoiceStatusChangeRequestStatusPending   InvoiceStatusChangeRequestStatus = "pending"
)

Defines values for InvoiceStatusChangeRequestStatus.

func (InvoiceStatusChangeRequestStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the InvoiceStatusChangeRequestStatus enum.

type InvoiceTaxBreakdown added in v0.2.0

type InvoiceTaxBreakdown struct {
	// Amount Tax amount included in the invoice total.
	Amount *float64 `json:"amount,omitempty"`

	// Inclusivity Whether invoice prices are treated as inclusive or exclusive of tax.
	Inclusivity *string `json:"inclusivity,omitempty"`

	// Label Tax label configured by the business, for example VAT.
	Label *string `json:"label,omitempty"`

	// RatePercent Effective tax rate percentage, when the business is tax registered.
	RatePercent *float64 `json:"rate_percent,omitempty"`

	// TotalExcludingTax Invoice total excluding tax.
	TotalExcludingTax *float64 `json:"total_excluding_tax,omitempty"`

	// TotalIncludingTax Invoice total including tax.
	TotalIncludingTax *float64 `json:"total_including_tax,omitempty"`
}

InvoiceTaxBreakdown Structured tax totals for a public invoice.

type InvoiceUpdateRequest added in v0.1.1

type InvoiceUpdateRequest struct {
	// CustomerId Public customer id to bill.
	CustomerId *string `json:"customer_id,omitempty"`

	// DiscountType Discount type, such as percentage or fixed.
	DiscountType *InvoiceUpdateRequestDiscountType `json:"discount_type,omitempty"`

	// DiscountValue Discount value interpreted according to `discount_type`.
	DiscountValue *float64 `json:"discount_value,omitempty"`

	// DueAt UTC due date for payment.
	DueAt *time.Time `json:"due_at,omitempty"`

	// Notes Invoice notes shown to workshop staff and customer communications where applicable.
	Notes *string `json:"notes,omitempty"`
}

InvoiceUpdateRequest Patch body for low-side-effect invoice metadata. Omitted properties are ignored.

type InvoiceUpdateRequestDiscountType added in v0.1.1

type InvoiceUpdateRequestDiscountType string

InvoiceUpdateRequestDiscountType Discount type, such as percentage or fixed.

const (
	InvoiceUpdateRequestDiscountTypePercentage InvoiceUpdateRequestDiscountType = "percentage"
	InvoiceUpdateRequestDiscountTypeSetAmount  InvoiceUpdateRequestDiscountType = "set_amount"
)

Defines values for InvoiceUpdateRequestDiscountType.

func (InvoiceUpdateRequestDiscountType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the InvoiceUpdateRequestDiscountType enum.

type Job added in v0.1.1

type Job struct {
	// AcceptedStatus Job acceptance status. Allowed values: `pending`, `accepted`, `rejected`, or `cancelled`.
	AcceptedStatus *JobAcceptedStatus `json:"accepted_status,omitempty"`

	// AllDay Whether the job is treated as an all-day booking in scheduling views.
	AllDay *bool `json:"all_day,omitempty"`

	// Assets Assets being serviced on this job.
	Assets *[]JobAssetSummary `json:"assets,omitempty"`

	// AuthorisationStatus Customer authorisation state. Allowed values: `authorised` or `unauthorised`.
	AuthorisationStatus *JobAuthorisationStatus `json:"authorisation_status,omitempty"`

	// BillingType Billing/charge source for the job.
	BillingType *JobBillingType `json:"billing_type,omitempty"`

	// BusinessId Public business id that owns this job.
	BusinessId *string `json:"business_id,omitempty"`

	// CheckInNotes Check-in notes captured when the item is received for service.
	CheckInNotes *string `json:"check_in_notes,omitempty"`

	// CompletedAt UTC timestamp when the job was marked completed, when available.
	CompletedAt *time.Time `json:"completed_at,omitempty"`

	// CreatedAt UTC timestamp when the job was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CreationSource How the job entered Workshop. Allowed values: `manual`, `online_booking`, or `widget_booking`.
	CreationSource *JobCreationSource `json:"creation_source,omitempty"`

	// CustomerId Public customer id for the job, for example cus_....
	CustomerId *string `json:"customer_id,omitempty"`

	// CustomerPreferredContactMethod Customer preferred contact method copied onto the job.
	CustomerPreferredContactMethod *JobCustomerPreferredContactMethod `json:"customer_preferred_contact_method,omitempty"`

	// DiscountType Discount model when a job-level discount is configured. Allowed values: `percentage` or `set_amount`.
	DiscountType *JobDiscountType `json:"discount_type,omitempty"`

	// DiscountValue Discount value for the job, interpreted according to `discount_type`.
	DiscountValue *float64 `json:"discount_value,omitempty"`

	// ExternalJobId Partner or integration ticket/reference id supplied by the caller or upstream system.
	ExternalJobId *string `json:"external_job_id,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// IntegrationStoreId External POS or integration store id selected for this job, when applicable.
	IntegrationStoreId *string `json:"integration_store_id,omitempty"`

	// IntegrationStoreName Display name for `integration_store_id`, when applicable.
	IntegrationStoreName *string `json:"integration_store_name,omitempty"`

	// InvoiceLastSentAt UTC timestamp when the job invoice was last sent to the customer.
	InvoiceLastSentAt *time.Time `json:"invoice_last_sent_at,omitempty"`

	// IsLeasingJob Whether this job is leasing-related work.
	IsLeasingJob *bool `json:"is_leasing_job,omitempty"`

	// IsMotabilityJob Whether this job is motability-related work.
	IsMotabilityJob *bool `json:"is_motability_job,omitempty"`

	// IsWarrantyJob Whether this job is warranty-related work.
	IsWarrantyJob *bool `json:"is_warranty_job,omitempty"`

	// JobNumber Human-readable job number shown in workshop and customer communications.
	JobNumber *int64 `json:"job_number,omitempty"`

	// Notes Internal job notes visible to workshop staff.
	Notes *string `json:"notes,omitempty"`

	// Object Resource object type. Always job.
	Object *JobObject `json:"object,omitempty"`

	// Paid Whether the job has been fully paid.
	Paid *bool `json:"paid,omitempty"`

	// PartnerEmbedType Partner embed configuration when the job originated from a partner widget.
	PartnerEmbedType *JobPartnerEmbedType `json:"partner_embed_type,omitempty"`

	// PaymentLink Customer payment link for outstanding job invoices, when generated.
	PaymentLink *string `json:"payment_link,omitempty"`

	// PrePaymentRequired Whether pre-payment is required before work begins.
	PrePaymentRequired *bool `json:"pre_payment_required,omitempty"`

	// RejectionReason Reason the job was rejected, when `accepted_status` is `rejected`.
	RejectionReason *string `json:"rejection_reason,omitempty"`

	// RequiredByDate Date/time the job is required by, when set.
	RequiredByDate *time.Time `json:"required_by_date,omitempty"`

	// Schedule Scheduling and logistics on a public job response.
	Schedule *JobSchedule `json:"schedule,omitempty"`

	// TrackingId Legacy tracking reference generated when the job was created.
	TrackingId *string `json:"tracking_id,omitempty"`

	// UpdatedAt UTC timestamp when the job was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// WorkLines Work lines on this job, mapped from service bookings.
	WorkLines *[]JobWorkLine `json:"work_lines,omitempty"`
}

Job Public representation of a created or retrieved job.

type JobAcceptedStatus added in v0.1.1

type JobAcceptedStatus string

JobAcceptedStatus Job acceptance status. Allowed values: `pending`, `accepted`, `rejected`, or `cancelled`.

const (
	JobAcceptedStatusAccepted  JobAcceptedStatus = "accepted"
	JobAcceptedStatusCancelled JobAcceptedStatus = "cancelled"
	JobAcceptedStatusPending   JobAcceptedStatus = "pending"
	JobAcceptedStatusRejected  JobAcceptedStatus = "rejected"
)

Defines values for JobAcceptedStatus.

func (JobAcceptedStatus) Valid added in v0.1.1

func (e JobAcceptedStatus) Valid() bool

Valid indicates whether the value is a known member of the JobAcceptedStatus enum.

type JobAcceptedStatusChangeRequest added in v0.1.1

type JobAcceptedStatusChangeRequest struct {
	// Notifications Notification options for accepted, rejected, and cancelled job status changes.
	Notifications *AcceptedStatusChangeNotifications `json:"notifications,omitempty"`

	// Reason Optional reason for rejected or cancelled status changes.
	Reason *string `json:"reason,omitempty"`

	// Status New job accepted status. Allowed values: `accepted`, `rejected`, or `cancelled`.
	Status JobAcceptedStatusChangeRequestStatus `json:"status"`
}

JobAcceptedStatusChangeRequest Request body for accepting, rejecting, or cancelling a job.

type JobAcceptedStatusChangeRequestStatus added in v0.1.1

type JobAcceptedStatusChangeRequestStatus string

JobAcceptedStatusChangeRequestStatus New job accepted status. Allowed values: `accepted`, `rejected`, or `cancelled`.

const (
	JobAcceptedStatusChangeRequestStatusAccepted  JobAcceptedStatusChangeRequestStatus = "accepted"
	JobAcceptedStatusChangeRequestStatusCancelled JobAcceptedStatusChangeRequestStatus = "cancelled"
	JobAcceptedStatusChangeRequestStatusRejected  JobAcceptedStatusChangeRequestStatus = "rejected"
)

Defines values for JobAcceptedStatusChangeRequestStatus.

func (JobAcceptedStatusChangeRequestStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobAcceptedStatusChangeRequestStatus enum.

type JobAddress added in v0.1.1

type JobAddress struct {
	// Country Country label stored on the job address. May be a display name or code depending on how the address was captured. Use `Business.country` and `Customer.country` for normalized ISO alpha-3 codes.
	Country *JobAddressCountry `json:"country,omitempty"`

	// Latitude Latitude coordinate when known.
	Latitude *float64 `json:"latitude,omitempty"`

	// Line1 First line of the postal address.
	Line1 *string `json:"line1,omitempty"`

	// Line2 Second line of the postal address.
	Line2 *string `json:"line2,omitempty"`

	// Longitude Longitude coordinate when known.
	Longitude *float64 `json:"longitude,omitempty"`

	// Postcode Postal or ZIP code.
	Postcode *string `json:"postcode,omitempty"`

	// Region Region, county, state, or province when applicable.
	Region *string `json:"region,omitempty"`

	// Town Town or city.
	Town *string `json:"town,omitempty"`
}

JobAddress Public postal/geographic address on a job schedule.

type JobAddressCountry added in v0.1.1

type JobAddressCountry string

JobAddressCountry Country label stored on the job address. May be a display name or code depending on how the address was captured. Use `Business.country` and `Customer.country` for normalized ISO alpha-3 codes.

const (
	JobAddressCountryABW JobAddressCountry = "ABW"
	JobAddressCountryAFG JobAddressCountry = "AFG"
	JobAddressCountryAGO JobAddressCountry = "AGO"
	JobAddressCountryAIA JobAddressCountry = "AIA"
	JobAddressCountryALA JobAddressCountry = "ALA"
	JobAddressCountryALB JobAddressCountry = "ALB"
	JobAddressCountryAND JobAddressCountry = "AND"
	JobAddressCountryANT JobAddressCountry = "ANT"
	JobAddressCountryARE JobAddressCountry = "ARE"
	JobAddressCountryARG JobAddressCountry = "ARG"
	JobAddressCountryARM JobAddressCountry = "ARM"
	JobAddressCountryASM JobAddressCountry = "ASM"
	JobAddressCountryATA JobAddressCountry = "ATA"
	JobAddressCountryATF JobAddressCountry = "ATF"
	JobAddressCountryATG JobAddressCountry = "ATG"
	JobAddressCountryAUS JobAddressCountry = "AUS"
	JobAddressCountryAUT JobAddressCountry = "AUT"
	JobAddressCountryAZE JobAddressCountry = "AZE"
	JobAddressCountryBDI JobAddressCountry = "BDI"
	JobAddressCountryBEL JobAddressCountry = "BEL"
	JobAddressCountryBEN JobAddressCountry = "BEN"
	JobAddressCountryBES JobAddressCountry = "BES"
	JobAddressCountryBFA JobAddressCountry = "BFA"
	JobAddressCountryBGD JobAddressCountry = "BGD"
	JobAddressCountryBGR JobAddressCountry = "BGR"
	JobAddressCountryBHR JobAddressCountry = "BHR"
	JobAddressCountryBHS JobAddressCountry = "BHS"
	JobAddressCountryBIH JobAddressCountry = "BIH"
	JobAddressCountryBLM JobAddressCountry = "BLM"
	JobAddressCountryBLR JobAddressCountry = "BLR"
	JobAddressCountryBLZ JobAddressCountry = "BLZ"
	JobAddressCountryBMU JobAddressCountry = "BMU"
	JobAddressCountryBOL JobAddressCountry = "BOL"
	JobAddressCountryBRA JobAddressCountry = "BRA"
	JobAddressCountryBRB JobAddressCountry = "BRB"
	JobAddressCountryBRN JobAddressCountry = "BRN"
	JobAddressCountryBTN JobAddressCountry = "BTN"
	JobAddressCountryBVT JobAddressCountry = "BVT"
	JobAddressCountryBWA JobAddressCountry = "BWA"
	JobAddressCountryCAF JobAddressCountry = "CAF"
	JobAddressCountryCAN JobAddressCountry = "CAN"
	JobAddressCountryCCK JobAddressCountry = "CCK"
	JobAddressCountryCHE JobAddressCountry = "CHE"
	JobAddressCountryCHL JobAddressCountry = "CHL"
	JobAddressCountryCHN JobAddressCountry = "CHN"
	JobAddressCountryCIV JobAddressCountry = "CIV"
	JobAddressCountryCMR JobAddressCountry = "CMR"
	JobAddressCountryCOD JobAddressCountry = "COD"
	JobAddressCountryCOG JobAddressCountry = "COG"
	JobAddressCountryCOK JobAddressCountry = "COK"
	JobAddressCountryCOL JobAddressCountry = "COL"
	JobAddressCountryCOM JobAddressCountry = "COM"
	JobAddressCountryCPV JobAddressCountry = "CPV"
	JobAddressCountryCRI JobAddressCountry = "CRI"
	JobAddressCountryCUB JobAddressCountry = "CUB"
	JobAddressCountryCUW JobAddressCountry = "CUW"
	JobAddressCountryCXR JobAddressCountry = "CXR"
	JobAddressCountryCYM JobAddressCountry = "CYM"
	JobAddressCountryCYP JobAddressCountry = "CYP"
	JobAddressCountryCZE JobAddressCountry = "CZE"
	JobAddressCountryDEU JobAddressCountry = "DEU"
	JobAddressCountryDJI JobAddressCountry = "DJI"
	JobAddressCountryDMA JobAddressCountry = "DMA"
	JobAddressCountryDNK JobAddressCountry = "DNK"
	JobAddressCountryDOM JobAddressCountry = "DOM"
	JobAddressCountryDZA JobAddressCountry = "DZA"
	JobAddressCountryECU JobAddressCountry = "ECU"
	JobAddressCountryEGY JobAddressCountry = "EGY"
	JobAddressCountryERI JobAddressCountry = "ERI"
	JobAddressCountryESH JobAddressCountry = "ESH"
	JobAddressCountryESP JobAddressCountry = "ESP"
	JobAddressCountryEST JobAddressCountry = "EST"
	JobAddressCountryETH JobAddressCountry = "ETH"
	JobAddressCountryFIN JobAddressCountry = "FIN"
	JobAddressCountryFJI JobAddressCountry = "FJI"
	JobAddressCountryFLK JobAddressCountry = "FLK"
	JobAddressCountryFRA JobAddressCountry = "FRA"
	JobAddressCountryFRO JobAddressCountry = "FRO"
	JobAddressCountryFSM JobAddressCountry = "FSM"
	JobAddressCountryGAB JobAddressCountry = "GAB"
	JobAddressCountryGBR JobAddressCountry = "GBR"
	JobAddressCountryGEO JobAddressCountry = "GEO"
	JobAddressCountryGGY JobAddressCountry = "GGY"
	JobAddressCountryGHA JobAddressCountry = "GHA"
	JobAddressCountryGIB JobAddressCountry = "GIB"
	JobAddressCountryGIN JobAddressCountry = "GIN"
	JobAddressCountryGLP JobAddressCountry = "GLP"
	JobAddressCountryGMB JobAddressCountry = "GMB"
	JobAddressCountryGNB JobAddressCountry = "GNB"
	JobAddressCountryGNQ JobAddressCountry = "GNQ"
	JobAddressCountryGRC JobAddressCountry = "GRC"
	JobAddressCountryGRD JobAddressCountry = "GRD"
	JobAddressCountryGRL JobAddressCountry = "GRL"
	JobAddressCountryGTM JobAddressCountry = "GTM"
	JobAddressCountryGUF JobAddressCountry = "GUF"
	JobAddressCountryGUM JobAddressCountry = "GUM"
	JobAddressCountryGUY JobAddressCountry = "GUY"
	JobAddressCountryHKG JobAddressCountry = "HKG"
	JobAddressCountryHMD JobAddressCountry = "HMD"
	JobAddressCountryHND JobAddressCountry = "HND"
	JobAddressCountryHRV JobAddressCountry = "HRV"
	JobAddressCountryHTI JobAddressCountry = "HTI"
	JobAddressCountryHUN JobAddressCountry = "HUN"
	JobAddressCountryIDN JobAddressCountry = "IDN"
	JobAddressCountryIMN JobAddressCountry = "IMN"
	JobAddressCountryIND JobAddressCountry = "IND"
	JobAddressCountryIOT JobAddressCountry = "IOT"
	JobAddressCountryIRL JobAddressCountry = "IRL"
	JobAddressCountryIRN JobAddressCountry = "IRN"
	JobAddressCountryIRQ JobAddressCountry = "IRQ"
	JobAddressCountryISL JobAddressCountry = "ISL"
	JobAddressCountryISR JobAddressCountry = "ISR"
	JobAddressCountryITA JobAddressCountry = "ITA"
	JobAddressCountryJAM JobAddressCountry = "JAM"
	JobAddressCountryJEY JobAddressCountry = "JEY"
	JobAddressCountryJOR JobAddressCountry = "JOR"
	JobAddressCountryJPN JobAddressCountry = "JPN"
	JobAddressCountryKAZ JobAddressCountry = "KAZ"
	JobAddressCountryKEN JobAddressCountry = "KEN"
	JobAddressCountryKGZ JobAddressCountry = "KGZ"
	JobAddressCountryKHM JobAddressCountry = "KHM"
	JobAddressCountryKIR JobAddressCountry = "KIR"
	JobAddressCountryKNA JobAddressCountry = "KNA"
	JobAddressCountryKOR JobAddressCountry = "KOR"
	JobAddressCountryKWT JobAddressCountry = "KWT"
	JobAddressCountryLAO JobAddressCountry = "LAO"
	JobAddressCountryLBN JobAddressCountry = "LBN"
	JobAddressCountryLBR JobAddressCountry = "LBR"
	JobAddressCountryLBY JobAddressCountry = "LBY"
	JobAddressCountryLCA JobAddressCountry = "LCA"
	JobAddressCountryLIE JobAddressCountry = "LIE"
	JobAddressCountryLKA JobAddressCountry = "LKA"
	JobAddressCountryLSO JobAddressCountry = "LSO"
	JobAddressCountryLTU JobAddressCountry = "LTU"
	JobAddressCountryLUX JobAddressCountry = "LUX"
	JobAddressCountryLVA JobAddressCountry = "LVA"
	JobAddressCountryMAC JobAddressCountry = "MAC"
	JobAddressCountryMAF JobAddressCountry = "MAF"
	JobAddressCountryMAR JobAddressCountry = "MAR"
	JobAddressCountryMCO JobAddressCountry = "MCO"
	JobAddressCountryMDA JobAddressCountry = "MDA"
	JobAddressCountryMDG JobAddressCountry = "MDG"
	JobAddressCountryMDV JobAddressCountry = "MDV"
	JobAddressCountryMEX JobAddressCountry = "MEX"
	JobAddressCountryMHL JobAddressCountry = "MHL"
	JobAddressCountryMKD JobAddressCountry = "MKD"
	JobAddressCountryMLI JobAddressCountry = "MLI"
	JobAddressCountryMLT JobAddressCountry = "MLT"
	JobAddressCountryMMR JobAddressCountry = "MMR"
	JobAddressCountryMNE JobAddressCountry = "MNE"
	JobAddressCountryMNG JobAddressCountry = "MNG"
	JobAddressCountryMNP JobAddressCountry = "MNP"
	JobAddressCountryMOZ JobAddressCountry = "MOZ"
	JobAddressCountryMRT JobAddressCountry = "MRT"
	JobAddressCountryMSR JobAddressCountry = "MSR"
	JobAddressCountryMTQ JobAddressCountry = "MTQ"
	JobAddressCountryMUS JobAddressCountry = "MUS"
	JobAddressCountryMWI JobAddressCountry = "MWI"
	JobAddressCountryMYS JobAddressCountry = "MYS"
	JobAddressCountryMYT JobAddressCountry = "MYT"
	JobAddressCountryNAM JobAddressCountry = "NAM"
	JobAddressCountryNCL JobAddressCountry = "NCL"
	JobAddressCountryNER JobAddressCountry = "NER"
	JobAddressCountryNFK JobAddressCountry = "NFK"
	JobAddressCountryNGA JobAddressCountry = "NGA"
	JobAddressCountryNIC JobAddressCountry = "NIC"
	JobAddressCountryNIU JobAddressCountry = "NIU"
	JobAddressCountryNLD JobAddressCountry = "NLD"
	JobAddressCountryNOR JobAddressCountry = "NOR"
	JobAddressCountryNPL JobAddressCountry = "NPL"
	JobAddressCountryNRU JobAddressCountry = "NRU"
	JobAddressCountryNZL JobAddressCountry = "NZL"
	JobAddressCountryOMN JobAddressCountry = "OMN"
	JobAddressCountryPAK JobAddressCountry = "PAK"
	JobAddressCountryPAN JobAddressCountry = "PAN"
	JobAddressCountryPCN JobAddressCountry = "PCN"
	JobAddressCountryPER JobAddressCountry = "PER"
	JobAddressCountryPHL JobAddressCountry = "PHL"
	JobAddressCountryPLW JobAddressCountry = "PLW"
	JobAddressCountryPNG JobAddressCountry = "PNG"
	JobAddressCountryPOL JobAddressCountry = "POL"
	JobAddressCountryPRI JobAddressCountry = "PRI"
	JobAddressCountryPRK JobAddressCountry = "PRK"
	JobAddressCountryPRT JobAddressCountry = "PRT"
	JobAddressCountryPRY JobAddressCountry = "PRY"
	JobAddressCountryPSE JobAddressCountry = "PSE"
	JobAddressCountryPYF JobAddressCountry = "PYF"
	JobAddressCountryQAT JobAddressCountry = "QAT"
	JobAddressCountryREU JobAddressCountry = "REU"
	JobAddressCountryROU JobAddressCountry = "ROU"
	JobAddressCountryRUS JobAddressCountry = "RUS"
	JobAddressCountryRWA JobAddressCountry = "RWA"
	JobAddressCountrySAU JobAddressCountry = "SAU"
	JobAddressCountrySCG JobAddressCountry = "SCG"
	JobAddressCountrySDN JobAddressCountry = "SDN"
	JobAddressCountrySEN JobAddressCountry = "SEN"
	JobAddressCountrySGP JobAddressCountry = "SGP"
	JobAddressCountrySGS JobAddressCountry = "SGS"
	JobAddressCountrySHN JobAddressCountry = "SHN"
	JobAddressCountrySJM JobAddressCountry = "SJM"
	JobAddressCountrySLB JobAddressCountry = "SLB"
	JobAddressCountrySLE JobAddressCountry = "SLE"
	JobAddressCountrySLV JobAddressCountry = "SLV"
	JobAddressCountrySMR JobAddressCountry = "SMR"
	JobAddressCountrySOM JobAddressCountry = "SOM"
	JobAddressCountrySPM JobAddressCountry = "SPM"
	JobAddressCountrySRB JobAddressCountry = "SRB"
	JobAddressCountrySSD JobAddressCountry = "SSD"
	JobAddressCountrySTP JobAddressCountry = "STP"
	JobAddressCountrySUR JobAddressCountry = "SUR"
	JobAddressCountrySVK JobAddressCountry = "SVK"
	JobAddressCountrySVN JobAddressCountry = "SVN"
	JobAddressCountrySWE JobAddressCountry = "SWE"
	JobAddressCountrySWZ JobAddressCountry = "SWZ"
	JobAddressCountrySXM JobAddressCountry = "SXM"
	JobAddressCountrySYC JobAddressCountry = "SYC"
	JobAddressCountrySYR JobAddressCountry = "SYR"
	JobAddressCountryTCA JobAddressCountry = "TCA"
	JobAddressCountryTCD JobAddressCountry = "TCD"
	JobAddressCountryTGO JobAddressCountry = "TGO"
	JobAddressCountryTHA JobAddressCountry = "THA"
	JobAddressCountryTJK JobAddressCountry = "TJK"
	JobAddressCountryTKL JobAddressCountry = "TKL"
	JobAddressCountryTKM JobAddressCountry = "TKM"
	JobAddressCountryTLS JobAddressCountry = "TLS"
	JobAddressCountryTON JobAddressCountry = "TON"
	JobAddressCountryTTO JobAddressCountry = "TTO"
	JobAddressCountryTUN JobAddressCountry = "TUN"
	JobAddressCountryTUR JobAddressCountry = "TUR"
	JobAddressCountryTUV JobAddressCountry = "TUV"
	JobAddressCountryTWN JobAddressCountry = "TWN"
	JobAddressCountryTZA JobAddressCountry = "TZA"
	JobAddressCountryUGA JobAddressCountry = "UGA"
	JobAddressCountryUKR JobAddressCountry = "UKR"
	JobAddressCountryUMI JobAddressCountry = "UMI"
	JobAddressCountryURY JobAddressCountry = "URY"
	JobAddressCountryUSA JobAddressCountry = "USA"
	JobAddressCountryUZB JobAddressCountry = "UZB"
	JobAddressCountryVAT JobAddressCountry = "VAT"
	JobAddressCountryVCT JobAddressCountry = "VCT"
	JobAddressCountryVEN JobAddressCountry = "VEN"
	JobAddressCountryVGB JobAddressCountry = "VGB"
	JobAddressCountryVIR JobAddressCountry = "VIR"
	JobAddressCountryVNM JobAddressCountry = "VNM"
	JobAddressCountryVUT JobAddressCountry = "VUT"
	JobAddressCountryWLF JobAddressCountry = "WLF"
	JobAddressCountryWSM JobAddressCountry = "WSM"
	JobAddressCountryXKX JobAddressCountry = "XKX"
	JobAddressCountryYEM JobAddressCountry = "YEM"
	JobAddressCountryZAF JobAddressCountry = "ZAF"
	JobAddressCountryZMB JobAddressCountry = "ZMB"
	JobAddressCountryZWE JobAddressCountry = "ZWE"
)

Defines values for JobAddressCountry.

func (JobAddressCountry) Valid added in v0.1.1

func (e JobAddressCountry) Valid() bool

Valid indicates whether the value is a known member of the JobAddressCountry enum.

type JobAddressInput

type JobAddressInput struct {
	// Country Country label for the job address. Stored as provided and not validated against ISO alpha-3 on write.
	Country *JobAddressInputCountry `json:"country,omitempty"`

	// Latitude Latitude coordinate when the caller has geocoded the address.
	Latitude *float64 `json:"latitude,omitempty"`

	// Line1 First line of the postal address.
	Line1 *string `json:"line1,omitempty"`

	// Line2 Second line of the postal address.
	Line2 *string `json:"line2,omitempty"`

	// Longitude Longitude coordinate when the caller has geocoded the address.
	Longitude *float64 `json:"longitude,omitempty"`

	// Postcode Postal or ZIP code.
	Postcode *string `json:"postcode,omitempty"`

	// Region Region, county, state, or province when applicable.
	Region *string `json:"region,omitempty"`

	// Town Town or city.
	Town *string `json:"town,omitempty"`
}

JobAddressInput Public postal/geographic address input.

type JobAddressInputCountry added in v0.1.1

type JobAddressInputCountry string

JobAddressInputCountry Country label for the job address. Stored as provided and not validated against ISO alpha-3 on write.

const (
	ABW JobAddressInputCountry = "ABW"
	AFG JobAddressInputCountry = "AFG"
	AGO JobAddressInputCountry = "AGO"
	AIA JobAddressInputCountry = "AIA"
	ALA JobAddressInputCountry = "ALA"
	ALB JobAddressInputCountry = "ALB"
	AND JobAddressInputCountry = "AND"
	ANT JobAddressInputCountry = "ANT"
	ARE JobAddressInputCountry = "ARE"
	ARG JobAddressInputCountry = "ARG"
	ARM JobAddressInputCountry = "ARM"
	ASM JobAddressInputCountry = "ASM"
	ATA JobAddressInputCountry = "ATA"
	ATF JobAddressInputCountry = "ATF"
	ATG JobAddressInputCountry = "ATG"
	AUS JobAddressInputCountry = "AUS"
	AUT JobAddressInputCountry = "AUT"
	AZE JobAddressInputCountry = "AZE"
	BDI JobAddressInputCountry = "BDI"
	BEL JobAddressInputCountry = "BEL"
	BEN JobAddressInputCountry = "BEN"
	BES JobAddressInputCountry = "BES"
	BFA JobAddressInputCountry = "BFA"
	BGD JobAddressInputCountry = "BGD"
	BGR JobAddressInputCountry = "BGR"
	BHR JobAddressInputCountry = "BHR"
	BHS JobAddressInputCountry = "BHS"
	BIH JobAddressInputCountry = "BIH"
	BLM JobAddressInputCountry = "BLM"
	BLR JobAddressInputCountry = "BLR"
	BLZ JobAddressInputCountry = "BLZ"
	BMU JobAddressInputCountry = "BMU"
	BOL JobAddressInputCountry = "BOL"
	BRA JobAddressInputCountry = "BRA"
	BRB JobAddressInputCountry = "BRB"
	BRN JobAddressInputCountry = "BRN"
	BTN JobAddressInputCountry = "BTN"
	BVT JobAddressInputCountry = "BVT"
	BWA JobAddressInputCountry = "BWA"
	CAF JobAddressInputCountry = "CAF"
	CAN JobAddressInputCountry = "CAN"
	CCK JobAddressInputCountry = "CCK"
	CHE JobAddressInputCountry = "CHE"
	CHL JobAddressInputCountry = "CHL"
	CHN JobAddressInputCountry = "CHN"
	CIV JobAddressInputCountry = "CIV"
	CMR JobAddressInputCountry = "CMR"
	COD JobAddressInputCountry = "COD"
	COG JobAddressInputCountry = "COG"
	COK JobAddressInputCountry = "COK"
	COL JobAddressInputCountry = "COL"
	COM JobAddressInputCountry = "COM"
	CPV JobAddressInputCountry = "CPV"
	CRI JobAddressInputCountry = "CRI"
	CUB JobAddressInputCountry = "CUB"
	CUW JobAddressInputCountry = "CUW"
	CXR JobAddressInputCountry = "CXR"
	CYM JobAddressInputCountry = "CYM"
	CYP JobAddressInputCountry = "CYP"
	CZE JobAddressInputCountry = "CZE"
	DEU JobAddressInputCountry = "DEU"
	DJI JobAddressInputCountry = "DJI"
	DMA JobAddressInputCountry = "DMA"
	DNK JobAddressInputCountry = "DNK"
	DOM JobAddressInputCountry = "DOM"
	DZA JobAddressInputCountry = "DZA"
	ECU JobAddressInputCountry = "ECU"
	EGY JobAddressInputCountry = "EGY"
	ERI JobAddressInputCountry = "ERI"
	ESH JobAddressInputCountry = "ESH"
	ESP JobAddressInputCountry = "ESP"
	EST JobAddressInputCountry = "EST"
	ETH JobAddressInputCountry = "ETH"
	FIN JobAddressInputCountry = "FIN"
	FJI JobAddressInputCountry = "FJI"
	FLK JobAddressInputCountry = "FLK"
	FRA JobAddressInputCountry = "FRA"
	FRO JobAddressInputCountry = "FRO"
	FSM JobAddressInputCountry = "FSM"
	GAB JobAddressInputCountry = "GAB"
	GBR JobAddressInputCountry = "GBR"
	GEO JobAddressInputCountry = "GEO"
	GGY JobAddressInputCountry = "GGY"
	GHA JobAddressInputCountry = "GHA"
	GIB JobAddressInputCountry = "GIB"
	GIN JobAddressInputCountry = "GIN"
	GLP JobAddressInputCountry = "GLP"
	GMB JobAddressInputCountry = "GMB"
	GNB JobAddressInputCountry = "GNB"
	GNQ JobAddressInputCountry = "GNQ"
	GRC JobAddressInputCountry = "GRC"
	GRD JobAddressInputCountry = "GRD"
	GRL JobAddressInputCountry = "GRL"
	GTM JobAddressInputCountry = "GTM"
	GUF JobAddressInputCountry = "GUF"
	GUM JobAddressInputCountry = "GUM"
	GUY JobAddressInputCountry = "GUY"
	HKG JobAddressInputCountry = "HKG"
	HMD JobAddressInputCountry = "HMD"
	HND JobAddressInputCountry = "HND"
	HRV JobAddressInputCountry = "HRV"
	HTI JobAddressInputCountry = "HTI"
	HUN JobAddressInputCountry = "HUN"
	IDN JobAddressInputCountry = "IDN"
	IMN JobAddressInputCountry = "IMN"
	IND JobAddressInputCountry = "IND"
	IOT JobAddressInputCountry = "IOT"
	IRL JobAddressInputCountry = "IRL"
	IRN JobAddressInputCountry = "IRN"
	IRQ JobAddressInputCountry = "IRQ"
	ISL JobAddressInputCountry = "ISL"
	ISR JobAddressInputCountry = "ISR"
	ITA JobAddressInputCountry = "ITA"
	JAM JobAddressInputCountry = "JAM"
	JEY JobAddressInputCountry = "JEY"
	JOR JobAddressInputCountry = "JOR"
	JPN JobAddressInputCountry = "JPN"
	KAZ JobAddressInputCountry = "KAZ"
	KEN JobAddressInputCountry = "KEN"
	KGZ JobAddressInputCountry = "KGZ"
	KHM JobAddressInputCountry = "KHM"
	KIR JobAddressInputCountry = "KIR"
	KNA JobAddressInputCountry = "KNA"
	KOR JobAddressInputCountry = "KOR"
	KWT JobAddressInputCountry = "KWT"
	LAO JobAddressInputCountry = "LAO"
	LBN JobAddressInputCountry = "LBN"
	LBR JobAddressInputCountry = "LBR"
	LBY JobAddressInputCountry = "LBY"
	LCA JobAddressInputCountry = "LCA"
	LIE JobAddressInputCountry = "LIE"
	LKA JobAddressInputCountry = "LKA"
	LSO JobAddressInputCountry = "LSO"
	LTU JobAddressInputCountry = "LTU"
	LUX JobAddressInputCountry = "LUX"
	LVA JobAddressInputCountry = "LVA"
	MAC JobAddressInputCountry = "MAC"
	MAF JobAddressInputCountry = "MAF"
	MAR JobAddressInputCountry = "MAR"
	MCO JobAddressInputCountry = "MCO"
	MDA JobAddressInputCountry = "MDA"
	MDG JobAddressInputCountry = "MDG"
	MDV JobAddressInputCountry = "MDV"
	MEX JobAddressInputCountry = "MEX"
	MHL JobAddressInputCountry = "MHL"
	MKD JobAddressInputCountry = "MKD"
	MLI JobAddressInputCountry = "MLI"
	MLT JobAddressInputCountry = "MLT"
	MMR JobAddressInputCountry = "MMR"
	MNE JobAddressInputCountry = "MNE"
	MNG JobAddressInputCountry = "MNG"
	MNP JobAddressInputCountry = "MNP"
	MOZ JobAddressInputCountry = "MOZ"
	MRT JobAddressInputCountry = "MRT"
	MSR JobAddressInputCountry = "MSR"
	MTQ JobAddressInputCountry = "MTQ"
	MUS JobAddressInputCountry = "MUS"
	MWI JobAddressInputCountry = "MWI"
	MYS JobAddressInputCountry = "MYS"
	MYT JobAddressInputCountry = "MYT"
	NAM JobAddressInputCountry = "NAM"
	NCL JobAddressInputCountry = "NCL"
	NER JobAddressInputCountry = "NER"
	NFK JobAddressInputCountry = "NFK"
	NGA JobAddressInputCountry = "NGA"
	NIC JobAddressInputCountry = "NIC"
	NIU JobAddressInputCountry = "NIU"
	NLD JobAddressInputCountry = "NLD"
	NOR JobAddressInputCountry = "NOR"
	NPL JobAddressInputCountry = "NPL"
	NRU JobAddressInputCountry = "NRU"
	NZL JobAddressInputCountry = "NZL"
	OMN JobAddressInputCountry = "OMN"
	PAK JobAddressInputCountry = "PAK"
	PAN JobAddressInputCountry = "PAN"
	PCN JobAddressInputCountry = "PCN"
	PER JobAddressInputCountry = "PER"
	PHL JobAddressInputCountry = "PHL"
	PLW JobAddressInputCountry = "PLW"
	PNG JobAddressInputCountry = "PNG"
	POL JobAddressInputCountry = "POL"
	PRI JobAddressInputCountry = "PRI"
	PRK JobAddressInputCountry = "PRK"
	PRT JobAddressInputCountry = "PRT"
	PRY JobAddressInputCountry = "PRY"
	PSE JobAddressInputCountry = "PSE"
	PYF JobAddressInputCountry = "PYF"
	QAT JobAddressInputCountry = "QAT"
	REU JobAddressInputCountry = "REU"
	ROU JobAddressInputCountry = "ROU"
	RUS JobAddressInputCountry = "RUS"
	RWA JobAddressInputCountry = "RWA"
	SAU JobAddressInputCountry = "SAU"
	SCG JobAddressInputCountry = "SCG"
	SDN JobAddressInputCountry = "SDN"
	SEN JobAddressInputCountry = "SEN"
	SGP JobAddressInputCountry = "SGP"
	SGS JobAddressInputCountry = "SGS"
	SHN JobAddressInputCountry = "SHN"
	SJM JobAddressInputCountry = "SJM"
	SLB JobAddressInputCountry = "SLB"
	SLE JobAddressInputCountry = "SLE"
	SLV JobAddressInputCountry = "SLV"
	SMR JobAddressInputCountry = "SMR"
	SOM JobAddressInputCountry = "SOM"
	SPM JobAddressInputCountry = "SPM"
	SRB JobAddressInputCountry = "SRB"
	SSD JobAddressInputCountry = "SSD"
	STP JobAddressInputCountry = "STP"
	SUR JobAddressInputCountry = "SUR"
	SVK JobAddressInputCountry = "SVK"
	SVN JobAddressInputCountry = "SVN"
	SWE JobAddressInputCountry = "SWE"
	SWZ JobAddressInputCountry = "SWZ"
	SXM JobAddressInputCountry = "SXM"
	SYC JobAddressInputCountry = "SYC"
	SYR JobAddressInputCountry = "SYR"
	TCA JobAddressInputCountry = "TCA"
	TCD JobAddressInputCountry = "TCD"
	TGO JobAddressInputCountry = "TGO"
	THA JobAddressInputCountry = "THA"
	TJK JobAddressInputCountry = "TJK"
	TKL JobAddressInputCountry = "TKL"
	TKM JobAddressInputCountry = "TKM"
	TLS JobAddressInputCountry = "TLS"
	TON JobAddressInputCountry = "TON"
	TTO JobAddressInputCountry = "TTO"
	TUN JobAddressInputCountry = "TUN"
	TUR JobAddressInputCountry = "TUR"
	TUV JobAddressInputCountry = "TUV"
	TWN JobAddressInputCountry = "TWN"
	TZA JobAddressInputCountry = "TZA"
	UGA JobAddressInputCountry = "UGA"
	UKR JobAddressInputCountry = "UKR"
	UMI JobAddressInputCountry = "UMI"
	URY JobAddressInputCountry = "URY"
	USA JobAddressInputCountry = "USA"
	UZB JobAddressInputCountry = "UZB"
	VAT JobAddressInputCountry = "VAT"
	VCT JobAddressInputCountry = "VCT"
	VEN JobAddressInputCountry = "VEN"
	VGB JobAddressInputCountry = "VGB"
	VIR JobAddressInputCountry = "VIR"
	VNM JobAddressInputCountry = "VNM"
	VUT JobAddressInputCountry = "VUT"
	WLF JobAddressInputCountry = "WLF"
	WSM JobAddressInputCountry = "WSM"
	XKX JobAddressInputCountry = "XKX"
	YEM JobAddressInputCountry = "YEM"
	ZAF JobAddressInputCountry = "ZAF"
	ZMB JobAddressInputCountry = "ZMB"
	ZWE JobAddressInputCountry = "ZWE"
)

Defines values for JobAddressInputCountry.

func (JobAddressInputCountry) Valid added in v0.1.1

func (e JobAddressInputCountry) Valid() bool

Valid indicates whether the value is a known member of the JobAddressInputCountry enum.

type JobAssetInput

type JobAssetInput struct {
	// BikeType Bike category (bikes only). Snake_case enum (for example `road_bike`). Defaults to `generic_bike` when omitted on inline create.
	BikeType *string `json:"bike_type,omitempty"`

	// ClientReference Request-local reference used by work lines when the asset is created inline in this request. Required when `id` is omitted. Must be unique within the request.
	ClientReference *string `json:"client_reference,omitempty"`

	// Id Existing public asset id on the customer (`asset_...` from the customer record). Required when `client_reference` is omitted.
	Id *string `json:"id,omitempty"`

	// Make Asset make or manufacturer when creating the asset inline.
	Make *string `json:"make,omitempty"`

	// Model Asset model when creating the asset inline.
	Model *string `json:"model,omitempty"`

	// Name Asset display name when creating the asset inline.
	Name *string `json:"name,omitempty"`

	// SerialNumber Asset serial number when creating the asset inline.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset model year when creating the asset inline.
	Year *int32 `json:"year,omitempty"`
}

JobAssetInput One customer asset to include on the job. Supply an existing `id` (`asset_...`) or a request-local `client_reference` for inline asset creation.

type JobAssetSummary added in v0.1.1

type JobAssetSummary struct {
	// BikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).
	BikeType *JobAssetSummaryBikeType `json:"bike_type,omitempty"`

	// CustomerId Public customer id that owns this asset, when known.
	CustomerId *string `json:"customer_id,omitempty"`

	// Description Human-readable asset description or formatted label.
	Description *string `json:"description,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// LastServicedDate Calendar date when the asset was last serviced, when known.
	LastServicedDate *openapi_types.Date `json:"last_serviced_date,omitempty"`

	// Make Asset make or manufacturer.
	Make *string `json:"make,omitempty"`

	// Model Asset model.
	Model *string `json:"model,omitempty"`

	// Name Asset display name.
	Name *string `json:"name,omitempty"`

	// SerialNumber Asset serial number, when known.
	SerialNumber *string `json:"serial_number,omitempty"`

	// Year Asset year, when known.
	Year *int32 `json:"year,omitempty"`
}

JobAssetSummary Public customer asset summary embedded in job responses.

type JobAssetSummaryBikeType added in v0.1.1

type JobAssetSummaryBikeType string

JobAssetSummaryBikeType Bike category (bikes only — public assets are bikes today). Snake_case enum (for example `road_bike`, `generic_bike`).

const (
	JobAssetSummaryBikeTypeBmx           JobAssetSummaryBikeType = "bmx"
	JobAssetSummaryBikeTypeECargo        JobAssetSummaryBikeType = "e_cargo"
	JobAssetSummaryBikeTypeEGravel       JobAssetSummaryBikeType = "e_gravel"
	JobAssetSummaryBikeTypeERoad         JobAssetSummaryBikeType = "e_road"
	JobAssetSummaryBikeTypeElectricBike  JobAssetSummaryBikeType = "electric_bike"
	JobAssetSummaryBikeTypeGenericBike   JobAssetSummaryBikeType = "generic_bike"
	JobAssetSummaryBikeTypeGravel        JobAssetSummaryBikeType = "gravel"
	JobAssetSummaryBikeTypeHybrid        JobAssetSummaryBikeType = "hybrid"
	JobAssetSummaryBikeTypeKidsBike      JobAssetSummaryBikeType = "kids_bike"
	JobAssetSummaryBikeTypeMountainBike  JobAssetSummaryBikeType = "mountain_bike"
	JobAssetSummaryBikeTypeOther         JobAssetSummaryBikeType = "other"
	JobAssetSummaryBikeTypeRoadBike      JobAssetSummaryBikeType = "road_bike"
	JobAssetSummaryBikeTypeSingleSpeed   JobAssetSummaryBikeType = "single_speed"
	JobAssetSummaryBikeTypeStaticBike    JobAssetSummaryBikeType = "static_bike"
	JobAssetSummaryBikeTypeTriathlonBike JobAssetSummaryBikeType = "triathlon_bike"
)

Defines values for JobAssetSummaryBikeType.

func (JobAssetSummaryBikeType) Valid added in v0.1.1

func (e JobAssetSummaryBikeType) Valid() bool

Valid indicates whether the value is a known member of the JobAssetSummaryBikeType enum.

type JobAuthorisationStatus added in v0.1.1

type JobAuthorisationStatus string

JobAuthorisationStatus Customer authorisation state. Allowed values: `authorised` or `unauthorised`.

const (
	Authorised   JobAuthorisationStatus = "authorised"
	Unauthorised JobAuthorisationStatus = "unauthorised"
)

Defines values for JobAuthorisationStatus.

func (JobAuthorisationStatus) Valid added in v0.1.1

func (e JobAuthorisationStatus) Valid() bool

Valid indicates whether the value is a known member of the JobAuthorisationStatus enum.

type JobBillingType added in v0.1.1

type JobBillingType string

JobBillingType Billing/charge source for the job.

const (
	JobBillingTypeCod                   JobBillingType = "cod"
	JobBillingTypeDealerPlan            JobBillingType = "dealer_plan"
	JobBillingTypeDealerWarranty        JobBillingType = "dealer_warranty"
	JobBillingTypeDepositMonthlyTerms   JobBillingType = "deposit_monthly_terms"
	JobBillingTypeFoc                   JobBillingType = "foc"
	JobBillingTypeInsurance             JobBillingType = "insurance"
	JobBillingTypeInternalCost          JobBillingType = "internal_cost"
	JobBillingTypeManufacturersWarranty JobBillingType = "manufacturers_warranty"
	JobBillingTypeMotabilityCallOut     JobBillingType = "motability_call_out"
	JobBillingTypeMotabilityInsurance   JobBillingType = "motability_insurance"
	JobBillingTypeMotabilityPaidJob     JobBillingType = "motability_paid_job"
	JobBillingTypeMotabilityWarranty    JobBillingType = "motability_warranty"
	JobBillingTypeOnAccount             JobBillingType = "on_account"
)

Defines values for JobBillingType.

func (JobBillingType) Valid added in v0.1.1

func (e JobBillingType) Valid() bool

Valid indicates whether the value is a known member of the JobBillingType enum.

type JobCreateRequest added in v0.1.1

type JobCreateRequest struct {
	// AllDay Whether the job is treated as an all-day booking in scheduling views.
	AllDay *bool `json:"all_day,omitempty"`

	// Assets Customer assets included on this job (bikes or other serviced assets). Required: at least one entry.
	Assets []JobAssetInput `json:"assets"`

	// BillingType Billing/charge source for the job.
	BillingType *JobCreateRequestBillingType `json:"billing_type,omitempty"`

	// CheckInNotes Check-in notes captured when the asset is received for service.
	CheckInNotes *string `json:"check_in_notes,omitempty"`

	// Customer Customer reference for public job creation.
	Customer JobCustomerInput `json:"customer"`

	// IntegrationOptions Optional till/POS integration settings for the created job. Does not describe which items or services are on the job — use `items` and `work_lines` on the job create request for that.
	IntegrationOptions *JobIntegrationOptions `json:"integration_options,omitempty"`

	// Metadata Optional partner metadata on create. v1 supports `external_job_id` (maps to partner ticket id).
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Notes Internal workshop notes to attach to the job.
	Notes *string `json:"notes,omitempty"`

	// Notifications Notification side effects for public job creation.
	Notifications *JobNotificationOptions `json:"notifications,omitempty"`

	// Schedule Scheduling and logistics requested for a public job.
	Schedule *JobScheduleInput `json:"schedule,omitempty"`

	// WorkLines Work to perform per asset. Required: at least one entry with a non-empty `services` array.
	WorkLines []JobWorkLineInput `json:"work_lines"`
}

JobCreateRequest Request body for POST /public/v1/jobs.

type JobCreateRequestBillingType added in v0.1.1

type JobCreateRequestBillingType string

JobCreateRequestBillingType Billing/charge source for the job.

const (
	JobCreateRequestBillingTypeCod                   JobCreateRequestBillingType = "cod"
	JobCreateRequestBillingTypeDealerPlan            JobCreateRequestBillingType = "dealer_plan"
	JobCreateRequestBillingTypeDealerWarranty        JobCreateRequestBillingType = "dealer_warranty"
	JobCreateRequestBillingTypeDepositMonthlyTerms   JobCreateRequestBillingType = "deposit_monthly_terms"
	JobCreateRequestBillingTypeFoc                   JobCreateRequestBillingType = "foc"
	JobCreateRequestBillingTypeInsurance             JobCreateRequestBillingType = "insurance"
	JobCreateRequestBillingTypeInternalCost          JobCreateRequestBillingType = "internal_cost"
	JobCreateRequestBillingTypeManufacturersWarranty JobCreateRequestBillingType = "manufacturers_warranty"
	JobCreateRequestBillingTypeMotabilityCallOut     JobCreateRequestBillingType = "motability_call_out"
	JobCreateRequestBillingTypeMotabilityInsurance   JobCreateRequestBillingType = "motability_insurance"
	JobCreateRequestBillingTypeMotabilityPaidJob     JobCreateRequestBillingType = "motability_paid_job"
	JobCreateRequestBillingTypeMotabilityWarranty    JobCreateRequestBillingType = "motability_warranty"
	JobCreateRequestBillingTypeOnAccount             JobCreateRequestBillingType = "on_account"
)

Defines values for JobCreateRequestBillingType.

func (JobCreateRequestBillingType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobCreateRequestBillingType enum.

type JobCreationSource added in v0.1.1

type JobCreationSource string

JobCreationSource How the job entered Workshop. Allowed values: `manual`, `online_booking`, or `widget_booking`.

const (
	JobCreationSourceManual        JobCreationSource = "manual"
	JobCreationSourceOnlineBooking JobCreationSource = "online_booking"
	JobCreationSourceWidgetBooking JobCreationSource = "widget_booking"
)

Defines values for JobCreationSource.

func (JobCreationSource) Valid added in v0.1.1

func (e JobCreationSource) Valid() bool

Valid indicates whether the value is a known member of the JobCreationSource enum.

type JobCustomerInput

type JobCustomerInput struct {
	// ExternalReference Optional caller-side customer reference for partner reconciliation. Not persisted in the current implementation.
	ExternalReference *string `json:"external_reference,omitempty"`

	// Id Existing customer public id (`cus_...`). Required. The customer's workshop is used for the new job.
	Id string `json:"id"`
}

JobCustomerInput Customer reference for public job creation.

type JobCustomerPreferredContactMethod added in v0.1.1

type JobCustomerPreferredContactMethod string

JobCustomerPreferredContactMethod Customer preferred contact method copied onto the job.

const (
	JobCustomerPreferredContactMethodEmail     JobCustomerPreferredContactMethod = "email"
	JobCustomerPreferredContactMethodFacebook  JobCustomerPreferredContactMethod = "facebook"
	JobCustomerPreferredContactMethodInstagram JobCustomerPreferredContactMethod = "instagram"
	JobCustomerPreferredContactMethodPhone     JobCustomerPreferredContactMethod = "phone"
	JobCustomerPreferredContactMethodWhatsApp  JobCustomerPreferredContactMethod = "whats_app"
)

Defines values for JobCustomerPreferredContactMethod.

func (JobCustomerPreferredContactMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobCustomerPreferredContactMethod enum.

type JobCustomerSchedulingOptions added in v0.1.1

type JobCustomerSchedulingOptions struct {
	// AllowBookCustomerCollection Whether the customer can book their own collection appointments.
	AllowBookCustomerCollection *bool `json:"allow_book_customer_collection,omitempty"`

	// AllowBookMechanicDropOff Whether the customer can book mechanic drop-off appointments.
	AllowBookMechanicDropOff *bool `json:"allow_book_mechanic_drop_off,omitempty"`

	// AllowRescheduleCustomerDropOff Whether the customer can reschedule their own drop-off appointments.
	AllowRescheduleCustomerDropOff *bool `json:"allow_reschedule_customer_drop_off,omitempty"`

	// AllowRescheduleMechanicCollection Whether the customer can reschedule mechanic collection appointments.
	AllowRescheduleMechanicCollection *bool `json:"allow_reschedule_mechanic_collection,omitempty"`

	// AllowRescheduleOnSiteService Whether the customer can reschedule on-site service appointments.
	AllowRescheduleOnSiteService *bool `json:"allow_reschedule_on_site_service,omitempty"`
}

JobCustomerSchedulingOptions Customer self-service scheduling permissions on a public job.

type JobCustomerSchedulingOptionsInput

type JobCustomerSchedulingOptionsInput struct {
	// AllowBookCustomerCollection Whether the customer can book their own collection appointments.
	AllowBookCustomerCollection *bool `json:"allow_book_customer_collection,omitempty"`

	// AllowBookMechanicDropOff Whether the customer can book mechanic drop-off appointments.
	AllowBookMechanicDropOff *bool `json:"allow_book_mechanic_drop_off,omitempty"`

	// AllowRescheduleCustomerDropOff Whether the customer can reschedule their own drop-off appointments.
	AllowRescheduleCustomerDropOff *bool `json:"allow_reschedule_customer_drop_off,omitempty"`

	// AllowRescheduleMechanicCollection Whether the customer can reschedule mechanic collection appointments.
	AllowRescheduleMechanicCollection *bool `json:"allow_reschedule_mechanic_collection,omitempty"`

	// AllowRescheduleOnSiteService Whether the customer can reschedule on-site service appointments.
	AllowRescheduleOnSiteService *bool `json:"allow_reschedule_on_site_service,omitempty"`
}

JobCustomerSchedulingOptionsInput Customer self-service scheduling permissions requested when creating a public job.

type JobDiscountType added in v0.1.1

type JobDiscountType string

JobDiscountType Discount model when a job-level discount is configured. Allowed values: `percentage` or `set_amount`.

const (
	Percentage JobDiscountType = "percentage"
	SetAmount  JobDiscountType = "set_amount"
)

Defines values for JobDiscountType.

func (JobDiscountType) Valid added in v0.1.1

func (e JobDiscountType) Valid() bool

Valid indicates whether the value is a known member of the JobDiscountType enum.

type JobIntegrationOptions

type JobIntegrationOptions struct {
	// AutoSync Whether Workshop should auto-sync the resulting job/invoice with connected systems when configured. Defaults should be applied by the endpoint implementation.
	AutoSync *bool `json:"auto_sync,omitempty"`

	// IntegrationStoreId External POS or integration store id to associate with the created job, when applicable.
	IntegrationStoreId *string `json:"integration_store_id,omitempty"`

	// IntegrationStoreName Display name for `integration_store_id`, when applicable.
	IntegrationStoreName *string `json:"integration_store_name,omitempty"`
}

JobIntegrationOptions Optional till/POS integration settings for the created job. Does not describe which items or services are on the job — use `items` and `work_lines` on the job create request for that.

type JobNotificationOptions

type JobNotificationOptions struct {
	// CustomerConfirmation When true, send the customer booking-submitted notification if enabled in customer settings. Maps to the internal manual job create `notifyCustomer` flag.
	CustomerConfirmation *bool `json:"customer_confirmation,omitempty"`
}

JobNotificationOptions Notification side effects for public job creation.

type JobObject added in v0.1.1

type JobObject string

JobObject Resource object type. Always job.

const (
	JobObjectJob JobObject = "job"
)

Defines values for JobObject.

func (JobObject) Valid added in v0.1.1

func (e JobObject) Valid() bool

Valid indicates whether the value is a known member of the JobObject enum.

type JobParams added in v0.1.1

type JobParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

JobParams defines parameters for Job.

type JobPartnerEmbedType added in v0.1.1

type JobPartnerEmbedType string

JobPartnerEmbedType Partner embed configuration when the job originated from a partner widget.

const (
	Hygge   JobPartnerEmbedType = "hygge"
	Ribble  JobPartnerEmbedType = "ribble"
	Roxform JobPartnerEmbedType = "roxform"
	Skarper JobPartnerEmbedType = "skarper"
)

Defines values for JobPartnerEmbedType.

func (JobPartnerEmbedType) Valid added in v0.1.1

func (e JobPartnerEmbedType) Valid() bool

Valid indicates whether the value is a known member of the JobPartnerEmbedType enum.

type JobReport added in v0.1.1

type JobReport struct {
	// AssetId Public asset id for the reported asset, for example asset_....
	AssetId *string `json:"asset_id,omitempty"`

	// Attachments Public attachment metadata for files included with the report.
	Attachments *[]JobReportAttachment `json:"attachments,omitempty"`

	// BusinessId Public business id that owns this report.
	BusinessId *string `json:"business_id,omitempty"`

	// Checks Public quality-check summary for a job report.
	Checks *JobReportChecks `json:"checks,omitempty"`

	// Comment Public report comment or summary.
	Comment *string `json:"comment,omitempty"`

	// CreatedAt UTC timestamp when the report was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// CustomerId Public customer id for the report's customer, for example cus_....
	CustomerId *string `json:"customer_id,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// JobId Public job id for the reported job, for example job_....
	JobId *string `json:"job_id,omitempty"`

	// Object Resource object type. Always job_report.
	Object *JobReportObject `json:"object,omitempty"`

	// ServiceItems Service item or checklist results included in the report.
	ServiceItems *[]JobReportServiceItemResult `json:"service_items,omitempty"`

	// UpdatedAt UTC timestamp when the report was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

JobReport Public representation of a job report available to authorized API clients.

type JobReportAttachment added in v0.1.1

type JobReportAttachment struct {
	// ContentType Attachment content type, for example image/jpeg or application/pdf.
	ContentType *string `json:"content_type,omitempty"`

	// FileSizeBytes Attachment file size in bytes, when known.
	FileSizeBytes *int64 `json:"file_size_bytes,omitempty"`

	// FriendlyName Human-friendly attachment display name, when available.
	FriendlyName *string `json:"friendly_name,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Name Original attachment file name, when available.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always attachment.
	Object *JobReportAttachmentObject `json:"object,omitempty"`
}

JobReportAttachment Public attachment metadata for a job report.

type JobReportAttachmentObject added in v0.1.1

type JobReportAttachmentObject string

JobReportAttachmentObject Resource object type. Always attachment.

const (
	Attachment JobReportAttachmentObject = "attachment"
)

Defines values for JobReportAttachmentObject.

func (JobReportAttachmentObject) Valid added in v0.1.1

func (e JobReportAttachmentObject) Valid() bool

Valid indicates whether the value is a known member of the JobReportAttachmentObject enum.

type JobReportChecks added in v0.1.1

type JobReportChecks struct {
	// MechanicalCheck True when a mechanical check was completed.
	MechanicalCheck *bool `json:"mechanical_check,omitempty"`

	// SignedOff True when the report or work was signed off.
	SignedOff *bool `json:"signed_off,omitempty"`

	// TestRidden True when the item was test ridden as part of the report.
	TestRidden *bool `json:"test_ridden,omitempty"`
}

JobReportChecks Public quality-check summary for a job report.

type JobReportObject added in v0.1.1

type JobReportObject string

JobReportObject Resource object type. Always job_report.

const (
	JobReportObjectJobReport JobReportObject = "job_report"
)

Defines values for JobReportObject.

func (JobReportObject) Valid added in v0.1.1

func (e JobReportObject) Valid() bool

Valid indicates whether the value is a known member of the JobReportObject enum.

type JobReportServiceItemResult added in v0.1.1

type JobReportServiceItemResult struct {
	// Category Public service item category, when available.
	Category *string `json:"category,omitempty"`

	// Comment Comment recorded against this service item.
	Comment *string `json:"comment,omitempty"`

	// Name Service item or checklist item name.
	Name *string `json:"name,omitempty"`

	// Order Display order of the service item in the report.
	Order *int32 `json:"order,omitempty"`

	// Status Service item inspection result status.
	Status *JobReportServiceItemResultStatus `json:"status,omitempty"`
}

JobReportServiceItemResult Public service item result documented in a job report.

type JobReportServiceItemResultStatus added in v0.1.1

type JobReportServiceItemResultStatus string

JobReportServiceItemResultStatus Service item inspection result status.

const (
	NotApplicable JobReportServiceItemResultStatus = "not_applicable"
	NotChecked    JobReportServiceItemResultStatus = "not_checked"
	Ok            JobReportServiceItemResultStatus = "ok"
	Recommended   JobReportServiceItemResultStatus = "recommended"
	Replaced      JobReportServiceItemResultStatus = "replaced"
	SlightWear    JobReportServiceItemResultStatus = "slight_wear"
	Upgraded      JobReportServiceItemResultStatus = "upgraded"
	Urgent        JobReportServiceItemResultStatus = "urgent"
)

Defines values for JobReportServiceItemResultStatus.

func (JobReportServiceItemResultStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobReportServiceItemResultStatus enum.

type JobResponse

type JobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Job
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseJobResponse added in v0.1.1

func ParseJobResponse(rsp *http.Response) (*JobResponse, error)

ParseJobResponse parses an HTTP response from a JobWithResponse call

func (JobResponse) ContentType added in v0.1.1

func (r JobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (JobResponse) Status added in v0.1.1

func (r JobResponse) Status() string

Status returns HTTPResponse.Status

func (JobResponse) StatusCode added in v0.1.1

func (r JobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type JobSchedule added in v0.1.1

type JobSchedule struct {
	// Address Public postal/geographic address on a job schedule.
	Address *JobAddress `json:"address,omitempty"`

	// CollectionBringInDate Calendar date when the item was brought in for collection services.
	CollectionBringInDate *openapi_types.Date `json:"collection_bring_in_date,omitempty"`

	// CustomerCollectionDate Calendar date when the customer plans to collect the item from the business.
	CustomerCollectionDate *openapi_types.Date `json:"customer_collection_date,omitempty"`

	// CustomerCollectionWindow Public time window on a job schedule.
	CustomerCollectionWindow *JobTimeWindow `json:"customer_collection_window,omitempty"`

	// CustomerDropOffDate Calendar date when the customer plans to drop the item off at the business.
	CustomerDropOffDate *openapi_types.Date `json:"customer_drop_off_date,omitempty"`

	// CustomerDropOffWindow Public time window on a job schedule.
	CustomerDropOffWindow *JobTimeWindow `json:"customer_drop_off_window,omitempty"`

	// CustomerScheduling Customer self-service scheduling permissions on a public job.
	CustomerScheduling *JobCustomerSchedulingOptions `json:"customer_scheduling,omitempty"`

	// DropOffAddress Public postal/geographic address on a job schedule.
	DropOffAddress *JobAddress `json:"drop_off_address,omitempty"`

	// EstimatedTravelMinutes Estimated travel time in minutes for mobile/on-site work when calculated.
	EstimatedTravelMinutes *float64 `json:"estimated_travel_minutes,omitempty"`

	// FulfilmentType Job fulfilment workflow. Allowed values: `drop_off`, `collection`, or `on_site_service`.
	FulfilmentType *JobScheduleFulfilmentType `json:"fulfilment_type,omitempty"`

	// MechanicCollectionDate Calendar date when the mechanic or business plans to collect the item from the customer.
	MechanicCollectionDate *openapi_types.Date `json:"mechanic_collection_date,omitempty"`

	// MechanicCollectionWindow Public time window on a job schedule.
	MechanicCollectionWindow *JobTimeWindow `json:"mechanic_collection_window,omitempty"`

	// MechanicDropOffDate Calendar date when the mechanic or business plans to return the item to the customer.
	MechanicDropOffDate *openapi_types.Date `json:"mechanic_drop_off_date,omitempty"`

	// MechanicDropOffWindow Public time window on a job schedule.
	MechanicDropOffWindow *JobTimeWindow `json:"mechanic_drop_off_window,omitempty"`

	// ShowCollectionInCalendar Whether collection and drop-off events should appear on workshop calendars.
	ShowCollectionInCalendar *bool `json:"show_collection_in_calendar,omitempty"`
}

JobSchedule Scheduling and logistics on a public job response.

type JobScheduleChangeRequest added in v0.1.1

type JobScheduleChangeRequest struct {
	// Notifications Customer email options for job schedule and fulfilment changes.
	Notifications *JobScheduleNotifications `json:"notifications,omitempty"`

	// Schedule Scheduling and logistics requested for a public job.
	Schedule *JobScheduleInput `json:"schedule,omitempty"`
}

JobScheduleChangeRequest Request body for changing job-level schedule and fulfilment details.

type JobScheduleFulfilmentType added in v0.1.1

type JobScheduleFulfilmentType string

JobScheduleFulfilmentType Job fulfilment workflow. Allowed values: `drop_off`, `collection`, or `on_site_service`.

const (
	JobScheduleFulfilmentTypeCollection    JobScheduleFulfilmentType = "collection"
	JobScheduleFulfilmentTypeDropOff       JobScheduleFulfilmentType = "drop_off"
	JobScheduleFulfilmentTypeOnSiteService JobScheduleFulfilmentType = "on_site_service"
)

Defines values for JobScheduleFulfilmentType.

func (JobScheduleFulfilmentType) Valid added in v0.1.1

func (e JobScheduleFulfilmentType) Valid() bool

Valid indicates whether the value is a known member of the JobScheduleFulfilmentType enum.

type JobScheduleInput

type JobScheduleInput struct {
	// Address Public postal/geographic address input.
	Address *JobAddressInput `json:"address,omitempty"`

	// CollectionBringInDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	CollectionBringInDate *openapi_types.Date `json:"collection_bring_in_date,omitempty"`

	// CustomerCollectionDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	CustomerCollectionDate *openapi_types.Date `json:"customer_collection_date,omitempty"`

	// CustomerDropOffDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	CustomerDropOffDate *openapi_types.Date `json:"customer_drop_off_date,omitempty"`

	// CustomerScheduling Customer self-service scheduling permissions requested when creating a public job.
	CustomerScheduling *JobCustomerSchedulingOptionsInput `json:"customer_scheduling,omitempty"`

	// DropOffAddress Public postal/geographic address input.
	DropOffAddress *JobAddressInput `json:"drop_off_address,omitempty"`

	// EstimatedTravelMinutes Estimated travel time in minutes for collection or on-site work when known.
	EstimatedTravelMinutes *float64 `json:"estimated_travel_minutes,omitempty"`

	// FulfilmentType Job fulfilment workflow. Allowed values: `drop_off`, `collection`, or `on_site_service`.
	FulfilmentType *JobScheduleInputFulfilmentType `json:"fulfilment_type,omitempty"`

	// MechanicCollectionDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	MechanicCollectionDate *openapi_types.Date `json:"mechanic_collection_date,omitempty"`

	// MechanicCollectionWindow Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.
	MechanicCollectionWindow *JobTimeWindowInput `json:"mechanic_collection_window,omitempty"`

	// MechanicDropOffDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	MechanicDropOffDate *openapi_types.Date `json:"mechanic_drop_off_date,omitempty"`

	// MechanicDropOffWindow Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.
	MechanicDropOffWindow *JobTimeWindowInput `json:"mechanic_drop_off_window,omitempty"`

	// PreferredDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	PreferredDate *openapi_types.Date `json:"preferred_date,omitempty"`

	// PreferredWindow Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.
	PreferredWindow *JobTimeWindowInput `json:"preferred_window,omitempty"`

	// ShowCollectionInCalendar Whether collection and drop-off events should appear on workshop calendars.
	ShowCollectionInCalendar *bool `json:"show_collection_in_calendar,omitempty"`
}

JobScheduleInput Scheduling and logistics requested for a public job.

type JobScheduleInputFulfilmentType added in v0.1.1

type JobScheduleInputFulfilmentType string

JobScheduleInputFulfilmentType Job fulfilment workflow. Allowed values: `drop_off`, `collection`, or `on_site_service`.

const (
	JobScheduleInputFulfilmentTypeCollection    JobScheduleInputFulfilmentType = "collection"
	JobScheduleInputFulfilmentTypeDropOff       JobScheduleInputFulfilmentType = "drop_off"
	JobScheduleInputFulfilmentTypeOnSiteService JobScheduleInputFulfilmentType = "on_site_service"
)

Defines values for JobScheduleInputFulfilmentType.

func (JobScheduleInputFulfilmentType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobScheduleInputFulfilmentType enum.

type JobScheduleNotifications added in v0.1.1

type JobScheduleNotifications struct {
	// CustomerCollectionDetailsChanged For `drop_off` jobs, email the customer that their pick-up date changed.
	CustomerCollectionDetailsChanged *bool `json:"customer_collection_details_changed,omitempty"`

	// CustomerDropOffDetailsChanged For `drop_off` jobs, email the customer that their drop-off date changed.
	CustomerDropOffDetailsChanged *bool `json:"customer_drop_off_details_changed,omitempty"`

	// MechanicCollectionDetailsChanged For `collection` jobs, email the customer that the mechanic collection details changed.
	MechanicCollectionDetailsChanged *bool `json:"mechanic_collection_details_changed,omitempty"`

	// MechanicDropOffDetailsChanged For `collection` jobs, email the customer that the mechanic return details changed.
	MechanicDropOffDetailsChanged *bool `json:"mechanic_drop_off_details_changed,omitempty"`

	// OnSiteServiceDetailsChanged For `on_site_service` jobs, email the customer that their on-site service details changed.
	OnSiteServiceDetailsChanged *bool `json:"on_site_service_details_changed,omitempty"`

	// RequestCustomerCollectionDate For `drop_off` jobs, ask the customer to choose a pick-up date from the tracking page.
	RequestCustomerCollectionDate *bool `json:"request_customer_collection_date,omitempty"`

	// RequestMechanicDropOffDate For `collection` jobs, ask the customer to choose a return date and window from the tracking page.
	RequestMechanicDropOffDate *bool `json:"request_mechanic_drop_off_date,omitempty"`
}

JobScheduleNotifications Customer email options for job schedule and fulfilment changes.

type JobStatus added in v0.1.1

type JobStatus struct {
	// Colour Primary calendar/UI colour for this status.
	Colour *string `json:"colour,omitempty"`

	// Enabled Whether this status is currently enabled for selection.
	Enabled *bool `json:"enabled,omitempty"`

	// Id Opaque public status id (`jst_...`).
	Id *string `json:"id,omitempty"`

	// IsDefault Whether this is the workshop default status for new work.
	IsDefault *bool `json:"is_default,omitempty"`

	// Name Display name shown in Workshop (may be renamed by the workshop).
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always `job_status`.
	Object *JobStatusObject `json:"object,omitempty"`

	// Order Sort order configured for this status in the workshop workflow.
	Order *int32 `json:"order,omitempty"`

	// Required Whether this status is marked as required in the workshop workflow.
	Required *bool `json:"required,omitempty"`

	// SecondaryColour Secondary accent colour for this status.
	SecondaryColour *string `json:"secondary_colour,omitempty"`

	// Type System status category in snake_case.
	Type *JobStatusType `json:"type,omitempty"`

	// TypeKey Stable status key within the workshop: custom `TypeAsString` when v1.Jobs.PublicApiJobStatusResponse.Type is `custom`, otherwise the system type key.
	TypeKey *string `json:"type_key,omitempty"`
}

JobStatus Workshop job status assigned to a work line's service booking. Integrators should key off v1.Jobs.PublicApiJobStatusResponse.Id; v1.Jobs.PublicApiJobStatusResponse.Name is display-only and may change.

type JobStatusList added in v0.1.1

type JobStatusList struct {
	// BusinessId Public business id that owns the status configuration.
	BusinessId *string `json:"business_id,omitempty"`

	// Data Enabled statuses that can be assigned to public work lines.
	Data *[]JobStatus `json:"data,omitempty"`

	// Object Resource object type. Always `job_status_list`.
	Object *JobStatusListObject `json:"object,omitempty"`
}

JobStatusList Valid job statuses configured for a workshop.

type JobStatusListObject added in v0.1.1

type JobStatusListObject string

JobStatusListObject Resource object type. Always `job_status_list`.

const (
	JobStatusListObjectJobStatusList JobStatusListObject = "job_status_list"
)

Defines values for JobStatusListObject.

func (JobStatusListObject) Valid added in v0.1.1

func (e JobStatusListObject) Valid() bool

Valid indicates whether the value is a known member of the JobStatusListObject enum.

type JobStatusObject added in v0.1.1

type JobStatusObject string

JobStatusObject Resource object type. Always `job_status`.

const (
	JobStatusObjectJobStatus JobStatusObject = "job_status"
)

Defines values for JobStatusObject.

func (JobStatusObject) Valid added in v0.1.1

func (e JobStatusObject) Valid() bool

Valid indicates whether the value is a known member of the JobStatusObject enum.

type JobStatusType added in v0.1.1

type JobStatusType string

JobStatusType System status category in snake_case.

const (
	JobStatusTypeBikeReady          JobStatusType = "bike_ready"
	JobStatusTypeCompleted          JobStatusType = "completed"
	JobStatusTypeCustom             JobStatusType = "custom"
	JobStatusTypeNotStarted         JobStatusType = "not_started"
	JobStatusTypePartsToBeOrdered   JobStatusType = "parts_to_be_ordered"
	JobStatusTypePendingCollection  JobStatusType = "pending_collection"
	JobStatusTypeWaitingForApproval JobStatusType = "waiting_for_approval"
	JobStatusTypeWaitingForBike     JobStatusType = "waiting_for_bike"
	JobStatusTypeWaitingForParts    JobStatusType = "waiting_for_parts"
	JobStatusTypeWaitingToStart     JobStatusType = "waiting_to_start"
	JobStatusTypeWorkingOn          JobStatusType = "working_on"
)

Defines values for JobStatusType.

func (JobStatusType) Valid added in v0.1.1

func (e JobStatusType) Valid() bool

Valid indicates whether the value is a known member of the JobStatusType enum.

type JobStatusesParams added in v0.1.1

type JobStatusesParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

JobStatusesParams defines parameters for JobStatuses.

type JobStatusesResponse added in v0.1.1

type JobStatusesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JobStatusList
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseJobStatusesResponse added in v0.1.1

func ParseJobStatusesResponse(rsp *http.Response) (*JobStatusesResponse, error)

ParseJobStatusesResponse parses an HTTP response from a JobStatusesWithResponse call

func (JobStatusesResponse) ContentType added in v0.1.1

func (r JobStatusesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (JobStatusesResponse) Status added in v0.1.1

func (r JobStatusesResponse) Status() string

Status returns HTTPResponse.Status

func (JobStatusesResponse) StatusCode added in v0.1.1

func (r JobStatusesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type JobTimeWindow added in v0.1.1

type JobTimeWindow struct {
	// EndTime End time of the window in the workshop-local schedule.
	EndTime *string `json:"end_time,omitempty"`

	// StartTime Start time of the window in the workshop-local schedule.
	StartTime *string `json:"start_time,omitempty"`
}

JobTimeWindow Public time window on a job schedule.

type JobTimeWindowInput

type JobTimeWindowInput struct {
	// EndTime End time in the workshop's local timezone. Format: `HH:mm:ss` 24-hour time, for example `11:30:00`.
	EndTime *string `json:"end_time,omitempty"`

	// StartTime Start time in the workshop's local timezone. Format: `HH:mm:ss` 24-hour time, for example `09:00:00`.
	StartTime *string `json:"start_time,omitempty"`
}

JobTimeWindowInput Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.

type JobUpdateRequest added in v0.1.1

type JobUpdateRequest struct {
	// AllDay Whether the job is treated as an all-day booking.
	AllDay *bool `json:"all_day,omitempty"`

	// BillingType Billing/charge source for the job.
	BillingType *JobUpdateRequestBillingType `json:"billing_type,omitempty"`

	// CheckInNotes Check-in notes captured when the asset is received for service.
	CheckInNotes *string `json:"check_in_notes,omitempty"`

	// Metadata Optional partner metadata on update. v1 supports `external_job_id` (maps to partner ticket id).
	Metadata *map[string]string `json:"metadata,omitempty"`

	// Notes Internal workshop notes for the job.
	Notes *string `json:"notes,omitempty"`

	// SyncWorkLineStatuses Whether future work-line status changes should be applied to all work lines by default.
	SyncWorkLineStatuses *bool `json:"sync_work_line_statuses,omitempty"`
}

JobUpdateRequest Patch body for low-side-effect job fields. Omitted properties are ignored.

type JobUpdateRequestBillingType added in v0.1.1

type JobUpdateRequestBillingType string

JobUpdateRequestBillingType Billing/charge source for the job.

const (
	Cod                   JobUpdateRequestBillingType = "cod"
	DealerPlan            JobUpdateRequestBillingType = "dealer_plan"
	DealerWarranty        JobUpdateRequestBillingType = "dealer_warranty"
	DepositMonthlyTerms   JobUpdateRequestBillingType = "deposit_monthly_terms"
	Foc                   JobUpdateRequestBillingType = "foc"
	Insurance             JobUpdateRequestBillingType = "insurance"
	InternalCost          JobUpdateRequestBillingType = "internal_cost"
	ManufacturersWarranty JobUpdateRequestBillingType = "manufacturers_warranty"
	MotabilityCallOut     JobUpdateRequestBillingType = "motability_call_out"
	MotabilityInsurance   JobUpdateRequestBillingType = "motability_insurance"
	MotabilityPaidJob     JobUpdateRequestBillingType = "motability_paid_job"
	MotabilityWarranty    JobUpdateRequestBillingType = "motability_warranty"
	OnAccount             JobUpdateRequestBillingType = "on_account"
)

Defines values for JobUpdateRequestBillingType.

func (JobUpdateRequestBillingType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the JobUpdateRequestBillingType enum.

type JobWorkLine added in v0.1.1

type JobWorkLine struct {
	// AssetId Public asset id this work line applies to (`asset_...`).
	AssetId *string `json:"asset_id,omitempty"`

	// AssignedMechanicId Public team member id (`bmem_...`) assigned to this work line, when a mechanic is assigned.
	AssignedMechanicId *string `json:"assigned_mechanic_id,omitempty"`

	// AssignedMechanicName Display name of the assigned mechanic, when known.
	AssignedMechanicName *string `json:"assigned_mechanic_name,omitempty"`

	// CustomerNotes Customer-provided notes for this work line.
	CustomerNotes *string `json:"customer_notes,omitempty"`

	// Id Public work line id (`wl_...`). Identifies the service booking for one item on the job — not a catalogue `svc_...` id.
	Id *string `json:"id,omitempty"`

	// JobReportId Public job report id for this work line, when a report exists.
	JobReportId *string `json:"job_report_id,omitempty"`

	// Object Resource object type. Always `work_line`.
	Object *JobWorkLineObject `json:"object,omitempty"`

	// ScheduledDate Scheduled calendar date for this work line when set on the underlying service booking.
	ScheduledDate *openapi_types.Date `json:"scheduled_date,omitempty"`

	// ScheduledWindow Public time window on a job schedule.
	ScheduledWindow *JobTimeWindow `json:"scheduled_window,omitempty"`

	// Services Catalogue services performed on this work line.
	Services *[]ServiceInstance `json:"services,omitempty"`

	// Status Workshop job status assigned to a work line's service booking. Integrators should key off v1.Jobs.PublicApiJobStatusResponse.Id; v1.Jobs.PublicApiJobStatusResponse.Name is display-only and may change.
	Status *JobStatus `json:"status,omitempty"`

	// TotalCost Total cost for this work line, when pricing is exposed publicly.
	TotalCost *float64 `json:"total_cost,omitempty"`
}

JobWorkLine One asset's booked work on a job: a service booking with one or more catalogue services. Maps from `ServiceBooking` + its `ServiceInstance` rows.

type JobWorkLineInput

type JobWorkLineInput struct {
	// AssetClientReference Request-local asset reference when the work line applies to an asset created inline in this request. Required when `asset_id` is omitted.
	AssetClientReference *string `json:"asset_client_reference,omitempty"`

	// AssetId Existing asset public id from the parent request's `assets[]` array. Required when `asset_client_reference` is omitted.
	AssetId *string `json:"asset_id,omitempty"`

	// AssignedMechanicId Optional public team member id (`bmem_...`) for assigning this work line to a mechanic.
	AssignedMechanicId *string `json:"assigned_mechanic_id,omitempty"`

	// Notes Customer-visible notes for this work line.
	Notes *string `json:"notes,omitempty"`

	// ScheduledDate Requested scheduled calendar date for this work line, when known.
	ScheduledDate *openapi_types.Date `json:"scheduled_date,omitempty"`

	// ScheduledWindow Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.
	ScheduledWindow *JobTimeWindowInput `json:"scheduled_window,omitempty"`

	// Services Catalogue services to perform on this asset. Required: at least one entry.
	Services []ServiceInstanceInput `json:"services"`
}

JobWorkLineInput One asset's work on a job: an asset plus one or more catalogue services to perform on it. Maps to a single `ServiceBooking` with multiple `ServiceInstance` rows.

type JobWorkLineMechanicAssignmentRequest added in v0.1.1

type JobWorkLineMechanicAssignmentRequest struct {
	// AssignedMechanicId Public team member id (`bmem_...`) for the mechanic to assign. Send `null`, an empty value, or `any` to clear the assignment.
	AssignedMechanicId *string `json:"assigned_mechanic_id,omitempty"`

	// Notifications Notification options for a mechanic assignment change.
	Notifications *MechanicAssignmentNotifications `json:"notifications,omitempty"`
}

JobWorkLineMechanicAssignmentRequest Request body for assigning or clearing the mechanic on a work line.

type JobWorkLineObject added in v0.1.1

type JobWorkLineObject string

JobWorkLineObject Resource object type. Always `work_line`.

const (
	WorkLine JobWorkLineObject = "work_line"
)

Defines values for JobWorkLineObject.

func (JobWorkLineObject) Valid added in v0.1.1

func (e JobWorkLineObject) Valid() bool

Valid indicates whether the value is a known member of the JobWorkLineObject enum.

type JobWorkLineServicesUpdateRequest added in v0.1.1

type JobWorkLineServicesUpdateRequest struct {
	// ServiceIds Public service ids to keep on the work line.
	ServiceIds []string `json:"service_ids"`
}

JobWorkLineServicesUpdateRequest Request body for replacing the services on a work line.

type JobWorkLineStatusChangeRequest added in v0.1.1

type JobWorkLineStatusChangeRequest struct {
	// Notifications Notification options for a work-line status change.
	Notifications *WorkLineStatusChangeNotifications `json:"notifications,omitempty"`

	// StatusId Opaque public job status id (`jst_...`) to apply.
	StatusId string `json:"status_id"`

	// SyncAllWorkLines When true, applies the new status to every work line on the job. When false or omitted, only the specified work line is changed.
	SyncAllWorkLines *bool `json:"sync_all_work_lines,omitempty"`
}

JobWorkLineStatusChangeRequest Request body for changing a work line's workflow status.

type JobWorkLineUpdateRequest added in v0.1.1

type JobWorkLineUpdateRequest struct {
	// CustomerNotes Customer-facing notes for this work line.
	CustomerNotes *string `json:"customer_notes,omitempty"`

	// ScheduledDate Calendar date string in `YYYY-MM-DD` format. Do not include a time or timezone offset.
	ScheduledDate *openapi_types.Date `json:"scheduled_date,omitempty"`

	// ScheduledWindow Workshop-local time window. Send `start_time` and `end_time` as `HH:mm:ss` strings using a 24-hour clock, for example `{ "start_time": "09:00:00", "end_time": "11:30:00" }`.
	ScheduledWindow *JobTimeWindowInput `json:"scheduled_window,omitempty"`
}

JobWorkLineUpdateRequest Patch body for low-side-effect work-line fields. Omitted properties are ignored.

type JobsParams added in v0.1.1

type JobsParams struct {
	BusinessId    *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	JobNumber     *string `form:"job_number,omitempty" json:"job_number,omitempty"`
	CustomerId    *string `form:"customer_id,omitempty" json:"customer_id,omitempty"`
	CustomerEmail *string `form:"customer_email,omitempty" json:"customer_email,omitempty"`

	// AcceptedStatus Filter by job acceptance status. Use comma-separated values to match any supplied status. Allowed values: `pending`, `accepted`, `rejected`, `cancelled`. Example: `?accepted_status=accepted,rejected`.
	AcceptedStatus *JobsParamsAcceptedStatus `form:"accepted_status,omitempty" json:"accepted_status,omitempty"`

	// StatusId Filter jobs by work-line workflow status id (`jst_...`). A job matches when any work line has one of the supplied statuses. Use comma-separated values to match any supplied status. Example: `?status_id=jst_01h2xexample,jst_01h2yexample`.
	StatusId    *string `form:"status_id,omitempty" json:"status_id,omitempty"`
	CreatedFrom *string `form:"created_from,omitempty" json:"created_from,omitempty"`
	CreatedTo   *string `form:"created_to,omitempty" json:"created_to,omitempty"`

	// Sort Sort field. Allowed values: `created_at`, `job_number`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

JobsParams defines parameters for Jobs.

type JobsParamsAcceptedStatus added in v0.1.1

type JobsParamsAcceptedStatus string

JobsParamsAcceptedStatus defines parameters for Jobs.

const (
	JobsParamsAcceptedStatusAccepted  JobsParamsAcceptedStatus = "accepted"
	JobsParamsAcceptedStatusCancelled JobsParamsAcceptedStatus = "cancelled"
	JobsParamsAcceptedStatusPending   JobsParamsAcceptedStatus = "pending"
	JobsParamsAcceptedStatusRejected  JobsParamsAcceptedStatus = "rejected"
)

Defines values for JobsParamsAcceptedStatus.

func (JobsParamsAcceptedStatus) Valid added in v0.1.1

func (e JobsParamsAcceptedStatus) Valid() bool

Valid indicates whether the value is a known member of the JobsParamsAcceptedStatus enum.

type JobsResponse added in v0.1.1

type JobsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseJobsResponse added in v0.1.1

func ParseJobsResponse(rsp *http.Response) (*JobsResponse, error)

ParseJobsResponse parses an HTTP response from a JobsWithResponse call

func (JobsResponse) ContentType added in v0.1.1

func (r JobsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (JobsResponse) Status added in v0.1.1

func (r JobsResponse) Status() string

Status returns HTTPResponse.Status

func (JobsResponse) StatusCode added in v0.1.1

func (r JobsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListActivityParams added in v0.2.0

type ListActivityParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId        *string `form:"job_id,omitempty" json:"job_id,omitempty"`
	InvoiceId    *string `form:"invoice_id,omitempty" json:"invoice_id,omitempty"`
	WorkLineId   *string `form:"work_line_id,omitempty" json:"work_line_id,omitempty"`
	PaymentId    *string `form:"payment_id,omitempty" json:"payment_id,omitempty"`
	ActivityType *string `form:"activity_type,omitempty" json:"activity_type,omitempty"`
	CreatedFrom  *string `form:"created_from,omitempty" json:"created_from,omitempty"`
	CreatedTo    *string `form:"created_to,omitempty" json:"created_to,omitempty"`

	// Sort Sort field. Allowed values: `created_at`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListActivityParams defines parameters for ListActivity.

type ListActivityResponse added in v0.2.0

type ListActivityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfActivity
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListActivityResponse added in v0.2.0

func ParseListActivityResponse(rsp *http.Response) (*ListActivityResponse, error)

ParseListActivityResponse parses an HTTP response from a ListActivityWithResponse call

func (ListActivityResponse) ContentType added in v0.2.0

func (r ListActivityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListActivityResponse) Status added in v0.2.0

func (r ListActivityResponse) Status() string

Status returns HTTPResponse.Status

func (ListActivityResponse) StatusCode added in v0.2.0

func (r ListActivityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAssetParams added in v0.1.1

type ListAssetParams struct {
	BusinessId   *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	CustomerId   *string `form:"customer_id,omitempty" json:"customer_id,omitempty"`
	Name         *string `form:"name,omitempty" json:"name,omitempty"`
	SerialNumber *string `form:"serial_number,omitempty" json:"serial_number,omitempty"`
	Make         *string `form:"make,omitempty" json:"make,omitempty"`
	Model        *string `form:"model,omitempty" json:"model,omitempty"`

	// BikeType Exact match on bike category (bikes only). Allowed values: bmx, e_cargo, e_gravel, e_road, electric_bike, generic_bike, gravel, hybrid, kids_bike, mountain_bike, other, road_bike, single_speed, static_bike, triathlon_bike.
	BikeType *ListAssetParamsBikeType `form:"bike_type,omitempty" json:"bike_type,omitempty"`

	// Sort Sort field. Allowed values: `name`, `created_at`. Default: `name`. Prefix with `-` for descending order (for example `-name`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListAssetParams defines parameters for ListAsset.

type ListAssetParamsBikeType added in v0.1.1

type ListAssetParamsBikeType string

ListAssetParamsBikeType defines parameters for ListAsset.

const (
	ListAssetParamsBikeTypeBmx           ListAssetParamsBikeType = "bmx"
	ListAssetParamsBikeTypeECargo        ListAssetParamsBikeType = "e_cargo"
	ListAssetParamsBikeTypeEGravel       ListAssetParamsBikeType = "e_gravel"
	ListAssetParamsBikeTypeERoad         ListAssetParamsBikeType = "e_road"
	ListAssetParamsBikeTypeElectricBike  ListAssetParamsBikeType = "electric_bike"
	ListAssetParamsBikeTypeGenericBike   ListAssetParamsBikeType = "generic_bike"
	ListAssetParamsBikeTypeGravel        ListAssetParamsBikeType = "gravel"
	ListAssetParamsBikeTypeHybrid        ListAssetParamsBikeType = "hybrid"
	ListAssetParamsBikeTypeKidsBike      ListAssetParamsBikeType = "kids_bike"
	ListAssetParamsBikeTypeMountainBike  ListAssetParamsBikeType = "mountain_bike"
	ListAssetParamsBikeTypeOther         ListAssetParamsBikeType = "other"
	ListAssetParamsBikeTypeRoadBike      ListAssetParamsBikeType = "road_bike"
	ListAssetParamsBikeTypeSingleSpeed   ListAssetParamsBikeType = "single_speed"
	ListAssetParamsBikeTypeStaticBike    ListAssetParamsBikeType = "static_bike"
	ListAssetParamsBikeTypeTriathlonBike ListAssetParamsBikeType = "triathlon_bike"
)

Defines values for ListAssetParamsBikeType.

func (ListAssetParamsBikeType) Valid added in v0.1.1

func (e ListAssetParamsBikeType) Valid() bool

Valid indicates whether the value is a known member of the ListAssetParamsBikeType enum.

type ListAssetResponse added in v0.1.1

type ListAssetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfAsset
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListAssetResponse added in v0.1.1

func ParseListAssetResponse(rsp *http.Response) (*ListAssetResponse, error)

ParseListAssetResponse parses an HTTP response from a ListAssetWithResponse call

func (ListAssetResponse) ContentType added in v0.1.1

func (r ListAssetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListAssetResponse) Status added in v0.1.1

func (r ListAssetResponse) Status() string

Status returns HTTPResponse.Status

func (ListAssetResponse) StatusCode added in v0.1.1

func (r ListAssetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListBusinessParams added in v0.1.1

type ListBusinessParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListBusinessParams defines parameters for ListBusiness.

type ListBusinessResponse added in v0.1.1

type ListBusinessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfBusiness
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListBusinessResponse added in v0.1.1

func ParseListBusinessResponse(rsp *http.Response) (*ListBusinessResponse, error)

ParseListBusinessResponse parses an HTTP response from a ListBusinessWithResponse call

func (ListBusinessResponse) ContentType added in v0.1.1

func (r ListBusinessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListBusinessResponse) Status added in v0.1.1

func (r ListBusinessResponse) Status() string

Status returns HTTPResponse.Status

func (ListBusinessResponse) StatusCode added in v0.1.1

func (r ListBusinessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForCustomerParams added in v0.1.1

type ListForCustomerParams struct {
	Name         *string `form:"name,omitempty" json:"name,omitempty"`
	SerialNumber *string `form:"serial_number,omitempty" json:"serial_number,omitempty"`
	Make         *string `form:"make,omitempty" json:"make,omitempty"`
	Model        *string `form:"model,omitempty" json:"model,omitempty"`

	// BikeType Exact match on bike category (bikes only). Allowed values: bmx, e_cargo, e_gravel, e_road, electric_bike, generic_bike, gravel, hybrid, kids_bike, mountain_bike, other, road_bike, single_speed, static_bike, triathlon_bike.
	BikeType *ListForCustomerParamsBikeType `form:"bike_type,omitempty" json:"bike_type,omitempty"`

	// Sort Sort field. Allowed values: `name`, `created_at`. Default: `name`. Prefix with `-` for descending order (for example `-name`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListForCustomerParams defines parameters for ListForCustomer.

type ListForCustomerParamsBikeType added in v0.1.1

type ListForCustomerParamsBikeType string

ListForCustomerParamsBikeType defines parameters for ListForCustomer.

const (
	ListForCustomerParamsBikeTypeBmx           ListForCustomerParamsBikeType = "bmx"
	ListForCustomerParamsBikeTypeECargo        ListForCustomerParamsBikeType = "e_cargo"
	ListForCustomerParamsBikeTypeEGravel       ListForCustomerParamsBikeType = "e_gravel"
	ListForCustomerParamsBikeTypeERoad         ListForCustomerParamsBikeType = "e_road"
	ListForCustomerParamsBikeTypeElectricBike  ListForCustomerParamsBikeType = "electric_bike"
	ListForCustomerParamsBikeTypeGenericBike   ListForCustomerParamsBikeType = "generic_bike"
	ListForCustomerParamsBikeTypeGravel        ListForCustomerParamsBikeType = "gravel"
	ListForCustomerParamsBikeTypeHybrid        ListForCustomerParamsBikeType = "hybrid"
	ListForCustomerParamsBikeTypeKidsBike      ListForCustomerParamsBikeType = "kids_bike"
	ListForCustomerParamsBikeTypeMountainBike  ListForCustomerParamsBikeType = "mountain_bike"
	ListForCustomerParamsBikeTypeOther         ListForCustomerParamsBikeType = "other"
	ListForCustomerParamsBikeTypeRoadBike      ListForCustomerParamsBikeType = "road_bike"
	ListForCustomerParamsBikeTypeSingleSpeed   ListForCustomerParamsBikeType = "single_speed"
	ListForCustomerParamsBikeTypeStaticBike    ListForCustomerParamsBikeType = "static_bike"
	ListForCustomerParamsBikeTypeTriathlonBike ListForCustomerParamsBikeType = "triathlon_bike"
)

Defines values for ListForCustomerParamsBikeType.

func (ListForCustomerParamsBikeType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ListForCustomerParamsBikeType enum.

type ListForCustomerResponse added in v0.1.1

type ListForCustomerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfAsset
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListForCustomerResponse added in v0.1.1

func ParseListForCustomerResponse(rsp *http.Response) (*ListForCustomerResponse, error)

ParseListForCustomerResponse parses an HTTP response from a ListForCustomerWithResponse call

func (ListForCustomerResponse) ContentType added in v0.1.1

func (r ListForCustomerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForCustomerResponse) Status added in v0.1.1

func (r ListForCustomerResponse) Status() string

Status returns HTTPResponse.Status

func (ListForCustomerResponse) StatusCode added in v0.1.1

func (r ListForCustomerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForEndpointParams added in v0.1.1

type ListForEndpointParams struct {
	// Status Filter webhook deliveries by status: `pending`, `success`, or `failed`.
	Status *ListForEndpointParamsStatus `form:"status,omitempty" json:"status,omitempty"`

	// EventType Filter webhook deliveries to a single event type name.
	EventType *string `form:"event_type,omitempty" json:"event_type,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListForEndpointParams defines parameters for ListForEndpoint.

type ListForEndpointParamsStatus added in v0.1.1

type ListForEndpointParamsStatus string

ListForEndpointParamsStatus defines parameters for ListForEndpoint.

const (
	ListForEndpointParamsStatusFailed  ListForEndpointParamsStatus = "failed"
	ListForEndpointParamsStatusPending ListForEndpointParamsStatus = "pending"
	ListForEndpointParamsStatusSuccess ListForEndpointParamsStatus = "success"
)

Defines values for ListForEndpointParamsStatus.

func (ListForEndpointParamsStatus) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ListForEndpointParamsStatus enum.

type ListForEndpointResponse added in v0.1.1

type ListForEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfWebhookDelivery
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListForEndpointResponse added in v0.1.1

func ParseListForEndpointResponse(rsp *http.Response) (*ListForEndpointResponse, error)

ParseListForEndpointResponse parses an HTTP response from a ListForEndpointWithResponse call

func (ListForEndpointResponse) ContentType added in v0.1.1

func (r ListForEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForEndpointResponse) Status added in v0.1.1

func (r ListForEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (ListForEndpointResponse) StatusCode added in v0.1.1

func (r ListForEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForInvoiceParams added in v0.2.0

type ListForInvoiceParams struct {
	InvoiceId    *string `form:"invoice_id,omitempty" json:"invoice_id,omitempty"`
	WorkLineId   *string `form:"work_line_id,omitempty" json:"work_line_id,omitempty"`
	PaymentId    *string `form:"payment_id,omitempty" json:"payment_id,omitempty"`
	ActivityType *string `form:"activity_type,omitempty" json:"activity_type,omitempty"`
	CreatedFrom  *string `form:"created_from,omitempty" json:"created_from,omitempty"`
	CreatedTo    *string `form:"created_to,omitempty" json:"created_to,omitempty"`

	// Sort Sort field. Allowed values: `created_at`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListForInvoiceParams defines parameters for ListForInvoice.

type ListForInvoiceResponse added in v0.2.0

type ListForInvoiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfActivity
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListForInvoiceResponse added in v0.2.0

func ParseListForInvoiceResponse(rsp *http.Response) (*ListForInvoiceResponse, error)

ParseListForInvoiceResponse parses an HTTP response from a ListForInvoiceWithResponse call

func (ListForInvoiceResponse) ContentType added in v0.2.0

func (r ListForInvoiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForInvoiceResponse) Status added in v0.2.0

func (r ListForInvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (ListForInvoiceResponse) StatusCode added in v0.2.0

func (r ListForInvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListForJobParams added in v0.2.0

type ListForJobParams struct {
	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId        *string `form:"job_id,omitempty" json:"job_id,omitempty"`
	WorkLineId   *string `form:"work_line_id,omitempty" json:"work_line_id,omitempty"`
	PaymentId    *string `form:"payment_id,omitempty" json:"payment_id,omitempty"`
	ActivityType *string `form:"activity_type,omitempty" json:"activity_type,omitempty"`
	CreatedFrom  *string `form:"created_from,omitempty" json:"created_from,omitempty"`
	CreatedTo    *string `form:"created_to,omitempty" json:"created_to,omitempty"`

	// Sort Sort field. Allowed values: `created_at`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListForJobParams defines parameters for ListForJob.

type ListForJobResponse added in v0.2.0

type ListForJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfActivity
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListForJobResponse added in v0.2.0

func ParseListForJobResponse(rsp *http.Response) (*ListForJobResponse, error)

ParseListForJobResponse parses an HTTP response from a ListForJobWithResponse call

func (ListForJobResponse) ContentType added in v0.2.0

func (r ListForJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListForJobResponse) Status added in v0.2.0

func (r ListForJobResponse) Status() string

Status returns HTTPResponse.Status

func (ListForJobResponse) StatusCode added in v0.2.0

func (r ListForJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListInvoiceParams added in v0.1.1

type ListInvoiceParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId         *string `form:"job_id,omitempty" json:"job_id,omitempty"`
	InvoiceNumber *string `form:"invoice_number,omitempty" json:"invoice_number,omitempty"`
	CustomerId    *string `form:"customer_id,omitempty" json:"customer_id,omitempty"`
	CustomerEmail *string `form:"customer_email,omitempty" json:"customer_email,omitempty"`

	// Status Filter by invoice lifecycle status. Use comma-separated values to match any supplied status. Allowed values: `draft`, `pending`, `paid`, `cancelled`. Example: `?status=pending,paid`.
	Status      *ListInvoiceParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	CreatedFrom *string                  `form:"created_from,omitempty" json:"created_from,omitempty"`
	CreatedTo   *string                  `form:"created_to,omitempty" json:"created_to,omitempty"`

	// Sort Sort field. Allowed values: `created_at`, `updated_at`, `invoice_number`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListInvoiceParams defines parameters for ListInvoice.

type ListInvoiceParamsStatus added in v0.1.1

type ListInvoiceParamsStatus string

ListInvoiceParamsStatus defines parameters for ListInvoice.

const (
	ListInvoiceParamsStatusCancelled ListInvoiceParamsStatus = "cancelled"
	ListInvoiceParamsStatusDraft     ListInvoiceParamsStatus = "draft"
	ListInvoiceParamsStatusPaid      ListInvoiceParamsStatus = "paid"
	ListInvoiceParamsStatusPending   ListInvoiceParamsStatus = "pending"
)

Defines values for ListInvoiceParamsStatus.

func (ListInvoiceParamsStatus) Valid added in v0.1.1

func (e ListInvoiceParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListInvoiceParamsStatus enum.

type ListInvoiceResponse added in v0.1.1

type ListInvoiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfInvoice
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListInvoiceResponse added in v0.1.1

func ParseListInvoiceResponse(rsp *http.Response) (*ListInvoiceResponse, error)

ParseListInvoiceResponse parses an HTTP response from a ListInvoiceWithResponse call

func (ListInvoiceResponse) ContentType added in v0.1.1

func (r ListInvoiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListInvoiceResponse) Status added in v0.1.1

func (r ListInvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (ListInvoiceResponse) StatusCode added in v0.1.1

func (r ListInvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListJobReportForJobParams added in v0.1.1

type ListJobReportForJobParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListJobReportForJobParams defines parameters for ListJobReportForJob.

type ListJobReportForJobResponse added in v0.1.1

type ListJobReportForJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfJobReport
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListJobReportForJobResponse added in v0.1.1

func ParseListJobReportForJobResponse(rsp *http.Response) (*ListJobReportForJobResponse, error)

ParseListJobReportForJobResponse parses an HTTP response from a ListJobReportForJobWithResponse call

func (ListJobReportForJobResponse) ContentType added in v0.1.1

func (r ListJobReportForJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListJobReportForJobResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ListJobReportForJobResponse) StatusCode added in v0.1.1

func (r ListJobReportForJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListJobReportParams added in v0.1.1

type ListJobReportParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListJobReportParams defines parameters for ListJobReport.

type ListJobReportResponse added in v0.1.1

type ListJobReportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfJobReport
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListJobReportResponse added in v0.1.1

func ParseListJobReportResponse(rsp *http.Response) (*ListJobReportResponse, error)

ParseListJobReportResponse parses an HTTP response from a ListJobReportWithResponse call

func (ListJobReportResponse) ContentType added in v0.1.1

func (r ListJobReportResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListJobReportResponse) Status added in v0.1.1

func (r ListJobReportResponse) Status() string

Status returns HTTPResponse.Status

func (ListJobReportResponse) StatusCode added in v0.1.1

func (r ListJobReportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListParams added in v0.1.1

type ListParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// Status Filter webhook deliveries by status: `pending`, `success`, or `failed`.
	Status           *ListParamsStatus `form:"status,omitempty" json:"status,omitempty"`
	StockVariationId *string           `form:"stock_variation_id,omitempty" json:"stock_variation_id,omitempty"`

	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId      *string           `form:"job_id,omitempty" json:"job_id,omitempty"`
	InvoiceId  *string           `form:"invoice_id,omitempty" json:"invoice_id,omitempty"`
	CustomerId *string           `form:"customer_id,omitempty" json:"customer_id,omitempty"`
	Sku        *string           `form:"sku,omitempty" json:"sku,omitempty"`
	Source     *ListParamsSource `form:"source,omitempty" json:"source,omitempty"`

	// Sort Sort field. Allowed values: `created_at`, `status`, `quantity`, `sku`. Default: `-created_at`. Prefix with `-` for descending order (for example `-created_at`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListParams defines parameters for List.

type ListParamsSource added in v0.1.1

type ListParamsSource string

ListParamsSource defines parameters for List.

const (
	ListParamsSourceGeneral ListParamsSource = "general"
	ListParamsSourceInvoice ListParamsSource = "invoice"
	ListParamsSourceJob     ListParamsSource = "job"
)

Defines values for ListParamsSource.

func (ListParamsSource) Valid added in v0.1.1

func (e ListParamsSource) Valid() bool

Valid indicates whether the value is a known member of the ListParamsSource enum.

type ListParamsStatus added in v0.1.1

type ListParamsStatus string

ListParamsStatus defines parameters for List.

const (
	ListParamsStatusNeedsOrdering     ListParamsStatus = "needs_ordering"
	ListParamsStatusReceived          ListParamsStatus = "received"
	ListParamsStatusWaitingOnDelivery ListParamsStatus = "waiting_on_delivery"
)

Defines values for ListParamsStatus.

func (ListParamsStatus) Valid added in v0.1.1

func (e ListParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListParamsStatus enum.

type ListPaymentParams added in v0.1.2

type ListPaymentParams struct {
	BusinessId    *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	InvoiceId     *string `form:"invoice_id,omitempty" json:"invoice_id,omitempty"`
	ChargedOnFrom *string `form:"charged_on_from,omitempty" json:"charged_on_from,omitempty"`
	ChargedOnTo   *string `form:"charged_on_to,omitempty" json:"charged_on_to,omitempty"`
	AmountMin     *string `form:"amount_min,omitempty" json:"amount_min,omitempty"`
	AmountMax     *string `form:"amount_max,omitempty" json:"amount_max,omitempty"`

	// Sort Sort field. Allowed values: `charged_on`, `created_at`. Default: `-charged_on`. Prefix with `-` for descending order (for example `-charged_on`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListPaymentParams defines parameters for ListPayment.

type ListPaymentResponse added in v0.1.2

type ListPaymentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfPayment
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListPaymentResponse added in v0.1.2

func ParseListPaymentResponse(rsp *http.Response) (*ListPaymentResponse, error)

ParseListPaymentResponse parses an HTTP response from a ListPaymentWithResponse call

func (ListPaymentResponse) ContentType added in v0.1.2

func (r ListPaymentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPaymentResponse) Status added in v0.1.2

func (r ListPaymentResponse) Status() string

Status returns HTTPResponse.Status

func (ListPaymentResponse) StatusCode added in v0.1.2

func (r ListPaymentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListResponse added in v0.1.1

type ListResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfBackOrder
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListResponse added in v0.1.1

func ParseListResponse(rsp *http.Response) (*ListResponse, error)

ParseListResponse parses an HTTP response from a ListWithResponse call

func (ListResponse) ContentType added in v0.1.1

func (r ListResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListResponse) Status added in v0.1.1

func (r ListResponse) Status() string

Status returns HTTPResponse.Status

func (ListResponse) StatusCode added in v0.1.1

func (r ListResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListResponseOfActivity added in v0.2.0

type ListResponseOfActivity struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Activity `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfActivity Standard public API list response with cursor pagination metadata.

type ListResponseOfAsset added in v0.1.1

type ListResponseOfAsset struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Asset `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfAsset Standard public API list response with cursor pagination metadata.

type ListResponseOfBackOrder added in v0.1.1

type ListResponseOfBackOrder struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]BackOrder `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfBackOrder Standard public API list response with cursor pagination metadata.

type ListResponseOfBusiness added in v0.1.1

type ListResponseOfBusiness struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Business `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfBusiness Standard public API list response with cursor pagination metadata.

type ListResponseOfChatMessage added in v0.1.1

type ListResponseOfChatMessage struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]ChatMessage `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfChatMessage Standard public API list response with cursor pagination metadata.

type ListResponseOfCustomer added in v0.1.1

type ListResponseOfCustomer struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Customer `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfCustomer Standard public API list response with cursor pagination metadata.

type ListResponseOfInvoice added in v0.1.1

type ListResponseOfInvoice struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Invoice `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfInvoice Standard public API list response with cursor pagination metadata.

type ListResponseOfJob added in v0.1.1

type ListResponseOfJob struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Job `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfJob Standard public API list response with cursor pagination metadata.

type ListResponseOfJobReport added in v0.1.1

type ListResponseOfJobReport struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]JobReport `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfJobReport Standard public API list response with cursor pagination metadata.

type ListResponseOfPartAuthorisation added in v0.1.1

type ListResponseOfPartAuthorisation struct {
	// Data Part lines on the job report. Each element includes a `pauth_...` `id` for submit decisions.
	Data *[]PartAuthorisation `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfPartAuthorisation Standard public API list response with cursor pagination metadata.

type ListResponseOfPayment added in v0.1.2

type ListResponseOfPayment struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Payment `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfPayment Standard public API list response with cursor pagination metadata.

type ListResponseOfService added in v0.1.1

type ListResponseOfService struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]Service `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfService Standard public API list response with cursor pagination metadata.

type ListResponseOfStockVariation added in v0.1.1

type ListResponseOfStockVariation struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]StockVariation `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfStockVariation Standard public API list response with cursor pagination metadata.

type ListResponseOfTeamMember added in v0.2.0

type ListResponseOfTeamMember struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]TeamMember `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfTeamMember Standard public API list response with cursor pagination metadata.

type ListResponseOfWebhookDelivery added in v0.1.1

type ListResponseOfWebhookDelivery struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]WebhookDelivery `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfWebhookDelivery Standard public API list response with cursor pagination metadata.

type ListResponseOfWebhookEndpoint added in v0.1.1

type ListResponseOfWebhookEndpoint struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]WebhookEndpoint `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfWebhookEndpoint Standard public API list response with cursor pagination metadata.

type ListResponseOfWebhookEventType added in v0.1.1

type ListResponseOfWebhookEventType struct {
	// Data Page of public resources returned by the list endpoint.
	Data *[]WebhookEventType `json:"data,omitempty"`

	// Pagination Cursor pagination metadata used by public list endpoints.
	Pagination *Pagination `json:"pagination,omitempty"`
}

ListResponseOfWebhookEventType Standard public API list response with cursor pagination metadata.

type ListServiceParams added in v0.1.1

type ListServiceParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	Name       *string `form:"name,omitempty" json:"name,omitempty"`

	// Sort Sort field. Allowed values: `order`, `name`, `price`, `category`. Default: `order`. Prefix with `-` for descending order (for example `-order`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListServiceParams defines parameters for ListService.

type ListServiceResponse added in v0.1.1

type ListServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfService
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListServiceResponse added in v0.1.1

func ParseListServiceResponse(rsp *http.Response) (*ListServiceResponse, error)

ParseListServiceResponse parses an HTTP response from a ListServiceWithResponse call

func (ListServiceResponse) ContentType added in v0.1.1

func (r ListServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListServiceResponse) Status added in v0.1.1

func (r ListServiceResponse) Status() string

Status returns HTTPResponse.Status

func (ListServiceResponse) StatusCode added in v0.1.1

func (r ListServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListStockVariationParams added in v0.1.1

type ListStockVariationParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`

	// Query Case-insensitive search across common name, email, phone, or public id fields.
	Query   *string `form:"query,omitempty" json:"query,omitempty"`
	Sku     *string `form:"sku,omitempty" json:"sku,omitempty"`
	Ean     *string `form:"ean,omitempty" json:"ean,omitempty"`
	Barcode *string `form:"barcode,omitempty" json:"barcode,omitempty"`

	// Sort Sort field. Allowed values: `name`, `sku`, `price`, `remaining_stock`. Default: `name`. Prefix with `-` for descending order (for example `-name`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListStockVariationParams defines parameters for ListStockVariation.

type ListStockVariationResponse added in v0.1.1

type ListStockVariationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfStockVariation
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListStockVariationResponse added in v0.1.1

func ParseListStockVariationResponse(rsp *http.Response) (*ListStockVariationResponse, error)

ParseListStockVariationResponse parses an HTTP response from a ListStockVariationWithResponse call

func (ListStockVariationResponse) ContentType added in v0.1.1

func (r ListStockVariationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListStockVariationResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ListStockVariationResponse) StatusCode added in v0.1.1

func (r ListStockVariationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamMemberParams added in v0.2.0

type ListTeamMemberParams struct {
	BusinessId *string `form:"business_id,omitempty" json:"business_id,omitempty"`
	IsMechanic *string `form:"is_mechanic,omitempty" json:"is_mechanic,omitempty"`
	Enabled    *string `form:"enabled,omitempty" json:"enabled,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListTeamMemberParams defines parameters for ListTeamMember.

type ListTeamMemberResponse added in v0.2.0

type ListTeamMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfTeamMember
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListTeamMemberResponse added in v0.2.0

func ParseListTeamMemberResponse(rsp *http.Response) (*ListTeamMemberResponse, error)

ParseListTeamMemberResponse parses an HTTP response from a ListTeamMemberWithResponse call

func (ListTeamMemberResponse) ContentType added in v0.2.0

func (r ListTeamMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamMemberResponse) Status added in v0.2.0

func (r ListTeamMemberResponse) Status() string

Status returns HTTPResponse.Status

func (ListTeamMemberResponse) StatusCode added in v0.2.0

func (r ListTeamMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhookEndpointParams added in v0.1.1

type ListWebhookEndpointParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListWebhookEndpointParams defines parameters for ListWebhookEndpoint.

type ListWebhookEndpointResponse added in v0.1.1

type ListWebhookEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfWebhookEndpoint
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListWebhookEndpointResponse added in v0.1.1

func ParseListWebhookEndpointResponse(rsp *http.Response) (*ListWebhookEndpointResponse, error)

ParseListWebhookEndpointResponse parses an HTTP response from a ListWebhookEndpointWithResponse call

func (ListWebhookEndpointResponse) ContentType added in v0.1.1

func (r ListWebhookEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhookEndpointResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ListWebhookEndpointResponse) StatusCode added in v0.1.1

func (r ListWebhookEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWebhookEventParams added in v0.1.1

type ListWebhookEventParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ListWebhookEventParams defines parameters for ListWebhookEvent.

type ListWebhookEventResponse added in v0.1.1

type ListWebhookEventResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfWebhookEventType
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseListWebhookEventResponse added in v0.1.1

func ParseListWebhookEventResponse(rsp *http.Response) (*ListWebhookEventResponse, error)

ParseListWebhookEventResponse parses an HTTP response from a ListWebhookEventWithResponse call

func (ListWebhookEventResponse) ContentType added in v0.1.1

func (r ListWebhookEventResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWebhookEventResponse) Status added in v0.1.1

func (r ListWebhookEventResponse) Status() string

Status returns HTTPResponse.Status

func (ListWebhookEventResponse) StatusCode added in v0.1.1

func (r ListWebhookEventResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MarkReadParams added in v0.1.1

type MarkReadParams struct {
	// JobId Optional public job id (`job_...`) to scope chat messages to one job.
	JobId *string `form:"job_id,omitempty" json:"job_id,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

MarkReadParams defines parameters for MarkRead.

type MarkReadResponse added in v0.1.1

type MarkReadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ChatMarkRead
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseMarkReadResponse added in v0.1.1

func ParseMarkReadResponse(rsp *http.Response) (*MarkReadResponse, error)

ParseMarkReadResponse parses an HTTP response from a MarkReadWithResponse call

func (MarkReadResponse) ContentType added in v0.1.1

func (r MarkReadResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MarkReadResponse) Status added in v0.1.1

func (r MarkReadResponse) Status() string

Status returns HTTPResponse.Status

func (MarkReadResponse) StatusCode added in v0.1.1

func (r MarkReadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MechanicAssignmentNotifications added in v0.1.1

type MechanicAssignmentNotifications struct {
	// Mechanic Notification control. Allowed values: `default`, `send`, or `skip`.
	Mechanic *MechanicAssignmentNotificationsMechanic `json:"mechanic,omitempty"`
}

MechanicAssignmentNotifications Notification options for a mechanic assignment change.

type MechanicAssignmentNotificationsMechanic added in v0.1.1

type MechanicAssignmentNotificationsMechanic string

MechanicAssignmentNotificationsMechanic Notification control. Allowed values: `default`, `send`, or `skip`.

const (
	MechanicAssignmentNotificationsMechanicDefault MechanicAssignmentNotificationsMechanic = "default"
	MechanicAssignmentNotificationsMechanicSend    MechanicAssignmentNotificationsMechanic = "send"
	MechanicAssignmentNotificationsMechanicSkip    MechanicAssignmentNotificationsMechanic = "skip"
)

Defines values for MechanicAssignmentNotificationsMechanic.

func (MechanicAssignmentNotificationsMechanic) Valid added in v0.1.1

Valid indicates whether the value is a known member of the MechanicAssignmentNotificationsMechanic enum.

type NextAvailableSlotParams added in v0.1.1

type NextAvailableSlotParams struct {
	// From Inclusive start date (`YYYY-MM-DD`). Optional; defaults to workshop-local today on availability and next_available_slot.
	From *openapi_types.Date `form:"from,omitempty" json:"from,omitempty"`

	// To Inclusive end date (`YYYY-MM-DD`). Optional; defaults to `from` + 42 days on availability, or `from` + 90 days on next_available_slot.
	To *openapi_types.Date `form:"to,omitempty" json:"to,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

NextAvailableSlotParams defines parameters for NextAvailableSlot.

type NextAvailableSlotResponse

type NextAvailableSlotResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NextAvailableSlotResult
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseNextAvailableSlotResponse added in v0.1.1

func ParseNextAvailableSlotResponse(rsp *http.Response) (*NextAvailableSlotResponse, error)

ParseNextAvailableSlotResponse parses an HTTP response from a NextAvailableSlotWithResponse call

func (NextAvailableSlotResponse) ContentType added in v0.1.1

func (r NextAvailableSlotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (NextAvailableSlotResponse) Status added in v0.1.1

func (r NextAvailableSlotResponse) Status() string

Status returns HTTPResponse.Status

func (NextAvailableSlotResponse) StatusCode added in v0.1.1

func (r NextAvailableSlotResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NextAvailableSlotResult added in v0.1.1

type NextAvailableSlotResult struct {
	// BusinessId Public business id for this availability result.
	BusinessId *string `json:"business_id,omitempty"`

	// Date Calendar date (`YYYY-MM-DD`). No time or timezone offset — use the date part only. Null when no bookable day is found.
	Date *openapi_types.Date `json:"date,omitempty"`

	// FulfilmentType Availability fulfilment mode for the returned slot. Allowed values: `collection` or `customer_drop_off`.
	FulfilmentType *NextAvailableSlotResultFulfilmentType `json:"fulfilment_type,omitempty"`

	// Object Resource object type. Always next_available_slot.
	Object *NextAvailableSlotResultObject `json:"object,omitempty"`

	// Slots Time windows for the returned date. Each slot includes `is_available` for capacity.
	Slots *[]AvailabilitySlot `json:"slots,omitempty"`
}

NextAvailableSlotResult Public response containing the next available booking date and any known time slots.

type NextAvailableSlotResultFulfilmentType added in v0.1.1

type NextAvailableSlotResultFulfilmentType string

NextAvailableSlotResultFulfilmentType Availability fulfilment mode for the returned slot. Allowed values: `collection` or `customer_drop_off`.

const (
	Collection      NextAvailableSlotResultFulfilmentType = "collection"
	CustomerDropOff NextAvailableSlotResultFulfilmentType = "customer_drop_off"
)

Defines values for NextAvailableSlotResultFulfilmentType.

func (NextAvailableSlotResultFulfilmentType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the NextAvailableSlotResultFulfilmentType enum.

type NextAvailableSlotResultObject added in v0.1.1

type NextAvailableSlotResultObject string

NextAvailableSlotResultObject Resource object type. Always next_available_slot.

const (
	NextAvailableSlot NextAvailableSlotResultObject = "next_available_slot"
)

Defines values for NextAvailableSlotResultObject.

func (NextAvailableSlotResultObject) Valid added in v0.1.1

Valid indicates whether the value is a known member of the NextAvailableSlotResultObject enum.

type Pagination added in v0.1.1

type Pagination struct {
	// HasMore True when another page is available after this response.
	HasMore *bool `json:"has_more,omitempty"`

	// NextCursor Opaque cursor to pass as the next request's cursor parameter. Null when there are no more pages.
	NextCursor *string `json:"next_cursor,omitempty"`
}

Pagination Cursor pagination metadata used by public list endpoints.

type PartAuthorisation added in v0.1.1

type PartAuthorisation struct {
	// Id Public part authorisation id, always prefixed `pauth_` (for example `pauth_01h2xexample`). Copy into `decisions[].id` when submitting approve/decline decisions.
	Id *string `json:"id,omitempty"`

	// JobId Public job id that owns the part authorisation.
	JobId *string `json:"job_id,omitempty"`

	// JobReportId Public job report id associated with the part, when available.
	JobReportId *string `json:"job_report_id,omitempty"`

	// Name Part or stock item display name.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always part_authorisation.
	Object *PartAuthorisationObject `json:"object,omitempty"`

	// Quantity Quantity requested or used.
	Quantity *float64 `json:"quantity,omitempty"`

	// ServiceItemName Public service item or checklist name associated with the part, when available.
	ServiceItemName *string `json:"service_item_name,omitempty"`

	// Status Part authorisation status. Allowed values: `not_sent`, `pending`, `approved`, or `declined`.
	Status *PartAuthorisationStatus `json:"status,omitempty"`
}

PartAuthorisation A single part line on a job report that the customer or integration can approve or decline.

type PartAuthorisationDecisionRequest

type PartAuthorisationDecisionRequest struct {
	// Decision Approval decision. Allowed values: `approved` or `declined`.
	Decision PartAuthorisationDecisionRequestDecision `json:"decision"`

	// Id Public part authorisation id (`pauth_...`). Must match `PartAuthorisation.id` from `GET .../part_authorisations` or `data.id` on a `part_authorisation.*` webhook.
	Id string `json:"id"`
}

PartAuthorisationDecisionRequest A single approve or decline decision for one part line on the job.

type PartAuthorisationDecisionRequestDecision added in v0.1.1

type PartAuthorisationDecisionRequestDecision string

PartAuthorisationDecisionRequestDecision Approval decision. Allowed values: `approved` or `declined`.

const (
	PartAuthorisationDecisionRequestDecisionApproved PartAuthorisationDecisionRequestDecision = "approved"
	PartAuthorisationDecisionRequestDecisionDeclined PartAuthorisationDecisionRequestDecision = "declined"
)

Defines values for PartAuthorisationDecisionRequestDecision.

func (PartAuthorisationDecisionRequestDecision) Valid added in v0.1.1

Valid indicates whether the value is a known member of the PartAuthorisationDecisionRequestDecision enum.

type PartAuthorisationDecisionSubmitRequest added in v0.1.1

type PartAuthorisationDecisionSubmitRequest struct {
	// Decisions One or more decisions. Use the `id` from each list item (for example `pauth_01h2xexample`).
	Decisions []PartAuthorisationDecisionRequest `json:"decisions"`
}

PartAuthorisationDecisionSubmitRequest Batch of approve/decline decisions for parts that already exist on a job report.

type PartAuthorisationObject added in v0.1.1

type PartAuthorisationObject string

PartAuthorisationObject Resource object type. Always part_authorisation.

const (
	PartAuthorisationObjectPartAuthorisation PartAuthorisationObject = "part_authorisation"
)

Defines values for PartAuthorisationObject.

func (PartAuthorisationObject) Valid added in v0.1.1

func (e PartAuthorisationObject) Valid() bool

Valid indicates whether the value is a known member of the PartAuthorisationObject enum.

type PartAuthorisationRequestCreateRequest added in v0.1.1

type PartAuthorisationRequestCreateRequest struct {
	// UpdateStatus Whether to move the related work line to the waiting-for-approval status when available.
	UpdateStatus *bool `json:"update_status,omitempty"`
}

PartAuthorisationRequestCreateRequest Request body for asking the customer to authorise pending parts.

type PartAuthorisationStatus added in v0.1.1

type PartAuthorisationStatus string

PartAuthorisationStatus Part authorisation status. Allowed values: `not_sent`, `pending`, `approved`, or `declined`.

const (
	PartAuthorisationStatusApproved PartAuthorisationStatus = "approved"
	PartAuthorisationStatusDeclined PartAuthorisationStatus = "declined"
	PartAuthorisationStatusNotSent  PartAuthorisationStatus = "not_sent"
	PartAuthorisationStatusPending  PartAuthorisationStatus = "pending"
)

Defines values for PartAuthorisationStatus.

func (PartAuthorisationStatus) Valid added in v0.1.1

func (e PartAuthorisationStatus) Valid() bool

Valid indicates whether the value is a known member of the PartAuthorisationStatus enum.

type PartAuthorisationsParams added in v0.1.1

type PartAuthorisationsParams struct {
	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

PartAuthorisationsParams defines parameters for PartAuthorisations.

type PartAuthorisationsResponse added in v0.1.1

type PartAuthorisationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfPartAuthorisation
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePartAuthorisationsResponse added in v0.1.1

func ParsePartAuthorisationsResponse(rsp *http.Response) (*PartAuthorisationsResponse, error)

ParsePartAuthorisationsResponse parses an HTTP response from a PartAuthorisationsWithResponse call

func (PartAuthorisationsResponse) ContentType added in v0.1.1

func (r PartAuthorisationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PartAuthorisationsResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (PartAuthorisationsResponse) StatusCode added in v0.1.1

func (r PartAuthorisationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Payment added in v0.1.1

type Payment struct {
	// Amount Payment amount in invoice currency units.
	Amount *float64 `json:"amount,omitempty"`

	// ChargedOn UTC timestamp when the payment was charged or recorded.
	ChargedOn *time.Time `json:"charged_on,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// InvoiceId Public invoice id this payment belongs to.
	InvoiceId *string `json:"invoice_id,omitempty"`

	// Object Resource object type. Always payment.
	Object *PaymentObject `json:"object,omitempty"`

	// Origin Where the payment was processed. Allowed values: `workshop`, `stripe`, `sum_up`, `square`, or `zettle`.
	Origin *PaymentOrigin `json:"origin,omitempty"`

	// PaymentMethod Payment method recorded against the invoice. Allowed values: `cash`, `card`, `layaway`, `bacs`, or `other`.
	PaymentMethod *PaymentPaymentMethod `json:"payment_method,omitempty"`

	// PaymentType Payment type. Allowed values: `pre_payment`, `invoice_payment`, or `refund`.
	PaymentType *PaymentPaymentType `json:"payment_type,omitempty"`

	// ProcessorReference External processor reference id for reconciliation, when available.
	ProcessorReference *string `json:"processor_reference,omitempty"`

	// ProcessorReferenceType Type of external processor reference, for example stripe_payment_intent_id or square_payment_id.
	ProcessorReferenceType *string `json:"processor_reference_type,omitempty"`
}

Payment Public representation of a payment recorded against an invoice.

type PaymentLinkParams added in v0.1.1

type PaymentLinkParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

PaymentLinkParams defines parameters for PaymentLink.

type PaymentLinkResponse added in v0.1.1

type PaymentLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfInvoicePaymentLink
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePaymentLinkResponse added in v0.1.1

func ParsePaymentLinkResponse(rsp *http.Response) (*PaymentLinkResponse, error)

ParsePaymentLinkResponse parses an HTTP response from a PaymentLinkWithResponse call

func (PaymentLinkResponse) ContentType added in v0.1.1

func (r PaymentLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PaymentLinkResponse) Status added in v0.1.1

func (r PaymentLinkResponse) Status() string

Status returns HTTPResponse.Status

func (PaymentLinkResponse) StatusCode added in v0.1.1

func (r PaymentLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PaymentObject added in v0.1.1

type PaymentObject string

PaymentObject Resource object type. Always payment.

const (
	PaymentObjectPayment PaymentObject = "payment"
)

Defines values for PaymentObject.

func (PaymentObject) Valid added in v0.1.1

func (e PaymentObject) Valid() bool

Valid indicates whether the value is a known member of the PaymentObject enum.

type PaymentOrigin added in v0.1.1

type PaymentOrigin string

PaymentOrigin Where the payment was processed. Allowed values: `workshop`, `stripe`, `sum_up`, `square`, or `zettle`.

const (
	Square   PaymentOrigin = "square"
	Stripe   PaymentOrigin = "stripe"
	SumUp    PaymentOrigin = "sum_up"
	Workshop PaymentOrigin = "workshop"
	Zettle   PaymentOrigin = "zettle"
)

Defines values for PaymentOrigin.

func (PaymentOrigin) Valid added in v0.1.1

func (e PaymentOrigin) Valid() bool

Valid indicates whether the value is a known member of the PaymentOrigin enum.

type PaymentPaymentMethod added in v0.1.1

type PaymentPaymentMethod string

PaymentPaymentMethod Payment method recorded against the invoice. Allowed values: `cash`, `card`, `layaway`, `bacs`, or `other`.

const (
	PaymentPaymentMethodBacs    PaymentPaymentMethod = "bacs"
	PaymentPaymentMethodCard    PaymentPaymentMethod = "card"
	PaymentPaymentMethodCash    PaymentPaymentMethod = "cash"
	PaymentPaymentMethodLayaway PaymentPaymentMethod = "layaway"
	PaymentPaymentMethodOther   PaymentPaymentMethod = "other"
)

Defines values for PaymentPaymentMethod.

func (PaymentPaymentMethod) Valid added in v0.1.1

func (e PaymentPaymentMethod) Valid() bool

Valid indicates whether the value is a known member of the PaymentPaymentMethod enum.

type PaymentPaymentType added in v0.1.2

type PaymentPaymentType string

PaymentPaymentType Payment type. Allowed values: `pre_payment`, `invoice_payment`, or `refund`.

const (
	InvoicePayment PaymentPaymentType = "invoice_payment"
	PrePayment     PaymentPaymentType = "pre_payment"
	Refund         PaymentPaymentType = "refund"
)

Defines values for PaymentPaymentType.

func (PaymentPaymentType) Valid added in v0.1.2

func (e PaymentPaymentType) Valid() bool

Valid indicates whether the value is a known member of the PaymentPaymentType enum.

type PaymentRefundCreateRequest added in v0.1.1

type PaymentRefundCreateRequest struct {
	// Amount Refund amount in invoice currency units.
	Amount *float64 `json:"amount,omitempty"`

	// PaymentMethod Refund method recorded against the payment.
	PaymentMethod PaymentRefundCreateRequestPaymentMethod `json:"payment_method"`

	// Reason Optional refund reason.
	Reason *string `json:"reason,omitempty"`
}

PaymentRefundCreateRequest Request body for recording a refund against a payment.

type PaymentRefundCreateRequestPaymentMethod added in v0.1.1

type PaymentRefundCreateRequestPaymentMethod string

PaymentRefundCreateRequestPaymentMethod Refund method recorded against the payment.

const (
	PaymentRefundCreateRequestPaymentMethodBacs    PaymentRefundCreateRequestPaymentMethod = "bacs"
	PaymentRefundCreateRequestPaymentMethodCard    PaymentRefundCreateRequestPaymentMethod = "card"
	PaymentRefundCreateRequestPaymentMethodCash    PaymentRefundCreateRequestPaymentMethod = "cash"
	PaymentRefundCreateRequestPaymentMethodLayaway PaymentRefundCreateRequestPaymentMethod = "layaway"
	PaymentRefundCreateRequestPaymentMethodOther   PaymentRefundCreateRequestPaymentMethod = "other"
)

Defines values for PaymentRefundCreateRequestPaymentMethod.

func (PaymentRefundCreateRequestPaymentMethod) Valid added in v0.1.1

Valid indicates whether the value is a known member of the PaymentRefundCreateRequestPaymentMethod enum.

type PdfParams added in v0.1.1

type PdfParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

PdfParams defines parameters for Pdf.

type PdfResponse added in v0.1.1

type PdfResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoicePdf
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParsePdfResponse added in v0.1.1

func ParsePdfResponse(rsp *http.Response) (*PdfResponse, error)

ParsePdfResponse parses an HTTP response from a PdfWithResponse call

func (PdfResponse) ContentType added in v0.1.1

func (r PdfResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PdfResponse) Status added in v0.1.1

func (r PdfResponse) Status() string

Status returns HTTPResponse.Status

func (PdfResponse) StatusCode added in v0.1.1

func (r PdfResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReceiveJSONRequestBody added in v0.1.1

type ReceiveJSONRequestBody = BackOrderReceiveRequest

ReceiveJSONRequestBody defines body for Receive for application/json ContentType.

type ReceiveParams added in v0.1.1

type ReceiveParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ReceiveParams defines parameters for Receive.

type ReceiveResponse added in v0.1.1

type ReceiveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfBatchResponseOfBackOrder
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseReceiveResponse added in v0.1.1

func ParseReceiveResponse(rsp *http.Response) (*ReceiveResponse, error)

ParseReceiveResponse parses an HTTP response from a ReceiveWithResponse call

func (ReceiveResponse) ContentType added in v0.1.1

func (r ReceiveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReceiveResponse) Status added in v0.1.1

func (r ReceiveResponse) Status() string

Status returns HTTPResponse.Status

func (ReceiveResponse) StatusCode added in v0.1.1

func (r ReceiveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RecordPaymentJSONRequestBody added in v0.1.1

type RecordPaymentJSONRequestBody = InvoicePaymentCreateRequest

RecordPaymentJSONRequestBody defines body for RecordPayment for application/json ContentType.

type RecordPaymentParams added in v0.1.1

type RecordPaymentParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

RecordPaymentParams defines parameters for RecordPayment.

type RecordPaymentResponse added in v0.1.1

type RecordPaymentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfPayment
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRecordPaymentResponse added in v0.1.1

func ParseRecordPaymentResponse(rsp *http.Response) (*RecordPaymentResponse, error)

ParseRecordPaymentResponse parses an HTTP response from a RecordPaymentWithResponse call

func (RecordPaymentResponse) ContentType added in v0.1.1

func (r RecordPaymentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RecordPaymentResponse) Status added in v0.1.1

func (r RecordPaymentResponse) Status() string

Status returns HTTPResponse.Status

func (RecordPaymentResponse) StatusCode added in v0.1.1

func (r RecordPaymentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RefundJSONRequestBody added in v0.1.1

type RefundJSONRequestBody = PaymentRefundCreateRequest

RefundJSONRequestBody defines body for Refund for application/json ContentType.

type RefundParams added in v0.1.1

type RefundParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

RefundParams defines parameters for Refund.

type RefundResponse added in v0.1.1

type RefundResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfPayment
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRefundResponse added in v0.1.1

func ParseRefundResponse(rsp *http.Response) (*RefundResponse, error)

ParseRefundResponse parses an HTTP response from a RefundWithResponse call

func (RefundResponse) ContentType added in v0.1.1

func (r RefundResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RefundResponse) Status added in v0.1.1

func (r RefundResponse) Status() string

Status returns HTTPResponse.Status

func (RefundResponse) StatusCode added in v0.1.1

func (r RefundResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceWorkLineServicesJSONRequestBody added in v0.1.1

type ReplaceWorkLineServicesJSONRequestBody = JobWorkLineServicesUpdateRequest

ReplaceWorkLineServicesJSONRequestBody defines body for ReplaceWorkLineServices for application/json ContentType.

type ReplaceWorkLineServicesParams added in v0.1.1

type ReplaceWorkLineServicesParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ReplaceWorkLineServicesParams defines parameters for ReplaceWorkLineServices.

type ReplaceWorkLineServicesResponse added in v0.1.1

type ReplaceWorkLineServicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseReplaceWorkLineServicesResponse added in v0.1.1

func ParseReplaceWorkLineServicesResponse(rsp *http.Response) (*ReplaceWorkLineServicesResponse, error)

ParseReplaceWorkLineServicesResponse parses an HTTP response from a ReplaceWorkLineServicesWithResponse call

func (ReplaceWorkLineServicesResponse) ContentType added in v0.1.1

func (r ReplaceWorkLineServicesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReplaceWorkLineServicesResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (ReplaceWorkLineServicesResponse) StatusCode added in v0.1.1

func (r ReplaceWorkLineServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplayParams added in v0.1.1

type ReplayParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

ReplayParams defines parameters for Replay.

type ReplayResponse added in v0.1.1

type ReplayResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *CommandResponseOfWebhookDelivery
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseReplayResponse added in v0.1.1

func ParseReplayResponse(rsp *http.Response) (*ReplayResponse, error)

ParseReplayResponse parses an HTTP response from a ReplayWithResponse call

func (ReplayResponse) ContentType added in v0.1.1

func (r ReplayResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReplayResponse) Status added in v0.1.1

func (r ReplayResponse) Status() string

Status returns HTTPResponse.Status

func (ReplayResponse) StatusCode added in v0.1.1

func (r ReplayResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequestPartAuthorisationJSONRequestBody added in v0.1.1

type RequestPartAuthorisationJSONRequestBody = PartAuthorisationRequestCreateRequest

RequestPartAuthorisationJSONRequestBody defines body for RequestPartAuthorisation for application/json ContentType.

type RequestPartAuthorisationParams added in v0.1.1

type RequestPartAuthorisationParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

RequestPartAuthorisationParams defines parameters for RequestPartAuthorisation.

type RequestPartAuthorisationResponse added in v0.1.1

type RequestPartAuthorisationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfBatchResponseOfPartAuthorisation
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRequestPartAuthorisationResponse added in v0.1.1

func ParseRequestPartAuthorisationResponse(rsp *http.Response) (*RequestPartAuthorisationResponse, error)

ParseRequestPartAuthorisationResponse parses an HTTP response from a RequestPartAuthorisationWithResponse call

func (RequestPartAuthorisationResponse) ContentType added in v0.1.1

func (r RequestPartAuthorisationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RequestPartAuthorisationResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (RequestPartAuthorisationResponse) StatusCode added in v0.1.1

func (r RequestPartAuthorisationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RetryInvoiceIntegrationSyncParams added in v0.1.1

type RetryInvoiceIntegrationSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

RetryInvoiceIntegrationSyncParams defines parameters for RetryInvoiceIntegrationSync.

type RetryInvoiceIntegrationSyncResponse added in v0.1.1

type RetryInvoiceIntegrationSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationSyncCommand
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRetryInvoiceIntegrationSyncResponse added in v0.1.1

func ParseRetryInvoiceIntegrationSyncResponse(rsp *http.Response) (*RetryInvoiceIntegrationSyncResponse, error)

ParseRetryInvoiceIntegrationSyncResponse parses an HTTP response from a RetryInvoiceIntegrationSyncWithResponse call

func (RetryInvoiceIntegrationSyncResponse) ContentType added in v0.1.1

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RetryInvoiceIntegrationSyncResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (RetryInvoiceIntegrationSyncResponse) StatusCode added in v0.1.1

StatusCode returns HTTPResponse.StatusCode

type RotateSecretParams added in v0.1.1

type RotateSecretParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

RotateSecretParams defines parameters for RotateSecret.

type RotateSecretResponse added in v0.1.1

type RotateSecretResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfWebhookEndpointWithSecret
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseRotateSecretResponse added in v0.1.1

func ParseRotateSecretResponse(rsp *http.Response) (*RotateSecretResponse, error)

ParseRotateSecretResponse parses an HTTP response from a RotateSecretWithResponse call

func (RotateSecretResponse) ContentType added in v0.1.1

func (r RotateSecretResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RotateSecretResponse) Status added in v0.1.1

func (r RotateSecretResponse) Status() string

Status returns HTTPResponse.Status

func (RotateSecretResponse) StatusCode added in v0.1.1

func (r RotateSecretResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SendJSONRequestBody added in v0.1.1

type SendJSONRequestBody = InvoiceSendRequest

SendJSONRequestBody defines body for Send for application/json ContentType.

type SendParams added in v0.1.1

type SendParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

SendParams defines parameters for Send.

type SendResponse added in v0.1.1

type SendResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfInvoice
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseSendResponse added in v0.1.1

func ParseSendResponse(rsp *http.Response) (*SendResponse, error)

ParseSendResponse parses an HTTP response from a SendWithResponse call

func (SendResponse) ContentType added in v0.1.1

func (r SendResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SendResponse) Status added in v0.1.1

func (r SendResponse) Status() string

Status returns HTTPResponse.Status

func (SendResponse) StatusCode added in v0.1.1

func (r SendResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Service added in v0.1.1

type Service struct {
	// BusinessId Public business id that owns this service.
	BusinessId *string `json:"business_id,omitempty"`

	// Category Public category name for grouping services in the catalogue.
	Category *string `json:"category,omitempty"`

	// Currency ISO 4217 currency code for the service price. Currently `GBP`.
	Currency *ServiceCurrency `json:"currency,omitempty"`

	// Description Public description of what the service includes.
	Description *string `json:"description,omitempty"`

	// DurationMinutes Estimated service duration in minutes, when configured.
	DurationMinutes *int32 `json:"duration_minutes,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// ImageUrl Public image URL for the service, when configured.
	ImageUrl *string `json:"image_url,omitempty"`

	// Name Public service name shown to customers and API users.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always service.
	Object *ServiceObject `json:"object,omitempty"`

	// Order Display order within the service category.
	Order *int32 `json:"order,omitempty"`

	// Price Effective public price for set_price services. Non-fixed pricing models return 0.
	Price *float64 `json:"price,omitempty"`

	// PricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.
	PricingType *ServicePricingType `json:"pricing_type,omitempty"`

	// UpdatedAt UTC timestamp when the service was last updated, when available.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`
}

Service Public service catalogue entry.

type ServiceCreateRequest added in v0.1.1

type ServiceCreateRequest struct {
	// Category Public category name. Workshop creates the category for the business if it does not exist.
	Category string `json:"category"`

	// Description Description of what the service includes.
	Description *string `json:"description,omitempty"`

	// DurationMinutes Estimated duration in minutes.
	DurationMinutes *int32 `json:"duration_minutes,omitempty"`

	// ImageUrl Public image URL to associate with the service.
	ImageUrl *string `json:"image_url,omitempty"`

	// Name Service name shown in the public catalogue.
	Name string `json:"name"`

	// Price Raw service price. Required by callers for set_price services; ignored in public display for other pricing models.
	Price *float64 `json:"price,omitempty"`

	// PricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.
	PricingType *ServiceCreateRequestPricingType `json:"pricing_type,omitempty"`

	// Visibility Catalogue visibility. Allowed values: `external_and_internal`, `internal_only`, or `disabled`.
	Visibility *ServiceCreateRequestVisibility `json:"visibility,omitempty"`
}

ServiceCreateRequest Public API request for creating a service in a business catalogue.

type ServiceCreateRequestPricingType added in v0.1.1

type ServiceCreateRequestPricingType string

ServiceCreateRequestPricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.

const (
	ServiceCreateRequestPricingTypePriceOnAssessment ServiceCreateRequestPricingType = "price_on_assessment"
	ServiceCreateRequestPricingTypePriceOnRequest    ServiceCreateRequestPricingType = "price_on_request"
	ServiceCreateRequestPricingTypeSetPrice          ServiceCreateRequestPricingType = "set_price"
)

Defines values for ServiceCreateRequestPricingType.

func (ServiceCreateRequestPricingType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ServiceCreateRequestPricingType enum.

type ServiceCreateRequestVisibility added in v0.1.1

type ServiceCreateRequestVisibility string

ServiceCreateRequestVisibility Catalogue visibility. Allowed values: `external_and_internal`, `internal_only`, or `disabled`.

const (
	ServiceCreateRequestVisibilityDisabled            ServiceCreateRequestVisibility = "disabled"
	ServiceCreateRequestVisibilityExternalAndInternal ServiceCreateRequestVisibility = "external_and_internal"
	ServiceCreateRequestVisibilityInternalOnly        ServiceCreateRequestVisibility = "internal_only"
)

Defines values for ServiceCreateRequestVisibility.

func (ServiceCreateRequestVisibility) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ServiceCreateRequestVisibility enum.

type ServiceCurrency added in v0.1.1

type ServiceCurrency string

ServiceCurrency ISO 4217 currency code for the service price. Currently `GBP`.

const (
	GBP ServiceCurrency = "GBP"
)

Defines values for ServiceCurrency.

func (ServiceCurrency) Valid added in v0.1.1

func (e ServiceCurrency) Valid() bool

Valid indicates whether the value is a known member of the ServiceCurrency enum.

type ServiceInstance added in v0.1.1

type ServiceInstance struct {
	// Id Public service instance id (`svinst_...`).
	Id *string `json:"id,omitempty"`

	// Name Service name at the time the job is returned.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always service_instance.
	Object *ServiceInstanceObject `json:"object,omitempty"`

	// Quantity Quantity of this service instance on the work line.
	Quantity *float64 `json:"quantity,omitempty"`

	// ServiceId Public service id (`svc_...`) this instance was created from.
	ServiceId *string `json:"service_id,omitempty"`

	// UnitPrice Unit price for this service, when pricing is exposed publicly.
	UnitPrice *float64 `json:"unit_price,omitempty"`
}

ServiceInstance One service instance booked on a work line.

type ServiceInstanceInput added in v0.1.1

type ServiceInstanceInput struct {
	// Quantity Quantity of this service on the work line. Defaults to `1` when omitted.
	Quantity *float64 `json:"quantity,omitempty"`

	// ServiceId Required. Public catalogue service id (`svc_...` from `GET .../services`).
	ServiceId string `json:"service_id"`
}

ServiceInstanceInput One catalogue service to book on a work line.

type ServiceInstanceObject added in v0.1.1

type ServiceInstanceObject string

ServiceInstanceObject Resource object type. Always service_instance.

const (
	ServiceInstanceObjectServiceInstance ServiceInstanceObject = "service_instance"
)

Defines values for ServiceInstanceObject.

func (ServiceInstanceObject) Valid added in v0.1.1

func (e ServiceInstanceObject) Valid() bool

Valid indicates whether the value is a known member of the ServiceInstanceObject enum.

type ServiceObject added in v0.1.1

type ServiceObject string

ServiceObject Resource object type. Always service.

const (
	ServiceObjectService ServiceObject = "service"
)

Defines values for ServiceObject.

func (ServiceObject) Valid added in v0.1.1

func (e ServiceObject) Valid() bool

Valid indicates whether the value is a known member of the ServiceObject enum.

type ServicePricingType added in v0.1.1

type ServicePricingType string

ServicePricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.

const (
	ServicePricingTypePriceOnAssessment ServicePricingType = "price_on_assessment"
	ServicePricingTypePriceOnRequest    ServicePricingType = "price_on_request"
	ServicePricingTypeSetPrice          ServicePricingType = "set_price"
)

Defines values for ServicePricingType.

func (ServicePricingType) Valid added in v0.1.1

func (e ServicePricingType) Valid() bool

Valid indicates whether the value is a known member of the ServicePricingType enum.

type ServiceUpdateRequest added in v0.1.1

type ServiceUpdateRequest struct {
	// Category New public category name. Workshop creates the category for the business if it does not exist.
	Category *string `json:"category,omitempty"`

	// Description New description of what the service includes.
	Description *string `json:"description,omitempty"`

	// DurationMinutes New estimated duration in minutes.
	DurationMinutes *int32 `json:"duration_minutes,omitempty"`

	// ImageUrl New public image URL. Send an empty value to clear the service image.
	ImageUrl *string `json:"image_url,omitempty"`

	// Name New service name shown in the public catalogue.
	Name *string `json:"name,omitempty"`

	// Price New raw service price. Public responses show this only when pricing_type is set_price.
	Price *float64 `json:"price,omitempty"`

	// PricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.
	PricingType *ServiceUpdateRequestPricingType `json:"pricing_type,omitempty"`

	// Visibility Catalogue visibility. Allowed values: `external_and_internal`, `internal_only`, or `disabled`.
	Visibility *ServiceUpdateRequestVisibility `json:"visibility,omitempty"`
}

ServiceUpdateRequest Public API request for updating selected service catalogue fields. Null properties are ignored so callers can patch only the fields they need.

type ServiceUpdateRequestPricingType added in v0.1.1

type ServiceUpdateRequestPricingType string

ServiceUpdateRequestPricingType Pricing model. Allowed values: `set_price`, `price_on_assessment`, or `price_on_request`.

const (
	PriceOnAssessment ServiceUpdateRequestPricingType = "price_on_assessment"
	PriceOnRequest    ServiceUpdateRequestPricingType = "price_on_request"
	SetPrice          ServiceUpdateRequestPricingType = "set_price"
)

Defines values for ServiceUpdateRequestPricingType.

func (ServiceUpdateRequestPricingType) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ServiceUpdateRequestPricingType enum.

type ServiceUpdateRequestVisibility added in v0.1.1

type ServiceUpdateRequestVisibility string

ServiceUpdateRequestVisibility Catalogue visibility. Allowed values: `external_and_internal`, `internal_only`, or `disabled`.

const (
	ServiceUpdateRequestVisibilityDisabled            ServiceUpdateRequestVisibility = "disabled"
	ServiceUpdateRequestVisibilityExternalAndInternal ServiceUpdateRequestVisibility = "external_and_internal"
	ServiceUpdateRequestVisibilityInternalOnly        ServiceUpdateRequestVisibility = "internal_only"
)

Defines values for ServiceUpdateRequestVisibility.

func (ServiceUpdateRequestVisibility) Valid added in v0.1.1

Valid indicates whether the value is a known member of the ServiceUpdateRequestVisibility enum.

type ServicesParams added in v0.1.1

type ServicesParams struct {
	Name *string `form:"name,omitempty" json:"name,omitempty"`

	// Sort Sort field. Allowed values: `order`, `name`, `price`, `category`. Default: `order`. Prefix with `-` for descending order (for example `-order`).
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Limit Maximum number of resources to return (1–100, default 10).
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Opaque page cursor from a previous list response's `pagination.next_cursor`.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`
}

ServicesParams defines parameters for Services.

type ServicesResponse added in v0.1.1

type ServicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ListResponseOfService
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseServicesResponse added in v0.1.1

func ParseServicesResponse(rsp *http.Response) (*ServicesResponse, error)

ParseServicesResponse parses an HTTP response from a ServicesWithResponse call

func (ServicesResponse) ContentType added in v0.1.1

func (r ServicesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ServicesResponse) Status added in v0.1.1

func (r ServicesResponse) Status() string

Status returns HTTPResponse.Status

func (ServicesResponse) StatusCode added in v0.1.1

func (r ServicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StockItemSummary added in v0.1.1

type StockItemSummary struct {
	// Brand Brand or manufacturer, when configured.
	Brand *string `json:"brand,omitempty"`

	// Category Stock category name, when configured.
	Category *string `json:"category,omitempty"`

	// CategoryId Stock category public id (`stkcat_...`), when configured.
	CategoryId *string `json:"category_id,omitempty"`

	// Description Stock item description, when configured.
	Description *string `json:"description,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// ImageUrl Public image URL for the stock item, when configured.
	ImageUrl *string `json:"image_url,omitempty"`

	// Location Storage location within the workshop, when configured.
	Location *string `json:"location,omitempty"`

	// Name Stock item display name.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always `stock_item`.
	Object *StockItemSummaryObject `json:"object,omitempty"`

	// Vendor Supplier or vendor name, when configured.
	Vendor *string `json:"vendor,omitempty"`
}

StockItemSummary Parent stock item details embedded on stock variation responses.

type StockItemSummaryObject added in v0.1.1

type StockItemSummaryObject string

StockItemSummaryObject Resource object type. Always `stock_item`.

const (
	StockItem StockItemSummaryObject = "stock_item"
)

Defines values for StockItemSummaryObject.

func (StockItemSummaryObject) Valid added in v0.1.1

func (e StockItemSummaryObject) Valid() bool

Valid indicates whether the value is a known member of the StockItemSummaryObject enum.

type StockVariation added in v0.1.1

type StockVariation struct {
	// Barcode Barcode value, when configured.
	Barcode *string `json:"barcode,omitempty"`

	// BusinessId Workshop that owns this stock variation.
	BusinessId *string `json:"business_id,omitempty"`

	// Currency Currency code for the price, for example GBP.
	Currency *string `json:"currency,omitempty"`

	// Ean European Article Number, when configured.
	Ean *string `json:"ean,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// ManufacturerSku Manufacturer SKU, when configured.
	ManufacturerSku *string `json:"manufacturer_sku,omitempty"`

	// Name Variation display name.
	Name *string `json:"name,omitempty"`

	// Object Resource object type. Always `stock_variation`.
	Object *StockVariationObject `json:"object,omitempty"`

	// Price Selling price, when configured.
	Price *float64 `json:"price,omitempty"`

	// RemainingStock Remaining quantity when inventory tracking is enabled.
	RemainingStock *float64 `json:"remaining_stock,omitempty"`

	// Sku Workshop SKU, when configured.
	Sku *string `json:"sku,omitempty"`

	// StockItem Parent stock item details embedded on stock variation responses.
	StockItem *StockItemSummary `json:"stock_item,omitempty"`

	// StockItemId Parent stock item public id (`stki_...`).
	StockItemId *string `json:"stock_item_id,omitempty"`

	// TrackingEnabled Whether inventory tracking is enabled for this variation.
	TrackingEnabled *bool `json:"tracking_enabled,omitempty"`
}

StockVariation Public stock variation (SKU) read model for catalogue and inventory lookup.

type StockVariationObject added in v0.1.1

type StockVariationObject string

StockVariationObject Resource object type. Always `stock_variation`.

const (
	StockVariationObjectStockVariation StockVariationObject = "stock_variation"
)

Defines values for StockVariationObject.

func (StockVariationObject) Valid added in v0.1.1

func (e StockVariationObject) Valid() bool

Valid indicates whether the value is a known member of the StockVariationObject enum.

type SubmitPartAuthorisationDecisionsJSONRequestBody added in v0.1.1

type SubmitPartAuthorisationDecisionsJSONRequestBody = PartAuthorisationDecisionSubmitRequest

SubmitPartAuthorisationDecisionsJSONRequestBody defines body for SubmitPartAuthorisationDecisions for application/json ContentType.

type SubmitPartAuthorisationDecisionsParams added in v0.1.1

type SubmitPartAuthorisationDecisionsParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

SubmitPartAuthorisationDecisionsParams defines parameters for SubmitPartAuthorisationDecisions.

type SubmitPartAuthorisationDecisionsResponse added in v0.1.1

type SubmitPartAuthorisationDecisionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfBatchResponseOfPartAuthorisation
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseSubmitPartAuthorisationDecisionsResponse added in v0.1.1

func ParseSubmitPartAuthorisationDecisionsResponse(rsp *http.Response) (*SubmitPartAuthorisationDecisionsResponse, error)

ParseSubmitPartAuthorisationDecisionsResponse parses an HTTP response from a SubmitPartAuthorisationDecisionsWithResponse call

func (SubmitPartAuthorisationDecisionsResponse) ContentType added in v0.1.1

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubmitPartAuthorisationDecisionsResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (SubmitPartAuthorisationDecisionsResponse) StatusCode added in v0.1.1

StatusCode returns HTTPResponse.StatusCode

type TeamMember added in v0.2.0

type TeamMember struct {
	// BusinessId Public business id for the workshop this membership belongs to.
	BusinessId *string `json:"business_id,omitempty"`

	// DisplayName Display name for the team member when known.
	DisplayName *string `json:"display_name,omitempty"`

	// Enabled True when this member is enabled for the business.
	Enabled *bool `json:"enabled,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// ImageUrl Profile image URL for the team member when known.
	ImageUrl *string `json:"image_url,omitempty"`

	// IsMechanic True when this member can be assigned as a mechanic.
	IsMechanic *bool `json:"is_mechanic,omitempty"`

	// Object Resource object type. Always team_member.
	Object *TeamMemberObject `json:"object,omitempty"`

	// RoleKey Public role key for the member, when known.
	RoleKey *string `json:"role_key,omitempty"`

	// RoleName Public role display name for the member, when known.
	RoleName *string `json:"role_name,omitempty"`

	// UserId Stable BikeBook user id that can be used to group the same person across multiple businesses.
	UserId *string `json:"user_id,omitempty"`
}

TeamMember Public representation of a workshop team member.

type TeamMemberObject added in v0.2.0

type TeamMemberObject string

TeamMemberObject Resource object type. Always team_member.

const (
	TeamMemberObjectTeamMember TeamMemberObject = "team_member"
)

Defines values for TeamMemberObject.

func (TeamMemberObject) Valid added in v0.2.0

func (e TeamMemberObject) Valid() bool

Valid indicates whether the value is a known member of the TeamMemberObject enum.

type TriggerCustomerSyncJSONRequestBody added in v0.1.1

type TriggerCustomerSyncJSONRequestBody = IntegrationPullSyncRequest

TriggerCustomerSyncJSONRequestBody defines body for TriggerCustomerSync for application/json ContentType.

type TriggerCustomerSyncParams added in v0.1.1

type TriggerCustomerSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

TriggerCustomerSyncParams defines parameters for TriggerCustomerSync.

type TriggerCustomerSyncResponse added in v0.1.1

type TriggerCustomerSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *IntegrationPullSyncAccepted
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseTriggerCustomerSyncResponse added in v0.1.1

func ParseTriggerCustomerSyncResponse(rsp *http.Response) (*TriggerCustomerSyncResponse, error)

ParseTriggerCustomerSyncResponse parses an HTTP response from a TriggerCustomerSyncWithResponse call

func (TriggerCustomerSyncResponse) ContentType added in v0.1.1

func (r TriggerCustomerSyncResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TriggerCustomerSyncResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (TriggerCustomerSyncResponse) StatusCode added in v0.1.1

func (r TriggerCustomerSyncResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TriggerInvoiceIntegrationSyncJSONRequestBody added in v0.1.1

type TriggerInvoiceIntegrationSyncJSONRequestBody = IntegrationSyncTriggerRequest

TriggerInvoiceIntegrationSyncJSONRequestBody defines body for TriggerInvoiceIntegrationSync for application/json ContentType.

type TriggerInvoiceIntegrationSyncParams added in v0.1.1

type TriggerInvoiceIntegrationSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

TriggerInvoiceIntegrationSyncParams defines parameters for TriggerInvoiceIntegrationSync.

type TriggerInvoiceIntegrationSyncResponse added in v0.1.1

type TriggerInvoiceIntegrationSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *IntegrationSyncCommand
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseTriggerInvoiceIntegrationSyncResponse added in v0.1.1

func ParseTriggerInvoiceIntegrationSyncResponse(rsp *http.Response) (*TriggerInvoiceIntegrationSyncResponse, error)

ParseTriggerInvoiceIntegrationSyncResponse parses an HTTP response from a TriggerInvoiceIntegrationSyncWithResponse call

func (TriggerInvoiceIntegrationSyncResponse) ContentType added in v0.1.1

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TriggerInvoiceIntegrationSyncResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (TriggerInvoiceIntegrationSyncResponse) StatusCode added in v0.1.1

StatusCode returns HTTPResponse.StatusCode

type TriggerStockSyncJSONRequestBody added in v0.1.1

type TriggerStockSyncJSONRequestBody = IntegrationPullSyncRequest

TriggerStockSyncJSONRequestBody defines body for TriggerStockSync for application/json ContentType.

type TriggerStockSyncParams added in v0.1.1

type TriggerStockSyncParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

TriggerStockSyncParams defines parameters for TriggerStockSync.

type TriggerStockSyncResponse added in v0.1.1

type TriggerStockSyncResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON202      *IntegrationPullSyncAccepted
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseTriggerStockSyncResponse added in v0.1.1

func ParseTriggerStockSyncResponse(rsp *http.Response) (*TriggerStockSyncResponse, error)

ParseTriggerStockSyncResponse parses an HTTP response from a TriggerStockSyncWithResponse call

func (TriggerStockSyncResponse) ContentType added in v0.1.1

func (r TriggerStockSyncResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (TriggerStockSyncResponse) Status added in v0.1.1

func (r TriggerStockSyncResponse) Status() string

Status returns HTTPResponse.Status

func (TriggerStockSyncResponse) StatusCode added in v0.1.1

func (r TriggerStockSyncResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateAssetJSONRequestBody added in v0.1.1

type UpdateAssetJSONRequestBody = AssetUpdateRequest

UpdateAssetJSONRequestBody defines body for UpdateAsset for application/json ContentType.

type UpdateAssetParams added in v0.1.1

type UpdateAssetParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateAssetParams defines parameters for UpdateAsset.

type UpdateAssetResponse added in v0.1.1

type UpdateAssetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Asset
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateAssetResponse added in v0.1.1

func ParseUpdateAssetResponse(rsp *http.Response) (*UpdateAssetResponse, error)

ParseUpdateAssetResponse parses an HTTP response from a UpdateAssetWithResponse call

func (UpdateAssetResponse) ContentType added in v0.1.1

func (r UpdateAssetResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateAssetResponse) Status added in v0.1.1

func (r UpdateAssetResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAssetResponse) StatusCode added in v0.1.1

func (r UpdateAssetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCustomerJSONRequestBody added in v0.1.1

type UpdateCustomerJSONRequestBody = CustomerUpdateRequest

UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType.

type UpdateCustomerParams added in v0.1.1

type UpdateCustomerParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateCustomerParams defines parameters for UpdateCustomer.

type UpdateCustomerResponse added in v0.1.1

type UpdateCustomerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Customer
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateCustomerResponse added in v0.1.1

func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error)

ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call

func (UpdateCustomerResponse) ContentType added in v0.1.1

func (r UpdateCustomerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateCustomerResponse) Status added in v0.1.1

func (r UpdateCustomerResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateCustomerResponse) StatusCode added in v0.1.1

func (r UpdateCustomerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateInvoiceItemJSONRequestBody added in v0.1.1

type UpdateInvoiceItemJSONRequestBody = InvoiceItemUpdateRequest

UpdateInvoiceItemJSONRequestBody defines body for UpdateInvoiceItem for application/json ContentType.

type UpdateInvoiceItemParams added in v0.1.1

type UpdateInvoiceItemParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateInvoiceItemParams defines parameters for UpdateInvoiceItem.

type UpdateInvoiceItemResponse added in v0.1.1

type UpdateInvoiceItemResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *InvoiceItem
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateInvoiceItemResponse added in v0.1.1

func ParseUpdateInvoiceItemResponse(rsp *http.Response) (*UpdateInvoiceItemResponse, error)

ParseUpdateInvoiceItemResponse parses an HTTP response from a UpdateInvoiceItemWithResponse call

func (UpdateInvoiceItemResponse) ContentType added in v0.1.1

func (r UpdateInvoiceItemResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateInvoiceItemResponse) Status added in v0.1.1

func (r UpdateInvoiceItemResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateInvoiceItemResponse) StatusCode added in v0.1.1

func (r UpdateInvoiceItemResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateInvoiceJSONRequestBody added in v0.1.1

type UpdateInvoiceJSONRequestBody = InvoiceUpdateRequest

UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType.

type UpdateInvoiceParams added in v0.1.1

type UpdateInvoiceParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateInvoiceParams defines parameters for UpdateInvoice.

type UpdateInvoiceResponse added in v0.1.1

type UpdateInvoiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfInvoice
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateInvoiceResponse added in v0.1.1

func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error)

ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call

func (UpdateInvoiceResponse) ContentType added in v0.1.1

func (r UpdateInvoiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateInvoiceResponse) Status added in v0.1.1

func (r UpdateInvoiceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateInvoiceResponse) StatusCode added in v0.1.1

func (r UpdateInvoiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateJSONRequestBody added in v0.1.1

type UpdateJSONRequestBody = BackOrderUpdateRequest

UpdateJSONRequestBody defines body for Update for application/json ContentType.

type UpdateJobJSONRequestBody added in v0.1.1

type UpdateJobJSONRequestBody = JobUpdateRequest

UpdateJobJSONRequestBody defines body for UpdateJob for application/json ContentType.

type UpdateJobParams added in v0.1.1

type UpdateJobParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateJobParams defines parameters for UpdateJob.

type UpdateJobResponse added in v0.1.1

type UpdateJobResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateJobResponse added in v0.1.1

func ParseUpdateJobResponse(rsp *http.Response) (*UpdateJobResponse, error)

ParseUpdateJobResponse parses an HTTP response from a UpdateJobWithResponse call

func (UpdateJobResponse) ContentType added in v0.1.1

func (r UpdateJobResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateJobResponse) Status added in v0.1.1

func (r UpdateJobResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateJobResponse) StatusCode added in v0.1.1

func (r UpdateJobResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateParams added in v0.1.1

type UpdateParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateParams defines parameters for Update.

type UpdateResponse added in v0.1.1

type UpdateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BackOrder
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateResponse added in v0.1.1

func ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error)

ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call

func (UpdateResponse) ContentType added in v0.1.1

func (r UpdateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateResponse) Status added in v0.1.1

func (r UpdateResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateResponse) StatusCode added in v0.1.1

func (r UpdateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateServiceJSONRequestBody added in v0.1.1

type UpdateServiceJSONRequestBody = ServiceUpdateRequest

UpdateServiceJSONRequestBody defines body for UpdateService for application/json ContentType.

type UpdateServiceParams added in v0.1.1

type UpdateServiceParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateServiceParams defines parameters for UpdateService.

type UpdateServiceResponse added in v0.1.1

type UpdateServiceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Service
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateServiceResponse added in v0.1.1

func ParseUpdateServiceResponse(rsp *http.Response) (*UpdateServiceResponse, error)

ParseUpdateServiceResponse parses an HTTP response from a UpdateServiceWithResponse call

func (UpdateServiceResponse) ContentType added in v0.1.1

func (r UpdateServiceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateServiceResponse) Status added in v0.1.1

func (r UpdateServiceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateServiceResponse) StatusCode added in v0.1.1

func (r UpdateServiceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWebhookEndpointJSONRequestBody added in v0.1.1

type UpdateWebhookEndpointJSONRequestBody = WebhookEndpointUpdateRequest

UpdateWebhookEndpointJSONRequestBody defines body for UpdateWebhookEndpoint for application/json ContentType.

type UpdateWebhookEndpointParams added in v0.1.1

type UpdateWebhookEndpointParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateWebhookEndpointParams defines parameters for UpdateWebhookEndpoint.

type UpdateWebhookEndpointResponse added in v0.1.1

type UpdateWebhookEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WebhookEndpoint
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateWebhookEndpointResponse added in v0.1.1

func ParseUpdateWebhookEndpointResponse(rsp *http.Response) (*UpdateWebhookEndpointResponse, error)

ParseUpdateWebhookEndpointResponse parses an HTTP response from a UpdateWebhookEndpointWithResponse call

func (UpdateWebhookEndpointResponse) ContentType added in v0.1.1

func (r UpdateWebhookEndpointResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateWebhookEndpointResponse) Status added in v0.1.1

Status returns HTTPResponse.Status

func (UpdateWebhookEndpointResponse) StatusCode added in v0.1.1

func (r UpdateWebhookEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWorkLineJSONRequestBody added in v0.1.1

type UpdateWorkLineJSONRequestBody = JobWorkLineUpdateRequest

UpdateWorkLineJSONRequestBody defines body for UpdateWorkLine for application/json ContentType.

type UpdateWorkLineParams added in v0.1.1

type UpdateWorkLineParams struct {
	// Authorization Bearer Workshop API key. Example: Bearer bbk_live_...
	Authorization *string `json:"Authorization,omitempty"`

	// XBikebookRequestId Optional request id supplied by the client for support correlation.
	XBikebookRequestId *string `json:"X-Bikebook-Request-Id,omitempty"`

	// IdempotencyKey Required for public write operations to make retries safe.
	IdempotencyKey string `json:"Idempotency-Key"`
}

UpdateWorkLineParams defines parameters for UpdateWorkLine.

type UpdateWorkLineResponse added in v0.1.1

type UpdateWorkLineResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CommandResponseOfJob
	JSON400      *ErrorResponse
	JSON401      *ErrorResponse
	JSON403      *ErrorResponse
	JSON404      *ErrorResponse
	JSON409      *ErrorResponse
	JSON429      *ErrorResponse
	JSON500      *ErrorResponse
}

func ParseUpdateWorkLineResponse added in v0.1.1

func ParseUpdateWorkLineResponse(rsp *http.Response) (*UpdateWorkLineResponse, error)

ParseUpdateWorkLineResponse parses an HTTP response from a UpdateWorkLineWithResponse call

func (UpdateWorkLineResponse) ContentType added in v0.1.1

func (r UpdateWorkLineResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateWorkLineResponse) Status added in v0.1.1

func (r UpdateWorkLineResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateWorkLineResponse) StatusCode added in v0.1.1

func (r UpdateWorkLineResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type WebhookDelivery added in v0.1.1

type WebhookDelivery struct {
	// AttemptCount Number of delivery attempts made so far.
	AttemptCount *int32 `json:"attempt_count,omitempty"`

	// BusinessId Public business id that generated the webhook event.
	BusinessId *string `json:"business_id,omitempty"`

	// CreatedAt UTC timestamp when this delivery row was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// EventId Stable public event id for the underlying domain event.
	EventId *string `json:"event_id,omitempty"`

	// EventType Public webhook event type, such as job.created.
	EventType *string `json:"event_type,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// LastErrorMessage Error summary from the most recent failed delivery attempt.
	LastErrorMessage *string `json:"last_error_message,omitempty"`

	// LastResponseBody Truncated response body summary from the most recent delivery attempt.
	LastResponseBody *string `json:"last_response_body,omitempty"`

	// LastResponseCode HTTP status code from the most recent delivery attempt, when available.
	LastResponseCode *int32 `json:"last_response_code,omitempty"`

	// NextRetryAt UTC timestamp for the next retry attempt, when scheduled.
	NextRetryAt *time.Time `json:"next_retry_at,omitempty"`

	// Object Resource object type. Always webhook_delivery.
	Object *WebhookDeliveryObject `json:"object,omitempty"`

	// Payload Serialised JSON payload that was or will be posted to the endpoint.
	Payload *string `json:"payload,omitempty"`

	// ProcessedAt UTC timestamp when the delivery succeeded or was marked permanently failed.
	ProcessedAt *time.Time `json:"processed_at,omitempty"`

	// ReplayedFromDeliveryId Opaque delivery id that this replay was created from, when applicable.
	ReplayedFromDeliveryId *string `json:"replayed_from_delivery_id,omitempty"`

	// Status Delivery attempt status. Allowed values: `pending`, `success`, or `failed`.
	Status *WebhookDeliveryStatus `json:"status,omitempty"`

	// WebhookEndpointId Opaque webhook endpoint id that received this delivery.
	WebhookEndpointId *string `json:"webhook_endpoint_id,omitempty"`
}

WebhookDelivery Public representation of an outbound webhook delivery attempt.

type WebhookDeliveryObject added in v0.1.1

type WebhookDeliveryObject string

WebhookDeliveryObject Resource object type. Always webhook_delivery.

const (
	WebhookDeliveryObjectWebhookDelivery WebhookDeliveryObject = "webhook_delivery"
)

Defines values for WebhookDeliveryObject.

func (WebhookDeliveryObject) Valid added in v0.1.1

func (e WebhookDeliveryObject) Valid() bool

Valid indicates whether the value is a known member of the WebhookDeliveryObject enum.

type WebhookDeliveryStatus added in v0.1.1

type WebhookDeliveryStatus string

WebhookDeliveryStatus Delivery attempt status. Allowed values: `pending`, `success`, or `failed`.

const (
	WebhookDeliveryStatusFailed  WebhookDeliveryStatus = "failed"
	WebhookDeliveryStatusPending WebhookDeliveryStatus = "pending"
	WebhookDeliveryStatusSuccess WebhookDeliveryStatus = "success"
)

Defines values for WebhookDeliveryStatus.

func (WebhookDeliveryStatus) Valid added in v0.1.1

func (e WebhookDeliveryStatus) Valid() bool

Valid indicates whether the value is a known member of the WebhookDeliveryStatus enum.

type WebhookEndpoint added in v0.1.1

type WebhookEndpoint struct {
	// ApiVersion Public API payload version this subscription receives. Existing v1 endpoints remain pinned to v1.
	ApiVersion *string `json:"api_version,omitempty"`

	// BusinessIds Public business ids this endpoint is subscribed to.
	BusinessIds *[]string `json:"business_ids,omitempty"`

	// CreatedAt UTC timestamp when this endpoint was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description Human-readable description for this endpoint.
	Description *string `json:"description,omitempty"`

	// Enabled Whether delivery to this endpoint is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// EventTypes Subscribed webhook event names.
	EventTypes *[]WebhookEndpointEventTypes `json:"event_types,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Object Resource object type. Always webhook_endpoint.
	Object *WebhookEndpointObject `json:"object,omitempty"`

	// PreviousSigningSecretExpiresAt UTC timestamp when the previous signing secret stops being included in signatures.
	PreviousSigningSecretExpiresAt *time.Time `json:"previous_signing_secret_expires_at,omitempty"`

	// PreviousSigningSecretPrefix Display-only prefix for the previous signing secret during rotation, when active.
	PreviousSigningSecretPrefix *string `json:"previous_signing_secret_prefix,omitempty"`

	// SigningSecretPrefix Display-only prefix for identifying the active signing secret.
	SigningSecretPrefix *string `json:"signing_secret_prefix,omitempty"`

	// UpdatedAt UTC timestamp when this endpoint was last updated.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// Url HTTPS URL that Workshop posts webhook events to.
	Url *string `json:"url,omitempty"`
}

WebhookEndpoint Public representation of an outbound webhook endpoint subscription.

type WebhookEndpointCreateRequest added in v0.1.1

type WebhookEndpointCreateRequest struct {
	// BusinessIds Public business ids (`org_...`) this endpoint is subscribed to. At least one id is required; each id must be allowed for your API key.
	BusinessIds []string `json:"business_ids"`

	// Description Optional human-readable description for this endpoint.
	Description *string `json:"description,omitempty"`

	// Enabled Whether delivery to this endpoint is enabled. Defaults to true when omitted.
	Enabled *bool `json:"enabled,omitempty"`

	// EventTypes Webhook events to subscribe to. Use `*` to receive all supported events, or list specific event names.
	EventTypes *[]WebhookEndpointCreateRequestEventTypes `json:"event_types,omitempty"`

	// Url HTTPS URL that Workshop will POST webhook events to.
	Url string `json:"url"`
}

WebhookEndpointCreateRequest Request body for creating an outbound webhook endpoint subscription.

type WebhookEndpointCreateRequestEventTypes added in v0.1.1

type WebhookEndpointCreateRequestEventTypes string

WebhookEndpointCreateRequestEventTypes defines model for WebhookEndpointCreateRequest.EventTypes.

const (
	WebhookEndpointCreateRequestEventTypesAsterisk                 WebhookEndpointCreateRequestEventTypes = "*"
	WebhookEndpointCreateRequestEventTypesChatMessageCreated       WebhookEndpointCreateRequestEventTypes = "chat_message.created"
	WebhookEndpointCreateRequestEventTypesCustomerCreated          WebhookEndpointCreateRequestEventTypes = "customer.created"
	WebhookEndpointCreateRequestEventTypesCustomerDeleted          WebhookEndpointCreateRequestEventTypes = "customer.deleted"
	WebhookEndpointCreateRequestEventTypesCustomerUpdated          WebhookEndpointCreateRequestEventTypes = "customer.updated"
	WebhookEndpointCreateRequestEventTypesInvoiceCreated           WebhookEndpointCreateRequestEventTypes = "invoice.created"
	WebhookEndpointCreateRequestEventTypesInvoiceItemCreated       WebhookEndpointCreateRequestEventTypes = "invoice_item.created"
	WebhookEndpointCreateRequestEventTypesInvoiceItemDeleted       WebhookEndpointCreateRequestEventTypes = "invoice_item.deleted"
	WebhookEndpointCreateRequestEventTypesInvoiceItemUpdated       WebhookEndpointCreateRequestEventTypes = "invoice_item.updated"
	WebhookEndpointCreateRequestEventTypesInvoiceStatusChanged     WebhookEndpointCreateRequestEventTypes = "invoice.status_changed"
	WebhookEndpointCreateRequestEventTypesInvoiceUpdated           WebhookEndpointCreateRequestEventTypes = "invoice.updated"
	WebhookEndpointCreateRequestEventTypesJobCreated               WebhookEndpointCreateRequestEventTypes = "job.created"
	WebhookEndpointCreateRequestEventTypesJobDeleted               WebhookEndpointCreateRequestEventTypes = "job.deleted"
	WebhookEndpointCreateRequestEventTypesJobReportCreated         WebhookEndpointCreateRequestEventTypes = "job_report.created"
	WebhookEndpointCreateRequestEventTypesJobReportDeleted         WebhookEndpointCreateRequestEventTypes = "job_report.deleted"
	WebhookEndpointCreateRequestEventTypesJobReportUpdated         WebhookEndpointCreateRequestEventTypes = "job_report.updated"
	WebhookEndpointCreateRequestEventTypesJobUpdated               WebhookEndpointCreateRequestEventTypes = "job.updated"
	WebhookEndpointCreateRequestEventTypesMessageCancelled         WebhookEndpointCreateRequestEventTypes = "message.cancelled"
	WebhookEndpointCreateRequestEventTypesMessageDelivered         WebhookEndpointCreateRequestEventTypes = "message.delivered"
	WebhookEndpointCreateRequestEventTypesMessageFailed            WebhookEndpointCreateRequestEventTypes = "message.failed"
	WebhookEndpointCreateRequestEventTypesMessageQueued            WebhookEndpointCreateRequestEventTypes = "message.queued"
	WebhookEndpointCreateRequestEventTypesMessageSent              WebhookEndpointCreateRequestEventTypes = "message.sent"
	WebhookEndpointCreateRequestEventTypesPartAuthorisationCreated WebhookEndpointCreateRequestEventTypes = "part_authorisation.created"
	WebhookEndpointCreateRequestEventTypesPartAuthorisationDeleted WebhookEndpointCreateRequestEventTypes = "part_authorisation.deleted"
	WebhookEndpointCreateRequestEventTypesPartAuthorisationUpdated WebhookEndpointCreateRequestEventTypes = "part_authorisation.updated"
	WebhookEndpointCreateRequestEventTypesWorkLineStatusChanged    WebhookEndpointCreateRequestEventTypes = "work_line.status_changed"
)

Defines values for WebhookEndpointCreateRequestEventTypes.

func (WebhookEndpointCreateRequestEventTypes) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WebhookEndpointCreateRequestEventTypes enum.

type WebhookEndpointEventTypes added in v0.1.1

type WebhookEndpointEventTypes string

WebhookEndpointEventTypes defines model for WebhookEndpoint.EventTypes.

const (
	WebhookEndpointEventTypesChatMessageCreated       WebhookEndpointEventTypes = "chat_message.created"
	WebhookEndpointEventTypesCustomerCreated          WebhookEndpointEventTypes = "customer.created"
	WebhookEndpointEventTypesCustomerDeleted          WebhookEndpointEventTypes = "customer.deleted"
	WebhookEndpointEventTypesCustomerUpdated          WebhookEndpointEventTypes = "customer.updated"
	WebhookEndpointEventTypesInvoiceCreated           WebhookEndpointEventTypes = "invoice.created"
	WebhookEndpointEventTypesInvoiceItemCreated       WebhookEndpointEventTypes = "invoice_item.created"
	WebhookEndpointEventTypesInvoiceItemDeleted       WebhookEndpointEventTypes = "invoice_item.deleted"
	WebhookEndpointEventTypesInvoiceItemUpdated       WebhookEndpointEventTypes = "invoice_item.updated"
	WebhookEndpointEventTypesInvoiceStatusChanged     WebhookEndpointEventTypes = "invoice.status_changed"
	WebhookEndpointEventTypesInvoiceUpdated           WebhookEndpointEventTypes = "invoice.updated"
	WebhookEndpointEventTypesJobCreated               WebhookEndpointEventTypes = "job.created"
	WebhookEndpointEventTypesJobDeleted               WebhookEndpointEventTypes = "job.deleted"
	WebhookEndpointEventTypesJobReportCreated         WebhookEndpointEventTypes = "job_report.created"
	WebhookEndpointEventTypesJobReportDeleted         WebhookEndpointEventTypes = "job_report.deleted"
	WebhookEndpointEventTypesJobReportUpdated         WebhookEndpointEventTypes = "job_report.updated"
	WebhookEndpointEventTypesJobUpdated               WebhookEndpointEventTypes = "job.updated"
	WebhookEndpointEventTypesMessageCancelled         WebhookEndpointEventTypes = "message.cancelled"
	WebhookEndpointEventTypesMessageDelivered         WebhookEndpointEventTypes = "message.delivered"
	WebhookEndpointEventTypesMessageFailed            WebhookEndpointEventTypes = "message.failed"
	WebhookEndpointEventTypesMessageQueued            WebhookEndpointEventTypes = "message.queued"
	WebhookEndpointEventTypesMessageSent              WebhookEndpointEventTypes = "message.sent"
	WebhookEndpointEventTypesPartAuthorisationCreated WebhookEndpointEventTypes = "part_authorisation.created"
	WebhookEndpointEventTypesPartAuthorisationDeleted WebhookEndpointEventTypes = "part_authorisation.deleted"
	WebhookEndpointEventTypesPartAuthorisationUpdated WebhookEndpointEventTypes = "part_authorisation.updated"
	WebhookEndpointEventTypesWorkLineStatusChanged    WebhookEndpointEventTypes = "work_line.status_changed"
)

Defines values for WebhookEndpointEventTypes.

func (WebhookEndpointEventTypes) Valid added in v0.1.1

func (e WebhookEndpointEventTypes) Valid() bool

Valid indicates whether the value is a known member of the WebhookEndpointEventTypes enum.

type WebhookEndpointObject added in v0.1.1

type WebhookEndpointObject string

WebhookEndpointObject Resource object type. Always webhook_endpoint.

const (
	WebhookEndpointObjectWebhookEndpoint WebhookEndpointObject = "webhook_endpoint"
)

Defines values for WebhookEndpointObject.

func (WebhookEndpointObject) Valid added in v0.1.1

func (e WebhookEndpointObject) Valid() bool

Valid indicates whether the value is a known member of the WebhookEndpointObject enum.

type WebhookEndpointUpdateRequest added in v0.1.1

type WebhookEndpointUpdateRequest struct {
	// BusinessIds Public business ids this endpoint is subscribed to. Omit to leave unchanged.
	BusinessIds *[]string `json:"business_ids,omitempty"`

	// Description Human-readable description for this endpoint. Omit to leave unchanged.
	Description *string `json:"description,omitempty"`

	// Enabled Whether delivery to this endpoint is enabled. Omit to leave unchanged.
	Enabled *bool `json:"enabled,omitempty"`

	// EventTypes Webhook events to subscribe to. Use `*` to receive all supported events, or list specific event names.
	EventTypes *[]WebhookEndpointUpdateRequestEventTypes `json:"event_types,omitempty"`

	// Url HTTPS URL that Workshop will POST webhook events to. Omit to leave unchanged.
	Url *string `json:"url,omitempty"`
}

WebhookEndpointUpdateRequest Request body for updating an outbound webhook endpoint subscription.

type WebhookEndpointUpdateRequestEventTypes added in v0.1.1

type WebhookEndpointUpdateRequestEventTypes string

WebhookEndpointUpdateRequestEventTypes defines model for WebhookEndpointUpdateRequest.EventTypes.

const (
	WebhookEndpointUpdateRequestEventTypesAsterisk                 WebhookEndpointUpdateRequestEventTypes = "*"
	WebhookEndpointUpdateRequestEventTypesChatMessageCreated       WebhookEndpointUpdateRequestEventTypes = "chat_message.created"
	WebhookEndpointUpdateRequestEventTypesCustomerCreated          WebhookEndpointUpdateRequestEventTypes = "customer.created"
	WebhookEndpointUpdateRequestEventTypesCustomerDeleted          WebhookEndpointUpdateRequestEventTypes = "customer.deleted"
	WebhookEndpointUpdateRequestEventTypesCustomerUpdated          WebhookEndpointUpdateRequestEventTypes = "customer.updated"
	WebhookEndpointUpdateRequestEventTypesInvoiceCreated           WebhookEndpointUpdateRequestEventTypes = "invoice.created"
	WebhookEndpointUpdateRequestEventTypesInvoiceItemCreated       WebhookEndpointUpdateRequestEventTypes = "invoice_item.created"
	WebhookEndpointUpdateRequestEventTypesInvoiceItemDeleted       WebhookEndpointUpdateRequestEventTypes = "invoice_item.deleted"
	WebhookEndpointUpdateRequestEventTypesInvoiceItemUpdated       WebhookEndpointUpdateRequestEventTypes = "invoice_item.updated"
	WebhookEndpointUpdateRequestEventTypesInvoiceStatusChanged     WebhookEndpointUpdateRequestEventTypes = "invoice.status_changed"
	WebhookEndpointUpdateRequestEventTypesInvoiceUpdated           WebhookEndpointUpdateRequestEventTypes = "invoice.updated"
	WebhookEndpointUpdateRequestEventTypesJobCreated               WebhookEndpointUpdateRequestEventTypes = "job.created"
	WebhookEndpointUpdateRequestEventTypesJobDeleted               WebhookEndpointUpdateRequestEventTypes = "job.deleted"
	WebhookEndpointUpdateRequestEventTypesJobReportCreated         WebhookEndpointUpdateRequestEventTypes = "job_report.created"
	WebhookEndpointUpdateRequestEventTypesJobReportDeleted         WebhookEndpointUpdateRequestEventTypes = "job_report.deleted"
	WebhookEndpointUpdateRequestEventTypesJobReportUpdated         WebhookEndpointUpdateRequestEventTypes = "job_report.updated"
	WebhookEndpointUpdateRequestEventTypesJobUpdated               WebhookEndpointUpdateRequestEventTypes = "job.updated"
	WebhookEndpointUpdateRequestEventTypesMessageCancelled         WebhookEndpointUpdateRequestEventTypes = "message.cancelled"
	WebhookEndpointUpdateRequestEventTypesMessageDelivered         WebhookEndpointUpdateRequestEventTypes = "message.delivered"
	WebhookEndpointUpdateRequestEventTypesMessageFailed            WebhookEndpointUpdateRequestEventTypes = "message.failed"
	WebhookEndpointUpdateRequestEventTypesMessageQueued            WebhookEndpointUpdateRequestEventTypes = "message.queued"
	WebhookEndpointUpdateRequestEventTypesMessageSent              WebhookEndpointUpdateRequestEventTypes = "message.sent"
	WebhookEndpointUpdateRequestEventTypesPartAuthorisationCreated WebhookEndpointUpdateRequestEventTypes = "part_authorisation.created"
	WebhookEndpointUpdateRequestEventTypesPartAuthorisationDeleted WebhookEndpointUpdateRequestEventTypes = "part_authorisation.deleted"
	WebhookEndpointUpdateRequestEventTypesPartAuthorisationUpdated WebhookEndpointUpdateRequestEventTypes = "part_authorisation.updated"
	WebhookEndpointUpdateRequestEventTypesWorkLineStatusChanged    WebhookEndpointUpdateRequestEventTypes = "work_line.status_changed"
)

Defines values for WebhookEndpointUpdateRequestEventTypes.

func (WebhookEndpointUpdateRequestEventTypes) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WebhookEndpointUpdateRequestEventTypes enum.

type WebhookEndpointWithSecret added in v0.1.1

type WebhookEndpointWithSecret struct {
	// ApiVersion Public API payload version this subscription receives. Existing v1 endpoints remain pinned to v1.
	ApiVersion *string `json:"api_version,omitempty"`

	// BusinessIds Public business ids this endpoint is subscribed to.
	BusinessIds *[]string `json:"business_ids,omitempty"`

	// CreatedAt UTC timestamp when this endpoint was created.
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// Description Human-readable description for this endpoint.
	Description *string `json:"description,omitempty"`

	// Enabled Whether delivery to this endpoint is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// EventTypes Event type filters. A single * means all supported events.
	EventTypes *[]WebhookEndpointWithSecretEventTypes `json:"event_types,omitempty"`

	// Id Opaque resource-prefixed public identifier, such as job_... or cus_.... Internal database ids must never be assigned here.
	Id *string `json:"id,omitempty"`

	// Object Resource object type. Always webhook_endpoint.
	Object *WebhookEndpointWithSecretObject `json:"object,omitempty"`

	// PreviousSigningSecretExpiresAt UTC timestamp when the previous signing secret stops being included in signatures.
	PreviousSigningSecretExpiresAt *time.Time `json:"previous_signing_secret_expires_at,omitempty"`

	// PreviousSigningSecretPrefix Display-only prefix for the previous signing secret during rotation, when active.
	PreviousSigningSecretPrefix *string `json:"previous_signing_secret_prefix,omitempty"`

	// SigningSecret One-time signing secret used to verify Workshop webhook signatures. Store it securely.
	SigningSecret *string `json:"signing_secret,omitempty"`

	// SigningSecretPrefix Display-only prefix for identifying the active signing secret.
	SigningSecretPrefix *string `json:"signing_secret_prefix,omitempty"`

	// UpdatedAt UTC timestamp when this endpoint was last updated.
	UpdatedAt *time.Time `json:"updated_at,omitempty"`

	// Url HTTPS URL that Workshop posts webhook events to.
	Url *string `json:"url,omitempty"`
}

WebhookEndpointWithSecret Response returned when a webhook endpoint is created. The signing secret is only returned once.

type WebhookEndpointWithSecretEventTypes added in v0.1.1

type WebhookEndpointWithSecretEventTypes string

WebhookEndpointWithSecretEventTypes defines model for WebhookEndpointWithSecret.EventTypes.

const (
	WebhookEndpointWithSecretEventTypesChatMessageCreated       WebhookEndpointWithSecretEventTypes = "chat_message.created"
	WebhookEndpointWithSecretEventTypesCustomerCreated          WebhookEndpointWithSecretEventTypes = "customer.created"
	WebhookEndpointWithSecretEventTypesCustomerDeleted          WebhookEndpointWithSecretEventTypes = "customer.deleted"
	WebhookEndpointWithSecretEventTypesCustomerUpdated          WebhookEndpointWithSecretEventTypes = "customer.updated"
	WebhookEndpointWithSecretEventTypesInvoiceCreated           WebhookEndpointWithSecretEventTypes = "invoice.created"
	WebhookEndpointWithSecretEventTypesInvoiceItemCreated       WebhookEndpointWithSecretEventTypes = "invoice_item.created"
	WebhookEndpointWithSecretEventTypesInvoiceItemDeleted       WebhookEndpointWithSecretEventTypes = "invoice_item.deleted"
	WebhookEndpointWithSecretEventTypesInvoiceItemUpdated       WebhookEndpointWithSecretEventTypes = "invoice_item.updated"
	WebhookEndpointWithSecretEventTypesInvoiceStatusChanged     WebhookEndpointWithSecretEventTypes = "invoice.status_changed"
	WebhookEndpointWithSecretEventTypesInvoiceUpdated           WebhookEndpointWithSecretEventTypes = "invoice.updated"
	WebhookEndpointWithSecretEventTypesJobCreated               WebhookEndpointWithSecretEventTypes = "job.created"
	WebhookEndpointWithSecretEventTypesJobDeleted               WebhookEndpointWithSecretEventTypes = "job.deleted"
	WebhookEndpointWithSecretEventTypesJobReportCreated         WebhookEndpointWithSecretEventTypes = "job_report.created"
	WebhookEndpointWithSecretEventTypesJobReportDeleted         WebhookEndpointWithSecretEventTypes = "job_report.deleted"
	WebhookEndpointWithSecretEventTypesJobReportUpdated         WebhookEndpointWithSecretEventTypes = "job_report.updated"
	WebhookEndpointWithSecretEventTypesJobUpdated               WebhookEndpointWithSecretEventTypes = "job.updated"
	WebhookEndpointWithSecretEventTypesMessageCancelled         WebhookEndpointWithSecretEventTypes = "message.cancelled"
	WebhookEndpointWithSecretEventTypesMessageDelivered         WebhookEndpointWithSecretEventTypes = "message.delivered"
	WebhookEndpointWithSecretEventTypesMessageFailed            WebhookEndpointWithSecretEventTypes = "message.failed"
	WebhookEndpointWithSecretEventTypesMessageQueued            WebhookEndpointWithSecretEventTypes = "message.queued"
	WebhookEndpointWithSecretEventTypesMessageSent              WebhookEndpointWithSecretEventTypes = "message.sent"
	WebhookEndpointWithSecretEventTypesPartAuthorisationCreated WebhookEndpointWithSecretEventTypes = "part_authorisation.created"
	WebhookEndpointWithSecretEventTypesPartAuthorisationDeleted WebhookEndpointWithSecretEventTypes = "part_authorisation.deleted"
	WebhookEndpointWithSecretEventTypesPartAuthorisationUpdated WebhookEndpointWithSecretEventTypes = "part_authorisation.updated"
	WebhookEndpointWithSecretEventTypesWorkLineStatusChanged    WebhookEndpointWithSecretEventTypes = "work_line.status_changed"
)

Defines values for WebhookEndpointWithSecretEventTypes.

func (WebhookEndpointWithSecretEventTypes) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WebhookEndpointWithSecretEventTypes enum.

type WebhookEndpointWithSecretObject added in v0.1.1

type WebhookEndpointWithSecretObject string

WebhookEndpointWithSecretObject Resource object type. Always webhook_endpoint.

const (
	WebhookEndpointWithSecretObjectWebhookEndpoint WebhookEndpointWithSecretObject = "webhook_endpoint"
)

Defines values for WebhookEndpointWithSecretObject.

func (WebhookEndpointWithSecretObject) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WebhookEndpointWithSecretObject enum.

type WebhookEventType added in v0.1.1

type WebhookEventType struct {
	// Description Human-readable event description for API docs and UI.
	Description *string `json:"description,omitempty"`

	// Name Public event name, for example job.created.
	Name *string `json:"name,omitempty"`

	// PayloadObject Primary resource object emitted for this event type.
	PayloadObject *WebhookEventTypePayloadObject `json:"payload_object,omitempty"`

	// Status Catalog entry status. Currently `available`.
	Status *WebhookEventTypeStatus `json:"status,omitempty"`
}

WebhookEventType Public webhook event catalog entry.

type WebhookEventTypePayloadObject added in v0.1.1

type WebhookEventTypePayloadObject string

WebhookEventTypePayloadObject Primary resource object emitted for this event type.

const (
	WebhookEventTypePayloadObjectChatMessage       WebhookEventTypePayloadObject = "chat_message"
	WebhookEventTypePayloadObjectCustomer          WebhookEventTypePayloadObject = "customer"
	WebhookEventTypePayloadObjectInvoice           WebhookEventTypePayloadObject = "invoice"
	WebhookEventTypePayloadObjectInvoiceItem       WebhookEventTypePayloadObject = "invoice_item"
	WebhookEventTypePayloadObjectJob               WebhookEventTypePayloadObject = "job"
	WebhookEventTypePayloadObjectJobReport         WebhookEventTypePayloadObject = "job_report"
	WebhookEventTypePayloadObjectMessage           WebhookEventTypePayloadObject = "message"
	WebhookEventTypePayloadObjectPartAuthorisation WebhookEventTypePayloadObject = "part_authorisation"
	WebhookEventTypePayloadObjectWorkLine          WebhookEventTypePayloadObject = "work_line"
)

Defines values for WebhookEventTypePayloadObject.

func (WebhookEventTypePayloadObject) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WebhookEventTypePayloadObject enum.

type WebhookEventTypeStatus added in v0.1.1

type WebhookEventTypeStatus string

WebhookEventTypeStatus Catalog entry status. Currently `available`.

const (
	Available WebhookEventTypeStatus = "available"
)

Defines values for WebhookEventTypeStatus.

func (WebhookEventTypeStatus) Valid added in v0.1.1

func (e WebhookEventTypeStatus) Valid() bool

Valid indicates whether the value is a known member of the WebhookEventTypeStatus enum.

type WorkLineStatusChangeNotifications added in v0.1.1

type WorkLineStatusChangeNotifications struct {
	// Customer Notification control. Allowed values: `default`, `send`, or `skip`.
	Customer *WorkLineStatusChangeNotificationsCustomer `json:"customer,omitempty"`
}

WorkLineStatusChangeNotifications Notification options for a work-line status change.

type WorkLineStatusChangeNotificationsCustomer added in v0.1.1

type WorkLineStatusChangeNotificationsCustomer string

WorkLineStatusChangeNotificationsCustomer Notification control. Allowed values: `default`, `send`, or `skip`.

Defines values for WorkLineStatusChangeNotificationsCustomer.

func (WorkLineStatusChangeNotificationsCustomer) Valid added in v0.1.1

Valid indicates whether the value is a known member of the WorkLineStatusChangeNotificationsCustomer enum.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL