@spaceinvoices/js-sdk 18.37.0 → 19.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -117,7 +117,7 @@ Defaults to true (best-effort). When omitted, behaves like true but won't fail t
117
117
  Searches are case-insensitive and match partial strings.
118
118
  Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items."),categories:e__namespace.string().optional().describe("Comma-separated categories. Returns items in *any* of them, which is what a point-of-sale category chip filters by. Shorthand for the equivalent `query` operator form, kept because a filter row should not have to build JSON."),usage:e__namespace.enum(["sale","purchase"]).optional().describe("Items for this side: items with this usage, items without a usage, and inventory-tracked items. Use `sale` for pickers on sales documents and `purchase` for pickers on expenses and purchase orders. Omit to list every item.")}),cFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uVO=36,pVO=500,mVO=2e3,xVO=8,gVO=/^VATEX-[A-Z0-9-]{2,24}$/,yVO=500,OVO=100,vVO=200,hVO=200,bVO=/^\d{2}\.\d{2}\.\d{2}$/,SVO=36,fVO=100,zVO=-140737488355328,IVO=0x7fffffffffff,BVO=36,EVO=500,TVO=500,DVO=500,RVO=500,_VO=500,NVO=500,MVO=500,UVO=500,PVO=500,CVO=500,wVO=500,AVO=500,FVO=500,kVO=500,jVO=500,HVO=500,LVO=500,GVO=500,VVO=500,KVO=2e3,ZVO=2e3,qVO=2e3,WVO=2e3,YVO=2e3,$VO=2e3,QVO=2e3,JVO=2e3,XVO=2e3,eKO=2e3,tKO=2e3,nKO=2e3,sKO=2e3,oKO=2e3,iKO=2e3,aKO=2e3,rKO=2e3,lKO=2e3,dKO=2e3,uFb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(uVO),name:e__namespace.string().max(pVO),description:e__namespace.string().max(mVO).nullish(),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e__namespace.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e__namespace.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e__namespace.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e__namespace.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e__namespace.union([e__namespace.object({unit_code:e__namespace.string().min(1).max(xVO).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e__namespace.union([e__namespace.object({code:e__namespace.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e__namespace.string().regex(gVO).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e__namespace.string().min(1).max(yVO).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e__namespace.null()]).optional(),italy:e__namespace.union([e__namespace.object({nature:e__namespace.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e__namespace.string().min(1).max(OVO).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e__namespace.null()]).optional(),hungary:e__namespace.object({vat_treatment:e__namespace.union([e__namespace.object({type:e__namespace.enum(["exemption"]),case:e__namespace.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e__namespace.string().min(1).max(vVO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["out_of_scope"]),case:e__namespace.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e__namespace.string().min(1).max(hVO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["domestic_reverse_charge"])}),e__namespace.object({type:e__namespace.enum(["no_vat_charge"])}),e__namespace.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema."),croatia:e__namespace.object({kpd_code:e__namespace.string().regex(bVO).nullish().describe("KPD 2025 (Klasifikacija proizvoda po djelatnostima) product classification, sent as BT-158 on Croatian eRa\u010Dun (Fiskalizacija 2.0). Must be a valid six-digit leaf code of the official KPD 2025 list, in NN.NN.NN form.")}).nullish().describe("Croatia-specific line-level e-invoicing options. `kpd_code` is the KPD 2025 product classification sent as BT-158 on Croatian eRa\u010Dun; it is checked against the official KPD 2025 list here, and is required on invoice lines when a Croatian eRa\u010Dun is generated.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input. `croatia` carries Croatian eRa\u010Dun input such as the KPD 2025 product classification."),e__namespace.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e__namespace.array(e__namespace.string().max(SVO)),categories:e__namespace.array(e__namespace.string().max(fVO)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e__namespace.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e__namespace.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e__namespace.union([e__namespace.literal("sale"),e__namespace.literal("purchase"),e__namespace.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e__namespace.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e__namespace.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e__namespace.number().min(zVO).max(IVO),entity_id:e__namespace.string().max(BVO),financial_category_id:e__namespace.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(EVO).optional(),"de-DE":e__namespace.string().max(TVO).optional(),"it-IT":e__namespace.string().max(DVO).optional(),"fr-FR":e__namespace.string().max(RVO).optional(),"es-ES":e__namespace.string().max(_VO).optional(),"sl-SI":e__namespace.string().max(NVO).optional(),"pt-PT":e__namespace.string().max(MVO).optional(),"nl-NL":e__namespace.string().max(UVO).optional(),"pl-PL":e__namespace.string().max(PVO).optional(),"hr-HR":e__namespace.string().max(CVO).optional(),"sv-SE":e__namespace.string().max(wVO).optional(),"fi-FI":e__namespace.string().max(AVO).optional(),"et-EE":e__namespace.string().max(FVO).optional(),"bg-BG":e__namespace.string().max(kVO).optional(),"cs-CZ":e__namespace.string().max(jVO).optional(),"sk-SK":e__namespace.string().max(HVO).optional(),"nb-NO":e__namespace.string().max(LVO).optional(),"is-IS":e__namespace.string().max(GVO).optional(),"hu-HU":e__namespace.string().max(VVO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e__namespace.object({"en-US":e__namespace.string().max(KVO).optional(),"de-DE":e__namespace.string().max(ZVO).optional(),"it-IT":e__namespace.string().max(qVO).optional(),"fr-FR":e__namespace.string().max(WVO).optional(),"es-ES":e__namespace.string().max(YVO).optional(),"sl-SI":e__namespace.string().max($VO).optional(),"pt-PT":e__namespace.string().max(QVO).optional(),"nl-NL":e__namespace.string().max(JVO).optional(),"pl-PL":e__namespace.string().max(XVO).optional(),"hr-HR":e__namespace.string().max(eKO).optional(),"sv-SE":e__namespace.string().max(tKO).optional(),"fi-FI":e__namespace.string().max(nKO).optional(),"et-EE":e__namespace.string().max(sKO).optional(),"bg-BG":e__namespace.string().max(oKO).optional(),"cs-CZ":e__namespace.string().max(iKO).optional(),"sk-SK":e__namespace.string().max(aKO).optional(),"nb-NO":e__namespace.string().max(rKO).optional(),"is-IS":e__namespace.string().max(lKO).optional(),"hu-HU":e__namespace.string().max(dKO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Product or service item").and(e__namespace.looseObject({})).describe("Item or Service provided to customers by the Entity")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),pFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mFb=e__namespace.object({data:e__namespace.array(e__namespace.string())}),xFb=e__namespace.object({format:e__namespace.enum(["csv","xlsx"]).describe("Template file format."),language:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.literal("hu"),e__namespace.literal(null)]).nullish().describe("Language for the example row's free-text values (name, description, unit, category). Defaults to the entity locale when omitted. Column headers are always the English identifiers documented below.")}),gFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),yFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),OFb=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),vFb=e__namespace.object({total_rows:e__namespace.number(),created:e__namespace.number(),updated:e__namespace.number(),skipped:e__namespace.number(),errors:e__namespace.number(),stock_movements:e__namespace.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e__namespace.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e__namespace.array(e__namespace.object({row:e__namespace.number().describe("1-based data row number (header row is not counted)."),sku:e__namespace.string().nullable(),name:e__namespace.string().nullable(),action:e__namespace.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e__namespace.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e__namespace.array(e__namespace.string()).describe("Human-readable notes and errors for this row.")}))}),hFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),bFb=e__namespace.object({file:e__namespace.custom(d=>typeof File<"u"&&d instanceof File,"Input not instance of File").describe("CSV or XLSX file to import")}),SFb=e__namespace.object({total_rows:e__namespace.number(),created:e__namespace.number(),updated:e__namespace.number(),skipped:e__namespace.number(),errors:e__namespace.number(),stock_movements:e__namespace.number().describe("Number of rows with starting stock to record as `adjustment_in` movements (0 when nothing to commit). For a preview, these are planned movements that would be created on commit; the movements themselves are only written once `committed` is true."),committed:e__namespace.boolean().describe("false for a preview; true once the commit endpoint has written the changes."),rows:e__namespace.array(e__namespace.object({row:e__namespace.number().describe("1-based data row number (header row is not counted)."),sku:e__namespace.string().nullable(),name:e__namespace.string().nullable(),action:e__namespace.enum(["create","update","skip","error"]).describe("What this row did (or would do) to the item catalog."),stock:e__namespace.enum(["create","skip","none"]).describe("What this row did (or would do) to starting stock."),messages:e__namespace.array(e__namespace.string()).describe("Human-readable notes and errors for this row.")}))}),cKO=/^[a-z]{3,4}_[0-9a-f]{24}$/,fFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",cKO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),zFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),uKO=2e3,pKO=8,mKO=/^VATEX-[A-Z0-9-]{2,24}$/,xKO=500,gKO=100,yKO=200,OKO=200,vKO=/^\d{2}\.\d{2}\.\d{2}$/,hKO=36,bKO=100,SKO=100,fKO=50,zKO=0,IKO=500,BKO=500,EKO=500,TKO=500,DKO=500,RKO=500,_KO=500,NKO=500,MKO=500,UKO=500,PKO=500,CKO=500,wKO=500,AKO=500,FKO=500,kKO=500,jKO=500,HKO=500,LKO=500,GKO=2e3,VKO=2e3,KKO=2e3,ZKO=2e3,qKO=2e3,WKO=2e3,YKO=2e3,$KO=2e3,QKO=2e3,JKO=2e3,XKO=2e3,eZO=2e3,tZO=2e3,nZO=2e3,sZO=2e3,oZO=2e3,iZO=2e3,aZO=2e3,rZO=2e3,lZO=200,dZO=0,cZO=100,uZO=50,pZO=2,IFb=e__namespace.object({name:e__namespace.string().min(1).optional(),description:e__namespace.string().max(uKO).nullish().describe("Free-form description of the item. Omit to keep the current value; send null to clear it."),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T item/service typing."),price:e__namespace.number().optional().describe("Net price per unit before tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. Provide either price OR gross_price, not both."),gross_price:e__namespace.number().optional().describe("Gross price per unit including tax in the item's currency major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents. If provided, net price is calculated. Provide either price OR gross_price, not both."),unit:e__namespace.string().nullish().describe("Default display unit for document lines created from this saved item. Omit to keep the current value; send null to clear it."),e_invoicing:e__namespace.union([e__namespace.object({unit_code:e__namespace.string().min(1).max(pKO).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e__namespace.union([e__namespace.object({code:e__namespace.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e__namespace.string().regex(mKO).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e__namespace.string().min(1).max(xKO).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e__namespace.null()]).optional(),italy:e__namespace.union([e__namespace.object({nature:e__namespace.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e__namespace.string().min(1).max(gKO).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e__namespace.null()]).optional(),hungary:e__namespace.object({vat_treatment:e__namespace.union([e__namespace.object({type:e__namespace.enum(["exemption"]),case:e__namespace.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e__namespace.string().min(1).max(yKO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["out_of_scope"]),case:e__namespace.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e__namespace.string().min(1).max(OKO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["domestic_reverse_charge"])}),e__namespace.object({type:e__namespace.enum(["no_vat_charge"])}),e__namespace.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema."),croatia:e__namespace.object({kpd_code:e__namespace.string().regex(vKO).nullish().describe("KPD 2025 (Klasifikacija proizvoda po djelatnostima) product classification, sent as BT-158 on Croatian eRa\u010Dun (Fiskalizacija 2.0). Must be a valid six-digit leaf code of the official KPD 2025 list, in NN.NN.NN form.")}).nullish().describe("Croatia-specific line-level e-invoicing options. `kpd_code` is the KPD 2025 product classification sent as BT-158 on Croatian eRa\u010Dun; it is checked against the official KPD 2025 list here, and is required on invoice lines when a Croatian eRa\u010Dun is generated.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input. `croatia` carries Croatian eRa\u010Dun input such as the KPD 2025 product classification."),e__namespace.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e__namespace.array(e__namespace.string().max(hKO)).optional(),categories:e__namespace.array(e__namespace.string().max(bKO)).nullish().describe("Free-form groupings used to filter the catalog. Values are trimmed, lower-cased and de-duplicated on write. Omit or send null for none; on update, null clears the list."),track_inventory:e__namespace.boolean().nullish().describe("Opt in to stock tracking for this item. When enabled, inventory movements can be recorded and finalizing an invoice with this item automatically records a `sale` movement. Omit or send null for false."),sku:e__namespace.string().max(SKO).nullish().describe("Stock-keeping unit, free-form and merchant-defined. Omit to keep the current value; send null to clear it."),usage:e__namespace.union([e__namespace.literal("sale"),e__namespace.literal("purchase"),e__namespace.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders). Omit to keep the current value; send null to clear it so the item is used for both."),barcode:e__namespace.string().max(fKO).nullish().describe("GTIN/EAN/UPC barcode. Omit to keep the current value; send null to clear it."),purchase_price:e__namespace.number().min(zKO).nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given. Omit to keep the current value; send null to clear it."),financial_category_id:e__namespace.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned. Omit to keep the current value; send null to clear it."),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),translations:e__namespace.union([e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(IKO).nullish(),"de-DE":e__namespace.string().max(BKO).nullish(),"it-IT":e__namespace.string().max(EKO).nullish(),"fr-FR":e__namespace.string().max(TKO).nullish(),"es-ES":e__namespace.string().max(DKO).nullish(),"sl-SI":e__namespace.string().max(RKO).nullish(),"pt-PT":e__namespace.string().max(_KO).nullish(),"nl-NL":e__namespace.string().max(NKO).nullish(),"pl-PL":e__namespace.string().max(MKO).nullish(),"hr-HR":e__namespace.string().max(UKO).nullish(),"sv-SE":e__namespace.string().max(PKO).nullish(),"fi-FI":e__namespace.string().max(CKO).nullish(),"et-EE":e__namespace.string().max(wKO).nullish(),"bg-BG":e__namespace.string().max(AKO).nullish(),"cs-CZ":e__namespace.string().max(FKO).nullish(),"sk-SK":e__namespace.string().max(kKO).nullish(),"nb-NO":e__namespace.string().max(jKO).nullish(),"is-IS":e__namespace.string().max(HKO).nullish(),"hu-HU":e__namespace.string().max(LKO).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e__namespace.object({"en-US":e__namespace.string().max(GKO).nullish(),"de-DE":e__namespace.string().max(VKO).nullish(),"it-IT":e__namespace.string().max(KKO).nullish(),"fr-FR":e__namespace.string().max(ZKO).nullish(),"es-ES":e__namespace.string().max(qKO).nullish(),"sl-SI":e__namespace.string().max(WKO).nullish(),"pt-PT":e__namespace.string().max(YKO).nullish(),"nl-NL":e__namespace.string().max($KO).nullish(),"pl-PL":e__namespace.string().max(QKO).nullish(),"hr-HR":e__namespace.string().max(JKO).nullish(),"sv-SE":e__namespace.string().max(XKO).nullish(),"fi-FI":e__namespace.string().max(eZO).nullish(),"et-EE":e__namespace.string().max(tZO).nullish(),"bg-BG":e__namespace.string().max(nZO).nullish(),"cs-CZ":e__namespace.string().max(sZO).nullish(),"sk-SK":e__namespace.string().max(oZO).nullish(),"nb-NO":e__namespace.string().max(iZO).nullish(),"is-IS":e__namespace.string().max(aZO).nullish(),"hu-HU":e__namespace.string().max(rZO).nullish()}).nullish().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content accepted on create and update. Same shape as `DocumentItemTranslations`; an explicit `null` for a field or a locale is treated as omitted."),e__namespace.null()]).optional().describe("Translated catalog-item content. Set to null to clear all translations."),financial_category_key:e__namespace.string().max(lZO).nullish().describe("Key of the default financial category (for example `office-supplies`), as an alternative to `financial_category_id`. Provide either, not both. On create a null value counts as not provided; on update null clears the default, and sending both fields is rejected."),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number().min(dZO).max(cZO).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e__namespace.string().max(uZO).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(pZO).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),mZO=36,xZO=500,gZO=2e3,yZO=8,OZO=/^VATEX-[A-Z0-9-]{2,24}$/,vZO=500,hZO=100,bZO=200,SZO=200,fZO=/^\d{2}\.\d{2}\.\d{2}$/,zZO=36,IZO=100,BZO=-140737488355328,EZO=0x7fffffffffff,TZO=36,DZO=500,RZO=500,_ZO=500,NZO=500,MZO=500,UZO=500,PZO=500,CZO=500,wZO=500,AZO=500,FZO=500,kZO=500,jZO=500,HZO=500,LZO=500,GZO=500,VZO=500,KZO=500,ZZO=500,qZO=2e3,WZO=2e3,YZO=2e3,$ZO=2e3,QZO=2e3,JZO=2e3,XZO=2e3,eqO=2e3,tqO=2e3,nqO=2e3,sqO=2e3,oqO=2e3,iqO=2e3,aqO=2e3,rqO=2e3,lqO=2e3,dqO=2e3,cqO=2e3,uqO=2e3,BFb=e__namespace.object({id:e__namespace.string().max(mZO),name:e__namespace.string().max(xZO),description:e__namespace.string().max(gZO).nullish(),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e__namespace.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e__namespace.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e__namespace.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e__namespace.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e__namespace.union([e__namespace.object({unit_code:e__namespace.string().min(1).max(yZO).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e__namespace.union([e__namespace.object({code:e__namespace.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e__namespace.string().regex(OZO).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e__namespace.string().min(1).max(vZO).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e__namespace.null()]).optional(),italy:e__namespace.union([e__namespace.object({nature:e__namespace.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e__namespace.string().min(1).max(hZO).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e__namespace.null()]).optional(),hungary:e__namespace.object({vat_treatment:e__namespace.union([e__namespace.object({type:e__namespace.enum(["exemption"]),case:e__namespace.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e__namespace.string().min(1).max(bZO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["out_of_scope"]),case:e__namespace.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e__namespace.string().min(1).max(SZO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["domestic_reverse_charge"])}),e__namespace.object({type:e__namespace.enum(["no_vat_charge"])}),e__namespace.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema."),croatia:e__namespace.object({kpd_code:e__namespace.string().regex(fZO).nullish().describe("KPD 2025 (Klasifikacija proizvoda po djelatnostima) product classification, sent as BT-158 on Croatian eRa\u010Dun (Fiskalizacija 2.0). Must be a valid six-digit leaf code of the official KPD 2025 list, in NN.NN.NN form.")}).nullish().describe("Croatia-specific line-level e-invoicing options. `kpd_code` is the KPD 2025 product classification sent as BT-158 on Croatian eRa\u010Dun; it is checked against the official KPD 2025 list here, and is required on invoice lines when a Croatian eRa\u010Dun is generated.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input. `croatia` carries Croatian eRa\u010Dun input such as the KPD 2025 product classification."),e__namespace.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e__namespace.array(e__namespace.string().max(zZO)),categories:e__namespace.array(e__namespace.string().max(IZO)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e__namespace.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e__namespace.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e__namespace.union([e__namespace.literal("sale"),e__namespace.literal("purchase"),e__namespace.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e__namespace.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e__namespace.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e__namespace.number().min(BZO).max(EZO),entity_id:e__namespace.string().max(TZO),financial_category_id:e__namespace.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(DZO).optional(),"de-DE":e__namespace.string().max(RZO).optional(),"it-IT":e__namespace.string().max(_ZO).optional(),"fr-FR":e__namespace.string().max(NZO).optional(),"es-ES":e__namespace.string().max(MZO).optional(),"sl-SI":e__namespace.string().max(UZO).optional(),"pt-PT":e__namespace.string().max(PZO).optional(),"nl-NL":e__namespace.string().max(CZO).optional(),"pl-PL":e__namespace.string().max(wZO).optional(),"hr-HR":e__namespace.string().max(AZO).optional(),"sv-SE":e__namespace.string().max(FZO).optional(),"fi-FI":e__namespace.string().max(kZO).optional(),"et-EE":e__namespace.string().max(jZO).optional(),"bg-BG":e__namespace.string().max(HZO).optional(),"cs-CZ":e__namespace.string().max(LZO).optional(),"sk-SK":e__namespace.string().max(GZO).optional(),"nb-NO":e__namespace.string().max(VZO).optional(),"is-IS":e__namespace.string().max(KZO).optional(),"hu-HU":e__namespace.string().max(ZZO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e__namespace.object({"en-US":e__namespace.string().max(qZO).optional(),"de-DE":e__namespace.string().max(WZO).optional(),"it-IT":e__namespace.string().max(YZO).optional(),"fr-FR":e__namespace.string().max($ZO).optional(),"es-ES":e__namespace.string().max(QZO).optional(),"sl-SI":e__namespace.string().max(JZO).optional(),"pt-PT":e__namespace.string().max(XZO).optional(),"nl-NL":e__namespace.string().max(eqO).optional(),"pl-PL":e__namespace.string().max(tqO).optional(),"hr-HR":e__namespace.string().max(nqO).optional(),"sv-SE":e__namespace.string().max(sqO).optional(),"fi-FI":e__namespace.string().max(oqO).optional(),"et-EE":e__namespace.string().max(iqO).optional(),"bg-BG":e__namespace.string().max(aqO).optional(),"cs-CZ":e__namespace.string().max(rqO).optional(),"sk-SK":e__namespace.string().max(lqO).optional(),"nb-NO":e__namespace.string().max(dqO).optional(),"is-IS":e__namespace.string().max(cqO).optional(),"hu-HU":e__namespace.string().max(uqO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Product or service item").and(e__namespace.looseObject({})).describe("Item or Service provided to customers by the Entity"),pqO=/^[a-z]{3,4}_[0-9a-f]{24}$/,EFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",pqO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),TFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),mqO=/^[a-z]{3,4}_[0-9a-f]{24}$/,DFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",mqO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),RFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xqO=36,gqO=500,yqO=2e3,OqO=8,vqO=/^VATEX-[A-Z0-9-]{2,24}$/,hqO=500,bqO=100,SqO=200,fqO=200,zqO=/^\d{2}\.\d{2}\.\d{2}$/,IqO=36,BqO=100,EqO=-140737488355328,TqO=0x7fffffffffff,DqO=36,RqO=500,_qO=500,NqO=500,MqO=500,UqO=500,PqO=500,CqO=500,wqO=500,AqO=500,FqO=500,kqO=500,jqO=500,HqO=500,LqO=500,GqO=500,VqO=500,KqO=500,ZqO=500,qqO=500,WqO=2e3,YqO=2e3,$qO=2e3,QqO=2e3,JqO=2e3,XqO=2e3,eWO=2e3,tWO=2e3,nWO=2e3,sWO=2e3,oWO=2e3,iWO=2e3,aWO=2e3,rWO=2e3,lWO=2e3,dWO=2e3,cWO=2e3,uWO=2e3,pWO=2e3,_Fb=e__namespace.object({id:e__namespace.string().max(xqO),name:e__namespace.string().max(gqO),description:e__namespace.string().max(yqO).nullish(),classification:e__namespace.union([e__namespace.literal("product"),e__namespace.literal("service"),e__namespace.literal("advance"),e__namespace.literal(null)]).nullish().describe("Item classification used for Portugal SAF-T product typing."),price:e__namespace.number().describe("Per-unit net price (before tax). Always stores net price."),gross_price:e__namespace.number().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),price_with_tax:e__namespace.number().describe("Per-unit price including tax. Stored for fast B2C/POS display regardless of input mode."),unit:e__namespace.string().nullish().describe("Default display unit for document lines created from this saved item."),e_invoicing:e__namespace.union([e__namespace.object({unit_code:e__namespace.string().min(1).max(OqO).nullish().describe("Optional XML unit-code override for e-SLOG, Peppol, XRechnung, and ZUGFeRD output. Use a supported UN/ECE Rec 20 / Rec 21 code such as C62, HUR, MGM, MLT, or SET."),vat_category:e__namespace.union([e__namespace.object({code:e__namespace.enum(["Z","E","AE","K","G"]).describe("EN 16931 VAT category code: K, AE, G, E or Z."),exemption_reason_code:e__namespace.string().regex(vqO).nullish().describe("VATEX exemption reason code (BT-121). Not allowed with Z."),exemption_reason:e__namespace.string().min(1).max(hqO).nullish().describe("Exemption reason text (BT-120). Not allowed with Z.")}).describe("EN 16931 VAT category override for a line without VAT charged."),e__namespace.null()]).optional(),italy:e__namespace.union([e__namespace.object({nature:e__namespace.enum(["N2.1","N2.2","N3.1","N3.2"]).describe("Supported zero-VAT treatment: N2.1 territorial exclusion, N2.2 flat-rate (RF19) operations, N3.1 exports, N3.2 intra-community supplies. N2.2 is only accepted for an RF19 (regime forfettario) seller invoicing a domestic Italian buyer; ordinary RF01 sellers, and RF19 sellers invoicing a foreign buyer, must use N2.1/N3.1/N3.2 instead. Other special/exempt treatments are not supported and must not be relabelled."),legal_reference:e__namespace.string().min(1).max(bqO).describe("Actual legal basis for this zero-VAT operation, emitted as RiferimentoNormativo.")}),e__namespace.null()]).optional(),hungary:e__namespace.object({vat_treatment:e__namespace.union([e__namespace.object({type:e__namespace.enum(["exemption"]),case:e__namespace.enum(["AAM","TAM","KBAET","KBAUK","EAM","NAM"]).describe("NAV VAT exemption case code (invoiceData.xsd `VatExemptionCaseType`)."),reason:e__namespace.string().min(1).max(SqO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["out_of_scope"]),case:e__namespace.enum(["ATK","EUFAD37","EUFADE","EUE","HO"]).describe("NAV out-of-scope VAT case code (invoiceData.xsd `VatOutOfScopeCaseType`)."),reason:e__namespace.string().min(1).max(fqO).describe("Free-text justification for the exemption/out-of-scope case (invoiceData.xsd DetailedReasonType.reason, common:SimpleText200NotBlankType: max 200 characters, non-blank).")}),e__namespace.object({type:e__namespace.enum(["domestic_reverse_charge"])}),e__namespace.object({type:e__namespace.enum(["no_vat_charge"])}),e__namespace.null()]).optional().describe("Explicit Hungarian NAV VAT treatment for a document line, required whenever a line has no positive, non-reverse-charge VAT percentage. Never auto-derived from transaction_type, customer country, or product classification.")}).nullish().describe("Hungary-specific line-level e-invoicing options for NAV reporting. `vat_treatment` is required whenever the line has no positive, non-reverse-charge VAT percentage; NAV country validation itself is enforced elsewhere, not by this schema."),croatia:e__namespace.object({kpd_code:e__namespace.string().regex(zqO).nullish().describe("KPD 2025 (Klasifikacija proizvoda po djelatnostima) product classification, sent as BT-158 on Croatian eRa\u010Dun (Fiskalizacija 2.0). Must be a valid six-digit leaf code of the official KPD 2025 list, in NN.NN.NN form.")}).nullish().describe("Croatia-specific line-level e-invoicing options. `kpd_code` is the KPD 2025 product classification sent as BT-158 on Croatian eRa\u010Dun; it is checked against the official KPD 2025 list here, and is required on invoice lines when a Croatian eRa\u010Dun is generated.")}).describe("Line-level e-invoicing options. `unit_code` overrides only XML unit output; the line `unit` field remains the display unit. `vat_category` overrides the derived EN 16931 VAT category in XRechnung and ZUGFeRD exports. `hungary` carries NAV-specific reporting input. `croatia` carries Croatian eRa\u010Dun input such as the KPD 2025 product classification."),e__namespace.null()]).optional().describe("Default line-level e-invoicing options for document lines created from this saved item."),tax_ids:e__namespace.array(e__namespace.string().max(IqO)),categories:e__namespace.array(e__namespace.string().max(BqO)).optional().describe("Free-form groupings used to filter the catalog, typically shown as chips at a point of sale. An item can belong to several. Distinct from `financial_category_id` (accounting) and `classification` (e-invoicing). Empty when the item is in none."),track_inventory:e__namespace.boolean().optional().describe("Whether stock tracking is enabled for this item. When true, inventory movements can be recorded and invoicing this item records automatic `sale` movements."),sku:e__namespace.string().nullish().describe("Stock-keeping unit, free-form and merchant-defined."),usage:e__namespace.union([e__namespace.literal("sale"),e__namespace.literal("purchase"),e__namespace.literal(null)]).nullish().describe("What the item is used for: `sale` (shown when picking items for sales documents), `purchase` (shown when picking items for expenses and purchase orders), or null for both."),barcode:e__namespace.string().nullish().describe("GTIN/EAN/UPC barcode"),purchase_price:e__namespace.number().nullish().describe("Net purchase price per unit in the entity's currency major unit. Used as the default `unit_cost` for inbound inventory movements when none is given."),total_tax:e__namespace.number().min(EqO).max(TqO),entity_id:e__namespace.string().max(DqO),financial_category_id:e__namespace.string().nullish().describe("Default financial category for this item. In v1 only income categories can be assigned."),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(RqO).optional(),"de-DE":e__namespace.string().max(_qO).optional(),"it-IT":e__namespace.string().max(NqO).optional(),"fr-FR":e__namespace.string().max(MqO).optional(),"es-ES":e__namespace.string().max(UqO).optional(),"sl-SI":e__namespace.string().max(PqO).optional(),"pt-PT":e__namespace.string().max(CqO).optional(),"nl-NL":e__namespace.string().max(wqO).optional(),"pl-PL":e__namespace.string().max(AqO).optional(),"hr-HR":e__namespace.string().max(FqO).optional(),"sv-SE":e__namespace.string().max(kqO).optional(),"fi-FI":e__namespace.string().max(jqO).optional(),"et-EE":e__namespace.string().max(HqO).optional(),"bg-BG":e__namespace.string().max(LqO).optional(),"cs-CZ":e__namespace.string().max(GqO).optional(),"sk-SK":e__namespace.string().max(VqO).optional(),"nb-NO":e__namespace.string().max(KqO).optional(),"is-IS":e__namespace.string().max(ZqO).optional(),"hu-HU":e__namespace.string().max(qqO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale."),description:e__namespace.object({"en-US":e__namespace.string().max(WqO).optional(),"de-DE":e__namespace.string().max(YqO).optional(),"it-IT":e__namespace.string().max($qO).optional(),"fr-FR":e__namespace.string().max(QqO).optional(),"es-ES":e__namespace.string().max(JqO).optional(),"sl-SI":e__namespace.string().max(XqO).optional(),"pt-PT":e__namespace.string().max(eWO).optional(),"nl-NL":e__namespace.string().max(tWO).optional(),"pl-PL":e__namespace.string().max(nWO).optional(),"hr-HR":e__namespace.string().max(sWO).optional(),"sv-SE":e__namespace.string().max(oWO).optional(),"fi-FI":e__namespace.string().max(iWO).optional(),"et-EE":e__namespace.string().max(aWO).optional(),"bg-BG":e__namespace.string().max(rWO).optional(),"cs-CZ":e__namespace.string().max(lWO).optional(),"sk-SK":e__namespace.string().max(dWO).optional(),"nb-NO":e__namespace.string().max(cWO).optional(),"is-IS":e__namespace.string().max(uWO).optional(),"hu-HU":e__namespace.string().max(pWO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).describe("Translated user-authored line-item content keyed by full supported locales. Empty string intentionally blanks the field for that locale."),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Product or service item").and(e__namespace.looseObject({})).describe("Item or Service provided to customers by the Entity"),mWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,NFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",mWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),MFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),xWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,UFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",xWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),PFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),CFb=e__namespace.object({item_id:e__namespace.string(),track_inventory:e__namespace.boolean(),quantity_on_hand:e__namespace.number().describe("Current stock on hand. May be negative if outbound movements outpaced recorded inbound stock."),total_value:e__namespace.number().describe("Remaining value of stock on hand, from FIFO cost layers."),average_unit_cost:e__namespace.number().nullable().describe("total_value / quantity_on_hand, or null when there is no stock on hand."),layers:e__namespace.array(e__namespace.object({movement_id:e__namespace.string(),occurred_at:e__namespace.iso.datetime({}),unit_cost:e__namespace.number(),quantity_remaining:e__namespace.number()})).describe("Current FIFO cost layers, oldest first."),warehouses:e__namespace.array(e__namespace.object({warehouse_id:e__namespace.string(),warehouse_name:e__namespace.string(),quantity_on_hand:e__namespace.number(),total_value:e__namespace.number().describe("Warehouse quantity \xD7 the entity's average cost. Cost layers are entity-level, not per-warehouse.")})).describe("Per-warehouse quantity and value. Includes every warehouse with a non-zero quantity, plus the entity's default warehouse even when empty.")}),gWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,wFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",gWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),yWO=10,OWO=100,AFb=e__namespace.object({limit:e__namespace.number().min(1).max(OWO).default(yWO).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),warehouse_id:e__namespace.string().optional().describe("Filter to movements where this warehouse is the source or destination."),document_id:e__namespace.string().nullish().describe("Filter to movements generated automatically by this document (e.g. the invoice or credit note whose finalization recorded them). Movements created manually through this endpoint have no document and never match.")}),FFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),kFb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),item_id:e__namespace.string(),type:e__namespace.enum(["purchase","sale","adjustment_in","adjustment_out","sale_return","write_off","transfer"]).describe("Movement type. Inbound: `purchase`, `sale_return`, `adjustment_in`. Outbound: `sale`, `adjustment_out`, `write_off`. `transfer` relocates quantity between warehouses and never touches cost layers. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, for a tracked item \u2014 they cannot be created manually."),quantity:e__namespace.number(),unit_cost:e__namespace.number().nullable(),cost_total:e__namespace.number().describe("Total cost for this movement. For inbound movements this is quantity \xD7 unit_cost; for outbound movements it is derived from the FIFO layers consumed."),occurred_at:e__namespace.iso.datetime({}),warehouse_id:e__namespace.string().describe("Warehouse this movement affects (source warehouse for `transfer`)."),destination_warehouse_id:e__namespace.string().nullable().describe("Destination warehouse for `transfer` movements; null otherwise."),source_movement_id:e__namespace.string().nullable().describe("For `sale_return`: the `sale` movement being reversed, when known."),source_document_id:e__namespace.string().nullable().describe("For `sale_return`: the invoice being reversed, used to derive cost when `source_movement_id` is unavailable."),document_id:e__namespace.string().nullable().describe("The document that generated this movement, when it was created automatically (e.g. an invoice)."),document_type:e__namespace.string().nullable().describe("The kind of document that generated this movement automatically, e.g. `invoice` (sale), `credit_note` (sale_return), or `expense` (purchase). Null for manually-recorded movements."),bundle_item_id:e__namespace.string().nullish().describe("For movements moved as a component of an item kit: the item (kit) whose document line moved this component. Null otherwise."),component_quantity:e__namespace.number().nullish().describe("For component movements: quantity of this component per one unit of the kit item at the time the movement was recorded. Null otherwise."),note:e__namespace.string().nullable(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})})),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),vWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,jFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",vWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),HFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),hWO=0,bWO=0,SWO=500,LFb=e__namespace.object({type:e__namespace.enum(["adjustment_in","adjustment_out","write_off","transfer"]).describe("Movement type for manually-recorded movements. `purchase`, `sale` and `sale_return` are recorded automatically by finalizing an expense, invoice, or credit note, respectively, and cannot be created through this endpoint. Use `adjustment_in` (with `unit_cost`) for opening stock, stock counts, or returns received without a credit note."),quantity:e__namespace.number().gt(hWO).describe("Movement quantity. Always positive; direction is determined by `type`."),unit_cost:e__namespace.number().min(bWO).nullish().describe("Per-unit cost in the entity's currency major unit. Required for `adjustment_in` unless the item has a `purchase_price`; ignored (forced to null) for outbound movements and `transfer`, whose cost is derived from FIFO layers."),occurred_at:e__namespace.iso.datetime({}).nullish().describe("When the movement occurred (ISO 8601 datetime with offset). Defaults to now."),warehouse_id:e__namespace.string().nullish().describe("Warehouse this movement affects (source warehouse for `transfer`). Omitted resolves to the business unit's default warehouse (if configured) or the entity's default warehouse, created on demand."),destination_warehouse_id:e__namespace.string().nullish().describe("Required for `transfer`: the warehouse quantity moves into. Must differ from `warehouse_id`."),note:e__namespace.string().max(SWO).nullish().describe("Optional free-text note about this movement.")}),fWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,zWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,GFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",fWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_."),movementId:e__namespace.stringFormat("resource-id",zWO).describe("Inventory movement identifier.")}),VFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),IWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,KFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",IWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ZFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),qFb=e__namespace.object({components:e__namespace.array(e__namespace.object({item_id:e__namespace.string(),quantity:e__namespace.number().describe("Quantity of this component per one unit of the item."),name:e__namespace.string().describe("Name of the component item."),sku:e__namespace.string().nullable().describe("SKU of the component item, when it has one."),track_inventory:e__namespace.boolean().describe("Whether the component item tracks inventory. Only tracked components move stock.")})).describe("Components of the item, in their saved order."),used_in:e__namespace.array(e__namespace.object({item_id:e__namespace.string(),name:e__namespace.string().describe("Name of the item that lists this item as a component."),sku:e__namespace.string().nullable(),quantity:e__namespace.number().describe("Quantity of this item per one unit of that item.")})).describe("Items (not deleted) that list this item as one of their components.")}),BWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,WFb=e__namespace.object({id:e__namespace.stringFormat("resource-id",BWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),YFb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),$Fb=e__namespace.object({components:e__namespace.array(e__namespace.object({item_id:e__namespace.string().describe("Catalog item that moves together with the parent item."),quantity:e__namespace.number().describe("Quantity of this component per one unit of the parent item. Greater than 0, at most 1,000,000.")})).describe("The complete component list of the item; it replaces the existing list and its order is kept. Send an empty array to clear it. At most 20 components, no duplicates, none equal to the item itself.")}),QFb=e__namespace.object({components:e__namespace.array(e__namespace.object({item_id:e__namespace.string(),quantity:e__namespace.number().describe("Quantity of this component per one unit of the item."),name:e__namespace.string().describe("Name of the component item."),sku:e__namespace.string().nullable().describe("SKU of the component item, when it has one."),track_inventory:e__namespace.boolean().describe("Whether the component item tracks inventory. Only tracked components move stock.")})).describe("Components of the item, in their saved order."),used_in:e__namespace.array(e__namespace.object({item_id:e__namespace.string(),name:e__namespace.string().describe("Name of the item that lists this item as a component."),sku:e__namespace.string().nullable(),quantity:e__namespace.number().describe("Quantity of this item per one unit of that item.")})).describe("Items (not deleted) that list this item as one of their components.")});var Kt={};Q(Kt,{CreateMigrationJobBody:()=>a5b,CreateMigrationJobHeader:()=>i5b,GetLegacyMigrationOrganizationHeader:()=>s5b,GetLegacyMigrationOrganizationParams:()=>t5b,GetLegacyMigrationOrganizationQueryParams:()=>n5b,GetLegacyMigrationOrganizationResponse:()=>o5b,GetMigrationJobHeader:()=>c5b,GetMigrationJobParams:()=>d5b,GetMigrationJobResponse:()=>u5b,LegacyMigrationAuthBody:()=>XFb,LegacyMigrationAuthHeader:()=>JFb,LegacyMigrationAuthResponse:()=>e5b,ListMigrationJobsHeader:()=>r5b,ListMigrationJobsResponse:()=>l5b,createMigrationJobHeaderXAccountIdRegExp:()=>DWO,getLegacyMigrationOrganizationHeaderXAccountIdRegExp:()=>TWO,getMigrationJobHeaderXAccountIdRegExp:()=>_WO,legacyMigrationAuthHeaderXAccountIdRegExp:()=>EWO,listMigrationJobsHeaderXAccountIdRegExp:()=>RWO});var EWO=/^acc_[0-9a-fA-F]{24}$/,JFb=e__namespace.object({"x-account-id":e__namespace.string().regex(EWO).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),XFb=e__namespace.object({email:e__namespace.email().describe("Email for legacy Space Invoices account"),password:e__namespace.string().min(1).describe("Password for legacy Space Invoices account")}),e5b=e__namespace.object({organizations:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Legacy organization ID"),name:e__namespace.string().describe("Organization name"),country:e__namespace.string().nullable().describe("Country"),tax_number:e__namespace.string().nullable().describe("Tax number"),created_at:e__namespace.string().describe("Creation date"),already_migrated:e__namespace.boolean().describe("Whether this org has already been migrated"),migrated_environment:e__namespace.string().nullable().describe("Environment it was migrated to")})),legacy_session_id:e__namespace.string().describe("Temporary server-side legacy session identifier used for async file migration")}),t5b=e__namespace.object({legacyOrgId:e__namespace.string().describe("Legacy organization ID")}),n5b=e__namespace.object({legacy_session_id:e__namespace.string().min(1).describe("Temporary legacy session ID created after legacy authentication")}),TWO=/^acc_[0-9a-fA-F]{24}$/,s5b=e__namespace.object({"x-account-id":e__namespace.string().regex(TWO).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),o5b=e__namespace.object({id:e__namespace.string().describe("Legacy organization ID"),name:e__namespace.string().describe("Organization name"),country:e__namespace.string().nullable().describe("Country"),tax_number:e__namespace.string().nullable().describe("Tax number"),created_at:e__namespace.string().describe("Creation date"),already_migrated:e__namespace.boolean().describe("Whether this org has already been migrated"),migrated_environment:e__namespace.string().nullable().describe("Environment it was migrated to"),unsupported:e__namespace.array(e__namespace.object({code:e__namespace.enum(["fiscalization_series","accounting_categories","inventory_and_pricing","sales_integrations","webhooks"]).describe("Unsupported migration warning code"),label:e__namespace.string().describe("User-facing label for the unsupported data group"),description:e__namespace.string().describe("Explanation of what must be set up manually"),count:e__namespace.number().describe("Records still requiring manual follow-up after migration"),collections:e__namespace.array(e__namespace.string()).describe("Legacy collections covered by the warning group"),coverage:e__namespace.object({migratable_count:e__namespace.number().describe("Records that can be migrated automatically"),total_count:e__namespace.number().describe("Total relevant legacy records detected")}).optional().describe("Optional automatic migration coverage details for partially supported groups")})).describe("Unsupported legacy data groups that require confirmation before migration"),requires_confirmation:e__namespace.boolean().describe("Whether the user must confirm migration despite unsupported legacy data"),subscription_review:e__namespace.object({legacy_subscription:e__namespace.object({gateway:e__namespace.enum(["braintree","bank","paypal","unknown"]),tier:e__namespace.number(),plan_name:e__namespace.string(),duration_months:e__namespace.number(),additions:e__namespace.array(e__namespace.string()),active_until:e__namespace.string().nullable(),price_cents:e__namespace.number().nullable()}).nullable(),recommended_plan:e__namespace.object({slug:e__namespace.string(),name:e__namespace.string(),billing_interval:e__namespace.enum(["monthly","yearly"]),price_cents:e__namespace.number(),base_price_cents:e__namespace.number(),extra_store_count:e__namespace.number(),extra_store_price_cents:e__namespace.number(),reasons:e__namespace.array(e__namespace.string())}).nullable(),trial_offer:e__namespace.object({eligible:e__namespace.boolean(),trial_days:e__namespace.number()}),price_difference_cents:e__namespace.number().nullable(),renewal_payment_provider:e__namespace.union([e__namespace.literal("braintree"),e__namespace.literal("bank"),e__namespace.literal("paypal"),e__namespace.literal("unknown"),e__namespace.literal(null)]).nullable(),requires_payment_method_update:e__namespace.boolean(),usage_signals:e__namespace.object({member_count:e__namespace.number(),recurring_count:e__namespace.number(),sales_integrations_count:e__namespace.number(),billable_store_count:e__namespace.number(),business_units_count:e__namespace.number(),financial_categories_count:e__namespace.number(),has_furs:e__namespace.boolean()})}).nullable().describe("Legacy subscription snapshot and recommended Apollo white-label plan for this organization")}),DWO=/^acc_[0-9a-fA-F]{24}$/,i5b=e__namespace.object({"x-account-id":e__namespace.string().regex(DWO).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),a5b=e__namespace.object({legacy_org_id:e__namespace.string().min(1).describe("Legacy organization ID to migrate"),legacy_session_id:e__namespace.string().min(1).describe("Temporary legacy session ID created after legacy authentication"),environment:e__namespace.enum(["live","sandbox"]).describe("Target environment"),confirm_unsupported_data:e__namespace.boolean().optional().describe("Explicit user confirmation that unsupported legacy data will need manual setup")}),RWO=/^acc_[0-9a-fA-F]{24}$/,r5b=e__namespace.object({"x-account-id":e__namespace.string().regex(RWO).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),l5b=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().describe("Job ID"),legacy_org_id:e__namespace.string().describe("Legacy organization ID"),environment:e__namespace.string().describe("Target environment"),entity_id:e__namespace.string().nullable().describe("Created entity ID (on completion)"),status:e__namespace.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e__namespace.string().nullable().describe("Current step label"),step_number:e__namespace.number().describe("Current step number"),total_steps:e__namespace.number().describe("Total number of steps"),progress_detail:e__namespace.string().nullable().describe("Progress detail"),error:e__namespace.string().nullable().describe("User-friendly error message"),created_at:e__namespace.string().describe("Job creation date"),started_at:e__namespace.string().nullable().describe("Job start date"),completed_at:e__namespace.string().nullable().describe("Job completion date")}))}),d5b=e__namespace.object({id:e__namespace.string().describe("Migration job ID")}),_WO=/^acc_[0-9a-fA-F]{24}$/,c5b=e__namespace.object({"x-account-id":e__namespace.string().regex(_WO).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),u5b=e__namespace.object({id:e__namespace.string().describe("Job ID"),legacy_org_id:e__namespace.string().describe("Legacy organization ID"),environment:e__namespace.string().describe("Target environment"),entity_id:e__namespace.string().nullable().describe("Created entity ID (on completion)"),status:e__namespace.enum(["pending","processing","completed","failed"]).describe("Migration job status"),step:e__namespace.string().nullable().describe("Current step label"),step_number:e__namespace.number().describe("Current step number"),total_steps:e__namespace.number().describe("Total number of steps"),progress_detail:e__namespace.string().nullable().describe("Progress detail"),error:e__namespace.string().nullable().describe("User-friendly error message"),created_at:e__namespace.string().describe("Job creation date"),started_at:e__namespace.string().nullable().describe("Job start date"),completed_at:e__namespace.string().nullable().describe("Job completion date")});var Zt={};Q(Zt,{AuthorizeMagentoBody:()=>h5b,AuthorizeMagentoHeader:()=>v5b,AuthorizeMagentoResponse:()=>b5b,AuthorizeShopifyBody:()=>m5b,AuthorizeShopifyHeader:()=>p5b,AuthorizeShopifyResponse:()=>x5b,AuthorizeWooCommerceBody:()=>y5b,AuthorizeWooCommerceHeader:()=>g5b,AuthorizeWooCommerceResponse:()=>O5b,ConnectCustomStoreBody:()=>F5b,ConnectCustomStoreHeader:()=>A5b,CreateOrderIntegrationBody:()=>q5b,CreateOrderIntegrationHeader:()=>Z5b,DeleteOrderIntegrationHeader:()=>ikb,DeleteOrderIntegrationParams:()=>okb,GetMagentoAuthorizationHeader:()=>f5b,GetMagentoAuthorizationParams:()=>S5b,GetMagentoAuthorizationResponse:()=>z5b,GetOrderIntegrationByIdHeader:()=>J5b,GetOrderIntegrationByIdParams:()=>Q5b,GetOrderIntegrationByIdResponse:()=>X5b,GetOrderIntegrationsHeader:()=>Y5b,GetOrderIntegrationsQueryParams:()=>W5b,GetOrderIntegrationsResponse:()=>$5b,PromoteShopifyBillingHeader:()=>T5b,PromoteShopifyBillingParams:()=>E5b,PromoteShopifyBillingResponse:()=>D5b,PushCustomStoreOrderBody:()=>V5b,PushCustomStoreOrderHeader:()=>G5b,PushCustomStoreOrderParams:()=>L5b,PushCustomStoreOrderResponse:()=>K5b,ResumeShopifyInstallBody:()=>I5b,ResumeShopifyInstallResponse:()=>B5b,RotateCustomStoreSecretHeader:()=>j5b,RotateCustomStoreSecretParams:()=>k5b,RotateCustomStoreSecretResponse:()=>H5b,SyncOrderIntegrationBody:()=>C5b,SyncOrderIntegrationHeader:()=>P5b,SyncOrderIntegrationParams:()=>U5b,SyncOrderIntegrationResponse:()=>w5b,SyncShopifyOrdersBody:()=>N5b,SyncShopifyOrdersHeader:()=>_5b,SyncShopifyOrdersParams:()=>R5b,SyncShopifyOrdersResponse:()=>M5b,UpdateOrderIntegrationBody:()=>nkb,UpdateOrderIntegrationHeader:()=>tkb,UpdateOrderIntegrationParams:()=>ekb,UpdateOrderIntegrationResponse:()=>skb,authorizeMagentoBodyAutoProcessDelaySecondsMin:()=>FWO,authorizeMagentoBodyBusinessUnitIdMax:()=>kWO,authorizeMagentoBodyReconnectIntegrationIdMax:()=>HWO,authorizeMagentoBodyStoreUrlMax:()=>jWO,authorizeShopifyBodyAutoProcessDelaySecondsMin:()=>MWO,authorizeShopifyBodyBusinessUnitIdMax:()=>UWO,authorizeShopifyBodyPendingInstallTokenMax:()=>NWO,authorizeWooCommerceBodyAutoProcessDelaySecondsMin:()=>PWO,authorizeWooCommerceBodyBusinessUnitIdMax:()=>CWO,authorizeWooCommerceBodyReconnectIntegrationIdMax:()=>AWO,authorizeWooCommerceBodyStoreUrlMax:()=>wWO,connectCustomStoreBodyAutoProcessDelaySecondsMin:()=>JWO,connectCustomStoreBodyBusinessUnitIdMax:()=>XWO,connectCustomStoreBodyNameMax:()=>QWO,connectCustomStoreBodyStoreUrlMax:()=>e6O,createOrderIntegrationBodyBusinessPremiseIdMax:()=>W6O,createOrderIntegrationBodyBusinessUnitIdMax:()=>q6O,createOrderIntegrationBodyElectronicDeviceIdMax:()=>Y6O,createOrderIntegrationBodyInventorySyncWarehouseIdMax:()=>K6O,createOrderIntegrationBodyLocaleMax:()=>Z6O,createOrderIntegrationBodySourceDefault:()=>V6O,deleteOrderIntegrationPathIdRegExp:()=>W7O,getMagentoAuthorizationPathIdRegExp:()=>LWO,getOrderIntegrationByIdPathIdRegExp:()=>p7O,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMax:()=>f7O,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMin:()=>S7O,getOrderIntegrationByIdResponseOneBusinessPremiseIdMax:()=>B7O,getOrderIntegrationByIdResponseOneBusinessUnitIdMax:()=>I7O,getOrderIntegrationByIdResponseOneDefaultPaymentTypeMax:()=>h7O,getOrderIntegrationByIdResponseOneDocumentCurrencyDefault:()=>b7O,getOrderIntegrationByIdResponseOneElectronicDeviceIdMax:()=>E7O,getOrderIntegrationByIdResponseOneEntityIdMax:()=>x7O,getOrderIntegrationByIdResponseOneIdMax:()=>m7O,getOrderIntegrationByIdResponseOneLocaleMax:()=>z7O,getOrderIntegrationByIdResponseOneNameMax:()=>g7O,getOrderIntegrationByIdResponseOneScopesMax:()=>O7O,getOrderIntegrationByIdResponseOneShopDomainMax:()=>y7O,getOrderIntegrationByIdResponseOneStoreUrlMax:()=>v7O,getOrderIntegrationsQueryLimitDefault:()=>$6O,getOrderIntegrationsQueryLimitMax:()=>Q6O,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMax:()=>r7O,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMin:()=>a7O,getOrderIntegrationsResponseDataItemOneBusinessPremiseIdMax:()=>c7O,getOrderIntegrationsResponseDataItemOneBusinessUnitIdMax:()=>d7O,getOrderIntegrationsResponseDataItemOneDefaultPaymentTypeMax:()=>o7O,getOrderIntegrationsResponseDataItemOneDocumentCurrencyDefault:()=>i7O,getOrderIntegrationsResponseDataItemOneElectronicDeviceIdMax:()=>u7O,getOrderIntegrationsResponseDataItemOneEntityIdMax:()=>X6O,getOrderIntegrationsResponseDataItemOneIdMax:()=>J6O,getOrderIntegrationsResponseDataItemOneLocaleMax:()=>l7O,getOrderIntegrationsResponseDataItemOneNameMax:()=>e7O,getOrderIntegrationsResponseDataItemOneScopesMax:()=>n7O,getOrderIntegrationsResponseDataItemOneShopDomainMax:()=>t7O,getOrderIntegrationsResponseDataItemOneStoreUrlMax:()=>s7O,promoteShopifyBillingPathIdRegExp:()=>GWO,pushCustomStoreOrderBodyBillingAddressAddress2Max:()=>O6O,pushCustomStoreOrderBodyBillingAddressAddressMax:()=>y6O,pushCustomStoreOrderBodyBillingAddressCityMax:()=>v6O,pushCustomStoreOrderBodyBillingAddressCountryCodeMax:()=>z6O,pushCustomStoreOrderBodyBillingAddressCountryCodeMin:()=>f6O,pushCustomStoreOrderBodyBillingAddressCountryMax:()=>S6O,pushCustomStoreOrderBodyBillingAddressPostCodeMax:()=>b6O,pushCustomStoreOrderBodyBillingAddressStateMax:()=>h6O,pushCustomStoreOrderBodyCurrencyCodeRegExp:()=>a6O,pushCustomStoreOrderBodyCustomerCompanyNameMax:()=>p6O,pushCustomStoreOrderBodyCustomerCompanyNumberMax:()=>x6O,pushCustomStoreOrderBodyCustomerEmailMax:()=>c6O,pushCustomStoreOrderBodyCustomerNameMax:()=>d6O,pushCustomStoreOrderBodyCustomerNotesMax:()=>g6O,pushCustomStoreOrderBodyCustomerPhoneMax:()=>u6O,pushCustomStoreOrderBodyCustomerTaxNumberMax:()=>m6O,pushCustomStoreOrderBodyEventIdMax:()=>i6O,pushCustomStoreOrderBodyIdMax:()=>s6O,pushCustomStoreOrderBodyItemsItemDiscountMin:()=>A6O,pushCustomStoreOrderBodyItemsItemIdMax:()=>M6O,pushCustomStoreOrderBodyItemsItemNameMax:()=>U6O,pushCustomStoreOrderBodyItemsItemQuantityExclusiveMin:()=>C6O,pushCustomStoreOrderBodyItemsItemSkuMax:()=>P6O,pushCustomStoreOrderBodyItemsItemTaxRateMax:()=>k6O,pushCustomStoreOrderBodyItemsItemTaxRateMin:()=>F6O,pushCustomStoreOrderBodyItemsItemUnitMax:()=>j6O,pushCustomStoreOrderBodyItemsItemUnitPriceMin:()=>w6O,pushCustomStoreOrderBodyItemsMax:()=>H6O,pushCustomStoreOrderBodyLocaleMax:()=>l6O,pushCustomStoreOrderBodyOrderNumberMax:()=>o6O,pushCustomStoreOrderBodyPaymentMethodMax:()=>L6O,pushCustomStoreOrderBodyPaymentReferenceMax:()=>G6O,pushCustomStoreOrderBodyShippingAddressAddress2Max:()=>B6O,pushCustomStoreOrderBodyShippingAddressAddressMax:()=>I6O,pushCustomStoreOrderBodyShippingAddressCityMax:()=>E6O,pushCustomStoreOrderBodyShippingAddressCountryCodeMax:()=>N6O,pushCustomStoreOrderBodyShippingAddressCountryCodeMin:()=>_6O,pushCustomStoreOrderBodyShippingAddressCountryMax:()=>R6O,pushCustomStoreOrderBodyShippingAddressPostCodeMax:()=>D6O,pushCustomStoreOrderBodyShippingAddressStateMax:()=>T6O,pushCustomStoreOrderBodyTotalWithTaxMin:()=>r6O,pushCustomStoreOrderPathIdRegExp:()=>n6O,rotateCustomStoreSecretPathIdRegExp:()=>t6O,syncOrderIntegrationBodyCursorMax:()=>YWO,syncOrderIntegrationBodyDefault:()=>WWO,syncOrderIntegrationBodyLimitMax:()=>$WO,syncOrderIntegrationPathIdRegExp:()=>qWO,syncShopifyOrdersBodyCursorMax:()=>KWO,syncShopifyOrdersBodyLimitMax:()=>ZWO,syncShopifyOrdersPathIdRegExp:()=>VWO,updateOrderIntegrationBodyAutoProcessDelaySecondsMin:()=>U7O,updateOrderIntegrationBodyBusinessPremiseIdMax:()=>N7O,updateOrderIntegrationBodyBusinessUnitIdMax:()=>_7O,updateOrderIntegrationBodyElectronicDeviceIdMax:()=>M7O,updateOrderIntegrationBodyInventorySyncWarehouseIdMax:()=>D7O,updateOrderIntegrationBodyLocaleMax:()=>R7O,updateOrderIntegrationPathIdRegExp:()=>T7O,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMax:()=>G7O,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMin:()=>L7O,updateOrderIntegrationResponseOneBusinessPremiseIdMax:()=>Z7O,updateOrderIntegrationResponseOneBusinessUnitIdMax:()=>K7O,updateOrderIntegrationResponseOneDefaultPaymentTypeMax:()=>j7O,updateOrderIntegrationResponseOneDocumentCurrencyDefault:()=>H7O,updateOrderIntegrationResponseOneElectronicDeviceIdMax:()=>q7O,updateOrderIntegrationResponseOneEntityIdMax:()=>C7O,updateOrderIntegrationResponseOneIdMax:()=>P7O,updateOrderIntegrationResponseOneLocaleMax:()=>V7O,updateOrderIntegrationResponseOneNameMax:()=>w7O,updateOrderIntegrationResponseOneScopesMax:()=>F7O,updateOrderIntegrationResponseOneShopDomainMax:()=>A7O,updateOrderIntegrationResponseOneStoreUrlMax:()=>k7O});var p5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),NWO=80,MWO=0,UWO=36,m5b=e__namespace.object({shop_domain:e__namespace.string().min(1).describe("Shopify shop domain, e.g. myshop.myshopify.com"),name:e__namespace.string().optional().describe("Integration name"),app_store_install:e__namespace.boolean().nullish().describe("Deprecated client hint; verified App Store launches require app_store_launch."),app_store_launch:e__namespace.object({shop:e__namespace.string().min(1),host:e__namespace.string().min(1),hmac:e__namespace.string().min(1),timestamp:e__namespace.string().min(1)}).nullish().describe("Original signed Shopify App Store launch parameters."),pending_install_token:e__namespace.string().min(1).max(NWO).nullish().describe("Opaque continuation token returned after Shopify OAuth. Used to bind an authenticated App Store install to an Apollo entity."),auto_process:e__namespace.boolean().optional().describe("Auto-create invoices on order receipt"),auto_process_on:e__namespace.union([e__namespace.literal("created"),e__namespace.literal("paid"),e__namespace.literal("fulfilled"),e__namespace.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e__namespace.boolean().optional().describe("Auto-send invoice email"),issue_invoice_for_bank:e__namespace.boolean().optional().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e__namespace.boolean().optional().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e__namespace.number().min(MWO).optional().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e__namespace.string().max(UWO).nullish().describe("Business unit to use for auto-created documents.")}),x5b=e__namespace.object({redirect_url:e__namespace.url()}),g5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PWO=0,CWO=36,wWO=2048,AWO=36,y5b=e__namespace.object({name:e__namespace.string().nullish().describe("Integration name"),auto_process:e__namespace.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e__namespace.union([e__namespace.literal("created"),e__namespace.literal("paid"),e__namespace.literal("fulfilled"),e__namespace.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e__namespace.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e__namespace.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e__namespace.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e__namespace.number().min(PWO).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e__namespace.string().max(CWO).nullish().describe("Business unit to use for auto-created documents."),store_url:e__namespace.url().max(wWO).describe("WooCommerce store URL, including a WordPress subdirectory when applicable."),reconnect_integration_id:e__namespace.string().max(AWO).nullish().describe("Migrated WooCommerce integration to reconnect in place. Omit when connecting a new store.")}),O5b=e__namespace.object({redirect_url:e__namespace.url()}),v5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),FWO=0,kWO=36,jWO=2048,HWO=36,h5b=e__namespace.object({name:e__namespace.string().nullish().describe("Integration name"),auto_process:e__namespace.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e__namespace.union([e__namespace.literal("created"),e__namespace.literal("paid"),e__namespace.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing. The fulfilled trigger isn't available for Magento stores."),send_invoice_email:e__namespace.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e__namespace.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e__namespace.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e__namespace.number().min(FWO).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e__namespace.string().max(kWO).nullish().describe("Business unit to use for auto-created documents."),store_url:e__namespace.url().max(jWO).describe("Magento store base URL, including a path prefix when the store is served from a subdirectory."),reconnect_integration_id:e__namespace.string().max(HWO).nullish().describe("Existing Magento integration to reconnect in place with fresh credentials. Omit when connecting a new store.")}),b5b=e__namespace.object({authorization_id:e__namespace.string().describe("Authorization identifier; poll GET /order-integrations/magento/authorizations/{id}"),endpoint_url:e__namespace.url().describe("Endpoint URL to paste into the Magento integration form. Treat it as a secret."),identity_link_url:e__namespace.url().describe("Identity link URL to paste into the Magento integration form. Treat it as a secret."),expires_at:e__namespace.iso.datetime({}).describe("When this authorization stops working")}),LWO=/^oipa_[0-9a-f]{24}$/,S5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",LWO).describe("Magento authorization identifier returned by the authorize endpoint")}),f5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),z5b=e__namespace.object({id:e__namespace.string(),status:e__namespace.enum(["awaiting_credentials","awaiting_activation","connected","failed","expired"]).describe("awaiting_credentials: Magento has not posted its credentials yet. awaiting_activation: credentials received, waiting for the activation popup. connected: done. failed: see failure_reason. expired: start a new connection."),integration_id:e__namespace.string().nullable().describe("Set once the status is connected"),failure_reason:e__namespace.union([e__namespace.literal("missing_permissions"),e__namespace.literal("unauthorized"),e__namespace.literal("unreachable"),e__namespace.literal("token_exchange_failed"),e__namespace.literal(null)]).nullable().describe("Why the last activation attempt failed, when known"),expires_at:e__namespace.iso.datetime({})}),I5b=e__namespace.object({shop:e__namespace.string().min(1)}),B5b=e__namespace.object({redirect_url:e__namespace.url(),entity_id:e__namespace.string(),frontend_origin:e__namespace.url().nullish()}),GWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,E5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",GWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),T5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),D5b=e__namespace.object({redirect_url:e__namespace.url()}),VWO=/^[a-z]{3,4}_[0-9a-f]{24}$/,R5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",VWO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),_5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),KWO=2048,ZWO=250,N5b=e__namespace.object({updated_since:e__namespace.iso.datetime({}).optional().describe("Inclusive Shopify update window start."),updated_until:e__namespace.iso.datetime({}).optional().describe("Inclusive Shopify update window end."),cursor:e__namespace.string().min(1).max(KWO).optional().describe("Opaque cursor returned by an incomplete prior sync to resume its exact window."),resumable:e__namespace.boolean().optional().describe("Opt into bounded, resumable processing. Omit for legacy one-request completion; cursor requests are always bounded."),limit:e__namespace.number().min(1).max(ZWO).optional().describe("Shopify page size. The server also enforces total-order and page-count caps.")}),M5b=e__namespace.object({imported:e__namespace.number(),updated:e__namespace.number(),queued_for_processing:e__namespace.number(),total_seen:e__namespace.number(),window_start:e__namespace.iso.datetime({}),window_end:e__namespace.iso.datetime({}).optional(),complete:e__namespace.boolean().optional(),truncated:e__namespace.boolean().optional(),pages_fetched:e__namespace.number().optional(),completion_state:e__namespace.enum(["complete","resumable"]).optional(),next_cursor:e__namespace.string().optional()}),qWO=/^oint_[0-9a-f]{24}$/,U5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",qWO).describe("Unique order integration identifier")}),P5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),WWO={},YWO=2048,$WO=100,C5b=e__namespace.object({updated_since:e__namespace.iso.datetime({}).nullish(),updated_until:e__namespace.iso.datetime({}).nullish(),cursor:e__namespace.string().min(1).max(YWO).nullish(),limit:e__namespace.number().min(1).max($WO).nullish()}).default(WWO),w5b=e__namespace.object({imported:e__namespace.number(),updated:e__namespace.number(),queued_for_processing:e__namespace.number(),total_seen:e__namespace.number(),window_start:e__namespace.iso.datetime({}),window_end:e__namespace.iso.datetime({}).optional(),complete:e__namespace.boolean(),truncated:e__namespace.boolean(),pages_fetched:e__namespace.number(),completion_state:e__namespace.enum(["complete","resumable"]),next_cursor:e__namespace.string().optional()}),A5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),QWO=255,JWO=0,XWO=36,e6O=2048,F5b=e__namespace.object({name:e__namespace.string().min(1).max(QWO).describe("Integration name"),auto_process:e__namespace.boolean().nullish().describe("Auto-create invoices on order receipt"),auto_process_on:e__namespace.union([e__namespace.literal("created"),e__namespace.literal("paid"),e__namespace.literal("fulfilled"),e__namespace.literal(null)]).nullish().describe("Order lifecycle event that triggers automatic processing"),send_invoice_email:e__namespace.boolean().nullish().describe("Auto-send invoice email"),issue_invoice_for_bank:e__namespace.boolean().nullish().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:e__namespace.boolean().nullish().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:e__namespace.number().min(JWO).nullish().describe("Seconds to wait before processing (0 = immediate)"),business_unit_id:e__namespace.string().max(XWO).nullish().describe("Business unit to use for auto-created documents."),store_url:e__namespace.url().max(e6O).nullish().describe("Public URL of the store, shown for reference. One active connection per URL.")}),t6O=/^oint_[0-9a-f]{24}$/,k5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",t6O).describe("Unique order integration identifier")}),j5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),H5b=e__namespace.object({webhook_url:e__namespace.url().describe("Endpoint your store posts signed order webhooks to"),signing_secret:e__namespace.string().describe("HMAC-SHA256 signing secret. Shown only in this response; store it securely.")}),n6O=/^oint_[0-9a-f]{24}$/,L5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",n6O).describe("Unique order integration identifier")}),G5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),s6O=255,o6O=100,i6O=255,a6O=/^[A-Z]{3}$/,r6O=0,l6O=20,d6O=255,c6O=255,u6O=50,p6O=255,m6O=50,x6O=50,g6O=2e3,y6O=500,O6O=500,v6O=255,h6O=255,b6O=50,S6O=255,f6O=2,z6O=2,I6O=500,B6O=500,E6O=255,T6O=255,D6O=50,R6O=255,_6O=2,N6O=2,M6O=255,U6O=500,P6O=255,C6O=0,w6O=0,A6O=0,F6O=0,k6O=100,j6O=50,H6O=500,L6O=100,G6O=255,V5b=e__namespace.object({id:e__namespace.string().min(1).max(s6O).describe("Your store's unique order ID. Repeated pushes update the same order."),order_number:e__namespace.string().max(o6O).nullish().describe("Order number shown to buyers"),event_id:e__namespace.string().max(i6O).nullish().describe("Stable ID of this logical event (e.g. `1042:paid`), kept the same across retries. Every applied event ID is remembered per order, so any repeated ID is acknowledged without effects. Takes precedence over the X-SI-Event-Id header."),currency_code:e__namespace.string().regex(a6O),prices_include_tax:e__namespace.boolean().nullish().describe("Whether `unit_price` and `discount` include tax. Defaults to false."),total_with_tax:e__namespace.number().min(r6O).describe("Order total the buyer pays. Lines must reconcile to it within rounding: 0.02, or half a cent per line for larger orders."),ordered_at:e__namespace.iso.datetime({}).nullish(),locale:e__namespace.string().max(l6O).nullish().describe("Buyer or checkout language, used for the document language"),customer:e__namespace.object({name:e__namespace.string().max(d6O).nullish(),email:e__namespace.email().max(c6O).nullish(),phone:e__namespace.string().max(u6O).nullish(),company_name:e__namespace.string().max(p6O).nullish(),tax_number:e__namespace.string().max(m6O).nullish().describe("Buyer VAT or tax number, kept as text"),company_number:e__namespace.string().max(x6O).nullish(),is_business:e__namespace.boolean().nullish(),notes:e__namespace.string().max(g6O).nullish()}).nullish(),billing_address:e__namespace.object({address:e__namespace.string().max(y6O).nullish(),address_2:e__namespace.string().max(O6O).nullish(),city:e__namespace.string().max(v6O).nullish(),state:e__namespace.string().max(h6O).nullish(),post_code:e__namespace.string().max(b6O).nullish(),country:e__namespace.string().max(S6O).nullish(),country_code:e__namespace.string().min(f6O).max(z6O).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),shipping_address:e__namespace.object({address:e__namespace.string().max(I6O).nullish(),address_2:e__namespace.string().max(B6O).nullish(),city:e__namespace.string().max(E6O).nullish(),state:e__namespace.string().max(T6O).nullish(),post_code:e__namespace.string().max(D6O).nullish(),country:e__namespace.string().max(R6O).nullish(),country_code:e__namespace.string().min(_6O).max(N6O).nullish().describe("ISO 3166-1 alpha-2 country code")}).nullish(),items:e__namespace.array(e__namespace.object({id:e__namespace.string().max(M6O).nullish().describe("Your line identifier"),kind:e__namespace.union([e__namespace.literal("line_item"),e__namespace.literal("shipping"),e__namespace.literal("fee"),e__namespace.literal(null)]).nullish().describe("Line type. Defaults to `line_item`."),name:e__namespace.string().min(1).max(U6O),sku:e__namespace.string().max(P6O).nullish().describe("Links product lines to the catalog item with this SKU"),quantity:e__namespace.number().gt(C6O),unit_price:e__namespace.number().min(w6O).describe("Price per unit. Gross when `prices_include_tax` is true, net otherwise."),discount:e__namespace.number().min(A6O).nullish().describe("Discount amount for the whole line, on the same tax basis as `unit_price`."),tax_rate:e__namespace.number().min(F6O).max(k6O).nullish().describe("Tax percentage. Send 0 for an explicit zero rate; omit when the line has no tax."),unit:e__namespace.string().max(j6O).nullish()})).min(1).max(H6O),payment_method:e__namespace.string().max(L6O).nullish().describe("How the buyer pays: `card`, `paypal`, `bank_transfer`, `cash` (cash on delivery) or `coupon`. Common spellings such as `Bank transfer`, `cod` or `cash_on_delivery` are recognized; other values count as online payments."),payment_reference:e__namespace.string().max(G6O).nullish().describe("Payment provider transaction reference"),paid:e__namespace.boolean().nullish().describe("Whether the order is fully paid. Defaults to false."),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean().nullish().describe("Whether the order is shipped/completed."),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean().nullish().describe("Cancelled orders never create new documents."),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean().nullish().describe("Fully refunded. An issued invoice is voided with a credit note."),refunded_at:e__namespace.iso.datetime({}).nullish()}).describe("Full current snapshot of a custom store order. Send the complete order on every push; omitted lifecycle flags mean false."),K5b=e__namespace.object({order_id:e__namespace.string().nullable().describe("Order ID, or null when the push was ignored for an unknown order"),action:e__namespace.enum(["created","updated","ignored"]).describe("`ignored` means the push changed nothing, e.g. a repeated event_id"),processing_queued:e__namespace.boolean().describe("Whether document processing was started")}),Z5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),V6O="manual",K6O=36,Z6O=10,q6O=36,W6O=36,Y6O=36,q5b=e__namespace.object({name:e__namespace.string().min(1),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).default(V6O),auto_process:e__namespace.boolean().optional(),auto_reissue_on_update:e__namespace.boolean().optional(),classify_imported_items_as_products:e__namespace.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Null is equivalent to false."),buyer_language_item_names:e__namespace.boolean().nullish().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting. Null is equivalent to false."),sync_inventory:e__namespace.boolean().nullish().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false. Null is equivalent to false."),inventory_sync_warehouse_id:e__namespace.string().min(1).max(K6O).nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(Z6O).nullish(),business_unit_id:e__namespace.string().max(q6O).nullish(),business_premise_id:e__namespace.string().max(W6O).nullish(),electronic_device_id:e__namespace.string().max(Y6O).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),$6O=10,Q6O=100,W5b=e__namespace.object({limit:e__namespace.number().min(1).max(Q6O).default($6O).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e__namespace.union([e__namespace.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]),e__namespace.array(e__namespace.enum(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e__namespace.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, name, source, is_active, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e__namespace.string().optional().describe(`Full-text search query to filter results across multiple fields.
119
119
  Searches are case-insensitive and match partial strings.
120
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Y5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J6O=36,X6O=36,e7O=255,t7O=255,n7O=1e3,s7O=2048,o7O=20,i7O="checkout",a7O=-2147483648,r7O=2147483647,l7O=10,d7O=36,c7O=36,u7O=36,$5b=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(J6O),entity_id:e__namespace.string().max(X6O),name:e__namespace.string().max(e7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(t7O).nullish(),scopes:e__namespace.string().max(n7O).nullish(),store_url:e__namespace.string().max(s7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(o7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(i7O).describe("Currency for documents created from Shopify orders. `checkout` (default) uses the currency the buyer paid in (Shopify presentment currency); `store` uses the shop's base currency. When the buyer pays in the shop's currency, both give the same result. Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. If the checkout currency has no ECB reference rate, the shop currency is used."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(a7O).max(r7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(l7O).nullish(),business_unit_id:e__namespace.string().max(d7O).nullish(),business_premise_id:e__namespace.string().max(c7O).nullish(),electronic_device_id:e__namespace.string().max(u7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),p7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,Q5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",p7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),J5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),m7O=36,x7O=36,g7O=255,y7O=255,O7O=1e3,v7O=2048,h7O=20,b7O="checkout",S7O=-2147483648,f7O=2147483647,z7O=10,I7O=36,B7O=36,E7O=36,X5b=e__namespace.object({id:e__namespace.string().max(m7O),entity_id:e__namespace.string().max(x7O),name:e__namespace.string().max(g7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(y7O).nullish(),scopes:e__namespace.string().max(O7O).nullish(),store_url:e__namespace.string().max(v7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(h7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(b7O).describe("Currency for documents created from Shopify orders. `checkout` (default) uses the currency the buyer paid in (Shopify presentment currency); `store` uses the shop's base currency. When the buyer pays in the shop's currency, both give the same result. Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. If the checkout currency has no ECB reference rate, the shop currency is used."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(S7O).max(f7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(z7O).nullish(),business_unit_id:e__namespace.string().max(I7O).nullish(),business_premise_id:e__namespace.string().max(B7O).nullish(),electronic_device_id:e__namespace.string().max(E7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration"),T7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,ekb=e__namespace.object({id:e__namespace.stringFormat("resource-id",T7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),D7O=36,R7O=10,_7O=36,N7O=36,M7O=36,U7O=0,nkb=e__namespace.object({name:e__namespace.string().min(1).optional(),auto_process:e__namespace.boolean().optional(),auto_reissue_on_update:e__namespace.boolean().optional(),classify_imported_items_as_products:e__namespace.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Set null or false to disable."),buyer_language_item_names:e__namespace.boolean().nullish().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting. Set null or false to disable."),sync_inventory:e__namespace.boolean().nullish().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false. Set null or false to disable; omit to leave unchanged."),inventory_sync_warehouse_id:e__namespace.string().min(1).max(D7O).nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity. Set null to push the total across all warehouses; omit to leave unchanged."),locale:e__namespace.string().max(R7O).nullish(),business_unit_id:e__namespace.string().max(_7O).nullish(),business_premise_id:e__namespace.string().max(N7O).nullish(),electronic_device_id:e__namespace.string().max(M7O).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),is_active:e__namespace.boolean().optional(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).optional().describe("Order lifecycle event that triggers automatic processing. `fulfilled` is only supported for custom store integrations; Magento integrations reject it with 400."),default_payment_type:e__namespace.string().optional(),send_invoice_email:e__namespace.boolean().optional(),send_estimate_email:e__namespace.boolean().optional(),attach_pdf_to_email:e__namespace.boolean().optional(),issue_invoice_for_bank:e__namespace.boolean().optional(),issue_invoice_on_complete:e__namespace.boolean().optional(),auto_process_delay_seconds:e__namespace.number().min(U7O).optional(),document_currency:e__namespace.union([e__namespace.literal("store"),e__namespace.literal("checkout"),e__namespace.literal(null)]).nullish().describe("Currency for documents created from Shopify orders. `checkout` (default) uses the currency the buyer paid in (Shopify presentment currency); `store` uses the shop's base currency. When the buyer pays in the shop's currency, both give the same result. Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. If the checkout currency has no ECB reference rate, the shop currency is used. Null leaves the setting unchanged.")}),P7O=36,C7O=36,w7O=255,A7O=255,F7O=1e3,k7O=2048,j7O=20,H7O="checkout",L7O=-2147483648,G7O=2147483647,V7O=10,K7O=36,Z7O=36,q7O=36,skb=e__namespace.object({id:e__namespace.string().max(P7O),entity_id:e__namespace.string().max(C7O),name:e__namespace.string().max(w7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(A7O).nullish(),scopes:e__namespace.string().max(F7O).nullish(),store_url:e__namespace.string().max(k7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(j7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(H7O).describe("Currency for documents created from Shopify orders. `checkout` (default) uses the currency the buyer paid in (Shopify presentment currency); `store` uses the shop's base currency. When the buyer pays in the shop's currency, both give the same result. Applies to orders received after the change; orders keep the currency of their first ingestion. Other providers ignore this setting. If the checkout currency has no ECB reference rate, the shop currency is used."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(L7O).max(G7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(V7O).nullish(),business_unit_id:e__namespace.string().max(K7O).nullish(),business_premise_id:e__namespace.string().max(Z7O).nullish(),electronic_device_id:e__namespace.string().max(q7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration"),W7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,okb=e__namespace.object({id:e__namespace.stringFormat("resource-id",W7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ikb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var qt={};Q(qt,{CancelOrderHeader:()=>Ikb,CancelOrderParams:()=>zkb,CancelOrderResponse:()=>Bkb,CreateOrderBody:()=>rkb,CreateOrderHeader:()=>akb,DeleteOrderHeader:()=>hkb,DeleteOrderParams:()=>vkb,DownloadOrdersPdfExportHeader:()=>Ckb,DownloadOrdersPdfExportParams:()=>Pkb,GetOrderByIdHeader:()=>pkb,GetOrderByIdParams:()=>ukb,GetOrderByIdResponse:()=>mkb,GetOrdersHeader:()=>dkb,GetOrdersPdfExportJobHeader:()=>Mkb,GetOrdersPdfExportJobParams:()=>Nkb,GetOrdersPdfExportJobResponse:()=>Ukb,GetOrdersQueryParams:()=>lkb,GetOrdersResponse:()=>ckb,ProcessOrderHeader:()=>Skb,ProcessOrderParams:()=>bkb,ProcessOrderResponse:()=>fkb,ReissueOrderHeader:()=>Tkb,ReissueOrderParams:()=>Ekb,ReissueOrderResponse:()=>Dkb,StartOrdersPdfExportBody:()=>_kb,StartOrdersPdfExportHeader:()=>Rkb,UpdateOrderBody:()=>ykb,UpdateOrderHeader:()=>gkb,UpdateOrderParams:()=>xkb,UpdateOrderResponse:()=>Okb,cancelOrderPathIdRegExp:()=>G$O,cancelOrderResponseOneCurrencyCodeMax:()=>X$O,cancelOrderResponseOneCustomerEmailMax:()=>Q$O,cancelOrderResponseOneCustomerIdMax:()=>J$O,cancelOrderResponseOneCustomerNameMax:()=>$$O,cancelOrderResponseOneDocumentLocaleMax:()=>Y$O,cancelOrderResponseOneEntityIdMax:()=>K$O,cancelOrderResponseOneErrorMax:()=>MQO,cancelOrderResponseOneEstimateIdMax:()=>_QO,cancelOrderResponseOneIdMax:()=>V$O,cancelOrderResponseOneInvoiceIdMax:()=>RQO,cancelOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>SQO,cancelOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>fQO,cancelOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>dQO,cancelOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>lQO,cancelOrderResponseOneItemsItemTranslationsNameEsESMax:()=>pQO,cancelOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>bQO,cancelOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>hQO,cancelOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>uQO,cancelOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>OQO,cancelOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>EQO,cancelOrderResponseOneItemsItemTranslationsNameIsISMax:()=>BQO,cancelOrderResponseOneItemsItemTranslationsNameItITMax:()=>cQO,cancelOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>IQO,cancelOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>gQO,cancelOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>yQO,cancelOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>xQO,cancelOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>zQO,cancelOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>mQO,cancelOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>vQO,cancelOrderResponseOneOrderIntegrationIdMax:()=>Z$O,cancelOrderResponseOnePaymentGatewayMax:()=>DQO,cancelOrderResponseOnePaymentMethodMax:()=>TQO,cancelOrderResponseOneSourceEventIdMax:()=>NQO,cancelOrderResponseOneSourceIdMax:()=>q$O,cancelOrderResponseOneSourceOrderNumberMax:()=>W$O,cancelOrderResponseOneTotalDiscountMax:()=>iQO,cancelOrderResponseOneTotalDiscountMin:()=>oQO,cancelOrderResponseOneTotalMax:()=>tQO,cancelOrderResponseOneTotalMin:()=>eQO,cancelOrderResponseOneTotalShippingMax:()=>rQO,cancelOrderResponseOneTotalShippingMin:()=>aQO,cancelOrderResponseOneTotalWithTaxMax:()=>sQO,cancelOrderResponseOneTotalWithTaxMin:()=>nQO,createOrderBodyCurrencyCodeMax:()=>t9O,createOrderBodyCustomerEmailMax:()=>e9O,createOrderBodyCustomerNameMax:()=>X7O,createOrderBodyDocumentLocaleMax:()=>J7O,createOrderBodyOrderIntegrationIdMax:()=>Y7O,createOrderBodyPaymentGatewayMax:()=>u9O,createOrderBodyPaymentMethodMax:()=>c9O,createOrderBodySourceIdMax:()=>$7O,createOrderBodySourceOrderNumberMax:()=>Q7O,createOrderBodyTotalDiscountMax:()=>r9O,createOrderBodyTotalDiscountMin:()=>a9O,createOrderBodyTotalMax:()=>s9O,createOrderBodyTotalMin:()=>n9O,createOrderBodyTotalShippingMax:()=>d9O,createOrderBodyTotalShippingMin:()=>l9O,createOrderBodyTotalWithTaxMax:()=>i9O,createOrderBodyTotalWithTaxMin:()=>o9O,deleteOrderPathIdRegExp:()=>JYO,getOrderByIdPathIdRegExp:()=>s8O,getOrderByIdResponseOneCurrencyCodeMax:()=>m8O,getOrderByIdResponseOneCustomerEmailMax:()=>u8O,getOrderByIdResponseOneCustomerIdMax:()=>p8O,getOrderByIdResponseOneCustomerNameMax:()=>c8O,getOrderByIdResponseOneDocumentLocaleMax:()=>d8O,getOrderByIdResponseOneEntityIdMax:()=>i8O,getOrderByIdResponseOneErrorMax:()=>Z8O,getOrderByIdResponseOneEstimateIdMax:()=>V8O,getOrderByIdResponseOneIdMax:()=>o8O,getOrderByIdResponseOneInvoiceIdMax:()=>G8O,getOrderByIdResponseOneItemsItemTranslationsNameBgBGMax:()=>C8O,getOrderByIdResponseOneItemsItemTranslationsNameCsCZMax:()=>w8O,getOrderByIdResponseOneItemsItemTranslationsNameDeDEMax:()=>z8O,getOrderByIdResponseOneItemsItemTranslationsNameEnUSMax:()=>f8O,getOrderByIdResponseOneItemsItemTranslationsNameEsESMax:()=>E8O,getOrderByIdResponseOneItemsItemTranslationsNameEtEEMax:()=>P8O,getOrderByIdResponseOneItemsItemTranslationsNameFiFIMax:()=>U8O,getOrderByIdResponseOneItemsItemTranslationsNameFrFRMax:()=>B8O,getOrderByIdResponseOneItemsItemTranslationsNameHrHRMax:()=>N8O,getOrderByIdResponseOneItemsItemTranslationsNameHuHUMax:()=>j8O,getOrderByIdResponseOneItemsItemTranslationsNameIsISMax:()=>k8O,getOrderByIdResponseOneItemsItemTranslationsNameItITMax:()=>I8O,getOrderByIdResponseOneItemsItemTranslationsNameNbNOMax:()=>F8O,getOrderByIdResponseOneItemsItemTranslationsNameNlNLMax:()=>R8O,getOrderByIdResponseOneItemsItemTranslationsNamePlPLMax:()=>_8O,getOrderByIdResponseOneItemsItemTranslationsNamePtPTMax:()=>D8O,getOrderByIdResponseOneItemsItemTranslationsNameSkSKMax:()=>A8O,getOrderByIdResponseOneItemsItemTranslationsNameSlSIMax:()=>T8O,getOrderByIdResponseOneItemsItemTranslationsNameSvSEMax:()=>M8O,getOrderByIdResponseOneOrderIntegrationIdMax:()=>a8O,getOrderByIdResponseOnePaymentGatewayMax:()=>L8O,getOrderByIdResponseOnePaymentMethodMax:()=>H8O,getOrderByIdResponseOneSourceEventIdMax:()=>K8O,getOrderByIdResponseOneSourceIdMax:()=>r8O,getOrderByIdResponseOneSourceOrderNumberMax:()=>l8O,getOrderByIdResponseOneTotalDiscountMax:()=>h8O,getOrderByIdResponseOneTotalDiscountMin:()=>v8O,getOrderByIdResponseOneTotalMax:()=>g8O,getOrderByIdResponseOneTotalMin:()=>x8O,getOrderByIdResponseOneTotalShippingMax:()=>S8O,getOrderByIdResponseOneTotalShippingMin:()=>b8O,getOrderByIdResponseOneTotalWithTaxMax:()=>O8O,getOrderByIdResponseOneTotalWithTaxMin:()=>y8O,getOrdersQueryLimitDefault:()=>p9O,getOrdersQueryLimitMax:()=>m9O,getOrdersResponseDataItemOneCurrencyCodeMax:()=>z9O,getOrdersResponseDataItemOneCustomerEmailMax:()=>S9O,getOrdersResponseDataItemOneCustomerIdMax:()=>f9O,getOrdersResponseDataItemOneCustomerNameMax:()=>b9O,getOrdersResponseDataItemOneDocumentLocaleMax:()=>h9O,getOrdersResponseDataItemOneEntityIdMax:()=>g9O,getOrdersResponseDataItemOneErrorMax:()=>n8O,getOrdersResponseDataItemOneEstimateIdMax:()=>e8O,getOrdersResponseDataItemOneIdMax:()=>x9O,getOrdersResponseDataItemOneInvoiceIdMax:()=>X9O,getOrdersResponseDataItemOneItemsItemTranslationsNameBgBGMax:()=>K9O,getOrdersResponseDataItemOneItemsItemTranslationsNameCsCZMax:()=>Z9O,getOrdersResponseDataItemOneItemsItemTranslationsNameDeDEMax:()=>U9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEnUSMax:()=>M9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEsESMax:()=>w9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEtEEMax:()=>V9O,getOrdersResponseDataItemOneItemsItemTranslationsNameFiFIMax:()=>G9O,getOrdersResponseDataItemOneItemsItemTranslationsNameFrFRMax:()=>C9O,getOrdersResponseDataItemOneItemsItemTranslationsNameHrHRMax:()=>H9O,getOrdersResponseDataItemOneItemsItemTranslationsNameHuHUMax:()=>$9O,getOrdersResponseDataItemOneItemsItemTranslationsNameIsISMax:()=>Y9O,getOrdersResponseDataItemOneItemsItemTranslationsNameItITMax:()=>P9O,getOrdersResponseDataItemOneItemsItemTranslationsNameNbNOMax:()=>W9O,getOrdersResponseDataItemOneItemsItemTranslationsNameNlNLMax:()=>k9O,getOrdersResponseDataItemOneItemsItemTranslationsNamePlPLMax:()=>j9O,getOrdersResponseDataItemOneItemsItemTranslationsNamePtPTMax:()=>F9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSkSKMax:()=>q9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSlSIMax:()=>A9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSvSEMax:()=>L9O,getOrdersResponseDataItemOneOrderIntegrationIdMax:()=>y9O,getOrdersResponseDataItemOnePaymentGatewayMax:()=>J9O,getOrdersResponseDataItemOnePaymentMethodMax:()=>Q9O,getOrdersResponseDataItemOneSourceEventIdMax:()=>t8O,getOrdersResponseDataItemOneSourceIdMax:()=>O9O,getOrdersResponseDataItemOneSourceOrderNumberMax:()=>v9O,getOrdersResponseDataItemOneTotalDiscountMax:()=>R9O,getOrdersResponseDataItemOneTotalDiscountMin:()=>D9O,getOrdersResponseDataItemOneTotalMax:()=>B9O,getOrdersResponseDataItemOneTotalMin:()=>I9O,getOrdersResponseDataItemOneTotalShippingMax:()=>N9O,getOrdersResponseDataItemOneTotalShippingMin:()=>_9O,getOrdersResponseDataItemOneTotalWithTaxMax:()=>T9O,getOrdersResponseDataItemOneTotalWithTaxMin:()=>E9O,processOrderPathIdRegExp:()=>XYO,processOrderResponseOneCurrencyCodeMax:()=>d$O,processOrderResponseOneCustomerEmailMax:()=>r$O,processOrderResponseOneCustomerIdMax:()=>l$O,processOrderResponseOneCustomerNameMax:()=>a$O,processOrderResponseOneDocumentLocaleMax:()=>i$O,processOrderResponseOneEntityIdMax:()=>t$O,processOrderResponseOneErrorMax:()=>L$O,processOrderResponseOneEstimateIdMax:()=>j$O,processOrderResponseOneIdMax:()=>e$O,processOrderResponseOneInvoiceIdMax:()=>k$O,processOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>N$O,processOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>M$O,processOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>h$O,processOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>v$O,processOrderResponseOneItemsItemTranslationsNameEsESMax:()=>f$O,processOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>_$O,processOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>R$O,processOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>S$O,processOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>T$O,processOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>w$O,processOrderResponseOneItemsItemTranslationsNameIsISMax:()=>C$O,processOrderResponseOneItemsItemTranslationsNameItITMax:()=>b$O,processOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>P$O,processOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>B$O,processOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>E$O,processOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>I$O,processOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>U$O,processOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>z$O,processOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>D$O,processOrderResponseOneOrderIntegrationIdMax:()=>n$O,processOrderResponseOnePaymentGatewayMax:()=>F$O,processOrderResponseOnePaymentMethodMax:()=>A$O,processOrderResponseOneSourceEventIdMax:()=>H$O,processOrderResponseOneSourceIdMax:()=>s$O,processOrderResponseOneSourceOrderNumberMax:()=>o$O,processOrderResponseOneTotalDiscountMax:()=>g$O,processOrderResponseOneTotalDiscountMin:()=>x$O,processOrderResponseOneTotalMax:()=>u$O,processOrderResponseOneTotalMin:()=>c$O,processOrderResponseOneTotalShippingMax:()=>O$O,processOrderResponseOneTotalShippingMin:()=>y$O,processOrderResponseOneTotalWithTaxMax:()=>m$O,processOrderResponseOneTotalWithTaxMin:()=>p$O,reissueOrderPathIdRegExp:()=>UQO,reissueOrderResponseOneCurrencyCodeMax:()=>GQO,reissueOrderResponseOneCustomerEmailMax:()=>HQO,reissueOrderResponseOneCustomerIdMax:()=>LQO,reissueOrderResponseOneCustomerNameMax:()=>jQO,reissueOrderResponseOneDocumentLocaleMax:()=>kQO,reissueOrderResponseOneEntityIdMax:()=>CQO,reissueOrderResponseOneErrorMax:()=>fJO,reissueOrderResponseOneEstimateIdMax:()=>bJO,reissueOrderResponseOneIdMax:()=>PQO,reissueOrderResponseOneInvoiceIdMax:()=>hJO,reissueOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>uJO,reissueOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>pJO,reissueOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>XQO,reissueOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>JQO,reissueOrderResponseOneItemsItemTranslationsNameEsESMax:()=>nJO,reissueOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>cJO,reissueOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>dJO,reissueOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>tJO,reissueOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>rJO,reissueOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>yJO,reissueOrderResponseOneItemsItemTranslationsNameIsISMax:()=>gJO,reissueOrderResponseOneItemsItemTranslationsNameItITMax:()=>eJO,reissueOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>xJO,reissueOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>iJO,reissueOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>aJO,reissueOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>oJO,reissueOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>mJO,reissueOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>sJO,reissueOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>lJO,reissueOrderResponseOneOrderIntegrationIdMax:()=>wQO,reissueOrderResponseOnePaymentGatewayMax:()=>vJO,reissueOrderResponseOnePaymentMethodMax:()=>OJO,reissueOrderResponseOneSourceEventIdMax:()=>SJO,reissueOrderResponseOneSourceIdMax:()=>AQO,reissueOrderResponseOneSourceOrderNumberMax:()=>FQO,reissueOrderResponseOneTotalDiscountMax:()=>YQO,reissueOrderResponseOneTotalDiscountMin:()=>WQO,reissueOrderResponseOneTotalMax:()=>KQO,reissueOrderResponseOneTotalMin:()=>VQO,reissueOrderResponseOneTotalShippingMax:()=>QQO,reissueOrderResponseOneTotalShippingMin:()=>$QO,reissueOrderResponseOneTotalWithTaxMax:()=>qQO,reissueOrderResponseOneTotalWithTaxMin:()=>ZQO,startOrdersPdfExportBodyDateFromRegExp:()=>IJO,startOrdersPdfExportBodyDateToRegExp:()=>BJO,startOrdersPdfExportBodyOrderIdsMax:()=>zJO,updateOrderBodyCurrencyCodeMax:()=>J8O,updateOrderBodyCustomerEmailMax:()=>Q8O,updateOrderBodyCustomerNameMax:()=>$8O,updateOrderBodyDocumentLocaleMax:()=>Y8O,updateOrderBodyPaymentGatewayMax:()=>lYO,updateOrderBodyPaymentMethodMax:()=>rYO,updateOrderBodySourceOrderNumberMax:()=>W8O,updateOrderBodyTotalDiscountMax:()=>oYO,updateOrderBodyTotalDiscountMin:()=>sYO,updateOrderBodyTotalMax:()=>eYO,updateOrderBodyTotalMin:()=>X8O,updateOrderBodyTotalShippingMax:()=>aYO,updateOrderBodyTotalShippingMin:()=>iYO,updateOrderBodyTotalWithTaxMax:()=>nYO,updateOrderBodyTotalWithTaxMin:()=>tYO,updateOrderPathIdRegExp:()=>q8O,updateOrderResponseOneCurrencyCodeMax:()=>vYO,updateOrderResponseOneCustomerEmailMax:()=>yYO,updateOrderResponseOneCustomerIdMax:()=>OYO,updateOrderResponseOneCustomerNameMax:()=>gYO,updateOrderResponseOneDocumentLocaleMax:()=>xYO,updateOrderResponseOneEntityIdMax:()=>cYO,updateOrderResponseOneErrorMax:()=>QYO,updateOrderResponseOneEstimateIdMax:()=>YYO,updateOrderResponseOneIdMax:()=>dYO,updateOrderResponseOneInvoiceIdMax:()=>WYO,updateOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>jYO,updateOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>HYO,updateOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>DYO,updateOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>TYO,updateOrderResponseOneItemsItemTranslationsNameEsESMax:()=>NYO,updateOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>kYO,updateOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>FYO,updateOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>_YO,updateOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>wYO,updateOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>KYO,updateOrderResponseOneItemsItemTranslationsNameIsISMax:()=>VYO,updateOrderResponseOneItemsItemTranslationsNameItITMax:()=>RYO,updateOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>GYO,updateOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>PYO,updateOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>CYO,updateOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>UYO,updateOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>LYO,updateOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>MYO,updateOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>AYO,updateOrderResponseOneOrderIntegrationIdMax:()=>uYO,updateOrderResponseOnePaymentGatewayMax:()=>qYO,updateOrderResponseOnePaymentMethodMax:()=>ZYO,updateOrderResponseOneSourceEventIdMax:()=>$YO,updateOrderResponseOneSourceIdMax:()=>pYO,updateOrderResponseOneSourceOrderNumberMax:()=>mYO,updateOrderResponseOneTotalDiscountMax:()=>IYO,updateOrderResponseOneTotalDiscountMin:()=>zYO,updateOrderResponseOneTotalMax:()=>bYO,updateOrderResponseOneTotalMin:()=>hYO,updateOrderResponseOneTotalShippingMax:()=>EYO,updateOrderResponseOneTotalShippingMin:()=>BYO,updateOrderResponseOneTotalWithTaxMax:()=>fYO,updateOrderResponseOneTotalWithTaxMin:()=>SYO});var akb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Y7O=36,$7O=255,Q7O=100,J7O=20,X7O=255,e9O=255,t9O=3,n9O=-140737488355328,s9O=0x7fffffffffff,o9O=-140737488355328,i9O=0x7fffffffffff,a9O=-140737488355328,r9O=0x7fffffffffff,l9O=-140737488355328,d9O=0x7fffffffffff,c9O=50,u9O=100,rkb=e__namespace.object({order_integration_id:e__namespace.string().max(Y7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max($7O),source_order_number:e__namespace.string().max(Q7O).nullish(),document_locale:e__namespace.string().max(J7O).nullish(),customer_name:e__namespace.string().max(X7O).nullish(),customer_email:e__namespace.string().max(e9O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]).optional(),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),currency_code:e__namespace.string().max(t9O),total:e__namespace.number().min(n9O).max(s9O),total_with_tax:e__namespace.number().min(o9O).max(i9O),total_discount:e__namespace.number().min(a9O).max(r9O).optional(),total_shipping:e__namespace.number().min(l9O).max(d9O).optional(),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional()})).min(1),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e__namespace.string().max(c9O).nullish(),payment_gateway:e__namespace.string().max(u9O).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),p9O=10,m9O=100,lkb=e__namespace.object({limit:e__namespace.number().min(1).max(m9O).default(p9O).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e__namespace.union([e__namespace.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]),e__namespace.array(e__namespace.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e__namespace.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, status, source, source_id, customer_name, customer_email, payment_status, order_integration_id, ordered_at, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e__namespace.string().optional().describe(`Full-text search query to filter results across multiple fields.
120
+ Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Y5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),J6O=36,X6O=36,e7O=255,t7O=255,n7O=1e3,s7O=2048,o7O=20,i7O="checkout",a7O=-2147483648,r7O=2147483647,l7O=10,d7O=36,c7O=36,u7O=36,$5b=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(J6O),entity_id:e__namespace.string().max(X6O),name:e__namespace.string().max(e7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(t7O).nullish(),scopes:e__namespace.string().max(n7O).nullish(),store_url:e__namespace.string().max(s7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(o7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(i7O).describe("Deprecated. Documents from Shopify orders always use the currency the buyer paid in (Shopify presentment currency). `store` is still accepted for compatibility and is saved as `checkout`. Orders keep the currency of their first ingestion. If the checkout currency has no ECB reference rate, or Shopify sends incomplete checkout-currency amounts, the shop currency is used. Other providers ignore this setting."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(a7O).max(r7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(l7O).nullish(),business_unit_id:e__namespace.string().max(d7O).nullish(),business_premise_id:e__namespace.string().max(c7O).nullish(),electronic_device_id:e__namespace.string().max(u7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),p7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,Q5b=e__namespace.object({id:e__namespace.stringFormat("resource-id",p7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),J5b=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),m7O=36,x7O=36,g7O=255,y7O=255,O7O=1e3,v7O=2048,h7O=20,b7O="checkout",S7O=-2147483648,f7O=2147483647,z7O=10,I7O=36,B7O=36,E7O=36,X5b=e__namespace.object({id:e__namespace.string().max(m7O),entity_id:e__namespace.string().max(x7O),name:e__namespace.string().max(g7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(y7O).nullish(),scopes:e__namespace.string().max(O7O).nullish(),store_url:e__namespace.string().max(v7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(h7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(b7O).describe("Deprecated. Documents from Shopify orders always use the currency the buyer paid in (Shopify presentment currency). `store` is still accepted for compatibility and is saved as `checkout`. Orders keep the currency of their first ingestion. If the checkout currency has no ECB reference rate, or Shopify sends incomplete checkout-currency amounts, the shop currency is used. Other providers ignore this setting."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(S7O).max(f7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(z7O).nullish(),business_unit_id:e__namespace.string().max(I7O).nullish(),business_premise_id:e__namespace.string().max(B7O).nullish(),electronic_device_id:e__namespace.string().max(E7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration"),T7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,ekb=e__namespace.object({id:e__namespace.stringFormat("resource-id",T7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),tkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),D7O=36,R7O=10,_7O=36,N7O=36,M7O=36,U7O=0,nkb=e__namespace.object({name:e__namespace.string().min(1).optional(),auto_process:e__namespace.boolean().optional(),auto_reissue_on_update:e__namespace.boolean().optional(),classify_imported_items_as_products:e__namespace.boolean().nullish().describe("Treat otherwise-unclassified regular imported order lines as products. Set null or false to disable."),buyer_language_item_names:e__namespace.boolean().nullish().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting. Set null or false to disable."),sync_inventory:e__namespace.boolean().nullish().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false. Set null or false to disable; omit to leave unchanged."),inventory_sync_warehouse_id:e__namespace.string().min(1).max(D7O).nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity. Set null to push the total across all warehouses; omit to leave unchanged."),locale:e__namespace.string().max(R7O).nullish(),business_unit_id:e__namespace.string().max(_7O).nullish(),business_premise_id:e__namespace.string().max(N7O).nullish(),electronic_device_id:e__namespace.string().max(M7O).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),is_active:e__namespace.boolean().optional(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).optional().describe("Order lifecycle event that triggers automatic processing. `fulfilled` is only supported for custom store integrations; Magento integrations reject it with 400."),default_payment_type:e__namespace.string().optional(),send_invoice_email:e__namespace.boolean().optional(),send_estimate_email:e__namespace.boolean().optional(),attach_pdf_to_email:e__namespace.boolean().optional(),issue_invoice_for_bank:e__namespace.boolean().optional(),issue_invoice_on_complete:e__namespace.boolean().optional(),auto_process_delay_seconds:e__namespace.number().min(U7O).optional(),document_currency:e__namespace.union([e__namespace.literal("store"),e__namespace.literal("checkout"),e__namespace.literal(null)]).nullish().describe("Deprecated. Documents from Shopify orders always use the currency the buyer paid in (Shopify presentment currency). `store` is still accepted for compatibility and is saved as `checkout`. Orders keep the currency of their first ingestion. If the checkout currency has no ECB reference rate, or Shopify sends incomplete checkout-currency amounts, the shop currency is used. Other providers ignore this setting. Null leaves the setting unchanged.")}),P7O=36,C7O=36,w7O=255,A7O=255,F7O=1e3,k7O=2048,j7O=20,H7O="checkout",L7O=-2147483648,G7O=2147483647,V7O=10,K7O=36,Z7O=36,q7O=36,skb=e__namespace.object({id:e__namespace.string().max(P7O),entity_id:e__namespace.string().max(C7O),name:e__namespace.string().max(w7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Integration source platform"),is_active:e__namespace.boolean(),shop_domain:e__namespace.string().max(A7O).nullish(),scopes:e__namespace.string().max(F7O).nullish(),store_url:e__namespace.string().max(k7O).nullish(),auto_process:e__namespace.boolean(),auto_process_on:e__namespace.enum(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e__namespace.string().max(j7O).nullish(),send_invoice_email:e__namespace.boolean(),send_estimate_email:e__namespace.boolean(),attach_pdf_to_email:e__namespace.boolean(),issue_invoice_for_bank:e__namespace.boolean(),document_currency:e__namespace.enum(["store","checkout"]).default(H7O).describe("Deprecated. Documents from Shopify orders always use the currency the buyer paid in (Shopify presentment currency). `store` is still accepted for compatibility and is saved as `checkout`. Orders keep the currency of their first ingestion. If the checkout currency has no ECB reference rate, or Shopify sends incomplete checkout-currency amounts, the shop currency is used. Other providers ignore this setting."),issue_invoice_on_complete:e__namespace.boolean(),auto_process_delay_seconds:e__namespace.number().min(L7O).max(G7O),auto_reissue_on_update:e__namespace.boolean(),classify_imported_items_as_products:e__namespace.boolean().optional().describe("Treat otherwise-unclassified regular imported order lines as products. Shipping and fee lines are never affected."),buyer_language_item_names:e__namespace.boolean().optional().describe("Shopify only. Show product names on documents created from new orders in the buyer's language, using the store's own Shopify translations (needs the optional read_translations scope; without it documents keep the store's default-language names). The merchant's records keep the default-language names, and orders keep the names of their first ingestion. Other providers ignore this setting."),sync_inventory:e__namespace.boolean().optional().describe("WooCommerce only. Push Space Invoices stock quantities to the store: inventory-tracked items send their own quantity, and untracked items whose components include tracked items (kits) send the number of whole kits those components can supply. Products and variations are matched by SKU (case-insensitive); matched ones get `manage_stock` enabled and `stock_quantity` set to the Space Invoices quantity (negative stock is sent as 0). Requires inventory management to be enabled for the entity. Default false."),inventory_sync_warehouse_id:e__namespace.string().nullish().describe("WooCommerce only. Warehouse whose quantity is pushed to the store when `sync_inventory` is on. Null (default) pushes the total across all warehouses. Must be an existing warehouse of the entity."),locale:e__namespace.string().max(V7O).nullish(),business_unit_id:e__namespace.string().max(K7O).nullish(),business_premise_id:e__namespace.string().max(Z7O).nullish(),electronic_device_id:e__namespace.string().max(q7O).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order integration connection information").and(e__namespace.looseObject({})).describe("Order Integration"),W7O=/^[a-z]{3,4}_[0-9a-f]{24}$/,okb=e__namespace.object({id:e__namespace.stringFormat("resource-id",W7O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),ikb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var qt={};Q(qt,{CancelOrderHeader:()=>Ikb,CancelOrderParams:()=>zkb,CancelOrderResponse:()=>Bkb,CreateOrderBody:()=>rkb,CreateOrderHeader:()=>akb,DeleteOrderHeader:()=>hkb,DeleteOrderParams:()=>vkb,DownloadOrdersPdfExportHeader:()=>Ckb,DownloadOrdersPdfExportParams:()=>Pkb,GetOrderByIdHeader:()=>pkb,GetOrderByIdParams:()=>ukb,GetOrderByIdResponse:()=>mkb,GetOrdersHeader:()=>dkb,GetOrdersPdfExportJobHeader:()=>Mkb,GetOrdersPdfExportJobParams:()=>Nkb,GetOrdersPdfExportJobResponse:()=>Ukb,GetOrdersQueryParams:()=>lkb,GetOrdersResponse:()=>ckb,ProcessOrderHeader:()=>Skb,ProcessOrderParams:()=>bkb,ProcessOrderResponse:()=>fkb,ReissueOrderHeader:()=>Tkb,ReissueOrderParams:()=>Ekb,ReissueOrderResponse:()=>Dkb,StartOrdersPdfExportBody:()=>_kb,StartOrdersPdfExportHeader:()=>Rkb,UpdateOrderBody:()=>ykb,UpdateOrderHeader:()=>gkb,UpdateOrderParams:()=>xkb,UpdateOrderResponse:()=>Okb,cancelOrderPathIdRegExp:()=>G$O,cancelOrderResponseOneCurrencyCodeMax:()=>X$O,cancelOrderResponseOneCustomerEmailMax:()=>Q$O,cancelOrderResponseOneCustomerIdMax:()=>J$O,cancelOrderResponseOneCustomerNameMax:()=>$$O,cancelOrderResponseOneDocumentLocaleMax:()=>Y$O,cancelOrderResponseOneEntityIdMax:()=>K$O,cancelOrderResponseOneErrorMax:()=>MQO,cancelOrderResponseOneEstimateIdMax:()=>_QO,cancelOrderResponseOneIdMax:()=>V$O,cancelOrderResponseOneInvoiceIdMax:()=>RQO,cancelOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>SQO,cancelOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>fQO,cancelOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>dQO,cancelOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>lQO,cancelOrderResponseOneItemsItemTranslationsNameEsESMax:()=>pQO,cancelOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>bQO,cancelOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>hQO,cancelOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>uQO,cancelOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>OQO,cancelOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>EQO,cancelOrderResponseOneItemsItemTranslationsNameIsISMax:()=>BQO,cancelOrderResponseOneItemsItemTranslationsNameItITMax:()=>cQO,cancelOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>IQO,cancelOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>gQO,cancelOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>yQO,cancelOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>xQO,cancelOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>zQO,cancelOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>mQO,cancelOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>vQO,cancelOrderResponseOneOrderIntegrationIdMax:()=>Z$O,cancelOrderResponseOnePaymentGatewayMax:()=>DQO,cancelOrderResponseOnePaymentMethodMax:()=>TQO,cancelOrderResponseOneSourceEventIdMax:()=>NQO,cancelOrderResponseOneSourceIdMax:()=>q$O,cancelOrderResponseOneSourceOrderNumberMax:()=>W$O,cancelOrderResponseOneTotalDiscountMax:()=>iQO,cancelOrderResponseOneTotalDiscountMin:()=>oQO,cancelOrderResponseOneTotalMax:()=>tQO,cancelOrderResponseOneTotalMin:()=>eQO,cancelOrderResponseOneTotalShippingMax:()=>rQO,cancelOrderResponseOneTotalShippingMin:()=>aQO,cancelOrderResponseOneTotalWithTaxMax:()=>sQO,cancelOrderResponseOneTotalWithTaxMin:()=>nQO,createOrderBodyCurrencyCodeMax:()=>t9O,createOrderBodyCustomerEmailMax:()=>e9O,createOrderBodyCustomerNameMax:()=>X7O,createOrderBodyDocumentLocaleMax:()=>J7O,createOrderBodyOrderIntegrationIdMax:()=>Y7O,createOrderBodyPaymentGatewayMax:()=>u9O,createOrderBodyPaymentMethodMax:()=>c9O,createOrderBodySourceIdMax:()=>$7O,createOrderBodySourceOrderNumberMax:()=>Q7O,createOrderBodyTotalDiscountMax:()=>r9O,createOrderBodyTotalDiscountMin:()=>a9O,createOrderBodyTotalMax:()=>s9O,createOrderBodyTotalMin:()=>n9O,createOrderBodyTotalShippingMax:()=>d9O,createOrderBodyTotalShippingMin:()=>l9O,createOrderBodyTotalWithTaxMax:()=>i9O,createOrderBodyTotalWithTaxMin:()=>o9O,deleteOrderPathIdRegExp:()=>JYO,getOrderByIdPathIdRegExp:()=>s8O,getOrderByIdResponseOneCurrencyCodeMax:()=>m8O,getOrderByIdResponseOneCustomerEmailMax:()=>u8O,getOrderByIdResponseOneCustomerIdMax:()=>p8O,getOrderByIdResponseOneCustomerNameMax:()=>c8O,getOrderByIdResponseOneDocumentLocaleMax:()=>d8O,getOrderByIdResponseOneEntityIdMax:()=>i8O,getOrderByIdResponseOneErrorMax:()=>Z8O,getOrderByIdResponseOneEstimateIdMax:()=>V8O,getOrderByIdResponseOneIdMax:()=>o8O,getOrderByIdResponseOneInvoiceIdMax:()=>G8O,getOrderByIdResponseOneItemsItemTranslationsNameBgBGMax:()=>C8O,getOrderByIdResponseOneItemsItemTranslationsNameCsCZMax:()=>w8O,getOrderByIdResponseOneItemsItemTranslationsNameDeDEMax:()=>z8O,getOrderByIdResponseOneItemsItemTranslationsNameEnUSMax:()=>f8O,getOrderByIdResponseOneItemsItemTranslationsNameEsESMax:()=>E8O,getOrderByIdResponseOneItemsItemTranslationsNameEtEEMax:()=>P8O,getOrderByIdResponseOneItemsItemTranslationsNameFiFIMax:()=>U8O,getOrderByIdResponseOneItemsItemTranslationsNameFrFRMax:()=>B8O,getOrderByIdResponseOneItemsItemTranslationsNameHrHRMax:()=>N8O,getOrderByIdResponseOneItemsItemTranslationsNameHuHUMax:()=>j8O,getOrderByIdResponseOneItemsItemTranslationsNameIsISMax:()=>k8O,getOrderByIdResponseOneItemsItemTranslationsNameItITMax:()=>I8O,getOrderByIdResponseOneItemsItemTranslationsNameNbNOMax:()=>F8O,getOrderByIdResponseOneItemsItemTranslationsNameNlNLMax:()=>R8O,getOrderByIdResponseOneItemsItemTranslationsNamePlPLMax:()=>_8O,getOrderByIdResponseOneItemsItemTranslationsNamePtPTMax:()=>D8O,getOrderByIdResponseOneItemsItemTranslationsNameSkSKMax:()=>A8O,getOrderByIdResponseOneItemsItemTranslationsNameSlSIMax:()=>T8O,getOrderByIdResponseOneItemsItemTranslationsNameSvSEMax:()=>M8O,getOrderByIdResponseOneOrderIntegrationIdMax:()=>a8O,getOrderByIdResponseOnePaymentGatewayMax:()=>L8O,getOrderByIdResponseOnePaymentMethodMax:()=>H8O,getOrderByIdResponseOneSourceEventIdMax:()=>K8O,getOrderByIdResponseOneSourceIdMax:()=>r8O,getOrderByIdResponseOneSourceOrderNumberMax:()=>l8O,getOrderByIdResponseOneTotalDiscountMax:()=>h8O,getOrderByIdResponseOneTotalDiscountMin:()=>v8O,getOrderByIdResponseOneTotalMax:()=>g8O,getOrderByIdResponseOneTotalMin:()=>x8O,getOrderByIdResponseOneTotalShippingMax:()=>S8O,getOrderByIdResponseOneTotalShippingMin:()=>b8O,getOrderByIdResponseOneTotalWithTaxMax:()=>O8O,getOrderByIdResponseOneTotalWithTaxMin:()=>y8O,getOrdersQueryLimitDefault:()=>p9O,getOrdersQueryLimitMax:()=>m9O,getOrdersResponseDataItemOneCurrencyCodeMax:()=>z9O,getOrdersResponseDataItemOneCustomerEmailMax:()=>S9O,getOrdersResponseDataItemOneCustomerIdMax:()=>f9O,getOrdersResponseDataItemOneCustomerNameMax:()=>b9O,getOrdersResponseDataItemOneDocumentLocaleMax:()=>h9O,getOrdersResponseDataItemOneEntityIdMax:()=>g9O,getOrdersResponseDataItemOneErrorMax:()=>n8O,getOrdersResponseDataItemOneEstimateIdMax:()=>e8O,getOrdersResponseDataItemOneIdMax:()=>x9O,getOrdersResponseDataItemOneInvoiceIdMax:()=>X9O,getOrdersResponseDataItemOneItemsItemTranslationsNameBgBGMax:()=>K9O,getOrdersResponseDataItemOneItemsItemTranslationsNameCsCZMax:()=>Z9O,getOrdersResponseDataItemOneItemsItemTranslationsNameDeDEMax:()=>U9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEnUSMax:()=>M9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEsESMax:()=>w9O,getOrdersResponseDataItemOneItemsItemTranslationsNameEtEEMax:()=>V9O,getOrdersResponseDataItemOneItemsItemTranslationsNameFiFIMax:()=>G9O,getOrdersResponseDataItemOneItemsItemTranslationsNameFrFRMax:()=>C9O,getOrdersResponseDataItemOneItemsItemTranslationsNameHrHRMax:()=>H9O,getOrdersResponseDataItemOneItemsItemTranslationsNameHuHUMax:()=>$9O,getOrdersResponseDataItemOneItemsItemTranslationsNameIsISMax:()=>Y9O,getOrdersResponseDataItemOneItemsItemTranslationsNameItITMax:()=>P9O,getOrdersResponseDataItemOneItemsItemTranslationsNameNbNOMax:()=>W9O,getOrdersResponseDataItemOneItemsItemTranslationsNameNlNLMax:()=>k9O,getOrdersResponseDataItemOneItemsItemTranslationsNamePlPLMax:()=>j9O,getOrdersResponseDataItemOneItemsItemTranslationsNamePtPTMax:()=>F9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSkSKMax:()=>q9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSlSIMax:()=>A9O,getOrdersResponseDataItemOneItemsItemTranslationsNameSvSEMax:()=>L9O,getOrdersResponseDataItemOneOrderIntegrationIdMax:()=>y9O,getOrdersResponseDataItemOnePaymentGatewayMax:()=>J9O,getOrdersResponseDataItemOnePaymentMethodMax:()=>Q9O,getOrdersResponseDataItemOneSourceEventIdMax:()=>t8O,getOrdersResponseDataItemOneSourceIdMax:()=>O9O,getOrdersResponseDataItemOneSourceOrderNumberMax:()=>v9O,getOrdersResponseDataItemOneTotalDiscountMax:()=>R9O,getOrdersResponseDataItemOneTotalDiscountMin:()=>D9O,getOrdersResponseDataItemOneTotalMax:()=>B9O,getOrdersResponseDataItemOneTotalMin:()=>I9O,getOrdersResponseDataItemOneTotalShippingMax:()=>N9O,getOrdersResponseDataItemOneTotalShippingMin:()=>_9O,getOrdersResponseDataItemOneTotalWithTaxMax:()=>T9O,getOrdersResponseDataItemOneTotalWithTaxMin:()=>E9O,processOrderPathIdRegExp:()=>XYO,processOrderResponseOneCurrencyCodeMax:()=>d$O,processOrderResponseOneCustomerEmailMax:()=>r$O,processOrderResponseOneCustomerIdMax:()=>l$O,processOrderResponseOneCustomerNameMax:()=>a$O,processOrderResponseOneDocumentLocaleMax:()=>i$O,processOrderResponseOneEntityIdMax:()=>t$O,processOrderResponseOneErrorMax:()=>L$O,processOrderResponseOneEstimateIdMax:()=>j$O,processOrderResponseOneIdMax:()=>e$O,processOrderResponseOneInvoiceIdMax:()=>k$O,processOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>N$O,processOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>M$O,processOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>h$O,processOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>v$O,processOrderResponseOneItemsItemTranslationsNameEsESMax:()=>f$O,processOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>_$O,processOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>R$O,processOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>S$O,processOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>T$O,processOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>w$O,processOrderResponseOneItemsItemTranslationsNameIsISMax:()=>C$O,processOrderResponseOneItemsItemTranslationsNameItITMax:()=>b$O,processOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>P$O,processOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>B$O,processOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>E$O,processOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>I$O,processOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>U$O,processOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>z$O,processOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>D$O,processOrderResponseOneOrderIntegrationIdMax:()=>n$O,processOrderResponseOnePaymentGatewayMax:()=>F$O,processOrderResponseOnePaymentMethodMax:()=>A$O,processOrderResponseOneSourceEventIdMax:()=>H$O,processOrderResponseOneSourceIdMax:()=>s$O,processOrderResponseOneSourceOrderNumberMax:()=>o$O,processOrderResponseOneTotalDiscountMax:()=>g$O,processOrderResponseOneTotalDiscountMin:()=>x$O,processOrderResponseOneTotalMax:()=>u$O,processOrderResponseOneTotalMin:()=>c$O,processOrderResponseOneTotalShippingMax:()=>O$O,processOrderResponseOneTotalShippingMin:()=>y$O,processOrderResponseOneTotalWithTaxMax:()=>m$O,processOrderResponseOneTotalWithTaxMin:()=>p$O,reissueOrderPathIdRegExp:()=>UQO,reissueOrderResponseOneCurrencyCodeMax:()=>GQO,reissueOrderResponseOneCustomerEmailMax:()=>HQO,reissueOrderResponseOneCustomerIdMax:()=>LQO,reissueOrderResponseOneCustomerNameMax:()=>jQO,reissueOrderResponseOneDocumentLocaleMax:()=>kQO,reissueOrderResponseOneEntityIdMax:()=>CQO,reissueOrderResponseOneErrorMax:()=>fJO,reissueOrderResponseOneEstimateIdMax:()=>bJO,reissueOrderResponseOneIdMax:()=>PQO,reissueOrderResponseOneInvoiceIdMax:()=>hJO,reissueOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>uJO,reissueOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>pJO,reissueOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>XQO,reissueOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>JQO,reissueOrderResponseOneItemsItemTranslationsNameEsESMax:()=>nJO,reissueOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>cJO,reissueOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>dJO,reissueOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>tJO,reissueOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>rJO,reissueOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>yJO,reissueOrderResponseOneItemsItemTranslationsNameIsISMax:()=>gJO,reissueOrderResponseOneItemsItemTranslationsNameItITMax:()=>eJO,reissueOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>xJO,reissueOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>iJO,reissueOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>aJO,reissueOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>oJO,reissueOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>mJO,reissueOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>sJO,reissueOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>lJO,reissueOrderResponseOneOrderIntegrationIdMax:()=>wQO,reissueOrderResponseOnePaymentGatewayMax:()=>vJO,reissueOrderResponseOnePaymentMethodMax:()=>OJO,reissueOrderResponseOneSourceEventIdMax:()=>SJO,reissueOrderResponseOneSourceIdMax:()=>AQO,reissueOrderResponseOneSourceOrderNumberMax:()=>FQO,reissueOrderResponseOneTotalDiscountMax:()=>YQO,reissueOrderResponseOneTotalDiscountMin:()=>WQO,reissueOrderResponseOneTotalMax:()=>KQO,reissueOrderResponseOneTotalMin:()=>VQO,reissueOrderResponseOneTotalShippingMax:()=>QQO,reissueOrderResponseOneTotalShippingMin:()=>$QO,reissueOrderResponseOneTotalWithTaxMax:()=>qQO,reissueOrderResponseOneTotalWithTaxMin:()=>ZQO,startOrdersPdfExportBodyDateFromRegExp:()=>IJO,startOrdersPdfExportBodyDateToRegExp:()=>BJO,startOrdersPdfExportBodyOrderIdsMax:()=>zJO,updateOrderBodyCurrencyCodeMax:()=>J8O,updateOrderBodyCustomerEmailMax:()=>Q8O,updateOrderBodyCustomerNameMax:()=>$8O,updateOrderBodyDocumentLocaleMax:()=>Y8O,updateOrderBodyPaymentGatewayMax:()=>lYO,updateOrderBodyPaymentMethodMax:()=>rYO,updateOrderBodySourceOrderNumberMax:()=>W8O,updateOrderBodyTotalDiscountMax:()=>oYO,updateOrderBodyTotalDiscountMin:()=>sYO,updateOrderBodyTotalMax:()=>eYO,updateOrderBodyTotalMin:()=>X8O,updateOrderBodyTotalShippingMax:()=>aYO,updateOrderBodyTotalShippingMin:()=>iYO,updateOrderBodyTotalWithTaxMax:()=>nYO,updateOrderBodyTotalWithTaxMin:()=>tYO,updateOrderPathIdRegExp:()=>q8O,updateOrderResponseOneCurrencyCodeMax:()=>vYO,updateOrderResponseOneCustomerEmailMax:()=>yYO,updateOrderResponseOneCustomerIdMax:()=>OYO,updateOrderResponseOneCustomerNameMax:()=>gYO,updateOrderResponseOneDocumentLocaleMax:()=>xYO,updateOrderResponseOneEntityIdMax:()=>cYO,updateOrderResponseOneErrorMax:()=>QYO,updateOrderResponseOneEstimateIdMax:()=>YYO,updateOrderResponseOneIdMax:()=>dYO,updateOrderResponseOneInvoiceIdMax:()=>WYO,updateOrderResponseOneItemsItemTranslationsNameBgBGMax:()=>jYO,updateOrderResponseOneItemsItemTranslationsNameCsCZMax:()=>HYO,updateOrderResponseOneItemsItemTranslationsNameDeDEMax:()=>DYO,updateOrderResponseOneItemsItemTranslationsNameEnUSMax:()=>TYO,updateOrderResponseOneItemsItemTranslationsNameEsESMax:()=>NYO,updateOrderResponseOneItemsItemTranslationsNameEtEEMax:()=>kYO,updateOrderResponseOneItemsItemTranslationsNameFiFIMax:()=>FYO,updateOrderResponseOneItemsItemTranslationsNameFrFRMax:()=>_YO,updateOrderResponseOneItemsItemTranslationsNameHrHRMax:()=>wYO,updateOrderResponseOneItemsItemTranslationsNameHuHUMax:()=>KYO,updateOrderResponseOneItemsItemTranslationsNameIsISMax:()=>VYO,updateOrderResponseOneItemsItemTranslationsNameItITMax:()=>RYO,updateOrderResponseOneItemsItemTranslationsNameNbNOMax:()=>GYO,updateOrderResponseOneItemsItemTranslationsNameNlNLMax:()=>PYO,updateOrderResponseOneItemsItemTranslationsNamePlPLMax:()=>CYO,updateOrderResponseOneItemsItemTranslationsNamePtPTMax:()=>UYO,updateOrderResponseOneItemsItemTranslationsNameSkSKMax:()=>LYO,updateOrderResponseOneItemsItemTranslationsNameSlSIMax:()=>MYO,updateOrderResponseOneItemsItemTranslationsNameSvSEMax:()=>AYO,updateOrderResponseOneOrderIntegrationIdMax:()=>uYO,updateOrderResponseOnePaymentGatewayMax:()=>qYO,updateOrderResponseOnePaymentMethodMax:()=>ZYO,updateOrderResponseOneSourceEventIdMax:()=>$YO,updateOrderResponseOneSourceIdMax:()=>pYO,updateOrderResponseOneSourceOrderNumberMax:()=>mYO,updateOrderResponseOneTotalDiscountMax:()=>IYO,updateOrderResponseOneTotalDiscountMin:()=>zYO,updateOrderResponseOneTotalMax:()=>bYO,updateOrderResponseOneTotalMin:()=>hYO,updateOrderResponseOneTotalShippingMax:()=>EYO,updateOrderResponseOneTotalShippingMin:()=>BYO,updateOrderResponseOneTotalWithTaxMax:()=>fYO,updateOrderResponseOneTotalWithTaxMin:()=>SYO});var akb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Y7O=36,$7O=255,Q7O=100,J7O=20,X7O=255,e9O=255,t9O=3,n9O=-140737488355328,s9O=0x7fffffffffff,o9O=-140737488355328,i9O=0x7fffffffffff,a9O=-140737488355328,r9O=0x7fffffffffff,l9O=-140737488355328,d9O=0x7fffffffffff,c9O=50,u9O=100,rkb=e__namespace.object({order_integration_id:e__namespace.string().max(Y7O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max($7O),source_order_number:e__namespace.string().max(Q7O).nullish(),document_locale:e__namespace.string().max(J7O).nullish(),customer_name:e__namespace.string().max(X7O).nullish(),customer_email:e__namespace.string().max(e9O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]).optional(),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),currency_code:e__namespace.string().max(t9O),total:e__namespace.number().min(n9O).max(s9O),total_with_tax:e__namespace.number().min(o9O).max(i9O),total_discount:e__namespace.number().min(a9O).max(r9O).optional(),total_shipping:e__namespace.number().min(l9O).max(d9O).optional(),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional()})).min(1),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e__namespace.string().max(c9O).nullish(),payment_gateway:e__namespace.string().max(u9O).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),p9O=10,m9O=100,lkb=e__namespace.object({limit:e__namespace.number().min(1).max(m9O).default(p9O).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e__namespace.union([e__namespace.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]),e__namespace.array(e__namespace.enum(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e__namespace.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, status, source, source_id, customer_name, customer_email, payment_status, order_integration_id, ordered_at, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e__namespace.string().optional().describe(`Full-text search query to filter results across multiple fields.
121
121
  Searches are case-insensitive and match partial strings.
122
122
  Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:e__namespace.boolean().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),dkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),x9O=36,g9O=36,y9O=36,O9O=255,v9O=100,h9O=20,b9O=255,S9O=255,f9O=36,z9O=3,I9O=-140737488355328,B9O=0x7fffffffffff,E9O=-140737488355328,T9O=0x7fffffffffff,D9O=-140737488355328,R9O=0x7fffffffffff,_9O=-140737488355328,N9O=0x7fffffffffff,M9O=500,U9O=500,P9O=500,C9O=500,w9O=500,A9O=500,F9O=500,k9O=500,j9O=500,H9O=500,L9O=500,G9O=500,V9O=500,K9O=500,Z9O=500,q9O=500,W9O=500,Y9O=500,$9O=500,Q9O=50,J9O=100,X9O=36,e8O=36,t8O=255,n8O=2e3,ckb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string().max(x9O),entity_id:e__namespace.string().max(g9O),order_integration_id:e__namespace.string().max(y9O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(O9O),source_order_number:e__namespace.string().max(v9O).nullish(),document_locale:e__namespace.string().max(h9O).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max(b9O).nullish(),customer_email:e__namespace.string().max(S9O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(f9O).nullish(),currency_code:e__namespace.string().max(z9O),total:e__namespace.number().min(I9O).max(B9O),total_with_tax:e__namespace.number().min(E9O).max(T9O),total_discount:e__namespace.number().min(D9O).max(R9O),total_shipping:e__namespace.number().min(_9O).max(N9O),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(M9O).optional(),"de-DE":e__namespace.string().max(U9O).optional(),"it-IT":e__namespace.string().max(P9O).optional(),"fr-FR":e__namespace.string().max(C9O).optional(),"es-ES":e__namespace.string().max(w9O).optional(),"sl-SI":e__namespace.string().max(A9O).optional(),"pt-PT":e__namespace.string().max(F9O).optional(),"nl-NL":e__namespace.string().max(k9O).optional(),"pl-PL":e__namespace.string().max(j9O).optional(),"hr-HR":e__namespace.string().max(H9O).optional(),"sv-SE":e__namespace.string().max(L9O).optional(),"fi-FI":e__namespace.string().max(G9O).optional(),"et-EE":e__namespace.string().max(V9O).optional(),"bg-BG":e__namespace.string().max(K9O).optional(),"cs-CZ":e__namespace.string().max(Z9O).optional(),"sk-SK":e__namespace.string().max(q9O).optional(),"nb-NO":e__namespace.string().max(W9O).optional(),"is-IS":e__namespace.string().max(Y9O).optional(),"hu-HU":e__namespace.string().max($9O).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(Q9O).nullish(),payment_gateway:e__namespace.string().max(J9O).nullish(),invoice_id:e__namespace.string().max(X9O).nullish(),estimate_id:e__namespace.string().max(e8O).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max(t8O).nullish(),error:e__namespace.string().max(n8O).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order")),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),s8O=/^[a-z]{3,4}_[0-9a-f]{24}$/,ukb=e__namespace.object({id:e__namespace.stringFormat("resource-id",s8O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),pkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),o8O=36,i8O=36,a8O=36,r8O=255,l8O=100,d8O=20,c8O=255,u8O=255,p8O=36,m8O=3,x8O=-140737488355328,g8O=0x7fffffffffff,y8O=-140737488355328,O8O=0x7fffffffffff,v8O=-140737488355328,h8O=0x7fffffffffff,b8O=-140737488355328,S8O=0x7fffffffffff,f8O=500,z8O=500,I8O=500,B8O=500,E8O=500,T8O=500,D8O=500,R8O=500,_8O=500,N8O=500,M8O=500,U8O=500,P8O=500,C8O=500,w8O=500,A8O=500,F8O=500,k8O=500,j8O=500,H8O=50,L8O=100,G8O=36,V8O=36,K8O=255,Z8O=2e3,mkb=e__namespace.object({id:e__namespace.string().max(o8O),entity_id:e__namespace.string().max(i8O),order_integration_id:e__namespace.string().max(a8O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(r8O),source_order_number:e__namespace.string().max(l8O).nullish(),document_locale:e__namespace.string().max(d8O).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max(c8O).nullish(),customer_email:e__namespace.string().max(u8O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(p8O).nullish(),currency_code:e__namespace.string().max(m8O),total:e__namespace.number().min(x8O).max(g8O),total_with_tax:e__namespace.number().min(y8O).max(O8O),total_discount:e__namespace.number().min(v8O).max(h8O),total_shipping:e__namespace.number().min(b8O).max(S8O),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(f8O).optional(),"de-DE":e__namespace.string().max(z8O).optional(),"it-IT":e__namespace.string().max(I8O).optional(),"fr-FR":e__namespace.string().max(B8O).optional(),"es-ES":e__namespace.string().max(E8O).optional(),"sl-SI":e__namespace.string().max(T8O).optional(),"pt-PT":e__namespace.string().max(D8O).optional(),"nl-NL":e__namespace.string().max(R8O).optional(),"pl-PL":e__namespace.string().max(_8O).optional(),"hr-HR":e__namespace.string().max(N8O).optional(),"sv-SE":e__namespace.string().max(M8O).optional(),"fi-FI":e__namespace.string().max(U8O).optional(),"et-EE":e__namespace.string().max(P8O).optional(),"bg-BG":e__namespace.string().max(C8O).optional(),"cs-CZ":e__namespace.string().max(w8O).optional(),"sk-SK":e__namespace.string().max(A8O).optional(),"nb-NO":e__namespace.string().max(F8O).optional(),"is-IS":e__namespace.string().max(k8O).optional(),"hu-HU":e__namespace.string().max(j8O).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(H8O).nullish(),payment_gateway:e__namespace.string().max(L8O).nullish(),invoice_id:e__namespace.string().max(G8O).nullish(),estimate_id:e__namespace.string().max(V8O).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max(K8O).nullish(),error:e__namespace.string().max(Z8O).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order"),q8O=/^[a-z]{3,4}_[0-9a-f]{24}$/,xkb=e__namespace.object({id:e__namespace.stringFormat("resource-id",q8O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),gkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),W8O=100,Y8O=20,$8O=255,Q8O=255,J8O=3,X8O=-140737488355328,eYO=0x7fffffffffff,tYO=-140737488355328,nYO=0x7fffffffffff,sYO=-140737488355328,oYO=0x7fffffffffff,iYO=-140737488355328,aYO=0x7fffffffffff,rYO=50,lYO=100,ykb=e__namespace.object({source_order_number:e__namespace.string().max(W8O).nullish(),document_locale:e__namespace.string().max(Y8O).nullish(),customer_name:e__namespace.string().max($8O).nullish(),customer_email:e__namespace.string().max(Q8O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]).optional(),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]).optional(),currency_code:e__namespace.string().max(J8O).optional(),total:e__namespace.number().min(X8O).max(eYO).optional(),total_with_tax:e__namespace.number().min(tYO).max(nYO).optional(),total_discount:e__namespace.number().min(sYO).max(oYO).optional(),total_shipping:e__namespace.number().min(iYO).max(aYO).optional(),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional()})).min(1).optional(),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e__namespace.string().max(rYO).nullish(),payment_gateway:e__namespace.string().max(lYO).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data.")}),dYO=36,cYO=36,uYO=36,pYO=255,mYO=100,xYO=20,gYO=255,yYO=255,OYO=36,vYO=3,hYO=-140737488355328,bYO=0x7fffffffffff,SYO=-140737488355328,fYO=0x7fffffffffff,zYO=-140737488355328,IYO=0x7fffffffffff,BYO=-140737488355328,EYO=0x7fffffffffff,TYO=500,DYO=500,RYO=500,_YO=500,NYO=500,MYO=500,UYO=500,PYO=500,CYO=500,wYO=500,AYO=500,FYO=500,kYO=500,jYO=500,HYO=500,LYO=500,GYO=500,VYO=500,KYO=500,ZYO=50,qYO=100,WYO=36,YYO=36,$YO=255,QYO=2e3,Okb=e__namespace.object({id:e__namespace.string().max(dYO),entity_id:e__namespace.string().max(cYO),order_integration_id:e__namespace.string().max(uYO),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(pYO),source_order_number:e__namespace.string().max(mYO).nullish(),document_locale:e__namespace.string().max(xYO).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max(gYO).nullish(),customer_email:e__namespace.string().max(yYO).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(OYO).nullish(),currency_code:e__namespace.string().max(vYO),total:e__namespace.number().min(hYO).max(bYO),total_with_tax:e__namespace.number().min(SYO).max(fYO),total_discount:e__namespace.number().min(zYO).max(IYO),total_shipping:e__namespace.number().min(BYO).max(EYO),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(TYO).optional(),"de-DE":e__namespace.string().max(DYO).optional(),"it-IT":e__namespace.string().max(RYO).optional(),"fr-FR":e__namespace.string().max(_YO).optional(),"es-ES":e__namespace.string().max(NYO).optional(),"sl-SI":e__namespace.string().max(MYO).optional(),"pt-PT":e__namespace.string().max(UYO).optional(),"nl-NL":e__namespace.string().max(PYO).optional(),"pl-PL":e__namespace.string().max(CYO).optional(),"hr-HR":e__namespace.string().max(wYO).optional(),"sv-SE":e__namespace.string().max(AYO).optional(),"fi-FI":e__namespace.string().max(FYO).optional(),"et-EE":e__namespace.string().max(kYO).optional(),"bg-BG":e__namespace.string().max(jYO).optional(),"cs-CZ":e__namespace.string().max(HYO).optional(),"sk-SK":e__namespace.string().max(LYO).optional(),"nb-NO":e__namespace.string().max(GYO).optional(),"is-IS":e__namespace.string().max(VYO).optional(),"hu-HU":e__namespace.string().max(KYO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(ZYO).nullish(),payment_gateway:e__namespace.string().max(qYO).nullish(),invoice_id:e__namespace.string().max(WYO).nullish(),estimate_id:e__namespace.string().max(YYO).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max($YO).nullish(),error:e__namespace.string().max(QYO).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order"),JYO=/^[a-z]{3,4}_[0-9a-f]{24}$/,vkb=e__namespace.object({id:e__namespace.stringFormat("resource-id",JYO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),hkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),XYO=/^[a-z]{3,4}_[0-9a-f]{24}$/,bkb=e__namespace.object({id:e__namespace.stringFormat("resource-id",XYO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Skb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),e$O=36,t$O=36,n$O=36,s$O=255,o$O=100,i$O=20,a$O=255,r$O=255,l$O=36,d$O=3,c$O=-140737488355328,u$O=0x7fffffffffff,p$O=-140737488355328,m$O=0x7fffffffffff,x$O=-140737488355328,g$O=0x7fffffffffff,y$O=-140737488355328,O$O=0x7fffffffffff,v$O=500,h$O=500,b$O=500,S$O=500,f$O=500,z$O=500,I$O=500,B$O=500,E$O=500,T$O=500,D$O=500,R$O=500,_$O=500,N$O=500,M$O=500,U$O=500,P$O=500,C$O=500,w$O=500,A$O=50,F$O=100,k$O=36,j$O=36,H$O=255,L$O=2e3,fkb=e__namespace.object({id:e__namespace.string().max(e$O),entity_id:e__namespace.string().max(t$O),order_integration_id:e__namespace.string().max(n$O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(s$O),source_order_number:e__namespace.string().max(o$O).nullish(),document_locale:e__namespace.string().max(i$O).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max(a$O).nullish(),customer_email:e__namespace.string().max(r$O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(l$O).nullish(),currency_code:e__namespace.string().max(d$O),total:e__namespace.number().min(c$O).max(u$O),total_with_tax:e__namespace.number().min(p$O).max(m$O),total_discount:e__namespace.number().min(x$O).max(g$O),total_shipping:e__namespace.number().min(y$O).max(O$O),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(v$O).optional(),"de-DE":e__namespace.string().max(h$O).optional(),"it-IT":e__namespace.string().max(b$O).optional(),"fr-FR":e__namespace.string().max(S$O).optional(),"es-ES":e__namespace.string().max(f$O).optional(),"sl-SI":e__namespace.string().max(z$O).optional(),"pt-PT":e__namespace.string().max(I$O).optional(),"nl-NL":e__namespace.string().max(B$O).optional(),"pl-PL":e__namespace.string().max(E$O).optional(),"hr-HR":e__namespace.string().max(T$O).optional(),"sv-SE":e__namespace.string().max(D$O).optional(),"fi-FI":e__namespace.string().max(R$O).optional(),"et-EE":e__namespace.string().max(_$O).optional(),"bg-BG":e__namespace.string().max(N$O).optional(),"cs-CZ":e__namespace.string().max(M$O).optional(),"sk-SK":e__namespace.string().max(U$O).optional(),"nb-NO":e__namespace.string().max(P$O).optional(),"is-IS":e__namespace.string().max(C$O).optional(),"hu-HU":e__namespace.string().max(w$O).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(A$O).nullish(),payment_gateway:e__namespace.string().max(F$O).nullish(),invoice_id:e__namespace.string().max(k$O).nullish(),estimate_id:e__namespace.string().max(j$O).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max(H$O).nullish(),error:e__namespace.string().max(L$O).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order"),G$O=/^[a-z]{3,4}_[0-9a-f]{24}$/,zkb=e__namespace.object({id:e__namespace.stringFormat("resource-id",G$O).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Ikb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),V$O=36,K$O=36,Z$O=36,q$O=255,W$O=100,Y$O=20,$$O=255,Q$O=255,J$O=36,X$O=3,eQO=-140737488355328,tQO=0x7fffffffffff,nQO=-140737488355328,sQO=0x7fffffffffff,oQO=-140737488355328,iQO=0x7fffffffffff,aQO=-140737488355328,rQO=0x7fffffffffff,lQO=500,dQO=500,cQO=500,uQO=500,pQO=500,mQO=500,xQO=500,gQO=500,yQO=500,OQO=500,vQO=500,hQO=500,bQO=500,SQO=500,fQO=500,zQO=500,IQO=500,BQO=500,EQO=500,TQO=50,DQO=100,RQO=36,_QO=36,NQO=255,MQO=2e3,Bkb=e__namespace.object({id:e__namespace.string().max(V$O),entity_id:e__namespace.string().max(K$O),order_integration_id:e__namespace.string().max(Z$O),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(q$O),source_order_number:e__namespace.string().max(W$O).nullish(),document_locale:e__namespace.string().max(Y$O).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max($$O).nullish(),customer_email:e__namespace.string().max(Q$O).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(J$O).nullish(),currency_code:e__namespace.string().max(X$O),total:e__namespace.number().min(eQO).max(tQO),total_with_tax:e__namespace.number().min(nQO).max(sQO),total_discount:e__namespace.number().min(oQO).max(iQO),total_shipping:e__namespace.number().min(aQO).max(rQO),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(lQO).optional(),"de-DE":e__namespace.string().max(dQO).optional(),"it-IT":e__namespace.string().max(cQO).optional(),"fr-FR":e__namespace.string().max(uQO).optional(),"es-ES":e__namespace.string().max(pQO).optional(),"sl-SI":e__namespace.string().max(mQO).optional(),"pt-PT":e__namespace.string().max(xQO).optional(),"nl-NL":e__namespace.string().max(gQO).optional(),"pl-PL":e__namespace.string().max(yQO).optional(),"hr-HR":e__namespace.string().max(OQO).optional(),"sv-SE":e__namespace.string().max(vQO).optional(),"fi-FI":e__namespace.string().max(hQO).optional(),"et-EE":e__namespace.string().max(bQO).optional(),"bg-BG":e__namespace.string().max(SQO).optional(),"cs-CZ":e__namespace.string().max(fQO).optional(),"sk-SK":e__namespace.string().max(zQO).optional(),"nb-NO":e__namespace.string().max(IQO).optional(),"is-IS":e__namespace.string().max(BQO).optional(),"hu-HU":e__namespace.string().max(EQO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(TQO).nullish(),payment_gateway:e__namespace.string().max(DQO).nullish(),invoice_id:e__namespace.string().max(RQO).nullish(),estimate_id:e__namespace.string().max(_QO).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max(NQO).nullish(),error:e__namespace.string().max(MQO).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order"),UQO=/^[a-z]{3,4}_[0-9a-f]{24}$/,Ekb=e__namespace.object({id:e__namespace.stringFormat("resource-id",UQO).describe("Unique resource identifier. Prefix depends on the resource, for example inv_, cus_, or ent_.")}),Tkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),PQO=36,CQO=36,wQO=36,AQO=255,FQO=100,kQO=20,jQO=255,HQO=255,LQO=36,GQO=3,VQO=-140737488355328,KQO=0x7fffffffffff,ZQO=-140737488355328,qQO=0x7fffffffffff,WQO=-140737488355328,YQO=0x7fffffffffff,$QO=-140737488355328,QQO=0x7fffffffffff,JQO=500,XQO=500,eJO=500,tJO=500,nJO=500,sJO=500,oJO=500,iJO=500,aJO=500,rJO=500,lJO=500,dJO=500,cJO=500,uJO=500,pJO=500,mJO=500,xJO=500,gJO=500,yJO=500,OJO=50,vJO=100,hJO=36,bJO=36,SJO=255,fJO=2e3,Dkb=e__namespace.object({id:e__namespace.string().max(PQO),entity_id:e__namespace.string().max(CQO),order_integration_id:e__namespace.string().max(wQO),source:e__namespace.enum(["shopify","woocommerce","magento","custom","manual"]).describe("Order source platform"),source_id:e__namespace.string().max(AQO),source_order_number:e__namespace.string().max(FQO).nullish(),document_locale:e__namespace.string().max(kQO).nullish(),status:e__namespace.enum(["pending","processing","invoiced","estimated","cancelled","failed"]).describe("Order processing status"),paid:e__namespace.boolean(),paid_at:e__namespace.iso.datetime({}).nullish(),fulfilled:e__namespace.boolean(),fulfilled_at:e__namespace.iso.datetime({}).nullish(),cancelled:e__namespace.boolean(),cancelled_at:e__namespace.iso.datetime({}).nullish(),refunded:e__namespace.boolean(),refunded_at:e__namespace.iso.datetime({}).nullish(),customer_name:e__namespace.string().max(jQO).nullish(),customer_email:e__namespace.string().max(HQO).nullish(),customer:e__namespace.union([e__namespace.object({phone:e__namespace.string().optional(),company_name:e__namespace.string().optional(),tax_number:e__namespace.string().optional(),company_number:e__namespace.string().optional(),is_business:e__namespace.boolean().optional(),notes:e__namespace.string().optional()}),e__namespace.null()]),billing_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),shipping_address:e__namespace.union([e__namespace.object({name:e__namespace.string().nullish(),company:e__namespace.string().nullish(),phone:e__namespace.string().nullish(),address:e__namespace.string().optional(),address_2:e__namespace.string().optional(),city:e__namespace.string().optional(),state:e__namespace.string().optional(),post_code:e__namespace.string().optional(),country:e__namespace.string().optional(),country_code:e__namespace.string().optional()}),e__namespace.null()]),customer_id:e__namespace.string().max(LQO).nullish(),currency_code:e__namespace.string().max(GQO),total:e__namespace.number().min(VQO).max(KQO),total_with_tax:e__namespace.number().min(ZQO).max(qQO),total_discount:e__namespace.number().min(WQO).max(YQO),total_shipping:e__namespace.number().min($QO).max(QQO),items:e__namespace.array(e__namespace.object({name:e__namespace.string(),quantity:e__namespace.number(),price:e__namespace.number(),gross_price:e__namespace.number().optional(),total:e__namespace.number(),total_with_tax:e__namespace.number(),tax_rate:e__namespace.number().optional(),taxes:e__namespace.array(e__namespace.object({rate:e__namespace.number()})).optional(),sku:e__namespace.string().optional(),source_id:e__namespace.string().optional(),discount:e__namespace.number().optional(),unit:e__namespace.string().optional(),kind:e__namespace.enum(["line_item","shipping","fee"]).optional(),translations:e__namespace.object({name:e__namespace.object({"en-US":e__namespace.string().max(JQO).optional(),"de-DE":e__namespace.string().max(XQO).optional(),"it-IT":e__namespace.string().max(eJO).optional(),"fr-FR":e__namespace.string().max(tJO).optional(),"es-ES":e__namespace.string().max(nJO).optional(),"sl-SI":e__namespace.string().max(sJO).optional(),"pt-PT":e__namespace.string().max(oJO).optional(),"nl-NL":e__namespace.string().max(iJO).optional(),"pl-PL":e__namespace.string().max(aJO).optional(),"hr-HR":e__namespace.string().max(rJO).optional(),"sv-SE":e__namespace.string().max(lJO).optional(),"fi-FI":e__namespace.string().max(dJO).optional(),"et-EE":e__namespace.string().max(cJO).optional(),"bg-BG":e__namespace.string().max(uJO).optional(),"cs-CZ":e__namespace.string().max(pJO).optional(),"sk-SK":e__namespace.string().max(mJO).optional(),"nb-NO":e__namespace.string().max(xJO).optional(),"is-IS":e__namespace.string().max(gJO).optional(),"hu-HU":e__namespace.string().max(yJO).optional()}).optional().describe("Translated user-authored document content keyed by full supported locales such as `de-DE`. Values may be empty strings to intentionally blank content for a locale.")}).optional().describe("Buyer-language product name captured from the store's own translations when the order was first ingested (Shopify with `buyer_language_item_names`), keyed by full supported locales. `name` stays the store's default-language name.")})),payment_status:e__namespace.enum(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e__namespace.string().max(OJO).nullish(),payment_gateway:e__namespace.string().max(vJO).nullish(),invoice_id:e__namespace.string().max(hJO).nullish(),estimate_id:e__namespace.string().max(bJO).nullish(),process_after:e__namespace.iso.datetime({}).nullish(),transactions:e__namespace.array(e__namespace.object({source_id:e__namespace.string().optional(),amount:e__namespace.number(),gateway:e__namespace.string(),status:e__namespace.string(),tag:e__namespace.string().optional(),date:e__namespace.string(),note:e__namespace.string().optional()})),complete:e__namespace.boolean(),items_changed_after_processing:e__namespace.boolean(),raw_data:e__namespace.record(e__namespace.string(),e__namespace.unknown()).nullish(),source_event_id:e__namespace.string().max(SJO).nullish(),error:e__namespace.string().max(fJO).nullish(),ordered_at:e__namespace.iso.datetime({}).nullish(),processed_at:e__namespace.iso.datetime({}).nullish(),metadata:e__namespace.union([e__namespace.string(),e__namespace.number(),e__namespace.boolean(),e__namespace.null(),e__namespace.record(e__namespace.string(),e__namespace.unknown()),e__namespace.array(e__namespace.unknown())]),deleted_at:e__namespace.iso.datetime({}).nullish(),created_at:e__namespace.iso.datetime({}),updated_at:e__namespace.iso.datetime({})}).describe("Order information").and(e__namespace.looseObject({})).describe("Order"),Rkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),zJO=500,IJO=/^\d{4}-\d{2}-\d{2}$/,BJO=/^\d{4}-\d{2}-\d{2}$/,_kb=e__namespace.object({order_ids:e__namespace.array(e__namespace.string()).min(1).max(zJO).nullish().describe("Specific order IDs to export (1-500). Orders that do not belong to the entity or are deleted are ignored. Provide either order_ids or date_from + date_to, not both. Omit or use null to select by date range."),date_from:e__namespace.string().regex(IJO).nullish().describe("Start of the order date range (YYYY-MM-DD, interpreted in the entity time zone, inclusive). Orders are matched on their order date (ordered_at, falling back to created_at); deleted and cancelled orders are excluded. Required together with date_to when order_ids is omitted. Omit or use null to skip."),date_to:e__namespace.string().regex(BJO).nullish().describe("End of the order date range (YYYY-MM-DD, interpreted in the entity time zone, inclusive). The range cannot exceed 1 year. Omit or use null to skip."),output:e__namespace.union([e__namespace.literal("single_pdf"),e__namespace.literal("zip"),e__namespace.literal(null)]).nullish().describe("single_pdf (default) puts every order into one PDF, one page per order. zip returns one PDF per order inside a ZIP archive. single_pdf is limited to 500 orders per export and zip to 2000; for more orders use zip or a shorter date range. Omit or use null for the default."),language:e__namespace.union([e__namespace.literal("en"),e__namespace.literal("de"),e__namespace.literal("sl"),e__namespace.literal("it"),e__namespace.literal("fr"),e__namespace.literal("es"),e__namespace.literal("pt"),e__namespace.literal("nl"),e__namespace.literal("pl"),e__namespace.literal("hr"),e__namespace.literal("sv"),e__namespace.literal("fi"),e__namespace.literal("et"),e__namespace.literal("bg"),e__namespace.literal("cs"),e__namespace.literal("sk"),e__namespace.literal("nb"),e__namespace.literal("is"),e__namespace.literal("hu"),e__namespace.literal(null)]).nullish().describe("Override the label language of the packing list. When omitted or null, defaults to the entity locale.")}),Nkb=e__namespace.object({jobId:e__namespace.string().describe("Export job ID")}),Mkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Ukb=e__namespace.object({id:e__namespace.string().describe("Export job ID"),status:e__namespace.enum(["pending","processing","completed","failed"]).describe("Export job status"),progress:e__namespace.number().describe("Export progress. While processing, this is the number of processed documents so far. Completed jobs return 100."),total_docs:e__namespace.number().nullable().describe("Total number of documents to export"),file_url:e__namespace.string().nullable().describe("Download URL for the completed export"),file_name:e__namespace.string().nullable().describe("Suggested filename for the completed export (ZIP archive, or PDF for single-PDF order exports)"),error:e__namespace.string().nullable().describe("Error message if the export failed"),result:e__namespace.object({exported_docs:e__namespace.number().describe("Number of files included in the archive"),skipped_docs:e__namespace.number().describe("Number of documents skipped because they were not valid for export")}).nullable().describe("Optional async export result summary")}),Pkb=e__namespace.object({jobId:e__namespace.string().describe("Export job ID")}),Ckb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")});var Wt={};Q(Wt,{GetPaymentRemindersHeader:()=>jkb,GetPaymentRemindersQueryParams:()=>kkb,GetPaymentRemindersResponse:()=>Hkb,SendPaymentReminderBody:()=>Akb,SendPaymentReminderHeader:()=>wkb,SendPaymentReminderResponse:()=>Fkb,getPaymentRemindersQueryLimitDefault:()=>RJO,getPaymentRemindersQueryLimitMax:()=>_JO,sendPaymentReminderBodySandboxSkipDeliveryDefault:()=>TJO,sendPaymentReminderBodySubjectMax:()=>EJO,sendPaymentReminderResponseOverdueInvoiceCountMin:()=>DJO});var wkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),EJO=255,TJO=false,Akb=e__namespace.object({customer_id:e__namespace.string().min(1).describe("Customer id to send one payment reminder for. All overdue unpaid invoices for the customer are included."),recipient_email:e__namespace.email().nullish().describe("Optional recipient override for this manual reminder. When omitted, the customer's saved email is used."),subject:e__namespace.string().min(1).max(EJO).nullish().describe("Optional subject override. When omitted, configured payment reminder defaults are used."),body_text:e__namespace.string().min(1).nullish().describe("Optional reminder body override. Supports reminder smart codes such as {invoice_list}."),payment_instructions:e__namespace.string().nullish().describe("Optional payment instructions override. Bank account placeholders are resolved before sending."),locale:e__namespace.union([e__namespace.literal("en-US"),e__namespace.literal("en-GB"),e__namespace.literal("de-DE"),e__namespace.literal("it-IT"),e__namespace.literal("fr-FR"),e__namespace.literal("es-ES"),e__namespace.literal("sl-SI"),e__namespace.literal("pt-PT"),e__namespace.literal("nl-NL"),e__namespace.literal("pl-PL"),e__namespace.literal("hr-HR"),e__namespace.literal("sv-SE"),e__namespace.literal("fi-FI"),e__namespace.literal("et-EE"),e__namespace.literal("bg-BG"),e__namespace.literal("cs-CZ"),e__namespace.literal("sk-SK"),e__namespace.literal("nb-NO"),e__namespace.literal("is-IS"),e__namespace.literal("hu-HU"),e__namespace.literal(null)]).nullish().describe("Override reminder formatting locale. When omitted, the explicit language locale or entity locale is used."),language:e__namespace.union([e__namespace.enum(["en","de","sl","it","fr","es","pt","nl","pl","hr","sv","fi","et","bg","cs","sk","nb","is","hu"]),e__namespace.enum(["en-US","en-GB","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR","sv-SE","fi-FI","et-EE","bg-BG","cs-CZ","sk-SK","nb-NO","is-IS","hu-HU"]),e__namespace.null()]).optional().describe("Override reminder content language. Accepts a UI language code or full locale. When locale is omitted, this also controls date and number formatting."),sandbox_skip_delivery:e__namespace.boolean().default(TJO).describe("Sandbox-only dry run. Builds the reminder response without delivering email.")}),DJO=0,Fkb=e__namespace.object({message_id:e__namespace.string().describe("Email provider message id, or a sandbox skip id when delivery was skipped."),status:e__namespace.enum(["sent","skipped"]).describe("Reminder delivery status."),to:e__namespace.email().describe("Recipient email address."),subject:e__namespace.string().describe("Resolved subject that was sent."),overdue_invoice_count:e__namespace.number().min(DJO).describe("Number of overdue invoices included in the reminder."),invoice_ids:e__namespace.array(e__namespace.string()).describe("Invoice ids included in the reminder."),sandbox_skip_delivery:e__namespace.boolean().optional().describe("Present when sandbox delivery was intentionally skipped.")}),RJO=10,_JO=100,kkb=e__namespace.object({limit:e__namespace.number().min(1).max(_JO).default(RJO).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),customer_id:e__namespace.string().min(1).optional(),created_from:e__namespace.iso.datetime({offset:true}).optional().describe("Inclusive earliest creation instant."),created_to:e__namespace.iso.datetime({offset:true}).optional().describe("Exclusive latest creation instant."),trigger:e__namespace.enum(["manual","automatic"]).optional(),status:e__namespace.enum(["pending","sent","unknown","skipped"]).optional()}),jkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.")}),Hkb=e__namespace.object({data:e__namespace.array(e__namespace.object({id:e__namespace.string(),entity_id:e__namespace.string(),trigger:e__namespace.enum(["manual","automatic"]),status:e__namespace.enum(["pending","sent","unknown","skipped"]).describe("sent means provider acceptance, not confirmed delivery. pending means no final outcome has been recorded; unknown means provider acceptance is uncertain. Neither unconfirmed state is automatically retried. skipped means sandbox delivery was intentionally skipped."),to:e__namespace.string(),subject:e__namespace.string(),body_text:e__namespace.string().describe("Resolved plain-text email content at the time of the attempt."),customers:e__namespace.array(e__namespace.object({id:e__namespace.string().nullable(),name:e__namespace.string()})).describe("Customer snapshots. Automatic reminders can group multiple customers with the same recipient address; an unsaved customer has a null id."),invoices:e__namespace.array(e__namespace.object({id:e__namespace.string(),number:e__namespace.string()})).describe("Invoice references and numbers as included in this email."),message_id:e__namespace.string().nullable(),created_at:e__namespace.iso.datetime({}),sent_at:e__namespace.iso.datetime({}).nullable()})),pagination:e__namespace.object({total:e__namespace.number().describe("Total number of items available in the collection"),next_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the next page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if no more results are available."),prev_cursor:e__namespace.string().nullable().describe("Opaque cursor for fetching the previous page. It encodes the resolved sort tuple for the current result set, so reuse it only with the same effective ordering. Null if at the first page."),has_more:e__namespace.boolean().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")});var Yt={};Q(Yt,{ApplyBankTransactionCategorySuggestionsBody:()=>Ljb,ApplyBankTransactionCategorySuggestionsHeader:()=>Hjb,ApplyBankTransactionCategorySuggestionsResponse:()=>Gjb,CategorizeBankTransactionBody:()=>kjb,CategorizeBankTransactionHeader:()=>Fjb,CategorizeBankTransactionParams:()=>Ajb,CategorizeBankTransactionResponse:()=>jjb,ConfirmBankTransactionFeeBody:()=>Cjb,ConfirmBankTransactionFeeHeader:()=>Pjb,ConfirmBankTransactionFeeParams:()=>Ujb,ConfirmBankTransactionFeeResponse:()=>wjb,CreatePaymentBody:()=>Gkb,CreatePaymentHeader:()=>Lkb,DeletePaymentHeader:()=>njb,DeletePaymentParams:()=>tjb,GetBankImportHeader:()=>gjb,GetBankImportParams:()=>xjb,GetBankImportResponse:()=>yjb,GetBankImportSummaryHeader:()=>vjb,GetBankImportSummaryParams:()=>Ojb,GetBankImportSummaryResponse:()=>hjb,GetBankTransactionHeader:()=>Tjb,GetBankTransactionParams:()=>Ejb,GetBankTransactionResponse:()=>Djb,GetPaymentByIdHeader:()=>Ykb,GetPaymentByIdParams:()=>qkb,GetPaymentByIdQueryParams:()=>Wkb,GetPaymentByIdResponse:()=>$kb,GetPaymentsHeader:()=>Kkb,GetPaymentsQueryParams:()=>Vkb,GetPaymentsResponse:()=>Zkb,IgnoreBankTransactionHeader:()=>Kjb,IgnoreBankTransactionParams:()=>Vjb,IgnoreBankTransactionResponse:()=>Zjb,ImportBankStatementBody:()=>djb,ImportBankStatementHeader:()=>ljb,ImportBankStatementResponse:()=>cjb,LinkBankTransactionBody:()=>Njb,LinkBankTransactionHeader:()=>_jb,LinkBankTransactionParams:()=>Rjb,LinkBankTransactionResponse:()=>Mjb,ListBankImportsHeader:()=>pjb,ListBankImportsQueryParams:()=>ujb,ListBankImportsResponse:()=>mjb,ListBankTransactionsHeader:()=>Ijb,ListBankTransactionsQueryParams:()=>zjb,ListBankTransactionsResponse:()=>Bjb,PermanentDeletePaymentHeader:()=>rjb,PermanentDeletePaymentParams:()=>ajb,RematchBankImportHeader:()=>Sjb,RematchBankImportParams:()=>bjb,RematchBankImportResponse:()=>fjb,RestorePaymentHeader:()=>ojb,RestorePaymentParams:()=>sjb,RestorePaymentResponse:()=>ijb,UnlinkBankTransactionHeader:()=>Wjb,UnlinkBankTransactionParams:()=>qjb,UnlinkBankTransactionResponse:()=>Yjb,UpdatePaymentBody:()=>Xkb,UpdatePaymentHeader:()=>Jkb,UpdatePaymentParams:()=>Qkb,UpdatePaymentResponse:()=>ejb,applyBankTransactionCategorySuggestionsBodyTransactionIdsItemMax:()=>fov,applyBankTransactionCategorySuggestionsBodyTransactionIdsMax:()=>zov,categorizeBankTransactionBodyContactIdMax:()=>rov,categorizeBankTransactionBodyMemoMax:()=>lov,categorizeBankTransactionPathIdRegExp:()=>aov,categorizeBankTransactionResponseAccountIbanMax:()=>bov,categorizeBankTransactionResponseBankTransactionRefMax:()=>pov,categorizeBankTransactionResponseCounterpartyBicMax:()=>yov,categorizeBankTransactionResponseCounterpartyIbanMax:()=>gov,categorizeBankTransactionResponseCounterpartyNameMax:()=>xov,categorizeBankTransactionResponseCurrencyCodeMax:()=>mov,categorizeBankTransactionResponseDescriptionMax:()=>vov,categorizeBankTransactionResponseEntityIdMax:()=>cov,categorizeBankTransactionResponseIdMax:()=>dov,categorizeBankTransactionResponseImportIdMax:()=>uov,categorizeBankTransactionResponsePaymentIdMax:()=>Sov,categorizeBankTransactionResponseReferenceMax:()=>Oov,categorizeBankTransactionResponseTransactionTypeMax:()=>hov,confirmBankTransactionFeeBodyCategoryMax:()=>Zsv,confirmBankTransactionFeePathIdRegExp:()=>Ksv,confirmBankTransactionFeeResponseAccountIbanMax:()=>oov,confirmBankTransactionFeeResponseBankTransactionRefMax:()=>$sv,confirmBankTransactionFeeResponseCounterpartyBicMax:()=>eov,confirmBankTransactionFeeResponseCounterpartyIbanMax:()=>Xsv,confirmBankTransactionFeeResponseCounterpartyNameMax:()=>Jsv,confirmBankTransactionFeeResponseCurrencyCodeMax:()=>Qsv,confirmBankTransactionFeeResponseDescriptionMax:()=>nov,confirmBankTransactionFeeResponseEntityIdMax:()=>Wsv,confirmBankTransactionFeeResponseIdMax:()=>qsv,confirmBankTransactionFeeResponseImportIdMax:()=>Ysv,confirmBankTransactionFeeResponsePaymentIdMax:()=>iov,confirmBankTransactionFeeResponseReferenceMax:()=>tov,confirmBankTransactionFeeResponseTransactionTypeMax:()=>sov,createPaymentBodyAdvanceInvoiceIdMax:()=>PJO,createPaymentBodyAmountExclusiveMin:()=>AJO,createPaymentBodyAppliedToExpenseIdMax:()=>wJO,createPaymentBodyCreditNoteIdMax:()=>UJO,createPaymentBodyDocumentIdMax:()=>HJO,createPaymentBodyExpenseIdMax:()=>CJO,createPaymentBodyInvoiceIdMax:()=>MJO,createPaymentBodyNoteMax:()=>jJO,createPaymentBodyReferenceMax:()=>kJO,createPaymentBodyTagMax:()=>FJO,createPaymentHeaderXRequestIdMax:()=>NJO,deletePaymentPathIdRegExp:()=>Rev,getBankImportPathIdRegExp:()=>env,getBankImportResponseAccountIbanMax:()=>snv,getBankImportResponseDuplicateCountMax:()=>lnv,getBankImportResponseDuplicateCountMin:()=>rnv,getBankImportResponseEntityIdMax:()=>nnv,getBankImportResponseErrorCodeMax:()=>unv,getBankImportResponseErrorMessageMax:()=>pnv,getBankImportResponseIdMax:()=>tnv,getBankImportResponseImportedCountMax:()=>anv,getBankImportResponseImportedCountMin:()=>inv,getBankImportResponseRequestIdMax:()=>mnv,getBankImportResponseSkippedCountMax:()=>cnv,getBankImportResponseSkippedCountMin:()=>dnv,getBankImportResponseSourceBytesMax:()=>Onv,getBankImportResponseSourceBytesMin:()=>ynv,getBankImportResponseSourceContentSha256Max:()=>vnv,getBankImportResponseSourceFilenameMax:()=>xnv,getBankImportResponseSourceMimeTypeMax:()=>gnv,getBankImportResponseStatementClosingBalanceRegExp:()=>onv,getBankImportSummaryPathIdRegExp:()=>hnv,getBankImportSummaryResponseAutoMatchedMin:()=>Snv,getBankImportSummaryResponseFeeCandidatesMin:()=>Tnv,getBankImportSummaryResponseIgnoredMin:()=>Env,getBankImportSummaryResponseResolvedAccountMin:()=>Bnv,getBankImportSummaryResponseResolvedFeeMin:()=>Inv,getBankImportSummaryResponseResolvedLinkMin:()=>znv,getBankImportSummaryResponseSuggestedMin:()=>fnv,getBankImportSummaryResponseUnmatchedMin:()=>bnv,getBankTransactionPathIdRegExp:()=>ysv,getBankTransactionResponseAccountIbanMax:()=>Dsv,getBankTransactionResponseBankTransactionRefMax:()=>bsv,getBankTransactionResponseCounterpartyBicMax:()=>Isv,getBankTransactionResponseCounterpartyIbanMax:()=>zsv,getBankTransactionResponseCounterpartyNameMax:()=>fsv,getBankTransactionResponseCurrencyCodeMax:()=>Ssv,getBankTransactionResponseDescriptionMax:()=>Esv,getBankTransactionResponseEntityIdMax:()=>vsv,getBankTransactionResponseIdMax:()=>Osv,getBankTransactionResponseImportIdMax:()=>hsv,getBankTransactionResponsePaymentIdMax:()=>Rsv,getBankTransactionResponseReferenceMax:()=>Bsv,getBankTransactionResponseTransactionTypeMax:()=>Tsv,getPaymentByIdPathIdRegExp:()=>hXO,getPaymentByIdResponseAdvanceInvoiceIdMax:()=>zXO,getPaymentByIdResponseAdvanceInvoiceIdMaxOne:()=>AXO,getPaymentByIdResponseAdvanceInvoiceNumberMax:()=>FXO,getPaymentByIdResponseAmountConvertedMax:()=>DXO,getPaymentByIdResponseAmountConvertedMin:()=>TXO,getPaymentByIdResponseAppliedToExpenseDateRegExp:()=>ZXO,getPaymentByIdResponseAppliedToExpenseIdMax:()=>BXO,getPaymentByIdResponseAppliedToExpenseIdMaxOne:()=>VXO,getPaymentByIdResponseAppliedToExpenseSupplierDocumentNumberMax:()=>KXO,getPaymentByIdResponseAppliedToExpenseTotalWithTaxMax:()=>WXO,getPaymentByIdResponseAppliedToExpenseTotalWithTaxMin:()=>qXO,getPaymentByIdResponseCreditNoteIdMax:()=>fXO,getPaymentByIdResponseCreditNoteIdMaxOne:()=>CXO,getPaymentByIdResponseCreditNoteNumberMax:()=>wXO,getPaymentByIdResponseCurrencyCodeMax:()=>EXO,getPaymentByIdResponseEntityIdMax:()=>MXO,getPaymentByIdResponseExpenseDateRegExp:()=>HXO,getPaymentByIdResponseExpenseIdMax:()=>IXO,getPaymentByIdResponseExpenseIdMaxOne:()=>kXO,getPaymentByIdResponseExpenseSupplierDocumentNumberMax:()=>jXO,getPaymentByIdResponseExpenseTotalWithTaxMax:()=>GXO,getPaymentByIdResponseExpenseTotalWithTaxMin:()=>LXO,getPaymentByIdResponseIdMax:()=>bXO,getPaymentByIdResponseInvoiceIdMax:()=>SXO,getPaymentByIdResponseInvoiceIdMaxOne:()=>UXO,getPaymentByIdResponseInvoiceNumberMax:()=>PXO,getPaymentByIdResponseNoteMax:()=>NXO,getPaymentByIdResponseReferenceMax:()=>_XO,getPaymentByIdResponseTagMax:()=>RXO,getPaymentsQueryLimitDefault:()=>LJO,getPaymentsQueryLimitMax:()=>GJO,getPaymentsResponseDataItemAdvanceInvoiceIdMax:()=>qJO,getPaymentsResponseDataItemAdvanceInvoiceIdMaxOne:()=>rXO,getPaymentsResponseDataItemAdvanceInvoiceNumberMax:()=>lXO,getPaymentsResponseDataItemAmountConvertedMax:()=>JJO,getPaymentsResponseDataItemAmountConvertedMin:()=>QJO,getPaymentsResponseDataItemAppliedToExpenseDateRegExp:()=>yXO,getPaymentsResponseDataItemAppliedToExpenseIdMax:()=>YJO,getPaymentsResponseDataItemAppliedToExpenseIdMaxOne:()=>xXO,getPaymentsResponseDataItemAppliedToExpenseSupplierDocumentNumberMax:()=>gXO,getPaymentsResponseDataItemAppliedToExpenseTotalWithTaxMax:()=>vXO,getPaymentsResponseDataItemAppliedToExpenseTotalWithTaxMin:()=>OXO,getPaymentsResponseDataItemCreditNoteIdMax:()=>ZJO,getPaymentsResponseDataItemCreditNoteIdMaxOne:()=>iXO,getPaymentsResponseDataItemCreditNoteNumberMax:()=>aXO,getPaymentsResponseDataItemCurrencyCodeMax:()=>$JO,getPaymentsResponseDataItemEntityIdMax:()=>nXO,getPaymentsResponseDataItemExpenseDateRegExp:()=>uXO,getPaymentsResponseDataItemExpenseIdMax:()=>WJO,getPaymentsResponseDataItemExpenseIdMaxOne:()=>dXO,getPaymentsResponseDataItemExpenseSupplierDocumentNumberMax:()=>cXO,getPaymentsResponseDataItemExpenseTotalWithTaxMax:()=>mXO,getPaymentsResponseDataItemExpenseTotalWithTaxMin:()=>pXO,getPaymentsResponseDataItemIdMax:()=>VJO,getPaymentsResponseDataItemInvoiceIdMax:()=>KJO,getPaymentsResponseDataItemInvoiceIdMaxOne:()=>sXO,getPaymentsResponseDataItemInvoiceNumberMax:()=>oXO,getPaymentsResponseDataItemNoteMax:()=>tXO,getPaymentsResponseDataItemReferenceMax:()=>eXO,getPaymentsResponseDataItemTagMax:()=>XJO,ignoreBankTransactionPathIdRegExp:()=>Iov,ignoreBankTransactionResponseAccountIbanMax:()=>wov,ignoreBankTransactionResponseBankTransactionRefMax:()=>Dov,ignoreBankTransactionResponseCounterpartyBicMax:()=>Mov,ignoreBankTransactionResponseCounterpartyIbanMax:()=>Nov,ignoreBankTransactionResponseCounterpartyNameMax:()=>_ov,ignoreBankTransactionResponseCurrencyCodeMax:()=>Rov,ignoreBankTransactionResponseDescriptionMax:()=>Pov,ignoreBankTransactionResponseEntityIdMax:()=>Eov,ignoreBankTransactionResponseIdMax:()=>Bov,ignoreBankTransactionResponseImportIdMax:()=>Tov,ignoreBankTransactionResponsePaymentIdMax:()=>Aov,ignoreBankTransactionResponseReferenceMax:()=>Uov,ignoreBankTransactionResponseTransactionTypeMax:()=>Cov,importBankStatementHeaderXRequestIdMax:()=>rtv,importBankStatementResponseOneAccountIbanMax:()=>ctv,importBankStatementResponseOneDuplicateCountMax:()=>gtv,importBankStatementResponseOneDuplicateCountMin:()=>xtv,importBankStatementResponseOneEntityIdMax:()=>dtv,importBankStatementResponseOneErrorCodeMax:()=>vtv,importBankStatementResponseOneErrorMessageMax:()=>htv,importBankStatementResponseOneIdMax:()=>ltv,importBankStatementResponseOneImportedCountMax:()=>mtv,importBankStatementResponseOneImportedCountMin:()=>ptv,importBankStatementResponseOneRequestIdMax:()=>btv,importBankStatementResponseOneSkippedCountMax:()=>Otv,importBankStatementResponseOneSkippedCountMin:()=>ytv,importBankStatementResponseOneSourceBytesMax:()=>Itv,importBankStatementResponseOneSourceBytesMin:()=>ztv,importBankStatementResponseOneSourceContentSha256Max:()=>Btv,importBankStatementResponseOneSourceFilenameMax:()=>Stv,importBankStatementResponseOneSourceMimeTypeMax:()=>ftv,importBankStatementResponseOneStatementClosingBalanceRegExp:()=>utv,importBankStatementResponseTwoMatchSummaryAutoMatchedMin:()=>Ttv,importBankStatementResponseTwoMatchSummaryFeeCandidatesMin:()=>Utv,importBankStatementResponseTwoMatchSummaryIgnoredMin:()=>Mtv,importBankStatementResponseTwoMatchSummaryResolvedAccountMin:()=>Ntv,importBankStatementResponseTwoMatchSummaryResolvedFeeMin:()=>_tv,importBankStatementResponseTwoMatchSummaryResolvedLinkMin:()=>Rtv,importBankStatementResponseTwoMatchSummarySuggestedMin:()=>Dtv,importBankStatementResponseTwoMatchSummaryUnmatchedMin:()=>Etv,linkBankTransactionBodyAmountExclusiveMin:()=>Nsv,linkBankTransactionPathIdRegExp:()=>_sv,linkBankTransactionResponseAccountIbanMax:()=>Gsv,linkBankTransactionResponseBankTransactionRefMax:()=>Csv,linkBankTransactionResponseCounterpartyBicMax:()=>ksv,linkBankTransactionResponseCounterpartyIbanMax:()=>Fsv,linkBankTransactionResponseCounterpartyNameMax:()=>Asv,linkBankTransactionResponseCurrencyCodeMax:()=>wsv,linkBankTransactionResponseDescriptionMax:()=>Hsv,linkBankTransactionResponseEntityIdMax:()=>Usv,linkBankTransactionResponseIdMax:()=>Msv,linkBankTransactionResponseImportIdMax:()=>Psv,linkBankTransactionResponsePaymentIdMax:()=>Vsv,linkBankTransactionResponseReferenceMax:()=>jsv,linkBankTransactionResponseTransactionTypeMax:()=>Lsv,listBankImportsQueryLimitDefault:()=>Ptv,listBankImportsQueryLimitMax:()=>Ctv,listBankImportsResponseDataItemAccountIbanMax:()=>Ftv,listBankImportsResponseDataItemDuplicateCountMax:()=>Gtv,listBankImportsResponseDataItemDuplicateCountMin:()=>Ltv,listBankImportsResponseDataItemEntityIdMax:()=>Atv,listBankImportsResponseDataItemErrorCodeMax:()=>Ztv,listBankImportsResponseDataItemErrorMessageMax:()=>qtv,listBankImportsResponseDataItemIdMax:()=>wtv,listBankImportsResponseDataItemImportedCountMax:()=>Htv,listBankImportsResponseDataItemImportedCountMin:()=>jtv,listBankImportsResponseDataItemRequestIdMax:()=>Wtv,listBankImportsResponseDataItemSkippedCountMax:()=>Ktv,listBankImportsResponseDataItemSkippedCountMin:()=>Vtv,listBankImportsResponseDataItemSourceBytesMax:()=>Jtv,listBankImportsResponseDataItemSourceBytesMin:()=>Qtv,listBankImportsResponseDataItemSourceContentSha256Max:()=>Xtv,listBankImportsResponseDataItemSourceFilenameMax:()=>Ytv,listBankImportsResponseDataItemSourceMimeTypeMax:()=>$tv,listBankImportsResponseDataItemStatementClosingBalanceRegExp:()=>ktv,listBankTransactionsQueryLimitDefault:()=>tsv,listBankTransactionsQueryLimitMax:()=>nsv,listBankTransactionsResponseDataItemAccountIbanMax:()=>xsv,listBankTransactionsResponseDataItemBankTransactionRefMax:()=>asv,listBankTransactionsResponseDataItemCounterpartyBicMax:()=>csv,listBankTransactionsResponseDataItemCounterpartyIbanMax:()=>dsv,listBankTransactionsResponseDataItemCounterpartyNameMax:()=>lsv,listBankTransactionsResponseDataItemCurrencyCodeMax:()=>rsv,listBankTransactionsResponseDataItemDescriptionMax:()=>psv,listBankTransactionsResponseDataItemEntityIdMax:()=>osv,listBankTransactionsResponseDataItemIdMax:()=>ssv,listBankTransactionsResponseDataItemImportIdMax:()=>isv,listBankTransactionsResponseDataItemPaymentIdMax:()=>gsv,listBankTransactionsResponseDataItemReferenceMax:()=>usv,listBankTransactionsResponseDataItemTransactionTypeMax:()=>msv,permanentDeletePaymentPathIdRegExp:()=>atv,rematchBankImportPathIdRegExp:()=>Dnv,rematchBankImportResponseOneAccountIbanMax:()=>Nnv,rematchBankImportResponseOneDuplicateCountMax:()=>wnv,rematchBankImportResponseOneDuplicateCountMin:()=>Cnv,rematchBankImportResponseOneEntityIdMax:()=>_nv,rematchBankImportResponseOneErrorCodeMax:()=>knv,rematchBankImportResponseOneErrorMessageMax:()=>jnv,rematchBankImportResponseOneIdMax:()=>Rnv,rematchBankImportResponseOneImportedCountMax:()=>Pnv,rematchBankImportResponseOneImportedCountMin:()=>Unv,rematchBankImportResponseOneRequestIdMax:()=>Hnv,rematchBankImportResponseOneSkippedCountMax:()=>Fnv,rematchBankImportResponseOneSkippedCountMin:()=>Anv,rematchBankImportResponseOneSourceBytesMax:()=>Knv,rematchBankImportResponseOneSourceBytesMin:()=>Vnv,rematchBankImportResponseOneSourceContentSha256Max:()=>Znv,rematchBankImportResponseOneSourceFilenameMax:()=>Lnv,rematchBankImportResponseOneSourceMimeTypeMax:()=>Gnv,rematchBankImportResponseOneStatementClosingBalanceRegExp:()=>Mnv,rematchBankImportResponseTwoMatchSummaryAutoMatchedMin:()=>Wnv,rematchBankImportResponseTwoMatchSummaryFeeCandidatesMin:()=>esv,rematchBankImportResponseTwoMatchSummaryIgnoredMin:()=>Xnv,rematchBankImportResponseTwoMatchSummaryResolvedAccountMin:()=>Jnv,rematchBankImportResponseTwoMatchSummaryResolvedFeeMin:()=>Qnv,rematchBankImportResponseTwoMatchSummaryResolvedLinkMin:()=>$nv,rematchBankImportResponseTwoMatchSummarySuggestedMin:()=>Ynv,rematchBankImportResponseTwoMatchSummaryUnmatchedMin:()=>qnv,restorePaymentPathIdRegExp:()=>_ev,restorePaymentResponseAdvanceInvoiceIdMax:()=>Pev,restorePaymentResponseAdvanceInvoiceIdMaxOne:()=>Wev,restorePaymentResponseAdvanceInvoiceNumberMax:()=>Yev,restorePaymentResponseAmountConvertedMax:()=>kev,restorePaymentResponseAmountConvertedMin:()=>Fev,restorePaymentResponseAppliedToExpenseDateRegExp:()=>stv,restorePaymentResponseAppliedToExpenseIdMax:()=>wev,restorePaymentResponseAppliedToExpenseIdMaxOne:()=>ttv,restorePaymentResponseAppliedToExpenseSupplierDocumentNumberMax:()=>ntv,restorePaymentResponseAppliedToExpenseTotalWithTaxMax:()=>itv,restorePaymentResponseAppliedToExpenseTotalWithTaxMin:()=>otv,restorePaymentResponseCreditNoteIdMax:()=>Uev,restorePaymentResponseCreditNoteIdMaxOne:()=>Zev,restorePaymentResponseCreditNoteNumberMax:()=>qev,restorePaymentResponseCurrencyCodeMax:()=>Aev,restorePaymentResponseEntityIdMax:()=>Gev,restorePaymentResponseExpenseDateRegExp:()=>Jev,restorePaymentResponseExpenseIdMax:()=>Cev,restorePaymentResponseExpenseIdMaxOne:()=>$ev,restorePaymentResponseExpenseSupplierDocumentNumberMax:()=>Qev,restorePaymentResponseExpenseTotalWithTaxMax:()=>etv,restorePaymentResponseExpenseTotalWithTaxMin:()=>Xev,restorePaymentResponseIdMax:()=>Nev,restorePaymentResponseInvoiceIdMax:()=>Mev,restorePaymentResponseInvoiceIdMaxOne:()=>Vev,restorePaymentResponseInvoiceNumberMax:()=>Kev,restorePaymentResponseNoteMax:()=>Lev,restorePaymentResponseReferenceMax:()=>Hev,restorePaymentResponseTagMax:()=>jev,unlinkBankTransactionPathIdRegExp:()=>Fov,unlinkBankTransactionResponseAccountIbanMax:()=>$ov,unlinkBankTransactionResponseBankTransactionRefMax:()=>Lov,unlinkBankTransactionResponseCounterpartyBicMax:()=>Zov,unlinkBankTransactionResponseCounterpartyIbanMax:()=>Kov,unlinkBankTransactionResponseCounterpartyNameMax:()=>Vov,unlinkBankTransactionResponseCurrencyCodeMax:()=>Gov,unlinkBankTransactionResponseDescriptionMax:()=>Wov,unlinkBankTransactionResponseEntityIdMax:()=>jov,unlinkBankTransactionResponseIdMax:()=>kov,unlinkBankTransactionResponseImportIdMax:()=>Hov,unlinkBankTransactionResponsePaymentIdMax:()=>Qov,unlinkBankTransactionResponseReferenceMax:()=>qov,unlinkBankTransactionResponseTransactionTypeMax:()=>Yov,updatePaymentBodyAmountExclusiveMin:()=>$XO,updatePaymentBodyNoteMax:()=>XXO,updatePaymentBodyReferenceMax:()=>JXO,updatePaymentBodyTagMax:()=>QXO,updatePaymentPathIdRegExp:()=>YXO,updatePaymentResponseAdvanceInvoiceIdMax:()=>sev,updatePaymentResponseAdvanceInvoiceIdMaxOne:()=>Oev,updatePaymentResponseAdvanceInvoiceNumberMax:()=>vev,updatePaymentResponseAmountConvertedMax:()=>lev,updatePaymentResponseAmountConvertedMin:()=>rev,updatePaymentResponseAppliedToExpenseDateRegExp:()=>Eev,updatePaymentResponseAppliedToExpenseIdMax:()=>iev,updatePaymentResponseAppliedToExpenseIdMaxOne:()=>Iev,updatePaymentResponseAppliedToExpenseSupplierDocumentNumberMax:()=>Bev,updatePaymentResponseAppliedToExpenseTotalWithTaxMax:()=>Dev,updatePaymentResponseAppliedToExpenseTotalWithTaxMin:()=>Tev,updatePaymentResponseCreditNoteIdMax:()=>nev,updatePaymentResponseCreditNoteIdMaxOne:()=>gev,updatePaymentResponseCreditNoteNumberMax:()=>yev,updatePaymentResponseCurrencyCodeMax:()=>aev,updatePaymentResponseEntityIdMax:()=>pev,updatePaymentResponseExpenseDateRegExp:()=>Sev,updatePaymentResponseExpenseIdMax:()=>oev,updatePaymentResponseExpenseIdMaxOne:()=>hev,updatePaymentResponseExpenseSupplierDocumentNumberMax:()=>bev,updatePaymentResponseExpenseTotalWithTaxMax:()=>zev,updatePaymentResponseExpenseTotalWithTaxMin:()=>fev,updatePaymentResponseIdMax:()=>eev,updatePaymentResponseInvoiceIdMax:()=>tev,updatePaymentResponseInvoiceIdMaxOne:()=>mev,updatePaymentResponseInvoiceNumberMax:()=>xev,updatePaymentResponseNoteMax:()=>uev,updatePaymentResponseReferenceMax:()=>cev,updatePaymentResponseTagMax:()=>dev});var NJO=100,Lkb=e__namespace.object({"x-entity-id":e__namespace.string().min(1).optional().describe("Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist."),"x-request-id":e__namespace.string().min(1).max(NJO).optional().describe("Optional idempotency key. Reusing it with the same authenticated entity and identical body replays the original result. A different body returns 409 idempotency_key_mismatch. A concurrent attempt returns 409 request_in_progress: wait for Retry-After, then retry the identical body with the same ID. A 503 idempotency_unavailable means the current send was not safely reserved; use a new ID only when no earlier send remains unresolved. A 503 idempotency_legacy_scope_ambiguous means a request with this ID was logged before idempotent payments were introduced (only within 24 hours of that change) and cannot be verified; do not resend with a new ID, check whether the payment exists first. More than 100 characters returns 400 invalid_request_id. X-Request-Id identifies the affected attempt when available.")}),MJO=36,UJO=36,PJO=36,CJO=36,wJO=36,AJO=0,FJO=100,kJO=100,jJO=500,HJO=36,Gkb=e__namespace.object({invoice_id:e__namespace.string().max(MJO).nullish(),credit_note_id:e__namespace.string().max(UJO).nullish(),advance_invoice_id:e__namespace.string().max(PJO).nullish(),expense_id:e__namespace.string().max(CJO).nullish(),applied_to_expense_id:e__namespace.string().max(wJO).nullish(),amount:e__namespace.number().gt(AJO).describe("Payment amount in the linked document currency's major unit; for EUR, `29.90` means \u20AC29.90, not 2,990 cents."),type:e__namespace.enum(["cash","bank_transfer","card","credit_card","debit_card","check","paypal","coupon","crypto","other","credit_note","advance"]).describe("Payment method. Use credit_card or debit_card to preserve the card distinction in Portuguese SAF-T (CC/CD). Legacy card remains accepted and exports as CC. crypto is opt-in: it is accepted only on a crypto-currency document, or when the entity enabled settings.crypto_invoicing or settings.crypto_equivalents; otherwise the API answers 422 with cause.code crypto_payment_type_not_enabled."),date:e__namespace.string().optional().describe("Payment date in YYYY-MM-DD format"),tag:e__namespace.string().max(FJO).nullish(),reference:e__namespace.string().max(kJO).nullish(),note:e__namespace.string().max(jJO).nullish(),metadata:e__namespace.record(e__namespace.string(),e__namespace.string()).refine(d=>Object.keys(d).length<=50,"Metadata can have maximum 50 properties").nullish().describe("Custom string key-value data for your own use, with up to 50 properties. Keys are opaque and may contain periods. Useful for storing external IDs, tags, or integration data."),document_id:e__namespace.string().max(HJO).nullish().describe("Generic outgoing document ID for direct payments. The API infers `invoice_id`, `credit_note_id`, or `advance_invoice_id` from the ID prefix. Prefer this over type-specific fields for new integrations.")}),LJO=10,GJO=100,Vkb=e__namespace.object({limit:e__namespace.number().min(1).max(GJO).default(LJO).describe("Number of results per request."),next_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the next page of results. Reuse only with the same effective ordering. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e__namespace.string().optional().describe("Opaque cursor to fetch the previous page of results. Reuse only with the same effective ordering. Use the value from pagination.prev_cursor in the previous response."),include_total_count:e__namespace.boolean().optional().describe("Whether to include the total count of items in `pagination.total`.\nDefault is `true`.\nWhen `false`, `pagination.total` returns -1 for better performance."),order_by:e__namespace.union([e__namespace.enum(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]),e__namespace.array(e__namespace.enum(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]))]).optional().describe("Sort by one field or provide a repeated array for multi-column ordering. Prefix a field with `-` for descending order. When paginating, reuse cursors only with the same effective ordering."),query:e__namespace.string().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\n\n**Array columns** (such as an item\'s `categories`) compare as sets: a direct value asks whether the list contains it, `contains` takes an array and requires all of them, `in` matches any of them, and `notIn` matches none. Scalar operators such as `gt` do not apply and are ignored.\n\n**Supported operators:**\n- `equals` or direct value - Exact match (default)\n- `gte` - Greater than or equal\n- `lte` - Less than or equal\n- `gt` - Greater than\n- `lt` - Less than\n- `in` - Value in array\n- `notIn` - Value not in array\n- `contains` - String contains (case-insensitive)\n- `startsWith` - String starts with\n- `endsWith` - String ends with\n- `between` - Value between two numbers/dates [min, max]\n\n**Allowed fields:** id, invoice_id, credit_note_id, advance_invoice_id, expense_id, applied_to_expense_id, amount, type, date, reference, note, metadata, created_at, updated_at\n\n**Examples:**\n- `{"total": {"gte": 1000}}` - Invoices over 1000\n- `{"customer.name": {"contains": "Acme"}}` - Customer name contains "Acme"\n- `{"date": {"between": ["2025-01-01", "2025-12-31"]}}` - Date range'),search:e__namespace.string().optional().describe(`Full-text search query to filter results across multiple fields.
123
123
  Searches are case-insensitive and match partial strings.