/**
 * Selling Partner API for Services
 * With the Services API, you can build applications that help service providers get and modify their service orders.
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Configuration } from './configuration' ; import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { DUMMY_BASE_URL , assertParamExists , setApiKeyToObject , setBasicAuthToObject , setBearerAuthToObject , setOAuthToObject , setSearchParams , serializeDataIfNeeded , toPathString , createRequestFunction } from './common' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from './base' ; export interface export interface AddAppointmentRequest { type { AppointmentTimeInput } memberof appointmentTime : AppointmentTimeInput ; } export interface export interface Address { type { string } memberof name : string ; type { string } memberof addressLine1 : string ; type { string } memberof addressLine2 ? : string ; type { string } memberof addressLine3 ? : string ; type { string } memberof city ? : string ; type { string } memberof county ? : string ; type { string } memberof district ? : string ; type { string } memberof stateOrRegion ? : string ; type { string } memberof postalCode ? : string ; type { string } memberof countryCode ? : string ; type { string } memberof phone ? : string ; } export interface export interface Appointment { type { string } memberof appointmentId ? : string ; type { string } memberof appointmentStatus ? : AppointmentAppointmentStatusEnum | 'ACTIVE' | 'CANCELLED' | 'COMPLETED' ; type { AppointmentTime } memberof appointmentTime ? : AppointmentTime ; type { Array < Technician > } memberof assignedTechnicians ? : Array < Technician > ; type { string } memberof rescheduledAppointmentId ? : string ; type { Poa } memberof poa ? : Poa ; } export enum { string } export enum AppointmentAppointmentStatusEnum { Active = 'ACTIVE' , Cancelled = 'CANCELLED' , Completed = 'COMPLETED' } export interface export interface AppointmentTime { type { string } memberof startTime : string ; type { number } memberof durationInMinutes : number ; } export interface export interface AppointmentTimeInput { type { string } memberof startTime : string ; type { number } memberof durationInMinutes ? : number ; } export interface export interface AssociatedItem { type { string } memberof asin ? : string ; type { string } memberof title ? : string ; type { number } memberof quantity ? : number ; type { string } memberof orderId ? : string ; type { string } memberof itemStatus ? : AssociatedItemItemStatusEnum | 'ACTIVE' | 'CANCELLED' | 'SHIPPED' | 'DELIVERED' ; type { string } memberof brandName ? : string ; type { ItemDelivery } memberof itemDelivery ? : ItemDelivery ; } export enum { string } export enum AssociatedItemItemStatusEnum { Active = 'ACTIVE' , Cancelled = 'CANCELLED' , Shipped = 'SHIPPED' , Delivered = 'DELIVERED' } export interface export interface Buyer { type { string } memberof buyerId ? : string ; type { string } memberof name ? : string ; type { string } memberof phone ? : string ; type { boolean } memberof isPrimeMember ? : boolean ; } export interface export interface CancelServiceJobByServiceJobIdResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CompleteServiceJobByServiceJobIdResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetServiceJobByServiceJobIdResponse { type { ServiceJob } memberof payload ? : ServiceJob ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetServiceJobsResponse { type { JobListing } memberof payload ? : JobListing ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface ItemDelivery { type { string } memberof estimatedDeliveryDate ? : string ; type { ItemDeliveryPromise } memberof itemDeliveryPromise ? : ItemDeliveryPromise ; } export interface export interface ItemDeliveryPromise { type { string } memberof startTime ? : string ; type { string } memberof endTime ? : string ; } export interface export interface JobListing { type { number } memberof totalResultSize ? : number ; type { string } memberof nextPageToken ? : string ; type { string } memberof previousPageToken ? : string ; type { Array < ServiceJob > } memberof jobs ? : Array < ServiceJob > ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; type { string } memberof errorLevel ? : ModelErrorErrorLevelEnum | 'ERROR' | 'WARNING' ; } export enum { string } export enum ModelErrorErrorLevelEnum { Error = 'ERROR' , Warning = 'WARNING' } export interface export interface Poa { type { AppointmentTime } memberof appointmentTime ? : AppointmentTime ; type { Array < Technician > } memberof technicians ? : Array < Technician > ; type { string } memberof uploadingTechnician ? : string ; type { string } memberof uploadTime ? : string ; type { string } memberof poaType ? : PoaPoaTypeEnum | 'NO_SIGNATURE_DUMMY_POS' | 'CUSTOMER_SIGNATURE' | 'DUMMY_RECEIPT' | 'POA_RECEIPT' ; } export enum { string } export enum PoaPoaTypeEnum { NoSignatureDummyPos = 'NO_SIGNATURE_DUMMY_POS' , CustomerSignature = 'CUSTOMER_SIGNATURE' , DummyReceipt = 'DUMMY_RECEIPT' , PoaReceipt = 'POA_RECEIPT' } export interface export interface RescheduleAppointmentRequest { type { AppointmentTimeInput } memberof appointmentTime : AppointmentTimeInput ; type { string } memberof rescheduleReasonCode : string ; } export interface export interface ScopeOfWork { type { string } memberof asin ? : string ; type { string } memberof title ? : string ; type { number } memberof quantity ? : number ; type { Array < string > } memberof requiredSkills ? : Array < string > ; } export interface export interface Seller { type { string } memberof sellerId ? : string ; } export interface export interface ServiceJob { type { string } memberof createTime ? : string ; type { string } memberof serviceJobId ? : string ; type { string } memberof serviceJobStatus ? : ServiceJobServiceJobStatusEnum | 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' ; type { ScopeOfWork } memberof scopeOfWork ? : ScopeOfWork ; type { Seller } memberof seller ? : Seller ; type { ServiceJobProvider } memberof serviceJobProvider ? : ServiceJobProvider ; type { Array < AppointmentTime > } memberof preferredAppointmentTimes ? : Array < AppointmentTime > ; type { Array < Appointment > } memberof appointments ? : Array < Appointment > ; type { string } memberof serviceOrderId ? : string ; type { string } memberof marketplaceId ? : string ; type { Buyer } memberof buyer ? : Buyer ; type { Array < AssociatedItem > } memberof associatedItems ? : Array < AssociatedItem > ; type { ServiceLocation } memberof serviceLocation ? : ServiceLocation ; } export enum { string } export enum ServiceJobServiceJobStatusEnum { NotServiced = 'NOT_SERVICED' , Cancelled = 'CANCELLED' , Completed = 'COMPLETED' , PendingSchedule = 'PENDING_SCHEDULE' , NotFulfillable = 'NOT_FULFILLABLE' , Hold = 'HOLD' , PaymentDeclined = 'PAYMENT_DECLINED' } export interface export interface ServiceJobProvider { type { string } memberof serviceJobProviderId ? : string ; } export interface export interface ServiceLocation { type { string } memberof serviceLocationType ? : ServiceLocationServiceLocationTypeEnum | 'IN_HOME' | 'IN_STORE' | 'ONLINE' ; type { Address } memberof address ? : Address ; } export enum { string } export enum ServiceLocationServiceLocationTypeEnum { InHome = 'IN_HOME' , InStore = 'IN_STORE' , Online = 'ONLINE' } export interface export interface SetAppointmentResponse { type { string } memberof appointmentId ? : string ; type { Array < Warning > } memberof warnings ? : Array < Warning > ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface Technician { type { string } memberof technicianId ? : string ; type { string } memberof name ? : string ; } export interface export interface Warning { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export export const ServiceApiAxiosParamCreator = function ( configuration ? ) { return { param { string } serviceJobId param { AddAppointmentRequest } body param { * } options throws addAppointmentForServiceJobByServiceJobId : async ( serviceJobId , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'addAppointmentForServiceJobByServiceJobId' , 'serviceJobId' , serviceJobId ) ; assertParamExists ( 'addAppointmentForServiceJobByServiceJobId' , 'body' , body ) ; const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/appointments` . replace ( `{${ "serviceJobId" }}` , encodeURIComponent ( String ( serviceJobId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } serviceJobId param { string } cancellationReasonCode param { * } options throws cancelServiceJobByServiceJobId : async ( serviceJobId , cancellationReasonCode , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'cancelServiceJobByServiceJobId' , 'serviceJobId' , serviceJobId ) ; assertParamExists ( 'cancelServiceJobByServiceJobId' , 'cancellationReasonCode' , cancellationReasonCode ) ; const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/cancellations` . replace ( `{${ "serviceJobId" }}` , encodeURIComponent ( String ( serviceJobId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'PUT' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( cancellationReasonCode !== undefined ) { localVarQueryParameter [ 'cancellationReasonCode' ] = cancellationReasonCode ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } serviceJobId param { * } options throws completeServiceJobByServiceJobId : async ( serviceJobId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'completeServiceJobByServiceJobId' , 'serviceJobId' , serviceJobId ) ; const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/completions` . replace ( `{${ "serviceJobId" }}` , encodeURIComponent ( String ( serviceJobId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'PUT' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } serviceJobId param { * } options throws getServiceJobByServiceJobId : async ( serviceJobId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getServiceJobByServiceJobId' , 'serviceJobId' , serviceJobId ) ; const localVarPath = `/service/v1/serviceJobs/{serviceJobId}` . replace ( `{${ "serviceJobId" }}` , encodeURIComponent ( String ( serviceJobId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { Array < string > } marketplaceIds param { Array < string > } serviceOrderIds param { Array < 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' > } serviceJobStatus param { string } pageToken param { number } pageSize param { 'JOB_DATE' | 'JOB_STATUS' } sortField param { 'ASC' | 'DESC' } sortOrder param { string } createdAfter param { string } createdBefore param { string } lastUpdatedAfter param { string } lastUpdatedBefore param { string } scheduleStartDate param { string } scheduleEndDate param { * } options throws getServiceJobs : async ( marketplaceIds , serviceOrderIds ? , serviceJobStatus ? , pageToken ? , pageSize ? , sortField ? , sortOrder ? , createdAfter ? , createdBefore ? , lastUpdatedAfter ? , lastUpdatedBefore ? , scheduleStartDate ? , scheduleEndDate ? , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getServiceJobs' , 'marketplaceIds' , marketplaceIds ) ; const localVarPath = `/service/v1/serviceJobs` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; if ( serviceOrderIds ) { localVarQueryParameter [ 'serviceOrderIds' ] = serviceOrderIds . join ( COLLECTION_FORMATS . csv ) ; } if ( serviceJobStatus ) { localVarQueryParameter [ 'serviceJobStatus' ] = serviceJobStatus . join ( COLLECTION_FORMATS . csv ) ; } if ( pageToken !== undefined ) { localVarQueryParameter [ 'pageToken' ] = pageToken ; } if ( pageSize !== undefined ) { localVarQueryParameter [ 'pageSize' ] = pageSize ; } if ( sortField !== undefined ) { localVarQueryParameter [ 'sortField' ] = sortField ; } if ( sortOrder !== undefined ) { localVarQueryParameter [ 'sortOrder' ] = sortOrder ; } if ( createdAfter !== undefined ) { localVarQueryParameter [ 'createdAfter' ] = createdAfter ; } if ( createdBefore !== undefined ) { localVarQueryParameter [ 'createdBefore' ] = createdBefore ; } if ( lastUpdatedAfter !== undefined ) { localVarQueryParameter [ 'lastUpdatedAfter' ] = lastUpdatedAfter ; } if ( lastUpdatedBefore !== undefined ) { localVarQueryParameter [ 'lastUpdatedBefore' ] = lastUpdatedBefore ; } if ( scheduleStartDate !== undefined ) { localVarQueryParameter [ 'scheduleStartDate' ] = scheduleStartDate ; } if ( scheduleEndDate !== undefined ) { localVarQueryParameter [ 'scheduleEndDate' ] = scheduleEndDate ; } if ( marketplaceIds ) { localVarQueryParameter [ 'marketplaceIds' ] = marketplaceIds . join ( COLLECTION_FORMATS . csv ) ; } setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } serviceJobId param { string } appointmentId param { RescheduleAppointmentRequest } body param { * } options throws rescheduleAppointmentForServiceJobByServiceJobId : async ( serviceJobId , appointmentId , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'rescheduleAppointmentForServiceJobByServiceJobId' , 'serviceJobId' , serviceJobId ) ; assertParamExists ( 'rescheduleAppointmentForServiceJobByServiceJobId' , 'appointmentId' , appointmentId ) ; assertParamExists ( 'rescheduleAppointmentForServiceJobByServiceJobId' , 'body' , body ) ; const localVarPath = `/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}` . replace ( `{${ "serviceJobId" }}` , encodeURIComponent ( String ( serviceJobId ) ) ) . replace ( `{${ "appointmentId" }}` , encodeURIComponent ( String ( appointmentId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , } ; } ; export export const ServiceApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = ServiceApiAxiosParamCreator ( configuration ) ; return { param { string } serviceJobId param { AddAppointmentRequest } body param { * } options throws async addAppointmentForServiceJobByServiceJobId ( serviceJobId , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . addAppointmentForServiceJobByServiceJobId ( serviceJobId , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } serviceJobId param { string } cancellationReasonCode param { * } options throws async cancelServiceJobByServiceJobId ( serviceJobId , cancellationReasonCode , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . cancelServiceJobByServiceJobId ( serviceJobId , cancellationReasonCode , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } serviceJobId param { * } options throws async completeServiceJobByServiceJobId ( serviceJobId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . completeServiceJobByServiceJobId ( serviceJobId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } serviceJobId param { * } options throws async getServiceJobByServiceJobId ( serviceJobId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getServiceJobByServiceJobId ( serviceJobId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { Array < string > } marketplaceIds param { Array < string > } serviceOrderIds param { Array < 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' > } serviceJobStatus param { string } pageToken param { number } pageSize param { 'JOB_DATE' | 'JOB_STATUS' } sortField param { 'ASC' | 'DESC' } sortOrder param { string } createdAfter param { string } createdBefore param { string } lastUpdatedAfter param { string } lastUpdatedBefore param { string } scheduleStartDate param { string } scheduleEndDate param { * } options throws async getServiceJobs ( marketplaceIds , serviceOrderIds ? , serviceJobStatus ? , pageToken ? , pageSize ? , sortField ? , sortOrder ? , createdAfter ? , createdBefore ? , lastUpdatedAfter ? , lastUpdatedBefore ? , scheduleStartDate ? , scheduleEndDate ? , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getServiceJobs ( marketplaceIds , serviceOrderIds , serviceJobStatus , pageToken , pageSize , sortField , sortOrder , createdAfter , createdBefore , lastUpdatedAfter , lastUpdatedBefore , scheduleStartDate , scheduleEndDate , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } serviceJobId param { string } appointmentId param { RescheduleAppointmentRequest } body param { * } options throws async rescheduleAppointmentForServiceJobByServiceJobId ( serviceJobId , appointmentId , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . rescheduleAppointmentForServiceJobByServiceJobId ( serviceJobId , appointmentId , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const ServiceApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = ServiceApiFp ( configuration ) ; return { param { string } serviceJobId param { AddAppointmentRequest } body param { * } options throws addAppointmentForServiceJobByServiceJobId ( serviceJobId , body , options ? ) { return localVarFp . addAppointmentForServiceJobByServiceJobId ( serviceJobId , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } serviceJobId param { string } cancellationReasonCode param { * } options throws cancelServiceJobByServiceJobId ( serviceJobId , cancellationReasonCode , options ? ) { return localVarFp . cancelServiceJobByServiceJobId ( serviceJobId , cancellationReasonCode , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } serviceJobId param { * } options throws completeServiceJobByServiceJobId ( serviceJobId , options ? ) { return localVarFp . completeServiceJobByServiceJobId ( serviceJobId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } serviceJobId param { * } options throws getServiceJobByServiceJobId ( serviceJobId , options ? ) { return localVarFp . getServiceJobByServiceJobId ( serviceJobId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { Array < string > } marketplaceIds param { Array < string > } serviceOrderIds param { Array < 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' > } serviceJobStatus param { string } pageToken param { number } pageSize param { 'JOB_DATE' | 'JOB_STATUS' } sortField param { 'ASC' | 'DESC' } sortOrder param { string } createdAfter param { string } createdBefore param { string } lastUpdatedAfter param { string } lastUpdatedBefore param { string } scheduleStartDate param { string } scheduleEndDate param { * } options throws getServiceJobs ( marketplaceIds , serviceOrderIds ? , serviceJobStatus ? , pageToken ? , pageSize ? , sortField ? , sortOrder ? , createdAfter ? , createdBefore ? , lastUpdatedAfter ? , lastUpdatedBefore ? , scheduleStartDate ? , scheduleEndDate ? , options ? ) { return localVarFp . getServiceJobs ( marketplaceIds , serviceOrderIds , serviceJobStatus , pageToken , pageSize , sortField , sortOrder , createdAfter , createdBefore , lastUpdatedAfter , lastUpdatedBefore , scheduleStartDate , scheduleEndDate , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } serviceJobId param { string } appointmentId param { RescheduleAppointmentRequest } body param { * } options throws rescheduleAppointmentForServiceJobByServiceJobId ( serviceJobId , appointmentId , body , options ? ) { return localVarFp . rescheduleAppointmentForServiceJobByServiceJobId ( serviceJobId , appointmentId , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface ServiceApiAddAppointmentForServiceJobByServiceJobIdRequest { type { string } memberof readonly serviceJobId : string ; type { AddAppointmentRequest } memberof readonly body : AddAppointmentRequest ; } export interface export interface ServiceApiCancelServiceJobByServiceJobIdRequest { type { string } memberof readonly serviceJobId : string ; type { string } memberof readonly cancellationReasonCode : string ; } export interface export interface ServiceApiCompleteServiceJobByServiceJobIdRequest { type { string } memberof readonly serviceJobId : string ; } export interface export interface ServiceApiGetServiceJobByServiceJobIdRequest { type { string } memberof readonly serviceJobId : string ; } export interface export interface ServiceApiGetServiceJobsRequest { type { Array < string > } memberof readonly marketplaceIds : Array < string > ; type { Array < string > } memberof readonly serviceOrderIds ? : Array < string > ; type { Array < 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' > } memberof readonly serviceJobStatus ? : Array < 'NOT_SERVICED' | 'CANCELLED' | 'COMPLETED' | 'PENDING_SCHEDULE' | 'NOT_FULFILLABLE' | 'HOLD' | 'PAYMENT_DECLINED' > ; type { string } memberof readonly pageToken ? : string ; type { number } memberof readonly pageSize ? : number ; type { 'JOB_DATE' | 'JOB_STATUS' } memberof readonly sortField ? : 'JOB_DATE' | 'JOB_STATUS' ; type { 'ASC' | 'DESC' } memberof readonly sortOrder ? : 'ASC' | 'DESC' ; type { string } memberof readonly createdAfter ? : string ; type { string } memberof readonly createdBefore ? : string ; type { string } memberof readonly lastUpdatedAfter ? : string ; type { string } memberof readonly lastUpdatedBefore ? : string ; type { string } memberof readonly scheduleStartDate ? : string ; type { string } memberof readonly scheduleEndDate ? : string ; } export interface export interface ServiceApiRescheduleAppointmentForServiceJobByServiceJobIdRequest { type { string } memberof readonly serviceJobId : string ; type { string } memberof readonly appointmentId : string ; type { RescheduleAppointmentRequest } memberof readonly body : RescheduleAppointmentRequest ; } export class extends BaseAPI export class ServiceApi extends BaseAPI { param { ServiceApiAddAppointmentForServiceJobByServiceJobIdRequest } requestParameters param { * } options throws memberof public addAppointmentForServiceJobByServiceJobId ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . addAppointmentForServiceJobByServiceJobId ( requestParameters . serviceJobId , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ServiceApiCancelServiceJobByServiceJobIdRequest } requestParameters param { * } options throws memberof public cancelServiceJobByServiceJobId ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . cancelServiceJobByServiceJobId ( requestParameters . serviceJobId , requestParameters . cancellationReasonCode , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ServiceApiCompleteServiceJobByServiceJobIdRequest } requestParameters param { * } options throws memberof public completeServiceJobByServiceJobId ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . completeServiceJobByServiceJobId ( requestParameters . serviceJobId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ServiceApiGetServiceJobByServiceJobIdRequest } requestParameters param { * } options throws memberof public getServiceJobByServiceJobId ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . getServiceJobByServiceJobId ( requestParameters . serviceJobId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ServiceApiGetServiceJobsRequest } requestParameters param { * } options throws memberof public getServiceJobs ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . getServiceJobs ( requestParameters . marketplaceIds , requestParameters . serviceOrderIds , requestParameters . serviceJobStatus , requestParameters . pageToken , requestParameters . pageSize , requestParameters . sortField , requestParameters . sortOrder , requestParameters . createdAfter , requestParameters . createdBefore , requestParameters . lastUpdatedAfter , requestParameters . lastUpdatedBefore , requestParameters . scheduleStartDate , requestParameters . scheduleEndDate , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { ServiceApiRescheduleAppointmentForServiceJobByServiceJobIdRequest } requestParameters param { * } options throws memberof public rescheduleAppointmentForServiceJobByServiceJobId ( requestParameters , options ? ) { return ServiceApiFp ( this . configuration ) . rescheduleAppointmentForServiceJobByServiceJobId ( requestParameters . serviceJobId , requestParameters . appointmentId , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }