import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { I as Invoice, C as CreateInvoiceApplicationErrors, a as CreateInvoiceValidationErrors, G as GetInvoiceApplicationErrors, U as UpdateInvoice, b as UpdateInvoiceApplicationErrors, c as UpdateInvoiceValidationErrors, D as DeleteInvoiceApplicationErrors, d as InvoiceSearch, S as SearchInvoicesResponse, e as SendInvoiceOptions, f as SendInvoiceResponse, g as SendInvoiceApplicationErrors, P as PublishInvoiceResponse, h as PublishInvoiceApplicationErrors, V as VoidInvoiceResponse, i as VoidInvoiceApplicationErrors, A as ArchiveInvoiceResponse, j as ArchiveInvoiceApplicationErrors, k as UnarchiveInvoiceResponse, l as UnarchiveInvoiceApplicationErrors, m as InitiatePaymentResponse, n as InitiatePaymentApplicationErrors, E as EnableInvoicePaymentsResponse, o as EnableInvoicePaymentsApplicationErrors, p as GeneratePdfDocumentResponse, q as GeneratePdfDocumentApplicationErrors, M as MarkInvoiceAsViewedResponse, r as MarkInvoiceAsSentResponse, s as CalculateInvoiceOptions, t as CalculateInvoiceResponse, u as CalculateInvoiceApplicationErrors, v as GetLatestInvoiceNumberOptions, w as GetLatestInvoiceNumberResponse, x as GenerateReceiptResponse, B as BulkCreateInvoicesOptions, y as BulkCreateInvoicesResponse, z as BulkCreateInvoicesApplicationErrors, F as BulkCreateInvoicesValidationErrors, H as MaskedInvoice, J as BulkUpdateInvoicesOptions, K as BulkUpdateInvoicesResponse, L as BulkUpdateInvoicesApplicationErrors, N as BulkUpdateInvoicesValidationErrors, O as BulkDeleteInvoicesResponse, Q as BulkUpdateInvoiceTagsOptions, R as BulkUpdateInvoiceTagsResponse, T as BulkUpdateInvoiceTagsApplicationErrors, W as BulkUpdateInvoiceTagsByFilterOptions, X as BulkUpdateInvoiceTagsByFilterResponse, Y as BulkUpdateInvoiceTagsByFilterApplicationErrors, Z as InvoiceCreatedEnvelope, _ as InvoiceDeletedEnvelope, $ as InvoiceSentEnvelope, a0 as InvoiceTagsModifiedEnvelope, a1 as InvoiceUpdatedEnvelope, a2 as InvoicesQueryBuilder, a3 as InvoiceQuery, a4 as typedQueryInvoices } from './invoices-invoices-v4-invoice-invoices.universal-PSk-n0ZV.js'; export { gN as AccountInfo, gQ as AccountInfoMetadata, a7 as Action, gJ as ActionEvent, gX as ActionWithLiterals, eQ as ActivityInfo, gA as AddPaymentRequest, gB as AddPaymentResponse, ce as AdditionalFee, ae as AdditionalFeeSource, h2 as AdditionalFeeSourceWithLiterals, bL as Address, bN as AddressLocation, fo as Aggregation, fE as AggregationData, fp as AggregationKindOneOf, fX as AggregationResults, fY as AggregationResultsResultOneOf, fL as AggregationResultsScalarResult, bt as AggregationType, ii as AggregationTypeWithLiterals, aW as Alignment, hK as AlignmentWithLiterals, dJ as AnchorData, cR as Animation, dR as AppEmbedData, dS as AppEmbedDataAppDataOneOf, aY as AppType, hM as AppTypeWithLiterals, gf as ApplicationError, g1 as ArchiveInvoiceRequest, aS as AspectRatio, hG as AspectRatioWithLiterals, eM as Attachment, ea as AudioData, bE as AutoCharge, ek as Backdrop, b8 as BackdropType, hY as BackdropTypeWithLiterals, cH as Background, dy as BackgroundGradient, er as BackgroundImage, al as BackgroundType, h9 as BackgroundTypeWithLiterals, ej as Banner, b5 as BannerPosition, hV as BannerPositionWithLiterals, gO as BaseEventMetadata, ed as BlockquoteData, dT as BookingData, cF as Border, e7 as BorderColors, e8 as BorderWidths, gs as BulkActionMetadata, gp as BulkCreateInvoicesRequest, gv as BulkDeleteInvoicesRequest, gw as BulkDeleteInvoicesResponseBulkInvoiceResult, gr as BulkInvoiceResult, gz as BulkUpdateInvoiceTagsByFilterRequest, gx as BulkUpdateInvoiceTagsRequest, gy as BulkUpdateInvoiceTagsResult, gt as BulkUpdateInvoicesRequest, gu as BulkUpdateInvoicesResponseBulkInvoiceResult, ec as BulletedListData, bP as BusinessDetails, eD as BusinessDisplayOptions, eP as BusinessLocation, cC as ButtonData, ap as ButtonDataType, hd as ButtonDataTypeWithLiterals, dV as ButtonStyles, g8 as CalculateInvoiceRequest, gb as CalculationErrors, gc as CalculationErrorsShippingCalculationErrorOneOf, ee as CaptionData, ep as CardData, eq as CardDataBackground, be as CardDataBackgroundType, i2 as CardDataBackgroundTypeWithLiterals, dY as CardStyles, aV as CardStylesType, hJ as CardStylesTypeWithLiterals, gk as CarrierError, gj as CarrierErrors, ct as CashRounding, c3 as CatalogItem, bT as CatalogReference, e6 as CellStyle, ev as CheckboxListData, cX as CodeBlockData, e2 as CollapsibleListData, dK as ColorData, cG as Colors, bi as ColumnSize, i6 as ColumnSizeWithLiterals, ip as CommonQueryWithEntityContext, iq as CommonSearchWithEntityContext, f9 as ConvertInvoiceRequest, fa as ConvertInvoiceResponse, f2 as CreateInvoiceRequest, f3 as CreateInvoiceResponse, cp as CreditCardDetails, aD as Crop, hr as CropWithLiterals, fh as CursorPaging, fj as CursorPagingMetadata, fe as CursorQuery, ff as CursorQueryPagingMethodOneOf, fm as CursorSearch, fn as CursorSearchPagingMethodOneOf, fk as Cursors, cw as CustomField, eK as CustomFieldPlaceholder, cv as CustomFields, bS as CustomItem, eE as CustomerDisplayOptions, bI as CustomerInfo, b_ as Cycle, b$ as CycleCycleOptionsOneOf, fw as DateHistogramAggregation, fT as DateHistogramResult, fV as DateHistogramResults, dH as Decoration, dI as DecorationDataOneOf, aO as DecorationType, hC as DecorationTypeWithLiterals, fb as DeleteInvoiceRequest, fc as DeleteInvoiceResponse, c7 as DeliveryLogistics, ga as DeliveryLogisticsOption, c8 as DeliveryTimeSlot, ch as Deposit, ci as DepositDepositOptionsOneOf, ag as DepositType, h4 as DepositTypeWithLiterals, dF as Design, bb as DesignTarget, h$ as DesignTargetWithLiterals, gd as Details, ge as DetailsKindOneOf, e4 as Dimensions, a_ as Direction, hO as DirectionWithLiterals, cf as Discount, cg as DiscountDiscountOptionsOneOf, af as DiscountType, h3 as DiscountTypeWithLiterals, eC as DisplaySettings, eL as DisplayValues, cZ as DividerData, az as DividerDataAlignment, hn as DividerDataAlignmentWithLiterals, c_ as DividerDataStyles, eN as DocumentInfo, bj as DocumentStatus, i7 as DocumentStatusWithLiterals, ey as DocumentStyle, eJ as DomainCustomField, eI as DomainCustomFields, gD as DomainEvent, gE as DomainEventBodyOneOf, e0 as EmbedData, gC as Empty, g4 as EnableInvoicePaymentsRequest, gF as EntityCreatedEvent, gI as EntityDeletedEvent, gH as EntityUpdatedEvent, cS as EntranceAnimation, cT as EntranceEffect, as as EntranceEffectType, hg as EntranceEffectTypeWithLiterals, bl as ErrorType, i9 as ErrorTypeWithLiterals, dU as EventData, gP as EventMetadata, cs as ExternalReceipt, eY as Failed, gh as FieldViolation, c$ as FileData, d0 as FileSource, d1 as FileSourceDataOneOf, bk as FileState, i8 as FileStateWithLiterals, dP as FontFamilyData, dN as FontSizeData, aP as FontType, hD as FontTypeWithLiterals, cx as FooterContent, bJ as FullAddressContactDetails, de as GIF, dd as GIFData, aF as GIFType, ht as GIFTypeWithLiterals, d3 as GalleryData, d9 as GalleryOptions, da as GalleryOptionsLayout, g5 as GeneratePdfDocumentRequest, go as GenerateReceiptRequest, f4 as GetInvoiceRequest, f5 as GetInvoiceResponse, gl as GetLatestInvoiceNumberRequest, cq as GiftCardPaymentDetails, cD as Gradient, am as GradientType, ha as GradientTypeWithLiterals, fA as GroupByAggregation, fB as GroupByAggregationKindOneOf, fU as GroupByValueResults, dg as HTMLData, dh as HTMLDataDataOneOf, df as HeadingData, cM as Height, gL as IdentificationData, gM as IdentificationDataIdOneOf, f8 as IllegalActionErrorData, d5 as Image, di as ImageData, dl as ImageDataCrop, dk as ImageDataStyles, b2 as ImagePosition, bd as ImagePositionPosition, i1 as ImagePositionPositionWithLiterals, hS as ImagePositionWithLiterals, b1 as ImageScalingScaling, hR as ImageScalingScalingWithLiterals, dW as ImageStyles, fr as IncludeMissingValuesOptions, bg as Indentation, i4 as IndentationWithLiterals, aZ as InitialExpandedItems, hN as InitialExpandedItemsWithLiterals, g3 as InitiatePaymentRequest, gm as InternalCountInvoicesRequest, gn as InternalCountInvoicesResponse, bs as Interval, ih as IntervalWithLiterals, eV as InvoiceDocumentHandled, eW as InvoiceDocumentHandledResultOneOf, eU as InvoiceDocumentProcess, eT as InvoiceNumberingProcess, eB as InvoicePreset, gS as InvoiceQuerySpec, gT as InvoiceSearchSpec, f1 as InvoiceSent, gR as InvoicesQueryResult, d7 as Item, d8 as ItemDataOneOf, gq as ItemMetadata, db as ItemStyle, c4 as ItemType, c5 as ItemTypeItemTypeDataOneOf, eF as ItemsDisplayOptions, b6 as LayerEffect, hW as LayerEffectWithLiterals, eh as Layers, aX as Layout, em as LayoutCellData, ef as LayoutData, eg as LayoutDataBackground, ei as LayoutDataBackgroundImage, b3 as LayoutDataBackgroundType, hT as LayoutDataBackgroundTypeWithLiterals, aB as LayoutType, hp as LayoutTypeWithLiterals, hL as LayoutWithLiterals, aw as LineCap, hk as LineCapWithLiterals, bQ as LineItem, bU as LineItemDiscount, bV as LineItemDiscountDiscountOptionsOneOf, ab as LineItemDiscountDiscountType, g$ as LineItemDiscountDiscountTypeWithLiterals, bR as LineItemLineItemOptionsOneOf, bX as LineItemTaxBreakdown, bW as LineItemTaxInfo, bY as LineItemTotals, aa as LineItemType, g_ as LineItemTypeWithLiterals, ax as LineStyle, hl as LineStyleWithLiterals, cO as Link, dL as LinkData, cP as LinkDataOneOf, dm as LinkPreviewData, dn as LinkPreviewDataStyles, eO as Links, ew as ListItemNodeData, bf as ListStyle, i3 as ListStyleWithLiterals, e9 as ListValue, bG as Locale, cU as LoopAnimation, cV as LoopEffect, at as LoopEffectType, hh as LoopEffectTypeWithLiterals, dp as MapData, dq as MapSettings, aI as MapType, hw as MapTypeWithLiterals, g7 as MarkInvoiceAsSentRequest, g6 as MarkInvoiceAsViewedRequest, d4 as Media, eZ as MediaFileStateChanged, dM as MentionData, gK as MessageEnvelope, ex as Metadata, bD as Migrated, bp as MissingValues, id as MissingValuesWithLiterals, bu as Mode, ij as ModeWithLiterals, c1 as Monthly, fz as NestedAggregation, fx as NestedAggregationItem, fy as NestedAggregationItemKindOneOf, fH as NestedAggregationResults, fI as NestedAggregationResultsResultOneOf, br as NestedAggregationType, ig as NestedAggregationTypeWithLiterals, fQ as NestedResultValue, fR as NestedResultValueResultOneOf, fW as NestedResults, fM as NestedValueAggregationResult, cz as Node, cA as NodeDataOneOf, cB as NodeStyle, ak as NodeType, h8 as NodeTypeWithLiterals, b0 as NullValue, hQ as NullValueWithLiterals, bH as Numbering, e1 as Oembed, du as Option, dC as OptionDesign, dx as OptionLayout, bC as Order, eb as OrderedListData, aC as Orientation, hq as OrientationWithLiterals, b4 as Origin, hU as OriginWithLiterals, d2 as PDFSettings, fD as PagingMetadataV2, dr as ParagraphData, cl as Payment, cm as PaymentPaymentOptionsOneOf, cn as PaymentReceiptOptionsOneOf, ai as PaymentStatus, h6 as PaymentStatusWithLiterals, ah as PaymentType, h5 as PaymentTypeWithLiterals, eH as PaymentsDisplayOptions, dt as Permissions, c9 as PickupDetails, ad as PickupMethod, h1 as PickupMethodWithLiterals, aU as Placement, hI as PlacementWithLiterals, d$ as PlaybackOptions, cI as PluginContainerData, ao as PluginContainerDataAlignment, hc as PluginContainerDataAlignmentWithLiterals, cJ as PluginContainerDataWidth, cK as PluginContainerDataWidthDataOneOf, cW as PointerEffect, au as PointerEffectType, hi as PointerEffectTypeWithLiterals, dD as Poll, ds as PollData, dE as PollDataLayout, dB as PollDesign, dz as PollDesignBackground, dA as PollDesignBackgroundBackgroundOneOf, aN as PollDesignBackgroundType, hB as PollDesignBackgroundTypeWithLiterals, dw as PollLayout, aM as PollLayoutDirection, hA as PollLayoutDirectionWithLiterals, aL as PollLayoutType, hz as PollLayoutTypeWithLiterals, aR as Position, hF as PositionWithLiterals, eA as PresetProperties, ac as PresetType, h0 as PresetTypeWithLiterals, dZ as PricingData, f$ as PublishInvoiceRequest, io as QueryInvoicesApplicationErrors, fd as QueryInvoicesRequest, fi as QueryInvoicesResponse, fu as RangeAggregation, fG as RangeAggregationResult, fq as RangeBucket, fO as RangeResult, fK as RangeResults, aj as ReceiptType, h7 as ReceiptTypeWithLiterals, bz as Reference, bA as ReferenceReferenceOptionsOneOf, a8 as ReferenceType, gY as ReferenceTypeWithLiterals, bF as RegionalProperties, co as RegularPaymentDetails, cQ as Rel, aT as Resizing, hH as ResizingWithLiterals, ba as ResponsivenessBehaviour, h_ as ResponsivenessBehaviourWithLiterals, gG as RestoreInfo, fS as Results, dX as RibbonStyles, cy as RichContent, bw as RuleType, il as RuleTypeWithLiterals, fv as ScalarAggregation, fP as ScalarResult, bq as ScalarType, ie as ScalarTypeWithLiterals, bc as Scaling, i0 as ScalingWithLiterals, fC as SearchDetails, fl as SearchInvoicesRequest, el as SectionDivider, bv as SendErrorType, ik as SendErrorTypeWithLiterals, fZ as SendInvoiceRequest, f_ as SendResult, dv as Settings, b7 as Shape, en as ShapeData, eo as ShapeDataStyles, hX as ShapeWithLiterals, c6 as ShipmentInfo, g9 as ShipmentOption, ca as ShipmentRegion, cc as ShipmentTaxBreakdown, cb as ShipmentTaxInfo, cd as ShipmentTotals, bO as ShippingInfo, e_ as SideEffectsTriggerRequested, e$ as SiteTaxesMigrationRequested, dQ as SketchData, eu as SmartBlockCellData, et as SmartBlockData, bh as SmartBlockDataType, i5 as SmartBlockDataTypeWithLiterals, bo as SortDirection, ic as SortDirectionWithLiterals, bm as SortOrder, ia as SortOrderWithLiterals, bn as SortType, ib as SortTypeWithLiterals, fg as Sorting, aG as Source, by as SourceReference, hu as SourceWithLiterals, cL as Spoiler, dO as SpoilerData, bB as Standalone, a5 as Status, a6 as StatusQualifier, gW as StatusQualifierWithLiterals, gV as StatusWithLiterals, cE as Stop, bM as StreetAddress, cN as Styles, dj as StylesBorder, aH as StylesPosition, hv as StylesPositionWithLiterals, bZ as SubscriptionInfo, eX as Succeeded, gi as SystemError, e5 as TableCellData, e3 as TableData, eS as TagList, eR as Tags, f0 as TagsModified, aq as Target, he as TargetWithLiterals, ck as TaxBreakdown, cj as TaxInfo, av as TextAlignment, hj as TextAlignmentWithLiterals, dG as TextData, ez as TextNodeStyle, cY as TextStyle, dc as Thumbnails, aE as ThumbnailsAlignment, hs as ThumbnailsAlignmentWithLiterals, es as TocData, cu as Totals, eG as TotalsDisplayOptions, ar as Type, hf as TypeWithLiterals, g2 as UnarchiveInvoiceRequest, f6 as UpdateInvoiceRequest, f7 as UpdateInvoiceResponse, gg as ValidationError, fs as ValueAggregation, ft as ValueAggregationOptionsOneOf, fF as ValueAggregationResult, fN as ValueResult, fJ as ValueResults, aQ as Variant, hE as VariantWithLiterals, bK as VatId, a9 as VatType, gZ as VatTypeWithLiterals, a$ as VerticalAlignment, b9 as VerticalAlignmentAlignment, hZ as VerticalAlignmentAlignmentWithLiterals, hP as VerticalAlignmentWithLiterals, d6 as Video, d_ as VideoData, aA as ViewMode, ho as ViewModeWithLiterals, aJ as ViewRole, hx as ViewRoleWithLiterals, g0 as VoidInvoiceRequest, aK as VoteRole, hy as VoteRoleWithLiterals, bx as WebhookIdentityType, im as WebhookIdentityTypeWithLiterals, c0 as Weekly, ay as Width, an as WidthType, hb as WidthTypeWithLiterals, hm as WidthWithLiterals, cr as WixReceipt, c2 as Yearly, gU as utils } from './invoices-invoices-v4-invoice-invoices.universal-PSk-n0ZV.js'; declare function createInvoice$1(httpClient: HttpClient): CreateInvoiceSignature; interface CreateInvoiceSignature { /** * Creates an invoice. * * * To create multiple invoices in a single API call, call [Bulk Create Invoices](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-create-invoices). * @param - Invoice to create. * @returns Created invoice. */ (invoice: NonNullablePaths): Promise & { __applicationErrorsType?: CreateInvoiceApplicationErrors; __validationErrorsType?: CreateInvoiceValidationErrors; }>; } declare function getInvoice$1(httpClient: HttpClient): GetInvoiceSignature; interface GetInvoiceSignature { /** * Retrieves an invoice. * @param - Invoice ID. * @returns Retrieved invoice. */ (invoiceId: string): Promise & { __applicationErrorsType?: GetInvoiceApplicationErrors; }>; } declare function updateInvoice$1(httpClient: HttpClient): UpdateInvoiceSignature; interface UpdateInvoiceSignature { /** * Updates an invoice. * * * To update multiple invoices in a single API call, call [Bulk Update Invoices](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-update-invoices). * @param - Invoice ID. * @returns Updated invoice. */ (_id: string, invoice: NonNullablePaths): Promise & { __applicationErrorsType?: UpdateInvoiceApplicationErrors; __validationErrorsType?: UpdateInvoiceValidationErrors; }>; } declare function deleteInvoice$1(httpClient: HttpClient): DeleteInvoiceSignature; interface DeleteInvoiceSignature { /** * Deletes an invoice. * * * Deleting an invoice permanently removes it from the invoice list. Only invoices in `DRAFT` status can be deleted. * * To delete multiple invoices in a single API call, call [Bulk Delete Invoices](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-delete-invoices). * @param - Invoice ID. */ (invoiceId: string): Promise; } declare function searchInvoices$1(httpClient: HttpClient): SearchInvoicesSignature; interface SearchInvoicesSignature { /** * Retrieves a list of up to 100 invoices, given the provided filtering, search expression, sorting, and cursor paging. * * * Unlike [Query Invoices], Search Invoices supports free-text search across fields like `title`, `numbering.displayNumber`, and customer contact details. It also returns aggregation data. * @param - Search options. */ (search: InvoiceSearch): Promise>; } declare function sendInvoice$1(httpClient: HttpClient): SendInvoiceSignature; interface SendInvoiceSignature { /** * Sends an invoice to one or more contacts. * * * Specify `contactIds` in the request to choose recipients. If `contactIds` isn't provided, the invoice is sent to the customer contact on the invoice. * @param - Invoice ID. */ (invoiceId: string, options?: SendInvoiceOptions): Promise & { __applicationErrorsType?: SendInvoiceApplicationErrors; }>; } declare function publishInvoice$1(httpClient: HttpClient): PublishInvoiceSignature; interface PublishInvoiceSignature { /** * Publishes an invoice. * * * Transitions the invoice status from `DRAFT` to `PUBLISHED`, finalizing it and assigning an invoice number. For details on status transitions, see [Invoice Lifecycle](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/standalone-invoice-payment-lifecycle). * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: PublishInvoiceApplicationErrors; }>; } declare function voidInvoice$1(httpClient: HttpClient): VoidInvoiceSignature; interface VoidInvoiceSignature { /** * Voids an invoice. * * * Transitions the invoice status to `VOIDED`, canceling it and making it no longer valid. Any payments made before voiding are preserved for the audit trail. For details on status transitions, see [Invoice Lifecycle](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/standalone-invoice-payment-lifecycle). * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: VoidInvoiceApplicationErrors; }>; } declare function archiveInvoice$1(httpClient: HttpClient): ArchiveInvoiceSignature; interface ArchiveInvoiceSignature { /** * Archives an invoice. * * * Use archiving to filter and organize invoices. Archiving is available for all statuses except `DRAFT`. * * To remove an invoice from the archive, call [Unarchive Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/unarchive-invoice). * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: ArchiveInvoiceApplicationErrors; }>; } declare function unarchiveInvoice$1(httpClient: HttpClient): UnarchiveInvoiceSignature; interface UnarchiveInvoiceSignature { /** * Unarchives an invoice. * * * Removes the invoice from the archived state. To archive an invoice, call [Archive Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/archive-invoice). * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: UnarchiveInvoiceApplicationErrors; }>; } declare function initiatePayment$1(httpClient: HttpClient): InitiatePaymentSignature; interface InitiatePaymentSignature { /** * Initiates payment for an invoice. * * * Creates a Wix eCommerce order if one doesn't exist, generates a payment request, and returns a checkout URL for the customer. * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: InitiatePaymentApplicationErrors; }>; } declare function enableInvoicePayments$1(httpClient: HttpClient): EnableInvoicePaymentsSignature; interface EnableInvoicePaymentsSignature { /** * Enables payments for an invoice. * * * Use this to record manual (offline) or MOTO (Mail Order/Telephone Order) payments against an invoice. Creates a Wix eCommerce order if one doesn't exist, which enables payment recording against the invoice. To generate a checkout URL for online payment instead, call [Initiate Payment](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/initiate-payment). * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: EnableInvoicePaymentsApplicationErrors; }>; } declare function generatePdfDocument$1(httpClient: HttpClient): GeneratePdfDocumentSignature; interface GeneratePdfDocumentSignature { /** * Generates a PDF document for an invoice. * * * PDF generation is asynchronous. Poll the invoice using [Get Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/get-invoice) and check `documentInfo.status` until it's `AVAILABLE`, then use `documentInfo.downloadUrl` to access the file. * @param - Invoice ID. */ (invoiceId: string): Promise & { __applicationErrorsType?: GeneratePdfDocumentApplicationErrors; }>; } declare function markInvoiceAsViewed$1(httpClient: HttpClient): MarkInvoiceAsViewedSignature; interface MarkInvoiceAsViewedSignature { /** * Marks an invoice as viewed. * * * Adds the `VIEWED` status qualifier to the invoice and records the view timestamp in `activityInfo`. For details, see [Status Qualifiers](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/status-qualifiers). * @param - Invoice ID. */ (invoiceId: string): Promise>; } declare function markInvoiceAsSent$1(httpClient: HttpClient): MarkInvoiceAsSentSignature; interface MarkInvoiceAsSentSignature { /** * Marks an invoice as sent. * * * Adds the `SENT` status qualifier to the invoice and records the send timestamp and recipient in `activityInfo`. For details, see [Status Qualifiers](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/status-qualifiers). * @param - Invoice ID. */ (invoiceId: string): Promise>; } declare function calculateInvoice$1(httpClient: HttpClient): CalculateInvoiceSignature; interface CalculateInvoiceSignature { /** * Calculates totals, taxes, and available shipping options for a standalone invoice. Supports both custom and catalog line items. * * * Use this method before creating or updating an invoice to preview calculated values. Pass the returned `correlationId` in subsequent calculations to optimize incremental recalculations. * @param - Invoice to calculate. */ (invoice: NonNullablePaths, options?: CalculateInvoiceOptions): Promise & { __applicationErrorsType?: CalculateInvoiceApplicationErrors; }>; } declare function getLatestInvoiceNumber$1(httpClient: HttpClient): GetLatestInvoiceNumberSignature; interface GetLatestInvoiceNumberSignature { /** * Retrieves the highest invoice number currently in use. * * * Invoice numbering is managed in the [Invoices Settings API](https://dev.wix.com/docs/rest/business-management/get-paid/invoices/invoices-settings/introduction). */ (options?: GetLatestInvoiceNumberOptions): Promise; } declare function generateReceipt$1(httpClient: HttpClient): GenerateReceiptSignature; interface GenerateReceiptSignature { /** * Generates a receipt document for a specific payment on an invoice. Requires the `paymentId` of a confirmed payment on the invoice. * @param - Invoice ID. * @param - Payment ID. */ (invoiceId: string, paymentId: string): Promise>; } declare function bulkCreateInvoices$1(httpClient: HttpClient): BulkCreateInvoicesSignature; interface BulkCreateInvoicesSignature { /** * Creates multiple invoices. * * * To create a single invoice, call [Create Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/create-invoice). * @param - Invoices to create. */ (invoices: NonNullablePaths[], options?: BulkCreateInvoicesOptions): Promise & { __applicationErrorsType?: BulkCreateInvoicesApplicationErrors; __validationErrorsType?: BulkCreateInvoicesValidationErrors; }>; } declare function bulkUpdateInvoices$1(httpClient: HttpClient): BulkUpdateInvoicesSignature; interface BulkUpdateInvoicesSignature { /** * Updates multiple invoices. * * * To update a single invoice, call [Update Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/update-invoice). * @param - Invoices to update. */ (invoices: NonNullablePaths[], options?: BulkUpdateInvoicesOptions): Promise & { __applicationErrorsType?: BulkUpdateInvoicesApplicationErrors; __validationErrorsType?: BulkUpdateInvoicesValidationErrors; }>; } declare function bulkDeleteInvoices$1(httpClient: HttpClient): BulkDeleteInvoicesSignature; interface BulkDeleteInvoicesSignature { /** * Deletes multiple invoices. * * * To delete a single invoice, call [Delete Invoice](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/delete-invoice). * @param - IDs of invoices to delete. */ (invoiceIds: string[]): Promise>; } declare function bulkUpdateInvoiceTags$1(httpClient: HttpClient): BulkUpdateInvoiceTagsSignature; interface BulkUpdateInvoiceTagsSignature { /** * Adds or removes tags on multiple invoices. Tags are labels used to organize and filter invoices — they can be public (visible to anyone with access to the invoice) or private (restricted to site owners). * * Unlike [Bulk Update Invoices](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-update-invoices), which replaces fields entirely, this method lets you specify individual tags to assign or unassign without affecting other existing tags. A tag that appears in both the list to assign and the list to unassign is assigned. Tags that don't exist are ignored. * * To update tags on all invoices matching a filter, call [Bulk Update Invoice Tags By Filter](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-update-invoice-tags-by-filter). * @param - IDs of invoices to update tags for. */ (invoiceIds: string[], options?: BulkUpdateInvoiceTagsOptions): Promise & { __applicationErrorsType?: BulkUpdateInvoiceTagsApplicationErrors; }>; } declare function bulkUpdateInvoiceTagsByFilter$1(httpClient: HttpClient): BulkUpdateInvoiceTagsByFilterSignature; interface BulkUpdateInvoiceTagsByFilterSignature { /** * Asynchronously updates tags on multiple invoices that match the provided filter criteria. * * * To check the status of the bulk update, pass the returned `jobId` to [Get Async Job](https://dev.wix.com/docs/api-reference/business-management/async-job/get-async-job). * * To update tags on specific invoices by ID, call [Bulk Update Invoice Tags](https://dev.wix.com/docs/api-reference/business-management/get-paid/invoices/invoices/bulk-update-invoice-tags). * @param - Filter for selecting invoices to update. */ (filter: Record, options?: BulkUpdateInvoiceTagsByFilterOptions): Promise & { __applicationErrorsType?: BulkUpdateInvoiceTagsByFilterApplicationErrors; }>; } declare const onInvoiceCreated$1: EventDefinition; declare const onInvoiceDeleted$1: EventDefinition; declare const onInvoiceSent$1: EventDefinition; declare const onInvoiceTagsModified$1: EventDefinition; declare const onInvoiceUpdated$1: EventDefinition; declare function customQueryInvoices(httpClient: HttpClient): { (): InvoicesQueryBuilder; (query: InvoiceQuery): ReturnType; }; declare const createInvoice: MaybeContext & typeof createInvoice$1>; declare const getInvoice: MaybeContext & typeof getInvoice$1>; declare const updateInvoice: MaybeContext & typeof updateInvoice$1>; declare const deleteInvoice: MaybeContext & typeof deleteInvoice$1>; declare const searchInvoices: MaybeContext & typeof searchInvoices$1>; declare const sendInvoice: MaybeContext & typeof sendInvoice$1>; declare const publishInvoice: MaybeContext & typeof publishInvoice$1>; declare const voidInvoice: MaybeContext & typeof voidInvoice$1>; declare const archiveInvoice: MaybeContext & typeof archiveInvoice$1>; declare const unarchiveInvoice: MaybeContext & typeof unarchiveInvoice$1>; declare const initiatePayment: MaybeContext & typeof initiatePayment$1>; declare const enableInvoicePayments: MaybeContext & typeof enableInvoicePayments$1>; declare const generatePdfDocument: MaybeContext & typeof generatePdfDocument$1>; declare const markInvoiceAsViewed: MaybeContext & typeof markInvoiceAsViewed$1>; declare const markInvoiceAsSent: MaybeContext & typeof markInvoiceAsSent$1>; declare const calculateInvoice: MaybeContext & typeof calculateInvoice$1>; declare const getLatestInvoiceNumber: MaybeContext & typeof getLatestInvoiceNumber$1>; declare const generateReceipt: MaybeContext & typeof generateReceipt$1>; declare const bulkCreateInvoices: MaybeContext & typeof bulkCreateInvoices$1>; declare const bulkUpdateInvoices: MaybeContext & typeof bulkUpdateInvoices$1>; declare const bulkDeleteInvoices: MaybeContext & typeof bulkDeleteInvoices$1>; declare const bulkUpdateInvoiceTags: MaybeContext & typeof bulkUpdateInvoiceTags$1>; declare const bulkUpdateInvoiceTagsByFilter: MaybeContext & typeof bulkUpdateInvoiceTagsByFilter$1>; declare const queryInvoices: MaybeContext & typeof customQueryInvoices>; /** * Triggered when an invoice is created. */ declare const onInvoiceCreated: BuildEventDefinition & typeof onInvoiceCreated$1; /** * Triggered when an invoice is deleted. */ declare const onInvoiceDeleted: BuildEventDefinition & typeof onInvoiceDeleted$1; /** * Triggered when an invoice is sent to a customer. */ declare const onInvoiceSent: BuildEventDefinition & typeof onInvoiceSent$1; /** * Triggered when an invoice's tags are modified. */ declare const onInvoiceTagsModified: BuildEventDefinition & typeof onInvoiceTagsModified$1; /** * Triggered when an invoice is updated. */ declare const onInvoiceUpdated: BuildEventDefinition & typeof onInvoiceUpdated$1; export { ArchiveInvoiceApplicationErrors, ArchiveInvoiceResponse, BulkCreateInvoicesApplicationErrors, BulkCreateInvoicesOptions, BulkCreateInvoicesResponse, BulkCreateInvoicesValidationErrors, BulkDeleteInvoicesResponse, BulkUpdateInvoiceTagsApplicationErrors, BulkUpdateInvoiceTagsByFilterApplicationErrors, BulkUpdateInvoiceTagsByFilterOptions, BulkUpdateInvoiceTagsByFilterResponse, BulkUpdateInvoiceTagsOptions, BulkUpdateInvoiceTagsResponse, BulkUpdateInvoicesApplicationErrors, BulkUpdateInvoicesOptions, BulkUpdateInvoicesResponse, BulkUpdateInvoicesValidationErrors, CalculateInvoiceApplicationErrors, CalculateInvoiceOptions, CalculateInvoiceResponse, CreateInvoiceApplicationErrors, CreateInvoiceValidationErrors, DeleteInvoiceApplicationErrors, EnableInvoicePaymentsApplicationErrors, EnableInvoicePaymentsResponse, GeneratePdfDocumentApplicationErrors, GeneratePdfDocumentResponse, GenerateReceiptResponse, GetInvoiceApplicationErrors, GetLatestInvoiceNumberOptions, GetLatestInvoiceNumberResponse, InitiatePaymentApplicationErrors, InitiatePaymentResponse, Invoice, InvoiceCreatedEnvelope, InvoiceDeletedEnvelope, InvoiceQuery, InvoiceSearch, InvoiceSentEnvelope, InvoiceTagsModifiedEnvelope, InvoiceUpdatedEnvelope, InvoicesQueryBuilder, MarkInvoiceAsSentResponse, MarkInvoiceAsViewedResponse, MaskedInvoice, PublishInvoiceApplicationErrors, PublishInvoiceResponse, SearchInvoicesResponse, SendInvoiceApplicationErrors, SendInvoiceOptions, SendInvoiceResponse, UnarchiveInvoiceApplicationErrors, UnarchiveInvoiceResponse, UpdateInvoice, UpdateInvoiceApplicationErrors, UpdateInvoiceValidationErrors, VoidInvoiceApplicationErrors, VoidInvoiceResponse, archiveInvoice, bulkCreateInvoices, bulkDeleteInvoices, bulkUpdateInvoiceTags, bulkUpdateInvoiceTagsByFilter, bulkUpdateInvoices, calculateInvoice, createInvoice, deleteInvoice, enableInvoicePayments, generatePdfDocument, generateReceipt, getInvoice, getLatestInvoiceNumber, initiatePayment, markInvoiceAsSent, markInvoiceAsViewed, onInvoiceCreated, onInvoiceDeleted, onInvoiceSent, onInvoiceTagsModified, onInvoiceUpdated, publishInvoice, queryInvoices, searchInvoices, sendInvoice, unarchiveInvoice, updateInvoice, voidInvoice };