Documentation ¶
Overview ¶
Package servicesv1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.4 DO NOT EDIT.
Index ¶
- func NewAddAppointmentForServiceJobByServiceJobIdRequest(server string, serviceJobId string, ...) (*http.Request, error)
- func NewAddAppointmentForServiceJobByServiceJobIdRequestWithBody(server string, serviceJobId string, contentType string, body io.Reader) (*http.Request, error)
- func NewAssignAppointmentResourcesRequest(server string, serviceJobId string, appointmentId string, ...) (*http.Request, error)
- func NewAssignAppointmentResourcesRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, ...) (*http.Request, error)
- func NewCancelReservationRequest(server string, reservationId string, params *CancelReservationParams) (*http.Request, error)
- func NewCancelServiceJobByServiceJobIdRequest(server string, serviceJobId string, ...) (*http.Request, error)
- func NewCompleteServiceJobByServiceJobIdRequest(server string, serviceJobId string) (*http.Request, error)
- func NewCreateReservationRequest(server string, params *CreateReservationParams, ...) (*http.Request, error)
- func NewCreateReservationRequestWithBody(server string, params *CreateReservationParams, contentType string, ...) (*http.Request, error)
- func NewCreateServiceDocumentUploadDestinationRequest(server string, body CreateServiceDocumentUploadDestinationJSONRequestBody) (*http.Request, error)
- func NewCreateServiceDocumentUploadDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAppointmentSlotsRequest(server string, params *GetAppointmentSlotsParams) (*http.Request, error)
- func NewGetAppointmmentSlotsByJobIdRequest(server string, serviceJobId string, params *GetAppointmmentSlotsByJobIdParams) (*http.Request, error)
- func NewGetFixedSlotCapacityRequest(server string, resourceId string, params *GetFixedSlotCapacityParams, ...) (*http.Request, error)
- func NewGetFixedSlotCapacityRequestWithBody(server string, resourceId string, params *GetFixedSlotCapacityParams, ...) (*http.Request, error)
- func NewGetRangeSlotCapacityRequest(server string, resourceId string, params *GetRangeSlotCapacityParams, ...) (*http.Request, error)
- func NewGetRangeSlotCapacityRequestWithBody(server string, resourceId string, params *GetRangeSlotCapacityParams, ...) (*http.Request, error)
- func NewGetServiceJobByServiceJobIdRequest(server string, serviceJobId string) (*http.Request, error)
- func NewGetServiceJobsRequest(server string, params *GetServiceJobsParams) (*http.Request, error)
- func NewRescheduleAppointmentForServiceJobByServiceJobIdRequest(server string, serviceJobId string, appointmentId string, ...) (*http.Request, error)
- func NewRescheduleAppointmentForServiceJobByServiceJobIdRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, ...) (*http.Request, error)
- func NewSetAppointmentFulfillmentDataRequest(server string, serviceJobId string, appointmentId string, ...) (*http.Request, error)
- func NewSetAppointmentFulfillmentDataRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, ...) (*http.Request, error)
- func NewUpdateReservationRequest(server string, reservationId string, params *UpdateReservationParams, ...) (*http.Request, error)
- func NewUpdateReservationRequestWithBody(server string, reservationId string, params *UpdateReservationParams, ...) (*http.Request, error)
- func NewUpdateScheduleRequest(server string, resourceId string, params *UpdateScheduleParams, ...) (*http.Request, error)
- func NewUpdateScheduleRequestWithBody(server string, resourceId string, params *UpdateScheduleParams, ...) (*http.Request, error)
- type AddAppointmentForServiceJobByServiceJobIdJSONRequestBody
- type AddAppointmentForServiceJobByServiceJobIdResp
- type AddAppointmentRequest
- type Address
- type Appointment
- type AppointmentAppointmentStatus
- type AppointmentId
- type AppointmentResource
- type AppointmentResources
- type AppointmentSlot
- type AppointmentSlotReport
- type AppointmentSlotReportSchedulingType
- type AppointmentTime
- type AppointmentTimeInput
- type AssignAppointmentResourcesJSONRequestBody
- type AssignAppointmentResourcesRequest
- type AssignAppointmentResourcesResp
- type AssignAppointmentResourcesResponse
- type AssociatedItem
- type AssociatedItemItemStatus
- type AvailabilityRecord
- type AvailabilityRecords
- type Buyer
- type CancelReservationParams
- type CancelReservationResp
- type CancelReservationResponse
- type CancelServiceJobByServiceJobIdParams
- type CancelServiceJobByServiceJobIdResp
- type CancelServiceJobByServiceJobIdResponse
- type CapacityType
- type Client
- func (c *Client) AddAppointmentForServiceJobByServiceJobId(ctx context.Context, serviceJobId string, ...) (*http.Response, error)
- func (c *Client) AddAppointmentForServiceJobByServiceJobIdWithBody(ctx context.Context, serviceJobId string, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) AssignAppointmentResources(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) AssignAppointmentResourcesWithBody(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) CancelReservation(ctx context.Context, reservationId string, params *CancelReservationParams) (*http.Response, error)
- func (c *Client) CancelServiceJobByServiceJobId(ctx context.Context, serviceJobId string, ...) (*http.Response, error)
- func (c *Client) CompleteServiceJobByServiceJobId(ctx context.Context, serviceJobId string) (*http.Response, error)
- func (c *Client) CreateReservation(ctx context.Context, params *CreateReservationParams, ...) (*http.Response, error)
- func (c *Client) CreateReservationWithBody(ctx context.Context, params *CreateReservationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateServiceDocumentUploadDestination(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) CreateServiceDocumentUploadDestinationWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)
- func (c *Client) GetAppointmentSlots(ctx context.Context, params *GetAppointmentSlotsParams) (*http.Response, error)
- func (c *Client) GetAppointmmentSlotsByJobId(ctx context.Context, serviceJobId string, ...) (*http.Response, error)
- func (c *Client) GetFixedSlotCapacity(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, ...) (*http.Response, error)
- func (c *Client) GetFixedSlotCapacityWithBody(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, ...) (*http.Response, error)
- func (c *Client) GetRangeSlotCapacity(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, ...) (*http.Response, error)
- func (c *Client) GetRangeSlotCapacityWithBody(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, ...) (*http.Response, error)
- func (c *Client) GetServiceJobByServiceJobId(ctx context.Context, serviceJobId string) (*http.Response, error)
- func (c *Client) GetServiceJobs(ctx context.Context, params *GetServiceJobsParams) (*http.Response, error)
- func (c *Client) RescheduleAppointmentForServiceJobByServiceJobId(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) RescheduleAppointmentForServiceJobByServiceJobIdWithBody(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) SetAppointmentFulfillmentData(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) SetAppointmentFulfillmentDataWithBody(ctx context.Context, serviceJobId string, appointmentId string, ...) (*http.Response, error)
- func (c *Client) UpdateReservation(ctx context.Context, reservationId string, params *UpdateReservationParams, ...) (*http.Response, error)
- func (c *Client) UpdateReservationWithBody(ctx context.Context, reservationId string, params *UpdateReservationParams, ...) (*http.Response, error)
- func (c *Client) UpdateSchedule(ctx context.Context, resourceId string, params *UpdateScheduleParams, ...) (*http.Response, error)
- func (c *Client) UpdateScheduleWithBody(ctx context.Context, resourceId string, params *UpdateScheduleParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, contentType string, body io.Reader) (*AddAppointmentForServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, ...) (*AddAppointmentForServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) AssignAppointmentResourcesWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*AssignAppointmentResourcesResp, error)
- func (c *ClientWithResponses) AssignAppointmentResourcesWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*AssignAppointmentResourcesResp, error)
- func (c *ClientWithResponses) CancelReservationWithResponse(ctx context.Context, reservationId string, params *CancelReservationParams) (*CancelReservationResp, error)
- func (c *ClientWithResponses) CancelServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, ...) (*CancelServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) CompleteServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*CompleteServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, ...) (*CreateReservationResp, error)
- func (c *ClientWithResponses) CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, ...) (*CreateReservationResp, error)
- func (c *ClientWithResponses) CreateServiceDocumentUploadDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateServiceDocumentUploadDestinationResp, error)
- func (c *ClientWithResponses) CreateServiceDocumentUploadDestinationWithResponse(ctx context.Context, ...) (*CreateServiceDocumentUploadDestinationResp, error)
- func (c *ClientWithResponses) GetAppointmentSlotsWithResponse(ctx context.Context, params *GetAppointmentSlotsParams) (*GetAppointmentSlotsResp, error)
- func (c *ClientWithResponses) GetAppointmmentSlotsByJobIdWithResponse(ctx context.Context, serviceJobId string, ...) (*GetAppointmmentSlotsByJobIdResp, error)
- func (c *ClientWithResponses) GetFixedSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, ...) (*GetFixedSlotCapacityResp, error)
- func (c *ClientWithResponses) GetFixedSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, ...) (*GetFixedSlotCapacityResp, error)
- func (c *ClientWithResponses) GetRangeSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, ...) (*GetRangeSlotCapacityResp, error)
- func (c *ClientWithResponses) GetRangeSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, ...) (*GetRangeSlotCapacityResp, error)
- func (c *ClientWithResponses) GetServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*GetServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) GetServiceJobsWithResponse(ctx context.Context, params *GetServiceJobsParams) (*GetServiceJobsResp, error)
- func (c *ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error)
- func (c *ClientWithResponses) SetAppointmentFulfillmentDataWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*SetAppointmentFulfillmentDataResp, error)
- func (c *ClientWithResponses) SetAppointmentFulfillmentDataWithResponse(ctx context.Context, serviceJobId string, appointmentId string, ...) (*SetAppointmentFulfillmentDataResp, error)
- func (c *ClientWithResponses) UpdateReservationWithBodyWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, ...) (*UpdateReservationResp, error)
- func (c *ClientWithResponses) UpdateReservationWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, ...) (*UpdateReservationResp, error)
- func (c *ClientWithResponses) UpdateScheduleWithBodyWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, ...) (*UpdateScheduleResp, error)
- func (c *ClientWithResponses) UpdateScheduleWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, ...) (*UpdateScheduleResp, error)
- type ClientWithResponsesInterface
- type CompleteServiceJobByServiceJobIdResp
- type CompleteServiceJobByServiceJobIdResponse
- type CreateReservationJSONRequestBody
- type CreateReservationParams
- type CreateReservationRecord
- type CreateReservationRequest
- type CreateReservationResp
- type CreateReservationResponse
- type CreateServiceDocumentUploadDestination
- type CreateServiceDocumentUploadDestinationJSONRequestBody
- type CreateServiceDocumentUploadDestinationResp
- type DayOfWeek
- type EncryptionDetails
- type EncryptionDetailsStandard
- type Error
- type ErrorErrorLevel
- type ErrorList
- type FixedSlot
- type FixedSlotCapacity
- type FixedSlotCapacityErrors
- type FixedSlotCapacityQuery
- type FulfillmentDocument
- type FulfillmentDocuments
- type FulfillmentTime
- type GetAppointmentSlotsParams
- type GetAppointmentSlotsResp
- type GetAppointmentSlotsResponse
- type GetAppointmmentSlotsByJobIdParams
- type GetAppointmmentSlotsByJobIdResp
- type GetFixedSlotCapacityJSONRequestBody
- type GetFixedSlotCapacityParams
- type GetFixedSlotCapacityResp
- type GetRangeSlotCapacityJSONRequestBody
- type GetRangeSlotCapacityParams
- type GetRangeSlotCapacityResp
- type GetServiceJobByServiceJobIdResp
- type GetServiceJobByServiceJobIdResponse
- type GetServiceJobsParams
- type GetServiceJobsParamsServiceJobStatus
- type GetServiceJobsParamsSortField
- type GetServiceJobsParamsSortOrder
- type GetServiceJobsResp
- type GetServiceJobsResponse
- type HttpRequestDoer
- type ItemDelivery
- type ItemDeliveryPromise
- type JobListing
- type OrderId
- type Poa
- type PoaPoaType
- type RangeCapacity
- type RangeSlot
- type RangeSlotCapacity
- type RangeSlotCapacityErrors
- type RangeSlotCapacityQuery
- type Recurrence
- type RequestEditorFn
- type RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody
- type RescheduleAppointmentForServiceJobByServiceJobIdResp
- type RescheduleAppointmentRequest
- type RescheduleReasonCode
- type Reservation
- type ReservationType
- type ResponseEditorFn
- type ScopeOfWork
- type Seller
- type ServiceDocumentUploadDestination
- type ServiceJob
- type ServiceJobId
- type ServiceJobProvider
- type ServiceJobServiceJobStatus
- type ServiceLocation
- type ServiceLocationServiceLocationType
- type ServiceUploadDocument
- type ServiceUploadDocumentContentType
- type SetAppointmentFulfillmentDataJSONRequestBody
- type SetAppointmentFulfillmentDataRequest
- type SetAppointmentFulfillmentDataResp
- type SetAppointmentResponse
- type Technician
- type UpdateReservationJSONRequestBody
- type UpdateReservationParams
- type UpdateReservationRecord
- type UpdateReservationRequest
- type UpdateReservationResp
- type UpdateReservationResponse
- type UpdateScheduleJSONRequestBody
- type UpdateScheduleParams
- type UpdateScheduleRecord
- type UpdateScheduleRequest
- type UpdateScheduleResp
- type UpdateScheduleResponse
- type Warning
- type WarningList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddAppointmentForServiceJobByServiceJobIdRequest ¶
func NewAddAppointmentForServiceJobByServiceJobIdRequest(server string, serviceJobId string, body AddAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*http.Request, error)
NewAddAppointmentForServiceJobByServiceJobIdRequest calls the generic AddAppointmentForServiceJobByServiceJobId builder with application/json body
func NewAddAppointmentForServiceJobByServiceJobIdRequestWithBody ¶
func NewAddAppointmentForServiceJobByServiceJobIdRequestWithBody(server string, serviceJobId string, contentType string, body io.Reader) (*http.Request, error)
NewAddAppointmentForServiceJobByServiceJobIdRequestWithBody generates requests for AddAppointmentForServiceJobByServiceJobId with any type of body
func NewAssignAppointmentResourcesRequest ¶
func NewAssignAppointmentResourcesRequest(server string, serviceJobId string, appointmentId string, body AssignAppointmentResourcesJSONRequestBody) (*http.Request, error)
NewAssignAppointmentResourcesRequest calls the generic AssignAppointmentResources builder with application/json body
func NewAssignAppointmentResourcesRequestWithBody ¶
func NewAssignAppointmentResourcesRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Request, error)
NewAssignAppointmentResourcesRequestWithBody generates requests for AssignAppointmentResources with any type of body
func NewCancelReservationRequest ¶
func NewCancelReservationRequest(server string, reservationId string, params *CancelReservationParams) (*http.Request, error)
NewCancelReservationRequest generates requests for CancelReservation
func NewCancelServiceJobByServiceJobIdRequest ¶
func NewCancelServiceJobByServiceJobIdRequest(server string, serviceJobId string, params *CancelServiceJobByServiceJobIdParams) (*http.Request, error)
NewCancelServiceJobByServiceJobIdRequest generates requests for CancelServiceJobByServiceJobId
func NewCompleteServiceJobByServiceJobIdRequest ¶
func NewCompleteServiceJobByServiceJobIdRequest(server string, serviceJobId string) (*http.Request, error)
NewCompleteServiceJobByServiceJobIdRequest generates requests for CompleteServiceJobByServiceJobId
func NewCreateReservationRequest ¶
func NewCreateReservationRequest(server string, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*http.Request, error)
NewCreateReservationRequest calls the generic CreateReservation builder with application/json body
func NewCreateReservationRequestWithBody ¶
func NewCreateReservationRequestWithBody(server string, params *CreateReservationParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateReservationRequestWithBody generates requests for CreateReservation with any type of body
func NewCreateServiceDocumentUploadDestinationRequest ¶
func NewCreateServiceDocumentUploadDestinationRequest(server string, body CreateServiceDocumentUploadDestinationJSONRequestBody) (*http.Request, error)
NewCreateServiceDocumentUploadDestinationRequest calls the generic CreateServiceDocumentUploadDestination builder with application/json body
func NewCreateServiceDocumentUploadDestinationRequestWithBody ¶
func NewCreateServiceDocumentUploadDestinationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateServiceDocumentUploadDestinationRequestWithBody generates requests for CreateServiceDocumentUploadDestination with any type of body
func NewGetAppointmentSlotsRequest ¶
func NewGetAppointmentSlotsRequest(server string, params *GetAppointmentSlotsParams) (*http.Request, error)
NewGetAppointmentSlotsRequest generates requests for GetAppointmentSlots
func NewGetAppointmmentSlotsByJobIdRequest ¶
func NewGetAppointmmentSlotsByJobIdRequest(server string, serviceJobId string, params *GetAppointmmentSlotsByJobIdParams) (*http.Request, error)
NewGetAppointmmentSlotsByJobIdRequest generates requests for GetAppointmmentSlotsByJobId
func NewGetFixedSlotCapacityRequest ¶
func NewGetFixedSlotCapacityRequest(server string, resourceId string, params *GetFixedSlotCapacityParams, body GetFixedSlotCapacityJSONRequestBody) (*http.Request, error)
NewGetFixedSlotCapacityRequest calls the generic GetFixedSlotCapacity builder with application/json body
func NewGetFixedSlotCapacityRequestWithBody ¶
func NewGetFixedSlotCapacityRequestWithBody(server string, resourceId string, params *GetFixedSlotCapacityParams, contentType string, body io.Reader) (*http.Request, error)
NewGetFixedSlotCapacityRequestWithBody generates requests for GetFixedSlotCapacity with any type of body
func NewGetRangeSlotCapacityRequest ¶
func NewGetRangeSlotCapacityRequest(server string, resourceId string, params *GetRangeSlotCapacityParams, body GetRangeSlotCapacityJSONRequestBody) (*http.Request, error)
NewGetRangeSlotCapacityRequest calls the generic GetRangeSlotCapacity builder with application/json body
func NewGetRangeSlotCapacityRequestWithBody ¶
func NewGetRangeSlotCapacityRequestWithBody(server string, resourceId string, params *GetRangeSlotCapacityParams, contentType string, body io.Reader) (*http.Request, error)
NewGetRangeSlotCapacityRequestWithBody generates requests for GetRangeSlotCapacity with any type of body
func NewGetServiceJobByServiceJobIdRequest ¶
func NewGetServiceJobByServiceJobIdRequest(server string, serviceJobId string) (*http.Request, error)
NewGetServiceJobByServiceJobIdRequest generates requests for GetServiceJobByServiceJobId
func NewGetServiceJobsRequest ¶
func NewGetServiceJobsRequest(server string, params *GetServiceJobsParams) (*http.Request, error)
NewGetServiceJobsRequest generates requests for GetServiceJobs
func NewRescheduleAppointmentForServiceJobByServiceJobIdRequest ¶
func NewRescheduleAppointmentForServiceJobByServiceJobIdRequest(server string, serviceJobId string, appointmentId string, body RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*http.Request, error)
NewRescheduleAppointmentForServiceJobByServiceJobIdRequest calls the generic RescheduleAppointmentForServiceJobByServiceJobId builder with application/json body
func NewRescheduleAppointmentForServiceJobByServiceJobIdRequestWithBody ¶
func NewRescheduleAppointmentForServiceJobByServiceJobIdRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Request, error)
NewRescheduleAppointmentForServiceJobByServiceJobIdRequestWithBody generates requests for RescheduleAppointmentForServiceJobByServiceJobId with any type of body
func NewSetAppointmentFulfillmentDataRequest ¶
func NewSetAppointmentFulfillmentDataRequest(server string, serviceJobId string, appointmentId string, body SetAppointmentFulfillmentDataJSONRequestBody) (*http.Request, error)
NewSetAppointmentFulfillmentDataRequest calls the generic SetAppointmentFulfillmentData builder with application/json body
func NewSetAppointmentFulfillmentDataRequestWithBody ¶
func NewSetAppointmentFulfillmentDataRequestWithBody(server string, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Request, error)
NewSetAppointmentFulfillmentDataRequestWithBody generates requests for SetAppointmentFulfillmentData with any type of body
func NewUpdateReservationRequest ¶
func NewUpdateReservationRequest(server string, reservationId string, params *UpdateReservationParams, body UpdateReservationJSONRequestBody) (*http.Request, error)
NewUpdateReservationRequest calls the generic UpdateReservation builder with application/json body
func NewUpdateReservationRequestWithBody ¶
func NewUpdateReservationRequestWithBody(server string, reservationId string, params *UpdateReservationParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateReservationRequestWithBody generates requests for UpdateReservation with any type of body
func NewUpdateScheduleRequest ¶
func NewUpdateScheduleRequest(server string, resourceId string, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*http.Request, error)
NewUpdateScheduleRequest calls the generic UpdateSchedule builder with application/json body
Types ¶
type AddAppointmentForServiceJobByServiceJobIdJSONRequestBody ¶
type AddAppointmentForServiceJobByServiceJobIdJSONRequestBody = AddAppointmentRequest
AddAppointmentForServiceJobByServiceJobIdJSONRequestBody defines body for AddAppointmentForServiceJobByServiceJobId for application/json ContentType.
type AddAppointmentForServiceJobByServiceJobIdResp ¶
type AddAppointmentForServiceJobByServiceJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *SetAppointmentResponse JSON400 *SetAppointmentResponse JSON403 *SetAppointmentResponse JSON404 *SetAppointmentResponse JSON413 *SetAppointmentResponse JSON415 *SetAppointmentResponse JSON422 *SetAppointmentResponse JSON429 *SetAppointmentResponse JSON500 *SetAppointmentResponse JSON503 *SetAppointmentResponse }
func ParseAddAppointmentForServiceJobByServiceJobIdResp ¶
func ParseAddAppointmentForServiceJobByServiceJobIdResp(rsp *http.Response) (*AddAppointmentForServiceJobByServiceJobIdResp, error)
ParseAddAppointmentForServiceJobByServiceJobIdResp parses an HTTP response from a AddAppointmentForServiceJobByServiceJobIdWithResponse call
func (AddAppointmentForServiceJobByServiceJobIdResp) Status ¶
func (r AddAppointmentForServiceJobByServiceJobIdResp) Status() string
Status returns HTTPResponse.Status
func (AddAppointmentForServiceJobByServiceJobIdResp) StatusCode ¶
func (r AddAppointmentForServiceJobByServiceJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddAppointmentRequest ¶
type AddAppointmentRequest struct { // AppointmentTime The input appointment time details. AppointmentTime AppointmentTimeInput `json:"appointmentTime"` }
AddAppointmentRequest Input for add appointment operation.
type Address ¶
type Address struct { // AddressLine1 The first line of the address. AddressLine1 string `json:"addressLine1"` // AddressLine2 Additional address information, if required. AddressLine2 *string `json:"addressLine2,omitempty"` // AddressLine3 Additional address information, if required. AddressLine3 *string `json:"addressLine3,omitempty"` // City The city. City *string `json:"city,omitempty"` // CountryCode The two digit country code, in ISO 3166-1 alpha-2 format. CountryCode *string `json:"countryCode,omitempty"` // County The county. County *string `json:"county,omitempty"` // District The district. District *string `json:"district,omitempty"` // Name The name of the person, business, or institution. Name string `json:"name"` // Phone The phone number. Phone *string `json:"phone,omitempty"` // PostalCode The postal code. This can contain letters, digits, spaces, and/or punctuation. PostalCode *string `json:"postalCode,omitempty"` // StateOrRegion The state or region. StateOrRegion *string `json:"stateOrRegion,omitempty"` }
Address The shipping address for the service job.
type Appointment ¶
type Appointment struct { // AppointmentId The appointment identifier. AppointmentId *AppointmentId `json:"appointmentId,omitempty"` // AppointmentStatus The status of the appointment. AppointmentStatus *AppointmentAppointmentStatus `json:"appointmentStatus,omitempty"` // AppointmentTime The time of the appointment window. AppointmentTime *AppointmentTime `json:"appointmentTime,omitempty"` // AssignedTechnicians A list of technicians assigned to the service job. AssignedTechnicians *[]Technician `json:"assignedTechnicians,omitempty"` // Poa Proof of Appointment (POA) details. Poa *Poa `json:"poa,omitempty"` // RescheduledAppointmentId The appointment identifier. RescheduledAppointmentId *AppointmentId `json:"rescheduledAppointmentId,omitempty"` }
Appointment The details of an appointment.
type AppointmentAppointmentStatus ¶
type AppointmentAppointmentStatus string
AppointmentAppointmentStatus The status of the appointment.
const ( AppointmentAppointmentStatusACTIVE AppointmentAppointmentStatus = "ACTIVE" AppointmentAppointmentStatusCANCELLED AppointmentAppointmentStatus = "CANCELLED" AppointmentAppointmentStatusCOMPLETED AppointmentAppointmentStatus = "COMPLETED" )
Defines values for AppointmentAppointmentStatus.
type AppointmentResource ¶
type AppointmentResource struct { // ResourceId The resource identifier. ResourceId *string `json:"resourceId,omitempty"` }
AppointmentResource The resource that performs or performed appointment fulfillment.
type AppointmentResources ¶
type AppointmentResources = []AppointmentResource
AppointmentResources List of resources that performs or performed job appointment fulfillment.
type AppointmentSlot ¶
type AppointmentSlot struct { // Capacity Number of resources for which a slot can be reserved. Capacity *int `json:"capacity,omitempty"` // EndTime Time window end time in ISO 8601 format. EndTime *time.Time `json:"endTime,omitempty"` // StartTime Time window start time in ISO 8601 format. StartTime *time.Time `json:"startTime,omitempty"` }
AppointmentSlot A time window along with associated capacity in which the service can be performed.
type AppointmentSlotReport ¶
type AppointmentSlotReport struct { // AppointmentSlots A list of time windows along with associated capacity in which the service can be performed. AppointmentSlots *[]AppointmentSlot `json:"appointmentSlots,omitempty"` // EndTime End Time up to which the appointment slots are generated in ISO 8601 format. EndTime *time.Time `json:"endTime,omitempty"` // SchedulingType Defines the type of slots. SchedulingType *AppointmentSlotReportSchedulingType `json:"schedulingType,omitempty"` // StartTime Start Time from which the appointment slots are generated in ISO 8601 format. StartTime *time.Time `json:"startTime,omitempty"` }
AppointmentSlotReport Availability information as per the service context queried.
type AppointmentSlotReportSchedulingType ¶
type AppointmentSlotReportSchedulingType string
AppointmentSlotReportSchedulingType Defines the type of slots.
const ( NONREALTIMESCHEDULING AppointmentSlotReportSchedulingType = "NON_REAL_TIME_SCHEDULING" REALTIMESCHEDULING AppointmentSlotReportSchedulingType = "REAL_TIME_SCHEDULING" )
Defines values for AppointmentSlotReportSchedulingType.
type AppointmentTime ¶
type AppointmentTime struct { // DurationInMinutes The duration of the appointment window, in minutes. DurationInMinutes int `json:"durationInMinutes"` // StartTime The date and time of the start of the appointment window in ISO 8601 format. StartTime time.Time `json:"startTime"` }
AppointmentTime The time of the appointment window.
type AppointmentTimeInput ¶
type AppointmentTimeInput struct { // DurationInMinutes The duration of an appointment in minutes. DurationInMinutes *int `json:"durationInMinutes,omitempty"` // StartTime The date, time in UTC for the start time of an appointment in ISO 8601 format. StartTime time.Time `json:"startTime"` }
AppointmentTimeInput The input appointment time details.
type AssignAppointmentResourcesJSONRequestBody ¶
type AssignAppointmentResourcesJSONRequestBody = AssignAppointmentResourcesRequest
AssignAppointmentResourcesJSONRequestBody defines body for AssignAppointmentResources for application/json ContentType.
type AssignAppointmentResourcesRequest ¶
type AssignAppointmentResourcesRequest struct { // Resources List of resources that performs or performed job appointment fulfillment. Resources AppointmentResources `json:"resources"` }
AssignAppointmentResourcesRequest Request schema for the `assignAppointmentResources` operation.
type AssignAppointmentResourcesResp ¶
type AssignAppointmentResourcesResp struct { Body []byte HTTPResponse *http.Response JSON200 *AssignAppointmentResourcesResponse JSON400 *AssignAppointmentResourcesResponse JSON403 *AssignAppointmentResourcesResponse JSON404 *AssignAppointmentResourcesResponse JSON413 *AssignAppointmentResourcesResponse JSON415 *AssignAppointmentResourcesResponse JSON422 *AssignAppointmentResourcesResponse JSON429 *AssignAppointmentResourcesResponse JSON500 *AssignAppointmentResourcesResponse JSON503 *AssignAppointmentResourcesResponse }
func ParseAssignAppointmentResourcesResp ¶
func ParseAssignAppointmentResourcesResp(rsp *http.Response) (*AssignAppointmentResourcesResp, error)
ParseAssignAppointmentResourcesResp parses an HTTP response from a AssignAppointmentResourcesWithResponse call
func (AssignAppointmentResourcesResp) Status ¶
func (r AssignAppointmentResourcesResp) Status() string
Status returns HTTPResponse.Status
func (AssignAppointmentResourcesResp) StatusCode ¶
func (r AssignAppointmentResourcesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AssignAppointmentResourcesResponse ¶
type AssignAppointmentResourcesResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload The payload for the `assignAppointmentResource` operation. Payload *struct { // Warnings A list of warnings returned in the sucessful execution response of an API request. Warnings *WarningList `json:"warnings,omitempty"` } `json:"payload,omitempty"` }
AssignAppointmentResourcesResponse Response schema for the `assignAppointmentResources` operation.
type AssociatedItem ¶
type AssociatedItem struct { // Asin The Amazon Standard Identification Number (ASIN) of the item. Asin *string `json:"asin,omitempty"` // BrandName The brand name of the item. BrandName *string `json:"brandName,omitempty"` // ItemDelivery Delivery information for the item. ItemDelivery *ItemDelivery `json:"itemDelivery,omitempty"` // ItemStatus The status of the item. ItemStatus *AssociatedItemItemStatus `json:"itemStatus,omitempty"` // OrderId The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. OrderId *OrderId `json:"orderId,omitempty"` // Quantity The total number of items included in the order. Quantity *int `json:"quantity,omitempty"` // Title The title of the item. Title *string `json:"title,omitempty"` }
AssociatedItem Information about an item associated with the service job.
type AssociatedItemItemStatus ¶
type AssociatedItemItemStatus string
AssociatedItemItemStatus The status of the item.
const ( AssociatedItemItemStatusACTIVE AssociatedItemItemStatus = "ACTIVE" AssociatedItemItemStatusCANCELLED AssociatedItemItemStatus = "CANCELLED" AssociatedItemItemStatusDELIVERED AssociatedItemItemStatus = "DELIVERED" AssociatedItemItemStatusSHIPPED AssociatedItemItemStatus = "SHIPPED" )
Defines values for AssociatedItemItemStatus.
type AvailabilityRecord ¶
type AvailabilityRecord struct { // Capacity Signifies the capacity of a resource which is available. Capacity *int `json:"capacity,omitempty"` // EndTime Denotes the time till when the resource is available in a day in ISO-8601 format. EndTime time.Time `json:"endTime"` // Recurrence Repeated occurrence of an event in a time range. Recurrence *Recurrence `json:"recurrence,omitempty"` // StartTime Denotes the time from when the resource is available in a day in ISO-8601 format. StartTime time.Time `json:"startTime"` }
AvailabilityRecord `AvailabilityRecord` to represent the capacity of a resource over a time range.
type AvailabilityRecords ¶
type AvailabilityRecords = []AvailabilityRecord
AvailabilityRecords List of `AvailabilityRecord`s to represent the capacity of a resource over a time range.
type Buyer ¶
type Buyer struct { // BuyerId The identifier of the buyer. BuyerId *string `json:"buyerId,omitempty"` // IsPrimeMember When true, the service is for an Amazon Prime buyer. IsPrimeMember *bool `json:"isPrimeMember,omitempty"` // Name The name of the buyer. Name *string `json:"name,omitempty"` // Phone The phone number of the buyer. Phone *string `json:"phone,omitempty"` }
Buyer Information about the buyer.
type CancelReservationParams ¶
type CancelReservationParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
CancelReservationParams defines parameters for CancelReservation.
type CancelReservationResp ¶
type CancelReservationResp struct { Body []byte HTTPResponse *http.Response JSON204 *CancelReservationResponse JSON400 *CancelReservationResponse JSON403 *CancelReservationResponse JSON404 *CancelReservationResponse JSON413 *CancelReservationResponse JSON415 *CancelReservationResponse JSON429 *CancelReservationResponse JSON500 *CancelReservationResponse JSON503 *CancelReservationResponse }
func ParseCancelReservationResp ¶
func ParseCancelReservationResp(rsp *http.Response) (*CancelReservationResp, error)
ParseCancelReservationResp parses an HTTP response from a CancelReservationWithResponse call
func (CancelReservationResp) Status ¶
func (r CancelReservationResp) Status() string
Status returns HTTPResponse.Status
func (CancelReservationResp) StatusCode ¶
func (r CancelReservationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelReservationResponse ¶
type CancelReservationResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
CancelReservationResponse Response schema for the `cancelReservation` operation.
type CancelServiceJobByServiceJobIdParams ¶
type CancelServiceJobByServiceJobIdParams struct { // CancellationReasonCode A cancel reason code that specifies the reason for cancelling a service job. CancellationReasonCode string `form:"cancellationReasonCode" json:"cancellationReasonCode"` }
CancelServiceJobByServiceJobIdParams defines parameters for CancelServiceJobByServiceJobId.
type CancelServiceJobByServiceJobIdResp ¶
type CancelServiceJobByServiceJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *CancelServiceJobByServiceJobIdResponse JSON400 *CancelServiceJobByServiceJobIdResponse JSON403 *CancelServiceJobByServiceJobIdResponse JSON404 *CancelServiceJobByServiceJobIdResponse JSON413 *CancelServiceJobByServiceJobIdResponse JSON415 *CancelServiceJobByServiceJobIdResponse JSON422 *CancelServiceJobByServiceJobIdResponse JSON429 *CancelServiceJobByServiceJobIdResponse JSON500 *CancelServiceJobByServiceJobIdResponse JSON503 *CancelServiceJobByServiceJobIdResponse }
func ParseCancelServiceJobByServiceJobIdResp ¶
func ParseCancelServiceJobByServiceJobIdResp(rsp *http.Response) (*CancelServiceJobByServiceJobIdResp, error)
ParseCancelServiceJobByServiceJobIdResp parses an HTTP response from a CancelServiceJobByServiceJobIdWithResponse call
func (CancelServiceJobByServiceJobIdResp) Status ¶
func (r CancelServiceJobByServiceJobIdResp) Status() string
Status returns HTTPResponse.Status
func (CancelServiceJobByServiceJobIdResp) StatusCode ¶
func (r CancelServiceJobByServiceJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelServiceJobByServiceJobIdResponse ¶
type CancelServiceJobByServiceJobIdResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
CancelServiceJobByServiceJobIdResponse Response schema for the `cancelServiceJobByServiceJobId` operation.
type CapacityType ¶
type CapacityType string
CapacityType Type of capacity
const ( AVAILABLECAPACITY CapacityType = "AVAILABLE_CAPACITY" ENCUMBEREDCAPACITY CapacityType = "ENCUMBERED_CAPACITY" RESERVEDCAPACITY CapacityType = "RESERVED_CAPACITY" SCHEDULEDCAPACITY CapacityType = "SCHEDULED_CAPACITY" )
Defines values for CapacityType.
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 // A callback for modifying response which are generated after receive from the network. ResponseEditors []ResponseEditorFn // The user agent header identifies your application, its version number, and the platform and programming language you are using. // You must include a user agent header in each request submitted to the sales partner API. UserAgent string }
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) AddAppointmentForServiceJobByServiceJobId ¶
func (*Client) AddAppointmentForServiceJobByServiceJobIdWithBody ¶
func (*Client) AssignAppointmentResources ¶
func (*Client) AssignAppointmentResourcesWithBody ¶
func (*Client) CancelReservation ¶
func (*Client) CancelServiceJobByServiceJobId ¶
func (*Client) CompleteServiceJobByServiceJobId ¶
func (*Client) CreateReservation ¶
func (c *Client) CreateReservation(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*http.Response, error)
func (*Client) CreateReservationWithBody ¶
func (*Client) CreateServiceDocumentUploadDestination ¶
func (*Client) CreateServiceDocumentUploadDestinationWithBody ¶
func (*Client) GetAppointmentSlots ¶
func (*Client) GetAppointmmentSlotsByJobId ¶
func (*Client) GetFixedSlotCapacity ¶
func (c *Client) GetFixedSlotCapacity(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, body GetFixedSlotCapacityJSONRequestBody) (*http.Response, error)
func (*Client) GetFixedSlotCapacityWithBody ¶
func (*Client) GetRangeSlotCapacity ¶
func (c *Client) GetRangeSlotCapacity(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, body GetRangeSlotCapacityJSONRequestBody) (*http.Response, error)
func (*Client) GetRangeSlotCapacityWithBody ¶
func (*Client) GetServiceJobByServiceJobId ¶
func (*Client) GetServiceJobs ¶
func (*Client) RescheduleAppointmentForServiceJobByServiceJobId ¶
func (*Client) RescheduleAppointmentForServiceJobByServiceJobIdWithBody ¶
func (*Client) SetAppointmentFulfillmentData ¶
func (*Client) SetAppointmentFulfillmentDataWithBody ¶
func (*Client) UpdateReservation ¶
func (c *Client) UpdateReservation(ctx context.Context, reservationId string, params *UpdateReservationParams, body UpdateReservationJSONRequestBody) (*http.Response, error)
func (*Client) UpdateReservationWithBody ¶
func (*Client) UpdateSchedule ¶
func (c *Client) UpdateSchedule(ctx context.Context, resourceId string, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetAppointmentSlots request GetAppointmentSlots(ctx context.Context, params *GetAppointmentSlotsParams) (*http.Response, error) // CreateServiceDocumentUploadDestinationWithBody request with any body CreateServiceDocumentUploadDestinationWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error) CreateServiceDocumentUploadDestination(ctx context.Context, body CreateServiceDocumentUploadDestinationJSONRequestBody) (*http.Response, error) // CreateReservationWithBody request with any body CreateReservationWithBody(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader) (*http.Response, error) CreateReservation(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*http.Response, error) // CancelReservation request CancelReservation(ctx context.Context, reservationId string, params *CancelReservationParams) (*http.Response, error) // UpdateReservationWithBody request with any body UpdateReservationWithBody(ctx context.Context, reservationId string, params *UpdateReservationParams, contentType string, body io.Reader) (*http.Response, error) UpdateReservation(ctx context.Context, reservationId string, params *UpdateReservationParams, body UpdateReservationJSONRequestBody) (*http.Response, error) // GetServiceJobs request GetServiceJobs(ctx context.Context, params *GetServiceJobsParams) (*http.Response, error) // GetServiceJobByServiceJobId request GetServiceJobByServiceJobId(ctx context.Context, serviceJobId string) (*http.Response, error) // GetAppointmmentSlotsByJobId request GetAppointmmentSlotsByJobId(ctx context.Context, serviceJobId string, params *GetAppointmmentSlotsByJobIdParams) (*http.Response, error) // AddAppointmentForServiceJobByServiceJobIdWithBody request with any body AddAppointmentForServiceJobByServiceJobIdWithBody(ctx context.Context, serviceJobId string, contentType string, body io.Reader) (*http.Response, error) AddAppointmentForServiceJobByServiceJobId(ctx context.Context, serviceJobId string, body AddAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*http.Response, error) // RescheduleAppointmentForServiceJobByServiceJobIdWithBody request with any body RescheduleAppointmentForServiceJobByServiceJobIdWithBody(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Response, error) RescheduleAppointmentForServiceJobByServiceJobId(ctx context.Context, serviceJobId string, appointmentId string, body RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*http.Response, error) // SetAppointmentFulfillmentDataWithBody request with any body SetAppointmentFulfillmentDataWithBody(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Response, error) SetAppointmentFulfillmentData(ctx context.Context, serviceJobId string, appointmentId string, body SetAppointmentFulfillmentDataJSONRequestBody) (*http.Response, error) // AssignAppointmentResourcesWithBody request with any body AssignAppointmentResourcesWithBody(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*http.Response, error) AssignAppointmentResources(ctx context.Context, serviceJobId string, appointmentId string, body AssignAppointmentResourcesJSONRequestBody) (*http.Response, error) // CancelServiceJobByServiceJobId request CancelServiceJobByServiceJobId(ctx context.Context, serviceJobId string, params *CancelServiceJobByServiceJobIdParams) (*http.Response, error) // CompleteServiceJobByServiceJobId request CompleteServiceJobByServiceJobId(ctx context.Context, serviceJobId string) (*http.Response, error) // GetFixedSlotCapacityWithBody request with any body GetFixedSlotCapacityWithBody(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, contentType string, body io.Reader) (*http.Response, error) GetFixedSlotCapacity(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, body GetFixedSlotCapacityJSONRequestBody) (*http.Response, error) // GetRangeSlotCapacityWithBody request with any body GetRangeSlotCapacityWithBody(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, contentType string, body io.Reader) (*http.Response, error) GetRangeSlotCapacity(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, body GetRangeSlotCapacityJSONRequestBody) (*http.Response, error) // UpdateScheduleWithBody request with any body UpdateScheduleWithBody(ctx context.Context, resourceId string, params *UpdateScheduleParams, contentType string, body io.Reader) (*http.Response, error) UpdateSchedule(ctx context.Context, resourceId string, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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.
func WithResponseEditorFn ¶
func WithResponseEditorFn(fn ResponseEditorFn) ClientOption
WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse ¶
func (c *ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, contentType string, body io.Reader) (*AddAppointmentForServiceJobByServiceJobIdResp, error)
AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse request with arbitrary body returning *AddAppointmentForServiceJobByServiceJobIdResp
func (*ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithResponse ¶
func (c *ClientWithResponses) AddAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, body AddAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*AddAppointmentForServiceJobByServiceJobIdResp, error)
func (*ClientWithResponses) AssignAppointmentResourcesWithBodyWithResponse ¶
func (c *ClientWithResponses) AssignAppointmentResourcesWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*AssignAppointmentResourcesResp, error)
AssignAppointmentResourcesWithBodyWithResponse request with arbitrary body returning *AssignAppointmentResourcesResp
func (*ClientWithResponses) AssignAppointmentResourcesWithResponse ¶
func (c *ClientWithResponses) AssignAppointmentResourcesWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body AssignAppointmentResourcesJSONRequestBody) (*AssignAppointmentResourcesResp, error)
func (*ClientWithResponses) CancelReservationWithResponse ¶
func (c *ClientWithResponses) CancelReservationWithResponse(ctx context.Context, reservationId string, params *CancelReservationParams) (*CancelReservationResp, error)
CancelReservationWithResponse request returning *CancelReservationResp
func (*ClientWithResponses) CancelServiceJobByServiceJobIdWithResponse ¶
func (c *ClientWithResponses) CancelServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, params *CancelServiceJobByServiceJobIdParams) (*CancelServiceJobByServiceJobIdResp, error)
CancelServiceJobByServiceJobIdWithResponse request returning *CancelServiceJobByServiceJobIdResp
func (*ClientWithResponses) CompleteServiceJobByServiceJobIdWithResponse ¶
func (c *ClientWithResponses) CompleteServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*CompleteServiceJobByServiceJobIdResp, error)
CompleteServiceJobByServiceJobIdWithResponse request returning *CompleteServiceJobByServiceJobIdResp
func (*ClientWithResponses) CreateReservationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader) (*CreateReservationResp, error)
CreateReservationWithBodyWithResponse request with arbitrary body returning *CreateReservationResp
func (*ClientWithResponses) CreateReservationWithResponse ¶
func (c *ClientWithResponses) CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*CreateReservationResp, error)
func (*ClientWithResponses) CreateServiceDocumentUploadDestinationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateServiceDocumentUploadDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateServiceDocumentUploadDestinationResp, error)
CreateServiceDocumentUploadDestinationWithBodyWithResponse request with arbitrary body returning *CreateServiceDocumentUploadDestinationResp
func (*ClientWithResponses) CreateServiceDocumentUploadDestinationWithResponse ¶
func (c *ClientWithResponses) CreateServiceDocumentUploadDestinationWithResponse(ctx context.Context, body CreateServiceDocumentUploadDestinationJSONRequestBody) (*CreateServiceDocumentUploadDestinationResp, error)
func (*ClientWithResponses) GetAppointmentSlotsWithResponse ¶
func (c *ClientWithResponses) GetAppointmentSlotsWithResponse(ctx context.Context, params *GetAppointmentSlotsParams) (*GetAppointmentSlotsResp, error)
GetAppointmentSlotsWithResponse request returning *GetAppointmentSlotsResp
func (*ClientWithResponses) GetAppointmmentSlotsByJobIdWithResponse ¶
func (c *ClientWithResponses) GetAppointmmentSlotsByJobIdWithResponse(ctx context.Context, serviceJobId string, params *GetAppointmmentSlotsByJobIdParams) (*GetAppointmmentSlotsByJobIdResp, error)
GetAppointmmentSlotsByJobIdWithResponse request returning *GetAppointmmentSlotsByJobIdResp
func (*ClientWithResponses) GetFixedSlotCapacityWithBodyWithResponse ¶
func (c *ClientWithResponses) GetFixedSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, contentType string, body io.Reader) (*GetFixedSlotCapacityResp, error)
GetFixedSlotCapacityWithBodyWithResponse request with arbitrary body returning *GetFixedSlotCapacityResp
func (*ClientWithResponses) GetFixedSlotCapacityWithResponse ¶
func (c *ClientWithResponses) GetFixedSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, body GetFixedSlotCapacityJSONRequestBody) (*GetFixedSlotCapacityResp, error)
func (*ClientWithResponses) GetRangeSlotCapacityWithBodyWithResponse ¶
func (c *ClientWithResponses) GetRangeSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, contentType string, body io.Reader) (*GetRangeSlotCapacityResp, error)
GetRangeSlotCapacityWithBodyWithResponse request with arbitrary body returning *GetRangeSlotCapacityResp
func (*ClientWithResponses) GetRangeSlotCapacityWithResponse ¶
func (c *ClientWithResponses) GetRangeSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, body GetRangeSlotCapacityJSONRequestBody) (*GetRangeSlotCapacityResp, error)
func (*ClientWithResponses) GetServiceJobByServiceJobIdWithResponse ¶
func (c *ClientWithResponses) GetServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*GetServiceJobByServiceJobIdResp, error)
GetServiceJobByServiceJobIdWithResponse request returning *GetServiceJobByServiceJobIdResp
func (*ClientWithResponses) GetServiceJobsWithResponse ¶
func (c *ClientWithResponses) GetServiceJobsWithResponse(ctx context.Context, params *GetServiceJobsParams) (*GetServiceJobsResp, error)
GetServiceJobsWithResponse request returning *GetServiceJobsResp
func (*ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse ¶
func (c *ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error)
RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse request with arbitrary body returning *RescheduleAppointmentForServiceJobByServiceJobIdResp
func (*ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithResponse ¶
func (c *ClientWithResponses) RescheduleAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error)
func (*ClientWithResponses) SetAppointmentFulfillmentDataWithBodyWithResponse ¶
func (c *ClientWithResponses) SetAppointmentFulfillmentDataWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*SetAppointmentFulfillmentDataResp, error)
SetAppointmentFulfillmentDataWithBodyWithResponse request with arbitrary body returning *SetAppointmentFulfillmentDataResp
func (*ClientWithResponses) SetAppointmentFulfillmentDataWithResponse ¶
func (c *ClientWithResponses) SetAppointmentFulfillmentDataWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body SetAppointmentFulfillmentDataJSONRequestBody) (*SetAppointmentFulfillmentDataResp, error)
func (*ClientWithResponses) UpdateReservationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateReservationWithBodyWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, contentType string, body io.Reader) (*UpdateReservationResp, error)
UpdateReservationWithBodyWithResponse request with arbitrary body returning *UpdateReservationResp
func (*ClientWithResponses) UpdateReservationWithResponse ¶
func (c *ClientWithResponses) UpdateReservationWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, body UpdateReservationJSONRequestBody) (*UpdateReservationResp, error)
func (*ClientWithResponses) UpdateScheduleWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateScheduleWithBodyWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, contentType string, body io.Reader) (*UpdateScheduleResp, error)
UpdateScheduleWithBodyWithResponse request with arbitrary body returning *UpdateScheduleResp
func (*ClientWithResponses) UpdateScheduleWithResponse ¶
func (c *ClientWithResponses) UpdateScheduleWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*UpdateScheduleResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetAppointmentSlotsWithResponse request GetAppointmentSlotsWithResponse(ctx context.Context, params *GetAppointmentSlotsParams) (*GetAppointmentSlotsResp, error) // CreateServiceDocumentUploadDestinationWithBodyWithResponse request with any body CreateServiceDocumentUploadDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateServiceDocumentUploadDestinationResp, error) CreateServiceDocumentUploadDestinationWithResponse(ctx context.Context, body CreateServiceDocumentUploadDestinationJSONRequestBody) (*CreateServiceDocumentUploadDestinationResp, error) // CreateReservationWithBodyWithResponse request with any body CreateReservationWithBodyWithResponse(ctx context.Context, params *CreateReservationParams, contentType string, body io.Reader) (*CreateReservationResp, error) CreateReservationWithResponse(ctx context.Context, params *CreateReservationParams, body CreateReservationJSONRequestBody) (*CreateReservationResp, error) // CancelReservationWithResponse request CancelReservationWithResponse(ctx context.Context, reservationId string, params *CancelReservationParams) (*CancelReservationResp, error) // UpdateReservationWithBodyWithResponse request with any body UpdateReservationWithBodyWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, contentType string, body io.Reader) (*UpdateReservationResp, error) UpdateReservationWithResponse(ctx context.Context, reservationId string, params *UpdateReservationParams, body UpdateReservationJSONRequestBody) (*UpdateReservationResp, error) // GetServiceJobsWithResponse request GetServiceJobsWithResponse(ctx context.Context, params *GetServiceJobsParams) (*GetServiceJobsResp, error) // GetServiceJobByServiceJobIdWithResponse request GetServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*GetServiceJobByServiceJobIdResp, error) // GetAppointmmentSlotsByJobIdWithResponse request GetAppointmmentSlotsByJobIdWithResponse(ctx context.Context, serviceJobId string, params *GetAppointmmentSlotsByJobIdParams) (*GetAppointmmentSlotsByJobIdResp, error) // AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse request with any body AddAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, contentType string, body io.Reader) (*AddAppointmentForServiceJobByServiceJobIdResp, error) AddAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, body AddAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*AddAppointmentForServiceJobByServiceJobIdResp, error) // RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse request with any body RescheduleAppointmentForServiceJobByServiceJobIdWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error) RescheduleAppointmentForServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error) // SetAppointmentFulfillmentDataWithBodyWithResponse request with any body SetAppointmentFulfillmentDataWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*SetAppointmentFulfillmentDataResp, error) SetAppointmentFulfillmentDataWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body SetAppointmentFulfillmentDataJSONRequestBody) (*SetAppointmentFulfillmentDataResp, error) // AssignAppointmentResourcesWithBodyWithResponse request with any body AssignAppointmentResourcesWithBodyWithResponse(ctx context.Context, serviceJobId string, appointmentId string, contentType string, body io.Reader) (*AssignAppointmentResourcesResp, error) AssignAppointmentResourcesWithResponse(ctx context.Context, serviceJobId string, appointmentId string, body AssignAppointmentResourcesJSONRequestBody) (*AssignAppointmentResourcesResp, error) // CancelServiceJobByServiceJobIdWithResponse request CancelServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string, params *CancelServiceJobByServiceJobIdParams) (*CancelServiceJobByServiceJobIdResp, error) // CompleteServiceJobByServiceJobIdWithResponse request CompleteServiceJobByServiceJobIdWithResponse(ctx context.Context, serviceJobId string) (*CompleteServiceJobByServiceJobIdResp, error) // GetFixedSlotCapacityWithBodyWithResponse request with any body GetFixedSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, contentType string, body io.Reader) (*GetFixedSlotCapacityResp, error) GetFixedSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetFixedSlotCapacityParams, body GetFixedSlotCapacityJSONRequestBody) (*GetFixedSlotCapacityResp, error) // GetRangeSlotCapacityWithBodyWithResponse request with any body GetRangeSlotCapacityWithBodyWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, contentType string, body io.Reader) (*GetRangeSlotCapacityResp, error) GetRangeSlotCapacityWithResponse(ctx context.Context, resourceId string, params *GetRangeSlotCapacityParams, body GetRangeSlotCapacityJSONRequestBody) (*GetRangeSlotCapacityResp, error) // UpdateScheduleWithBodyWithResponse request with any body UpdateScheduleWithBodyWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, contentType string, body io.Reader) (*UpdateScheduleResp, error) UpdateScheduleWithResponse(ctx context.Context, resourceId string, params *UpdateScheduleParams, body UpdateScheduleJSONRequestBody) (*UpdateScheduleResp, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompleteServiceJobByServiceJobIdResp ¶
type CompleteServiceJobByServiceJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *CompleteServiceJobByServiceJobIdResponse JSON400 *CompleteServiceJobByServiceJobIdResponse JSON403 *CompleteServiceJobByServiceJobIdResponse JSON404 *CompleteServiceJobByServiceJobIdResponse JSON413 *CompleteServiceJobByServiceJobIdResponse JSON415 *CompleteServiceJobByServiceJobIdResponse JSON422 *CompleteServiceJobByServiceJobIdResponse JSON429 *CompleteServiceJobByServiceJobIdResponse JSON500 *CompleteServiceJobByServiceJobIdResponse JSON503 *CompleteServiceJobByServiceJobIdResponse }
func ParseCompleteServiceJobByServiceJobIdResp ¶
func ParseCompleteServiceJobByServiceJobIdResp(rsp *http.Response) (*CompleteServiceJobByServiceJobIdResp, error)
ParseCompleteServiceJobByServiceJobIdResp parses an HTTP response from a CompleteServiceJobByServiceJobIdWithResponse call
func (CompleteServiceJobByServiceJobIdResp) Status ¶
func (r CompleteServiceJobByServiceJobIdResp) Status() string
Status returns HTTPResponse.Status
func (CompleteServiceJobByServiceJobIdResp) StatusCode ¶
func (r CompleteServiceJobByServiceJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CompleteServiceJobByServiceJobIdResponse ¶
type CompleteServiceJobByServiceJobIdResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
CompleteServiceJobByServiceJobIdResponse Response schema for the `completeServiceJobByServiceJobId` operation.
type CreateReservationJSONRequestBody ¶
type CreateReservationJSONRequestBody = CreateReservationRequest
CreateReservationJSONRequestBody defines body for CreateReservation for application/json ContentType.
type CreateReservationParams ¶
type CreateReservationParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
CreateReservationParams defines parameters for CreateReservation.
type CreateReservationRecord ¶
type CreateReservationRecord struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Reservation Reservation object reduces the capacity of a resource. Reservation *Reservation `json:"reservation,omitempty"` // Warnings A list of warnings returned in the sucessful execution response of an API request. Warnings *WarningList `json:"warnings,omitempty"` }
CreateReservationRecord `CreateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`.
type CreateReservationRequest ¶
type CreateReservationRequest struct { // Reservation Reservation object reduces the capacity of a resource. Reservation Reservation `json:"reservation"` // ResourceId Resource (store) identifier. ResourceId string `json:"resourceId"` }
CreateReservationRequest Request schema for the `createReservation` operation.
type CreateReservationResp ¶
type CreateReservationResp struct { Body []byte HTTPResponse *http.Response JSON200 *CreateReservationResponse JSON400 *CreateReservationResponse JSON403 *CreateReservationResponse JSON404 *CreateReservationResponse JSON413 *CreateReservationResponse JSON415 *CreateReservationResponse JSON429 *CreateReservationResponse JSON500 *CreateReservationResponse JSON503 *CreateReservationResponse }
func ParseCreateReservationResp ¶
func ParseCreateReservationResp(rsp *http.Response) (*CreateReservationResp, error)
ParseCreateReservationResp parses an HTTP response from a CreateReservationWithResponse call
func (CreateReservationResp) Status ¶
func (r CreateReservationResp) Status() string
Status returns HTTPResponse.Status
func (CreateReservationResp) StatusCode ¶
func (r CreateReservationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateReservationResponse ¶
type CreateReservationResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload `CreateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`. Payload *CreateReservationRecord `json:"payload,omitempty"` }
CreateReservationResponse Response schema for the `createReservation` operation.
type CreateServiceDocumentUploadDestination ¶
type CreateServiceDocumentUploadDestination struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Information about an upload destination. Payload *ServiceDocumentUploadDestination `json:"payload,omitempty"` }
CreateServiceDocumentUploadDestination The response schema for the `createServiceDocumentUploadDestination` operation.
type CreateServiceDocumentUploadDestinationJSONRequestBody ¶
type CreateServiceDocumentUploadDestinationJSONRequestBody = ServiceUploadDocument
CreateServiceDocumentUploadDestinationJSONRequestBody defines body for CreateServiceDocumentUploadDestination for application/json ContentType.
type CreateServiceDocumentUploadDestinationResp ¶
type CreateServiceDocumentUploadDestinationResp struct { Body []byte HTTPResponse *http.Response JSON200 *CreateServiceDocumentUploadDestination JSON400 *CreateServiceDocumentUploadDestination JSON403 *CreateServiceDocumentUploadDestination JSON404 *CreateServiceDocumentUploadDestination JSON413 *CreateServiceDocumentUploadDestination JSON415 *CreateServiceDocumentUploadDestination JSON422 *CreateServiceDocumentUploadDestination JSON429 *CreateServiceDocumentUploadDestination JSON500 *CreateServiceDocumentUploadDestination JSON503 *CreateServiceDocumentUploadDestination }
func ParseCreateServiceDocumentUploadDestinationResp ¶
func ParseCreateServiceDocumentUploadDestinationResp(rsp *http.Response) (*CreateServiceDocumentUploadDestinationResp, error)
ParseCreateServiceDocumentUploadDestinationResp parses an HTTP response from a CreateServiceDocumentUploadDestinationWithResponse call
func (CreateServiceDocumentUploadDestinationResp) Status ¶
func (r CreateServiceDocumentUploadDestinationResp) Status() string
Status returns HTTPResponse.Status
func (CreateServiceDocumentUploadDestinationResp) StatusCode ¶
func (r CreateServiceDocumentUploadDestinationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EncryptionDetails ¶
type EncryptionDetails struct { // InitializationVector The vector to encrypt or decrypt the document contents using Cipher Block Chaining (CBC). InitializationVector string `json:"initializationVector"` // Key The encryption key used to encrypt or decrypt the document contents. Key string `json:"key"` // Standard The encryption standard required to encrypt or decrypt the document contents. Standard EncryptionDetailsStandard `json:"standard"` }
EncryptionDetails Encryption details for required client-side encryption and decryption of document contents.
type EncryptionDetailsStandard ¶
type EncryptionDetailsStandard string
EncryptionDetailsStandard The encryption standard required to encrypt or decrypt the document contents.
const (
AES EncryptionDetailsStandard = "AES"
)
Defines values for EncryptionDetailsStandard.
type Error ¶
type Error struct { // Code An error code that identifies the type of error that occurred. Code string `json:"code"` // Details Additional details that can help the caller understand or fix the issue. Details *string `json:"details,omitempty"` // ErrorLevel The type of error. ErrorLevel *ErrorErrorLevel `json:"errorLevel,omitempty"` // Message A message that describes the error condition in a human-readable form. Message string `json:"message"` }
Error Error response returned when the request is unsuccessful.
type ErrorErrorLevel ¶
type ErrorErrorLevel string
ErrorErrorLevel The type of error.
const ( ERROR ErrorErrorLevel = "ERROR" WARNING ErrorErrorLevel = "WARNING" )
Defines values for ErrorErrorLevel.
type ErrorList ¶
type ErrorList = []Error
ErrorList A list of error responses returned when a request is unsuccessful.
type FixedSlot ¶
type FixedSlot struct { // AvailableCapacity Available capacity corresponding to the slot. This capacity represents the capacity available for allocation to reservations. AvailableCapacity *int32 `json:"availableCapacity,omitempty"` // EncumberedCapacity Encumbered capacity corresponding to the slot. This capacity represents the capacity allocated for Amazon Jobs/Appointments/Orders. EncumberedCapacity *int32 `json:"encumberedCapacity,omitempty"` // ReservedCapacity Reserved capacity corresponding to the slot. This capacity represents the capacity made unavailable due to events like Breaks/Leaves/Lunch. ReservedCapacity *int32 `json:"reservedCapacity,omitempty"` // ScheduledCapacity Scheduled capacity corresponding to the slot. This capacity represents the originally allocated capacity as per resource schedule. ScheduledCapacity *int32 `json:"scheduledCapacity,omitempty"` // StartDateTime Start date time of slot in ISO 8601 format with precision of seconds. StartDateTime *time.Time `json:"startDateTime,omitempty"` }
FixedSlot In this slot format each slot only has the requested capacity types. This slot size is as specified by slot duration.
type FixedSlotCapacity ¶
type FixedSlotCapacity struct { // Capacities Array of capacity slots in fixed slot format. Capacities *[]FixedSlot `json:"capacities,omitempty"` // NextPageToken Next page token, if there are more pages. NextPageToken *string `json:"nextPageToken,omitempty"` // ResourceId Resource Identifier. ResourceId *string `json:"resourceId,omitempty"` // SlotDuration The duration of each slot which is returned. This value will be a multiple of 5 and fall in the following range: 5 <= `slotDuration` <= 360. SlotDuration *int32 `json:"slotDuration,omitempty"` }
FixedSlotCapacity Response schema for the `getFixedSlotCapacity` operation.
type FixedSlotCapacityErrors ¶
type FixedSlotCapacityErrors struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
FixedSlotCapacityErrors The error response schema for the `getFixedSlotCapacity` operation.
type FixedSlotCapacityQuery ¶
type FixedSlotCapacityQuery struct { // CapacityTypes An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. CapacityTypes *[]CapacityType `json:"capacityTypes,omitempty"` // EndDateTime End date time up to which the capacity slots are being requested in ISO 8601 format. EndDateTime time.Time `json:"endDateTime"` // SlotDuration Size in which slots are being requested. This value should be a multiple of 5 and fall in the range: 5 <= `slotDuration` <= 360. SlotDuration *int32 `json:"slotDuration,omitempty"` // StartDateTime Start date time from which the capacity slots are being requested in ISO 8601 format. StartDateTime time.Time `json:"startDateTime"` }
FixedSlotCapacityQuery Request schema for the `getFixedSlotCapacity` operation. This schema is used to define the time range, capacity types and slot duration which are being queried.
type FulfillmentDocument ¶
type FulfillmentDocument struct { // ContentSha256 Sha256 hash of the file content. This value is used to determine if the file has been corrupted or tampered with during transit. ContentSha256 *string `json:"contentSha256,omitempty"` // UploadDestinationId The identifier of the upload destination. Get this value by calling the `createServiceDocumentUploadDestination` operation of the Services API. UploadDestinationId *string `json:"uploadDestinationId,omitempty"` }
FulfillmentDocument Document that captured during service appointment fulfillment that portrays proof of completion
type FulfillmentDocuments ¶
type FulfillmentDocuments = []FulfillmentDocument
FulfillmentDocuments List of documents captured during service appointment fulfillment.
type FulfillmentTime ¶
type FulfillmentTime struct { // EndTime The date, time in UTC of the fulfillment end time in ISO 8601 format. EndTime *time.Time `json:"endTime,omitempty"` // StartTime The date, time in UTC of the fulfillment start time in ISO 8601 format. StartTime *time.Time `json:"startTime,omitempty"` }
FulfillmentTime Input for fulfillment time details
type GetAppointmentSlotsParams ¶
type GetAppointmentSlotsParams struct { // Asin ASIN associated with the service. Asin string `form:"asin" json:"asin"` // StoreId Store identifier defining the region scope to retrive appointment slots. StoreId string `form:"storeId" json:"storeId"` // MarketplaceIds An identifier for the marketplace for which appointment slots are queried MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` // StartTime A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. StartTime *string `form:"startTime,omitempty" json:"startTime,omitempty"` // EndTime A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. EndTime *string `form:"endTime,omitempty" json:"endTime,omitempty"` }
GetAppointmentSlotsParams defines parameters for GetAppointmentSlots.
type GetAppointmentSlotsResp ¶
type GetAppointmentSlotsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetAppointmentSlotsResponse JSON400 *GetAppointmentSlotsResponse JSON403 *GetAppointmentSlotsResponse JSON404 *GetAppointmentSlotsResponse JSON415 *GetAppointmentSlotsResponse JSON422 *GetAppointmentSlotsResponse JSON429 *GetAppointmentSlotsResponse JSON500 *GetAppointmentSlotsResponse JSON503 *GetAppointmentSlotsResponse }
func ParseGetAppointmentSlotsResp ¶
func ParseGetAppointmentSlotsResp(rsp *http.Response) (*GetAppointmentSlotsResp, error)
ParseGetAppointmentSlotsResp parses an HTTP response from a GetAppointmentSlotsWithResponse call
func (GetAppointmentSlotsResp) Status ¶
func (r GetAppointmentSlotsResp) Status() string
Status returns HTTPResponse.Status
func (GetAppointmentSlotsResp) StatusCode ¶
func (r GetAppointmentSlotsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAppointmentSlotsResponse ¶
type GetAppointmentSlotsResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Availability information as per the service context queried. Payload *AppointmentSlotReport `json:"payload,omitempty"` }
GetAppointmentSlotsResponse The response of fetching appointment slots based on service context.
type GetAppointmmentSlotsByJobIdParams ¶
type GetAppointmmentSlotsByJobIdParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` // StartTime A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration. StartTime *string `form:"startTime,omitempty" json:"startTime,omitempty"` // EndTime A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days. EndTime *string `form:"endTime,omitempty" json:"endTime,omitempty"` }
GetAppointmmentSlotsByJobIdParams defines parameters for GetAppointmmentSlotsByJobId.
type GetAppointmmentSlotsByJobIdResp ¶
type GetAppointmmentSlotsByJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetAppointmentSlotsResponse JSON400 *GetAppointmentSlotsResponse JSON403 *GetAppointmentSlotsResponse JSON404 *GetAppointmentSlotsResponse JSON415 *GetAppointmentSlotsResponse JSON422 *GetAppointmentSlotsResponse JSON429 *GetAppointmentSlotsResponse JSON500 *GetAppointmentSlotsResponse JSON503 *GetAppointmentSlotsResponse }
func ParseGetAppointmmentSlotsByJobIdResp ¶
func ParseGetAppointmmentSlotsByJobIdResp(rsp *http.Response) (*GetAppointmmentSlotsByJobIdResp, error)
ParseGetAppointmmentSlotsByJobIdResp parses an HTTP response from a GetAppointmmentSlotsByJobIdWithResponse call
func (GetAppointmmentSlotsByJobIdResp) Status ¶
func (r GetAppointmmentSlotsByJobIdResp) Status() string
Status returns HTTPResponse.Status
func (GetAppointmmentSlotsByJobIdResp) StatusCode ¶
func (r GetAppointmmentSlotsByJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFixedSlotCapacityJSONRequestBody ¶
type GetFixedSlotCapacityJSONRequestBody = FixedSlotCapacityQuery
GetFixedSlotCapacityJSONRequestBody defines body for GetFixedSlotCapacity for application/json ContentType.
type GetFixedSlotCapacityParams ¶
type GetFixedSlotCapacityParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` // NextPageToken Next page token returned in the response of your previous request. NextPageToken *string `form:"nextPageToken,omitempty" json:"nextPageToken,omitempty"` }
GetFixedSlotCapacityParams defines parameters for GetFixedSlotCapacity.
type GetFixedSlotCapacityResp ¶
type GetFixedSlotCapacityResp struct { Body []byte HTTPResponse *http.Response JSON200 *FixedSlotCapacity JSON400 *FixedSlotCapacityErrors JSON401 *FixedSlotCapacityErrors JSON403 *FixedSlotCapacityErrors JSON404 *FixedSlotCapacityErrors JSON413 *FixedSlotCapacityErrors JSON415 *FixedSlotCapacityErrors JSON429 *FixedSlotCapacityErrors JSON500 *FixedSlotCapacityErrors JSON503 *FixedSlotCapacityErrors }
func ParseGetFixedSlotCapacityResp ¶
func ParseGetFixedSlotCapacityResp(rsp *http.Response) (*GetFixedSlotCapacityResp, error)
ParseGetFixedSlotCapacityResp parses an HTTP response from a GetFixedSlotCapacityWithResponse call
func (GetFixedSlotCapacityResp) Status ¶
func (r GetFixedSlotCapacityResp) Status() string
Status returns HTTPResponse.Status
func (GetFixedSlotCapacityResp) StatusCode ¶
func (r GetFixedSlotCapacityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRangeSlotCapacityJSONRequestBody ¶
type GetRangeSlotCapacityJSONRequestBody = RangeSlotCapacityQuery
GetRangeSlotCapacityJSONRequestBody defines body for GetRangeSlotCapacity for application/json ContentType.
type GetRangeSlotCapacityParams ¶
type GetRangeSlotCapacityParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` // NextPageToken Next page token returned in the response of your previous request. NextPageToken *string `form:"nextPageToken,omitempty" json:"nextPageToken,omitempty"` }
GetRangeSlotCapacityParams defines parameters for GetRangeSlotCapacity.
type GetRangeSlotCapacityResp ¶
type GetRangeSlotCapacityResp struct { Body []byte HTTPResponse *http.Response JSON200 *RangeSlotCapacity JSON400 *RangeSlotCapacityErrors JSON401 *RangeSlotCapacityErrors JSON403 *RangeSlotCapacityErrors JSON404 *RangeSlotCapacityErrors JSON413 *RangeSlotCapacityErrors JSON415 *RangeSlotCapacityErrors JSON429 *RangeSlotCapacityErrors JSON500 *RangeSlotCapacityErrors JSON503 *RangeSlotCapacityErrors }
func ParseGetRangeSlotCapacityResp ¶
func ParseGetRangeSlotCapacityResp(rsp *http.Response) (*GetRangeSlotCapacityResp, error)
ParseGetRangeSlotCapacityResp parses an HTTP response from a GetRangeSlotCapacityWithResponse call
func (GetRangeSlotCapacityResp) Status ¶
func (r GetRangeSlotCapacityResp) Status() string
Status returns HTTPResponse.Status
func (GetRangeSlotCapacityResp) StatusCode ¶
func (r GetRangeSlotCapacityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceJobByServiceJobIdResp ¶
type GetServiceJobByServiceJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetServiceJobByServiceJobIdResponse JSON400 *GetServiceJobByServiceJobIdResponse JSON403 *GetServiceJobByServiceJobIdResponse JSON404 *GetServiceJobByServiceJobIdResponse JSON413 *GetServiceJobByServiceJobIdResponse JSON415 *GetServiceJobByServiceJobIdResponse JSON422 *GetServiceJobByServiceJobIdResponse JSON429 *GetServiceJobByServiceJobIdResponse JSON500 *GetServiceJobByServiceJobIdResponse JSON503 *GetServiceJobByServiceJobIdResponse }
func ParseGetServiceJobByServiceJobIdResp ¶
func ParseGetServiceJobByServiceJobIdResp(rsp *http.Response) (*GetServiceJobByServiceJobIdResp, error)
ParseGetServiceJobByServiceJobIdResp parses an HTTP response from a GetServiceJobByServiceJobIdWithResponse call
func (GetServiceJobByServiceJobIdResp) Status ¶
func (r GetServiceJobByServiceJobIdResp) Status() string
Status returns HTTPResponse.Status
func (GetServiceJobByServiceJobIdResp) StatusCode ¶
func (r GetServiceJobByServiceJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceJobByServiceJobIdResponse ¶
type GetServiceJobByServiceJobIdResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload The job details of a service. Payload *ServiceJob `json:"payload,omitempty"` }
GetServiceJobByServiceJobIdResponse The response schema for the `getServiceJobByServiceJobId` operation.
type GetServiceJobsParams ¶
type GetServiceJobsParams struct { // ServiceOrderIds List of service order ids for the query you want to perform.Max values supported 20. ServiceOrderIds *[]string `form:"serviceOrderIds,omitempty" json:"serviceOrderIds,omitempty"` // ServiceJobStatus A list of one or more job status by which to filter the list of jobs. ServiceJobStatus *[]GetServiceJobsParamsServiceJobStatus `form:"serviceJobStatus,omitempty" json:"serviceJobStatus,omitempty"` // PageToken String returned in the response of your previous request. PageToken *string `form:"pageToken,omitempty" json:"pageToken,omitempty"` // PageSize A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"` // SortField Sort fields on which you want to sort the output. SortField *GetServiceJobsParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"` // SortOrder Sort order for the query you want to perform. SortOrder *GetServiceJobsParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"` // CreatedAfter A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. CreatedAfter *string `form:"createdAfter,omitempty" json:"createdAfter,omitempty"` // CreatedBefore A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format. CreatedBefore *string `form:"createdBefore,omitempty" json:"createdBefore,omitempty"` // LastUpdatedAfter A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error. LastUpdatedAfter *string `form:"lastUpdatedAfter,omitempty" json:"lastUpdatedAfter,omitempty"` // LastUpdatedBefore A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format. LastUpdatedBefore *string `form:"lastUpdatedBefore,omitempty" json:"lastUpdatedBefore,omitempty"` // ScheduleStartDate A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. ScheduleStartDate *string `form:"scheduleStartDate,omitempty" json:"scheduleStartDate,omitempty"` // ScheduleEndDate A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date. ScheduleEndDate *string `form:"scheduleEndDate,omitempty" json:"scheduleEndDate,omitempty"` // MarketplaceIds Used to select jobs that were placed in the specified marketplaces. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` // Asins List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20. Asins *[]string `form:"asins,omitempty" json:"asins,omitempty"` // RequiredSkills A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20. RequiredSkills *[]string `form:"requiredSkills,omitempty" json:"requiredSkills,omitempty"` // StoreIds List of Amazon-defined identifiers for the region scope. Max values supported is 50. StoreIds *[]string `form:"storeIds,omitempty" json:"storeIds,omitempty"` }
GetServiceJobsParams defines parameters for GetServiceJobs.
type GetServiceJobsParamsServiceJobStatus ¶
type GetServiceJobsParamsServiceJobStatus string
GetServiceJobsParamsServiceJobStatus defines parameters for GetServiceJobs.
const ( GetServiceJobsParamsServiceJobStatusCANCELLED GetServiceJobsParamsServiceJobStatus = "CANCELLED" GetServiceJobsParamsServiceJobStatusCOMPLETED GetServiceJobsParamsServiceJobStatus = "COMPLETED" GetServiceJobsParamsServiceJobStatusHOLD GetServiceJobsParamsServiceJobStatus = "HOLD" GetServiceJobsParamsServiceJobStatusNOTFULFILLABLE GetServiceJobsParamsServiceJobStatus = "NOT_FULFILLABLE" GetServiceJobsParamsServiceJobStatusNOTSERVICED GetServiceJobsParamsServiceJobStatus = "NOT_SERVICED" GetServiceJobsParamsServiceJobStatusPAYMENTDECLINED GetServiceJobsParamsServiceJobStatus = "PAYMENT_DECLINED" GetServiceJobsParamsServiceJobStatusPENDINGSCHEDULE GetServiceJobsParamsServiceJobStatus = "PENDING_SCHEDULE" )
Defines values for GetServiceJobsParamsServiceJobStatus.
type GetServiceJobsParamsSortField ¶
type GetServiceJobsParamsSortField string
GetServiceJobsParamsSortField defines parameters for GetServiceJobs.
const ( JOBDATE GetServiceJobsParamsSortField = "JOB_DATE" JOBSTATUS GetServiceJobsParamsSortField = "JOB_STATUS" )
Defines values for GetServiceJobsParamsSortField.
type GetServiceJobsParamsSortOrder ¶
type GetServiceJobsParamsSortOrder string
GetServiceJobsParamsSortOrder defines parameters for GetServiceJobs.
const ( ASC GetServiceJobsParamsSortOrder = "ASC" DESC GetServiceJobsParamsSortOrder = "DESC" )
Defines values for GetServiceJobsParamsSortOrder.
type GetServiceJobsResp ¶
type GetServiceJobsResp struct { Body []byte HTTPResponse *http.Response JSON200 *GetServiceJobsResponse JSON400 *GetServiceJobsResponse JSON403 *GetServiceJobsResponse JSON404 *GetServiceJobsResponse JSON413 *GetServiceJobsResponse JSON415 *GetServiceJobsResponse JSON429 *GetServiceJobsResponse JSON500 *GetServiceJobsResponse JSON503 *GetServiceJobsResponse }
func ParseGetServiceJobsResp ¶
func ParseGetServiceJobsResp(rsp *http.Response) (*GetServiceJobsResp, error)
ParseGetServiceJobsResp parses an HTTP response from a GetServiceJobsWithResponse call
func (GetServiceJobsResp) Status ¶
func (r GetServiceJobsResp) Status() string
Status returns HTTPResponse.Status
func (GetServiceJobsResp) StatusCode ¶
func (r GetServiceJobsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetServiceJobsResponse ¶
type GetServiceJobsResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload The payload for the `getServiceJobs` operation. Payload *JobListing `json:"payload,omitempty"` }
GetServiceJobsResponse Response schema for the `getServiceJobs` operation.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ItemDelivery ¶
type ItemDelivery struct { // EstimatedDeliveryDate The date and time of the latest Estimated Delivery Date (EDD) of all the items with an EDD. In ISO 8601 format. EstimatedDeliveryDate *time.Time `json:"estimatedDeliveryDate,omitempty"` // ItemDeliveryPromise Promised delivery information for the item. ItemDeliveryPromise *ItemDeliveryPromise `json:"itemDeliveryPromise,omitempty"` }
ItemDelivery Delivery information for the item.
type ItemDeliveryPromise ¶
type ItemDeliveryPromise struct { // EndTime The date and time of the end of the promised delivery window in ISO 8601 format. EndTime *time.Time `json:"endTime,omitempty"` // StartTime The date and time of the start of the promised delivery window in ISO 8601 format. StartTime *time.Time `json:"startTime,omitempty"` }
ItemDeliveryPromise Promised delivery information for the item.
type JobListing ¶
type JobListing struct { // Jobs List of job details for the given input. Jobs *[]ServiceJob `json:"jobs,omitempty"` // NextPageToken A generated string used to pass information to your next request. If `nextPageToken` is returned, pass the value of `nextPageToken` to the `pageToken` to get next results. NextPageToken *string `json:"nextPageToken,omitempty"` // PreviousPageToken A generated string used to pass information to your next request. If `previousPageToken` is returned, pass the value of `previousPageToken` to the `pageToken` to get previous page results. PreviousPageToken *string `json:"previousPageToken,omitempty"` // TotalResultSize Total result size of the query result. TotalResultSize *int `json:"totalResultSize,omitempty"` }
JobListing The payload for the `getServiceJobs` operation.
type OrderId ¶
type OrderId = string
OrderId The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format.
type Poa ¶
type Poa struct { // AppointmentTime The time of the appointment window. AppointmentTime *AppointmentTime `json:"appointmentTime,omitempty"` // PoaType The type of POA uploaded. PoaType *PoaPoaType `json:"poaType,omitempty"` // Technicians A list of technicians. Technicians *[]Technician `json:"technicians,omitempty"` // UploadTime The date and time when the POA was uploaded in ISO 8601 format. UploadTime *time.Time `json:"uploadTime,omitempty"` // UploadingTechnician The identifier of the technician who uploaded the POA. UploadingTechnician *string `json:"uploadingTechnician,omitempty"` }
Poa Proof of Appointment (POA) details.
type PoaPoaType ¶
type PoaPoaType string
PoaPoaType The type of POA uploaded.
const ( CUSTOMERSIGNATURE PoaPoaType = "CUSTOMER_SIGNATURE" DUMMYRECEIPT PoaPoaType = "DUMMY_RECEIPT" NOSIGNATUREDUMMYPOS PoaPoaType = "NO_SIGNATURE_DUMMY_POS" POARECEIPT PoaPoaType = "POA_RECEIPT" )
Defines values for PoaPoaType.
type RangeCapacity ¶
type RangeCapacity struct { // CapacityType Type of capacity CapacityType *CapacityType `json:"capacityType,omitempty"` // Slots Array of capacity slots in range slot format. Slots *[]RangeSlot `json:"slots,omitempty"` }
RangeCapacity Range capacity entity where each entry has a capacity type and corresponding slots.
type RangeSlot ¶
type RangeSlot struct { // Capacity Capacity of the slot. Capacity *int32 `json:"capacity,omitempty"` // EndDateTime End date time of slot in ISO 8601 format with precision of seconds. EndDateTime *time.Time `json:"endDateTime,omitempty"` // StartDateTime Start date time of slot in ISO 8601 format with precision of seconds. StartDateTime *time.Time `json:"startDateTime,omitempty"` }
RangeSlot Capacity slots represented in a format similar to availability rules.
type RangeSlotCapacity ¶
type RangeSlotCapacity struct { // Capacities Array of range capacities where each entry is for a specific capacity type. Capacities *[]RangeCapacity `json:"capacities,omitempty"` // NextPageToken Next page token, if there are more pages. NextPageToken *string `json:"nextPageToken,omitempty"` // ResourceId Resource Identifier. ResourceId *string `json:"resourceId,omitempty"` }
RangeSlotCapacity Response schema for the `getRangeSlotCapacity` operation.
type RangeSlotCapacityErrors ¶
type RangeSlotCapacityErrors struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` }
RangeSlotCapacityErrors The error response schema for the `getRangeSlotCapacity` operation.
type RangeSlotCapacityQuery ¶
type RangeSlotCapacityQuery struct { // CapacityTypes An array of capacity types which are being requested. Default value is `[SCHEDULED_CAPACITY]`. CapacityTypes *[]CapacityType `json:"capacityTypes,omitempty"` // EndDateTime End date time up to which the capacity slots are being requested in ISO 8601 format. EndDateTime time.Time `json:"endDateTime"` // StartDateTime Start date time from which the capacity slots are being requested in ISO 8601 format. StartDateTime time.Time `json:"startDateTime"` }
RangeSlotCapacityQuery Request schema for the `getRangeSlotCapacity` operation. This schema is used to define the time range and capacity types that are being queried.
type Recurrence ¶
type Recurrence struct { // DaysOfMonth Days of the month when recurrence is valid. DaysOfMonth *[]int `json:"daysOfMonth,omitempty"` // DaysOfWeek Days of the week when recurrence is valid. If the schedule is valid every Monday, input will only contain `MONDAY` in the list. DaysOfWeek *[]DayOfWeek `json:"daysOfWeek,omitempty"` // EndTime End time of the recurrence. EndTime time.Time `json:"endTime"` }
Recurrence Repeated occurrence of an event in a time range.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody ¶
type RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody = RescheduleAppointmentRequest
RescheduleAppointmentForServiceJobByServiceJobIdJSONRequestBody defines body for RescheduleAppointmentForServiceJobByServiceJobId for application/json ContentType.
type RescheduleAppointmentForServiceJobByServiceJobIdResp ¶
type RescheduleAppointmentForServiceJobByServiceJobIdResp struct { Body []byte HTTPResponse *http.Response JSON200 *SetAppointmentResponse JSON400 *SetAppointmentResponse JSON403 *SetAppointmentResponse JSON404 *SetAppointmentResponse JSON413 *SetAppointmentResponse JSON415 *SetAppointmentResponse JSON422 *SetAppointmentResponse JSON429 *SetAppointmentResponse JSON500 *SetAppointmentResponse JSON503 *SetAppointmentResponse }
func ParseRescheduleAppointmentForServiceJobByServiceJobIdResp ¶
func ParseRescheduleAppointmentForServiceJobByServiceJobIdResp(rsp *http.Response) (*RescheduleAppointmentForServiceJobByServiceJobIdResp, error)
ParseRescheduleAppointmentForServiceJobByServiceJobIdResp parses an HTTP response from a RescheduleAppointmentForServiceJobByServiceJobIdWithResponse call
func (RescheduleAppointmentForServiceJobByServiceJobIdResp) Status ¶
func (r RescheduleAppointmentForServiceJobByServiceJobIdResp) Status() string
Status returns HTTPResponse.Status
func (RescheduleAppointmentForServiceJobByServiceJobIdResp) StatusCode ¶
func (r RescheduleAppointmentForServiceJobByServiceJobIdResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RescheduleAppointmentRequest ¶
type RescheduleAppointmentRequest struct { // AppointmentTime The input appointment time details. AppointmentTime AppointmentTimeInput `json:"appointmentTime"` // RescheduleReasonCode The appointment reschedule reason code. RescheduleReasonCode RescheduleReasonCode `json:"rescheduleReasonCode"` }
RescheduleAppointmentRequest Input for rescheduled appointment operation.
type RescheduleReasonCode ¶
type RescheduleReasonCode = string
RescheduleReasonCode The appointment reschedule reason code.
type Reservation ¶
type Reservation struct { // Availability `AvailabilityRecord` to represent the capacity of a resource over a time range. Availability AvailabilityRecord `json:"availability"` // ReservationId Unique identifier for a reservation. If present, it is treated as an update reservation request and will update the corresponding reservation. Otherwise, it is treated as a new create reservation request. ReservationId *string `json:"reservationId,omitempty"` // Type Type of reservation. Type ReservationType `json:"type"` }
Reservation Reservation object reduces the capacity of a resource.
type ReservationType ¶
type ReservationType string
ReservationType Type of reservation.
const ( APPOINTMENT ReservationType = "APPOINTMENT" BREAK ReservationType = "BREAK" TRAINING ReservationType = "TRAINING" TRAVEL ReservationType = "TRAVEL" VACATION ReservationType = "VACATION" )
Defines values for ReservationType.
type ResponseEditorFn ¶
ResponseEditorFn is the function signature for the ResponseEditor callback function
type ScopeOfWork ¶
type ScopeOfWork struct { // Asin The Amazon Standard Identification Number (ASIN) of the service job. Asin *string `json:"asin,omitempty"` // Quantity The number of service jobs. Quantity *int `json:"quantity,omitempty"` // RequiredSkills A list of skills required to perform the job. RequiredSkills *[]string `json:"requiredSkills,omitempty"` // Title The title of the service job. Title *string `json:"title,omitempty"` }
ScopeOfWork The scope of work for the order.
type Seller ¶
type Seller struct { // SellerId The identifier of the seller of the service job. SellerId *string `json:"sellerId,omitempty"` }
Seller Information about the seller of the service job.
type ServiceDocumentUploadDestination ¶
type ServiceDocumentUploadDestination struct { // EncryptionDetails Encryption details for required client-side encryption and decryption of document contents. EncryptionDetails EncryptionDetails `json:"encryptionDetails"` // Headers The headers to include in the upload request. Headers *map[string]interface{} `json:"headers,omitempty"` // UploadDestinationId The unique identifier to be used by APIs that reference the upload destination. UploadDestinationId string `json:"uploadDestinationId"` // Url The URL to which to upload the file. Url string `json:"url"` }
ServiceDocumentUploadDestination Information about an upload destination.
type ServiceJob ¶
type ServiceJob struct { // Appointments A list of appointments. Appointments *[]Appointment `json:"appointments,omitempty"` // AssociatedItems A list of items associated with the service job. AssociatedItems *[]AssociatedItem `json:"associatedItems,omitempty"` // Buyer Information about the buyer. Buyer *Buyer `json:"buyer,omitempty"` // CreateTime The date and time of the creation of the job in ISO 8601 format. CreateTime *time.Time `json:"createTime,omitempty"` // MarketplaceId The marketplace identifier. MarketplaceId *string `json:"marketplaceId,omitempty"` // PreferredAppointmentTimes A list of appointment windows preferred by the buyer. Included only if the buyer selected appointment windows when creating the order. PreferredAppointmentTimes *[]AppointmentTime `json:"preferredAppointmentTimes,omitempty"` // ScopeOfWork The scope of work for the order. ScopeOfWork *ScopeOfWork `json:"scopeOfWork,omitempty"` // Seller Information about the seller of the service job. Seller *Seller `json:"seller,omitempty"` // ServiceJobId Amazon identifier for the service job. ServiceJobId *ServiceJobId `json:"serviceJobId,omitempty"` // ServiceJobProvider Information about the service job provider. ServiceJobProvider *ServiceJobProvider `json:"serviceJobProvider,omitempty"` // ServiceJobStatus The status of the service job. ServiceJobStatus *ServiceJobServiceJobStatus `json:"serviceJobStatus,omitempty"` // ServiceLocation Information about the location of the service job. ServiceLocation *ServiceLocation `json:"serviceLocation,omitempty"` // ServiceOrderId The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. ServiceOrderId *OrderId `json:"serviceOrderId,omitempty"` // StoreId The Amazon-defined identifier for the region scope. StoreId *string `json:"storeId,omitempty"` }
ServiceJob The job details of a service.
type ServiceJobProvider ¶
type ServiceJobProvider struct { // ServiceJobProviderId The identifier of the service job provider. ServiceJobProviderId *string `json:"serviceJobProviderId,omitempty"` }
ServiceJobProvider Information about the service job provider.
type ServiceJobServiceJobStatus ¶
type ServiceJobServiceJobStatus string
ServiceJobServiceJobStatus The status of the service job.
const ( ServiceJobServiceJobStatusCANCELLED ServiceJobServiceJobStatus = "CANCELLED" ServiceJobServiceJobStatusCOMPLETED ServiceJobServiceJobStatus = "COMPLETED" ServiceJobServiceJobStatusHOLD ServiceJobServiceJobStatus = "HOLD" ServiceJobServiceJobStatusNOTFULFILLABLE ServiceJobServiceJobStatus = "NOT_FULFILLABLE" ServiceJobServiceJobStatusNOTSERVICED ServiceJobServiceJobStatus = "NOT_SERVICED" ServiceJobServiceJobStatusPAYMENTDECLINED ServiceJobServiceJobStatus = "PAYMENT_DECLINED" ServiceJobServiceJobStatusPENDINGSCHEDULE ServiceJobServiceJobStatus = "PENDING_SCHEDULE" )
Defines values for ServiceJobServiceJobStatus.
type ServiceLocation ¶
type ServiceLocation struct { // Address The shipping address for the service job. Address *Address `json:"address,omitempty"` // ServiceLocationType The location of the service job. ServiceLocationType *ServiceLocationServiceLocationType `json:"serviceLocationType,omitempty"` }
ServiceLocation Information about the location of the service job.
type ServiceLocationServiceLocationType ¶
type ServiceLocationServiceLocationType string
ServiceLocationServiceLocationType The location of the service job.
const ( INHOME ServiceLocationServiceLocationType = "IN_HOME" INSTORE ServiceLocationServiceLocationType = "IN_STORE" ONLINE ServiceLocationServiceLocationType = "ONLINE" )
Defines values for ServiceLocationServiceLocationType.
type ServiceUploadDocument ¶
type ServiceUploadDocument struct { // ContentLength The content length of the to-be-uploaded file ContentLength int64 `json:"contentLength"` // ContentMD5 An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. ContentMD5 *string `json:"contentMD5,omitempty"` // ContentType The content type of the to-be-uploaded file ContentType ServiceUploadDocumentContentType `json:"contentType"` }
ServiceUploadDocument Input for to be uploaded document.
type ServiceUploadDocumentContentType ¶
type ServiceUploadDocumentContentType string
ServiceUploadDocumentContentType The content type of the to-be-uploaded file
const ( GIF ServiceUploadDocumentContentType = "GIF" JPEG ServiceUploadDocumentContentType = "JPEG" JPG ServiceUploadDocumentContentType = "JPG" PDF ServiceUploadDocumentContentType = "PDF" PNG ServiceUploadDocumentContentType = "PNG" TIFF ServiceUploadDocumentContentType = "TIFF" )
Defines values for ServiceUploadDocumentContentType.
type SetAppointmentFulfillmentDataJSONRequestBody ¶
type SetAppointmentFulfillmentDataJSONRequestBody = SetAppointmentFulfillmentDataRequest
SetAppointmentFulfillmentDataJSONRequestBody defines body for SetAppointmentFulfillmentData for application/json ContentType.
type SetAppointmentFulfillmentDataRequest ¶
type SetAppointmentFulfillmentDataRequest struct { // AppointmentResources List of resources that performs or performed job appointment fulfillment. AppointmentResources *AppointmentResources `json:"appointmentResources,omitempty"` // FulfillmentDocuments List of documents captured during service appointment fulfillment. FulfillmentDocuments *FulfillmentDocuments `json:"fulfillmentDocuments,omitempty"` // FulfillmentTime Input for fulfillment time details FulfillmentTime *FulfillmentTime `json:"fulfillmentTime,omitempty"` }
SetAppointmentFulfillmentDataRequest Input for set appointment fulfillment data operation.
type SetAppointmentFulfillmentDataResp ¶
type SetAppointmentFulfillmentDataResp struct { Body []byte HTTPResponse *http.Response JSON204 *string JSON400 *ErrorList JSON403 *ErrorList JSON404 *ErrorList JSON413 *ErrorList JSON415 *ErrorList JSON422 *ErrorList JSON429 *ErrorList JSON500 *ErrorList JSON503 *ErrorList }
func ParseSetAppointmentFulfillmentDataResp ¶
func ParseSetAppointmentFulfillmentDataResp(rsp *http.Response) (*SetAppointmentFulfillmentDataResp, error)
ParseSetAppointmentFulfillmentDataResp parses an HTTP response from a SetAppointmentFulfillmentDataWithResponse call
func (SetAppointmentFulfillmentDataResp) Status ¶
func (r SetAppointmentFulfillmentDataResp) Status() string
Status returns HTTPResponse.Status
func (SetAppointmentFulfillmentDataResp) StatusCode ¶
func (r SetAppointmentFulfillmentDataResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetAppointmentResponse ¶
type SetAppointmentResponse struct { // AppointmentId The appointment identifier. AppointmentId *AppointmentId `json:"appointmentId,omitempty"` // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Warnings A list of warnings returned in the sucessful execution response of an API request. Warnings *WarningList `json:"warnings,omitempty"` }
SetAppointmentResponse Response schema for the `addAppointmentForServiceJobByServiceJobId` and `rescheduleAppointmentForServiceJobByServiceJobId` operations.
type Technician ¶
type Technician struct { // Name The name of the technician. Name *string `json:"name,omitempty"` // TechnicianId The technician identifier. TechnicianId *string `json:"technicianId,omitempty"` }
Technician A technician who is assigned to perform the service job in part or in full.
type UpdateReservationJSONRequestBody ¶
type UpdateReservationJSONRequestBody = UpdateReservationRequest
UpdateReservationJSONRequestBody defines body for UpdateReservation for application/json ContentType.
type UpdateReservationParams ¶
type UpdateReservationParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
UpdateReservationParams defines parameters for UpdateReservation.
type UpdateReservationRecord ¶
type UpdateReservationRecord struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Reservation Reservation object reduces the capacity of a resource. Reservation *Reservation `json:"reservation,omitempty"` // Warnings A list of warnings returned in the sucessful execution response of an API request. Warnings *WarningList `json:"warnings,omitempty"` }
UpdateReservationRecord `UpdateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`.
type UpdateReservationRequest ¶
type UpdateReservationRequest struct { // Reservation Reservation object reduces the capacity of a resource. Reservation Reservation `json:"reservation"` // ResourceId Resource (store) identifier. ResourceId string `json:"resourceId"` }
UpdateReservationRequest Request schema for the `updateReservation` operation.
type UpdateReservationResp ¶
type UpdateReservationResp struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateReservationResponse JSON400 *UpdateReservationResponse JSON403 *UpdateReservationResponse JSON404 *UpdateReservationResponse JSON413 *UpdateReservationResponse JSON415 *UpdateReservationResponse JSON429 *UpdateReservationResponse JSON500 *UpdateReservationResponse JSON503 *UpdateReservationResponse }
func ParseUpdateReservationResp ¶
func ParseUpdateReservationResp(rsp *http.Response) (*UpdateReservationResp, error)
ParseUpdateReservationResp parses an HTTP response from a UpdateReservationWithResponse call
func (UpdateReservationResp) Status ¶
func (r UpdateReservationResp) Status() string
Status returns HTTPResponse.Status
func (UpdateReservationResp) StatusCode ¶
func (r UpdateReservationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateReservationResponse ¶
type UpdateReservationResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload `UpdateReservationRecord` entity contains the `Reservation` if there is an error/warning while performing the requested operation on it, otherwise it will contain the new `reservationId`. Payload *UpdateReservationRecord `json:"payload,omitempty"` }
UpdateReservationResponse Response schema for the `updateReservation` operation.
type UpdateScheduleJSONRequestBody ¶
type UpdateScheduleJSONRequestBody = UpdateScheduleRequest
UpdateScheduleJSONRequestBody defines body for UpdateSchedule for application/json ContentType.
type UpdateScheduleParams ¶
type UpdateScheduleParams struct { // MarketplaceIds An identifier for the marketplace in which the resource operates. MarketplaceIds []string `form:"marketplaceIds" json:"marketplaceIds"` }
UpdateScheduleParams defines parameters for UpdateSchedule.
type UpdateScheduleRecord ¶
type UpdateScheduleRecord struct { // Availability `AvailabilityRecord` to represent the capacity of a resource over a time range. Availability *AvailabilityRecord `json:"availability,omitempty"` // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Warnings A list of warnings returned in the sucessful execution response of an API request. Warnings *WarningList `json:"warnings,omitempty"` }
UpdateScheduleRecord `UpdateScheduleRecord` entity contains the `AvailabilityRecord` if there is an error/warning while performing the requested operation on it.
type UpdateScheduleRequest ¶
type UpdateScheduleRequest struct { // Schedules List of `AvailabilityRecord`s to represent the capacity of a resource over a time range. Schedules AvailabilityRecords `json:"schedules"` }
UpdateScheduleRequest Request schema for the `updateSchedule` operation.
type UpdateScheduleResp ¶
type UpdateScheduleResp struct { Body []byte HTTPResponse *http.Response JSON200 *UpdateScheduleResponse JSON400 *UpdateScheduleResponse JSON403 *UpdateScheduleResponse JSON404 *UpdateScheduleResponse JSON413 *UpdateScheduleResponse JSON415 *UpdateScheduleResponse JSON429 *UpdateScheduleResponse JSON500 *UpdateScheduleResponse JSON503 *UpdateScheduleResponse }
func ParseUpdateScheduleResp ¶
func ParseUpdateScheduleResp(rsp *http.Response) (*UpdateScheduleResp, error)
ParseUpdateScheduleResp parses an HTTP response from a UpdateScheduleWithResponse call
func (UpdateScheduleResp) Status ¶
func (r UpdateScheduleResp) Status() string
Status returns HTTPResponse.Status
func (UpdateScheduleResp) StatusCode ¶
func (r UpdateScheduleResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateScheduleResponse ¶
type UpdateScheduleResponse struct { // Errors A list of error responses returned when a request is unsuccessful. Errors *ErrorList `json:"errors,omitempty"` // Payload Contains the `UpdateScheduleRecords` for which the error/warning has occurred. Payload *[]UpdateScheduleRecord `json:"payload,omitempty"` }
UpdateScheduleResponse Response schema for the `updateSchedule` operation.
type Warning ¶
type Warning struct { // Code An warning code that identifies the type of warning that occurred. Code string `json:"code"` // Details Additional details that can help the caller understand or address the warning. Details *string `json:"details,omitempty"` // Message A message that describes the warning condition in a human-readable form. Message string `json:"message"` }
Warning Warning returned when the request is successful, but there are important callouts based on which API clients should take defined actions.
type WarningList ¶
type WarningList = []Warning
WarningList A list of warnings returned in the sucessful execution response of an API request.