import { type PagedList } from '../../models/invoice/index.js'; import { type CancellationReasonsRequestBuilder } from './cancellationReasons/index.js'; import { type WithInvoiceItemRequestBuilder } 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/invoices */ export interface InvoicesRequestBuilder extends BaseRequestBuilder { /** * The cancellationReasons property */ get cancellationReasons(): CancellationReasonsRequestBuilder; /** * The workflowEvents property */ get workflowEvents(): WorkflowEventsRequestBuilder; /** * Gets an item from the JtlErpApi.v2.invoices.item collection * @param invoiceId The ID of the invoice to return. * @returns {WithInvoiceItemRequestBuilder} */ byInvoiceId(invoiceId: Guid): WithInvoiceItemRequestBuilder; /** * Query all Invoices * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * Query all Invoices * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Query all Invoices */ export interface InvoicesRequestBuilderGetQueryParameters { /** * Gets the unique identifier for the customer. */ customerId?: Guid; /** * Search for a specific external order number. */ externalOrderNumber?: string; /** * Search for a specific invoice number. */ invoiceNumber?: string; /** * Gets a value indicating whether the customer key represents an existing customer. */ isExisting?: boolean; /** * Search only for external invoices */ isExternalInvoice?: boolean; itemId?: Guid; /** * Number of the page of items to fetch. */ pageNumber?: number; /** * Size of the page that is specified by `pageNumber`. */ pageSize?: number; /** * Search for a specific payment status. */ paymentStatus?: number; /** * Search for a specific sales order number. */ salesOrderNumber?: string; } /** * Uri template for the request builder. */ export declare const InvoicesRequestBuilderUriTemplate = "{+baseurl}/v2/invoices{?IsExisting*,customerId*,externalOrderNumber*,invoiceNumber*,isExternalInvoice*,itemId*,pageNumber*,pageSize*,paymentStatus*,salesOrderNumber*}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const InvoicesRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const InvoicesRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map