import { type SalesOrder, type SalesOrderCreateSalesOrder } from '../../models/index.js'; import { type PagedList } from '../../models/salesOrder/index.js'; import { type CancellationReasonsRequestBuilder } from './cancellationReasons/index.js'; import { type CustomfieldsRequestBuilder } from './customfields/index.js'; import { type WithSalesOrderItemRequestBuilder } from './item/index.js'; import { type WorkflowEventsRequestBuilder } from './workflowEvents/index.js'; import { type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Builds and executes requests for operations under /v2/salesOrders */ export interface SalesOrdersRequestBuilder extends BaseRequestBuilder { /** * The cancellationReasons property */ get cancellationReasons(): CancellationReasonsRequestBuilder; /** * The customfields property */ get customfields(): CustomfieldsRequestBuilder; /** * The workflowEvents property */ get workflowEvents(): WorkflowEventsRequestBuilder; /** * Gets an item from the JtlErpApi.v2.salesOrders.item collection * @param salesOrderId The id of the order to return. Only non-pending orders are returned. * @returns {WithSalesOrderItemRequestBuilder} */ bySalesOrderId(salesOrderId: Guid): WithSalesOrderItemRequestBuilder; /** * Query all sales orders * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Create a new sales order * @param body Model Class: CreateSalesOrder * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ErrorResponse} error when the service returns a 400 status code */ post(body: SalesOrderCreateSalesOrder, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Query all sales orders * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * Create a new sales order * @param body Model Class: CreateSalesOrder * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: SalesOrderCreateSalesOrder, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Query all sales orders */ export interface SalesOrdersRequestBuilderGetQueryParameters { /** * Search for a specific billing number. */ billingNumber?: string; /** * Gets the unique identifier for the color. */ colorId?: Guid; /** * Gets the unique identifier for the firm. */ companyId?: Guid; /** * Search for sales orders created after this date. */ createdSince?: Date; /** * Search for sales orders created before this date. */ createdUntil?: Date; createdUserId?: Guid; /** * Gets the unique identifier for the customer. */ customerId?: Guid; /** * Search for sales orders delivered on this date. */ deliveredDate?: Date; /** * Search for a specific payment status. */ deliveryCompleteStatus?: number; /** * Search for sales orders with a specific eBay username. */ ebayUsername?: string; /** * Search for a specific external order number. */ externalOrderNumber?: string; /** * Determines if the sales order is cancelled. */ isCancelled?: boolean; /** * Gets a value indicating whether the customer key represents an existing customer. */ isExisting?: boolean; /** * Determines if the sales order is an external invoice. */ isExternalInvoice?: boolean; itemId?: Guid; onHoldReasonId?: Guid; /** * Number of the page of items to fetch. */ pageNumber?: number; /** * Size of the page that is specified by `pageNumber`. */ pageSize?: number; paymentMethodId?: Guid; /** * Search for a specific payment status. */ paymentStatus?: number; /** * Search for a specific sales channel Id. */ salesChannelId?: string; /** * Search for a specific sales order number. */ salesOrderNumber?: string; shippingMethodId?: Guid; } /** * Create a new sales order */ export interface SalesOrdersRequestBuilderPostQueryParameters { /** * If true, the workflows do not trigger automatic. */ disableAutomaticWorkflows?: boolean; /** * If true, the sales order number will be renamed if it already exists. */ renameSalesOrderNumberWhenAlreadyExists?: boolean; } /** * Uri template for the request builder. */ export declare const SalesOrdersRequestBuilderUriTemplate = "{+baseurl}/v2/salesOrders{?IsExisting*,billingNumber*,colorId*,companyId*,createdSince*,createdUntil*,createdUserId*,customerId*,deliveredDate*,deliveryCompleteStatus*,disableAutomaticWorkflows*,ebayUsername*,externalOrderNumber*,isCancelled*,isExternalInvoice*,itemId*,onHoldReasonId*,pageNumber*,pageSize*,paymentMethodId*,paymentStatus*,renameSalesOrderNumberWhenAlreadyExists*,salesChannelId*,salesOrderNumber*,shippingMethodId*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SalesOrdersRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SalesOrdersRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map