@spaceinvoices/js-sdk 2.3.1 → 2.3.4

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.
Files changed (2691) hide show
  1. package/README.md +7 -1
  2. package/dist/client-headers.d.cts +3 -0
  3. package/dist/client-headers.d.ts +3 -0
  4. package/dist/client-headers.d.ts.map +1 -0
  5. package/dist/generated/account-webhooks/account-webhooks.d.cts +313 -0
  6. package/dist/generated/account-webhooks/account-webhooks.d.ts +313 -0
  7. package/dist/generated/account-webhooks/account-webhooks.d.ts.map +1 -0
  8. package/dist/generated/activities/activities.d.cts +2 -2
  9. package/dist/generated/activities/activities.d.ts +2 -2
  10. package/dist/generated/activities/activities.d.ts.map +1 -1
  11. package/dist/generated/advance-invoices/advance-invoices.d.cts +5 -3
  12. package/dist/generated/advance-invoices/advance-invoices.d.ts +5 -3
  13. package/dist/generated/advance-invoices/advance-invoices.d.ts.map +1 -1
  14. package/dist/generated/company-registry/company-registry.d.cts +2 -2
  15. package/dist/generated/company-registry/company-registry.d.ts +2 -2
  16. package/dist/generated/company-registry/company-registry.d.ts.map +1 -1
  17. package/dist/generated/credit-notes/credit-notes.d.cts +5 -3
  18. package/dist/generated/credit-notes/credit-notes.d.ts +5 -3
  19. package/dist/generated/credit-notes/credit-notes.d.ts.map +1 -1
  20. package/dist/generated/customers/customers.d.cts +12 -4
  21. package/dist/generated/customers/customers.d.ts +12 -4
  22. package/dist/generated/customers/customers.d.ts.map +1 -1
  23. package/dist/generated/delivery-notes/delivery-notes.d.cts +5 -3
  24. package/dist/generated/delivery-notes/delivery-notes.d.ts +5 -3
  25. package/dist/generated/delivery-notes/delivery-notes.d.ts.map +1 -1
  26. package/dist/generated/documents/documents.d.cts +53 -12
  27. package/dist/generated/documents/documents.d.ts +53 -12
  28. package/dist/generated/documents/documents.d.ts.map +1 -1
  29. package/dist/generated/e-invoicing/e-invoicing.d.cts +416 -0
  30. package/dist/generated/e-invoicing/e-invoicing.d.ts +416 -0
  31. package/dist/generated/e-invoicing/e-invoicing.d.ts.map +1 -0
  32. package/dist/generated/email/email.d.cts +2 -2
  33. package/dist/generated/email/email.d.ts +2 -2
  34. package/dist/generated/email/email.d.ts.map +1 -1
  35. package/dist/generated/entities/entities.d.cts +39 -6
  36. package/dist/generated/entities/entities.d.ts +39 -6
  37. package/dist/generated/entities/entities.d.ts.map +1 -1
  38. package/dist/generated/entity-api-keys/entity-api-keys.d.cts +7 -3
  39. package/dist/generated/entity-api-keys/entity-api-keys.d.ts +7 -3
  40. package/dist/generated/entity-api-keys/entity-api-keys.d.ts.map +1 -1
  41. package/dist/generated/entity-invitations/entity-invitations.d.cts +7 -3
  42. package/dist/generated/entity-invitations/entity-invitations.d.ts +7 -3
  43. package/dist/generated/entity-invitations/entity-invitations.d.ts.map +1 -1
  44. package/dist/generated/entity-stats/entity-stats.d.cts +16 -21
  45. package/dist/generated/entity-stats/entity-stats.d.ts +16 -21
  46. package/dist/generated/entity-stats/entity-stats.d.ts.map +1 -1
  47. package/dist/generated/entity-users/entity-users.d.cts +7 -3
  48. package/dist/generated/entity-users/entity-users.d.ts +7 -3
  49. package/dist/generated/entity-users/entity-users.d.ts.map +1 -1
  50. package/dist/generated/estimates/estimates.d.cts +5 -3
  51. package/dist/generated/estimates/estimates.d.ts +5 -3
  52. package/dist/generated/estimates/estimates.d.ts.map +1 -1
  53. package/dist/generated/exports/exports.d.cts +171 -7
  54. package/dist/generated/exports/exports.d.ts +171 -7
  55. package/dist/generated/exports/exports.d.ts.map +1 -1
  56. package/dist/generated/files/files.d.cts +2 -2
  57. package/dist/generated/files/files.d.ts +2 -2
  58. package/dist/generated/files/files.d.ts.map +1 -1
  59. package/dist/generated/fina-certificate/fina-certificate.d.cts +2 -2
  60. package/dist/generated/fina-certificate/fina-certificate.d.ts +2 -2
  61. package/dist/generated/fina-certificate/fina-certificate.d.ts.map +1 -1
  62. package/dist/generated/fina-devices/fina-devices.d.cts +2 -2
  63. package/dist/generated/fina-devices/fina-devices.d.ts +2 -2
  64. package/dist/generated/fina-devices/fina-devices.d.ts.map +1 -1
  65. package/dist/generated/fina-premises/fina-premises.d.cts +2 -2
  66. package/dist/generated/fina-premises/fina-premises.d.ts +2 -2
  67. package/dist/generated/fina-premises/fina-premises.d.ts.map +1 -1
  68. package/dist/generated/fina-settings/fina-settings.d.cts +2 -2
  69. package/dist/generated/fina-settings/fina-settings.d.ts +2 -2
  70. package/dist/generated/fina-settings/fina-settings.d.ts.map +1 -1
  71. package/dist/generated/furs-certificate/furs-certificate.d.cts +2 -2
  72. package/dist/generated/furs-certificate/furs-certificate.d.ts +2 -2
  73. package/dist/generated/furs-certificate/furs-certificate.d.ts.map +1 -1
  74. package/dist/generated/furs-devices/furs-devices.d.cts +2 -2
  75. package/dist/generated/furs-devices/furs-devices.d.ts +2 -2
  76. package/dist/generated/furs-devices/furs-devices.d.ts.map +1 -1
  77. package/dist/generated/furs-internal-act/furs-internal-act.d.cts +91 -0
  78. package/dist/generated/furs-internal-act/furs-internal-act.d.ts +91 -0
  79. package/dist/generated/furs-internal-act/furs-internal-act.d.ts.map +1 -0
  80. package/dist/generated/furs-premises/furs-premises.d.cts +2 -2
  81. package/dist/generated/furs-premises/furs-premises.d.ts +2 -2
  82. package/dist/generated/furs-premises/furs-premises.d.ts.map +1 -1
  83. package/dist/generated/furs-settings/furs-settings.d.cts +2 -2
  84. package/dist/generated/furs-settings/furs-settings.d.ts +2 -2
  85. package/dist/generated/furs-settings/furs-settings.d.ts.map +1 -1
  86. package/dist/generated/health/health.d.cts +27 -0
  87. package/dist/generated/health/health.d.ts +27 -0
  88. package/dist/generated/health/health.d.ts.map +1 -1
  89. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.cts +378 -0
  90. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.ts +378 -0
  91. package/dist/generated/incoming-purchase-documents/incoming-purchase-documents.d.ts.map +1 -0
  92. package/dist/generated/invoices/invoices.d.cts +46 -3
  93. package/dist/generated/invoices/invoices.d.ts +46 -3
  94. package/dist/generated/invoices/invoices.d.ts.map +1 -1
  95. package/dist/generated/items/items.d.cts +55 -6
  96. package/dist/generated/items/items.d.ts +55 -6
  97. package/dist/generated/items/items.d.ts.map +1 -1
  98. package/dist/generated/legacy-migration/legacy-migration.d.cts +86 -0
  99. package/dist/generated/legacy-migration/legacy-migration.d.ts +86 -0
  100. package/dist/generated/legacy-migration/legacy-migration.d.ts.map +1 -0
  101. package/dist/generated/model/acceptEntityInvitationBody.d.cts +1 -1
  102. package/dist/generated/model/acceptEntityInvitationBody.d.ts +1 -1
  103. package/dist/generated/model/acceptEntityInvitationParams.d.cts +1 -1
  104. package/dist/generated/model/acceptEntityInvitationParams.d.ts +1 -1
  105. package/dist/generated/model/acceptInvitationResponse.d.cts +1 -1
  106. package/dist/generated/model/acceptInvitationResponse.d.ts +1 -1
  107. package/dist/generated/model/accessToken.d.cts +6 -1
  108. package/dist/generated/model/accessToken.d.ts +6 -1
  109. package/dist/generated/model/accessToken.d.ts.map +1 -1
  110. package/dist/generated/model/accountWebhookDelivery.d.cts +67 -0
  111. package/dist/generated/model/accountWebhookDelivery.d.ts +67 -0
  112. package/dist/generated/model/accountWebhookDelivery.d.ts.map +1 -0
  113. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.cts +11 -0
  114. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.ts +11 -0
  115. package/dist/generated/model/accountWebhookDeliveryRequestBody.d.ts.map +1 -0
  116. package/dist/generated/model/accountWebhookDeliveryStatus.d.cts +14 -0
  117. package/dist/generated/model/accountWebhookDeliveryStatus.d.ts +14 -0
  118. package/dist/generated/model/accountWebhookDeliveryStatus.d.ts.map +1 -0
  119. package/dist/generated/model/accountWebhookResponse.d.cts +33 -0
  120. package/dist/generated/model/accountWebhookResponse.d.ts +33 -0
  121. package/dist/generated/model/accountWebhookResponse.d.ts.map +1 -0
  122. package/dist/generated/model/accountWebhookResponseEventsItem.d.cts +20 -0
  123. package/dist/generated/model/accountWebhookResponseEventsItem.d.ts +20 -0
  124. package/dist/generated/model/accountWebhookResponseEventsItem.d.ts.map +1 -0
  125. package/dist/generated/model/accountWebhookResponseMetadata.d.cts +11 -0
  126. package/dist/generated/model/accountWebhookResponseMetadata.d.ts +11 -0
  127. package/dist/generated/model/accountWebhookResponseMetadata.d.ts.map +1 -0
  128. package/dist/generated/model/accountWebhookWithSecret.d.cts +33 -0
  129. package/dist/generated/model/accountWebhookWithSecret.d.ts +33 -0
  130. package/dist/generated/model/accountWebhookWithSecret.d.ts.map +1 -0
  131. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.cts +20 -0
  132. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.ts +20 -0
  133. package/dist/generated/model/accountWebhookWithSecretEventsItem.d.ts.map +1 -0
  134. package/dist/generated/model/accountWebhookWithSecretMetadata.d.cts +11 -0
  135. package/dist/generated/model/accountWebhookWithSecretMetadata.d.ts +11 -0
  136. package/dist/generated/model/accountWebhookWithSecretMetadata.d.ts.map +1 -0
  137. package/dist/generated/model/addEntityUser201.d.cts +1 -1
  138. package/dist/generated/model/addEntityUser201.d.ts +1 -1
  139. package/dist/generated/model/addEntityUserBody.d.cts +1 -1
  140. package/dist/generated/model/addEntityUserBody.d.ts +1 -1
  141. package/dist/generated/model/addEntityUserBodyRole.d.cts +1 -1
  142. package/dist/generated/model/addEntityUserBodyRole.d.ts +1 -1
  143. package/dist/generated/model/advanceInvoice.d.cts +34 -9
  144. package/dist/generated/model/advanceInvoice.d.ts +34 -9
  145. package/dist/generated/model/advanceInvoice.d.ts.map +1 -1
  146. package/dist/generated/model/advanceInvoiceCalculationMode.d.cts +16 -0
  147. package/dist/generated/model/advanceInvoiceCalculationMode.d.ts +16 -0
  148. package/dist/generated/model/advanceInvoiceCalculationMode.d.ts.map +1 -0
  149. package/dist/generated/model/advanceInvoiceItem.d.cts +33 -14
  150. package/dist/generated/model/advanceInvoiceItem.d.ts +33 -14
  151. package/dist/generated/model/advanceInvoiceItem.d.ts.map +1 -1
  152. package/dist/generated/model/advanceInvoiceItemClassification.d.cts +18 -0
  153. package/dist/generated/model/advanceInvoiceItemClassification.d.ts +18 -0
  154. package/dist/generated/model/advanceInvoiceItemClassification.d.ts.map +1 -0
  155. package/dist/generated/model/advanceInvoiceItemMetadata.d.cts +8 -4
  156. package/dist/generated/model/advanceInvoiceItemMetadata.d.ts +8 -4
  157. package/dist/generated/model/advanceInvoiceItemMetadata.d.ts.map +1 -1
  158. package/dist/generated/model/advanceInvoiceItemType.d.cts +16 -0
  159. package/dist/generated/model/advanceInvoiceItemType.d.ts +16 -0
  160. package/dist/generated/model/advanceInvoiceItemType.d.ts.map +1 -0
  161. package/dist/generated/model/advanceInvoiceList.d.cts +1 -1
  162. package/dist/generated/model/advanceInvoiceList.d.ts +1 -1
  163. package/dist/generated/model/advanceInvoiceMetadata.d.cts +1 -1
  164. package/dist/generated/model/advanceInvoiceMetadata.d.ts +1 -1
  165. package/dist/generated/model/advanceInvoicePt.d.cts +11 -0
  166. package/dist/generated/model/advanceInvoicePt.d.ts +11 -0
  167. package/dist/generated/model/advanceInvoicePt.d.ts.map +1 -0
  168. package/dist/generated/model/advanceInvoiceTransactionType.d.cts +3 -1
  169. package/dist/generated/model/advanceInvoiceTransactionType.d.ts +3 -1
  170. package/dist/generated/model/advanceInvoiceTransactionType.d.ts.map +1 -1
  171. package/dist/generated/model/authorizeShopifyBody.d.cts +1 -1
  172. package/dist/generated/model/authorizeShopifyBody.d.ts +1 -1
  173. package/dist/generated/model/availablePlans.d.cts +1 -1
  174. package/dist/generated/model/availablePlans.d.ts +1 -1
  175. package/dist/generated/model/calculateDocumentPreview.d.cts +46 -0
  176. package/dist/generated/model/calculateDocumentPreview.d.ts +46 -0
  177. package/dist/generated/model/calculateDocumentPreview.d.ts.map +1 -0
  178. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.cts +17 -0
  179. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.ts +17 -0
  180. package/dist/generated/model/calculateDocumentPreviewCalculationMode.d.ts.map +1 -0
  181. package/dist/generated/model/calculateDocumentPreviewCustomer.d.cts +24 -0
  182. package/dist/generated/model/calculateDocumentPreviewCustomer.d.ts +24 -0
  183. package/dist/generated/model/calculateDocumentPreviewCustomer.d.ts.map +1 -0
  184. package/dist/generated/model/calculateDocumentPreviewParams.d.cts +15 -0
  185. package/dist/generated/model/calculateDocumentPreviewParams.d.ts +15 -0
  186. package/dist/generated/model/calculateDocumentPreviewParams.d.ts.map +1 -0
  187. package/dist/generated/model/calculateDocumentPreviewType.d.cts +16 -0
  188. package/dist/generated/model/calculateDocumentPreviewType.d.ts +16 -0
  189. package/dist/generated/model/calculateDocumentPreviewType.d.ts.map +1 -0
  190. package/dist/generated/model/calculatedItem.d.cts +55 -0
  191. package/dist/generated/model/calculatedItem.d.ts +55 -0
  192. package/dist/generated/model/calculatedItem.d.ts.map +1 -0
  193. package/dist/generated/model/calculatedItemType.d.cts +15 -0
  194. package/dist/generated/model/calculatedItemType.d.ts +15 -0
  195. package/dist/generated/model/calculatedItemType.d.ts.map +1 -0
  196. package/dist/generated/model/cancelEntityInvitation200.d.cts +1 -1
  197. package/dist/generated/model/cancelEntityInvitation200.d.ts +1 -1
  198. package/dist/generated/model/companyBankAccount.d.cts +1 -1
  199. package/dist/generated/model/companyBankAccount.d.ts +1 -1
  200. package/dist/generated/model/companyRegistryResult.d.cts +1 -1
  201. package/dist/generated/model/companyRegistryResult.d.ts +1 -1
  202. package/dist/generated/model/companyRegistrySearchResponse.d.cts +1 -1
  203. package/dist/generated/model/companyRegistrySearchResponse.d.ts +1 -1
  204. package/dist/generated/model/completeAdvanceInvoicePreview.d.cts +33 -4
  205. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts +33 -4
  206. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts.map +1 -1
  207. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.cts +17 -0
  208. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.ts +17 -0
  209. package/dist/generated/model/completeAdvanceInvoicePreviewCalculationMode.d.ts.map +1 -0
  210. package/dist/generated/model/completeAdvanceInvoicePreviewMetadata.d.cts +1 -1
  211. package/dist/generated/model/completeAdvanceInvoicePreviewMetadata.d.ts +1 -1
  212. package/dist/generated/model/completeCreditNotePreview.d.cts +36 -7
  213. package/dist/generated/model/completeCreditNotePreview.d.ts +36 -7
  214. package/dist/generated/model/completeCreditNotePreview.d.ts.map +1 -1
  215. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.cts +17 -0
  216. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.ts +17 -0
  217. package/dist/generated/model/completeCreditNotePreviewCalculationMode.d.ts.map +1 -0
  218. package/dist/generated/model/completeCreditNotePreviewMetadata.d.cts +1 -1
  219. package/dist/generated/model/completeCreditNotePreviewMetadata.d.ts +1 -1
  220. package/dist/generated/model/completeDeliveryNotePreview.d.cts +31 -6
  221. package/dist/generated/model/completeDeliveryNotePreview.d.ts +31 -6
  222. package/dist/generated/model/completeDeliveryNotePreview.d.ts.map +1 -1
  223. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.cts +17 -0
  224. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.ts +17 -0
  225. package/dist/generated/model/completeDeliveryNotePreviewCalculationMode.d.ts.map +1 -0
  226. package/dist/generated/model/completeDeliveryNotePreviewMetadata.d.cts +1 -1
  227. package/dist/generated/model/completeDeliveryNotePreviewMetadata.d.ts +1 -1
  228. package/dist/generated/model/completeEstimatePreview.d.cts +29 -5
  229. package/dist/generated/model/completeEstimatePreview.d.ts +29 -5
  230. package/dist/generated/model/completeEstimatePreview.d.ts.map +1 -1
  231. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.cts +17 -0
  232. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.ts +17 -0
  233. package/dist/generated/model/completeEstimatePreviewCalculationMode.d.ts.map +1 -0
  234. package/dist/generated/model/completeEstimatePreviewMetadata.d.cts +1 -1
  235. package/dist/generated/model/completeEstimatePreviewMetadata.d.ts +1 -1
  236. package/dist/generated/model/completeEstimatePreviewTitleType.d.cts +3 -3
  237. package/dist/generated/model/completeEstimatePreviewTitleType.d.ts +3 -3
  238. package/dist/generated/model/completeInvoicePreview.d.cts +39 -6
  239. package/dist/generated/model/completeInvoicePreview.d.ts +39 -6
  240. package/dist/generated/model/completeInvoicePreview.d.ts.map +1 -1
  241. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.cts +17 -0
  242. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.ts +17 -0
  243. package/dist/generated/model/completeInvoicePreviewCalculationMode.d.ts.map +1 -0
  244. package/dist/generated/model/completeInvoicePreviewMetadata.d.cts +1 -1
  245. package/dist/generated/model/completeInvoicePreviewMetadata.d.ts +1 -1
  246. package/dist/generated/model/countryRules.d.cts +1 -1
  247. package/dist/generated/model/countryRules.d.ts +1 -1
  248. package/dist/generated/model/createAccountWebhookBody.d.cts +35 -0
  249. package/dist/generated/model/createAccountWebhookBody.d.ts +35 -0
  250. package/dist/generated/model/createAccountWebhookBody.d.ts.map +1 -0
  251. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.cts +20 -0
  252. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.ts +20 -0
  253. package/dist/generated/model/createAccountWebhookBodyEventsItem.d.ts.map +1 -0
  254. package/dist/generated/model/createAccountWebhookBodyMetadata.d.cts +15 -0
  255. package/dist/generated/model/createAccountWebhookBodyMetadata.d.ts +15 -0
  256. package/dist/generated/model/createAccountWebhookBodyMetadata.d.ts.map +1 -0
  257. package/dist/generated/model/createAdvanceInvoice.d.cts +34 -7
  258. package/dist/generated/model/createAdvanceInvoice.d.ts +34 -7
  259. package/dist/generated/model/createAdvanceInvoice.d.ts.map +1 -1
  260. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.cts +17 -0
  261. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.ts +17 -0
  262. package/dist/generated/model/createAdvanceInvoiceCalculationMode.d.ts.map +1 -0
  263. package/dist/generated/model/createAdvanceInvoiceMetadata.d.cts +1 -1
  264. package/dist/generated/model/createAdvanceInvoiceMetadata.d.ts +1 -1
  265. package/dist/generated/model/createCreditNote.d.cts +36 -9
  266. package/dist/generated/model/createCreditNote.d.ts +36 -9
  267. package/dist/generated/model/createCreditNote.d.ts.map +1 -1
  268. package/dist/generated/model/createCreditNoteCalculationMode.d.cts +17 -0
  269. package/dist/generated/model/createCreditNoteCalculationMode.d.ts +17 -0
  270. package/dist/generated/model/createCreditNoteCalculationMode.d.ts.map +1 -0
  271. package/dist/generated/model/createCreditNoteMetadata.d.cts +1 -1
  272. package/dist/generated/model/createCreditNoteMetadata.d.ts +1 -1
  273. package/dist/generated/model/createCustomerBody.d.cts +8 -1
  274. package/dist/generated/model/createCustomerBody.d.ts +8 -1
  275. package/dist/generated/model/createCustomerBody.d.ts.map +1 -1
  276. package/dist/generated/model/createCustomerBodyMetadata.d.cts +1 -1
  277. package/dist/generated/model/createCustomerBodyMetadata.d.ts +1 -1
  278. package/dist/generated/model/createDeliveryNote.d.cts +31 -6
  279. package/dist/generated/model/createDeliveryNote.d.ts +31 -6
  280. package/dist/generated/model/createDeliveryNote.d.ts.map +1 -1
  281. package/dist/generated/model/createDeliveryNoteCalculationMode.d.cts +17 -0
  282. package/dist/generated/model/createDeliveryNoteCalculationMode.d.ts +17 -0
  283. package/dist/generated/model/createDeliveryNoteCalculationMode.d.ts.map +1 -0
  284. package/dist/generated/model/createDeliveryNoteMetadata.d.cts +1 -1
  285. package/dist/generated/model/createDeliveryNoteMetadata.d.ts +1 -1
  286. package/dist/generated/model/createDocumentCustomer.d.cts +12 -8
  287. package/dist/generated/model/createDocumentCustomer.d.ts +12 -8
  288. package/dist/generated/model/createDocumentCustomer.d.ts.map +1 -1
  289. package/dist/generated/model/createDocumentItem.d.cts +48 -19
  290. package/dist/generated/model/createDocumentItem.d.ts +48 -19
  291. package/dist/generated/model/createDocumentItem.d.ts.map +1 -1
  292. package/dist/generated/model/createDocumentItemClassification.d.cts +18 -0
  293. package/dist/generated/model/createDocumentItemClassification.d.ts +18 -0
  294. package/dist/generated/model/createDocumentItemClassification.d.ts.map +1 -0
  295. package/dist/generated/model/createDocumentItemMetadata.d.cts +8 -4
  296. package/dist/generated/model/createDocumentItemMetadata.d.ts +8 -4
  297. package/dist/generated/model/createDocumentItemMetadata.d.ts.map +1 -1
  298. package/dist/generated/model/createDocumentItemType.d.cts +17 -0
  299. package/dist/generated/model/createDocumentItemType.d.ts +17 -0
  300. package/dist/generated/model/createDocumentItemType.d.ts.map +1 -0
  301. package/dist/generated/model/createDocumentPayment.d.cts +18 -13
  302. package/dist/generated/model/createDocumentPayment.d.ts +18 -13
  303. package/dist/generated/model/createDocumentPayment.d.ts.map +1 -1
  304. package/dist/generated/model/createDocumentPaymentMetadata.d.cts +1 -1
  305. package/dist/generated/model/createDocumentPaymentMetadata.d.ts +1 -1
  306. package/dist/generated/model/createDocumentPaymentType.d.cts +1 -1
  307. package/dist/generated/model/createDocumentPaymentType.d.ts +1 -1
  308. package/dist/generated/model/createEntityApiKeyBody.d.cts +6 -1
  309. package/dist/generated/model/createEntityApiKeyBody.d.ts +6 -1
  310. package/dist/generated/model/createEntityApiKeyBody.d.ts.map +1 -1
  311. package/dist/generated/model/createEntityBody.d.cts +27 -3
  312. package/dist/generated/model/createEntityBody.d.ts +27 -3
  313. package/dist/generated/model/createEntityBody.d.ts.map +1 -1
  314. package/dist/generated/model/createEntityBodyEnvironment.d.cts +1 -1
  315. package/dist/generated/model/createEntityBodyEnvironment.d.ts +1 -1
  316. package/dist/generated/model/createEntityBodyMetadata.d.cts +1 -1
  317. package/dist/generated/model/createEntityBodyMetadata.d.ts +1 -1
  318. package/dist/generated/model/createEntityBodySettings.d.cts +76 -1
  319. package/dist/generated/model/createEntityBodySettings.d.ts +76 -1
  320. package/dist/generated/model/createEntityBodySettings.d.ts.map +1 -1
  321. package/dist/generated/model/createEntityBodySettingsCalculation.d.cts +19 -0
  322. package/dist/generated/model/createEntityBodySettingsCalculation.d.ts +19 -0
  323. package/dist/generated/model/createEntityBodySettingsCalculation.d.ts.map +1 -0
  324. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.cts +22 -0
  325. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.ts +22 -0
  326. package/dist/generated/model/createEntityBodySettingsEInvoicing.d.ts.map +1 -0
  327. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.cts +35 -5
  328. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.ts +35 -5
  329. package/dist/generated/model/createEntityBodySettingsEmailDefaults.d.ts.map +1 -1
  330. package/dist/generated/model/createEntityBodySettingsEpcQr.d.cts +1 -1
  331. package/dist/generated/model/createEntityBodySettingsEpcQr.d.ts +1 -1
  332. package/dist/generated/model/createEntityBodySettingsFina.d.cts +7 -2
  333. package/dist/generated/model/createEntityBodySettingsFina.d.ts +7 -2
  334. package/dist/generated/model/createEntityBodySettingsFina.d.ts.map +1 -1
  335. package/dist/generated/model/createEntityBodySettingsFurs.d.cts +5 -1
  336. package/dist/generated/model/createEntityBodySettingsFurs.d.ts +5 -1
  337. package/dist/generated/model/createEntityBodySettingsFurs.d.ts.map +1 -1
  338. package/dist/generated/model/createEntityBodySettingsNumberFormats.d.cts +1 -1
  339. package/dist/generated/model/createEntityBodySettingsNumberFormats.d.ts +1 -1
  340. package/dist/generated/model/createEntityBodySettingsOverdueNotifications.d.cts +1 -1
  341. package/dist/generated/model/createEntityBodySettingsOverdueNotifications.d.ts +1 -1
  342. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.cts +3 -1
  343. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.ts +3 -1
  344. package/dist/generated/model/createEntityBodySettingsPdfTemplate.d.ts.map +1 -1
  345. package/dist/generated/model/createEntityBodySettingsPt.d.cts +29 -0
  346. package/dist/generated/model/createEntityBodySettingsPt.d.ts +29 -0
  347. package/dist/generated/model/createEntityBodySettingsPt.d.ts.map +1 -0
  348. package/dist/generated/model/createEntityBodySettingsSlovenia.d.cts +221 -0
  349. package/dist/generated/model/createEntityBodySettingsSlovenia.d.ts +221 -0
  350. package/dist/generated/model/createEntityBodySettingsSlovenia.d.ts.map +1 -0
  351. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.cts +12 -2
  352. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.ts +12 -2
  353. package/dist/generated/model/createEntityBodySettingsTaxClauseDefaults.d.ts.map +1 -1
  354. package/dist/generated/model/createEntityBodySettingsUpnQr.d.cts +1 -1
  355. package/dist/generated/model/createEntityBodySettingsUpnQr.d.ts +1 -1
  356. package/dist/generated/model/createEstimate.d.cts +29 -5
  357. package/dist/generated/model/createEstimate.d.ts +29 -5
  358. package/dist/generated/model/createEstimate.d.ts.map +1 -1
  359. package/dist/generated/model/createEstimateCalculationMode.d.cts +17 -0
  360. package/dist/generated/model/createEstimateCalculationMode.d.ts +17 -0
  361. package/dist/generated/model/createEstimateCalculationMode.d.ts.map +1 -0
  362. package/dist/generated/model/createEstimateMetadata.d.cts +1 -1
  363. package/dist/generated/model/createEstimateMetadata.d.ts +1 -1
  364. package/dist/generated/model/createEstimateTitleType.d.cts +3 -3
  365. package/dist/generated/model/createEstimateTitleType.d.ts +3 -3
  366. package/dist/generated/model/createFinaInvoiceData.d.cts +25 -13
  367. package/dist/generated/model/createFinaInvoiceData.d.ts +25 -13
  368. package/dist/generated/model/createFinaInvoiceData.d.ts.map +1 -1
  369. package/dist/generated/model/createFinaPremiseBody.d.cts +3 -3
  370. package/dist/generated/model/createFinaPremiseBody.d.ts +3 -3
  371. package/dist/generated/model/createFinaPremiseBody.d.ts.map +1 -1
  372. package/dist/generated/model/createFursDocumentData.d.cts +20 -9
  373. package/dist/generated/model/createFursDocumentData.d.ts +20 -9
  374. package/dist/generated/model/createFursDocumentData.d.ts.map +1 -1
  375. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.cts +87 -0
  376. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.ts +87 -0
  377. package/dist/generated/model/createIncomingPurchaseDocumentBody.d.ts.map +1 -0
  378. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.cts +15 -0
  379. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.ts +15 -0
  380. package/dist/generated/model/createIncomingPurchaseDocumentBodyMetadata.d.ts.map +1 -0
  381. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.cts +20 -0
  382. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.ts +20 -0
  383. package/dist/generated/model/createIncomingPurchaseDocumentBodyTransactionType.d.ts.map +1 -0
  384. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.cts +14 -0
  385. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.ts +14 -0
  386. package/dist/generated/model/createIncomingPurchaseDocumentBodyType.d.ts.map +1 -0
  387. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.cts +43 -0
  388. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.ts +43 -0
  389. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBody.d.ts.map +1 -0
  390. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.cts +15 -0
  391. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.ts +15 -0
  392. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyMetadata.d.ts.map +1 -0
  393. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.cts +23 -0
  394. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.ts +23 -0
  395. package/dist/generated/model/createIncomingPurchaseDocumentPaymentBodyType.d.ts.map +1 -0
  396. package/dist/generated/model/createInvoice.d.cts +38 -8
  397. package/dist/generated/model/createInvoice.d.ts +38 -8
  398. package/dist/generated/model/createInvoice.d.ts.map +1 -1
  399. package/dist/generated/model/createInvoiceCalculationMode.d.cts +17 -0
  400. package/dist/generated/model/createInvoiceCalculationMode.d.ts +17 -0
  401. package/dist/generated/model/createInvoiceCalculationMode.d.ts.map +1 -0
  402. package/dist/generated/model/createInvoiceMetadata.d.cts +1 -1
  403. package/dist/generated/model/createInvoiceMetadata.d.ts +1 -1
  404. package/dist/generated/model/createItemBody.d.cts +7 -1
  405. package/dist/generated/model/createItemBody.d.ts +7 -1
  406. package/dist/generated/model/createItemBody.d.ts.map +1 -1
  407. package/dist/generated/model/createItemBodyClassification.d.cts +18 -0
  408. package/dist/generated/model/createItemBodyClassification.d.ts +18 -0
  409. package/dist/generated/model/createItemBodyClassification.d.ts.map +1 -0
  410. package/dist/generated/model/createItemBodyMetadata.d.cts +1 -1
  411. package/dist/generated/model/createItemBodyMetadata.d.ts +1 -1
  412. package/dist/generated/model/createItemBodyTaxesItem.d.cts +1 -1
  413. package/dist/generated/model/createItemBodyTaxesItem.d.ts +1 -1
  414. package/dist/generated/model/createMigrationJobRequest.d.cts +25 -0
  415. package/dist/generated/model/createMigrationJobRequest.d.ts +25 -0
  416. package/dist/generated/model/createMigrationJobRequest.d.ts.map +1 -0
  417. package/dist/generated/model/createMigrationJobRequestEnvironment.d.cts +16 -0
  418. package/dist/generated/model/createMigrationJobRequestEnvironment.d.ts +16 -0
  419. package/dist/generated/model/createMigrationJobRequestEnvironment.d.ts.map +1 -0
  420. package/dist/generated/model/createMigrationJobResponse.d.cts +17 -0
  421. package/dist/generated/model/createMigrationJobResponse.d.ts +17 -0
  422. package/dist/generated/model/createMigrationJobResponse.d.ts.map +1 -0
  423. package/dist/generated/model/createMigrationJobResponseStatus.d.cts +18 -0
  424. package/dist/generated/model/createMigrationJobResponseStatus.d.ts +18 -0
  425. package/dist/generated/model/createMigrationJobResponseStatus.d.ts.map +1 -0
  426. package/dist/generated/model/createOrderBody.d.cts +1 -1
  427. package/dist/generated/model/createOrderBody.d.ts +1 -1
  428. package/dist/generated/model/createOrderBodyMetadata.d.cts +1 -1
  429. package/dist/generated/model/createOrderBodyMetadata.d.ts +1 -1
  430. package/dist/generated/model/createOrderBodyPaymentStatus.d.cts +1 -1
  431. package/dist/generated/model/createOrderBodyPaymentStatus.d.ts +1 -1
  432. package/dist/generated/model/createOrderBodySource.d.cts +1 -1
  433. package/dist/generated/model/createOrderBodySource.d.ts +1 -1
  434. package/dist/generated/model/createOrderIntegrationBody.d.cts +17 -1
  435. package/dist/generated/model/createOrderIntegrationBody.d.ts +17 -1
  436. package/dist/generated/model/createOrderIntegrationBody.d.ts.map +1 -1
  437. package/dist/generated/model/createOrderIntegrationBodyMetadata.d.cts +1 -1
  438. package/dist/generated/model/createOrderIntegrationBodyMetadata.d.ts +1 -1
  439. package/dist/generated/model/createOrderIntegrationBodySource.d.cts +1 -1
  440. package/dist/generated/model/createOrderIntegrationBodySource.d.ts +1 -1
  441. package/dist/generated/model/createPaymentBody.d.cts +17 -1
  442. package/dist/generated/model/createPaymentBody.d.ts +17 -1
  443. package/dist/generated/model/createPaymentBody.d.ts.map +1 -1
  444. package/dist/generated/model/createPaymentBodyMetadata.d.cts +1 -1
  445. package/dist/generated/model/createPaymentBodyMetadata.d.ts +1 -1
  446. package/dist/generated/model/createPaymentBodyType.d.cts +1 -1
  447. package/dist/generated/model/createPaymentBodyType.d.ts +1 -1
  448. package/dist/generated/model/createPtAtcudSeriesBody.d.cts +40 -0
  449. package/dist/generated/model/createPtAtcudSeriesBody.d.ts +40 -0
  450. package/dist/generated/model/createPtAtcudSeriesBody.d.ts.map +1 -0
  451. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.cts +18 -0
  452. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.ts +18 -0
  453. package/dist/generated/model/createPtAtcudSeriesBodyDocumentType.d.ts.map +1 -0
  454. package/dist/generated/model/createRecurringInvoiceBody.d.cts +1 -1
  455. package/dist/generated/model/createRecurringInvoiceBody.d.ts +1 -1
  456. package/dist/generated/model/createRecurringInvoiceBodyFrequency.d.cts +1 -1
  457. package/dist/generated/model/createRecurringInvoiceBodyFrequency.d.ts +1 -1
  458. package/dist/generated/model/createRecurringInvoiceBodyMetadata.d.cts +1 -1
  459. package/dist/generated/model/createRecurringInvoiceBodyMetadata.d.ts +1 -1
  460. package/dist/generated/model/createSupplierBody.d.cts +79 -0
  461. package/dist/generated/model/createSupplierBody.d.ts +79 -0
  462. package/dist/generated/model/createSupplierBody.d.ts.map +1 -0
  463. package/dist/generated/model/createSupplierBodyMetadata.d.cts +15 -0
  464. package/dist/generated/model/createSupplierBodyMetadata.d.ts +15 -0
  465. package/dist/generated/model/createSupplierBodyMetadata.d.ts.map +1 -0
  466. package/dist/generated/model/createTaxBody.d.cts +11 -1
  467. package/dist/generated/model/createTaxBody.d.ts +11 -1
  468. package/dist/generated/model/createTaxBody.d.ts.map +1 -1
  469. package/dist/generated/model/createTaxBodyMetadata.d.cts +1 -1
  470. package/dist/generated/model/createTaxBodyMetadata.d.ts +1 -1
  471. package/dist/generated/model/createTaxBodyTaxRatesItem.d.cts +1 -1
  472. package/dist/generated/model/createTaxBodyTaxRatesItem.d.ts +1 -1
  473. package/dist/generated/model/createWebhookBody.d.cts +1 -1
  474. package/dist/generated/model/createWebhookBody.d.ts +1 -1
  475. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +8 -1
  476. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +8 -1
  477. package/dist/generated/model/createWebhookBodyEventsItem.d.ts.map +1 -1
  478. package/dist/generated/model/createWebhookBodyMetadata.d.cts +1 -1
  479. package/dist/generated/model/createWebhookBodyMetadata.d.ts +1 -1
  480. package/dist/generated/model/creationSource.d.cts +16 -0
  481. package/dist/generated/model/creationSource.d.ts +16 -0
  482. package/dist/generated/model/creationSource.d.ts.map +1 -0
  483. package/dist/generated/model/creditNote.d.cts +32 -8
  484. package/dist/generated/model/creditNote.d.ts +32 -8
  485. package/dist/generated/model/creditNote.d.ts.map +1 -1
  486. package/dist/generated/model/creditNoteCalculationMode.d.cts +16 -0
  487. package/dist/generated/model/creditNoteCalculationMode.d.ts +16 -0
  488. package/dist/generated/model/creditNoteCalculationMode.d.ts.map +1 -0
  489. package/dist/generated/model/creditNoteItem.d.cts +28 -13
  490. package/dist/generated/model/creditNoteItem.d.ts +28 -13
  491. package/dist/generated/model/creditNoteItem.d.ts.map +1 -1
  492. package/dist/generated/model/creditNoteItemClassification.d.cts +18 -0
  493. package/dist/generated/model/creditNoteItemClassification.d.ts +18 -0
  494. package/dist/generated/model/creditNoteItemClassification.d.ts.map +1 -0
  495. package/dist/generated/model/creditNoteItemMetadata.d.cts +1 -1
  496. package/dist/generated/model/creditNoteItemMetadata.d.ts +1 -1
  497. package/dist/generated/model/creditNoteItemType.d.cts +16 -0
  498. package/dist/generated/model/creditNoteItemType.d.ts +16 -0
  499. package/dist/generated/model/creditNoteItemType.d.ts.map +1 -0
  500. package/dist/generated/model/creditNoteList.d.cts +1 -1
  501. package/dist/generated/model/creditNoteList.d.ts +1 -1
  502. package/dist/generated/model/creditNoteMetadata.d.cts +1 -1
  503. package/dist/generated/model/creditNoteMetadata.d.ts +1 -1
  504. package/dist/generated/model/creditNotePt.d.cts +11 -0
  505. package/dist/generated/model/creditNotePt.d.ts +11 -0
  506. package/dist/generated/model/creditNotePt.d.ts.map +1 -0
  507. package/dist/generated/model/creditNoteTransactionType.d.cts +3 -1
  508. package/dist/generated/model/creditNoteTransactionType.d.ts +3 -1
  509. package/dist/generated/model/creditNoteTransactionType.d.ts.map +1 -1
  510. package/dist/generated/model/currentSubscription.d.cts +42 -1
  511. package/dist/generated/model/currentSubscription.d.ts +42 -1
  512. package/dist/generated/model/currentSubscription.d.ts.map +1 -1
  513. package/dist/generated/model/currentSubscriptionPaymentMethod.d.cts +18 -0
  514. package/dist/generated/model/currentSubscriptionPaymentMethod.d.ts +18 -0
  515. package/dist/generated/model/currentSubscriptionPaymentMethod.d.ts.map +1 -0
  516. package/dist/generated/model/currentSubscriptionPaymentProvider.d.cts +18 -0
  517. package/dist/generated/model/currentSubscriptionPaymentProvider.d.ts +18 -0
  518. package/dist/generated/model/currentSubscriptionPaymentProvider.d.ts.map +1 -0
  519. package/dist/generated/model/currentSubscriptionScheduledChange.d.cts +22 -0
  520. package/dist/generated/model/currentSubscriptionScheduledChange.d.ts +22 -0
  521. package/dist/generated/model/currentSubscriptionScheduledChange.d.ts.map +1 -0
  522. package/dist/generated/model/customCreateAdvanceInvoice.d.cts +44 -33
  523. package/dist/generated/model/customCreateAdvanceInvoice.d.ts +44 -33
  524. package/dist/generated/model/customCreateAdvanceInvoice.d.ts.map +1 -1
  525. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.cts +17 -0
  526. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.ts +17 -0
  527. package/dist/generated/model/customCreateAdvanceInvoiceCalculationMode.d.ts.map +1 -0
  528. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.cts +12 -0
  529. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.ts +12 -0
  530. package/dist/generated/model/customCreateAdvanceInvoiceIssuer.d.ts.map +1 -0
  531. package/dist/generated/model/customCreateAdvanceInvoiceMetadata.d.cts +1 -1
  532. package/dist/generated/model/customCreateAdvanceInvoiceMetadata.d.ts +1 -1
  533. package/dist/generated/model/customCreateAdvanceInvoicePt.d.cts +11 -0
  534. package/dist/generated/model/customCreateAdvanceInvoicePt.d.ts +11 -0
  535. package/dist/generated/model/customCreateAdvanceInvoicePt.d.ts.map +1 -0
  536. package/dist/generated/model/customCreateCreditNote.d.cts +44 -42
  537. package/dist/generated/model/customCreateCreditNote.d.ts +44 -42
  538. package/dist/generated/model/customCreateCreditNote.d.ts.map +1 -1
  539. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.cts +17 -0
  540. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.ts +17 -0
  541. package/dist/generated/model/customCreateCreditNoteCalculationMode.d.ts.map +1 -0
  542. package/dist/generated/model/customCreateCreditNoteIssuer.d.cts +12 -0
  543. package/dist/generated/model/customCreateCreditNoteIssuer.d.ts +12 -0
  544. package/dist/generated/model/customCreateCreditNoteIssuer.d.ts.map +1 -0
  545. package/dist/generated/model/customCreateCreditNoteMetadata.d.cts +1 -1
  546. package/dist/generated/model/customCreateCreditNoteMetadata.d.ts +1 -1
  547. package/dist/generated/model/customCreateCreditNotePt.d.cts +11 -0
  548. package/dist/generated/model/customCreateCreditNotePt.d.ts +11 -0
  549. package/dist/generated/model/customCreateCreditNotePt.d.ts.map +1 -0
  550. package/dist/generated/model/customCreateDeliveryNote.d.cts +42 -34
  551. package/dist/generated/model/customCreateDeliveryNote.d.ts +42 -34
  552. package/dist/generated/model/customCreateDeliveryNote.d.ts.map +1 -1
  553. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.cts +17 -0
  554. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.ts +17 -0
  555. package/dist/generated/model/customCreateDeliveryNoteCalculationMode.d.ts.map +1 -0
  556. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.cts +12 -0
  557. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.ts +12 -0
  558. package/dist/generated/model/customCreateDeliveryNoteIssuer.d.ts.map +1 -0
  559. package/dist/generated/model/customCreateDeliveryNoteMetadata.d.cts +1 -1
  560. package/dist/generated/model/customCreateDeliveryNoteMetadata.d.ts +1 -1
  561. package/dist/generated/model/customCreateEstimate.d.cts +39 -38
  562. package/dist/generated/model/customCreateEstimate.d.ts +39 -38
  563. package/dist/generated/model/customCreateEstimate.d.ts.map +1 -1
  564. package/dist/generated/model/customCreateEstimateCalculationMode.d.cts +17 -0
  565. package/dist/generated/model/customCreateEstimateCalculationMode.d.ts +17 -0
  566. package/dist/generated/model/customCreateEstimateCalculationMode.d.ts.map +1 -0
  567. package/dist/generated/model/customCreateEstimateIssuer.d.cts +12 -0
  568. package/dist/generated/model/customCreateEstimateIssuer.d.ts +12 -0
  569. package/dist/generated/model/customCreateEstimateIssuer.d.ts.map +1 -0
  570. package/dist/generated/model/customCreateEstimateMetadata.d.cts +1 -1
  571. package/dist/generated/model/customCreateEstimateMetadata.d.ts +1 -1
  572. package/dist/generated/model/customCreateEstimatePt.d.cts +11 -0
  573. package/dist/generated/model/customCreateEstimatePt.d.ts +11 -0
  574. package/dist/generated/model/customCreateEstimatePt.d.ts.map +1 -0
  575. package/dist/generated/model/customCreateEstimateTitleType.d.cts +2 -3
  576. package/dist/generated/model/customCreateEstimateTitleType.d.ts +2 -3
  577. package/dist/generated/model/customCreateEstimateTitleType.d.ts.map +1 -1
  578. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.cts +87 -0
  579. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.ts +87 -0
  580. package/dist/generated/model/customCreateIncomingPurchaseDocument.d.ts.map +1 -0
  581. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.cts +15 -0
  582. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.ts +15 -0
  583. package/dist/generated/model/customCreateIncomingPurchaseDocumentMetadata.d.ts.map +1 -0
  584. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.cts +20 -0
  585. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.ts +20 -0
  586. package/dist/generated/model/customCreateIncomingPurchaseDocumentTransactionType.d.ts.map +1 -0
  587. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.cts +14 -0
  588. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.ts +14 -0
  589. package/dist/generated/model/customCreateIncomingPurchaseDocumentType.d.ts.map +1 -0
  590. package/dist/generated/model/customCreateInvoice.d.cts +50 -49
  591. package/dist/generated/model/customCreateInvoice.d.ts +50 -49
  592. package/dist/generated/model/customCreateInvoice.d.ts.map +1 -1
  593. package/dist/generated/model/customCreateInvoiceCalculationMode.d.cts +17 -0
  594. package/dist/generated/model/customCreateInvoiceCalculationMode.d.ts +17 -0
  595. package/dist/generated/model/customCreateInvoiceCalculationMode.d.ts.map +1 -0
  596. package/dist/generated/model/customCreateInvoiceIssuer.d.cts +12 -0
  597. package/dist/generated/model/customCreateInvoiceIssuer.d.ts +12 -0
  598. package/dist/generated/model/customCreateInvoiceIssuer.d.ts.map +1 -0
  599. package/dist/generated/model/customCreateInvoiceMetadata.d.cts +1 -1
  600. package/dist/generated/model/customCreateInvoiceMetadata.d.ts +1 -1
  601. package/dist/generated/model/customCreateInvoicePt.d.cts +11 -0
  602. package/dist/generated/model/customCreateInvoicePt.d.ts +11 -0
  603. package/dist/generated/model/customCreateInvoicePt.d.ts.map +1 -0
  604. package/dist/generated/model/customDocumentItem.d.cts +55 -22
  605. package/dist/generated/model/customDocumentItem.d.ts +55 -22
  606. package/dist/generated/model/customDocumentItem.d.ts.map +1 -1
  607. package/dist/generated/model/customDocumentItemClassification.d.cts +18 -0
  608. package/dist/generated/model/customDocumentItemClassification.d.ts +18 -0
  609. package/dist/generated/model/customDocumentItemClassification.d.ts.map +1 -0
  610. package/dist/generated/model/customDocumentItemMetadata.d.cts +8 -4
  611. package/dist/generated/model/customDocumentItemMetadata.d.ts +8 -4
  612. package/dist/generated/model/customDocumentItemMetadata.d.ts.map +1 -1
  613. package/dist/generated/model/customDocumentItemType.d.cts +17 -0
  614. package/dist/generated/model/customDocumentItemType.d.ts +17 -0
  615. package/dist/generated/model/customDocumentItemType.d.ts.map +1 -0
  616. package/dist/generated/model/customer.d.cts +2 -4
  617. package/dist/generated/model/customer.d.ts +2 -4
  618. package/dist/generated/model/customer.d.ts.map +1 -1
  619. package/dist/generated/model/customerBase.d.cts +7 -1
  620. package/dist/generated/model/customerBase.d.ts +7 -1
  621. package/dist/generated/model/customerBase.d.ts.map +1 -1
  622. package/dist/generated/model/customerBaseMetadata.d.cts +1 -1
  623. package/dist/generated/model/customerBaseMetadata.d.ts +1 -1
  624. package/dist/generated/model/customerBaseVies.d.cts +1 -1
  625. package/dist/generated/model/customerBaseVies.d.ts +1 -1
  626. package/dist/generated/model/deleteAccountWebhook200.d.cts +11 -0
  627. package/dist/generated/model/deleteAccountWebhook200.d.ts +11 -0
  628. package/dist/generated/model/deleteAccountWebhook200.d.ts.map +1 -0
  629. package/dist/generated/model/deleteDocumentParams.d.cts +3 -3
  630. package/dist/generated/model/deleteDocumentParams.d.ts +3 -3
  631. package/dist/generated/model/deleteDocumentParams.d.ts.map +1 -1
  632. package/dist/generated/model/deleteDocumentType.d.cts +1 -1
  633. package/dist/generated/model/deleteDocumentType.d.ts +1 -1
  634. package/dist/generated/model/deleteEntityApiKey200.d.cts +1 -1
  635. package/dist/generated/model/deleteEntityApiKey200.d.ts +1 -1
  636. package/dist/generated/model/deleteWebhook200.d.cts +1 -1
  637. package/dist/generated/model/deleteWebhook200.d.ts +1 -1
  638. package/dist/generated/model/deliveryNote.d.cts +26 -4
  639. package/dist/generated/model/deliveryNote.d.ts +26 -4
  640. package/dist/generated/model/deliveryNote.d.ts.map +1 -1
  641. package/dist/generated/model/deliveryNoteCalculationMode.d.cts +16 -0
  642. package/dist/generated/model/deliveryNoteCalculationMode.d.ts +16 -0
  643. package/dist/generated/model/deliveryNoteCalculationMode.d.ts.map +1 -0
  644. package/dist/generated/model/deliveryNoteItem.d.cts +28 -13
  645. package/dist/generated/model/deliveryNoteItem.d.ts +28 -13
  646. package/dist/generated/model/deliveryNoteItem.d.ts.map +1 -1
  647. package/dist/generated/model/deliveryNoteItemClassification.d.cts +18 -0
  648. package/dist/generated/model/deliveryNoteItemClassification.d.ts +18 -0
  649. package/dist/generated/model/deliveryNoteItemClassification.d.ts.map +1 -0
  650. package/dist/generated/model/deliveryNoteItemMetadata.d.cts +1 -1
  651. package/dist/generated/model/deliveryNoteItemMetadata.d.ts +1 -1
  652. package/dist/generated/model/deliveryNoteItemType.d.cts +16 -0
  653. package/dist/generated/model/deliveryNoteItemType.d.ts +16 -0
  654. package/dist/generated/model/deliveryNoteItemType.d.ts.map +1 -0
  655. package/dist/generated/model/deliveryNoteList.d.cts +1 -1
  656. package/dist/generated/model/deliveryNoteList.d.ts +1 -1
  657. package/dist/generated/model/deliveryNoteMetadata.d.cts +1 -1
  658. package/dist/generated/model/deliveryNoteMetadata.d.ts +1 -1
  659. package/dist/generated/model/deliveryNoteTransactionType.d.cts +3 -1
  660. package/dist/generated/model/deliveryNoteTransactionType.d.ts +3 -1
  661. package/dist/generated/model/deliveryNoteTransactionType.d.ts.map +1 -1
  662. package/dist/generated/model/documentCalculation.d.cts +52 -0
  663. package/dist/generated/model/documentCalculation.d.ts +52 -0
  664. package/dist/generated/model/documentCalculation.d.ts.map +1 -0
  665. package/dist/generated/model/documentCalculationCalculationMode.d.cts +16 -0
  666. package/dist/generated/model/documentCalculationCalculationMode.d.ts +16 -0
  667. package/dist/generated/model/documentCalculationCalculationMode.d.ts.map +1 -0
  668. package/dist/generated/model/documentCalculationTransactionType.d.cts +21 -0
  669. package/dist/generated/model/documentCalculationTransactionType.d.ts +21 -0
  670. package/dist/generated/model/documentCalculationTransactionType.d.ts.map +1 -0
  671. package/dist/generated/model/documentCustomer.d.cts +42 -15
  672. package/dist/generated/model/documentCustomer.d.ts +42 -15
  673. package/dist/generated/model/documentCustomer.d.ts.map +1 -1
  674. package/dist/generated/model/documentEntity.d.cts +7 -1
  675. package/dist/generated/model/documentEntity.d.ts +7 -1
  676. package/dist/generated/model/documentEntity.d.ts.map +1 -1
  677. package/dist/generated/model/documentEntityBankAccount.d.cts +36 -15
  678. package/dist/generated/model/documentEntityBankAccount.d.ts +36 -15
  679. package/dist/generated/model/documentEntityBankAccount.d.ts.map +1 -1
  680. package/dist/generated/model/documentItemTax.d.cts +15 -6
  681. package/dist/generated/model/documentItemTax.d.ts +15 -6
  682. package/dist/generated/model/documentItemTax.d.ts.map +1 -1
  683. package/dist/generated/model/documentRelation.d.cts +5 -1
  684. package/dist/generated/model/documentRelation.d.ts +5 -1
  685. package/dist/generated/model/documentRelation.d.ts.map +1 -1
  686. package/dist/generated/model/documentRelationRelatedDocument.d.cts +28 -0
  687. package/dist/generated/model/documentRelationRelatedDocument.d.ts +28 -0
  688. package/dist/generated/model/documentRelationRelatedDocument.d.ts.map +1 -0
  689. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.cts +16 -0
  690. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.ts +16 -0
  691. package/dist/generated/model/documentRelationRelatedDocumentTitleType.d.ts.map +1 -0
  692. package/dist/generated/model/documentRelationRelatedDocumentType.d.cts +19 -0
  693. package/dist/generated/model/documentRelationRelatedDocumentType.d.ts +19 -0
  694. package/dist/generated/model/documentRelationRelatedDocumentType.d.ts.map +1 -0
  695. package/dist/generated/model/documentRelationSourceType.d.cts +2 -1
  696. package/dist/generated/model/documentRelationSourceType.d.ts +2 -1
  697. package/dist/generated/model/documentRelationSourceType.d.ts.map +1 -1
  698. package/dist/generated/model/documentRelationTargetType.d.cts +2 -1
  699. package/dist/generated/model/documentRelationTargetType.d.ts +2 -1
  700. package/dist/generated/model/documentRelationTargetType.d.ts.map +1 -1
  701. package/dist/generated/model/documentSummaryTax.d.cts +7 -3
  702. package/dist/generated/model/documentSummaryTax.d.ts +7 -3
  703. package/dist/generated/model/documentSummaryTax.d.ts.map +1 -1
  704. package/dist/generated/model/documentVersion.d.cts +1 -1
  705. package/dist/generated/model/documentVersion.d.ts +1 -1
  706. package/dist/generated/model/documentVersionDocumentType.d.cts +1 -1
  707. package/dist/generated/model/documentVersionDocumentType.d.ts +1 -1
  708. package/dist/generated/model/documentVersionList.d.cts +1 -1
  709. package/dist/generated/model/documentVersionList.d.ts +1 -1
  710. package/dist/generated/model/documentVersionSnapshot.d.cts +1 -1
  711. package/dist/generated/model/documentVersionSnapshot.d.ts +1 -1
  712. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.cts +24 -0
  713. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.ts +24 -0
  714. package/dist/generated/model/eInvoicingCustomerSearchRequest.d.ts.map +1 -0
  715. package/dist/generated/model/eInvoicingCustomerSearchResult.d.cts +18 -0
  716. package/dist/generated/model/eInvoicingCustomerSearchResult.d.ts +18 -0
  717. package/dist/generated/model/eInvoicingCustomerSearchResult.d.ts.map +1 -0
  718. package/dist/generated/model/eInvoicingSettingsResponse.d.cts +17 -0
  719. package/dist/generated/model/eInvoicingSettingsResponse.d.ts +17 -0
  720. package/dist/generated/model/eInvoicingSettingsResponse.d.ts.map +1 -0
  721. package/dist/generated/model/eInvoicingSubmission.d.cts +62 -0
  722. package/dist/generated/model/eInvoicingSubmission.d.ts +62 -0
  723. package/dist/generated/model/eInvoicingSubmission.d.ts.map +1 -0
  724. package/dist/generated/model/eInvoicingSubmissionDetail.d.cts +64 -0
  725. package/dist/generated/model/eInvoicingSubmissionDetail.d.ts +64 -0
  726. package/dist/generated/model/eInvoicingSubmissionDetail.d.ts.map +1 -0
  727. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.cts +11 -0
  728. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.ts +11 -0
  729. package/dist/generated/model/eInvoicingSubmissionDetailMetadata.d.ts.map +1 -0
  730. package/dist/generated/model/eInvoicingSubmissionMetadata.d.cts +11 -0
  731. package/dist/generated/model/eInvoicingSubmissionMetadata.d.ts +11 -0
  732. package/dist/generated/model/eInvoicingSubmissionMetadata.d.ts.map +1 -0
  733. package/dist/generated/model/eInvoicingSupplier.d.cts +96 -0
  734. package/dist/generated/model/eInvoicingSupplier.d.ts +96 -0
  735. package/dist/generated/model/eInvoicingSupplier.d.ts.map +1 -0
  736. package/dist/generated/model/eInvoicingSupplierMetadata.d.cts +11 -0
  737. package/dist/generated/model/eInvoicingSupplierMetadata.d.ts +11 -0
  738. package/dist/generated/model/eInvoicingSupplierMetadata.d.ts.map +1 -0
  739. package/dist/generated/model/electronicDeviceSuccessResponse.d.cts +1 -1
  740. package/dist/generated/model/electronicDeviceSuccessResponse.d.ts +1 -1
  741. package/dist/generated/model/entity.d.cts +30 -3
  742. package/dist/generated/model/entity.d.ts +30 -3
  743. package/dist/generated/model/entity.d.ts.map +1 -1
  744. package/dist/generated/model/entityApiKey.d.cts +6 -1
  745. package/dist/generated/model/entityApiKey.d.ts +6 -1
  746. package/dist/generated/model/entityApiKey.d.ts.map +1 -1
  747. package/dist/generated/model/entityApiKeyEnvironment.d.cts +1 -1
  748. package/dist/generated/model/entityApiKeyEnvironment.d.ts +1 -1
  749. package/dist/generated/model/entityApiKeyListItem.d.cts +1 -1
  750. package/dist/generated/model/entityApiKeyListItem.d.ts +1 -1
  751. package/dist/generated/model/entityApiKeysList.d.cts +1 -1
  752. package/dist/generated/model/entityApiKeysList.d.ts +1 -1
  753. package/dist/generated/model/entityBankAccount.d.cts +41 -17
  754. package/dist/generated/model/entityBankAccount.d.ts +41 -17
  755. package/dist/generated/model/entityBankAccount.d.ts.map +1 -1
  756. package/dist/generated/model/entityBankAccountType.d.cts +1 -1
  757. package/dist/generated/model/entityBankAccountType.d.ts +1 -1
  758. package/dist/generated/model/entityEnvironment.d.cts +1 -1
  759. package/dist/generated/model/entityEnvironment.d.ts +1 -1
  760. package/dist/generated/model/entityInvitation.d.cts +1 -1
  761. package/dist/generated/model/entityInvitation.d.ts +1 -1
  762. package/dist/generated/model/entityInvitationRole.d.cts +1 -1
  763. package/dist/generated/model/entityInvitationRole.d.ts +1 -1
  764. package/dist/generated/model/entityInvitationStatus.d.cts +1 -1
  765. package/dist/generated/model/entityInvitationStatus.d.ts +1 -1
  766. package/dist/generated/model/entityInvitationsList.d.cts +1 -1
  767. package/dist/generated/model/entityInvitationsList.d.ts +1 -1
  768. package/dist/generated/model/entityMetadata.d.cts +8 -4
  769. package/dist/generated/model/entityMetadata.d.ts +8 -4
  770. package/dist/generated/model/entityMetadata.d.ts.map +1 -1
  771. package/dist/generated/model/entitySettings.d.cts +76 -1
  772. package/dist/generated/model/entitySettings.d.ts +76 -1
  773. package/dist/generated/model/entitySettings.d.ts.map +1 -1
  774. package/dist/generated/model/entitySettingsCalculation.d.cts +19 -0
  775. package/dist/generated/model/entitySettingsCalculation.d.ts +19 -0
  776. package/dist/generated/model/entitySettingsCalculation.d.ts.map +1 -0
  777. package/dist/generated/model/entitySettingsEInvoicing.d.cts +22 -0
  778. package/dist/generated/model/entitySettingsEInvoicing.d.ts +22 -0
  779. package/dist/generated/model/entitySettingsEInvoicing.d.ts.map +1 -0
  780. package/dist/generated/model/entitySettingsEmailDefaults.d.cts +35 -5
  781. package/dist/generated/model/entitySettingsEmailDefaults.d.ts +35 -5
  782. package/dist/generated/model/entitySettingsEmailDefaults.d.ts.map +1 -1
  783. package/dist/generated/model/entitySettingsEpcQr.d.cts +1 -1
  784. package/dist/generated/model/entitySettingsEpcQr.d.ts +1 -1
  785. package/dist/generated/model/entitySettingsFina.d.cts +7 -2
  786. package/dist/generated/model/entitySettingsFina.d.ts +7 -2
  787. package/dist/generated/model/entitySettingsFina.d.ts.map +1 -1
  788. package/dist/generated/model/entitySettingsFurs.d.cts +5 -1
  789. package/dist/generated/model/entitySettingsFurs.d.ts +5 -1
  790. package/dist/generated/model/entitySettingsFurs.d.ts.map +1 -1
  791. package/dist/generated/model/entitySettingsNumberFormats.d.cts +1 -1
  792. package/dist/generated/model/entitySettingsNumberFormats.d.ts +1 -1
  793. package/dist/generated/model/entitySettingsOverdueNotifications.d.cts +1 -1
  794. package/dist/generated/model/entitySettingsOverdueNotifications.d.ts +1 -1
  795. package/dist/generated/model/entitySettingsPdfTemplate.d.cts +3 -1
  796. package/dist/generated/model/entitySettingsPdfTemplate.d.ts +3 -1
  797. package/dist/generated/model/entitySettingsPdfTemplate.d.ts.map +1 -1
  798. package/dist/generated/model/entitySettingsPt.d.cts +29 -0
  799. package/dist/generated/model/entitySettingsPt.d.ts +29 -0
  800. package/dist/generated/model/entitySettingsPt.d.ts.map +1 -0
  801. package/dist/generated/model/entitySettingsSlovenia.d.cts +221 -0
  802. package/dist/generated/model/entitySettingsSlovenia.d.ts +221 -0
  803. package/dist/generated/model/entitySettingsSlovenia.d.ts.map +1 -0
  804. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.cts +12 -2
  805. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.ts +12 -2
  806. package/dist/generated/model/entitySettingsTaxClauseDefaults.d.ts.map +1 -1
  807. package/dist/generated/model/entitySettingsUpnQr.d.cts +1 -1
  808. package/dist/generated/model/entitySettingsUpnQr.d.ts +1 -1
  809. package/dist/generated/model/entityUser.d.cts +1 -1
  810. package/dist/generated/model/entityUser.d.ts +1 -1
  811. package/dist/generated/model/entityUserRole.d.cts +1 -1
  812. package/dist/generated/model/entityUserRole.d.ts +1 -1
  813. package/dist/generated/model/entityUsersList.d.cts +1 -1
  814. package/dist/generated/model/entityUsersList.d.ts +1 -1
  815. package/dist/generated/model/error.d.cts +1 -1
  816. package/dist/generated/model/error.d.ts +1 -1
  817. package/dist/generated/model/eslogData.d.cts +1 -1
  818. package/dist/generated/model/eslogData.d.ts +1 -1
  819. package/dist/generated/model/eslogExportByDateRange.d.cts +26 -0
  820. package/dist/generated/model/eslogExportByDateRange.d.ts +26 -0
  821. package/dist/generated/model/eslogExportByDateRange.d.ts.map +1 -0
  822. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.cts +17 -0
  823. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.ts +17 -0
  824. package/dist/generated/model/eslogExportByDateRangeTypesItem.d.ts.map +1 -0
  825. package/dist/generated/model/eslogExportByDocumentIds.d.cts +15 -0
  826. package/dist/generated/model/eslogExportByDocumentIds.d.ts +15 -0
  827. package/dist/generated/model/eslogExportByDocumentIds.d.ts.map +1 -0
  828. package/dist/generated/model/eslogInput.d.cts +1 -1
  829. package/dist/generated/model/eslogInput.d.ts +1 -1
  830. package/dist/generated/model/estimate.d.cts +30 -6
  831. package/dist/generated/model/estimate.d.ts +30 -6
  832. package/dist/generated/model/estimate.d.ts.map +1 -1
  833. package/dist/generated/model/estimateCalculationMode.d.cts +16 -0
  834. package/dist/generated/model/estimateCalculationMode.d.ts +16 -0
  835. package/dist/generated/model/estimateCalculationMode.d.ts.map +1 -0
  836. package/dist/generated/model/estimateItem.d.cts +28 -13
  837. package/dist/generated/model/estimateItem.d.ts +28 -13
  838. package/dist/generated/model/estimateItem.d.ts.map +1 -1
  839. package/dist/generated/model/estimateItemClassification.d.cts +18 -0
  840. package/dist/generated/model/estimateItemClassification.d.ts +18 -0
  841. package/dist/generated/model/estimateItemClassification.d.ts.map +1 -0
  842. package/dist/generated/model/estimateItemMetadata.d.cts +1 -1
  843. package/dist/generated/model/estimateItemMetadata.d.ts +1 -1
  844. package/dist/generated/model/estimateItemType.d.cts +16 -0
  845. package/dist/generated/model/estimateItemType.d.ts +16 -0
  846. package/dist/generated/model/estimateItemType.d.ts.map +1 -0
  847. package/dist/generated/model/estimateList.d.cts +1 -1
  848. package/dist/generated/model/estimateList.d.ts +1 -1
  849. package/dist/generated/model/estimateMetadata.d.cts +1 -1
  850. package/dist/generated/model/estimateMetadata.d.ts +1 -1
  851. package/dist/generated/model/estimatePt.d.cts +11 -0
  852. package/dist/generated/model/estimatePt.d.ts +11 -0
  853. package/dist/generated/model/estimatePt.d.ts.map +1 -0
  854. package/dist/generated/model/estimateTitleType.d.cts +3 -3
  855. package/dist/generated/model/estimateTitleType.d.ts +3 -3
  856. package/dist/generated/model/estimateTransactionType.d.cts +3 -1
  857. package/dist/generated/model/estimateTransactionType.d.ts +3 -1
  858. package/dist/generated/model/estimateTransactionType.d.ts.map +1 -1
  859. package/dist/generated/model/exchangeRate.d.cts +1 -1
  860. package/dist/generated/model/exchangeRate.d.ts +1 -1
  861. package/dist/generated/model/exportDocumentsFormat.d.cts +1 -1
  862. package/dist/generated/model/exportDocumentsFormat.d.ts +1 -1
  863. package/dist/generated/model/exportDocumentsLanguage.d.cts +14 -2
  864. package/dist/generated/model/exportDocumentsLanguage.d.ts +14 -2
  865. package/dist/generated/model/exportDocumentsLanguage.d.ts.map +1 -1
  866. package/dist/generated/model/exportDocumentsParams.d.cts +2 -2
  867. package/dist/generated/model/exportDocumentsParams.d.ts +2 -2
  868. package/dist/generated/model/exportDocumentsType.d.cts +2 -1
  869. package/dist/generated/model/exportDocumentsType.d.ts +2 -1
  870. package/dist/generated/model/exportDocumentsType.d.ts.map +1 -1
  871. package/dist/generated/model/exportSalesPerItemFormat.d.cts +1 -1
  872. package/dist/generated/model/exportSalesPerItemFormat.d.ts +1 -1
  873. package/dist/generated/model/exportSalesPerItemLanguage.d.cts +10 -2
  874. package/dist/generated/model/exportSalesPerItemLanguage.d.ts +10 -2
  875. package/dist/generated/model/exportSalesPerItemLanguage.d.ts.map +1 -1
  876. package/dist/generated/model/exportSalesPerItemParams.d.cts +2 -2
  877. package/dist/generated/model/exportSalesPerItemParams.d.ts +2 -2
  878. package/dist/generated/model/exportSloveniaVodXmlBody.d.cts +14 -0
  879. package/dist/generated/model/exportSloveniaVodXmlBody.d.ts +14 -0
  880. package/dist/generated/model/exportSloveniaVodXmlBody.d.ts.map +1 -0
  881. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.cts +18 -0
  882. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.ts +18 -0
  883. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBody.d.ts.map +1 -0
  884. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.cts +35 -0
  885. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.ts +35 -0
  886. package/dist/generated/model/exportSloveniaYearlyNormiraniReportBodyManualValues.d.ts.map +1 -0
  887. package/dist/generated/model/featureCheck.d.cts +1 -1
  888. package/dist/generated/model/featureCheck.d.ts +1 -1
  889. package/dist/generated/model/fileMetadata.d.cts +2 -4
  890. package/dist/generated/model/fileMetadata.d.ts +2 -4
  891. package/dist/generated/model/fileMetadata.d.ts.map +1 -1
  892. package/dist/generated/model/fileMetadataBase.d.cts +6 -1
  893. package/dist/generated/model/fileMetadataBase.d.ts +6 -1
  894. package/dist/generated/model/fileMetadataBase.d.ts.map +1 -1
  895. package/dist/generated/model/fileMetadataBaseMetadata.d.cts +1 -1
  896. package/dist/generated/model/fileMetadataBaseMetadata.d.ts +1 -1
  897. package/dist/generated/model/finaBusinessPremise.d.cts +2 -3
  898. package/dist/generated/model/finaBusinessPremise.d.ts +2 -3
  899. package/dist/generated/model/finaBusinessPremise.d.ts.map +1 -1
  900. package/dist/generated/model/finaElectronicDevice.d.cts +2 -3
  901. package/dist/generated/model/finaElectronicDevice.d.ts +2 -3
  902. package/dist/generated/model/finaElectronicDevice.d.ts.map +1 -1
  903. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.cts +3 -3
  904. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.ts +3 -3
  905. package/dist/generated/model/finaElectronicDeviceSuccessResponse.d.ts.map +1 -1
  906. package/dist/generated/model/finaFiscalizationResponse.d.cts +4 -4
  907. package/dist/generated/model/finaFiscalizationResponse.d.ts +4 -4
  908. package/dist/generated/model/finaFiscalizationResponse.d.ts.map +1 -1
  909. package/dist/generated/model/finaMovablePremise.d.cts +1 -1
  910. package/dist/generated/model/finaMovablePremise.d.ts +1 -1
  911. package/dist/generated/model/finaPremiseSuccessResponse.d.cts +3 -3
  912. package/dist/generated/model/finaPremiseSuccessResponse.d.ts +3 -3
  913. package/dist/generated/model/finaPremiseSuccessResponse.d.ts.map +1 -1
  914. package/dist/generated/model/finaRealEstatePremise.d.cts +1 -1
  915. package/dist/generated/model/finaRealEstatePremise.d.ts +1 -1
  916. package/dist/generated/model/finalizeDocumentBody.d.cts +14 -0
  917. package/dist/generated/model/finalizeDocumentBody.d.ts +14 -0
  918. package/dist/generated/model/finalizeDocumentBody.d.ts.map +1 -0
  919. package/dist/generated/model/finalizeDocumentParams.d.cts +3 -3
  920. package/dist/generated/model/finalizeDocumentParams.d.ts +3 -3
  921. package/dist/generated/model/finalizeDocumentParams.d.ts.map +1 -1
  922. package/dist/generated/model/finalizeDocumentType.d.cts +1 -1
  923. package/dist/generated/model/finalizeDocumentType.d.ts +1 -1
  924. package/dist/generated/model/fiscalizeDocumentParams.d.cts +3 -3
  925. package/dist/generated/model/fiscalizeDocumentParams.d.ts +3 -3
  926. package/dist/generated/model/fiscalizeDocumentParams.d.ts.map +1 -1
  927. package/dist/generated/model/fiscalizeDocumentType.d.cts +1 -1
  928. package/dist/generated/model/fiscalizeDocumentType.d.ts +1 -1
  929. package/dist/generated/model/fursBusinessPremise.d.cts +1 -1
  930. package/dist/generated/model/fursBusinessPremise.d.ts +1 -1
  931. package/dist/generated/model/fursElectronicDevice.d.cts +1 -2
  932. package/dist/generated/model/fursElectronicDevice.d.ts +1 -2
  933. package/dist/generated/model/fursElectronicDevice.d.ts.map +1 -1
  934. package/dist/generated/model/fursFiscalizationResponse.d.cts +1 -1
  935. package/dist/generated/model/fursFiscalizationResponse.d.ts +1 -1
  936. package/dist/generated/model/fursPremiseSuccessResponse.d.cts +1 -1
  937. package/dist/generated/model/fursPremiseSuccessResponse.d.ts +1 -1
  938. package/dist/generated/model/fursPremiseSuccessResponseEnvironment.d.cts +1 -1
  939. package/dist/generated/model/fursPremiseSuccessResponseEnvironment.d.ts +1 -1
  940. package/dist/generated/model/generateKirExportParams.d.cts +1 -1
  941. package/dist/generated/model/generateKirExportParams.d.ts +1 -1
  942. package/dist/generated/model/generatePtSaftReportParams.d.cts +18 -0
  943. package/dist/generated/model/generatePtSaftReportParams.d.ts +18 -0
  944. package/dist/generated/model/generatePtSaftReportParams.d.ts.map +1 -0
  945. package/dist/generated/model/generateUserTokenResponse.d.cts +1 -1
  946. package/dist/generated/model/generateUserTokenResponse.d.ts +1 -1
  947. package/dist/generated/model/genericDocument.d.cts +1 -1
  948. package/dist/generated/model/genericDocument.d.ts +1 -1
  949. package/dist/generated/model/getAccountWebhookDeliveries200.d.cts +14 -0
  950. package/dist/generated/model/getAccountWebhookDeliveries200.d.ts +14 -0
  951. package/dist/generated/model/getAccountWebhookDeliveries200.d.ts.map +1 -0
  952. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.cts +30 -0
  953. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.ts +30 -0
  954. package/dist/generated/model/getAccountWebhookDeliveriesParams.d.ts.map +1 -0
  955. package/dist/generated/model/getAccountWebhooks200.d.cts +14 -0
  956. package/dist/generated/model/getAccountWebhooks200.d.ts +14 -0
  957. package/dist/generated/model/getAccountWebhooks200.d.ts.map +1 -0
  958. package/dist/generated/model/getAccountWebhooksParams.d.cts +30 -0
  959. package/dist/generated/model/getAccountWebhooksParams.d.ts +30 -0
  960. package/dist/generated/model/getAccountWebhooksParams.d.ts.map +1 -0
  961. package/dist/generated/model/{pdfExportByDocumentIdsType.d.cts → getActivePtAtcudSeriesDocumentType.d.cts} +6 -9
  962. package/dist/generated/model/{pdfExportByDocumentIdsType.d.ts → getActivePtAtcudSeriesDocumentType.d.ts} +6 -9
  963. package/dist/generated/model/getActivePtAtcudSeriesDocumentType.d.ts.map +1 -0
  964. package/dist/generated/model/getActivePtAtcudSeriesParams.d.cts +12 -0
  965. package/dist/generated/model/getActivePtAtcudSeriesParams.d.ts +12 -0
  966. package/dist/generated/model/getActivePtAtcudSeriesParams.d.ts.map +1 -0
  967. package/dist/generated/model/getActivities200.d.cts +1 -1
  968. package/dist/generated/model/getActivities200.d.ts +1 -1
  969. package/dist/generated/model/getActivities200DataItem.d.cts +1 -1
  970. package/dist/generated/model/getActivities200DataItem.d.ts +1 -1
  971. package/dist/generated/model/getActivities200DataItemActorType.d.cts +1 -1
  972. package/dist/generated/model/getActivities200DataItemActorType.d.ts +1 -1
  973. package/dist/generated/model/getActivities200DataItemDetails.d.cts +1 -1
  974. package/dist/generated/model/getActivities200DataItemDetails.d.ts +1 -1
  975. package/dist/generated/model/getActivitiesParams.d.cts +6 -3
  976. package/dist/generated/model/getActivitiesParams.d.ts +6 -3
  977. package/dist/generated/model/getActivitiesParams.d.ts.map +1 -1
  978. package/dist/generated/model/getAdvanceInvoiceByIdParams.d.cts +1 -1
  979. package/dist/generated/model/getAdvanceInvoiceByIdParams.d.ts +1 -1
  980. package/dist/generated/model/getAdvanceInvoicesParams.d.cts +8 -5
  981. package/dist/generated/model/getAdvanceInvoicesParams.d.ts +8 -5
  982. package/dist/generated/model/getAdvanceInvoicesParams.d.ts.map +1 -1
  983. package/dist/generated/model/getCreditNoteByIdParams.d.cts +1 -1
  984. package/dist/generated/model/getCreditNoteByIdParams.d.ts +1 -1
  985. package/dist/generated/model/getCreditNotesParams.d.cts +6 -3
  986. package/dist/generated/model/getCreditNotesParams.d.ts +6 -3
  987. package/dist/generated/model/getCreditNotesParams.d.ts.map +1 -1
  988. package/dist/generated/model/getCustomers200.d.cts +1 -1
  989. package/dist/generated/model/getCustomers200.d.ts +1 -1
  990. package/dist/generated/model/getCustomersParams.d.cts +6 -3
  991. package/dist/generated/model/getCustomersParams.d.ts +6 -3
  992. package/dist/generated/model/getCustomersParams.d.ts.map +1 -1
  993. package/dist/generated/model/getDeliveryNoteByIdParams.d.cts +1 -1
  994. package/dist/generated/model/getDeliveryNoteByIdParams.d.ts +1 -1
  995. package/dist/generated/model/getDeliveryNotesParams.d.cts +6 -3
  996. package/dist/generated/model/getDeliveryNotesParams.d.ts +6 -3
  997. package/dist/generated/model/getDeliveryNotesParams.d.ts.map +1 -1
  998. package/dist/generated/model/getEntities200.d.cts +3 -3
  999. package/dist/generated/model/getEntities200.d.ts +3 -3
  1000. package/dist/generated/model/getEntities200.d.ts.map +1 -1
  1001. package/dist/generated/model/getEntitiesEnvironment.d.cts +1 -1
  1002. package/dist/generated/model/getEntitiesEnvironment.d.ts +1 -1
  1003. package/dist/generated/model/getEntitiesParams.d.cts +6 -3
  1004. package/dist/generated/model/getEntitiesParams.d.ts +6 -3
  1005. package/dist/generated/model/getEntitiesParams.d.ts.map +1 -1
  1006. package/dist/generated/model/getEslogExportStatus200.d.cts +43 -0
  1007. package/dist/generated/model/getEslogExportStatus200.d.ts +43 -0
  1008. package/dist/generated/model/getEslogExportStatus200.d.ts.map +1 -0
  1009. package/dist/generated/model/getEslogExportStatus200Result.d.cts +18 -0
  1010. package/dist/generated/model/getEslogExportStatus200Result.d.ts +18 -0
  1011. package/dist/generated/model/getEslogExportStatus200Result.d.ts.map +1 -0
  1012. package/dist/generated/model/getEslogExportStatus200Status.d.cts +18 -0
  1013. package/dist/generated/model/getEslogExportStatus200Status.d.ts +18 -0
  1014. package/dist/generated/model/getEslogExportStatus200Status.d.ts.map +1 -0
  1015. package/dist/generated/model/getEstimateByIdParams.d.cts +1 -1
  1016. package/dist/generated/model/getEstimateByIdParams.d.ts +1 -1
  1017. package/dist/generated/model/getEstimatesParams.d.cts +6 -3
  1018. package/dist/generated/model/getEstimatesParams.d.ts +6 -3
  1019. package/dist/generated/model/getEstimatesParams.d.ts.map +1 -1
  1020. package/dist/generated/model/getFiles200.d.cts +1 -1
  1021. package/dist/generated/model/getFiles200.d.ts +1 -1
  1022. package/dist/generated/model/getFilesCategory.d.cts +1 -1
  1023. package/dist/generated/model/getFilesCategory.d.ts +1 -1
  1024. package/dist/generated/model/getFilesParams.d.cts +7 -3
  1025. package/dist/generated/model/getFilesParams.d.ts +7 -3
  1026. package/dist/generated/model/getFilesParams.d.ts.map +1 -1
  1027. package/dist/generated/model/getFinaCertificate200.d.cts +1 -1
  1028. package/dist/generated/model/getFinaCertificate200.d.ts +1 -1
  1029. package/dist/generated/model/getFinaSettings200.d.cts +16 -7
  1030. package/dist/generated/model/getFinaSettings200.d.ts +16 -7
  1031. package/dist/generated/model/getFinaSettings200.d.ts.map +1 -1
  1032. package/dist/generated/model/getFinaSettings200CertificateStatus.d.cts +1 -1
  1033. package/dist/generated/model/getFinaSettings200CertificateStatus.d.ts +1 -1
  1034. package/dist/generated/model/getFinaSettings200NumberingSequence.d.cts +2 -2
  1035. package/dist/generated/model/getFinaSettings200NumberingSequence.d.ts +2 -2
  1036. package/dist/generated/model/getFursCertificate200.d.cts +1 -1
  1037. package/dist/generated/model/getFursCertificate200.d.ts +1 -1
  1038. package/dist/generated/model/getFursSettings200.d.cts +3 -1
  1039. package/dist/generated/model/getFursSettings200.d.ts +3 -1
  1040. package/dist/generated/model/getFursSettings200.d.ts.map +1 -1
  1041. package/dist/generated/model/getFursSettings200CertificateStatus.d.cts +1 -1
  1042. package/dist/generated/model/getFursSettings200CertificateStatus.d.ts +1 -1
  1043. package/dist/generated/model/getFursSettings200NumberingStrategy.d.cts +1 -1
  1044. package/dist/generated/model/getFursSettings200NumberingStrategy.d.ts +1 -1
  1045. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.cts +14 -0
  1046. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.ts +14 -0
  1047. package/dist/generated/model/getIncomingPurchaseDocumentAttachments200.d.ts.map +1 -0
  1048. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.cts +14 -0
  1049. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.ts +14 -0
  1050. package/dist/generated/model/getIncomingPurchaseDocumentPayments200.d.ts.map +1 -0
  1051. package/dist/generated/model/getIncomingPurchaseDocuments200.d.cts +14 -0
  1052. package/dist/generated/model/getIncomingPurchaseDocuments200.d.ts +14 -0
  1053. package/dist/generated/model/getIncomingPurchaseDocuments200.d.ts.map +1 -0
  1054. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.cts +13 -0
  1055. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.ts +13 -0
  1056. package/dist/generated/model/getIncomingPurchaseDocumentsIsDraft.d.ts.map +1 -0
  1057. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.cts +60 -0
  1058. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.ts +60 -0
  1059. package/dist/generated/model/getIncomingPurchaseDocumentsParams.d.ts.map +1 -0
  1060. package/dist/generated/model/getInvoiceByIdParams.d.cts +1 -1
  1061. package/dist/generated/model/getInvoiceByIdParams.d.ts +1 -1
  1062. package/dist/generated/model/getInvoicesParams.d.cts +7 -4
  1063. package/dist/generated/model/getInvoicesParams.d.ts +7 -4
  1064. package/dist/generated/model/getInvoicesParams.d.ts.map +1 -1
  1065. package/dist/generated/model/getItems200.d.cts +3 -3
  1066. package/dist/generated/model/getItems200.d.ts +3 -3
  1067. package/dist/generated/model/getItems200.d.ts.map +1 -1
  1068. package/dist/generated/model/getItemsParams.d.cts +6 -3
  1069. package/dist/generated/model/getItemsParams.d.ts +6 -3
  1070. package/dist/generated/model/getItemsParams.d.ts.map +1 -1
  1071. package/dist/generated/model/getNextDocumentNumberParams.d.cts +3 -3
  1072. package/dist/generated/model/getNextDocumentNumberParams.d.ts +3 -3
  1073. package/dist/generated/model/getNextDocumentNumberType.d.cts +1 -1
  1074. package/dist/generated/model/getNextDocumentNumberType.d.ts +1 -1
  1075. package/dist/generated/model/getOrderIntegrations200.d.cts +1 -1
  1076. package/dist/generated/model/getOrderIntegrations200.d.ts +1 -1
  1077. package/dist/generated/model/getOrderIntegrationsParams.d.cts +6 -3
  1078. package/dist/generated/model/getOrderIntegrationsParams.d.ts +6 -3
  1079. package/dist/generated/model/getOrderIntegrationsParams.d.ts.map +1 -1
  1080. package/dist/generated/model/getOrders200.d.cts +1 -1
  1081. package/dist/generated/model/getOrders200.d.ts +1 -1
  1082. package/dist/generated/model/getOrdersParams.d.cts +6 -3
  1083. package/dist/generated/model/getOrdersParams.d.ts +6 -3
  1084. package/dist/generated/model/getOrdersParams.d.ts.map +1 -1
  1085. package/dist/generated/model/getPaymentByIdParams.d.cts +4 -2
  1086. package/dist/generated/model/getPaymentByIdParams.d.ts +4 -2
  1087. package/dist/generated/model/getPaymentByIdParams.d.ts.map +1 -1
  1088. package/dist/generated/model/getPayments200.d.cts +3 -3
  1089. package/dist/generated/model/getPayments200.d.ts +3 -3
  1090. package/dist/generated/model/getPayments200.d.ts.map +1 -1
  1091. package/dist/generated/model/getPaymentsParams.d.cts +10 -5
  1092. package/dist/generated/model/getPaymentsParams.d.ts +10 -5
  1093. package/dist/generated/model/getPaymentsParams.d.ts.map +1 -1
  1094. package/dist/generated/model/getPdfExportStatus200.d.cts +13 -2
  1095. package/dist/generated/model/getPdfExportStatus200.d.ts +13 -2
  1096. package/dist/generated/model/getPdfExportStatus200.d.ts.map +1 -1
  1097. package/dist/generated/model/getPdfExportStatus200Result.d.cts +18 -0
  1098. package/dist/generated/model/getPdfExportStatus200Result.d.ts +18 -0
  1099. package/dist/generated/model/getPdfExportStatus200Result.d.ts.map +1 -0
  1100. package/dist/generated/model/getPdfExportStatus200Status.d.cts +1 -1
  1101. package/dist/generated/model/getPdfExportStatus200Status.d.ts +1 -1
  1102. package/dist/generated/model/getRecurringInvoices200.d.cts +1 -1
  1103. package/dist/generated/model/getRecurringInvoices200.d.ts +1 -1
  1104. package/dist/generated/model/getRecurringInvoicesParams.d.cts +6 -3
  1105. package/dist/generated/model/getRecurringInvoicesParams.d.ts +6 -3
  1106. package/dist/generated/model/getRecurringInvoicesParams.d.ts.map +1 -1
  1107. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.cts +29 -0
  1108. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.ts +29 -0
  1109. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLanguage.d.ts.map +1 -0
  1110. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.cts +9 -1
  1111. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.ts +9 -1
  1112. package/dist/generated/model/getShareableAdvanceInvoiceHtmlLocale.d.ts.map +1 -1
  1113. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.cts +7 -2
  1114. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.ts +7 -2
  1115. package/dist/generated/model/getShareableAdvanceInvoiceHtmlParams.d.ts.map +1 -1
  1116. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.cts +29 -0
  1117. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.ts +29 -0
  1118. package/dist/generated/model/getShareableAdvanceInvoicePdfLanguage.d.ts.map +1 -0
  1119. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.cts +9 -1
  1120. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.ts +9 -1
  1121. package/dist/generated/model/getShareableAdvanceInvoicePdfLocale.d.ts.map +1 -1
  1122. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.cts +7 -2
  1123. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.ts +7 -2
  1124. package/dist/generated/model/getShareableAdvanceInvoicePdfParams.d.ts.map +1 -1
  1125. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.cts +29 -0
  1126. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.ts +29 -0
  1127. package/dist/generated/model/getShareableCreditNoteHtmlLanguage.d.ts.map +1 -0
  1128. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.cts +9 -1
  1129. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.ts +9 -1
  1130. package/dist/generated/model/getShareableCreditNoteHtmlLocale.d.ts.map +1 -1
  1131. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.cts +7 -2
  1132. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.ts +7 -2
  1133. package/dist/generated/model/getShareableCreditNoteHtmlParams.d.ts.map +1 -1
  1134. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.cts +29 -0
  1135. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.ts +29 -0
  1136. package/dist/generated/model/getShareableCreditNotePdfLanguage.d.ts.map +1 -0
  1137. package/dist/generated/model/getShareableCreditNotePdfLocale.d.cts +9 -1
  1138. package/dist/generated/model/getShareableCreditNotePdfLocale.d.ts +9 -1
  1139. package/dist/generated/model/getShareableCreditNotePdfLocale.d.ts.map +1 -1
  1140. package/dist/generated/model/getShareableCreditNotePdfParams.d.cts +7 -2
  1141. package/dist/generated/model/getShareableCreditNotePdfParams.d.ts +7 -2
  1142. package/dist/generated/model/getShareableCreditNotePdfParams.d.ts.map +1 -1
  1143. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.cts +29 -0
  1144. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.ts +29 -0
  1145. package/dist/generated/model/getShareableDeliveryNoteHtmlLanguage.d.ts.map +1 -0
  1146. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.cts +9 -1
  1147. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.ts +9 -1
  1148. package/dist/generated/model/getShareableDeliveryNoteHtmlLocale.d.ts.map +1 -1
  1149. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.cts +7 -2
  1150. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.ts +7 -2
  1151. package/dist/generated/model/getShareableDeliveryNoteHtmlParams.d.ts.map +1 -1
  1152. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.cts +29 -0
  1153. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.ts +29 -0
  1154. package/dist/generated/model/getShareableDeliveryNotePdfLanguage.d.ts.map +1 -0
  1155. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.cts +9 -1
  1156. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.ts +9 -1
  1157. package/dist/generated/model/getShareableDeliveryNotePdfLocale.d.ts.map +1 -1
  1158. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.cts +7 -2
  1159. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.ts +7 -2
  1160. package/dist/generated/model/getShareableDeliveryNotePdfParams.d.ts.map +1 -1
  1161. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.cts +29 -0
  1162. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.ts +29 -0
  1163. package/dist/generated/model/getShareableEstimateHtmlLanguage.d.ts.map +1 -0
  1164. package/dist/generated/model/getShareableEstimateHtmlLocale.d.cts +9 -1
  1165. package/dist/generated/model/getShareableEstimateHtmlLocale.d.ts +9 -1
  1166. package/dist/generated/model/getShareableEstimateHtmlLocale.d.ts.map +1 -1
  1167. package/dist/generated/model/getShareableEstimateHtmlParams.d.cts +7 -2
  1168. package/dist/generated/model/getShareableEstimateHtmlParams.d.ts +7 -2
  1169. package/dist/generated/model/getShareableEstimateHtmlParams.d.ts.map +1 -1
  1170. package/dist/generated/model/getShareableEstimatePdfLanguage.d.cts +29 -0
  1171. package/dist/generated/model/getShareableEstimatePdfLanguage.d.ts +29 -0
  1172. package/dist/generated/model/getShareableEstimatePdfLanguage.d.ts.map +1 -0
  1173. package/dist/generated/model/getShareableEstimatePdfLocale.d.cts +9 -1
  1174. package/dist/generated/model/getShareableEstimatePdfLocale.d.ts +9 -1
  1175. package/dist/generated/model/getShareableEstimatePdfLocale.d.ts.map +1 -1
  1176. package/dist/generated/model/getShareableEstimatePdfParams.d.cts +7 -2
  1177. package/dist/generated/model/getShareableEstimatePdfParams.d.ts +7 -2
  1178. package/dist/generated/model/getShareableEstimatePdfParams.d.ts.map +1 -1
  1179. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.cts +29 -0
  1180. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.ts +29 -0
  1181. package/dist/generated/model/getShareableInvoiceHtmlLanguage.d.ts.map +1 -0
  1182. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.cts +9 -1
  1183. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.ts +9 -1
  1184. package/dist/generated/model/getShareableInvoiceHtmlLocale.d.ts.map +1 -1
  1185. package/dist/generated/model/getShareableInvoiceHtmlParams.d.cts +7 -2
  1186. package/dist/generated/model/getShareableInvoiceHtmlParams.d.ts +7 -2
  1187. package/dist/generated/model/getShareableInvoiceHtmlParams.d.ts.map +1 -1
  1188. package/dist/generated/model/getShareableInvoicePdfLanguage.d.cts +29 -0
  1189. package/dist/generated/model/getShareableInvoicePdfLanguage.d.ts +29 -0
  1190. package/dist/generated/model/getShareableInvoicePdfLanguage.d.ts.map +1 -0
  1191. package/dist/generated/model/getShareableInvoicePdfLocale.d.cts +9 -1
  1192. package/dist/generated/model/getShareableInvoicePdfLocale.d.ts +9 -1
  1193. package/dist/generated/model/getShareableInvoicePdfLocale.d.ts.map +1 -1
  1194. package/dist/generated/model/getShareableInvoicePdfParams.d.cts +7 -2
  1195. package/dist/generated/model/getShareableInvoicePdfParams.d.ts +7 -2
  1196. package/dist/generated/model/getShareableInvoicePdfParams.d.ts.map +1 -1
  1197. package/dist/generated/model/getSloveniaTaxProfile200.d.cts +50 -0
  1198. package/dist/generated/model/getSloveniaTaxProfile200.d.ts +50 -0
  1199. package/dist/generated/model/getSloveniaTaxProfile200.d.ts.map +1 -0
  1200. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.cts +18 -0
  1201. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.ts +18 -0
  1202. package/dist/generated/model/getSloveniaTaxProfile200AccountingExports.d.ts.map +1 -0
  1203. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.cts +18 -0
  1204. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts +18 -0
  1205. package/dist/generated/model/getSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts.map +1 -0
  1206. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.cts +19 -0
  1207. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.ts +19 -0
  1208. package/dist/generated/model/getSloveniaTaxProfile200BusinessForm.d.ts.map +1 -0
  1209. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.cts +14 -0
  1210. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.ts +14 -0
  1211. package/dist/generated/model/getSloveniaTaxProfile200BusinessFormSource.d.ts.map +1 -0
  1212. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.cts +17 -0
  1213. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.ts +17 -0
  1214. package/dist/generated/model/getSloveniaTaxProfile200IncomeTaxRegime.d.ts.map +1 -0
  1215. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.cts +19 -0
  1216. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.ts +19 -0
  1217. package/dist/generated/model/getSloveniaTaxProfile200InferredBusinessForm.d.ts.map +1 -0
  1218. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.cts +14 -0
  1219. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.ts +14 -0
  1220. package/dist/generated/model/getSloveniaTaxProfile200SupportedExports.d.ts.map +1 -0
  1221. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.cts +17 -0
  1222. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.ts +17 -0
  1223. package/dist/generated/model/getSloveniaTaxProfile200TaxResidency.d.ts.map +1 -0
  1224. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.cts +18 -0
  1225. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.ts +18 -0
  1226. package/dist/generated/model/getSloveniaTaxProfile200VatProfile.d.ts.map +1 -0
  1227. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.cts +44 -0
  1228. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.ts +44 -0
  1229. package/dist/generated/model/getSloveniaTaxProfile200YearlyReporting.d.ts.map +1 -0
  1230. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.cts +18 -0
  1231. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.ts +18 -0
  1232. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingAccountingType.d.ts.map +1 -0
  1233. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  1234. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  1235. package/dist/generated/model/getSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  1236. package/dist/generated/model/getSuppliers200.d.cts +14 -0
  1237. package/dist/generated/model/getSuppliers200.d.ts +14 -0
  1238. package/dist/generated/model/getSuppliers200.d.ts.map +1 -0
  1239. package/dist/generated/model/getSuppliersParams.d.cts +36 -0
  1240. package/dist/generated/model/getSuppliersParams.d.ts +36 -0
  1241. package/dist/generated/model/getSuppliersParams.d.ts.map +1 -0
  1242. package/dist/generated/model/getTaxes200.d.cts +3 -3
  1243. package/dist/generated/model/getTaxes200.d.ts +3 -3
  1244. package/dist/generated/model/getTaxes200.d.ts.map +1 -1
  1245. package/dist/generated/model/getTaxesParams.d.cts +6 -3
  1246. package/dist/generated/model/getTaxesParams.d.ts +6 -3
  1247. package/dist/generated/model/getTaxesParams.d.ts.map +1 -1
  1248. package/dist/generated/model/getWebhookDeliveries200.d.cts +1 -1
  1249. package/dist/generated/model/getWebhookDeliveries200.d.ts +1 -1
  1250. package/dist/generated/model/getWebhookDeliveriesParams.d.cts +3 -3
  1251. package/dist/generated/model/getWebhookDeliveriesParams.d.ts +3 -3
  1252. package/dist/generated/model/getWebhooks200.d.cts +1 -1
  1253. package/dist/generated/model/getWebhooks200.d.ts +1 -1
  1254. package/dist/generated/model/getWebhooksParams.d.cts +3 -3
  1255. package/dist/generated/model/getWebhooksParams.d.ts +3 -3
  1256. package/dist/generated/model/handleFlowinWebhookBody.d.cts +11 -0
  1257. package/dist/generated/model/handleFlowinWebhookBody.d.ts +11 -0
  1258. package/dist/generated/model/handleFlowinWebhookBody.d.ts.map +1 -0
  1259. package/dist/generated/model/incomingPurchaseDocument.d.cts +119 -0
  1260. package/dist/generated/model/incomingPurchaseDocument.d.ts +119 -0
  1261. package/dist/generated/model/incomingPurchaseDocument.d.ts.map +1 -0
  1262. package/dist/generated/model/incomingPurchaseDocumentItem.d.cts +29 -0
  1263. package/dist/generated/model/incomingPurchaseDocumentItem.d.ts +29 -0
  1264. package/dist/generated/model/incomingPurchaseDocumentItem.d.ts.map +1 -0
  1265. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.cts +13 -0
  1266. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.ts +13 -0
  1267. package/dist/generated/model/incomingPurchaseDocumentItemClassification.d.ts.map +1 -0
  1268. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.cts +11 -0
  1269. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.ts +11 -0
  1270. package/dist/generated/model/incomingPurchaseDocumentMetadata.d.ts.map +1 -0
  1271. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.cts +16 -0
  1272. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.ts +16 -0
  1273. package/dist/generated/model/incomingPurchaseDocumentSummaryClassification.d.ts.map +1 -0
  1274. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.cts +26 -0
  1275. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.ts +26 -0
  1276. package/dist/generated/model/incomingPurchaseDocumentSummaryTax.d.ts.map +1 -0
  1277. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.cts +45 -0
  1278. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.ts +45 -0
  1279. package/dist/generated/model/incomingPurchaseDocumentSupplier.d.ts.map +1 -0
  1280. package/dist/generated/model/incomingPurchaseDocumentType.d.cts +14 -0
  1281. package/dist/generated/model/incomingPurchaseDocumentType.d.ts +14 -0
  1282. package/dist/generated/model/incomingPurchaseDocumentType.d.ts.map +1 -0
  1283. package/dist/generated/model/index.d.cts +337 -14
  1284. package/dist/generated/model/index.d.ts +337 -14
  1285. package/dist/generated/model/index.d.ts.map +1 -1
  1286. package/dist/generated/model/invoice.d.cts +28 -4
  1287. package/dist/generated/model/invoice.d.ts +28 -4
  1288. package/dist/generated/model/invoice.d.ts.map +1 -1
  1289. package/dist/generated/model/invoiceCalculationMode.d.cts +16 -0
  1290. package/dist/generated/model/invoiceCalculationMode.d.ts +16 -0
  1291. package/dist/generated/model/invoiceCalculationMode.d.ts.map +1 -0
  1292. package/dist/generated/model/invoiceItem.d.cts +33 -14
  1293. package/dist/generated/model/invoiceItem.d.ts +33 -14
  1294. package/dist/generated/model/invoiceItem.d.ts.map +1 -1
  1295. package/dist/generated/model/invoiceItemClassification.d.cts +18 -0
  1296. package/dist/generated/model/invoiceItemClassification.d.ts +18 -0
  1297. package/dist/generated/model/invoiceItemClassification.d.ts.map +1 -0
  1298. package/dist/generated/model/invoiceItemMetadata.d.cts +8 -4
  1299. package/dist/generated/model/invoiceItemMetadata.d.ts +8 -4
  1300. package/dist/generated/model/invoiceItemMetadata.d.ts.map +1 -1
  1301. package/dist/generated/model/invoiceItemType.d.cts +16 -0
  1302. package/dist/generated/model/invoiceItemType.d.ts +16 -0
  1303. package/dist/generated/model/invoiceItemType.d.ts.map +1 -0
  1304. package/dist/generated/model/invoiceList.d.cts +1 -1
  1305. package/dist/generated/model/invoiceList.d.ts +1 -1
  1306. package/dist/generated/model/invoiceMetadata.d.cts +1 -1
  1307. package/dist/generated/model/invoiceMetadata.d.ts +1 -1
  1308. package/dist/generated/model/invoicePt.d.cts +11 -0
  1309. package/dist/generated/model/invoicePt.d.ts +11 -0
  1310. package/dist/generated/model/invoicePt.d.ts.map +1 -0
  1311. package/dist/generated/model/invoiceTransactionType.d.cts +3 -1
  1312. package/dist/generated/model/invoiceTransactionType.d.ts +3 -1
  1313. package/dist/generated/model/invoiceTransactionType.d.ts.map +1 -1
  1314. package/dist/generated/model/item.d.cts +7 -1
  1315. package/dist/generated/model/item.d.ts +7 -1
  1316. package/dist/generated/model/item.d.ts.map +1 -1
  1317. package/dist/generated/model/itemClassification.d.cts +18 -0
  1318. package/dist/generated/model/itemClassification.d.ts +18 -0
  1319. package/dist/generated/model/itemClassification.d.ts.map +1 -0
  1320. package/dist/generated/model/itemMetadata.d.cts +1 -1
  1321. package/dist/generated/model/itemMetadata.d.ts +1 -1
  1322. package/dist/generated/model/itemResponse.d.cts +13 -0
  1323. package/dist/generated/model/itemResponse.d.ts +13 -0
  1324. package/dist/generated/model/itemResponse.d.ts.map +1 -0
  1325. package/dist/generated/model/legacyAuthRequest.d.cts +17 -0
  1326. package/dist/generated/model/legacyAuthRequest.d.ts +17 -0
  1327. package/dist/generated/model/legacyAuthRequest.d.ts.map +1 -0
  1328. package/dist/generated/model/legacyAuthResponse.d.cts +14 -0
  1329. package/dist/generated/model/legacyAuthResponse.d.ts +14 -0
  1330. package/dist/generated/model/legacyAuthResponse.d.ts.map +1 -0
  1331. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.cts +33 -0
  1332. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.ts +33 -0
  1333. package/dist/generated/model/legacyAuthResponseOrganizationsItem.d.ts.map +1 -0
  1334. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.cts +46 -0
  1335. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.ts +46 -0
  1336. package/dist/generated/model/legacyAuthResponseOrganizationsItemSubscriptionReview.d.ts.map +1 -0
  1337. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.cts +21 -0
  1338. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.ts +21 -0
  1339. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItem.d.ts.map +1 -0
  1340. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.cts +19 -0
  1341. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.ts +19 -0
  1342. package/dist/generated/model/legacyAuthResponseOrganizationsItemUnsupportedItemCode.d.ts.map +1 -0
  1343. package/dist/generated/model/limitCheck.d.cts +1 -1
  1344. package/dist/generated/model/limitCheck.d.ts +1 -1
  1345. package/dist/generated/model/lineDiscount.d.cts +1 -1
  1346. package/dist/generated/model/lineDiscount.d.ts +1 -1
  1347. package/dist/generated/model/lineDiscountType.d.cts +1 -1
  1348. package/dist/generated/model/lineDiscountType.d.ts +1 -1
  1349. package/dist/generated/model/listEInvoicingSubmissions200.d.cts +14 -0
  1350. package/dist/generated/model/listEInvoicingSubmissions200.d.ts +14 -0
  1351. package/dist/generated/model/listEInvoicingSubmissions200.d.ts.map +1 -0
  1352. package/dist/generated/model/listEInvoicingSubmissionsParams.d.cts +30 -0
  1353. package/dist/generated/model/listEInvoicingSubmissionsParams.d.ts +30 -0
  1354. package/dist/generated/model/listEInvoicingSubmissionsParams.d.ts.map +1 -0
  1355. package/dist/generated/model/{pdfExportByDateRangeType.d.cts → listPtAtcudSeriesDocumentType.d.cts} +6 -9
  1356. package/dist/generated/model/{pdfExportByDateRangeType.d.ts → listPtAtcudSeriesDocumentType.d.ts} +6 -9
  1357. package/dist/generated/model/listPtAtcudSeriesDocumentType.d.ts.map +1 -0
  1358. package/dist/generated/model/listPtAtcudSeriesParams.d.cts +16 -0
  1359. package/dist/generated/model/listPtAtcudSeriesParams.d.ts +16 -0
  1360. package/dist/generated/model/listPtAtcudSeriesParams.d.ts.map +1 -0
  1361. package/dist/generated/model/migrationJobListResponse.d.cts +12 -0
  1362. package/dist/generated/model/migrationJobListResponse.d.ts +12 -0
  1363. package/dist/generated/model/migrationJobListResponse.d.ts.map +1 -0
  1364. package/dist/generated/model/migrationJobResponse.d.cts +55 -0
  1365. package/dist/generated/model/migrationJobResponse.d.ts +55 -0
  1366. package/dist/generated/model/migrationJobResponse.d.ts.map +1 -0
  1367. package/dist/generated/model/migrationJobResponseStatus.d.cts +18 -0
  1368. package/dist/generated/model/migrationJobResponseStatus.d.ts +18 -0
  1369. package/dist/generated/model/migrationJobResponseStatus.d.ts.map +1 -0
  1370. package/dist/generated/model/movablePremise.d.cts +1 -1
  1371. package/dist/generated/model/movablePremise.d.ts +1 -1
  1372. package/dist/generated/model/nextDocumentNumber.d.cts +7 -1
  1373. package/dist/generated/model/nextDocumentNumber.d.ts +7 -1
  1374. package/dist/generated/model/nextDocumentNumber.d.ts.map +1 -1
  1375. package/dist/generated/model/nextDocumentNumberFina.d.cts +5 -5
  1376. package/dist/generated/model/nextDocumentNumberFina.d.ts +5 -5
  1377. package/dist/generated/model/nextDocumentNumberFina.d.ts.map +1 -1
  1378. package/dist/generated/model/nextDocumentNumberFurs.d.cts +1 -1
  1379. package/dist/generated/model/nextDocumentNumberFurs.d.ts +1 -1
  1380. package/dist/generated/model/nextDocumentNumberPt.d.cts +22 -0
  1381. package/dist/generated/model/nextDocumentNumberPt.d.ts +22 -0
  1382. package/dist/generated/model/nextDocumentNumberPt.d.ts.map +1 -0
  1383. package/dist/generated/model/order.d.cts +2 -4
  1384. package/dist/generated/model/order.d.ts +2 -4
  1385. package/dist/generated/model/order.d.ts.map +1 -1
  1386. package/dist/generated/model/orderAddress.d.cts +1 -1
  1387. package/dist/generated/model/orderAddress.d.ts +1 -1
  1388. package/dist/generated/model/orderBase.d.cts +1 -1
  1389. package/dist/generated/model/orderBase.d.ts +1 -1
  1390. package/dist/generated/model/orderBaseMetadata.d.cts +1 -1
  1391. package/dist/generated/model/orderBaseMetadata.d.ts +1 -1
  1392. package/dist/generated/model/orderBasePaymentStatus.d.cts +1 -1
  1393. package/dist/generated/model/orderBasePaymentStatus.d.ts +1 -1
  1394. package/dist/generated/model/orderBaseRawData.d.cts +1 -1
  1395. package/dist/generated/model/orderBaseRawData.d.ts +1 -1
  1396. package/dist/generated/model/orderBaseSource.d.cts +1 -1
  1397. package/dist/generated/model/orderBaseSource.d.ts +1 -1
  1398. package/dist/generated/model/orderBaseStatus.d.cts +1 -1
  1399. package/dist/generated/model/orderBaseStatus.d.ts +1 -1
  1400. package/dist/generated/model/orderCustomer.d.cts +1 -1
  1401. package/dist/generated/model/orderCustomer.d.ts +1 -1
  1402. package/dist/generated/model/orderIntegration.d.cts +2 -4
  1403. package/dist/generated/model/orderIntegration.d.ts +2 -4
  1404. package/dist/generated/model/orderIntegration.d.ts.map +1 -1
  1405. package/dist/generated/model/orderIntegrationBase.d.cts +1 -1
  1406. package/dist/generated/model/orderIntegrationBase.d.ts +1 -1
  1407. package/dist/generated/model/orderIntegrationBaseAutoProcessOn.d.cts +1 -1
  1408. package/dist/generated/model/orderIntegrationBaseAutoProcessOn.d.ts +1 -1
  1409. package/dist/generated/model/orderIntegrationBaseMetadata.d.cts +1 -1
  1410. package/dist/generated/model/orderIntegrationBaseMetadata.d.ts +1 -1
  1411. package/dist/generated/model/orderIntegrationBaseSource.d.cts +1 -1
  1412. package/dist/generated/model/orderIntegrationBaseSource.d.ts +1 -1
  1413. package/dist/generated/model/orderItem.d.cts +5 -1
  1414. package/dist/generated/model/orderItem.d.ts +5 -1
  1415. package/dist/generated/model/orderItem.d.ts.map +1 -1
  1416. package/dist/generated/model/orderItemKind.d.cts +13 -0
  1417. package/dist/generated/model/orderItemKind.d.ts +13 -0
  1418. package/dist/generated/model/orderItemKind.d.ts.map +1 -0
  1419. package/dist/generated/model/orderItemTaxesItem.d.cts +11 -0
  1420. package/dist/generated/model/orderItemTaxesItem.d.ts +11 -0
  1421. package/dist/generated/model/orderItemTaxesItem.d.ts.map +1 -0
  1422. package/dist/generated/model/orderTransaction.d.cts +1 -1
  1423. package/dist/generated/model/orderTransaction.d.ts +1 -1
  1424. package/dist/generated/model/paginationMetadata.d.cts +3 -3
  1425. package/dist/generated/model/paginationMetadata.d.ts +3 -3
  1426. package/dist/generated/model/partialAdvanceInvoicePreview.d.cts +33 -4
  1427. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts +33 -4
  1428. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts.map +1 -1
  1429. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.cts +17 -0
  1430. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.ts +17 -0
  1431. package/dist/generated/model/partialAdvanceInvoicePreviewCalculationMode.d.ts.map +1 -0
  1432. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.cts +6 -1
  1433. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.ts +6 -1
  1434. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItem.d.ts.map +1 -1
  1435. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.cts +13 -0
  1436. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.ts +13 -0
  1437. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1438. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1439. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1440. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1441. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemMetadata.d.cts +1 -1
  1442. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemMetadata.d.ts +1 -1
  1443. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemTaxesItem.d.cts +1 -1
  1444. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemTaxesItem.d.ts +1 -1
  1445. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.cts +12 -0
  1446. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.ts +12 -0
  1447. package/dist/generated/model/partialAdvanceInvoicePreviewItemsItemType.d.ts.map +1 -0
  1448. package/dist/generated/model/partialAdvanceInvoicePreviewMetadata.d.cts +1 -1
  1449. package/dist/generated/model/partialAdvanceInvoicePreviewMetadata.d.ts +1 -1
  1450. package/dist/generated/model/partialCreditNotePreview.d.cts +36 -7
  1451. package/dist/generated/model/partialCreditNotePreview.d.ts +36 -7
  1452. package/dist/generated/model/partialCreditNotePreview.d.ts.map +1 -1
  1453. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.cts +17 -0
  1454. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.ts +17 -0
  1455. package/dist/generated/model/partialCreditNotePreviewCalculationMode.d.ts.map +1 -0
  1456. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.cts +6 -1
  1457. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.ts +6 -1
  1458. package/dist/generated/model/partialCreditNotePreviewItemsItem.d.ts.map +1 -1
  1459. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.cts +13 -0
  1460. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.ts +13 -0
  1461. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1462. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1463. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1464. package/dist/generated/model/partialCreditNotePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1465. package/dist/generated/model/partialCreditNotePreviewItemsItemMetadata.d.cts +1 -1
  1466. package/dist/generated/model/partialCreditNotePreviewItemsItemMetadata.d.ts +1 -1
  1467. package/dist/generated/model/partialCreditNotePreviewItemsItemTaxesItem.d.cts +1 -1
  1468. package/dist/generated/model/partialCreditNotePreviewItemsItemTaxesItem.d.ts +1 -1
  1469. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.cts +12 -0
  1470. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.ts +12 -0
  1471. package/dist/generated/model/partialCreditNotePreviewItemsItemType.d.ts.map +1 -0
  1472. package/dist/generated/model/partialCreditNotePreviewMetadata.d.cts +1 -1
  1473. package/dist/generated/model/partialCreditNotePreviewMetadata.d.ts +1 -1
  1474. package/dist/generated/model/partialDeliveryNotePreview.d.cts +31 -6
  1475. package/dist/generated/model/partialDeliveryNotePreview.d.ts +31 -6
  1476. package/dist/generated/model/partialDeliveryNotePreview.d.ts.map +1 -1
  1477. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.cts +17 -0
  1478. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.ts +17 -0
  1479. package/dist/generated/model/partialDeliveryNotePreviewCalculationMode.d.ts.map +1 -0
  1480. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.cts +6 -1
  1481. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.ts +6 -1
  1482. package/dist/generated/model/partialDeliveryNotePreviewItemsItem.d.ts.map +1 -1
  1483. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.cts +13 -0
  1484. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.ts +13 -0
  1485. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1486. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1487. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1488. package/dist/generated/model/partialDeliveryNotePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1489. package/dist/generated/model/partialDeliveryNotePreviewItemsItemMetadata.d.cts +1 -1
  1490. package/dist/generated/model/partialDeliveryNotePreviewItemsItemMetadata.d.ts +1 -1
  1491. package/dist/generated/model/partialDeliveryNotePreviewItemsItemTaxesItem.d.cts +1 -1
  1492. package/dist/generated/model/partialDeliveryNotePreviewItemsItemTaxesItem.d.ts +1 -1
  1493. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.cts +12 -0
  1494. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.ts +12 -0
  1495. package/dist/generated/model/partialDeliveryNotePreviewItemsItemType.d.ts.map +1 -0
  1496. package/dist/generated/model/partialDeliveryNotePreviewMetadata.d.cts +1 -1
  1497. package/dist/generated/model/partialDeliveryNotePreviewMetadata.d.ts +1 -1
  1498. package/dist/generated/model/partialEstimatePreview.d.cts +29 -5
  1499. package/dist/generated/model/partialEstimatePreview.d.ts +29 -5
  1500. package/dist/generated/model/partialEstimatePreview.d.ts.map +1 -1
  1501. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.cts +17 -0
  1502. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.ts +17 -0
  1503. package/dist/generated/model/partialEstimatePreviewCalculationMode.d.ts.map +1 -0
  1504. package/dist/generated/model/partialEstimatePreviewItemsItem.d.cts +6 -1
  1505. package/dist/generated/model/partialEstimatePreviewItemsItem.d.ts +6 -1
  1506. package/dist/generated/model/partialEstimatePreviewItemsItem.d.ts.map +1 -1
  1507. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.cts +13 -0
  1508. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.ts +13 -0
  1509. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1510. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1511. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1512. package/dist/generated/model/partialEstimatePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1513. package/dist/generated/model/partialEstimatePreviewItemsItemMetadata.d.cts +1 -1
  1514. package/dist/generated/model/partialEstimatePreviewItemsItemMetadata.d.ts +1 -1
  1515. package/dist/generated/model/partialEstimatePreviewItemsItemTaxesItem.d.cts +1 -1
  1516. package/dist/generated/model/partialEstimatePreviewItemsItemTaxesItem.d.ts +1 -1
  1517. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.cts +12 -0
  1518. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.ts +12 -0
  1519. package/dist/generated/model/partialEstimatePreviewItemsItemType.d.ts.map +1 -0
  1520. package/dist/generated/model/partialEstimatePreviewMetadata.d.cts +1 -1
  1521. package/dist/generated/model/partialEstimatePreviewMetadata.d.ts +1 -1
  1522. package/dist/generated/model/partialEstimatePreviewTitleType.d.cts +3 -3
  1523. package/dist/generated/model/partialEstimatePreviewTitleType.d.ts +3 -3
  1524. package/dist/generated/model/partialInvoicePreview.d.cts +39 -6
  1525. package/dist/generated/model/partialInvoicePreview.d.ts +39 -6
  1526. package/dist/generated/model/partialInvoicePreview.d.ts.map +1 -1
  1527. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.cts +17 -0
  1528. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.ts +17 -0
  1529. package/dist/generated/model/partialInvoicePreviewCalculationMode.d.ts.map +1 -0
  1530. package/dist/generated/model/partialInvoicePreviewItemsItem.d.cts +6 -1
  1531. package/dist/generated/model/partialInvoicePreviewItemsItem.d.ts +6 -1
  1532. package/dist/generated/model/partialInvoicePreviewItemsItem.d.ts.map +1 -1
  1533. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.cts +13 -0
  1534. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.ts +13 -0
  1535. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItem.d.ts.map +1 -0
  1536. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.cts +13 -0
  1537. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.ts +13 -0
  1538. package/dist/generated/model/partialInvoicePreviewItemsItemDiscountsItemType.d.ts.map +1 -0
  1539. package/dist/generated/model/partialInvoicePreviewItemsItemMetadata.d.cts +1 -1
  1540. package/dist/generated/model/partialInvoicePreviewItemsItemMetadata.d.ts +1 -1
  1541. package/dist/generated/model/partialInvoicePreviewItemsItemTaxesItem.d.cts +1 -1
  1542. package/dist/generated/model/partialInvoicePreviewItemsItemTaxesItem.d.ts +1 -1
  1543. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.cts +12 -0
  1544. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.ts +12 -0
  1545. package/dist/generated/model/partialInvoicePreviewItemsItemType.d.ts.map +1 -0
  1546. package/dist/generated/model/partialInvoicePreviewMetadata.d.cts +1 -1
  1547. package/dist/generated/model/partialInvoicePreviewMetadata.d.ts +1 -1
  1548. package/dist/generated/model/patchEntityBody.d.cts +27 -3
  1549. package/dist/generated/model/patchEntityBody.d.ts +27 -3
  1550. package/dist/generated/model/patchEntityBody.d.ts.map +1 -1
  1551. package/dist/generated/model/patchEntityBodyMetadata.d.cts +1 -1
  1552. package/dist/generated/model/patchEntityBodyMetadata.d.ts +1 -1
  1553. package/dist/generated/model/patchEntityBodySettings.d.cts +76 -1
  1554. package/dist/generated/model/patchEntityBodySettings.d.ts +76 -1
  1555. package/dist/generated/model/patchEntityBodySettings.d.ts.map +1 -1
  1556. package/dist/generated/model/patchEntityBodySettingsCalculation.d.cts +19 -0
  1557. package/dist/generated/model/patchEntityBodySettingsCalculation.d.ts +19 -0
  1558. package/dist/generated/model/patchEntityBodySettingsCalculation.d.ts.map +1 -0
  1559. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.cts +22 -0
  1560. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.ts +22 -0
  1561. package/dist/generated/model/patchEntityBodySettingsEInvoicing.d.ts.map +1 -0
  1562. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.cts +35 -5
  1563. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.ts +35 -5
  1564. package/dist/generated/model/patchEntityBodySettingsEmailDefaults.d.ts.map +1 -1
  1565. package/dist/generated/model/patchEntityBodySettingsEpcQr.d.cts +1 -1
  1566. package/dist/generated/model/patchEntityBodySettingsEpcQr.d.ts +1 -1
  1567. package/dist/generated/model/patchEntityBodySettingsFina.d.cts +7 -2
  1568. package/dist/generated/model/patchEntityBodySettingsFina.d.ts +7 -2
  1569. package/dist/generated/model/patchEntityBodySettingsFina.d.ts.map +1 -1
  1570. package/dist/generated/model/patchEntityBodySettingsFurs.d.cts +5 -1
  1571. package/dist/generated/model/patchEntityBodySettingsFurs.d.ts +5 -1
  1572. package/dist/generated/model/patchEntityBodySettingsFurs.d.ts.map +1 -1
  1573. package/dist/generated/model/patchEntityBodySettingsNumberFormats.d.cts +1 -1
  1574. package/dist/generated/model/patchEntityBodySettingsNumberFormats.d.ts +1 -1
  1575. package/dist/generated/model/patchEntityBodySettingsOverdueNotifications.d.cts +1 -1
  1576. package/dist/generated/model/patchEntityBodySettingsOverdueNotifications.d.ts +1 -1
  1577. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.cts +3 -1
  1578. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.ts +3 -1
  1579. package/dist/generated/model/patchEntityBodySettingsPdfTemplate.d.ts.map +1 -1
  1580. package/dist/generated/model/patchEntityBodySettingsPt.d.cts +29 -0
  1581. package/dist/generated/model/patchEntityBodySettingsPt.d.ts +29 -0
  1582. package/dist/generated/model/patchEntityBodySettingsPt.d.ts.map +1 -0
  1583. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.cts +221 -0
  1584. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.ts +221 -0
  1585. package/dist/generated/model/patchEntityBodySettingsSlovenia.d.ts.map +1 -0
  1586. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.cts +12 -2
  1587. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.ts +12 -2
  1588. package/dist/generated/model/patchEntityBodySettingsTaxClauseDefaults.d.ts.map +1 -1
  1589. package/dist/generated/model/patchEntityBodySettingsUpnQr.d.cts +1 -1
  1590. package/dist/generated/model/patchEntityBodySettingsUpnQr.d.ts +1 -1
  1591. package/dist/generated/model/patchMeBody.d.cts +5 -2
  1592. package/dist/generated/model/patchMeBody.d.ts +5 -2
  1593. package/dist/generated/model/patchMeBody.d.ts.map +1 -1
  1594. package/dist/generated/model/patchMeBodyLocale.d.cts +19 -3
  1595. package/dist/generated/model/patchMeBodyLocale.d.ts +19 -3
  1596. package/dist/generated/model/patchMeBodyLocale.d.ts.map +1 -1
  1597. package/dist/generated/model/payment.d.cts +47 -3
  1598. package/dist/generated/model/payment.d.ts +47 -3
  1599. package/dist/generated/model/payment.d.ts.map +1 -1
  1600. package/dist/generated/model/paymentAdvanceInvoice.d.cts +18 -0
  1601. package/dist/generated/model/paymentAdvanceInvoice.d.ts +18 -0
  1602. package/dist/generated/model/paymentAdvanceInvoice.d.ts.map +1 -0
  1603. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.cts +34 -0
  1604. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.ts +34 -0
  1605. package/dist/generated/model/paymentAppliedToIncomingPurchaseDocument.d.ts.map +1 -0
  1606. package/dist/generated/model/paymentCreditNote.d.cts +18 -0
  1607. package/dist/generated/model/paymentCreditNote.d.ts +18 -0
  1608. package/dist/generated/model/paymentCreditNote.d.ts.map +1 -0
  1609. package/dist/generated/model/paymentIncomingPurchaseDocument.d.cts +34 -0
  1610. package/dist/generated/model/paymentIncomingPurchaseDocument.d.ts +34 -0
  1611. package/dist/generated/model/paymentIncomingPurchaseDocument.d.ts.map +1 -0
  1612. package/dist/generated/model/paymentInvoice.d.cts +18 -0
  1613. package/dist/generated/model/paymentInvoice.d.ts +18 -0
  1614. package/dist/generated/model/paymentInvoice.d.ts.map +1 -0
  1615. package/dist/generated/model/paymentMetadata.d.cts +8 -4
  1616. package/dist/generated/model/paymentMetadata.d.ts +8 -4
  1617. package/dist/generated/model/paymentMetadata.d.ts.map +1 -1
  1618. package/dist/generated/model/paymentType.d.cts +1 -1
  1619. package/dist/generated/model/paymentType.d.ts +1 -1
  1620. package/dist/generated/model/pdfExportByDateRange.d.cts +29 -8
  1621. package/dist/generated/model/pdfExportByDateRange.d.ts +29 -8
  1622. package/dist/generated/model/pdfExportByDateRange.d.ts.map +1 -1
  1623. package/dist/generated/model/pdfExportByDateRangeLanguage.d.cts +33 -0
  1624. package/dist/generated/model/pdfExportByDateRangeLanguage.d.ts +33 -0
  1625. package/dist/generated/model/pdfExportByDateRangeLanguage.d.ts.map +1 -0
  1626. package/dist/generated/model/pdfExportByDateRangeLocale.d.cts +33 -0
  1627. package/dist/generated/model/pdfExportByDateRangeLocale.d.ts +33 -0
  1628. package/dist/generated/model/pdfExportByDateRangeLocale.d.ts.map +1 -0
  1629. package/dist/generated/model/pdfExportByDateRangeTypesItem.d.cts +19 -0
  1630. package/dist/generated/model/pdfExportByDateRangeTypesItem.d.ts +19 -0
  1631. package/dist/generated/model/pdfExportByDateRangeTypesItem.d.ts.map +1 -0
  1632. package/dist/generated/model/pdfExportByDocumentIds.d.cts +14 -5
  1633. package/dist/generated/model/pdfExportByDocumentIds.d.ts +14 -5
  1634. package/dist/generated/model/pdfExportByDocumentIds.d.ts.map +1 -1
  1635. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.cts +33 -0
  1636. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.ts +33 -0
  1637. package/dist/generated/model/pdfExportByDocumentIdsLanguage.d.ts.map +1 -0
  1638. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.cts +33 -0
  1639. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.ts +33 -0
  1640. package/dist/generated/model/pdfExportByDocumentIdsLocale.d.ts.map +1 -0
  1641. package/dist/generated/model/permanentDeleteDocumentParams.d.cts +3 -3
  1642. package/dist/generated/model/permanentDeleteDocumentParams.d.ts +3 -3
  1643. package/dist/generated/model/permanentDeleteDocumentParams.d.ts.map +1 -1
  1644. package/dist/generated/model/permanentDeleteDocumentType.d.cts +1 -1
  1645. package/dist/generated/model/permanentDeleteDocumentType.d.ts +1 -1
  1646. package/dist/generated/model/planLimits.d.cts +37 -2
  1647. package/dist/generated/model/planLimits.d.ts +37 -2
  1648. package/dist/generated/model/planLimits.d.ts.map +1 -1
  1649. package/dist/generated/model/ptAtcudSeries.d.cts +47 -0
  1650. package/dist/generated/model/ptAtcudSeries.d.ts +47 -0
  1651. package/dist/generated/model/ptAtcudSeries.d.ts.map +1 -0
  1652. package/dist/generated/model/ptAtcudSeriesDocumentType.d.cts +18 -0
  1653. package/dist/generated/model/ptAtcudSeriesDocumentType.d.ts +18 -0
  1654. package/dist/generated/model/ptAtcudSeriesDocumentType.d.ts.map +1 -0
  1655. package/dist/generated/model/ptDocumentInput.d.cts +72 -0
  1656. package/dist/generated/model/ptDocumentInput.d.ts +72 -0
  1657. package/dist/generated/model/ptDocumentInput.d.ts.map +1 -0
  1658. package/dist/generated/model/realEstatePremise.d.cts +6 -3
  1659. package/dist/generated/model/realEstatePremise.d.ts +6 -3
  1660. package/dist/generated/model/realEstatePremise.d.ts.map +1 -1
  1661. package/dist/generated/model/recurringInvoice.d.cts +2 -4
  1662. package/dist/generated/model/recurringInvoice.d.ts +2 -4
  1663. package/dist/generated/model/recurringInvoice.d.ts.map +1 -1
  1664. package/dist/generated/model/recurringInvoiceBase.d.cts +1 -1
  1665. package/dist/generated/model/recurringInvoiceBase.d.ts +1 -1
  1666. package/dist/generated/model/recurringInvoiceBaseFrequency.d.cts +1 -1
  1667. package/dist/generated/model/recurringInvoiceBaseFrequency.d.ts +1 -1
  1668. package/dist/generated/model/recurringInvoiceBaseMetadata.d.cts +1 -1
  1669. package/dist/generated/model/recurringInvoiceBaseMetadata.d.ts +1 -1
  1670. package/dist/generated/model/recurringInvoiceBaseStatus.d.cts +1 -1
  1671. package/dist/generated/model/recurringInvoiceBaseStatus.d.ts +1 -1
  1672. package/dist/generated/model/registerEInvoicingSupplierRequest.d.cts +65 -0
  1673. package/dist/generated/model/registerEInvoicingSupplierRequest.d.ts +65 -0
  1674. package/dist/generated/model/registerEInvoicingSupplierRequest.d.ts.map +1 -0
  1675. package/dist/generated/model/registerFinaDeviceBody.d.cts +3 -3
  1676. package/dist/generated/model/registerFinaDeviceBody.d.ts +3 -3
  1677. package/dist/generated/model/registerFinaDeviceBody.d.ts.map +1 -1
  1678. package/dist/generated/model/registerFursElectronicDeviceBody.d.cts +1 -1
  1679. package/dist/generated/model/registerFursElectronicDeviceBody.d.ts +1 -1
  1680. package/dist/generated/model/registerFursMovablePremiseBody.d.cts +1 -1
  1681. package/dist/generated/model/registerFursMovablePremiseBody.d.ts +1 -1
  1682. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremise.d.cts +1 -1
  1683. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremise.d.ts +1 -1
  1684. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremisePremiseType.d.cts +1 -1
  1685. package/dist/generated/model/registerFursMovablePremiseBodyMovablePremisePremiseType.d.ts +1 -1
  1686. package/dist/generated/model/registerFursRealEstatePremiseBody.d.cts +1 -1
  1687. package/dist/generated/model/registerFursRealEstatePremiseBody.d.ts +1 -1
  1688. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.cts +1 -1
  1689. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts +1 -1
  1690. package/dist/generated/model/removeEntityUser200.d.cts +1 -1
  1691. package/dist/generated/model/removeEntityUser200.d.ts +1 -1
  1692. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.cts +13 -0
  1693. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.ts +13 -0
  1694. package/dist/generated/model/renderAdvanceInvoicePreviewEpcQrEnabled.d.ts.map +1 -0
  1695. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.cts +25 -2
  1696. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.ts +25 -2
  1697. package/dist/generated/model/renderAdvanceInvoicePreviewParams.d.ts.map +1 -1
  1698. package/dist/generated/model/renderAdvanceInvoicePreviewPartial.d.cts +1 -1
  1699. package/dist/generated/model/renderAdvanceInvoicePreviewPartial.d.ts +1 -1
  1700. package/dist/generated/model/renderAdvanceInvoicePreviewTemplate.d.cts +2 -1
  1701. package/dist/generated/model/renderAdvanceInvoicePreviewTemplate.d.ts +2 -1
  1702. package/dist/generated/model/renderAdvanceInvoicePreviewTemplate.d.ts.map +1 -1
  1703. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.cts +13 -0
  1704. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.ts +13 -0
  1705. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1706. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.cts +13 -0
  1707. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.ts +13 -0
  1708. package/dist/generated/model/renderAdvanceInvoicePreviewUpnQrEnabled.d.ts.map +1 -0
  1709. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.cts +13 -0
  1710. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.ts +13 -0
  1711. package/dist/generated/model/renderCreditNotePreviewEpcQrEnabled.d.ts.map +1 -0
  1712. package/dist/generated/model/renderCreditNotePreviewParams.d.cts +25 -2
  1713. package/dist/generated/model/renderCreditNotePreviewParams.d.ts +25 -2
  1714. package/dist/generated/model/renderCreditNotePreviewParams.d.ts.map +1 -1
  1715. package/dist/generated/model/renderCreditNotePreviewPartial.d.cts +1 -1
  1716. package/dist/generated/model/renderCreditNotePreviewPartial.d.ts +1 -1
  1717. package/dist/generated/model/renderCreditNotePreviewTemplate.d.cts +2 -1
  1718. package/dist/generated/model/renderCreditNotePreviewTemplate.d.ts +2 -1
  1719. package/dist/generated/model/renderCreditNotePreviewTemplate.d.ts.map +1 -1
  1720. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.cts +13 -0
  1721. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.ts +13 -0
  1722. package/dist/generated/model/renderCreditNotePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1723. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.cts +13 -0
  1724. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.ts +13 -0
  1725. package/dist/generated/model/renderCreditNotePreviewUpnQrEnabled.d.ts.map +1 -0
  1726. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.cts +13 -0
  1727. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.ts +13 -0
  1728. package/dist/generated/model/renderDeliveryNotePreviewEpcQrEnabled.d.ts.map +1 -0
  1729. package/dist/generated/model/renderDeliveryNotePreviewParams.d.cts +25 -2
  1730. package/dist/generated/model/renderDeliveryNotePreviewParams.d.ts +25 -2
  1731. package/dist/generated/model/renderDeliveryNotePreviewParams.d.ts.map +1 -1
  1732. package/dist/generated/model/renderDeliveryNotePreviewPartial.d.cts +1 -1
  1733. package/dist/generated/model/renderDeliveryNotePreviewPartial.d.ts +1 -1
  1734. package/dist/generated/model/renderDeliveryNotePreviewTemplate.d.cts +2 -1
  1735. package/dist/generated/model/renderDeliveryNotePreviewTemplate.d.ts +2 -1
  1736. package/dist/generated/model/renderDeliveryNotePreviewTemplate.d.ts.map +1 -1
  1737. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.cts +13 -0
  1738. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.ts +13 -0
  1739. package/dist/generated/model/renderDeliveryNotePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1740. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.cts +13 -0
  1741. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.ts +13 -0
  1742. package/dist/generated/model/renderDeliveryNotePreviewUpnQrEnabled.d.ts.map +1 -0
  1743. package/dist/generated/model/renderDocumentHtmlParams.d.cts +10 -2
  1744. package/dist/generated/model/renderDocumentHtmlParams.d.ts +10 -2
  1745. package/dist/generated/model/renderDocumentHtmlParams.d.ts.map +1 -1
  1746. package/dist/generated/model/renderDocumentHtmlTemplate.d.cts +2 -1
  1747. package/dist/generated/model/renderDocumentHtmlTemplate.d.ts +2 -1
  1748. package/dist/generated/model/renderDocumentHtmlTemplate.d.ts.map +1 -1
  1749. package/dist/generated/model/renderDocumentPdfParams.d.cts +10 -2
  1750. package/dist/generated/model/renderDocumentPdfParams.d.ts +10 -2
  1751. package/dist/generated/model/renderDocumentPdfParams.d.ts.map +1 -1
  1752. package/dist/generated/model/renderDocumentPdfTemplate.d.cts +2 -1
  1753. package/dist/generated/model/renderDocumentPdfTemplate.d.ts +2 -1
  1754. package/dist/generated/model/renderDocumentPdfTemplate.d.ts.map +1 -1
  1755. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.cts +13 -0
  1756. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.ts +13 -0
  1757. package/dist/generated/model/renderEstimatePreviewEpcQrEnabled.d.ts.map +1 -0
  1758. package/dist/generated/model/renderEstimatePreviewParams.d.cts +25 -2
  1759. package/dist/generated/model/renderEstimatePreviewParams.d.ts +25 -2
  1760. package/dist/generated/model/renderEstimatePreviewParams.d.ts.map +1 -1
  1761. package/dist/generated/model/renderEstimatePreviewPartial.d.cts +1 -1
  1762. package/dist/generated/model/renderEstimatePreviewPartial.d.ts +1 -1
  1763. package/dist/generated/model/renderEstimatePreviewTemplate.d.cts +2 -1
  1764. package/dist/generated/model/renderEstimatePreviewTemplate.d.ts +2 -1
  1765. package/dist/generated/model/renderEstimatePreviewTemplate.d.ts.map +1 -1
  1766. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.cts +13 -0
  1767. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.ts +13 -0
  1768. package/dist/generated/model/renderEstimatePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1769. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.cts +13 -0
  1770. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.ts +13 -0
  1771. package/dist/generated/model/renderEstimatePreviewUpnQrEnabled.d.ts.map +1 -0
  1772. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.cts +13 -0
  1773. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.ts +13 -0
  1774. package/dist/generated/model/renderInvoicePreviewEpcQrEnabled.d.ts.map +1 -0
  1775. package/dist/generated/model/renderInvoicePreviewParams.d.cts +25 -2
  1776. package/dist/generated/model/renderInvoicePreviewParams.d.ts +25 -2
  1777. package/dist/generated/model/renderInvoicePreviewParams.d.ts.map +1 -1
  1778. package/dist/generated/model/renderInvoicePreviewPartial.d.cts +1 -1
  1779. package/dist/generated/model/renderInvoicePreviewPartial.d.ts +1 -1
  1780. package/dist/generated/model/renderInvoicePreviewTemplate.d.cts +2 -1
  1781. package/dist/generated/model/renderInvoicePreviewTemplate.d.ts +2 -1
  1782. package/dist/generated/model/renderInvoicePreviewTemplate.d.ts.map +1 -1
  1783. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.cts +13 -0
  1784. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.ts +13 -0
  1785. package/dist/generated/model/renderInvoicePreviewUpnQrDisplayMode.d.ts.map +1 -0
  1786. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.cts +13 -0
  1787. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.ts +13 -0
  1788. package/dist/generated/model/renderInvoicePreviewUpnQrEnabled.d.ts.map +1 -0
  1789. package/dist/generated/model/replaceTaxBody.d.cts +11 -1
  1790. package/dist/generated/model/replaceTaxBody.d.ts +11 -1
  1791. package/dist/generated/model/replaceTaxBody.d.ts.map +1 -1
  1792. package/dist/generated/model/replaceTaxBodyMetadata.d.cts +1 -1
  1793. package/dist/generated/model/replaceTaxBodyMetadata.d.ts +1 -1
  1794. package/dist/generated/model/replaceTaxBodyTaxRatesItem.d.cts +1 -1
  1795. package/dist/generated/model/replaceTaxBodyTaxRatesItem.d.ts +1 -1
  1796. package/dist/generated/model/resendInvitationResponse.d.cts +1 -1
  1797. package/dist/generated/model/resendInvitationResponse.d.ts +1 -1
  1798. package/dist/generated/model/restoreDocumentParams.d.cts +3 -3
  1799. package/dist/generated/model/restoreDocumentParams.d.ts +3 -3
  1800. package/dist/generated/model/restoreDocumentParams.d.ts.map +1 -1
  1801. package/dist/generated/model/restoreDocumentType.d.cts +1 -1
  1802. package/dist/generated/model/restoreDocumentType.d.ts +1 -1
  1803. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.cts +33 -0
  1804. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.ts +33 -0
  1805. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200.d.ts.map +1 -0
  1806. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.cts +22 -0
  1807. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.ts +22 -0
  1808. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200AutoValues.d.ts.map +1 -0
  1809. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.cts +13 -0
  1810. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.ts +13 -0
  1811. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200DerivedFlags.d.ts.map +1 -0
  1812. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.cts +12 -0
  1813. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.ts +12 -0
  1814. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200FilingKind.d.ts.map +1 -0
  1815. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.cts +22 -0
  1816. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.ts +22 -0
  1817. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItem.d.ts.map +1 -0
  1818. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.cts +27 -0
  1819. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.ts +27 -0
  1820. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItem.d.ts.map +1 -0
  1821. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.cts +13 -0
  1822. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.ts +13 -0
  1823. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType.d.ts.map +1 -0
  1824. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.cts +14 -0
  1825. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.ts +14 -0
  1826. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItem.d.ts.map +1 -0
  1827. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.cts +13 -0
  1828. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.ts +13 -0
  1829. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer.d.ts.map +1 -0
  1830. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.cts +13 -0
  1831. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.ts +13 -0
  1832. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity.d.ts.map +1 -0
  1833. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.cts +35 -0
  1834. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.ts +35 -0
  1835. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ManualValues.d.ts.map +1 -0
  1836. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.cts +50 -0
  1837. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.ts +50 -0
  1838. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200Profile.d.ts.map +1 -0
  1839. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.cts +18 -0
  1840. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.ts +18 -0
  1841. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExports.d.ts.map +1 -0
  1842. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.cts +18 -0
  1843. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.ts +18 -0
  1844. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat.d.ts.map +1 -0
  1845. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.cts +19 -0
  1846. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.ts +19 -0
  1847. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessForm.d.ts.map +1 -0
  1848. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.cts +14 -0
  1849. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.ts +14 -0
  1850. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource.d.ts.map +1 -0
  1851. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.cts +17 -0
  1852. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.ts +17 -0
  1853. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime.d.ts.map +1 -0
  1854. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.cts +19 -0
  1855. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.ts +19 -0
  1856. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm.d.ts.map +1 -0
  1857. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.cts +14 -0
  1858. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.ts +14 -0
  1859. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileSupportedExports.d.ts.map +1 -0
  1860. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.cts +17 -0
  1861. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.ts +17 -0
  1862. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileTaxResidency.d.ts.map +1 -0
  1863. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.cts +18 -0
  1864. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.ts +18 -0
  1865. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileVatProfile.d.ts.map +1 -0
  1866. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.cts +44 -0
  1867. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.ts +44 -0
  1868. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReporting.d.ts.map +1 -0
  1869. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.cts +18 -0
  1870. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.ts +18 -0
  1871. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType.d.ts.map +1 -0
  1872. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  1873. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  1874. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  1875. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.cts +13 -0
  1876. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.ts +13 -0
  1877. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200RuleSummary.d.ts.map +1 -0
  1878. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.cts +14 -0
  1879. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.ts +14 -0
  1880. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItem.d.ts.map +1 -0
  1881. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.cts +13 -0
  1882. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.ts +13 -0
  1883. package/dist/generated/model/reviewSloveniaYearlyNormiraniReport200WarningsItemSeverity.d.ts.map +1 -0
  1884. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.cts +16 -0
  1885. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.ts +16 -0
  1886. package/dist/generated/model/reviewSloveniaYearlyNormiraniReportBody.d.ts.map +1 -0
  1887. package/dist/generated/model/searchCompanyRegistryParams.d.cts +1 -1
  1888. package/dist/generated/model/searchCompanyRegistryParams.d.ts +1 -1
  1889. package/dist/generated/model/searchEInvoicingCustomer200.d.cts +12 -0
  1890. package/dist/generated/model/searchEInvoicingCustomer200.d.ts +12 -0
  1891. package/dist/generated/model/searchEInvoicingCustomer200.d.ts.map +1 -0
  1892. package/dist/generated/model/sendDocument200.d.cts +3 -1
  1893. package/dist/generated/model/sendDocument200.d.ts +3 -1
  1894. package/dist/generated/model/sendDocument200.d.ts.map +1 -1
  1895. package/dist/generated/model/sendDocument200Status.d.cts +2 -1
  1896. package/dist/generated/model/sendDocument200Status.d.ts +2 -1
  1897. package/dist/generated/model/sendDocument200Status.d.ts.map +1 -1
  1898. package/dist/generated/model/sendDocumentBody.d.cts +3 -1
  1899. package/dist/generated/model/sendDocumentBody.d.ts +3 -1
  1900. package/dist/generated/model/sendDocumentBody.d.ts.map +1 -1
  1901. package/dist/generated/model/sendEInvoiceRequest.d.cts +29 -0
  1902. package/dist/generated/model/sendEInvoiceRequest.d.ts +29 -0
  1903. package/dist/generated/model/sendEInvoiceRequest.d.ts.map +1 -0
  1904. package/dist/generated/model/sendEmail200.d.cts +3 -1
  1905. package/dist/generated/model/sendEmail200.d.ts +3 -1
  1906. package/dist/generated/model/sendEmail200.d.ts.map +1 -1
  1907. package/dist/generated/model/sendEmail200Status.d.cts +2 -1
  1908. package/dist/generated/model/sendEmail200Status.d.ts +2 -1
  1909. package/dist/generated/model/sendEmail200Status.d.ts.map +1 -1
  1910. package/dist/generated/model/sendEmailBody.d.cts +16 -3
  1911. package/dist/generated/model/sendEmailBody.d.ts +16 -3
  1912. package/dist/generated/model/sendEmailBody.d.ts.map +1 -1
  1913. package/dist/generated/model/sendEmailBodyLanguage.d.cts +32 -0
  1914. package/dist/generated/model/sendEmailBodyLanguage.d.ts +32 -0
  1915. package/dist/generated/model/sendEmailBodyLanguage.d.ts.map +1 -0
  1916. package/dist/generated/model/sendEmailBodyLocale.d.cts +33 -0
  1917. package/dist/generated/model/sendEmailBodyLocale.d.ts +33 -0
  1918. package/dist/generated/model/sendEmailBodyLocale.d.ts.map +1 -0
  1919. package/dist/generated/model/shareableId.d.cts +1 -1
  1920. package/dist/generated/model/shareableId.d.ts +1 -1
  1921. package/dist/generated/model/shopifyAuthorizeResponse.d.cts +1 -1
  1922. package/dist/generated/model/shopifyAuthorizeResponse.d.ts +1 -1
  1923. package/dist/generated/model/sloveniaAccountingKontoMappings.d.cts +143 -0
  1924. package/dist/generated/model/sloveniaAccountingKontoMappings.d.ts +143 -0
  1925. package/dist/generated/model/sloveniaAccountingKontoMappings.d.ts.map +1 -0
  1926. package/dist/generated/model/startEslogExport202.d.cts +17 -0
  1927. package/dist/generated/model/startEslogExport202.d.ts +17 -0
  1928. package/dist/generated/model/startEslogExport202.d.ts.map +1 -0
  1929. package/dist/generated/model/startEslogExport202Status.d.cts +18 -0
  1930. package/dist/generated/model/startEslogExport202Status.d.ts +18 -0
  1931. package/dist/generated/model/startEslogExport202Status.d.ts.map +1 -0
  1932. package/dist/generated/model/startPdfExport202.d.cts +1 -1
  1933. package/dist/generated/model/startPdfExport202.d.ts +1 -1
  1934. package/dist/generated/model/startPdfExport202Status.d.cts +1 -1
  1935. package/dist/generated/model/startPdfExport202Status.d.ts +1 -1
  1936. package/dist/generated/model/statsFilters.d.cts +1 -1
  1937. package/dist/generated/model/statsFilters.d.ts +1 -1
  1938. package/dist/generated/model/statsQueryBatchRequest.d.cts +15 -0
  1939. package/dist/generated/model/statsQueryBatchRequest.d.ts +15 -0
  1940. package/dist/generated/model/statsQueryBatchRequest.d.ts.map +1 -0
  1941. package/dist/generated/model/statsQueryBatchResponse.d.cts +13 -0
  1942. package/dist/generated/model/statsQueryBatchResponse.d.ts +13 -0
  1943. package/dist/generated/model/statsQueryBatchResponse.d.ts.map +1 -0
  1944. package/dist/generated/model/statsQueryData.d.cts +1 -1
  1945. package/dist/generated/model/statsQueryData.d.ts +1 -1
  1946. package/dist/generated/model/statsQueryDataItem.d.cts +1 -1
  1947. package/dist/generated/model/statsQueryDataItem.d.ts +1 -1
  1948. package/dist/generated/model/statsQueryMeta.d.cts +1 -1
  1949. package/dist/generated/model/statsQueryMeta.d.ts +1 -1
  1950. package/dist/generated/model/statsQueryRequest.d.cts +1 -1
  1951. package/dist/generated/model/statsQueryRequest.d.ts +1 -1
  1952. package/dist/generated/model/statsQueryRequestMetricsItem.d.cts +1 -1
  1953. package/dist/generated/model/statsQueryRequestMetricsItem.d.ts +1 -1
  1954. package/dist/generated/model/statsQueryRequestMetricsItemType.d.cts +1 -1
  1955. package/dist/generated/model/statsQueryRequestMetricsItemType.d.ts +1 -1
  1956. package/dist/generated/model/statsQueryRequestOrderByItem.d.cts +1 -1
  1957. package/dist/generated/model/statsQueryRequestOrderByItem.d.ts +1 -1
  1958. package/dist/generated/model/statsQueryRequestOrderByItemDirection.d.cts +1 -1
  1959. package/dist/generated/model/statsQueryRequestOrderByItemDirection.d.ts +1 -1
  1960. package/dist/generated/model/statsQueryRequestTable.d.cts +1 -1
  1961. package/dist/generated/model/statsQueryRequestTable.d.ts +1 -1
  1962. package/dist/generated/model/statsQueryResponse.d.cts +1 -1
  1963. package/dist/generated/model/statsQueryResponse.d.ts +1 -1
  1964. package/dist/generated/model/storeBilling.d.cts +21 -0
  1965. package/dist/generated/model/storeBilling.d.ts +21 -0
  1966. package/dist/generated/model/storeBilling.d.ts.map +1 -0
  1967. package/dist/generated/model/stripeAppAuthorizeResponse.d.cts +1 -1
  1968. package/dist/generated/model/stripeAppAuthorizeResponse.d.ts +1 -1
  1969. package/dist/generated/model/stripeAppConnectBody.d.cts +1 -1
  1970. package/dist/generated/model/stripeAppConnectBody.d.ts +1 -1
  1971. package/dist/generated/model/stripeAppConnection.d.cts +1 -1
  1972. package/dist/generated/model/stripeAppConnection.d.ts +1 -1
  1973. package/dist/generated/model/stripeAppConnectionAutoInvoiceConfig.d.cts +1 -1
  1974. package/dist/generated/model/stripeAppConnectionAutoInvoiceConfig.d.ts +1 -1
  1975. package/dist/generated/model/stripeAppCreateInvoiceBody.d.cts +1 -1
  1976. package/dist/generated/model/stripeAppCreateInvoiceBody.d.ts +1 -1
  1977. package/dist/generated/model/stripeAppDisconnect200.d.cts +1 -1
  1978. package/dist/generated/model/stripeAppDisconnect200.d.ts +1 -1
  1979. package/dist/generated/model/stripeAppEntityDisconnect200.d.cts +1 -1
  1980. package/dist/generated/model/stripeAppEntityDisconnect200.d.ts +1 -1
  1981. package/dist/generated/model/stripeAppEntityUpdateSettingsBody.d.cts +1 -1
  1982. package/dist/generated/model/stripeAppEntityUpdateSettingsBody.d.ts +1 -1
  1983. package/dist/generated/model/stripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem.d.cts +1 -1
  1984. package/dist/generated/model/stripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem.d.ts +1 -1
  1985. package/dist/generated/model/stripeAppInvoice.d.cts +1 -1
  1986. package/dist/generated/model/stripeAppInvoice.d.ts +1 -1
  1987. package/dist/generated/model/stripeAppInvoiceList.d.cts +1 -1
  1988. package/dist/generated/model/stripeAppInvoiceList.d.ts +1 -1
  1989. package/dist/generated/model/stripeAppListInvoicesParams.d.cts +1 -1
  1990. package/dist/generated/model/stripeAppListInvoicesParams.d.ts +1 -1
  1991. package/dist/generated/model/stripeAppLookupInvoiceParams.d.cts +1 -1
  1992. package/dist/generated/model/stripeAppLookupInvoiceParams.d.ts +1 -1
  1993. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.cts +1 -1
  1994. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts +1 -1
  1995. package/dist/generated/model/stripeAppOAuthCallbackParams.d.cts +1 -1
  1996. package/dist/generated/model/stripeAppOAuthCallbackParams.d.ts +1 -1
  1997. package/dist/generated/model/stripeAppSettings.d.cts +1 -1
  1998. package/dist/generated/model/stripeAppSettings.d.ts +1 -1
  1999. package/dist/generated/model/stripeAppUpdateSettingsBody.d.cts +1 -1
  2000. package/dist/generated/model/stripeAppUpdateSettingsBody.d.ts +1 -1
  2001. package/dist/generated/model/stripeAppUpdateSettingsBodyAutoInvoiceEventsItem.d.cts +1 -1
  2002. package/dist/generated/model/stripeAppUpdateSettingsBodyAutoInvoiceEventsItem.d.ts +1 -1
  2003. package/dist/generated/model/stripeAppWebhookResponse.d.cts +1 -1
  2004. package/dist/generated/model/stripeAppWebhookResponse.d.ts +1 -1
  2005. package/dist/generated/model/supplier.d.cts +13 -0
  2006. package/dist/generated/model/supplier.d.ts +13 -0
  2007. package/dist/generated/model/supplier.d.ts.map +1 -0
  2008. package/dist/generated/model/supplierBase.d.cts +86 -0
  2009. package/dist/generated/model/supplierBase.d.ts +86 -0
  2010. package/dist/generated/model/supplierBase.d.ts.map +1 -0
  2011. package/dist/generated/model/supplierBaseMetadata.d.cts +11 -0
  2012. package/dist/generated/model/supplierBaseMetadata.d.ts +11 -0
  2013. package/dist/generated/model/supplierBaseMetadata.d.ts.map +1 -0
  2014. package/dist/generated/model/supportedCountriesResponse.d.cts +1 -1
  2015. package/dist/generated/model/supportedCountriesResponse.d.ts +1 -1
  2016. package/dist/generated/model/syncShopifyOrdersBody.d.cts +17 -0
  2017. package/dist/generated/model/syncShopifyOrdersBody.d.ts +17 -0
  2018. package/dist/generated/model/syncShopifyOrdersBody.d.ts.map +1 -0
  2019. package/dist/generated/model/syncShopifyOrdersResponse.d.cts +16 -0
  2020. package/dist/generated/model/syncShopifyOrdersResponse.d.ts +16 -0
  2021. package/dist/generated/model/syncShopifyOrdersResponse.d.ts.map +1 -0
  2022. package/dist/generated/model/tax.d.cts +11 -1
  2023. package/dist/generated/model/tax.d.ts +11 -1
  2024. package/dist/generated/model/tax.d.ts.map +1 -1
  2025. package/dist/generated/model/taxMetadata.d.cts +1 -1
  2026. package/dist/generated/model/taxMetadata.d.ts +1 -1
  2027. package/dist/generated/model/taxResponse.d.cts +13 -0
  2028. package/dist/generated/model/taxResponse.d.ts +13 -0
  2029. package/dist/generated/model/taxResponse.d.ts.map +1 -0
  2030. package/dist/generated/model/taxRules.d.cts +1 -1
  2031. package/dist/generated/model/taxRules.d.ts +1 -1
  2032. package/dist/generated/model/taxTaxRatesItem.d.cts +1 -1
  2033. package/dist/generated/model/taxTaxRatesItem.d.ts +1 -1
  2034. package/dist/generated/model/{viesCheckRequest.d.cts → transactionTypeCheckRequest.d.cts} +7 -7
  2035. package/dist/generated/model/{viesCheckRequest.d.ts → transactionTypeCheckRequest.d.ts} +7 -7
  2036. package/dist/generated/model/transactionTypeCheckRequest.d.ts.map +1 -0
  2037. package/dist/generated/model/{viesCheckRequestCustomer.d.cts → transactionTypeCheckRequestCustomer.d.cts} +5 -3
  2038. package/dist/generated/model/{viesCheckRequestCustomer.d.ts → transactionTypeCheckRequestCustomer.d.ts} +5 -3
  2039. package/dist/generated/model/transactionTypeCheckRequestCustomer.d.ts.map +1 -0
  2040. package/dist/generated/model/{viesCheckRequestIssuer.d.cts → transactionTypeCheckRequestIssuer.d.cts} +3 -3
  2041. package/dist/generated/model/{viesCheckRequestIssuer.d.ts → transactionTypeCheckRequestIssuer.d.ts} +3 -3
  2042. package/dist/generated/model/transactionTypeCheckRequestIssuer.d.ts.map +1 -0
  2043. package/dist/generated/model/{viesCheckResponse.d.cts → transactionTypeCheckResponse.d.cts} +6 -6
  2044. package/dist/generated/model/{viesCheckResponse.d.ts → transactionTypeCheckResponse.d.ts} +6 -6
  2045. package/dist/generated/model/transactionTypeCheckResponse.d.ts.map +1 -0
  2046. package/dist/generated/model/{viesCheckResponseTransactionType.d.cts → transactionTypeCheckResponseTransactionType.d.cts} +7 -6
  2047. package/dist/generated/model/{viesCheckResponseTransactionType.d.ts → transactionTypeCheckResponseTransactionType.d.ts} +7 -6
  2048. package/dist/generated/model/transactionTypeCheckResponseTransactionType.d.ts.map +1 -0
  2049. package/dist/generated/model/updateAccountWebhookBody.d.cts +30 -0
  2050. package/dist/generated/model/updateAccountWebhookBody.d.ts +30 -0
  2051. package/dist/generated/model/updateAccountWebhookBody.d.ts.map +1 -0
  2052. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.cts +20 -0
  2053. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.ts +20 -0
  2054. package/dist/generated/model/updateAccountWebhookBodyEventsItem.d.ts.map +1 -0
  2055. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.cts +15 -0
  2056. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.ts +15 -0
  2057. package/dist/generated/model/updateAccountWebhookBodyMetadata.d.ts.map +1 -0
  2058. package/dist/generated/model/updateAdvanceInvoice.d.cts +24 -6
  2059. package/dist/generated/model/updateAdvanceInvoice.d.ts +24 -6
  2060. package/dist/generated/model/updateAdvanceInvoice.d.ts.map +1 -1
  2061. package/dist/generated/model/updateAdvanceInvoiceMetadata.d.cts +1 -1
  2062. package/dist/generated/model/updateAdvanceInvoiceMetadata.d.ts +1 -1
  2063. package/dist/generated/model/updateCreditNote.d.cts +39 -3
  2064. package/dist/generated/model/updateCreditNote.d.ts +39 -3
  2065. package/dist/generated/model/updateCreditNote.d.ts.map +1 -1
  2066. package/dist/generated/model/updateCreditNoteMetadata.d.cts +1 -1
  2067. package/dist/generated/model/updateCreditNoteMetadata.d.ts +1 -1
  2068. package/dist/generated/model/updateCustomerBody.d.cts +8 -1
  2069. package/dist/generated/model/updateCustomerBody.d.ts +8 -1
  2070. package/dist/generated/model/updateCustomerBody.d.ts.map +1 -1
  2071. package/dist/generated/model/updateCustomerBodyMetadata.d.cts +1 -1
  2072. package/dist/generated/model/updateCustomerBodyMetadata.d.ts +1 -1
  2073. package/dist/generated/model/updateDeliveryNote.d.cts +27 -3
  2074. package/dist/generated/model/updateDeliveryNote.d.ts +27 -3
  2075. package/dist/generated/model/updateDeliveryNote.d.ts.map +1 -1
  2076. package/dist/generated/model/updateDeliveryNoteMetadata.d.cts +1 -1
  2077. package/dist/generated/model/updateDeliveryNoteMetadata.d.ts +1 -1
  2078. package/dist/generated/model/updateEInvoicingSettingsRequest.d.cts +22 -0
  2079. package/dist/generated/model/updateEInvoicingSettingsRequest.d.ts +22 -0
  2080. package/dist/generated/model/updateEInvoicingSettingsRequest.d.ts.map +1 -0
  2081. package/dist/generated/model/updateEInvoicingSupplierRequest.d.cts +39 -0
  2082. package/dist/generated/model/updateEInvoicingSupplierRequest.d.ts +39 -0
  2083. package/dist/generated/model/updateEInvoicingSupplierRequest.d.ts.map +1 -0
  2084. package/dist/generated/model/updateEntityUserRoleBody.d.cts +1 -1
  2085. package/dist/generated/model/updateEntityUserRoleBody.d.ts +1 -1
  2086. package/dist/generated/model/updateEntityUserRoleBodyRole.d.cts +1 -1
  2087. package/dist/generated/model/updateEntityUserRoleBodyRole.d.ts +1 -1
  2088. package/dist/generated/model/updateEstimate.d.cts +23 -2
  2089. package/dist/generated/model/updateEstimate.d.ts +23 -2
  2090. package/dist/generated/model/updateEstimate.d.ts.map +1 -1
  2091. package/dist/generated/model/updateEstimateMetadata.d.cts +1 -1
  2092. package/dist/generated/model/updateEstimateMetadata.d.ts +1 -1
  2093. package/dist/generated/model/updateEstimateTitleType.d.cts +3 -3
  2094. package/dist/generated/model/updateEstimateTitleType.d.ts +3 -3
  2095. package/dist/generated/model/updateFinaSettings200.d.cts +16 -7
  2096. package/dist/generated/model/updateFinaSettings200.d.ts +16 -7
  2097. package/dist/generated/model/updateFinaSettings200.d.ts.map +1 -1
  2098. package/dist/generated/model/updateFinaSettings200CertificateStatus.d.cts +1 -1
  2099. package/dist/generated/model/updateFinaSettings200CertificateStatus.d.ts +1 -1
  2100. package/dist/generated/model/updateFinaSettings200NumberingSequence.d.cts +2 -2
  2101. package/dist/generated/model/updateFinaSettings200NumberingSequence.d.ts +2 -2
  2102. package/dist/generated/model/updateFinaSettingsBody.d.cts +11 -6
  2103. package/dist/generated/model/updateFinaSettingsBody.d.ts +11 -6
  2104. package/dist/generated/model/updateFinaSettingsBody.d.ts.map +1 -1
  2105. package/dist/generated/model/updateFinaSettingsBodyNumberingSequence.d.cts +2 -2
  2106. package/dist/generated/model/updateFinaSettingsBodyNumberingSequence.d.ts +2 -2
  2107. package/dist/generated/model/updateFursSettings200.d.cts +3 -1
  2108. package/dist/generated/model/updateFursSettings200.d.ts +3 -1
  2109. package/dist/generated/model/updateFursSettings200.d.ts.map +1 -1
  2110. package/dist/generated/model/updateFursSettings200CertificateStatus.d.cts +1 -1
  2111. package/dist/generated/model/updateFursSettings200CertificateStatus.d.ts +1 -1
  2112. package/dist/generated/model/updateFursSettings200NumberingStrategy.d.cts +1 -1
  2113. package/dist/generated/model/updateFursSettings200NumberingStrategy.d.ts +1 -1
  2114. package/dist/generated/model/updateFursSettingsBody.d.cts +3 -1
  2115. package/dist/generated/model/updateFursSettingsBody.d.ts +3 -1
  2116. package/dist/generated/model/updateFursSettingsBody.d.ts.map +1 -1
  2117. package/dist/generated/model/updateFursSettingsBodyNumberingStrategy.d.cts +1 -1
  2118. package/dist/generated/model/updateFursSettingsBodyNumberingStrategy.d.ts +1 -1
  2119. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.cts +87 -0
  2120. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.ts +87 -0
  2121. package/dist/generated/model/updateIncomingPurchaseDocumentBody.d.ts.map +1 -0
  2122. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.cts +15 -0
  2123. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.ts +15 -0
  2124. package/dist/generated/model/updateIncomingPurchaseDocumentBodyMetadata.d.ts.map +1 -0
  2125. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.cts +20 -0
  2126. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.ts +20 -0
  2127. package/dist/generated/model/updateIncomingPurchaseDocumentBodyTransactionType.d.ts.map +1 -0
  2128. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.cts +14 -0
  2129. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.ts +14 -0
  2130. package/dist/generated/model/updateIncomingPurchaseDocumentBodyType.d.ts.map +1 -0
  2131. package/dist/generated/model/updateInvoice.d.cts +29 -3
  2132. package/dist/generated/model/updateInvoice.d.ts +29 -3
  2133. package/dist/generated/model/updateInvoice.d.ts.map +1 -1
  2134. package/dist/generated/model/updateInvoiceMetadata.d.cts +1 -1
  2135. package/dist/generated/model/updateInvoiceMetadata.d.ts +1 -1
  2136. package/dist/generated/model/updateItem200.d.cts +12 -0
  2137. package/dist/generated/model/updateItem200.d.ts +12 -0
  2138. package/dist/generated/model/updateItem200.d.ts.map +1 -0
  2139. package/dist/generated/model/updateItemBody.d.cts +41 -0
  2140. package/dist/generated/model/updateItemBody.d.ts +41 -0
  2141. package/dist/generated/model/updateItemBody.d.ts.map +1 -0
  2142. package/dist/generated/model/updateItemBodyClassification.d.cts +18 -0
  2143. package/dist/generated/model/updateItemBodyClassification.d.ts +18 -0
  2144. package/dist/generated/model/updateItemBodyClassification.d.ts.map +1 -0
  2145. package/dist/generated/model/updateItemBodyMetadata.d.cts +15 -0
  2146. package/dist/generated/model/updateItemBodyMetadata.d.ts +15 -0
  2147. package/dist/generated/model/updateItemBodyMetadata.d.ts.map +1 -0
  2148. package/dist/generated/model/updateItemBodyTaxesItem.d.cts +21 -0
  2149. package/dist/generated/model/updateItemBodyTaxesItem.d.ts +21 -0
  2150. package/dist/generated/model/updateItemBodyTaxesItem.d.ts.map +1 -0
  2151. package/dist/generated/model/updateOrderBody.d.cts +1 -1
  2152. package/dist/generated/model/updateOrderBody.d.ts +1 -1
  2153. package/dist/generated/model/updateOrderBodyMetadata.d.cts +1 -1
  2154. package/dist/generated/model/updateOrderBodyMetadata.d.ts +1 -1
  2155. package/dist/generated/model/updateOrderBodyPaymentStatus.d.cts +1 -1
  2156. package/dist/generated/model/updateOrderBodyPaymentStatus.d.ts +1 -1
  2157. package/dist/generated/model/updateOrderIntegrationBody.d.cts +11 -8
  2158. package/dist/generated/model/updateOrderIntegrationBody.d.ts +11 -8
  2159. package/dist/generated/model/updateOrderIntegrationBody.d.ts.map +1 -1
  2160. package/dist/generated/model/updateOrderIntegrationBodyAutoProcessOn.d.cts +1 -1
  2161. package/dist/generated/model/updateOrderIntegrationBodyAutoProcessOn.d.ts +1 -1
  2162. package/dist/generated/model/updateOrderIntegrationBodyMetadata.d.cts +1 -1
  2163. package/dist/generated/model/updateOrderIntegrationBodyMetadata.d.ts +1 -1
  2164. package/dist/generated/model/updatePaymentBody.d.cts +1 -1
  2165. package/dist/generated/model/updatePaymentBody.d.ts +1 -1
  2166. package/dist/generated/model/updatePaymentBodyMetadata.d.cts +1 -1
  2167. package/dist/generated/model/updatePaymentBodyMetadata.d.ts +1 -1
  2168. package/dist/generated/model/updatePaymentBodyType.d.cts +1 -1
  2169. package/dist/generated/model/updatePaymentBodyType.d.ts +1 -1
  2170. package/dist/generated/model/updateRecurringInvoiceBody.d.cts +1 -1
  2171. package/dist/generated/model/updateRecurringInvoiceBody.d.ts +1 -1
  2172. package/dist/generated/model/updateRecurringInvoiceBodyFrequency.d.cts +1 -1
  2173. package/dist/generated/model/updateRecurringInvoiceBodyFrequency.d.ts +1 -1
  2174. package/dist/generated/model/updateRecurringInvoiceBodyMetadata.d.cts +1 -1
  2175. package/dist/generated/model/updateRecurringInvoiceBodyMetadata.d.ts +1 -1
  2176. package/dist/generated/model/updateSloveniaTaxProfile200.d.cts +50 -0
  2177. package/dist/generated/model/updateSloveniaTaxProfile200.d.ts +50 -0
  2178. package/dist/generated/model/updateSloveniaTaxProfile200.d.ts.map +1 -0
  2179. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.cts +18 -0
  2180. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.ts +18 -0
  2181. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExports.d.ts.map +1 -0
  2182. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.cts +18 -0
  2183. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts +18 -0
  2184. package/dist/generated/model/updateSloveniaTaxProfile200AccountingExportsPreferredFormat.d.ts.map +1 -0
  2185. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.cts +19 -0
  2186. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.ts +19 -0
  2187. package/dist/generated/model/updateSloveniaTaxProfile200BusinessForm.d.ts.map +1 -0
  2188. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.cts +14 -0
  2189. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.ts +14 -0
  2190. package/dist/generated/model/updateSloveniaTaxProfile200BusinessFormSource.d.ts.map +1 -0
  2191. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.cts +17 -0
  2192. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.ts +17 -0
  2193. package/dist/generated/model/updateSloveniaTaxProfile200IncomeTaxRegime.d.ts.map +1 -0
  2194. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.cts +19 -0
  2195. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.ts +19 -0
  2196. package/dist/generated/model/updateSloveniaTaxProfile200InferredBusinessForm.d.ts.map +1 -0
  2197. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.cts +14 -0
  2198. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.ts +14 -0
  2199. package/dist/generated/model/updateSloveniaTaxProfile200SupportedExports.d.ts.map +1 -0
  2200. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.cts +17 -0
  2201. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.ts +17 -0
  2202. package/dist/generated/model/updateSloveniaTaxProfile200TaxResidency.d.ts.map +1 -0
  2203. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.cts +18 -0
  2204. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.ts +18 -0
  2205. package/dist/generated/model/updateSloveniaTaxProfile200VatProfile.d.ts.map +1 -0
  2206. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.cts +44 -0
  2207. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.ts +44 -0
  2208. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReporting.d.ts.map +1 -0
  2209. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.cts +18 -0
  2210. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.ts +18 -0
  2211. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingAccountingType.d.ts.map +1 -0
  2212. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  2213. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  2214. package/dist/generated/model/updateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  2215. package/dist/generated/model/updateSloveniaTaxProfileBody.d.cts +40 -0
  2216. package/dist/generated/model/updateSloveniaTaxProfileBody.d.ts +40 -0
  2217. package/dist/generated/model/updateSloveniaTaxProfileBody.d.ts.map +1 -0
  2218. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.cts +151 -0
  2219. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.ts +151 -0
  2220. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExports.d.ts.map +1 -0
  2221. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.cts +140 -0
  2222. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.ts +140 -0
  2223. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsKontoMappings.d.ts.map +1 -0
  2224. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.cts +18 -0
  2225. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.ts +18 -0
  2226. package/dist/generated/model/updateSloveniaTaxProfileBodyAccountingExportsPreferredFormat.d.ts.map +1 -0
  2227. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.cts +19 -0
  2228. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.ts +19 -0
  2229. package/dist/generated/model/updateSloveniaTaxProfileBodyBusinessForm.d.ts.map +1 -0
  2230. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.cts +17 -0
  2231. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.ts +17 -0
  2232. package/dist/generated/model/updateSloveniaTaxProfileBodyIncomeTaxRegime.d.ts.map +1 -0
  2233. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.cts +17 -0
  2234. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.ts +17 -0
  2235. package/dist/generated/model/updateSloveniaTaxProfileBodyTaxResidency.d.ts.map +1 -0
  2236. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.cts +18 -0
  2237. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.ts +18 -0
  2238. package/dist/generated/model/updateSloveniaTaxProfileBodyVatProfile.d.ts.map +1 -0
  2239. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.cts +39 -0
  2240. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.ts +39 -0
  2241. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReporting.d.ts.map +1 -0
  2242. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.cts +18 -0
  2243. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.ts +18 -0
  2244. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingAccountingType.d.ts.map +1 -0
  2245. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.cts +17 -0
  2246. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.ts +17 -0
  2247. package/dist/generated/model/updateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis.d.ts.map +1 -0
  2248. package/dist/generated/model/updateSupplierBody.d.cts +79 -0
  2249. package/dist/generated/model/updateSupplierBody.d.ts +79 -0
  2250. package/dist/generated/model/updateSupplierBody.d.ts.map +1 -0
  2251. package/dist/generated/model/updateSupplierBodyMetadata.d.cts +15 -0
  2252. package/dist/generated/model/updateSupplierBodyMetadata.d.ts +15 -0
  2253. package/dist/generated/model/updateSupplierBodyMetadata.d.ts.map +1 -0
  2254. package/dist/generated/model/updateTaxBody.d.cts +1 -1
  2255. package/dist/generated/model/updateTaxBody.d.ts +1 -1
  2256. package/dist/generated/model/updateTaxBodyTaxRatesItem.d.cts +1 -1
  2257. package/dist/generated/model/updateTaxBodyTaxRatesItem.d.ts +1 -1
  2258. package/dist/generated/model/updateUserFinaSettingsBody.d.cts +1 -1
  2259. package/dist/generated/model/updateUserFinaSettingsBody.d.ts +1 -1
  2260. package/dist/generated/model/updateUserFursSettingsBody.d.cts +1 -1
  2261. package/dist/generated/model/updateUserFursSettingsBody.d.ts +1 -1
  2262. package/dist/generated/model/updateUserPtSettingsBody.d.cts +25 -0
  2263. package/dist/generated/model/updateUserPtSettingsBody.d.ts +25 -0
  2264. package/dist/generated/model/updateUserPtSettingsBody.d.ts.map +1 -0
  2265. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.cts +12 -0
  2266. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.ts +12 -0
  2267. package/dist/generated/model/updateWLSubscriptionBillingEmail200.d.ts.map +1 -0
  2268. package/dist/generated/model/updateWebhookBody.d.cts +1 -1
  2269. package/dist/generated/model/updateWebhookBody.d.ts +1 -1
  2270. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +8 -1
  2271. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +8 -1
  2272. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts.map +1 -1
  2273. package/dist/generated/model/updateWebhookBodyMetadata.d.cts +1 -1
  2274. package/dist/generated/model/updateWebhookBodyMetadata.d.ts +1 -1
  2275. package/dist/generated/model/uploadFileBody.d.cts +3 -1
  2276. package/dist/generated/model/uploadFileBody.d.ts +3 -1
  2277. package/dist/generated/model/uploadFileBody.d.ts.map +1 -1
  2278. package/dist/generated/model/uploadFileBodyCategory.d.cts +1 -1
  2279. package/dist/generated/model/uploadFileBodyCategory.d.ts +1 -1
  2280. package/dist/generated/model/uploadFinaCertificate200.d.cts +1 -1
  2281. package/dist/generated/model/uploadFinaCertificate200.d.ts +1 -1
  2282. package/dist/generated/model/uploadFinaCertificateBody.d.cts +1 -1
  2283. package/dist/generated/model/uploadFinaCertificateBody.d.ts +1 -1
  2284. package/dist/generated/model/uploadFursCertificate200.d.cts +1 -1
  2285. package/dist/generated/model/uploadFursCertificate200.d.ts +1 -1
  2286. package/dist/generated/model/uploadFursCertificateBody.d.cts +1 -1
  2287. package/dist/generated/model/uploadFursCertificateBody.d.ts +1 -1
  2288. package/dist/generated/model/uploadImage200.d.cts +2 -2
  2289. package/dist/generated/model/uploadImage200.d.ts +2 -2
  2290. package/dist/generated/model/uploadImage200.d.ts.map +1 -1
  2291. package/dist/generated/model/uploadImageBody.d.cts +1 -1
  2292. package/dist/generated/model/uploadImageBody.d.ts +1 -1
  2293. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.cts +11 -0
  2294. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.ts +11 -0
  2295. package/dist/generated/model/uploadIncomingPurchaseDocumentAttachmentBody.d.ts.map +1 -0
  2296. package/dist/generated/model/usageStats.d.cts +8 -1
  2297. package/dist/generated/model/usageStats.d.ts +8 -1
  2298. package/dist/generated/model/usageStats.d.ts.map +1 -1
  2299. package/dist/generated/model/user.d.cts +1 -1
  2300. package/dist/generated/model/user.d.ts +1 -1
  2301. package/dist/generated/model/userMetadata.d.cts +1 -1
  2302. package/dist/generated/model/userMetadata.d.ts +1 -1
  2303. package/dist/generated/model/userSettings.d.cts +1 -1
  2304. package/dist/generated/model/userSettings.d.ts +1 -1
  2305. package/dist/generated/model/validationError.d.cts +3 -4
  2306. package/dist/generated/model/validationError.d.ts +3 -4
  2307. package/dist/generated/model/validationError.d.ts.map +1 -1
  2308. package/dist/generated/model/validationErrorCause.d.cts +14 -0
  2309. package/dist/generated/model/validationErrorCause.d.ts +14 -0
  2310. package/dist/generated/model/validationErrorCause.d.ts.map +1 -0
  2311. package/dist/generated/model/versionUser.d.cts +1 -1
  2312. package/dist/generated/model/versionUser.d.ts +1 -1
  2313. package/dist/generated/model/viesDocumentData.d.cts +1 -1
  2314. package/dist/generated/model/viesDocumentData.d.ts +1 -1
  2315. package/dist/generated/model/voidAdvanceInvoiceBody.d.cts +6 -1
  2316. package/dist/generated/model/voidAdvanceInvoiceBody.d.ts +6 -1
  2317. package/dist/generated/model/voidAdvanceInvoiceBody.d.ts.map +1 -1
  2318. package/dist/generated/model/voidCreditNoteBody.d.cts +6 -1
  2319. package/dist/generated/model/voidCreditNoteBody.d.ts +6 -1
  2320. package/dist/generated/model/voidCreditNoteBody.d.ts.map +1 -1
  2321. package/dist/generated/model/voidDeliveryNoteBody.d.cts +1 -1
  2322. package/dist/generated/model/voidDeliveryNoteBody.d.ts +1 -1
  2323. package/dist/generated/model/voidInvoiceBody.d.cts +6 -1
  2324. package/dist/generated/model/voidInvoiceBody.d.ts +6 -1
  2325. package/dist/generated/model/voidInvoiceBody.d.ts.map +1 -1
  2326. package/dist/generated/model/wLUpdateBillingEmailRequest.d.cts +12 -0
  2327. package/dist/generated/model/wLUpdateBillingEmailRequest.d.ts +12 -0
  2328. package/dist/generated/model/wLUpdateBillingEmailRequest.d.ts.map +1 -0
  2329. package/dist/generated/model/webhookDelivery.d.cts +1 -1
  2330. package/dist/generated/model/webhookDelivery.d.ts +1 -1
  2331. package/dist/generated/model/webhookDeliveryRequestBody.d.cts +1 -1
  2332. package/dist/generated/model/webhookDeliveryRequestBody.d.ts +1 -1
  2333. package/dist/generated/model/webhookDeliveryStatus.d.cts +1 -1
  2334. package/dist/generated/model/webhookDeliveryStatus.d.ts +1 -1
  2335. package/dist/generated/model/webhookResponse.d.cts +1 -1
  2336. package/dist/generated/model/webhookResponse.d.ts +1 -1
  2337. package/dist/generated/model/webhookResponseEventsItem.d.cts +8 -1
  2338. package/dist/generated/model/webhookResponseEventsItem.d.ts +8 -1
  2339. package/dist/generated/model/webhookResponseEventsItem.d.ts.map +1 -1
  2340. package/dist/generated/model/webhookResponseMetadata.d.cts +1 -1
  2341. package/dist/generated/model/webhookResponseMetadata.d.ts +1 -1
  2342. package/dist/generated/model/webhookWithSecret.d.cts +1 -1
  2343. package/dist/generated/model/webhookWithSecret.d.ts +1 -1
  2344. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +8 -1
  2345. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +8 -1
  2346. package/dist/generated/model/webhookWithSecretEventsItem.d.ts.map +1 -1
  2347. package/dist/generated/model/webhookWithSecretMetadata.d.cts +1 -1
  2348. package/dist/generated/model/webhookWithSecretMetadata.d.ts +1 -1
  2349. package/dist/generated/model/whiteLabelConfig.d.cts +40 -2
  2350. package/dist/generated/model/whiteLabelConfig.d.ts +40 -2
  2351. package/dist/generated/model/whiteLabelConfig.d.ts.map +1 -1
  2352. package/dist/generated/model/whiteLabelConfigTheme.d.cts +1 -1
  2353. package/dist/generated/model/whiteLabelConfigTheme.d.ts +1 -1
  2354. package/dist/generated/model/whiteLabelPlan.d.cts +1 -1
  2355. package/dist/generated/model/whiteLabelPlan.d.ts +1 -1
  2356. package/dist/generated/order-integrations/order-integrations.d.cts +48 -3
  2357. package/dist/generated/order-integrations/order-integrations.d.ts +48 -3
  2358. package/dist/generated/order-integrations/order-integrations.d.ts.map +1 -1
  2359. package/dist/generated/orders/orders.d.cts +7 -3
  2360. package/dist/generated/orders/orders.d.ts +7 -3
  2361. package/dist/generated/orders/orders.d.ts.map +1 -1
  2362. package/dist/generated/payments/payments.d.cts +26 -14
  2363. package/dist/generated/payments/payments.d.ts +26 -14
  2364. package/dist/generated/payments/payments.d.ts.map +1 -1
  2365. package/dist/generated/pt-atcud-series/pt-atcud-series.d.cts +161 -0
  2366. package/dist/generated/pt-atcud-series/pt-atcud-series.d.ts +161 -0
  2367. package/dist/generated/pt-atcud-series/pt-atcud-series.d.ts.map +1 -0
  2368. package/dist/generated/pt-saf-t/pt-saf-t.d.cts +46 -0
  2369. package/dist/generated/pt-saf-t/pt-saf-t.d.ts +46 -0
  2370. package/dist/generated/pt-saf-t/pt-saf-t.d.ts.map +1 -0
  2371. package/dist/generated/recurring-invoices/recurring-invoices.d.cts +12 -4
  2372. package/dist/generated/recurring-invoices/recurring-invoices.d.ts +12 -4
  2373. package/dist/generated/recurring-invoices/recurring-invoices.d.ts.map +1 -1
  2374. package/dist/generated/stripe-app/stripe-app.d.cts +12 -4
  2375. package/dist/generated/stripe-app/stripe-app.d.ts +12 -4
  2376. package/dist/generated/stripe-app/stripe-app.d.ts.map +1 -1
  2377. package/dist/generated/suppliers/suppliers.d.cts +157 -0
  2378. package/dist/generated/suppliers/suppliers.d.ts +157 -0
  2379. package/dist/generated/suppliers/suppliers.d.ts.map +1 -0
  2380. package/dist/generated/tax-reports/tax-reports.d.cts +187 -2
  2381. package/dist/generated/tax-reports/tax-reports.d.ts +187 -2
  2382. package/dist/generated/tax-reports/tax-reports.d.ts.map +1 -1
  2383. package/dist/generated/taxes/taxes.d.cts +16 -8
  2384. package/dist/generated/taxes/taxes.d.ts +16 -8
  2385. package/dist/generated/taxes/taxes.d.ts.map +1 -1
  2386. package/dist/generated/transaction-type/transaction-type.d.cts +72 -0
  2387. package/dist/generated/transaction-type/transaction-type.d.ts +72 -0
  2388. package/dist/generated/transaction-type/transaction-type.d.ts.map +1 -0
  2389. package/dist/generated/upload/upload.d.cts +2 -2
  2390. package/dist/generated/upload/upload.d.ts +2 -2
  2391. package/dist/generated/upload/upload.d.ts.map +1 -1
  2392. package/dist/generated/users/users.d.cts +43 -2
  2393. package/dist/generated/users/users.d.ts +43 -2
  2394. package/dist/generated/users/users.d.ts.map +1 -1
  2395. package/dist/generated/vies/vies.d.cts +7 -25
  2396. package/dist/generated/vies/vies.d.ts +7 -25
  2397. package/dist/generated/vies/vies.d.ts.map +1 -1
  2398. package/dist/generated/webhooks/webhooks.d.cts +7 -3
  2399. package/dist/generated/webhooks/webhooks.d.ts +7 -3
  2400. package/dist/generated/webhooks/webhooks.d.ts.map +1 -1
  2401. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.cts +10 -38
  2402. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.ts +10 -38
  2403. package/dist/generated/white-label-subscriptions/white-label-subscriptions.d.ts.map +1 -1
  2404. package/dist/generated/white-labels/white-labels.d.cts +2 -2
  2405. package/dist/generated/white-labels/white-labels.d.ts +2 -2
  2406. package/dist/generated/white-labels/white-labels.d.ts.map +1 -1
  2407. package/dist/generated-zod/account-webhooks/account-webhooks.d.cts +346 -0
  2408. package/dist/generated-zod/account-webhooks/account-webhooks.d.ts +346 -0
  2409. package/dist/generated-zod/account-webhooks/account-webhooks.d.ts.map +1 -0
  2410. package/dist/generated-zod/activities/activities.d.cts +2 -2
  2411. package/dist/generated-zod/activities/activities.d.ts +2 -2
  2412. package/dist/generated-zod/activities/activities.d.ts.map +1 -1
  2413. package/dist/generated-zod/advance-invoices/advance-invoices.d.cts +911 -619
  2414. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts +911 -619
  2415. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts.map +1 -1
  2416. package/dist/generated-zod/company-registry/company-registry.d.cts +1 -1
  2417. package/dist/generated-zod/company-registry/company-registry.d.ts +1 -1
  2418. package/dist/generated-zod/credit-notes/credit-notes.d.cts +917 -612
  2419. package/dist/generated-zod/credit-notes/credit-notes.d.ts +917 -612
  2420. package/dist/generated-zod/credit-notes/credit-notes.d.ts.map +1 -1
  2421. package/dist/generated-zod/customers/customers.d.cts +48 -30
  2422. package/dist/generated-zod/customers/customers.d.ts +48 -30
  2423. package/dist/generated-zod/customers/customers.d.ts.map +1 -1
  2424. package/dist/generated-zod/delivery-notes/delivery-notes.d.cts +763 -473
  2425. package/dist/generated-zod/delivery-notes/delivery-notes.d.ts +763 -473
  2426. package/dist/generated-zod/delivery-notes/delivery-notes.d.ts.map +1 -1
  2427. package/dist/generated-zod/documents/documents.d.cts +217 -25
  2428. package/dist/generated-zod/documents/documents.d.ts +217 -25
  2429. package/dist/generated-zod/documents/documents.d.ts.map +1 -1
  2430. package/dist/generated-zod/e-invoicing/e-invoicing.d.cts +394 -0
  2431. package/dist/generated-zod/e-invoicing/e-invoicing.d.ts +394 -0
  2432. package/dist/generated-zod/e-invoicing/e-invoicing.d.ts.map +1 -0
  2433. package/dist/generated-zod/email/email.d.cts +49 -5
  2434. package/dist/generated-zod/email/email.d.ts +49 -5
  2435. package/dist/generated-zod/email/email.d.ts.map +1 -1
  2436. package/dist/generated-zod/entities/entities.d.cts +1289 -878
  2437. package/dist/generated-zod/entities/entities.d.ts +1289 -878
  2438. package/dist/generated-zod/entities/entities.d.ts.map +1 -1
  2439. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.cts +5 -2
  2440. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.ts +5 -2
  2441. package/dist/generated-zod/entity-api-keys/entity-api-keys.d.ts.map +1 -1
  2442. package/dist/generated-zod/entity-invitations/entity-invitations.d.cts +11 -11
  2443. package/dist/generated-zod/entity-invitations/entity-invitations.d.ts +11 -11
  2444. package/dist/generated-zod/entity-invitations/entity-invitations.d.ts.map +1 -1
  2445. package/dist/generated-zod/entity-stats/entity-stats.d.cts +60 -20
  2446. package/dist/generated-zod/entity-stats/entity-stats.d.ts +60 -20
  2447. package/dist/generated-zod/entity-stats/entity-stats.d.ts.map +1 -1
  2448. package/dist/generated-zod/entity-users/entity-users.d.cts +12 -10
  2449. package/dist/generated-zod/entity-users/entity-users.d.ts +12 -10
  2450. package/dist/generated-zod/entity-users/entity-users.d.ts.map +1 -1
  2451. package/dist/generated-zod/estimates/estimates.d.cts +726 -447
  2452. package/dist/generated-zod/estimates/estimates.d.ts +726 -447
  2453. package/dist/generated-zod/estimates/estimates.d.ts.map +1 -1
  2454. package/dist/generated-zod/exports/exports.d.cts +113 -20
  2455. package/dist/generated-zod/exports/exports.d.ts +113 -20
  2456. package/dist/generated-zod/exports/exports.d.ts.map +1 -1
  2457. package/dist/generated-zod/files/files.d.cts +17 -11
  2458. package/dist/generated-zod/files/files.d.ts +17 -11
  2459. package/dist/generated-zod/files/files.d.ts.map +1 -1
  2460. package/dist/generated-zod/fina-certificate/fina-certificate.d.cts +2 -2
  2461. package/dist/generated-zod/fina-certificate/fina-certificate.d.ts +2 -2
  2462. package/dist/generated-zod/fina-devices/fina-devices.d.cts +14 -17
  2463. package/dist/generated-zod/fina-devices/fina-devices.d.ts +14 -17
  2464. package/dist/generated-zod/fina-devices/fina-devices.d.ts.map +1 -1
  2465. package/dist/generated-zod/fina-premises/fina-premises.d.cts +29 -35
  2466. package/dist/generated-zod/fina-premises/fina-premises.d.ts +29 -35
  2467. package/dist/generated-zod/fina-premises/fina-premises.d.ts.map +1 -1
  2468. package/dist/generated-zod/fina-settings/fina-settings.d.cts +26 -10
  2469. package/dist/generated-zod/fina-settings/fina-settings.d.ts +26 -10
  2470. package/dist/generated-zod/fina-settings/fina-settings.d.ts.map +1 -1
  2471. package/dist/generated-zod/furs-certificate/furs-certificate.d.cts +2 -2
  2472. package/dist/generated-zod/furs-certificate/furs-certificate.d.ts +2 -2
  2473. package/dist/generated-zod/furs-devices/furs-devices.d.cts +10 -13
  2474. package/dist/generated-zod/furs-devices/furs-devices.d.ts +10 -13
  2475. package/dist/generated-zod/furs-devices/furs-devices.d.ts.map +1 -1
  2476. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.cts +23 -0
  2477. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.ts +23 -0
  2478. package/dist/generated-zod/furs-internal-act/furs-internal-act.d.ts.map +1 -0
  2479. package/dist/generated-zod/furs-premises/furs-premises.d.cts +31 -31
  2480. package/dist/generated-zod/furs-premises/furs-premises.d.ts +31 -31
  2481. package/dist/generated-zod/furs-settings/furs-settings.d.cts +6 -3
  2482. package/dist/generated-zod/furs-settings/furs-settings.d.ts +6 -3
  2483. package/dist/generated-zod/furs-settings/furs-settings.d.ts.map +1 -1
  2484. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.cts +966 -0
  2485. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.ts +966 -0
  2486. package/dist/generated-zod/incoming-purchase-documents/incoming-purchase-documents.d.ts.map +1 -0
  2487. package/dist/generated-zod/index.d.cts +11 -1
  2488. package/dist/generated-zod/index.d.ts +11 -1
  2489. package/dist/generated-zod/index.d.ts.map +1 -1
  2490. package/dist/generated-zod/invoices/invoices.d.cts +1244 -617
  2491. package/dist/generated-zod/invoices/invoices.d.ts +1244 -617
  2492. package/dist/generated-zod/invoices/invoices.d.ts.map +1 -1
  2493. package/dist/generated-zod/items/items.d.cts +69 -54
  2494. package/dist/generated-zod/items/items.d.ts +69 -54
  2495. package/dist/generated-zod/items/items.d.ts.map +1 -1
  2496. package/dist/generated-zod/legacy-migration/legacy-migration.d.cts +111 -0
  2497. package/dist/generated-zod/legacy-migration/legacy-migration.d.ts +111 -0
  2498. package/dist/generated-zod/legacy-migration/legacy-migration.d.ts.map +1 -0
  2499. package/dist/generated-zod/order-integrations/order-integrations.d.cts +57 -25
  2500. package/dist/generated-zod/order-integrations/order-integrations.d.ts +57 -25
  2501. package/dist/generated-zod/order-integrations/order-integrations.d.ts.map +1 -1
  2502. package/dist/generated-zod/orders/orders.d.cts +137 -81
  2503. package/dist/generated-zod/orders/orders.d.ts +137 -81
  2504. package/dist/generated-zod/orders/orders.d.ts.map +1 -1
  2505. package/dist/generated-zod/payments/payments.d.cts +272 -130
  2506. package/dist/generated-zod/payments/payments.d.ts +272 -130
  2507. package/dist/generated-zod/payments/payments.d.ts.map +1 -1
  2508. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.cts +170 -0
  2509. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.ts +170 -0
  2510. package/dist/generated-zod/pt-atcud-series/pt-atcud-series.d.ts.map +1 -0
  2511. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.cts +20 -0
  2512. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.ts +20 -0
  2513. package/dist/generated-zod/pt-saf-t/pt-saf-t.d.ts.map +1 -0
  2514. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.cts +51 -51
  2515. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.ts +51 -51
  2516. package/dist/generated-zod/recurring-invoices/recurring-invoices.d.ts.map +1 -1
  2517. package/dist/generated-zod/stripe-app/stripe-app.d.cts +11 -11
  2518. package/dist/generated-zod/stripe-app/stripe-app.d.ts +11 -11
  2519. package/dist/generated-zod/suppliers/suppliers.d.cts +227 -0
  2520. package/dist/generated-zod/suppliers/suppliers.d.ts +227 -0
  2521. package/dist/generated-zod/suppliers/suppliers.d.ts.map +1 -0
  2522. package/dist/generated-zod/tax-reports/tax-reports.d.cts +482 -1
  2523. package/dist/generated-zod/tax-reports/tax-reports.d.ts +482 -1
  2524. package/dist/generated-zod/tax-reports/tax-reports.d.ts.map +1 -1
  2525. package/dist/generated-zod/taxes/taxes.d.cts +45 -109
  2526. package/dist/generated-zod/taxes/taxes.d.ts +45 -109
  2527. package/dist/generated-zod/taxes/taxes.d.ts.map +1 -1
  2528. package/dist/generated-zod/transaction-type/transaction-type.d.cts +66 -0
  2529. package/dist/generated-zod/transaction-type/transaction-type.d.ts +66 -0
  2530. package/dist/generated-zod/transaction-type/transaction-type.d.ts.map +1 -0
  2531. package/dist/generated-zod/upload/upload.d.cts +3 -3
  2532. package/dist/generated-zod/upload/upload.d.ts +3 -3
  2533. package/dist/generated-zod/users/users.d.cts +48 -22
  2534. package/dist/generated-zod/users/users.d.ts +48 -22
  2535. package/dist/generated-zod/users/users.d.ts.map +1 -1
  2536. package/dist/generated-zod/vies/vies.d.cts +6 -28
  2537. package/dist/generated-zod/vies/vies.d.ts +6 -28
  2538. package/dist/generated-zod/vies/vies.d.ts.map +1 -1
  2539. package/dist/generated-zod/webhooks/webhooks.d.cts +65 -23
  2540. package/dist/generated-zod/webhooks/webhooks.d.ts +65 -23
  2541. package/dist/generated-zod/webhooks/webhooks.d.ts.map +1 -1
  2542. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.cts +72 -23
  2543. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.ts +72 -23
  2544. package/dist/generated-zod/white-label-subscriptions/white-label-subscriptions.d.ts.map +1 -1
  2545. package/dist/generated-zod/white-labels/white-labels.d.cts +11 -1
  2546. package/dist/generated-zod/white-labels/white-labels.d.ts +11 -1
  2547. package/dist/generated-zod/white-labels/white-labels.d.ts.map +1 -1
  2548. package/dist/index.cjs +2 -218
  2549. package/dist/index.cjs.map +353 -232
  2550. package/dist/index.d.cts +3 -0
  2551. package/dist/index.d.ts +3 -0
  2552. package/dist/index.d.ts.map +1 -1
  2553. package/dist/index.js +2 -218
  2554. package/dist/index.js.map +353 -232
  2555. package/dist/mutator/custom-fetch.d.cts +1 -0
  2556. package/dist/mutator/custom-fetch.d.ts +1 -0
  2557. package/dist/mutator/custom-fetch.d.ts.map +1 -1
  2558. package/dist/sdk/account-webhooks.d.cts +25 -0
  2559. package/dist/sdk/account-webhooks.d.ts +25 -0
  2560. package/dist/sdk/account-webhooks.d.ts.map +1 -0
  2561. package/dist/sdk/activities.d.cts +1 -1
  2562. package/dist/sdk/activities.d.ts +1 -1
  2563. package/dist/sdk/advance-invoices.d.cts +5 -1
  2564. package/dist/sdk/advance-invoices.d.ts +5 -1
  2565. package/dist/sdk/advance-invoices.d.ts.map +1 -1
  2566. package/dist/sdk/api-modules.d.cts +10 -0
  2567. package/dist/sdk/api-modules.d.ts +10 -0
  2568. package/dist/sdk/api-modules.d.ts.map +1 -1
  2569. package/dist/sdk/client.d.cts +321 -229
  2570. package/dist/sdk/client.d.ts +321 -229
  2571. package/dist/sdk/client.d.ts.map +1 -1
  2572. package/dist/sdk/credit-notes.d.cts +5 -1
  2573. package/dist/sdk/credit-notes.d.ts +5 -1
  2574. package/dist/sdk/credit-notes.d.ts.map +1 -1
  2575. package/dist/sdk/customers.d.cts +5 -5
  2576. package/dist/sdk/customers.d.ts +5 -5
  2577. package/dist/sdk/delivery-notes.d.cts +5 -1
  2578. package/dist/sdk/delivery-notes.d.ts +5 -1
  2579. package/dist/sdk/delivery-notes.d.ts.map +1 -1
  2580. package/dist/sdk/documents.d.cts +7 -5
  2581. package/dist/sdk/documents.d.ts +7 -5
  2582. package/dist/sdk/documents.d.ts.map +1 -1
  2583. package/dist/sdk/download.d.cts +16 -0
  2584. package/dist/sdk/download.d.ts +16 -0
  2585. package/dist/sdk/download.d.ts.map +1 -0
  2586. package/dist/sdk/e-invoicing.d.cts +29 -0
  2587. package/dist/sdk/e-invoicing.d.ts +29 -0
  2588. package/dist/sdk/e-invoicing.d.ts.map +1 -0
  2589. package/dist/sdk/entities.d.cts +7 -5
  2590. package/dist/sdk/entities.d.ts +7 -5
  2591. package/dist/sdk/entities.d.ts.map +1 -1
  2592. package/dist/sdk/entity-stats.d.cts +1 -1
  2593. package/dist/sdk/entity-stats.d.ts +1 -1
  2594. package/dist/sdk/eslog.d.cts +11 -0
  2595. package/dist/sdk/eslog.d.ts +11 -0
  2596. package/dist/sdk/eslog.d.ts.map +1 -0
  2597. package/dist/sdk/estimates.d.cts +5 -1
  2598. package/dist/sdk/estimates.d.ts +5 -1
  2599. package/dist/sdk/estimates.d.ts.map +1 -1
  2600. package/dist/sdk/exports.d.cts +10 -3
  2601. package/dist/sdk/exports.d.ts +10 -3
  2602. package/dist/sdk/exports.d.ts.map +1 -1
  2603. package/dist/sdk/files.d.cts +3 -3
  2604. package/dist/sdk/files.d.ts +3 -3
  2605. package/dist/sdk/furs-internal-act.d.cts +13 -0
  2606. package/dist/sdk/furs-internal-act.d.ts +13 -0
  2607. package/dist/sdk/furs-internal-act.d.ts.map +1 -0
  2608. package/dist/sdk/health.d.cts +4 -0
  2609. package/dist/sdk/health.d.ts +4 -0
  2610. package/dist/sdk/health.d.ts.map +1 -1
  2611. package/dist/sdk/incoming-purchase-documents.d.cts +25 -0
  2612. package/dist/sdk/incoming-purchase-documents.d.ts +25 -0
  2613. package/dist/sdk/incoming-purchase-documents.d.ts.map +1 -0
  2614. package/dist/sdk/index.d.cts +10 -0
  2615. package/dist/sdk/index.d.ts +10 -0
  2616. package/dist/sdk/index.d.ts.map +1 -1
  2617. package/dist/sdk/init.d.ts.map +1 -1
  2618. package/dist/sdk/invoices.d.cts +28 -15
  2619. package/dist/sdk/invoices.d.ts +28 -15
  2620. package/dist/sdk/invoices.d.ts.map +1 -1
  2621. package/dist/sdk/items.d.cts +5 -3
  2622. package/dist/sdk/items.d.ts +5 -3
  2623. package/dist/sdk/items.d.ts.map +1 -1
  2624. package/dist/sdk/legacy-migration.d.cts +17 -0
  2625. package/dist/sdk/legacy-migration.d.ts +17 -0
  2626. package/dist/sdk/legacy-migration.d.ts.map +1 -0
  2627. package/dist/sdk/order-integrations.d.cts +6 -4
  2628. package/dist/sdk/order-integrations.d.ts +6 -4
  2629. package/dist/sdk/order-integrations.d.ts.map +1 -1
  2630. package/dist/sdk/orders.d.cts +7 -7
  2631. package/dist/sdk/orders.d.ts +7 -7
  2632. package/dist/sdk/payments.d.cts +5 -5
  2633. package/dist/sdk/payments.d.ts +5 -5
  2634. package/dist/sdk/pt-atcud-series.d.cts +19 -0
  2635. package/dist/sdk/pt-atcud-series.d.ts +19 -0
  2636. package/dist/sdk/pt-atcud-series.d.ts.map +1 -0
  2637. package/dist/sdk/pt-saf-t.d.cts +11 -0
  2638. package/dist/sdk/pt-saf-t.d.ts +11 -0
  2639. package/dist/sdk/pt-saf-t.d.ts.map +1 -0
  2640. package/dist/sdk/recurring-invoices.d.cts +8 -8
  2641. package/dist/sdk/recurring-invoices.d.ts +8 -8
  2642. package/dist/sdk/suppliers.d.cts +19 -0
  2643. package/dist/sdk/suppliers.d.ts +19 -0
  2644. package/dist/sdk/suppliers.d.ts.map +1 -0
  2645. package/dist/sdk/tax-reports.d.cts +10 -0
  2646. package/dist/sdk/tax-reports.d.ts +10 -0
  2647. package/dist/sdk/tax-reports.d.ts.map +1 -1
  2648. package/dist/sdk/taxes.d.cts +5 -5
  2649. package/dist/sdk/taxes.d.ts +5 -5
  2650. package/dist/sdk/transaction-type.d.cts +11 -0
  2651. package/dist/sdk/transaction-type.d.ts +11 -0
  2652. package/dist/sdk/transaction-type.d.ts.map +1 -0
  2653. package/dist/sdk/types.d.cts +2 -0
  2654. package/dist/sdk/types.d.ts +2 -0
  2655. package/dist/sdk/types.d.ts.map +1 -1
  2656. package/dist/sdk/utils.d.cts +1 -1
  2657. package/dist/sdk/utils.d.ts +1 -1
  2658. package/dist/sdk/utils.d.ts.map +1 -1
  2659. package/dist/sdk/vies.d.cts +1 -1
  2660. package/dist/sdk/vies.d.ts +1 -1
  2661. package/dist/sdk/webhooks.d.cts +1 -1
  2662. package/dist/sdk/webhooks.d.ts +1 -1
  2663. package/dist/sdk/white-label-subscriptions.d.cts +2 -2
  2664. package/dist/sdk/white-label-subscriptions.d.ts +2 -2
  2665. package/dist/sdk/white-label-subscriptions.d.ts.map +1 -1
  2666. package/package.json +35 -4
  2667. package/dist/generated/model/createEntity201.d.cts +0 -23
  2668. package/dist/generated/model/createEntity201.d.ts +0 -23
  2669. package/dist/generated/model/createEntity201.d.ts.map +0 -1
  2670. package/dist/generated/model/disableEntity200.d.cts +0 -20
  2671. package/dist/generated/model/disableEntity200.d.ts +0 -20
  2672. package/dist/generated/model/disableEntity200.d.ts.map +0 -1
  2673. package/dist/generated/model/enableEntity200.d.cts +0 -20
  2674. package/dist/generated/model/enableEntity200.d.ts +0 -20
  2675. package/dist/generated/model/enableEntity200.d.ts.map +0 -1
  2676. package/dist/generated/model/getEntities200DataItem.d.cts +0 -20
  2677. package/dist/generated/model/getEntities200DataItem.d.ts +0 -20
  2678. package/dist/generated/model/getEntities200DataItem.d.ts.map +0 -1
  2679. package/dist/generated/model/patchEntity200.d.cts +0 -20
  2680. package/dist/generated/model/patchEntity200.d.ts +0 -20
  2681. package/dist/generated/model/patchEntity200.d.ts.map +0 -1
  2682. package/dist/generated/model/paymentResponse.d.cts +0 -53
  2683. package/dist/generated/model/paymentResponse.d.ts +0 -53
  2684. package/dist/generated/model/paymentResponse.d.ts.map +0 -1
  2685. package/dist/generated/model/pdfExportByDateRangeType.d.ts.map +0 -1
  2686. package/dist/generated/model/pdfExportByDocumentIdsType.d.ts.map +0 -1
  2687. package/dist/generated/model/viesCheckRequest.d.ts.map +0 -1
  2688. package/dist/generated/model/viesCheckRequestCustomer.d.ts.map +0 -1
  2689. package/dist/generated/model/viesCheckRequestIssuer.d.ts.map +0 -1
  2690. package/dist/generated/model/viesCheckResponse.d.ts.map +0 -1
  2691. package/dist/generated/model/viesCheckResponseTransactionType.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,219 +1,3 @@
1
- var{defineProperty:xo,getOwnPropertyNames:sce,getOwnPropertyDescriptor:ere}=Object,ore=Object.prototype.hasOwnProperty;var er=new WeakMap,cre=(o)=>{var c=er.get(o),n;if(c)return c;if(c=xo({},"__esModule",{value:!0}),o&&typeof o==="object"||typeof o==="function")sce(o).map((I)=>!ore.call(c,I)&&xo(c,I,{get:()=>o[I],enumerable:!(n=ere(o,I))||n.enumerable}));return er.set(o,c),c};var Q=(o,c)=>{for(var n in c)xo(o,n,{get:c[n],enumerable:!0,configurable:!0,set:(I)=>c[n]=()=>I})};var wGe={};Q(wGe,{zod:()=>ac,whiteLabels:()=>Yo,whiteLabelSubscriptions:()=>Xo,webhooks:()=>wo,vies:()=>Qo,users:()=>Wo,upload:()=>Ho,taxes:()=>Lo,taxReports:()=>Ro,stripeApp:()=>Bo,setAccountId:()=>sa,recurringInvoices:()=>to,payments:()=>Jo,orders:()=>uo,orderIntegrations:()=>Go,locale:()=>No,items:()=>qo,invoices:()=>To,initSDK:()=>hce,health:()=>bo,getAccountId:()=>es,fursSettings:()=>Oo,fursPremises:()=>Do,fursDevices:()=>Eo,fursCertificate:()=>_o,finaSettings:()=>Po,finaPremises:()=>go,finaDevices:()=>So,finaCertificate:()=>Io,files:()=>Ao,exports:()=>no,estimates:()=>vo,entityUsers:()=>ro,entityStats:()=>co,entityInvitations:()=>oo,entityApiKeys:()=>eo,entities:()=>se,email:()=>ae,documents:()=>de,deliveryNotes:()=>ie,default:()=>Pe,customers:()=>he,creditNotes:()=>le,companyRegistry:()=>fe,advanceInvoices:()=>pe,activities:()=>je,WebhookWithSecretEventsItem:()=>Ine,WebhookResponseEventsItem:()=>Ane,WebhookDeliveryStatus:()=>nne,ViesCheckResponseTransactionType:()=>vne,UploadFileBodyCategory:()=>rne,UpdateWebhookBodyEventsItem:()=>cne,UpdateRecurringInvoiceBodyFrequency:()=>one,UpdatePaymentBodyType:()=>ene,UpdateOrderIntegrationBodyAutoProcessOn:()=>sve,UpdateOrderBodyPaymentStatus:()=>ave,UpdateFursSettingsBodyNumberingStrategy:()=>dve,UpdateFursSettings200NumberingStrategy:()=>ive,UpdateFursSettings200CertificateStatus:()=>hve,UpdateFinaSettingsBodyNumberingSequence:()=>lve,UpdateFinaSettings200NumberingSequence:()=>fve,UpdateFinaSettings200CertificateStatus:()=>pve,UpdateEstimateTitleType:()=>jve,UpdateEntityUserRoleBodyRole:()=>Cve,StripeAppUpdateSettingsBodyAutoInvoiceEventsItem:()=>Zve,StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem:()=>mve,StatsQueryRequestTable:()=>Uve,StatsQueryRequestOrderByItemDirection:()=>kve,StatsQueryRequestMetricsItemType:()=>zve,StartPdfExport202Status:()=>Mve,SpaceInvoices:()=>Pe,SendEmail200Status:()=>$ve,SendDocument200Status:()=>Fve,RestoreDocumentType:()=>Vve,RenderInvoicePreviewTemplate:()=>yve,RenderInvoicePreviewPartial:()=>Kve,RenderEstimatePreviewTemplate:()=>xve,RenderEstimatePreviewPartial:()=>Yve,RenderDocumentPdfTemplate:()=>Xve,RenderDocumentHtmlTemplate:()=>wve,RenderDeliveryNotePreviewTemplate:()=>Qve,RenderDeliveryNotePreviewPartial:()=>Wve,RenderCreditNotePreviewTemplate:()=>Hve,RenderCreditNotePreviewPartial:()=>Lve,RenderAdvanceInvoicePreviewTemplate:()=>Rve,RenderAdvanceInvoicePreviewPartial:()=>Bve,RegisterFursMovablePremiseBodyMovablePremisePremiseType:()=>tve,RecurringInvoiceBaseStatus:()=>Jve,RecurringInvoiceBaseFrequency:()=>uve,PermanentDeleteDocumentType:()=>Gve,PdfExportByDocumentIdsType:()=>Nve,PdfExportByDateRangeType:()=>qve,PaymentType:()=>Tve,PatchMeBodyLocale:()=>bve,PatchEntityBodySettingsPdfTemplate:()=>Ove,PartialEstimatePreviewTitleType:()=>Dve,OrderIntegrationBaseSource:()=>Eve,OrderIntegrationBaseAutoProcessOn:()=>_ve,OrderBaseStatus:()=>Pve,OrderBaseSource:()=>gve,OrderBasePaymentStatus:()=>Sve,LineDiscountType:()=>Ive,InvoiceTransactionType:()=>Ave,GetShareableInvoicePdfLocale:()=>nve,GetShareableInvoiceHtmlLocale:()=>vve,GetShareableEstimatePdfLocale:()=>rve,GetShareableEstimateHtmlLocale:()=>cve,GetShareableDeliveryNotePdfLocale:()=>ove,GetShareableDeliveryNoteHtmlLocale:()=>eve,GetShareableCreditNotePdfLocale:()=>sre,GetShareableCreditNoteHtmlLocale:()=>are,GetShareableAdvanceInvoicePdfLocale:()=>dre,GetShareableAdvanceInvoiceHtmlLocale:()=>ire,GetPdfExportStatus200Status:()=>hre,GetNextDocumentNumberType:()=>lre,GetFursSettings200NumberingStrategy:()=>fre,GetFursSettings200CertificateStatus:()=>pre,GetFinaSettings200NumberingSequence:()=>jre,GetFinaSettings200CertificateStatus:()=>Cre,GetFilesCategory:()=>Zre,GetEntitiesEnvironment:()=>mre,GetActivities200DataItemActorType:()=>Ure,FursPremiseSuccessResponseEnvironment:()=>kre,FiscalizeDocumentType:()=>zre,FinalizeDocumentType:()=>Mre,ExportSalesPerItemLanguage:()=>$re,ExportSalesPerItemFormat:()=>Fre,ExportDocumentsType:()=>Vre,ExportDocumentsLanguage:()=>yre,ExportDocumentsFormat:()=>Kre,EstimateTransactionType:()=>xre,EstimateTitleType:()=>Yre,EntityUserRole:()=>Xre,EntitySettingsPdfTemplate:()=>wre,EntityInvitationStatus:()=>Qre,EntityInvitationRole:()=>Wre,EntityEnvironment:()=>Hre,EntityBankAccountType:()=>Lre,EntityApiKeyEnvironment:()=>Rre,DocumentVersionDocumentType:()=>Bre,DocumentRelationTargetType:()=>tre,DocumentRelationSourceType:()=>Jre,DeliveryNoteTransactionType:()=>ure,DeleteDocumentType:()=>Gre,DEFAULT_BASE_URL:()=>ge,CustomCreateEstimateTitleType:()=>Nre,CreditNoteTransactionType:()=>qre,CreateWebhookBodyEventsItem:()=>Tre,CreateRecurringInvoiceBodyFrequency:()=>bre,CreatePaymentBodyType:()=>Ore,CreateOrderIntegrationBodySource:()=>Dre,CreateOrderBodySource:()=>Ere,CreateOrderBodyPaymentStatus:()=>_re,CreateEstimateTitleType:()=>Pre,CreateEntityBodySettingsPdfTemplate:()=>gre,CreateEntityBodyEnvironment:()=>Sre,CreateDocumentPaymentType:()=>Ire,CreateCheckoutRequestBillingInterval:()=>Are,Configuration:()=>or,CompleteEstimatePreviewTitleType:()=>nre,AdvanceInvoiceTransactionType:()=>vre,AddEntityUserBodyRole:()=>rre});module.exports=cre(wGe);class or{basePath;accessToken;constructor(o){this.basePath=o?.basePath,this.accessToken=o?.accessToken}}var rre={viewer:"viewer",editor:"editor",admin:"admin"};var vre={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var nre={estimate:"estimate",quote:"quote"};var Are={monthly:"monthly",yearly:"yearly"};var Ire={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Sre={live:"live",sandbox:"sandbox"};var gre={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Pre={estimate:"estimate",quote:"quote"};var _re={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var Ere={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Dre={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Ore={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var bre={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Tre={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var qre={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Nre={estimate:"estimate",quote:"quote"};var Gre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ure={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Jre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var tre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Bre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Rre={live:"live",sandbox:"sandbox"};var Lre={iban:"iban",us_domestic:"us_domestic",uk_domestic:"uk_domestic",other:"other"};var Hre={live:"live",sandbox:"sandbox"};var Wre={viewer:"viewer",editor:"editor",admin:"admin"};var Qre={pending:"pending",accepted:"accepted",expired:"expired"};var wre={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Xre={viewer:"viewer",editor:"editor",admin:"admin"};var Yre={estimate:"estimate",quote:"quote"};var xre={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Kre={xlsx:"xlsx",csv:"csv"};var yre={en:"en",sl:"sl",de:"de",it:"it",fr:"fr",es:"es"};var Vre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Fre={xlsx:"xlsx",csv:"csv"};var $re={en:"en",sl:"sl",de:"de",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr"};var Mre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var zre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var kre={test:"test",production:"production"};var Ure={user:"user",api_key:"api_key",system:"system",cron:"cron",webhook:"webhook"};var mre={live:"live",sandbox:"sandbox"};var Zre={logo:"logo",signature:"signature",attachment:"attachment"};var Cre={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var jre={N:"N",P:"P"};var pre={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var fre={B:"B",C:"C"};var lre={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var hre={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var ire={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var dre={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var are={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var sre={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var eve={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var ove={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var cve={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var rve={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var vve={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var nve={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR"};var Ave={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var Ive={percent:"percent",amount:"amount"};var Sve={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var gve={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Pve={pending:"pending",processing:"processing",invoiced:"invoiced",cancelled:"cancelled",failed:"failed"};var _ve={created:"created",paid:"paid",fulfilled:"fulfilled"};var Eve={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Dve={estimate:"estimate",quote:"quote"};var Ove={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var bve={en:"en",de:"de",sl:"sl"};var Tve={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var qve={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Nve={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Gve={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var uve={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Jve={active:"active",paused:"paused",completed:"completed"};var tve={A:"A",B:"B",C:"C"};var Bve={true:"true",false:"false"};var Rve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Lve={true:"true",false:"false"};var Hve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Wve={true:"true",false:"false"};var Qve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var wve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Xve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Yve={true:"true",false:"false"};var xve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Kve={true:"true",false:"false"};var yve={modern:"modern",classic:"classic",minimal:"minimal",fashion:"fashion"};var Vve={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Fve={sent:"sent",queued:"queued"};var $ve={sent:"sent",queued:"queued"};var Mve={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var zve={count:"count",sum:"sum",avg:"avg",min:"min",max:"max"};var kve={asc:"asc",desc:"desc"};var Uve={invoices:"invoices",estimates:"estimates",credit_notes:"credit_notes",advance_invoices:"advance_invoices",payments:"payments",customers:"customers",items:"items",invoice_taxes:"invoice_taxes"};var mve={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var Zve={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var Cve={viewer:"viewer",editor:"editor",admin:"admin"};var jve={estimate:"estimate",quote:"quote"};var pve={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var fve={N:"N",P:"P"};var lve={N:"N",P:"P"};var hve={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var ive={B:"B",C:"C"};var dve={B:"B",C:"C"};var ave={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var sve={created:"created",paid:"paid",fulfilled:"fulfilled"};var ene={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var one={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var cne={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var rne={logo:"logo",signature:"signature",attachment:"attachment"};var vne={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c",export:"export"};var nne={pending:"pending",success:"success",failed:"failed"};var Ane={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var Ine={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored"};var ac={};Q(ac,{whiteLabels:()=>dc,whiteLabelSubscriptions:()=>ic,webhooks:()=>hc,vies:()=>lc,users:()=>fc,upload:()=>pc,taxes:()=>jc,taxReports:()=>Cc,stripeApp:()=>Zc,recurringInvoices:()=>mc,payments:()=>Uc,orders:()=>kc,orderIntegrations:()=>zc,items:()=>Mc,invoices:()=>$c,fursSettings:()=>Fc,fursPremises:()=>Vc,fursDevices:()=>yc,fursCertificate:()=>Kc,finaSettings:()=>xc,finaPremises:()=>Yc,finaDevices:()=>Xc,finaCertificate:()=>wc,files:()=>Qc,exports:()=>Wc,estimates:()=>Hc,entityUsers:()=>Lc,entityStats:()=>Rc,entityInvitations:()=>Bc,entityApiKeys:()=>tc,entities:()=>Jc,email:()=>uc,documents:()=>Gc,deliveryNotes:()=>Nc,customers:()=>qc,creditNotes:()=>Tc,companyRegistry:()=>bc,advanceInvoices:()=>Oc,activities:()=>Dc});var Dc={};Q(Dc,{getActivitiesQueryLimitMax:()=>fA,getActivitiesQueryLimitDefault:()=>pA,GetActivitiesResponse:()=>dAe,GetActivitiesQueryParams:()=>hAe,GetActivitiesHeader:()=>iAe});var M8e=Object.freeze({status:"aborted"});function u(o,c,n){function I(q,G){if(!q._zod)Object.defineProperty(q,"_zod",{value:{def:G,constr:E,traits:new Set},enumerable:!1});if(q._zod.traits.has(o))return;q._zod.traits.add(o),c(q,G);let t=E.prototype,B=Object.keys(t);for(let R=0;R<B.length;R++){let H=B[R];if(!(H in q))q[H]=t[H].bind(q)}}let S=n?.Parent??Object;class _ extends S{}Object.defineProperty(_,"name",{value:o});function E(q){var G;let t=n?.Parent?new _:this;I(t,q),(G=t._zod).deferred??(G.deferred=[]);for(let B of t._zod.deferred)B();return t}return Object.defineProperty(E,"init",{value:I}),Object.defineProperty(E,Symbol.hasInstance,{value:(q)=>{if(n?.Parent&&q instanceof n.Parent)return!0;return q?._zod?.traits?.has(o)}}),Object.defineProperty(E,"name",{value:o}),E}var z8e=Symbol("zod_brand");class h extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class _e extends Error{constructor(o){super(`Encountered unidirectional transform during encode: ${o}`);this.name="ZodEncodeError"}}var Le={};function l(o){if(o)Object.assign(Le,o);return Le}var x={};Q(x,{unwrapMessage:()=>Ee,uint8ArrayToHex:()=>yne,uint8ArrayToBase64url:()=>xne,uint8ArrayToBase64:()=>gr,stringifyPrimitive:()=>nr,slugify:()=>Vo,shallowClone:()=>rr,safeExtend:()=>Lne,required:()=>Qne,randomString:()=>Nne,propertyKeyTypes:()=>$o,promiseAllObject:()=>qne,primitiveTypes:()=>vr,prefixIssues:()=>d,pick:()=>tne,partial:()=>Wne,parsedType:()=>wne,optionalKeys:()=>Mo,omit:()=>Bne,objectClone:()=>One,numKeys:()=>Gne,nullish:()=>be,normalizeParams:()=>L,mergeDefs:()=>i,merge:()=>Hne,jsonStringifyReplacer:()=>Ae,joinValues:()=>Dne,issue:()=>Ie,isPlainObject:()=>s,isObject:()=>ne,hexToUint8Array:()=>Kne,getSizableOrigin:()=>Ir,getParsedType:()=>une,getLengthableOrigin:()=>qe,getEnumValues:()=>De,getElementAtPath:()=>Tne,floatSafeRemainder:()=>yo,finalizeIssue:()=>p,extend:()=>Rne,escapeRegex:()=>re,esc:()=>He,defineLazy:()=>Y,createTransparentProxy:()=>Jne,cloneDef:()=>bne,clone:()=>j,cleanRegex:()=>Te,cleanEnum:()=>Xne,captureStackTrace:()=>We,cached:()=>Oe,base64urlToUint8Array:()=>Yne,base64ToUint8Array:()=>Sr,assignProp:()=>a,assertNotEqual:()=>gne,assertNever:()=>_ne,assertIs:()=>Pne,assertEqual:()=>Sne,assert:()=>Ene,allowsEval:()=>Fo,aborted:()=>ee,NUMBER_FORMAT_RANGES:()=>zo,Class:()=>Pr,BIGINT_FORMAT_RANGES:()=>Ar});function Sne(o){return o}function gne(o){return o}function Pne(o){}function _ne(o){throw Error("Unexpected value in exhaustive check")}function Ene(o){}function De(o){let c=Object.values(o).filter((I)=>typeof I==="number");return Object.entries(o).filter(([I,S])=>c.indexOf(+I)===-1).map(([I,S])=>S)}function Dne(o,c="|"){return o.map((n)=>nr(n)).join(c)}function Ae(o,c){if(typeof c==="bigint")return c.toString();return c}function Oe(o){return{get value(){{let n=o();return Object.defineProperty(this,"value",{value:n}),n}throw Error("cached value already set")}}}function be(o){return o===null||o===void 0}function Te(o){let c=o.startsWith("^")?1:0,n=o.endsWith("$")?o.length-1:o.length;return o.slice(c,n)}function yo(o,c){let n=(o.toString().split(".")[1]||"").length,I=c.toString(),S=(I.split(".")[1]||"").length;if(S===0&&/\d?e-\d?/.test(I)){let G=I.match(/\d?e-(\d?)/);if(G?.[1])S=Number.parseInt(G[1])}let _=n>S?n:S,E=Number.parseInt(o.toFixed(_).replace(".","")),q=Number.parseInt(c.toFixed(_).replace(".",""));return E%q/10**_}var cr=Symbol("evaluating");function Y(o,c,n){let I=void 0;Object.defineProperty(o,c,{get(){if(I===cr)return;if(I===void 0)I=cr,I=n();return I},set(S){Object.defineProperty(o,c,{value:S})},configurable:!0})}function One(o){return Object.create(Object.getPrototypeOf(o),Object.getOwnPropertyDescriptors(o))}function a(o,c,n){Object.defineProperty(o,c,{value:n,writable:!0,enumerable:!0,configurable:!0})}function i(...o){let c={};for(let n of o){let I=Object.getOwnPropertyDescriptors(n);Object.assign(c,I)}return Object.defineProperties({},c)}function bne(o){return i(o._zod.def)}function Tne(o,c){if(!c)return o;return c.reduce((n,I)=>n?.[I],o)}function qne(o){let c=Object.keys(o),n=c.map((I)=>o[I]);return Promise.all(n).then((I)=>{let S={};for(let _=0;_<c.length;_++)S[c[_]]=I[_];return S})}function Nne(o=10){let n="";for(let I=0;I<o;I++)n+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return n}function He(o){return JSON.stringify(o)}function Vo(o){return o.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var We="captureStackTrace"in Error?Error.captureStackTrace:(...o)=>{};function ne(o){return typeof o==="object"&&o!==null&&!Array.isArray(o)}var Fo=Oe(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(o){return!1}});function s(o){if(ne(o)===!1)return!1;let c=o.constructor;if(c===void 0)return!0;if(typeof c!=="function")return!0;let n=c.prototype;if(ne(n)===!1)return!1;if(Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)return!1;return!0}function rr(o){if(s(o))return{...o};if(Array.isArray(o))return[...o];return o}function Gne(o){let c=0;for(let n in o)if(Object.prototype.hasOwnProperty.call(o,n))c++;return c}var une=(o)=>{let c=typeof o;switch(c){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(o)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(o))return"array";if(o===null)return"null";if(o.then&&typeof o.then==="function"&&o.catch&&typeof o.catch==="function")return"promise";if(typeof Map<"u"&&o instanceof Map)return"map";if(typeof Set<"u"&&o instanceof Set)return"set";if(typeof Date<"u"&&o instanceof Date)return"date";if(typeof File<"u"&&o instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${c}`)}},$o=new Set(["string","number","symbol"]),vr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function re(o){return o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(o,c,n){let I=new o._zod.constr(c??o._zod.def);if(!c||n?.parent)I._zod.parent=o;return I}function L(o){let c=o;if(!c)return{};if(typeof c==="string")return{error:()=>c};if(c?.message!==void 0){if(c?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");c.error=c.message}if(delete c.message,typeof c.error==="string")return{...c,error:()=>c.error};return c}function Jne(o){let c;return new Proxy({},{get(n,I,S){return c??(c=o()),Reflect.get(c,I,S)},set(n,I,S,_){return c??(c=o()),Reflect.set(c,I,S,_)},has(n,I){return c??(c=o()),Reflect.has(c,I)},deleteProperty(n,I){return c??(c=o()),Reflect.deleteProperty(c,I)},ownKeys(n){return c??(c=o()),Reflect.ownKeys(c)},getOwnPropertyDescriptor(n,I){return c??(c=o()),Reflect.getOwnPropertyDescriptor(c,I)},defineProperty(n,I,S){return c??(c=o()),Reflect.defineProperty(c,I,S)}})}function nr(o){if(typeof o==="bigint")return o.toString()+"n";if(typeof o==="string")return`"${o}"`;return`${o}`}function Mo(o){return Object.keys(o).filter((c)=>{return o[c]._zod.optin==="optional"&&o[c]._zod.optout==="optional"})}var zo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ar={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function tne(o,c){let n=o._zod.def,I=n.checks;if(I&&I.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let _=i(o._zod.def,{get shape(){let E={};for(let q in c){if(!(q in n.shape))throw Error(`Unrecognized key: "${q}"`);if(!c[q])continue;E[q]=n.shape[q]}return a(this,"shape",E),E},checks:[]});return j(o,_)}function Bne(o,c){let n=o._zod.def,I=n.checks;if(I&&I.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let _=i(o._zod.def,{get shape(){let E={...o._zod.def.shape};for(let q in c){if(!(q in n.shape))throw Error(`Unrecognized key: "${q}"`);if(!c[q])continue;delete E[q]}return a(this,"shape",E),E},checks:[]});return j(o,_)}function Rne(o,c){if(!s(c))throw Error("Invalid input to extend: expected a plain object");let n=o._zod.def.checks;if(n&&n.length>0){let _=o._zod.def.shape;for(let E in c)if(Object.getOwnPropertyDescriptor(_,E)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let S=i(o._zod.def,{get shape(){let _={...o._zod.def.shape,...c};return a(this,"shape",_),_}});return j(o,S)}function Lne(o,c){if(!s(c))throw Error("Invalid input to safeExtend: expected a plain object");let n=i(o._zod.def,{get shape(){let I={...o._zod.def.shape,...c};return a(this,"shape",I),I}});return j(o,n)}function Hne(o,c){let n=i(o._zod.def,{get shape(){let I={...o._zod.def.shape,...c._zod.def.shape};return a(this,"shape",I),I},get catchall(){return c._zod.def.catchall},checks:[]});return j(o,n)}function Wne(o,c,n){let S=c._zod.def.checks;if(S&&S.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let E=i(c._zod.def,{get shape(){let q=c._zod.def.shape,G={...q};if(n)for(let t in n){if(!(t in q))throw Error(`Unrecognized key: "${t}"`);if(!n[t])continue;G[t]=o?new o({type:"optional",innerType:q[t]}):q[t]}else for(let t in q)G[t]=o?new o({type:"optional",innerType:q[t]}):q[t];return a(this,"shape",G),G},checks:[]});return j(c,E)}function Qne(o,c,n){let I=i(c._zod.def,{get shape(){let S=c._zod.def.shape,_={...S};if(n)for(let E in n){if(!(E in _))throw Error(`Unrecognized key: "${E}"`);if(!n[E])continue;_[E]=new o({type:"nonoptional",innerType:S[E]})}else for(let E in S)_[E]=new o({type:"nonoptional",innerType:S[E]});return a(this,"shape",_),_}});return j(c,I)}function ee(o,c=0){if(o.aborted===!0)return!0;for(let n=c;n<o.issues.length;n++)if(o.issues[n]?.continue!==!0)return!0;return!1}function d(o,c){return c.map((n)=>{var I;return(I=n).path??(I.path=[]),n.path.unshift(o),n})}function Ee(o){return typeof o==="string"?o:o?.message}function p(o,c,n){let I={...o,path:o.path??[]};if(!o.message){let S=Ee(o.inst?._zod.def?.error?.(o))??Ee(c?.error?.(o))??Ee(n.customError?.(o))??Ee(n.localeError?.(o))??"Invalid input";I.message=S}if(delete I.inst,delete I.continue,!c?.reportInput)delete I.input;return I}function Ir(o){if(o instanceof Set)return"set";if(o instanceof Map)return"map";if(o instanceof File)return"file";return"unknown"}function qe(o){if(Array.isArray(o))return"array";if(typeof o==="string")return"string";return"unknown"}function wne(o){let c=typeof o;switch(c){case"number":return Number.isNaN(o)?"nan":"number";case"object":{if(o===null)return"null";if(Array.isArray(o))return"array";let n=o;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return c}function Ie(...o){let[c,n,I]=o;if(typeof c==="string")return{message:c,code:"custom",input:n,inst:I};return{...c}}function Xne(o){return Object.entries(o).filter(([c,n])=>{return Number.isNaN(Number.parseInt(c,10))}).map((c)=>c[1])}function Sr(o){let c=atob(o),n=new Uint8Array(c.length);for(let I=0;I<c.length;I++)n[I]=c.charCodeAt(I);return n}function gr(o){let c="";for(let n=0;n<o.length;n++)c+=String.fromCharCode(o[n]);return btoa(c)}function Yne(o){let c=o.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-c.length%4)%4);return Sr(c+n)}function xne(o){return gr(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Kne(o){let c=o.replace(/^0x/,"");if(c.length%2!==0)throw Error("Invalid hex string length");let n=new Uint8Array(c.length/2);for(let I=0;I<c.length;I+=2)n[I/2]=Number.parseInt(c.slice(I,I+2),16);return n}function yne(o){return Array.from(o).map((c)=>c.toString(16).padStart(2,"0")).join("")}class Pr{constructor(...o){}}var _r=(o,c)=>{o.name="$ZodError",Object.defineProperty(o,"_zod",{value:o._zod,enumerable:!1}),Object.defineProperty(o,"issues",{value:c,enumerable:!1}),o.message=JSON.stringify(c,Ae,2),Object.defineProperty(o,"toString",{value:()=>o.message,enumerable:!1})},Qe=u("$ZodError",_r),ko=u("$ZodError",_r,{Parent:Error});function Er(o,c=(n)=>n.message){let n={},I=[];for(let S of o.issues)if(S.path.length>0)n[S.path[0]]=n[S.path[0]]||[],n[S.path[0]].push(c(S));else I.push(c(S));return{formErrors:I,fieldErrors:n}}function Dr(o,c=(n)=>n.message){let n={_errors:[]},I=(S)=>{for(let _ of S.issues)if(_.code==="invalid_union"&&_.errors.length)_.errors.map((E)=>I({issues:E}));else if(_.code==="invalid_key")I({issues:_.issues});else if(_.code==="invalid_element")I({issues:_.issues});else if(_.path.length===0)n._errors.push(c(_));else{let E=n,q=0;while(q<_.path.length){let G=_.path[q];if(q!==_.path.length-1)E[G]=E[G]||{_errors:[]};else E[G]=E[G]||{_errors:[]},E[G]._errors.push(c(_));E=E[G],q++}}};return I(o),n}var we=(o)=>(c,n,I,S)=>{let _=I?Object.assign(I,{async:!1}):{async:!1},E=c._zod.run({value:n,issues:[]},_);if(E instanceof Promise)throw new h;if(E.issues.length){let q=new(S?.Err??o)(E.issues.map((G)=>p(G,_,l())));throw We(q,S?.callee),q}return E.value};var Xe=(o)=>async(c,n,I,S)=>{let _=I?Object.assign(I,{async:!0}):{async:!0},E=c._zod.run({value:n,issues:[]},_);if(E instanceof Promise)E=await E;if(E.issues.length){let q=new(S?.Err??o)(E.issues.map((G)=>p(G,_,l())));throw We(q,S?.callee),q}return E.value};var Ne=(o)=>(c,n,I)=>{let S=I?{...I,async:!1}:{async:!1},_=c._zod.run({value:n,issues:[]},S);if(_ instanceof Promise)throw new h;return _.issues.length?{success:!1,error:new(o??Qe)(_.issues.map((E)=>p(E,S,l())))}:{success:!0,data:_.value}},Or=Ne(ko),Ge=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{async:!0}):{async:!0},_=c._zod.run({value:n,issues:[]},S);if(_ instanceof Promise)_=await _;return _.issues.length?{success:!1,error:new o(_.issues.map((E)=>p(E,S,l())))}:{success:!0,data:_.value}},br=Ge(ko),Tr=(o)=>(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return we(o)(c,n,S)};var qr=(o)=>(c,n,I)=>{return we(o)(c,n,I)};var Nr=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return Xe(o)(c,n,S)};var Gr=(o)=>async(c,n,I)=>{return Xe(o)(c,n,I)};var ur=(o)=>(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return Ne(o)(c,n,S)};var Jr=(o)=>(c,n,I)=>{return Ne(o)(c,n,I)};var tr=(o)=>async(c,n,I)=>{let S=I?Object.assign(I,{direction:"backward"}):{direction:"backward"};return Ge(o)(c,n,S)};var Br=(o)=>async(c,n,I)=>{return Ge(o)(c,n,I)};var Rr=/^[cC][^\s-]{8,}$/,Lr=/^[0-9a-z]+$/,Hr=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Wr=/^[0-9a-vA-V]{20}$/,Qr=/^[A-Za-z0-9]{27}$/,wr=/^[a-zA-Z0-9_-]{21}$/,Xr=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var Yr=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Uo=(o)=>{if(!o)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${o}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var xr=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var Fne="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Kr(){return new RegExp(Fne,"u")}var yr=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Vr=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var Fr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,$r=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Mr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mo=/^[A-Za-z0-9_-]*$/;var zr=/^\+[1-9]\d{6,14}$/,kr="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ur=new RegExp(`^${kr}$`);function mr(o){return typeof o.precision==="number"?o.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":o.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${o.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function Zr(o){return new RegExp(`^${mr(o)}$`)}function Cr(o){let c=mr({precision:o.precision}),n=["Z"];if(o.local)n.push("");if(o.offset)n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let I=`${c}(?:${n.join("|")})`;return new RegExp(`^${kr}T(?:${I})$`)}var jr=(o)=>{let c=o?`[\\s\\S]{${o?.minimum??0},${o?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${c}$`)};var pr=/^-?\d+$/,Ye=/^-?\d+(?:\.\d+)?$/,fr=/^(?:true|false)$/i,lr=/^null$/i;var hr=/^[^A-Z]*$/,ir=/^[^a-z]*$/;var z=u("$ZodCheck",(o,c)=>{var n;o._zod??(o._zod={}),o._zod.def=c,(n=o._zod).onattach??(n.onattach=[])}),dr={number:"number",bigint:"bigint",object:"date"},Zo=u("$ZodCheckLessThan",(o,c)=>{z.init(o,c);let n=dr[typeof c.value];o._zod.onattach.push((I)=>{let S=I._zod.bag,_=(c.inclusive?S.maximum:S.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(c.value<_)if(c.inclusive)S.maximum=c.value;else S.exclusiveMaximum=c.value}),o._zod.check=(I)=>{if(c.inclusive?I.value<=c.value:I.value<c.value)return;I.issues.push({origin:n,code:"too_big",maximum:typeof c.value==="object"?c.value.getTime():c.value,input:I.value,inclusive:c.inclusive,inst:o,continue:!c.abort})}}),Co=u("$ZodCheckGreaterThan",(o,c)=>{z.init(o,c);let n=dr[typeof c.value];o._zod.onattach.push((I)=>{let S=I._zod.bag,_=(c.inclusive?S.minimum:S.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(c.value>_)if(c.inclusive)S.minimum=c.value;else S.exclusiveMinimum=c.value}),o._zod.check=(I)=>{if(c.inclusive?I.value>=c.value:I.value>c.value)return;I.issues.push({origin:n,code:"too_small",minimum:typeof c.value==="object"?c.value.getTime():c.value,input:I.value,inclusive:c.inclusive,inst:o,continue:!c.abort})}}),ar=u("$ZodCheckMultipleOf",(o,c)=>{z.init(o,c),o._zod.onattach.push((n)=>{var I;(I=n._zod.bag).multipleOf??(I.multipleOf=c.value)}),o._zod.check=(n)=>{if(typeof n.value!==typeof c.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof n.value==="bigint"?n.value%c.value===BigInt(0):yo(n.value,c.value)===0)return;n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:c.value,input:n.value,inst:o,continue:!c.abort})}}),sr=u("$ZodCheckNumberFormat",(o,c)=>{z.init(o,c),c.format=c.format||"float64";let n=c.format?.includes("int"),I=n?"int":"number",[S,_]=zo[c.format];o._zod.onattach.push((E)=>{let q=E._zod.bag;if(q.format=c.format,q.minimum=S,q.maximum=_,n)q.pattern=pr}),o._zod.check=(E)=>{let q=E.value;if(n){if(!Number.isInteger(q)){E.issues.push({expected:I,format:c.format,code:"invalid_type",continue:!1,input:q,inst:o});return}if(!Number.isSafeInteger(q)){if(q>0)E.issues.push({input:q,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:I,inclusive:!0,continue:!c.abort});else E.issues.push({input:q,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:o,origin:I,inclusive:!0,continue:!c.abort});return}}if(q<S)E.issues.push({origin:"number",input:q,code:"too_small",minimum:S,inclusive:!0,inst:o,continue:!c.abort});if(q>_)E.issues.push({origin:"number",input:q,code:"too_big",maximum:_,inclusive:!0,inst:o,continue:!c.abort})}});var ev=u("$ZodCheckMaxLength",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!be(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag.maximum??Number.POSITIVE_INFINITY;if(c.maximum<S)I._zod.bag.maximum=c.maximum}),o._zod.check=(I)=>{let S=I.value;if(S.length<=c.maximum)return;let E=qe(S);I.issues.push({origin:E,code:"too_big",maximum:c.maximum,inclusive:!0,input:S,inst:o,continue:!c.abort})}}),ov=u("$ZodCheckMinLength",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!be(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(c.minimum>S)I._zod.bag.minimum=c.minimum}),o._zod.check=(I)=>{let S=I.value;if(S.length>=c.minimum)return;let E=qe(S);I.issues.push({origin:E,code:"too_small",minimum:c.minimum,inclusive:!0,input:S,inst:o,continue:!c.abort})}}),cv=u("$ZodCheckLengthEquals",(o,c)=>{var n;z.init(o,c),(n=o._zod.def).when??(n.when=(I)=>{let S=I.value;return!be(S)&&S.length!==void 0}),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.minimum=c.length,S.maximum=c.length,S.length=c.length}),o._zod.check=(I)=>{let S=I.value,_=S.length;if(_===c.length)return;let E=qe(S),q=_>c.length;I.issues.push({origin:E,...q?{code:"too_big",maximum:c.length}:{code:"too_small",minimum:c.length},inclusive:!0,exact:!0,input:I.value,inst:o,continue:!c.abort})}}),ue=u("$ZodCheckStringFormat",(o,c)=>{var n,I;if(z.init(o,c),o._zod.onattach.push((S)=>{let _=S._zod.bag;if(_.format=c.format,c.pattern)_.patterns??(_.patterns=new Set),_.patterns.add(c.pattern)}),c.pattern)(n=o._zod).check??(n.check=(S)=>{if(c.pattern.lastIndex=0,c.pattern.test(S.value))return;S.issues.push({origin:"string",code:"invalid_format",format:c.format,input:S.value,...c.pattern?{pattern:c.pattern.toString()}:{},inst:o,continue:!c.abort})});else(I=o._zod).check??(I.check=()=>{})}),rv=u("$ZodCheckRegex",(o,c)=>{ue.init(o,c),o._zod.check=(n)=>{if(c.pattern.lastIndex=0,c.pattern.test(n.value))return;n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:c.pattern.toString(),inst:o,continue:!c.abort})}}),vv=u("$ZodCheckLowerCase",(o,c)=>{c.pattern??(c.pattern=hr),ue.init(o,c)}),nv=u("$ZodCheckUpperCase",(o,c)=>{c.pattern??(c.pattern=ir),ue.init(o,c)}),Av=u("$ZodCheckIncludes",(o,c)=>{z.init(o,c);let n=re(c.includes),I=new RegExp(typeof c.position==="number"?`^.{${c.position}}${n}`:n);c.pattern=I,o._zod.onattach.push((S)=>{let _=S._zod.bag;_.patterns??(_.patterns=new Set),_.patterns.add(I)}),o._zod.check=(S)=>{if(S.value.includes(c.includes,c.position))return;S.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:c.includes,input:S.value,inst:o,continue:!c.abort})}}),Iv=u("$ZodCheckStartsWith",(o,c)=>{z.init(o,c);let n=new RegExp(`^${re(c.prefix)}.*`);c.pattern??(c.pattern=n),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.patterns??(S.patterns=new Set),S.patterns.add(n)}),o._zod.check=(I)=>{if(I.value.startsWith(c.prefix))return;I.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:c.prefix,input:I.value,inst:o,continue:!c.abort})}}),Sv=u("$ZodCheckEndsWith",(o,c)=>{z.init(o,c);let n=new RegExp(`.*${re(c.suffix)}$`);c.pattern??(c.pattern=n),o._zod.onattach.push((I)=>{let S=I._zod.bag;S.patterns??(S.patterns=new Set),S.patterns.add(n)}),o._zod.check=(I)=>{if(I.value.endsWith(c.suffix))return;I.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:c.suffix,input:I.value,inst:o,continue:!c.abort})}});var gv=u("$ZodCheckOverwrite",(o,c)=>{z.init(o,c),o._zod.check=(n)=>{n.value=c.tx(n.value)}});class jo{constructor(o=[]){if(this.content=[],this.indent=0,this)this.args=o}indented(o){this.indent+=1,o(this),this.indent-=1}write(o){if(typeof o==="function"){o(this,{execution:"sync"}),o(this,{execution:"async"});return}let n=o.split(`
2
- `).filter((_)=>_),I=Math.min(...n.map((_)=>_.length-_.trimStart().length)),S=n.map((_)=>_.slice(I)).map((_)=>" ".repeat(this.indent*2)+_);for(let _ of S)this.content.push(_)}compile(){let o=Function,c=this?.args,I=[...(this?.content??[""]).map((S)=>` ${S}`)];return new o(...c,I.join(`
3
- `))}}var _v={major:4,minor:3,patch:6};var y=u("$ZodType",(o,c)=>{var n;o??(o={}),o._zod.def=c,o._zod.bag=o._zod.bag||{},o._zod.version=_v;let I=[...o._zod.def.checks??[]];if(o._zod.traits.has("$ZodCheck"))I.unshift(o);for(let S of I)for(let _ of S._zod.onattach)_(o);if(I.length===0)(n=o._zod).deferred??(n.deferred=[]),o._zod.deferred?.push(()=>{o._zod.run=o._zod.parse});else{let S=(E,q,G)=>{let t=ee(E),B;for(let R of q){if(R._zod.def.when){if(!R._zod.def.when(E))continue}else if(t)continue;let H=E.issues.length,W=R._zod.check(E);if(W instanceof Promise&&G?.async===!1)throw new h;if(B||W instanceof Promise)B=(B??Promise.resolve()).then(async()=>{if(await W,E.issues.length===H)return;if(!t)t=ee(E,H)});else{if(E.issues.length===H)continue;if(!t)t=ee(E,H)}}if(B)return B.then(()=>{return E});return E},_=(E,q,G)=>{if(ee(E))return E.aborted=!0,E;let t=S(q,I,G);if(t instanceof Promise){if(G.async===!1)throw new h;return t.then((B)=>o._zod.parse(B,G))}return o._zod.parse(t,G)};o._zod.run=(E,q)=>{if(q.skipChecks)return o._zod.parse(E,q);if(q.direction==="backward"){let t=o._zod.parse({value:E.value,issues:[]},{...q,skipChecks:!0});if(t instanceof Promise)return t.then((B)=>{return _(B,E,q)});return _(t,E,q)}let G=o._zod.parse(E,q);if(G instanceof Promise){if(q.async===!1)throw new h;return G.then((t)=>S(t,I,q))}return S(G,I,q)}}Y(o,"~standard",()=>({validate:(S)=>{try{let _=Or(o,S);return _.success?{value:_.data}:{issues:_.error?.issues}}catch(_){return br(o,S).then((E)=>E.success?{value:E.data}:{issues:E.error?.issues})}},vendor:"zod",version:1}))}),Ve=u("$ZodString",(o,c)=>{y.init(o,c),o._zod.pattern=[...o?._zod.bag?.patterns??[]].pop()??jr(o._zod.bag),o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=String(n.value)}catch(S){}if(typeof n.value==="string")return n;return n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:o}),n}}),K=u("$ZodStringFormat",(o,c)=>{ue.init(o,c),Ve.init(o,c)}),uv=u("$ZodGUID",(o,c)=>{c.pattern??(c.pattern=Yr),K.init(o,c)}),Jv=u("$ZodUUID",(o,c)=>{if(c.version){let I={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[c.version];if(I===void 0)throw Error(`Invalid UUID version: "${c.version}"`);c.pattern??(c.pattern=Uo(I))}else c.pattern??(c.pattern=Uo());K.init(o,c)}),tv=u("$ZodEmail",(o,c)=>{c.pattern??(c.pattern=xr),K.init(o,c)}),Bv=u("$ZodURL",(o,c)=>{K.init(o,c),o._zod.check=(n)=>{try{let I=n.value.trim(),S=new URL(I);if(c.hostname){if(c.hostname.lastIndex=0,!c.hostname.test(S.hostname))n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:c.hostname.source,input:n.value,inst:o,continue:!c.abort})}if(c.protocol){if(c.protocol.lastIndex=0,!c.protocol.test(S.protocol.endsWith(":")?S.protocol.slice(0,-1):S.protocol))n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:c.protocol.source,input:n.value,inst:o,continue:!c.abort})}if(c.normalize)n.value=S.href;else n.value=I;return}catch(I){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:o,continue:!c.abort})}}}),Rv=u("$ZodEmoji",(o,c)=>{c.pattern??(c.pattern=Kr()),K.init(o,c)}),Lv=u("$ZodNanoID",(o,c)=>{c.pattern??(c.pattern=wr),K.init(o,c)}),Hv=u("$ZodCUID",(o,c)=>{c.pattern??(c.pattern=Rr),K.init(o,c)}),Wv=u("$ZodCUID2",(o,c)=>{c.pattern??(c.pattern=Lr),K.init(o,c)}),Qv=u("$ZodULID",(o,c)=>{c.pattern??(c.pattern=Hr),K.init(o,c)}),wv=u("$ZodXID",(o,c)=>{c.pattern??(c.pattern=Wr),K.init(o,c)}),Xv=u("$ZodKSUID",(o,c)=>{c.pattern??(c.pattern=Qr),K.init(o,c)}),Yv=u("$ZodISODateTime",(o,c)=>{c.pattern??(c.pattern=Cr(c)),K.init(o,c)}),xv=u("$ZodISODate",(o,c)=>{c.pattern??(c.pattern=Ur),K.init(o,c)}),Kv=u("$ZodISOTime",(o,c)=>{c.pattern??(c.pattern=Zr(c)),K.init(o,c)}),yv=u("$ZodISODuration",(o,c)=>{c.pattern??(c.pattern=Xr),K.init(o,c)}),Vv=u("$ZodIPv4",(o,c)=>{c.pattern??(c.pattern=yr),K.init(o,c),o._zod.bag.format="ipv4"}),Fv=u("$ZodIPv6",(o,c)=>{c.pattern??(c.pattern=Vr),K.init(o,c),o._zod.bag.format="ipv6",o._zod.check=(n)=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:o,continue:!c.abort})}}});var $v=u("$ZodCIDRv4",(o,c)=>{c.pattern??(c.pattern=Fr),K.init(o,c)}),Mv=u("$ZodCIDRv6",(o,c)=>{c.pattern??(c.pattern=$r),K.init(o,c),o._zod.check=(n)=>{let I=n.value.split("/");try{if(I.length!==2)throw Error();let[S,_]=I;if(!_)throw Error();let E=Number(_);if(`${E}`!==_)throw Error();if(E<0||E>128)throw Error();new URL(`http://[${S}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:o,continue:!c.abort})}}});function zv(o){if(o==="")return!0;if(o.length%4!==0)return!1;try{return atob(o),!0}catch{return!1}}var kv=u("$ZodBase64",(o,c)=>{c.pattern??(c.pattern=Mr),K.init(o,c),o._zod.bag.contentEncoding="base64",o._zod.check=(n)=>{if(zv(n.value))return;n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:o,continue:!c.abort})}});function $ne(o){if(!mo.test(o))return!1;let c=o.replace(/[-_]/g,(I)=>I==="-"?"+":"/"),n=c.padEnd(Math.ceil(c.length/4)*4,"=");return zv(n)}var Uv=u("$ZodBase64URL",(o,c)=>{c.pattern??(c.pattern=mo),K.init(o,c),o._zod.bag.contentEncoding="base64url",o._zod.check=(n)=>{if($ne(n.value))return;n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:o,continue:!c.abort})}}),mv=u("$ZodE164",(o,c)=>{c.pattern??(c.pattern=zr),K.init(o,c)});function Mne(o,c=null){try{let n=o.split(".");if(n.length!==3)return!1;let[I]=n;if(!I)return!1;let S=JSON.parse(atob(I));if("typ"in S&&S?.typ!=="JWT")return!1;if(!S.alg)return!1;if(c&&(!("alg"in S)||S.alg!==c))return!1;return!0}catch{return!1}}var Zv=u("$ZodJWT",(o,c)=>{K.init(o,c),o._zod.check=(n)=>{if(Mne(n.value,c.alg))return;n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:o,continue:!c.abort})}});var fo=u("$ZodNumber",(o,c)=>{y.init(o,c),o._zod.pattern=o._zod.bag.pattern??Ye,o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=Number(n.value)}catch(E){}let S=n.value;if(typeof S==="number"&&!Number.isNaN(S)&&Number.isFinite(S))return n;let _=typeof S==="number"?Number.isNaN(S)?"NaN":!Number.isFinite(S)?"Infinity":void 0:void 0;return n.issues.push({expected:"number",code:"invalid_type",input:S,inst:o,..._?{received:_}:{}}),n}}),Cv=u("$ZodNumberFormat",(o,c)=>{sr.init(o,c),fo.init(o,c)}),jv=u("$ZodBoolean",(o,c)=>{y.init(o,c),o._zod.pattern=fr,o._zod.parse=(n,I)=>{if(c.coerce)try{n.value=Boolean(n.value)}catch(_){}let S=n.value;if(typeof S==="boolean")return n;return n.issues.push({expected:"boolean",code:"invalid_type",input:S,inst:o}),n}});var pv=u("$ZodNull",(o,c)=>{y.init(o,c),o._zod.pattern=lr,o._zod.values=new Set([null]),o._zod.parse=(n,I)=>{let S=n.value;if(S===null)return n;return n.issues.push({expected:"null",code:"invalid_type",input:S,inst:o}),n}});var fv=u("$ZodUnknown",(o,c)=>{y.init(o,c),o._zod.parse=(n)=>n}),lv=u("$ZodNever",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{return n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:o}),n}});function Ev(o,c,n){if(o.issues.length)c.issues.push(...d(n,o.issues));c.value[n]=o.value}var hv=u("$ZodArray",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value;if(!Array.isArray(S))return n.issues.push({expected:"array",code:"invalid_type",input:S,inst:o}),n;n.value=Array(S.length);let _=[];for(let E=0;E<S.length;E++){let q=S[E],G=c.element._zod.run({value:q,issues:[]},I);if(G instanceof Promise)_.push(G.then((t)=>Ev(t,n,E)));else Ev(G,n,E)}if(_.length)return Promise.all(_).then(()=>n);return n}});function ye(o,c,n,I,S){if(o.issues.length){if(S&&!(n in I))return;c.issues.push(...d(n,o.issues))}if(o.value===void 0){if(n in I)c.value[n]=void 0}else c.value[n]=o.value}function iv(o){let c=Object.keys(o.shape);for(let I of c)if(!o.shape?.[I]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${I}": expected a Zod schema`);let n=Mo(o.shape);return{...o,keys:c,keySet:new Set(c),numKeys:c.length,optionalKeys:new Set(n)}}function dv(o,c,n,I,S,_){let E=[],q=S.keySet,G=S.catchall._zod,t=G.def.type,B=G.optout==="optional";for(let R in c){if(q.has(R))continue;if(t==="never"){E.push(R);continue}let H=G.run({value:c[R],issues:[]},I);if(H instanceof Promise)o.push(H.then((W)=>ye(W,n,R,c,B)));else ye(H,n,R,c,B)}if(E.length)n.issues.push({code:"unrecognized_keys",keys:E,input:c,inst:_});if(!o.length)return n;return Promise.all(o).then(()=>{return n})}var zne=u("$ZodObject",(o,c)=>{if(y.init(o,c),!Object.getOwnPropertyDescriptor(c,"shape")?.get){let q=c.shape;Object.defineProperty(c,"shape",{get:()=>{let G={...q};return Object.defineProperty(c,"shape",{value:G}),G}})}let I=Oe(()=>iv(c));Y(o._zod,"propValues",()=>{let q=c.shape,G={};for(let t in q){let B=q[t]._zod;if(B.values){G[t]??(G[t]=new Set);for(let R of B.values)G[t].add(R)}}return G});let S=ne,_=c.catchall,E;o._zod.parse=(q,G)=>{E??(E=I.value);let t=q.value;if(!S(t))return q.issues.push({expected:"object",code:"invalid_type",input:t,inst:o}),q;q.value={};let B=[],R=E.shape;for(let H of E.keys){let W=R[H],k=W._zod.optout==="optional",M=W._zod.run({value:t[H],issues:[]},G);if(M instanceof Promise)B.push(M.then((Re)=>ye(Re,q,H,t,k)));else ye(M,q,H,t,k)}if(!_)return B.length?Promise.all(B).then(()=>q):q;return dv(B,t,q,G,I.value,o)}}),av=u("$ZodObjectJIT",(o,c)=>{zne.init(o,c);let n=o._zod.parse,I=Oe(()=>iv(c)),S=(H)=>{let W=new jo(["shape","payload","ctx"]),k=I.value,M=(f)=>{let m=He(f);return`shape[${m}]._zod.run({ value: input[${m}], issues: [] }, ctx)`};W.write("const input = payload.value;");let Re=Object.create(null),ice=0;for(let f of k.keys)Re[f]=`key_${ice++}`;W.write("const newResult = {};");for(let f of k.keys){let m=Re[f],C=He(f),ace=H[f]?._zod?.optout==="optional";if(W.write(`const ${m} = ${M(f)};`),ace)W.write(`
4
- if (${m}.issues.length) {
5
- if (${C} in input) {
6
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
7
- ...iss,
8
- path: iss.path ? [${C}, ...iss.path] : [${C}]
9
- })));
10
- }
11
- }
12
-
13
- if (${m}.value === undefined) {
14
- if (${C} in input) {
15
- newResult[${C}] = undefined;
16
- }
17
- } else {
18
- newResult[${C}] = ${m}.value;
19
- }
20
-
21
- `);else W.write(`
22
- if (${m}.issues.length) {
23
- payload.issues = payload.issues.concat(${m}.issues.map(iss => ({
24
- ...iss,
25
- path: iss.path ? [${C}, ...iss.path] : [${C}]
26
- })));
27
- }
28
-
29
- if (${m}.value === undefined) {
30
- if (${C} in input) {
31
- newResult[${C}] = undefined;
32
- }
33
- } else {
34
- newResult[${C}] = ${m}.value;
35
- }
36
-
37
- `)}W.write("payload.value = newResult;"),W.write("return payload;");let dce=W.compile();return(f,m)=>dce(H,f,m)},_,E=ne,q=!Le.jitless,t=q&&Fo.value,B=c.catchall,R;o._zod.parse=(H,W)=>{R??(R=I.value);let k=H.value;if(!E(k))return H.issues.push({expected:"object",code:"invalid_type",input:k,inst:o}),H;if(q&&t&&W?.async===!1&&W.jitless!==!0){if(!_)_=S(c.shape);if(H=_(H,W),!B)return H;return dv([],k,H,W,R,o)}return n(H,W)}});function Dv(o,c,n,I){for(let _ of o)if(_.issues.length===0)return c.value=_.value,c;let S=o.filter((_)=>!ee(_));if(S.length===1)return c.value=S[0].value,S[0];return c.issues.push({code:"invalid_union",input:c.value,inst:n,errors:o.map((_)=>_.issues.map((E)=>p(E,I,l())))}),c}var sv=u("$ZodUnion",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.options.some((S)=>S._zod.optin==="optional")?"optional":void 0),Y(o._zod,"optout",()=>c.options.some((S)=>S._zod.optout==="optional")?"optional":void 0),Y(o._zod,"values",()=>{if(c.options.every((S)=>S._zod.values))return new Set(c.options.flatMap((S)=>Array.from(S._zod.values)));return}),Y(o._zod,"pattern",()=>{if(c.options.every((S)=>S._zod.pattern)){let S=c.options.map((_)=>_._zod.pattern);return new RegExp(`^(${S.map((_)=>Te(_.source)).join("|")})$`)}return});let n=c.options.length===1,I=c.options[0]._zod.run;o._zod.parse=(S,_)=>{if(n)return I(S,_);let E=!1,q=[];for(let G of c.options){let t=G._zod.run({value:S.value,issues:[]},_);if(t instanceof Promise)q.push(t),E=!0;else{if(t.issues.length===0)return t;q.push(t)}}if(!E)return Dv(q,S,o,_);return Promise.all(q).then((G)=>{return Dv(G,S,o,_)})}});var en=u("$ZodIntersection",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value,_=c.left._zod.run({value:S,issues:[]},I),E=c.right._zod.run({value:S,issues:[]},I);if(_ instanceof Promise||E instanceof Promise)return Promise.all([_,E]).then(([G,t])=>{return Ov(n,G,t)});return Ov(n,_,E)}});function po(o,c){if(o===c)return{valid:!0,data:o};if(o instanceof Date&&c instanceof Date&&+o===+c)return{valid:!0,data:o};if(s(o)&&s(c)){let n=Object.keys(c),I=Object.keys(o).filter((_)=>n.indexOf(_)!==-1),S={...o,...c};for(let _ of I){let E=po(o[_],c[_]);if(!E.valid)return{valid:!1,mergeErrorPath:[_,...E.mergeErrorPath]};S[_]=E.data}return{valid:!0,data:S}}if(Array.isArray(o)&&Array.isArray(c)){if(o.length!==c.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let I=0;I<o.length;I++){let S=o[I],_=c[I],E=po(S,_);if(!E.valid)return{valid:!1,mergeErrorPath:[I,...E.mergeErrorPath]};n.push(E.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ov(o,c,n){let I=new Map,S;for(let q of c.issues)if(q.code==="unrecognized_keys"){S??(S=q);for(let G of q.keys){if(!I.has(G))I.set(G,{});I.get(G).l=!0}}else o.issues.push(q);for(let q of n.issues)if(q.code==="unrecognized_keys")for(let G of q.keys){if(!I.has(G))I.set(G,{});I.get(G).r=!0}else o.issues.push(q);let _=[...I].filter(([,q])=>q.l&&q.r).map(([q])=>q);if(_.length&&S)o.issues.push({...S,keys:_});if(ee(o))return o;let E=po(c.value,n.value);if(!E.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(E.mergeErrorPath)}`);return o.value=E.data,o}var on=u("$ZodRecord",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{let S=n.value;if(!s(S))return n.issues.push({expected:"record",code:"invalid_type",input:S,inst:o}),n;let _=[],E=c.keyType._zod.values;if(E){n.value={};let q=new Set;for(let t of E)if(typeof t==="string"||typeof t==="number"||typeof t==="symbol"){q.add(typeof t==="number"?t.toString():t);let B=c.valueType._zod.run({value:S[t],issues:[]},I);if(B instanceof Promise)_.push(B.then((R)=>{if(R.issues.length)n.issues.push(...d(t,R.issues));n.value[t]=R.value}));else{if(B.issues.length)n.issues.push(...d(t,B.issues));n.value[t]=B.value}}let G;for(let t in S)if(!q.has(t))G=G??[],G.push(t);if(G&&G.length>0)n.issues.push({code:"unrecognized_keys",input:S,inst:o,keys:G})}else{n.value={};for(let q of Reflect.ownKeys(S)){if(q==="__proto__")continue;let G=c.keyType._zod.run({value:q,issues:[]},I);if(G instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(typeof q==="string"&&Ye.test(q)&&G.issues.length){let R=c.keyType._zod.run({value:Number(q),issues:[]},I);if(R instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(R.issues.length===0)G=R}if(G.issues.length){if(c.mode==="loose")n.value[q]=S[q];else n.issues.push({code:"invalid_key",origin:"record",issues:G.issues.map((R)=>p(R,I,l())),input:q,path:[q],inst:o});continue}let B=c.valueType._zod.run({value:S[q],issues:[]},I);if(B instanceof Promise)_.push(B.then((R)=>{if(R.issues.length)n.issues.push(...d(q,R.issues));n.value[G.value]=R.value}));else{if(B.issues.length)n.issues.push(...d(q,B.issues));n.value[G.value]=B.value}}}if(_.length)return Promise.all(_).then(()=>n);return n}});var cn=u("$ZodEnum",(o,c)=>{y.init(o,c);let n=De(c.entries),I=new Set(n);o._zod.values=I,o._zod.pattern=new RegExp(`^(${n.filter((S)=>$o.has(typeof S)).map((S)=>typeof S==="string"?re(S):S.toString()).join("|")})$`),o._zod.parse=(S,_)=>{let E=S.value;if(I.has(E))return S;return S.issues.push({code:"invalid_value",values:n,input:E,inst:o}),S}});var rn=u("$ZodTransform",(o,c)=>{y.init(o,c),o._zod.parse=(n,I)=>{if(I.direction==="backward")throw new _e(o.constructor.name);let S=c.transform(n.value,n);if(I.async)return(S instanceof Promise?S:Promise.resolve(S)).then((E)=>{return n.value=E,n});if(S instanceof Promise)throw new h;return n.value=S,n}});function bv(o,c){if(o.issues.length&&c===void 0)return{issues:[],value:void 0};return o}var lo=u("$ZodOptional",(o,c)=>{y.init(o,c),o._zod.optin="optional",o._zod.optout="optional",Y(o._zod,"values",()=>{return c.innerType._zod.values?new Set([...c.innerType._zod.values,void 0]):void 0}),Y(o._zod,"pattern",()=>{let n=c.innerType._zod.pattern;return n?new RegExp(`^(${Te(n.source)})?$`):void 0}),o._zod.parse=(n,I)=>{if(c.innerType._zod.optin==="optional"){let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>bv(_,n.value));return bv(S,n.value)}if(n.value===void 0)return n;return c.innerType._zod.run(n,I)}}),vn=u("$ZodExactOptional",(o,c)=>{lo.init(o,c),Y(o._zod,"values",()=>c.innerType._zod.values),Y(o._zod,"pattern",()=>c.innerType._zod.pattern),o._zod.parse=(n,I)=>{return c.innerType._zod.run(n,I)}}),nn=u("$ZodNullable",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.innerType._zod.optin),Y(o._zod,"optout",()=>c.innerType._zod.optout),Y(o._zod,"pattern",()=>{let n=c.innerType._zod.pattern;return n?new RegExp(`^(${Te(n.source)}|null)$`):void 0}),Y(o._zod,"values",()=>{return c.innerType._zod.values?new Set([...c.innerType._zod.values,null]):void 0}),o._zod.parse=(n,I)=>{if(n.value===null)return n;return c.innerType._zod.run(n,I)}}),An=u("$ZodDefault",(o,c)=>{y.init(o,c),o._zod.optin="optional",Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);if(n.value===void 0)return n.value=c.defaultValue,n;let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>Tv(_,c));return Tv(S,c)}});function Tv(o,c){if(o.value===void 0)o.value=c.defaultValue;return o}var In=u("$ZodPrefault",(o,c)=>{y.init(o,c),o._zod.optin="optional",Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);if(n.value===void 0)n.value=c.defaultValue;return c.innerType._zod.run(n,I)}}),Sn=u("$ZodNonOptional",(o,c)=>{y.init(o,c),Y(o._zod,"values",()=>{let n=c.innerType._zod.values;return n?new Set([...n].filter((I)=>I!==void 0)):void 0}),o._zod.parse=(n,I)=>{let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>qv(_,o));return qv(S,o)}});function qv(o,c){if(!o.issues.length&&o.value===void 0)o.issues.push({code:"invalid_type",expected:"nonoptional",input:o.value,inst:c});return o}var gn=u("$ZodCatch",(o,c)=>{y.init(o,c),Y(o._zod,"optin",()=>c.innerType._zod.optin),Y(o._zod,"optout",()=>c.innerType._zod.optout),Y(o._zod,"values",()=>c.innerType._zod.values),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>{if(n.value=_.value,_.issues.length)n.value=c.catchValue({...n,error:{issues:_.issues.map((E)=>p(E,I,l()))},input:n.value}),n.issues=[];return n});if(n.value=S.value,S.issues.length)n.value=c.catchValue({...n,error:{issues:S.issues.map((_)=>p(_,I,l()))},input:n.value}),n.issues=[];return n}});var Pn=u("$ZodPipe",(o,c)=>{y.init(o,c),Y(o._zod,"values",()=>c.in._zod.values),Y(o._zod,"optin",()=>c.in._zod.optin),Y(o._zod,"optout",()=>c.out._zod.optout),Y(o._zod,"propValues",()=>c.in._zod.propValues),o._zod.parse=(n,I)=>{if(I.direction==="backward"){let _=c.out._zod.run(n,I);if(_ instanceof Promise)return _.then((E)=>Ke(E,c.in,I));return Ke(_,c.in,I)}let S=c.in._zod.run(n,I);if(S instanceof Promise)return S.then((_)=>Ke(_,c.out,I));return Ke(S,c.out,I)}});function Ke(o,c,n){if(o.issues.length)return o.aborted=!0,o;return c._zod.run({value:o.value,issues:o.issues},n)}var _n=u("$ZodReadonly",(o,c)=>{y.init(o,c),Y(o._zod,"propValues",()=>c.innerType._zod.propValues),Y(o._zod,"values",()=>c.innerType._zod.values),Y(o._zod,"optin",()=>c.innerType?._zod?.optin),Y(o._zod,"optout",()=>c.innerType?._zod?.optout),o._zod.parse=(n,I)=>{if(I.direction==="backward")return c.innerType._zod.run(n,I);let S=c.innerType._zod.run(n,I);if(S instanceof Promise)return S.then(Nv);return Nv(S)}});function Nv(o){return o.value=Object.freeze(o.value),o}var En=u("$ZodCustom",(o,c)=>{z.init(o,c),y.init(o,c),o._zod.parse=(n,I)=>{return n},o._zod.check=(n)=>{let I=n.value,S=c.fn(I);if(S instanceof Promise)return S.then((_)=>Gv(_,n,I,o));Gv(S,n,I,o);return}});function Gv(o,c,n,I){if(!o){let S={code:"custom",input:n,inst:I,path:[...I._zod.def.path??[]],continue:!I._zod.def.abort};if(I._zod.def.params)S.params=I._zod.def.params;c.issues.push(Ie(S))}}var Dn,oJe=Symbol("ZodOutput"),cJe=Symbol("ZodInput");class On{constructor(){this._map=new WeakMap,this._idmap=new Map}add(o,...c){let n=c[0];if(this._map.set(o,n),n&&typeof n==="object"&&"id"in n)this._idmap.set(n.id,o);return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(o){let c=this._map.get(o);if(c&&typeof c==="object"&&"id"in c)this._idmap.delete(c.id);return this._map.delete(o),this}get(o){let c=o._zod.parent;if(c){let n={...this.get(c)??{}};delete n.id;let I={...n,...this._map.get(o)};return Object.keys(I).length?I:void 0}return this._map.get(o)}has(o){return this._map.has(o)}}function kne(){return new On}(Dn=globalThis).__zod_globalRegistry??(Dn.__zod_globalRegistry=kne());var ve=globalThis.__zod_globalRegistry;function bn(o,c){return new o({type:"string",...L(c)})}function Tn(o,c){return new o({type:"string",format:"email",check:"string_format",abort:!1,...L(c)})}function ho(o,c){return new o({type:"string",format:"guid",check:"string_format",abort:!1,...L(c)})}function qn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,...L(c)})}function Nn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(c)})}function Gn(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(c)})}function un(o,c){return new o({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(c)})}function Jn(o,c){return new o({type:"string",format:"url",check:"string_format",abort:!1,...L(c)})}function tn(o,c){return new o({type:"string",format:"emoji",check:"string_format",abort:!1,...L(c)})}function Bn(o,c){return new o({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(c)})}function Rn(o,c){return new o({type:"string",format:"cuid",check:"string_format",abort:!1,...L(c)})}function Ln(o,c){return new o({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(c)})}function Hn(o,c){return new o({type:"string",format:"ulid",check:"string_format",abort:!1,...L(c)})}function Wn(o,c){return new o({type:"string",format:"xid",check:"string_format",abort:!1,...L(c)})}function Qn(o,c){return new o({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(c)})}function wn(o,c){return new o({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(c)})}function Xn(o,c){return new o({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(c)})}function Yn(o,c){return new o({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(c)})}function xn(o,c){return new o({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(c)})}function Kn(o,c){return new o({type:"string",format:"base64",check:"string_format",abort:!1,...L(c)})}function yn(o,c){return new o({type:"string",format:"base64url",check:"string_format",abort:!1,...L(c)})}function Vn(o,c){return new o({type:"string",format:"e164",check:"string_format",abort:!1,...L(c)})}function Fn(o,c){return new o({type:"string",format:"jwt",check:"string_format",abort:!1,...L(c)})}function $n(o,c){return new o({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(c)})}function Mn(o,c){return new o({type:"string",format:"date",check:"string_format",...L(c)})}function zn(o,c){return new o({type:"string",format:"time",check:"string_format",precision:null,...L(c)})}function kn(o,c){return new o({type:"string",format:"duration",check:"string_format",...L(c)})}function Un(o,c){return new o({type:"number",checks:[],...L(c)})}function mn(o,c){return new o({type:"number",check:"number_format",abort:!1,format:"safeint",...L(c)})}function Zn(o,c){return new o({type:"boolean",...L(c)})}function Cn(o,c){return new o({type:"null",...L(c)})}function jn(o){return new o({type:"unknown"})}function pn(o,c){return new o({type:"never",...L(c)})}function Fe(o,c){return new Zo({check:"less_than",...L(c),value:o,inclusive:!1})}function Je(o,c){return new Zo({check:"less_than",...L(c),value:o,inclusive:!0})}function $e(o,c){return new Co({check:"greater_than",...L(c),value:o,inclusive:!1})}function te(o,c){return new Co({check:"greater_than",...L(c),value:o,inclusive:!0})}function Me(o,c){return new ar({check:"multiple_of",...L(c),value:o})}function ze(o,c){return new ev({check:"max_length",...L(c),maximum:o})}function Se(o,c){return new ov({check:"min_length",...L(c),minimum:o})}function ke(o,c){return new cv({check:"length_equals",...L(c),length:o})}function io(o,c){return new rv({check:"string_format",format:"regex",...L(c),pattern:o})}function ao(o){return new vv({check:"string_format",format:"lowercase",...L(o)})}function so(o){return new nv({check:"string_format",format:"uppercase",...L(o)})}function ec(o,c){return new Av({check:"string_format",format:"includes",...L(c),includes:o})}function oc(o,c){return new Iv({check:"string_format",format:"starts_with",...L(c),prefix:o})}function cc(o,c){return new Sv({check:"string_format",format:"ends_with",...L(c),suffix:o})}function oe(o){return new gv({check:"overwrite",tx:o})}function rc(o){return oe((c)=>c.normalize(o))}function vc(){return oe((o)=>o.trim())}function nc(){return oe((o)=>o.toLowerCase())}function Ac(){return oe((o)=>o.toUpperCase())}function Ic(){return oe((o)=>Vo(o))}function fn(o,c,n){return new o({type:"array",element:c,...L(n)})}function ln(o,c,n){return new o({type:"custom",check:"custom",fn:c,...L(n)})}function hn(o){let c=Une((n)=>{return n.addIssue=(I)=>{if(typeof I==="string")n.issues.push(Ie(I,n.value,c._zod.def));else{let S=I;if(S.fatal)S.continue=!1;S.code??(S.code="custom"),S.input??(S.input=n.value),S.inst??(S.inst=c),S.continue??(S.continue=!c._zod.def.abort),n.issues.push(Ie(S))}},o(n.value,n)});return c}function Une(o,c){let n=new z({check:"custom",...L(c)});return n._zod.check=o,n}function Sc(o){let c=o?.target??"draft-2020-12";if(c==="draft-4")c="draft-04";if(c==="draft-7")c="draft-07";return{processors:o.processors??{},metadataRegistry:o?.metadata??ve,target:c,unrepresentable:o?.unrepresentable??"throw",override:o?.override??(()=>{}),io:o?.io??"output",counter:0,seen:new Map,cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0}}function $(o,c,n={path:[],schemaPath:[]}){var I;let S=o._zod.def,_=c.seen.get(o);if(_){if(_.count++,n.schemaPath.includes(o))_.cycle=n.path;return _.schema}let E={schema:{},count:1,cycle:void 0,path:n.path};c.seen.set(o,E);let q=o._zod.toJSONSchema?.();if(q)E.schema=q;else{let B={...n,schemaPath:[...n.schemaPath,o],path:n.path};if(o._zod.processJSONSchema)o._zod.processJSONSchema(c,E.schema,B);else{let H=E.schema,W=c.processors[S.type];if(!W)throw Error(`[toJSONSchema]: Non-representable type encountered: ${S.type}`);W(o,c,H,B)}let R=o._zod.parent;if(R){if(!E.ref)E.ref=R;$(R,c,B),c.seen.get(R).isParent=!0}}let G=c.metadataRegistry.get(o);if(G)Object.assign(E.schema,G);if(c.io==="input"&&U(o))delete E.schema.examples,delete E.schema.default;if(c.io==="input"&&E.schema._prefault)(I=E.schema).default??(I.default=E.schema._prefault);return delete E.schema._prefault,c.seen.get(o).schema}function gc(o,c){let n=o.seen.get(c);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let I=new Map;for(let E of o.seen.entries()){let q=o.metadataRegistry.get(E[0])?.id;if(q){let G=I.get(q);if(G&&G!==E[0])throw Error(`Duplicate schema id "${q}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);I.set(q,E[0])}}let S=(E)=>{let q=o.target==="draft-2020-12"?"$defs":"definitions";if(o.external){let R=o.external.registry.get(E[0])?.id,H=o.external.uri??((k)=>k);if(R)return{ref:H(R)};let W=E[1].defId??E[1].schema.id??`schema${o.counter++}`;return E[1].defId=W,{defId:W,ref:`${H("__shared")}#/${q}/${W}`}}if(E[1]===n)return{ref:"#"};let t=`${"#"}/${q}/`,B=E[1].schema.id??`__schema${o.counter++}`;return{defId:B,ref:t+B}},_=(E)=>{if(E[1].schema.$ref)return;let q=E[1],{ref:G,defId:t}=S(E);if(q.def={...q.schema},t)q.defId=t;let B=q.schema;for(let R in B)delete B[R];B.$ref=G};if(o.cycles==="throw")for(let E of o.seen.entries()){let q=E[1];if(q.cycle)throw Error(`Cycle detected: #/${q.cycle?.join("/")}/<root>
1
+ var Fi=Object.create;var{getPrototypeOf:Ji,defineProperty:f,getOwnPropertyNames:S,getOwnPropertyDescriptor:Mi}=Object,x=Object.prototype.hasOwnProperty;function P(e){return this[e]}var Li,Hi,_=(e,t,n)=>{var r=e!=null&&typeof e==="object";if(r){var i=t?Li??=new WeakMap:Hi??=new WeakMap,s=i.get(e);if(s)return s}n=e!=null?Fi(Ji(e)):{};let l=t||!e||!e.__esModule?f(n,"default",{value:e,enumerable:!0}):n;for(let p of S(e))if(!x.call(l,p))f(l,p,{get:P.bind(e,p),enumerable:!0});if(r)i.set(e,l);return l},Yi=(e)=>{var t=(b??=new WeakMap).get(e),n;if(t)return t;if(t=f({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var r of S(e))if(!x.call(t,r))f(t,r,{get:P.bind(e,r),enumerable:!(n=Mi(e,r))||n.enumerable})}return b.set(e,t),t},b;var Qi=(e)=>e;function Ki(e,t){this[e]=Qi.bind(null,t)}var Wi=(e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0,configurable:!0,set:Ki.bind(t,n)})};var iy={};Wi(iy,{zod:()=>ry,whiteLabels:()=>wi,whiteLabelSubscriptions:()=>ki,webhooks:()=>Ti,vies:()=>gi,users:()=>vi,upload:()=>pi,transactionType:()=>ci,taxes:()=>ri,taxReports:()=>Xa,suppliers:()=>Ka,stripeApp:()=>Ma,setAccountId:()=>y.setAccountId,recurringInvoices:()=>Pa,ptSafT:()=>da,ptAtcudSeries:()=>la,payments:()=>aa,orders:()=>Vo,orderIntegrations:()=>Lo,locale:()=>wo,legacyMigration:()=>ko,items:()=>ho,invoices:()=>bo,initSDK:()=>zn,incomingPurchaseDocuments:()=>$n,health:()=>Yn,getClientHeaders:()=>v.getClientHeaders,getAccountId:()=>y.getAccountId,fursSettings:()=>Jn,fursPremises:()=>Gn,fursInternalAct:()=>On,fursDevices:()=>Dn,fursCertificate:()=>_n,finaSettings:()=>bn,finaPremises:()=>yn,finaDevices:()=>dn,finaCertificate:()=>rn,files:()=>tn,exports:()=>Vt,estimates:()=>Ht,entityUsers:()=>Ot,entityStats:()=>At,entityInvitations:()=>Pt,entityApiKeys:()=>yt,entities:()=>ut,email:()=>it,eSlog:()=>Bi.eSlog,eInvoicing:()=>ot,downloadBlob:()=>Ci.downloadBlob,documents:()=>We,deliveryNotes:()=>Ce,default:()=>g.default,customers:()=>xe,creditNotes:()=>me,companyRegistry:()=>z,advanceInvoices:()=>V,activities:()=>q,accountWebhooks:()=>B,WebhookWithSecretEventsItem:()=>Up,WebhookResponseEventsItem:()=>Wp,WebhookDeliveryStatus:()=>Kp,UploadFileBodyCategory:()=>Qp,UpdateWebhookBodyEventsItem:()=>Yp,UpdateSloveniaTaxProfileBodyYearlyReportingNormiranecInsuranceBasis:()=>Hp,UpdateSloveniaTaxProfileBodyYearlyReportingAccountingType:()=>Lp,UpdateSloveniaTaxProfileBodyVatProfile:()=>Mp,UpdateSloveniaTaxProfileBodyTaxResidency:()=>Jp,UpdateSloveniaTaxProfileBodyIncomeTaxRegime:()=>Fp,UpdateSloveniaTaxProfileBodyBusinessForm:()=>qp,UpdateSloveniaTaxProfileBodyAccountingExportsPreferredFormat:()=>Gp,UpdateSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis:()=>Bp,UpdateSloveniaTaxProfile200YearlyReportingAccountingType:()=>Cp,UpdateSloveniaTaxProfile200VatProfile:()=>wp,UpdateSloveniaTaxProfile200TaxResidency:()=>Np,UpdateSloveniaTaxProfile200InferredBusinessForm:()=>kp,UpdateSloveniaTaxProfile200IncomeTaxRegime:()=>Op,UpdateSloveniaTaxProfile200BusinessFormSource:()=>Rp,UpdateSloveniaTaxProfile200BusinessForm:()=>Ep,UpdateSloveniaTaxProfile200AccountingExportsPreferredFormat:()=>Dp,UpdateRecurringInvoiceBodyFrequency:()=>hp,UpdatePaymentBodyType:()=>Tp,UpdateOrderIntegrationBodyAutoProcessOn:()=>Ap,UpdateOrderBodyPaymentStatus:()=>_p,UpdateItemBodyClassification:()=>Pp,UpdateIncomingPurchaseDocumentBodyType:()=>xp,UpdateIncomingPurchaseDocumentBodyTransactionType:()=>Sp,UpdateFursSettingsBodyNumberingStrategy:()=>bp,UpdateFursSettings200NumberingStrategy:()=>Ip,UpdateFursSettings200CertificateStatus:()=>gp,UpdateFinaSettingsBodyNumberingSequence:()=>yp,UpdateFinaSettings200NumberingSequence:()=>vp,UpdateFinaSettings200CertificateStatus:()=>fp,UpdateEstimateTitleType:()=>mp,UpdateEntityUserRoleBodyRole:()=>up,UpdateAccountWebhookBodyEventsItem:()=>dp,TransactionTypeCheckResponseTransactionType:()=>pp,StripeAppUpdateSettingsBodyAutoInvoiceEventsItem:()=>lp,StripeAppEntityUpdateSettingsBodyAutoInvoiceEventsItem:()=>cp,StatsQueryRequestTable:()=>sp,StatsQueryRequestOrderByItemDirection:()=>rp,StatsQueryRequestMetricsItemType:()=>ip,StartPdfExport202Status:()=>ap,StartEslogExport202Status:()=>op,SpaceInvoices:()=>g.SpaceInvoices,SendEmailBodyLocale:()=>np,SendEmailBodyLanguage:()=>tp,SendEmail200Status:()=>ep,SendDocument200Status:()=>zl,ReviewSloveniaYearlyNormiraniReport200WarningsItemSeverity:()=>Xl,ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingNormiranecInsuranceBasis:()=>$l,ReviewSloveniaYearlyNormiraniReport200ProfileYearlyReportingAccountingType:()=>Vl,ReviewSloveniaYearlyNormiraniReport200ProfileVatProfile:()=>jl,ReviewSloveniaYearlyNormiraniReport200ProfileTaxResidency:()=>Zl,ReviewSloveniaYearlyNormiraniReport200ProfileInferredBusinessForm:()=>Ul,ReviewSloveniaYearlyNormiraniReport200ProfileIncomeTaxRegime:()=>Wl,ReviewSloveniaYearlyNormiraniReport200ProfileBusinessFormSource:()=>Kl,ReviewSloveniaYearlyNormiraniReport200ProfileBusinessForm:()=>Ql,ReviewSloveniaYearlyNormiraniReport200ProfileAccountingExportsPreferredFormat:()=>Yl,ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemSeverity:()=>Hl,ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemOfficialSourcesItemIssuer:()=>Ll,ReviewSloveniaYearlyNormiraniReport200IssueDetailsItemAffectedDocumentsItemType:()=>Ml,ReviewSloveniaYearlyNormiraniReport200FilingKind:()=>Jl,RestoreDocumentType:()=>Fl,RenderInvoicePreviewUpnQrEnabled:()=>ql,RenderInvoicePreviewUpnQrDisplayMode:()=>Gl,RenderInvoicePreviewTemplate:()=>Bl,RenderInvoicePreviewPartial:()=>Cl,RenderInvoicePreviewEpcQrEnabled:()=>wl,RenderEstimatePreviewUpnQrEnabled:()=>Nl,RenderEstimatePreviewUpnQrDisplayMode:()=>kl,RenderEstimatePreviewTemplate:()=>Ol,RenderEstimatePreviewPartial:()=>Rl,RenderEstimatePreviewEpcQrEnabled:()=>El,RenderDocumentPdfTemplate:()=>Dl,RenderDocumentHtmlTemplate:()=>hl,RenderDeliveryNotePreviewUpnQrEnabled:()=>Tl,RenderDeliveryNotePreviewUpnQrDisplayMode:()=>Al,RenderDeliveryNotePreviewTemplate:()=>_l,RenderDeliveryNotePreviewPartial:()=>Pl,RenderDeliveryNotePreviewEpcQrEnabled:()=>xl,RenderCreditNotePreviewUpnQrEnabled:()=>Sl,RenderCreditNotePreviewUpnQrDisplayMode:()=>bl,RenderCreditNotePreviewTemplate:()=>Il,RenderCreditNotePreviewPartial:()=>gl,RenderCreditNotePreviewEpcQrEnabled:()=>yl,RenderAdvanceInvoicePreviewUpnQrEnabled:()=>vl,RenderAdvanceInvoicePreviewUpnQrDisplayMode:()=>fl,RenderAdvanceInvoicePreviewTemplate:()=>ml,RenderAdvanceInvoicePreviewPartial:()=>ul,RenderAdvanceInvoicePreviewEpcQrEnabled:()=>dl,RegisterFursMovablePremiseBodyMovablePremisePremiseType:()=>pl,RecurringInvoiceBaseStatus:()=>ll,RecurringInvoiceBaseFrequency:()=>cl,PtAtcudSeriesDocumentType:()=>sl,PermanentDeleteDocumentType:()=>rl,PdfExportByDocumentIdsLocale:()=>il,PdfExportByDocumentIdsLanguage:()=>al,PdfExportByDateRangeTypesItem:()=>ol,PdfExportByDateRangeLocale:()=>nl,PdfExportByDateRangeLanguage:()=>tl,PaymentType:()=>el,PatchMeBodyLocale:()=>zc,PatchEntityBodySettingsPdfTemplate:()=>Xc,PartialInvoicePreviewItemsItemType:()=>$c,PartialInvoicePreviewItemsItemDiscountsItemType:()=>Vc,PartialInvoicePreviewCalculationMode:()=>jc,PartialEstimatePreviewTitleType:()=>Zc,PartialEstimatePreviewItemsItemType:()=>Uc,PartialEstimatePreviewItemsItemDiscountsItemType:()=>Wc,PartialEstimatePreviewCalculationMode:()=>Kc,PartialDeliveryNotePreviewItemsItemType:()=>Qc,PartialDeliveryNotePreviewItemsItemDiscountsItemType:()=>Yc,PartialDeliveryNotePreviewCalculationMode:()=>Hc,PartialCreditNotePreviewItemsItemType:()=>Lc,PartialCreditNotePreviewItemsItemDiscountsItemType:()=>Mc,PartialCreditNotePreviewCalculationMode:()=>Jc,PartialAdvanceInvoicePreviewItemsItemType:()=>Fc,PartialAdvanceInvoicePreviewItemsItemDiscountsItemType:()=>qc,PartialAdvanceInvoicePreviewCalculationMode:()=>Gc,OrderItemKind:()=>Bc,OrderIntegrationBaseSource:()=>Cc,OrderIntegrationBaseAutoProcessOn:()=>wc,OrderBaseStatus:()=>Nc,OrderBaseSource:()=>kc,OrderBasePaymentStatus:()=>Oc,MigrationJobResponseStatus:()=>Rc,ListPtAtcudSeriesDocumentType:()=>Ec,LineDiscountType:()=>Dc,LegacyAuthResponseOrganizationsItemUnsupportedItemCode:()=>hc,ItemClassification:()=>Tc,InvoiceTransactionType:()=>Ac,InvoiceItemType:()=>_c,InvoiceItemClassification:()=>Pc,InvoiceCalculationMode:()=>xc,IncomingPurchaseDocumentType:()=>Sc,IncomingPurchaseDocumentSummaryClassification:()=>bc,IncomingPurchaseDocumentItemClassification:()=>Ic,GetSloveniaTaxProfile200YearlyReportingNormiranecInsuranceBasis:()=>gc,GetSloveniaTaxProfile200YearlyReportingAccountingType:()=>yc,GetSloveniaTaxProfile200VatProfile:()=>vc,GetSloveniaTaxProfile200TaxResidency:()=>fc,GetSloveniaTaxProfile200InferredBusinessForm:()=>mc,GetSloveniaTaxProfile200IncomeTaxRegime:()=>uc,GetSloveniaTaxProfile200BusinessFormSource:()=>dc,GetSloveniaTaxProfile200BusinessForm:()=>pc,GetSloveniaTaxProfile200AccountingExportsPreferredFormat:()=>lc,GetShareableInvoicePdfLocale:()=>cc,GetShareableInvoicePdfLanguage:()=>sc,GetShareableInvoiceHtmlLocale:()=>rc,GetShareableInvoiceHtmlLanguage:()=>ic,GetShareableEstimatePdfLocale:()=>ac,GetShareableEstimatePdfLanguage:()=>oc,GetShareableEstimateHtmlLocale:()=>nc,GetShareableEstimateHtmlLanguage:()=>tc,GetShareableDeliveryNotePdfLocale:()=>ec,GetShareableDeliveryNotePdfLanguage:()=>zs,GetShareableDeliveryNoteHtmlLocale:()=>Xs,GetShareableDeliveryNoteHtmlLanguage:()=>$s,GetShareableCreditNotePdfLocale:()=>Vs,GetShareableCreditNotePdfLanguage:()=>js,GetShareableCreditNoteHtmlLocale:()=>Zs,GetShareableCreditNoteHtmlLanguage:()=>Us,GetShareableAdvanceInvoicePdfLocale:()=>Ws,GetShareableAdvanceInvoicePdfLanguage:()=>Ks,GetShareableAdvanceInvoiceHtmlLocale:()=>Qs,GetShareableAdvanceInvoiceHtmlLanguage:()=>Ys,GetPdfExportStatus200Status:()=>Hs,GetNextDocumentNumberType:()=>Ls,GetIncomingPurchaseDocumentsIsDraft:()=>Ms,GetFursSettings200NumberingStrategy:()=>Js,GetFursSettings200CertificateStatus:()=>Fs,GetFinaSettings200NumberingSequence:()=>qs,GetFinaSettings200CertificateStatus:()=>Gs,GetFilesCategory:()=>Bs,GetEslogExportStatus200Status:()=>Cs,GetEntitiesEnvironment:()=>ws,GetActivities200DataItemActorType:()=>Ns,GetActivePtAtcudSeriesDocumentType:()=>ks,FursPremiseSuccessResponseEnvironment:()=>Os,FiscalizeDocumentType:()=>Rs,FinalizeDocumentType:()=>Es,ExportSalesPerItemLanguage:()=>Ds,ExportSalesPerItemFormat:()=>hs,ExportDocumentsType:()=>Ts,ExportDocumentsLanguage:()=>As,ExportDocumentsFormat:()=>_s,EstimateTransactionType:()=>Ps,EstimateTitleType:()=>xs,EstimateItemType:()=>Ss,EstimateItemClassification:()=>bs,EstimateCalculationMode:()=>Is,EslogExportByDateRangeTypesItem:()=>gs,EntityUserRole:()=>ys,EntitySettingsPdfTemplate:()=>vs,EntityInvitationStatus:()=>fs,EntityInvitationRole:()=>ms,EntityEnvironment:()=>us,EntityBankAccountType:()=>ds,EntityApiKeyEnvironment:()=>ps,DocumentVersionDocumentType:()=>ls,DocumentRelationTargetType:()=>cs,DocumentRelationSourceType:()=>ss,DocumentRelationRelatedDocumentType:()=>rs,DocumentRelationRelatedDocumentTitleType:()=>is,DocumentCalculationTransactionType:()=>as,DocumentCalculationCalculationMode:()=>os,DeliveryNoteTransactionType:()=>ns,DeliveryNoteItemType:()=>ts,DeliveryNoteItemClassification:()=>es,DeliveryNoteCalculationMode:()=>zr,DeleteDocumentType:()=>Xr,DEFAULT_BASE_URL:()=>Gi.DEFAULT_BASE_URL,CustomDocumentItemType:()=>$r,CustomDocumentItemClassification:()=>Vr,CustomCreateInvoiceCalculationMode:()=>jr,CustomCreateIncomingPurchaseDocumentType:()=>Zr,CustomCreateIncomingPurchaseDocumentTransactionType:()=>Ur,CustomCreateEstimateTitleType:()=>Wr,CustomCreateEstimateCalculationMode:()=>Kr,CustomCreateDeliveryNoteCalculationMode:()=>Qr,CustomCreateCreditNoteCalculationMode:()=>Yr,CustomCreateAdvanceInvoiceCalculationMode:()=>Hr,CurrentSubscriptionPaymentProvider:()=>Lr,CreditNoteTransactionType:()=>Mr,CreditNoteItemType:()=>Jr,CreditNoteItemClassification:()=>Fr,CreditNoteCalculationMode:()=>qr,CreationSource:()=>Gr,CreateWebhookBodyEventsItem:()=>Br,CreateRecurringInvoiceBodyFrequency:()=>Cr,CreatePtAtcudSeriesBodyDocumentType:()=>wr,CreatePaymentBodyType:()=>Nr,CreateOrderIntegrationBodySource:()=>kr,CreateOrderBodySource:()=>Or,CreateOrderBodyPaymentStatus:()=>Rr,CreateMigrationJobResponseStatus:()=>Er,CreateMigrationJobRequestEnvironment:()=>Dr,CreateItemBodyClassification:()=>hr,CreateInvoiceCalculationMode:()=>Tr,CreateIncomingPurchaseDocumentPaymentBodyType:()=>Ar,CreateIncomingPurchaseDocumentBodyType:()=>_r,CreateIncomingPurchaseDocumentBodyTransactionType:()=>Pr,CreateEstimateTitleType:()=>xr,CreateEstimateCalculationMode:()=>Sr,CreateEntityBodySettingsPdfTemplate:()=>br,CreateEntityBodyEnvironment:()=>Ir,CreateDocumentPaymentType:()=>gr,CreateDocumentItemType:()=>yr,CreateDocumentItemClassification:()=>vr,CreateDeliveryNoteCalculationMode:()=>fr,CreateCreditNoteCalculationMode:()=>mr,CreateCheckoutRequestBillingInterval:()=>ur,CreateAdvanceInvoiceCalculationMode:()=>dr,CreateAccountWebhookBodyEventsItem:()=>pr,Configuration:()=>A,CompleteInvoicePreviewCalculationMode:()=>lr,CompleteEstimatePreviewTitleType:()=>cr,CompleteEstimatePreviewCalculationMode:()=>sr,CompleteDeliveryNotePreviewCalculationMode:()=>rr,CompleteCreditNotePreviewCalculationMode:()=>ir,CompleteAdvanceInvoicePreviewCalculationMode:()=>ar,CalculatedItemType:()=>tr,CalculateDocumentPreviewType:()=>or,CalculateDocumentPreviewCalculationMode:()=>nr,CLIENT_HEADER_NAME:()=>v.CLIENT_HEADER_NAME,AdvanceInvoiceTransactionType:()=>er,AdvanceInvoiceItemType:()=>zi,AdvanceInvoiceItemClassification:()=>Xi,AdvanceInvoiceCalculationMode:()=>$i,AddEntityUserBodyRole:()=>Vi,AccountWebhookWithSecretEventsItem:()=>ji,AccountWebhookResponseEventsItem:()=>Zi,AccountWebhookDeliveryStatus:()=>Ui});module.exports=Yi(iy);class A{basePath;accessToken;constructor(e){this.basePath=e?.basePath,this.accessToken=e?.accessToken}}var Ui={pending:"pending",success:"success",failed:"failed"};var Zi={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var ji={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var Vi={viewer:"viewer",editor:"editor",admin:"admin"};var $i={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Xi={product:"product",service:"service",advance:"advance"};var zi={separator:"separator"};var er={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var tr={separator:"separator"};var nr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var or={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ar={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var ir={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var rr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var sr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var cr={estimate:"estimate",proforma_invoice:"proforma_invoice"};var lr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var pr={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var dr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var ur={monthly:"monthly",yearly:"yearly"};var mr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var fr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var vr={product:"product",service:"service",advance:"advance"};var yr={separator:"separator"};var gr={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Ir={live:"live",sandbox:"sandbox"};var br={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var Sr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var xr={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Pr={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var _r={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Ar={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var Tr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var hr={product:"product",service:"service",advance:"advance"};var Dr={live:"live",sandbox:"sandbox"};var Er={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var Rr={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var Or={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var kr={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Nr={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var wr={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var Cr={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Br={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var Gr={standard:"standard",custom:"custom"};var qr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Fr={product:"product",service:"service",advance:"advance"};var Jr={separator:"separator"};var Mr={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Lr={stripe:"stripe",paypal:"paypal",bank:"bank",braintree:"braintree"};var Hr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Yr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Qr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Kr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Wr={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Ur={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Zr={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var jr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Vr={product:"product",service:"service",advance:"advance"};var $r={separator:"separator"};var Xr={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var zr={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var es={product:"product",service:"service",advance:"advance"};var ts={separator:"separator"};var ns={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var os={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var as={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var is={estimate:"estimate",proforma_invoice:"proforma_invoice"};var rs={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ss={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var cs={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var ls={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice"};var ps={live:"live",sandbox:"sandbox"};var ds={iban:"iban",us_domestic:"us_domestic",uk_domestic:"uk_domestic",other:"other"};var us={live:"live",sandbox:"sandbox"};var ms={viewer:"viewer",editor:"editor",admin:"admin"};var fs={pending:"pending",accepted:"accepted",expired:"expired"};var vs={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var ys={viewer:"viewer",editor:"editor",admin:"admin"};var gs={invoice:"invoice",estimate:"estimate",credit_note:"credit_note"};var Is={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var bs={product:"product",service:"service",advance:"advance"};var Ss={separator:"separator"};var xs={estimate:"estimate",proforma_invoice:"proforma_invoice"};var Ps={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var _s={xlsx:"xlsx",csv:"csv"};var As={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var Ts={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var hs={xlsx:"xlsx",csv:"csv"};var Ds={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var Es={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Rs={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Os={test:"test",production:"production"};var ks={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var Ns={user:"user",api_key:"api_key",system:"system",cron:"cron",webhook:"webhook"};var ws={live:"live",sandbox:"sandbox"};var Cs={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var Bs={logo:"logo",signature:"signature",attachment:"attachment"};var Gs={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var qs={N:"N",P:"P"};var Fs={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var Js={B:"B",C:"C"};var Ms={true:"true",false:"false"};var Ls={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Hs={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var Ys={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Qs={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Ks={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Ws={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Us={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Zs={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var js={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Vs={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var $s={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var Xs={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var zs={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ec={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var tc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var nc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var oc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ac={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ic={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var rc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var sc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var cc={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var lc={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var pc={sp:"sp",doo:"doo",dno:"dno",club:"club"};var dc={stored:"stored",registry:"registry",unknown:"unknown"};var uc={normirani:"normirani",dejanski:"dejanski"};var mc={sp:"sp",doo:"doo",dno:"dno",club:"club"};var fc={resident:"resident",non_resident:"non_resident"};var vc={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var yc={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var gc={full_time_self_employed:"full_time_self_employed",other:"other"};var Ic={product:"product",service:"service"};var bc={goods:"goods",services:"services"};var Sc={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var xc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Pc={product:"product",service:"service",advance:"advance"};var _c={separator:"separator"};var Ac={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var Tc={product:"product",service:"service",advance:"advance"};var hc={fiscalization_series:"fiscalization_series",accounting_categories:"accounting_categories",inventory_and_pricing:"inventory_and_pricing",sales_integrations:"sales_integrations",webhooks:"webhooks"};var Dc={percent:"percent",amount:"amount"};var Ec={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var Rc={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var Oc={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var kc={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Nc={pending:"pending",processing:"processing",invoiced:"invoiced",cancelled:"cancelled",failed:"failed"};var wc={created:"created",paid:"paid",fulfilled:"fulfilled"};var Cc={shopify:"shopify",woocommerce:"woocommerce",manual:"manual"};var Bc={line_item:"line_item",shipping:"shipping"};var Gc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var qc={percent:"percent",amount:"amount"};var Fc={separator:"separator"};var Jc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Mc={percent:"percent",amount:"amount"};var Lc={separator:"separator"};var Hc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Yc={percent:"percent",amount:"amount"};var Qc={separator:"separator"};var Kc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Wc={percent:"percent",amount:"amount"};var Uc={separator:"separator"};var Zc={estimate:"estimate",proforma_invoice:"proforma_invoice"};var jc={b2b_standard:"b2b_standard",b2c_gross_discount:"b2c_gross_discount"};var Vc={percent:"percent",amount:"amount"};var $c={separator:"separator"};var Xc={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion",timeless_modern_full_data:"timeless_modern_full_data"};var zc={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var el={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var tl={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var nl={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var ol={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var al={en:"en",de:"de",sl:"sl",it:"it",fr:"fr",es:"es",pt:"pt",nl:"nl",pl:"pl",hr:"hr",sv:"sv",fi:"fi",et:"et",bg:"bg",cs:"cs",sk:"sk",nb:"nb",is:"is"};var il={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var rl={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var sl={invoice:"invoice",advance_invoice:"advance_invoice",credit_note:"credit_note",estimate:"estimate"};var cl={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var ll={active:"active",paused:"paused",completed:"completed"};var pl={A:"A",B:"B",C:"C"};var dl={true:"true",false:"false"};var ul={true:"true",false:"false"};var ml={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var fl={qr_only:"qr_only",full_slip:"full_slip"};var vl={true:"true",false:"false"};var yl={true:"true",false:"false"};var gl={true:"true",false:"false"};var Il={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var bl={qr_only:"qr_only",full_slip:"full_slip"};var Sl={true:"true",false:"false"};var xl={true:"true",false:"false"};var Pl={true:"true",false:"false"};var _l={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Al={qr_only:"qr_only",full_slip:"full_slip"};var Tl={true:"true",false:"false"};var hl={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Dl={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var El={true:"true",false:"false"};var Rl={true:"true",false:"false"};var Ol={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var kl={qr_only:"qr_only",full_slip:"full_slip"};var Nl={true:"true",false:"false"};var wl={true:"true",false:"false"};var Cl={true:"true",false:"false"};var Bl={modern:"modern",classic:"classic",condensed:"condensed",minimal:"minimal",fashion:"fashion"};var Gl={qr_only:"qr_only",full_slip:"full_slip"};var ql={true:"true",false:"false"};var Fl={invoice:"invoice",estimate:"estimate",credit_note:"credit_note",advance_invoice:"advance_invoice",delivery_note:"delivery_note"};var Jl={regular_annual:"regular_annual"};var Ml={invoice:"invoice",credit_note:"credit_note"};var Ll={FURS:"FURS",PISRS:"PISRS"};var Hl={info:"info",warning:"warning"};var Yl={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var Ql={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Kl={stored:"stored",registry:"registry",unknown:"unknown"};var Wl={normirani:"normirani",dejanski:"dejanski"};var Ul={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Zl={resident:"resident",non_resident:"non_resident"};var jl={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var Vl={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var $l={full_time_self_employed:"full_time_self_employed",other:"other"};var Xl={info:"info",warning:"warning"};var zl={sent:"sent",queued:"queued",skipped:"skipped"};var ep={sent:"sent",queued:"queued",skipped:"skipped"};var tp={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var np={"en-US":"en-US","de-DE":"de-DE","it-IT":"it-IT","fr-FR":"fr-FR","es-ES":"es-ES","sl-SI":"sl-SI","pt-PT":"pt-PT","nl-NL":"nl-NL","pl-PL":"pl-PL","hr-HR":"hr-HR","sv-SE":"sv-SE","fi-FI":"fi-FI","et-EE":"et-EE","bg-BG":"bg-BG","cs-CZ":"cs-CZ","sk-SK":"sk-SK","nb-NO":"nb-NO","is-IS":"is-IS"};var op={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var ap={pending:"pending",processing:"processing",completed:"completed",failed:"failed"};var ip={count:"count",sum:"sum",avg:"avg",min:"min",max:"max"};var rp={asc:"asc",desc:"desc"};var sp={invoices:"invoices",estimates:"estimates",credit_notes:"credit_notes",advance_invoices:"advance_invoices",payments:"payments",customers:"customers",items:"items",invoice_taxes:"invoice_taxes"};var cp={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var lp={payment_intentsucceeded:"payment_intent.succeeded",invoicepaid:"invoice.paid"};var pp={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c"};var dp={white_label_subscriptionsubscribed:"white_label_subscription.subscribed",white_label_subscriptionupgraded:"white_label_subscription.upgraded",white_label_subscriptiondowngrade_scheduled:"white_label_subscription.downgrade_scheduled",white_label_subscriptiondowngraded:"white_label_subscription.downgraded",white_label_subscriptioncancellation_scheduled:"white_label_subscription.cancellation_scheduled",white_label_subscriptioncancelled:"white_label_subscription.cancelled",white_label_subscriptionrenewed:"white_label_subscription.renewed",white_label_subscriptionexpired:"white_label_subscription.expired",white_label_subscriptionpayment_failed:"white_label_subscription.payment_failed"};var up={viewer:"viewer",editor:"editor",admin:"admin"};var mp={estimate:"estimate",proforma_invoice:"proforma_invoice"};var fp={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var vp={N:"N",P:"P"};var yp={N:"N",P:"P"};var gp={valid:"valid",expiring_soon:"expiring_soon",expired:"expired",missing:"missing"};var Ip={B:"B",C:"C"};var bp={B:"B",C:"C"};var Sp={domestic:"domestic",intra_eu_b2b:"intra_eu_b2b",intra_eu_b2c:"intra_eu_b2c","3w_b2b":"3w_b2b","3w_b2c":"3w_b2c",export:"export"};var xp={invoice:"invoice",credit_note:"credit_note",advance_invoice:"advance_invoice"};var Pp={product:"product",service:"service",advance:"advance"};var _p={unpaid:"unpaid",paid:"paid",partially_paid:"partially_paid",refunded:"refunded"};var Ap={created:"created",paid:"paid",fulfilled:"fulfilled"};var Tp={cash:"cash",bank_transfer:"bank_transfer",card:"card",check:"check",paypal:"paypal",coupon:"coupon",other:"other",credit_note:"credit_note",advance:"advance"};var hp={daily:"daily",weekly:"weekly",monthly:"monthly",yearly:"yearly"};var Dp={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var Ep={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Rp={stored:"stored",registry:"registry",unknown:"unknown"};var Op={normirani:"normirani",dejanski:"dejanski"};var kp={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Np={resident:"resident",non_resident:"non_resident"};var wp={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var Cp={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var Bp={full_time_self_employed:"full_time_self_employed",other:"other"};var Gp={vod_xml:"vod_xml",vasco_xml:"vasco_xml",minimax_xml:"minimax_xml"};var qp={sp:"sp",doo:"doo",dno:"dno",club:"club"};var Fp={normirani:"normirani",dejanski:"dejanski"};var Jp={resident:"resident",non_resident:"non_resident"};var Mp={standard:"standard",special_vat_identified:"special_vat_identified",non_vat_subject:"non_vat_subject"};var Lp={records:"records",single_entry:"single_entry",double_entry:"double_entry"};var Hp={full_time_self_employed:"full_time_self_employed",other:"other"};var Yp={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var Qp={logo:"logo",signature:"signature",attachment:"attachment"};var Kp={pending:"pending",success:"success",failed:"failed"};var Wp={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};var Up={invoicecreated:"invoice.created",invoiceupdated:"invoice.updated",invoicesent:"invoice.sent",invoicepaid:"invoice.paid",invoiceoverdue:"invoice.overdue",invoicecancelled:"invoice.cancelled",invoicedeleted:"invoice.deleted",invoicerestored:"invoice.restored",invoicevoided:"invoice.voided",invoicefinalized:"invoice.finalized",customercreated:"customer.created",customerupdated:"customer.updated",customerdeleted:"customer.deleted",customerrestored:"customer.restored",customerpermanently_deleted:"customer.permanently_deleted",paymentreceived:"payment.received",paymentfailed:"payment.failed",paymentdeleted:"payment.deleted",paymentrestored:"payment.restored",paymentpermanently_deleted:"payment.permanently_deleted",estimatecreated:"estimate.created",estimatesent:"estimate.sent",estimateaccepted:"estimate.accepted",estimaterejected:"estimate.rejected",estimatedeleted:"estimate.deleted",estimaterestored:"estimate.restored",credit_notecreated:"credit_note.created",credit_noteissued:"credit_note.issued",credit_notevoided:"credit_note.voided",credit_notedeleted:"credit_note.deleted",credit_noterestored:"credit_note.restored",advance_invoicecreated:"advance_invoice.created",advance_invoicepaid:"advance_invoice.paid",advance_invoiceapplied:"advance_invoice.applied",advance_invoicevoided:"advance_invoice.voided",advance_invoicedeleted:"advance_invoice.deleted",advance_invoicerestored:"advance_invoice.restored",itemcreated:"item.created",itemupdated:"item.updated",itemdeleted:"item.deleted",itemrestored:"item.restored",itempermanently_deleted:"item.permanently_deleted",taxcreated:"tax.created",taxupdated:"tax.updated",taxdeleted:"tax.deleted",taxrestored:"tax.restored",taxpermanently_deleted:"tax.permanently_deleted",recurring_invoicecreated:"recurring_invoice.created",recurring_invoiceupdated:"recurring_invoice.updated",recurring_invoicedeleted:"recurring_invoice.deleted",recurring_invoicerestored:"recurring_invoice.restored",recurring_invoicepermanently_deleted:"recurring_invoice.permanently_deleted",recurring_invoicepaused:"recurring_invoice.paused",recurring_invoiceresumed:"recurring_invoice.resumed",recurring_invoiceinvoice_generated:"recurring_invoice.invoice_generated",recurring_invoicegeneration_failed:"recurring_invoice.generation_failed",recurring_invoicecompleted:"recurring_invoice.completed",stripe_appconnected:"stripe_app.connected",stripe_appdisconnected:"stripe_app.disconnected",stripe_appsettings_updated:"stripe_app.settings_updated",ordercreated:"order.created",orderupdated:"order.updated",orderdeleted:"order.deleted",orderrestored:"order.restored",orderpermanently_deleted:"order.permanently_deleted",orderprocessed:"order.processed",ordercancelled:"order.cancelled",orderfailed:"order.failed",order_integrationcreated:"order_integration.created",order_integrationupdated:"order_integration.updated",order_integrationdeleted:"order_integration.deleted",delivery_notecreated:"delivery_note.created",delivery_notesent:"delivery_note.sent",delivery_notecancelled:"delivery_note.cancelled",delivery_notevoided:"delivery_note.voided",delivery_notedeleted:"delivery_note.deleted",delivery_noterestored:"delivery_note.restored",e_invoicingsubmissioncreated:"e_invoicing.submission.created",e_invoicingsubmissiondelivered:"e_invoicing.submission.delivered",e_invoicingsubmissionfailed:"e_invoicing.submission.failed",e_invoicingsupplieronboarded:"e_invoicing.supplier.onboarded",e_invoicingsupplierrejected:"e_invoicing.supplier.rejected"};function T(e){return{["x-spaceinvoices-client"]:e}}var I=null,Zp=null,jp="l.account";function h(e){I=e}function Vp(){if(!I)throw Error("SDK not initialized. Call new SpaceInvoices() first.");return I}function $p(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]+)`));if(!t)return null;return decodeURIComponent(t[1])}function Xp(e){if(!e)return{};if(e instanceof Headers){let t={};return e.forEach((n,r)=>{t[r]=n}),t}if(Array.isArray(e)){let t={};for(let[n,r]of e)t[n]=r;return t}return e}async function o(e,t){let n=Vp(),r=await Promise.resolve(n.getAccessToken()),i=`${n.baseUrl}${e}`,l={...Xp(t.headers)};if(n.clientName)Object.assign(l,T(n.clientName));if(r)l.Authorization=`Bearer ${r}`;let p=l["x-account-id"]||l["X-Account-Id"]||Zp||$p(jp);if(p&&!l["x-account-id"]&&!l["X-Account-Id"])l["x-account-id"]=p;let d=await fetch(i,{...t,headers:l});if(d.status===401&&n.onUnauthorized)n.onUnauthorized(d);let m,qi=d.headers.get("content-length"),u=d.headers.get("content-type");if(qi==="0"||d.status===204)m=void 0;else if(u?.includes("application/pdf")||u?.includes("application/vnd.openxmlformats-officedocument.wordprocessingml.document")||u?.includes("application/octet-stream")||u?.includes("application/zip")||u?.includes("application/x-zip-compressed")||u?.includes("image/"))m=await d.blob();else if(u?.includes("application/xml")||u?.includes("text/xml"))m=await d.text();else if(u?.includes("text/html"))m=await d.text();else try{m=await d.json()}catch{m=void 0}return{data:m,status:d.status,headers:d.headers}}var zp=()=>{return"/account-webhooks"},D=async(e,t)=>{return o(zp(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},ed=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/account-webhooks?${n}`:"/account-webhooks"},E=async(e,t)=>{return o(ed(e),{...t,method:"GET"})},td=(e)=>{return`/account-webhooks/${e}`},R=async(e,t)=>{return o(td(e),{...t,method:"GET"})},nd=(e)=>{return`/account-webhooks/${e}`},O=async(e,t,n)=>{return o(nd(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},od=(e)=>{return`/account-webhooks/${e}`},k=async(e,t)=>{return o(od(e),{...t,method:"DELETE"})},ad=(e)=>{return`/account-webhooks/${e}/test`},N=async(e,t)=>{return o(ad(e),{...t,method:"POST"})};var id=(e)=>{return`/account-webhooks/${e}/rotate-secret`},w=async(e,t)=>{return o(id(e),{...t,method:"POST"})};async function rd(e,t){return e(...t)}function C(e){if(!e?.entity_id&&!e?.account_id&&!e?.signal)return;let t={};if(e.entity_id||e.account_id)t.headers={...e.entity_id?{"x-entity-id":e.entity_id}:{},...e.account_id?{"x-account-id":e.account_id}:{}};if(e.signal)t.signal=e.signal;return t}function a(e){return async(...t)=>{let n=t[t.length-1],r=n&&typeof n==="object"&&(("entity_id"in n)||("account_id"in n)||("signal"in n)||Object.keys(n).length===0),i,s;if(r)i=t.slice(0,-1),s=C(n);else i=[...t];i.push(s);let l=await rd(e,i);if(l.status>=200&&l.status<300)return l.data;let p=Error(`API error: ${l.status}`);throw p.status=l.status,p.data=l.data,p}}function c(e){return async(t)=>{let{entity_id:n,account_id:r,signal:i,...s}=t||{},l=C({entity_id:n,account_id:r,signal:i}),p=await e(s,l);if(p.status===200)return p.data;let d=Error(`API error: ${p.status}`);throw d.status=p.status,d.data=p.data,d}}var B={create:a(D),list:c(E),get:a(R),update:a(O),delete:a(k),testAccountWebhook:a(N),rotateAccountWebhookSecret:a(w)};var sd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/activities?${n}`:"/activities"},G=async(e,t)=>{return o(sd(e),{...t,method:"GET"})};var q={list:c(G)};var cd=(e)=>{return`/advance-invoices/shareable/${e}`},F=async(e,t)=>{return o(cd(e),{...t,method:"GET"})},ld=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/shareable/${e}/html?${r}`:`/advance-invoices/shareable/${e}/html`},J=async(e,t,n)=>{return o(ld(e,t),{...n,method:"GET"})},pd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/shareable/${e}/pdf?${r}`:`/advance-invoices/shareable/${e}/pdf`},M=async(e,t,n)=>{return o(pd(e,t),{...n,method:"GET"})},dd=()=>{return"/advance-invoices"},L=async(e,t)=>{return o(dd(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},ud=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/advance-invoices?${n}`:"/advance-invoices"},H=async(e,t)=>{return o(ud(e),{...t,method:"GET"})},md=()=>{return"/advance-invoices/custom"},Y=async(e,t)=>{return o(md(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},fd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/advance-invoices/${e}?${r}`:`/advance-invoices/${e}`},Q=async(e,t,n)=>{return o(fd(e,t),{...n,method:"GET"})},vd=(e)=>{return`/advance-invoices/${e}`},K=async(e,t,n)=>{return o(vd(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},yd=(e)=>{return`/advance-invoices/${e}/versions`},W=async(e,t)=>{return o(yd(e),{...t,method:"GET"})},gd=(e,t)=>{return`/advance-invoices/${e}/versions/${t}`},U=async(e,t,n)=>{return o(gd(e,t),{...n,method:"GET"})},Id=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/advance-invoices/render?${n}`:"/advance-invoices/render"},Z=async(e,t,n)=>{return o(Id(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},bd=(e)=>{return`/advance-invoices/${e}/void`},j=async(e,t,n)=>{return o(bd(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var V={getShareableAdvanceInvoice:a(F),getShareableAdvanceInvoiceHtml:a(J),getShareableAdvanceInvoicePdf:a(M),create:a(L),list:c(H),createCustom:a(Y),get:a(Q),update:a(K),getVersions:a(W),getVersion:a(U),renderAdvanceInvoicePreview:a(Z),void:a(j)};var Sd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/company-registry/search?${n}`:"/company-registry/search"},$=async(e,t)=>{return o(Sd(e),{...t,method:"GET"})},xd=()=>{return"/company-registry/countries"},X=async(e)=>{return o(xd(),{...e,method:"GET"})};var z={searchCompanyRegistry:a($),list:a(X)};var Pd=(e)=>{return`/credit-notes/shareable/${e}`},ee=async(e,t)=>{return o(Pd(e),{...t,method:"GET"})},_d=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/shareable/${e}/html?${r}`:`/credit-notes/shareable/${e}/html`},te=async(e,t,n)=>{return o(_d(e,t),{...n,method:"GET"})},Ad=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/shareable/${e}/pdf?${r}`:`/credit-notes/shareable/${e}/pdf`},ne=async(e,t,n)=>{return o(Ad(e,t),{...n,method:"GET"})},Td=(e)=>{return`/credit-notes/shareable/${e}/eslog`},oe=async(e,t)=>{return o(Td(e),{...t,method:"GET"})},hd=()=>{return"/credit-notes"},ae=async(e,t)=>{return o(hd(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Dd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/credit-notes?${n}`:"/credit-notes"},ie=async(e,t)=>{return o(Dd(e),{...t,method:"GET"})},Ed=()=>{return"/credit-notes/custom"},re=async(e,t)=>{return o(Ed(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Rd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/credit-notes/${e}?${r}`:`/credit-notes/${e}`},se=async(e,t,n)=>{return o(Rd(e,t),{...n,method:"GET"})},Od=(e)=>{return`/credit-notes/${e}`},ce=async(e,t,n)=>{return o(Od(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},kd=(e)=>{return`/credit-notes/${e}/versions`},le=async(e,t)=>{return o(kd(e),{...t,method:"GET"})},Nd=(e,t)=>{return`/credit-notes/${e}/versions/${t}`},pe=async(e,t,n)=>{return o(Nd(e,t),{...n,method:"GET"})},wd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/credit-notes/render?${n}`:"/credit-notes/render"},de=async(e,t,n)=>{return o(wd(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},Cd=(e)=>{return`/credit-notes/${e}/void`},ue=async(e,t,n)=>{return o(Cd(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var me={getShareableCreditNote:a(ee),getShareableCreditNoteHtml:a(te),getShareableCreditNotePdf:a(ne),getShareableCreditNoteEslog:a(oe),create:a(ae),list:c(ie),createCustom:a(re),get:a(se),update:a(ce),getVersions:a(le),getVersion:a(pe),renderCreditNotePreview:a(de),void:a(ue)};var Bd=()=>{return"/customers"},fe=async(e,t)=>{return o(Bd(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Gd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/customers?${n}`:"/customers"},ve=async(e,t)=>{return o(Gd(e),{...t,method:"GET"})},qd=(e)=>{return`/customers/${e}`},ye=async(e,t)=>{return o(qd(e),{...t,method:"GET"})},Fd=(e)=>{return`/customers/${e}`},ge=async(e,t,n)=>{return o(Fd(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Jd=(e)=>{return`/customers/${e}`},Ie=async(e,t)=>{return o(Jd(e),{...t,method:"DELETE"})},Md=(e)=>{return`/customers/${e}/restore`},be=async(e,t)=>{return o(Md(e),{...t,method:"POST"})},Ld=(e)=>{return`/customers/${e}/permanent`},Se=async(e,t)=>{return o(Ld(e),{...t,method:"DELETE"})};var xe={create:a(fe),list:c(ve),get:a(ye),update:a(ge),delete:a(Ie),restoreCustomer:a(be),permanentDeleteCustomer:a(Se)};var Hd=(e)=>{return`/delivery-notes/shareable/${e}`},Pe=async(e,t)=>{return o(Hd(e),{...t,method:"GET"})},Yd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/shareable/${e}/html?${r}`:`/delivery-notes/shareable/${e}/html`},_e=async(e,t,n)=>{return o(Yd(e,t),{...n,method:"GET"})},Qd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/shareable/${e}/pdf?${r}`:`/delivery-notes/shareable/${e}/pdf`},Ae=async(e,t,n)=>{return o(Qd(e,t),{...n,method:"GET"})},Kd=()=>{return"/delivery-notes"},Te=async(e,t)=>{return o(Kd(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Wd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/delivery-notes?${n}`:"/delivery-notes"},he=async(e,t)=>{return o(Wd(e),{...t,method:"GET"})},Ud=()=>{return"/delivery-notes/custom"},De=async(e,t)=>{return o(Ud(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Zd=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/delivery-notes/${e}?${r}`:`/delivery-notes/${e}`},Ee=async(e,t,n)=>{return o(Zd(e,t),{...n,method:"GET"})},jd=(e)=>{return`/delivery-notes/${e}`},Re=async(e,t,n)=>{return o(jd(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Vd=(e)=>{return`/delivery-notes/${e}/versions`},Oe=async(e,t)=>{return o(Vd(e),{...t,method:"GET"})},$d=(e,t)=>{return`/delivery-notes/${e}/versions/${t}`},ke=async(e,t,n)=>{return o($d(e,t),{...n,method:"GET"})},Xd=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/delivery-notes/render?${n}`:"/delivery-notes/render"},Ne=async(e,t,n)=>{return o(Xd(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},zd=(e)=>{return`/delivery-notes/${e}/void`},we=async(e,t,n)=>{return o(zd(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var Ce={getShareableDeliveryNote:a(Pe),getShareableDeliveryNoteHtml:a(_e),getShareableDeliveryNotePdf:a(Ae),create:a(Te),list:c(he),createCustom:a(De),get:a(Ee),update:a(Re),getVersions:a(Oe),getVersion:a(ke),renderDeliveryNotePreview:a(Ne),void:a(we)};var eu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/next-number?${n}`:"/documents/next-number"},Be=async(e,t)=>{return o(eu(e),{...t,method:"GET"})},tu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/calculate?${n}`:"/documents/calculate"},Ge=async(e,t,n)=>{return o(tu(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},nu=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/finalize?${r}`:`/documents/${e}/finalize`},qe=async(e,t,n,r)=>{return o(nu(e,n),{...r,method:"POST",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(t)})},ou=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/fiscalize?${r}`:`/documents/${e}/fiscalize`},Fe=async(e,t,n)=>{return o(ou(e,t),{...n,method:"POST"})},au=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}?${r}`:`/documents/${e}`},Je=async(e,t,n)=>{return o(au(e,t),{...n,method:"DELETE"})},iu=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/restore?${r}`:`/documents/${e}/restore`},Me=async(e,t,n)=>{return o(iu(e,t),{...n,method:"POST"})},ru=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/permanent?${r}`:`/documents/${e}/permanent`},Le=async(e,t,n)=>{return o(ru(e,t),{...n,method:"DELETE"})},su=(e)=>{return`/documents/${e}/send`},He=async(e,t,n)=>{return o(su(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},cu=(e)=>{return`/documents/${e}/share`},Ye=async(e,t)=>{return o(cu(e),{...t,method:"POST"})},lu=(e)=>{return`/documents/${e}/share`},Qe=async(e,t)=>{return o(lu(e),{...t,method:"GET"})},pu=(e)=>{return`/documents/${e}/share`},Ke=async(e,t)=>{return o(pu(e),{...t,method:"DELETE"})};var We={getNextNumber:a(Be),calculateDocumentPreview:a(Ge),finalizeDocument:a(qe),fiscalizeDocument:a(Fe),delete:a(Je),restoreDocument:a(Me),permanentDeleteDocument:a(Le),sendDocument:a(He),shareDocument:a(Ye),getShareableId:a(Qe),unshareDocument:a(Ke)};var du=()=>{return"/e-invoicing/settings"},Ue=async(e)=>{return o(du(),{...e,method:"GET"})},uu=()=>{return"/e-invoicing/settings"},Ze=async(e,t)=>{return o(uu(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},mu=()=>{return"/e-invoicing/supplier"},je=async(e,t)=>{return o(mu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},fu=()=>{return"/e-invoicing/supplier"},Ve=async(e)=>{return o(fu(),{...e,method:"GET"})};var vu=()=>{return"/e-invoicing/customer-search"},$e=async(e,t)=>{return o(vu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},yu=()=>{return"/e-invoicing/send/:documentType/:documentId"},Xe=async(e,t)=>{return o(yu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},gu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/e-invoicing/submissions?${n}`:"/e-invoicing/submissions"},ze=async(e,t)=>{return o(gu(e),{...t,method:"GET"})},Iu=()=>{return"/e-invoicing/submissions/:id"},et=async(e)=>{return o(Iu(),{...e,method:"GET"})},bu=()=>{return"/e-invoicing/submissions/:id/retry"},tt=async(e)=>{return o(bu(),{...e,method:"POST"})},Su=()=>{return"/e-invoicing/webhooks/flowin"},nt=async(e,t)=>{return o(Su(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ot={list:a(Ue),update:a(Ze),registerEInvoicingSupplier:a(je),getEInvoicingSupplier:a(Ve),searchEInvoicingCustomer:a($e),sendEInvoice:a(Xe),listEInvoicingSubmissions:a(ze),getEInvoicingSubmission:a(et),retryEInvoicingSubmission:a(tt),handleFlowinWebhook:a(nt)};var xu=()=>{return"/email/send"},at=async(e,t)=>{return o(xu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var it={sendEmail:a(at)};var Pu=()=>{return"/entities"},rt=async(e,t)=>{return o(Pu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},_u=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/entities?${n}`:"/entities"},st=async(e,t)=>{return o(_u(e),{...t,method:"GET"})},Au=(e)=>{return`/entities/${e}`},ct=async(e,t)=>{return o(Au(e),{...t,method:"GET"})},Tu=(e)=>{return`/entities/${e}`},lt=async(e,t,n)=>{return o(Tu(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},hu=(e)=>{return`/entities/${e}/enable`},pt=async(e,t)=>{return o(hu(e),{...t,method:"POST"})},Du=(e)=>{return`/entities/${e}/disable`},dt=async(e,t)=>{return o(Du(e),{...t,method:"POST"})};var ut={create:a(rt),list:c(st),get:a(ct),update:a(lt),enableEntity:a(pt),disableEntity:a(dt)};var Eu=()=>{return"/entities/api-keys"},mt=async(e)=>{return o(Eu(),{...e,method:"GET"})},Ru=()=>{return"/entities/api-keys"},ft=async(e,t)=>{return o(Ru(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ou=(e)=>{return`/entities/api-keys/${e}`},vt=async(e,t)=>{return o(Ou(e),{...t,method:"DELETE"})};var yt={listEntityApiKeys:a(mt),create:a(ft),delete:a(vt)};var ku=()=>{return"/entities/invitations"},gt=async(e)=>{return o(ku(),{...e,method:"GET"})},Nu=(e)=>{return`/entities/invitations/${e}`},It=async(e,t)=>{return o(Nu(e),{...t,method:"GET"})},wu=(e)=>{return`/entities/invitations/${e}`},bt=async(e,t)=>{return o(wu(e),{...t,method:"DELETE"})},Cu=(e)=>{return`/entities/invitations/${e}/resend`},St=async(e,t)=>{return o(Cu(e),{...t,method:"POST"})},Bu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invitations/accept?${n}`:"/invitations/accept"},xt=async(e,t,n)=>{return o(Bu(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})};var Pt={listEntityInvitations:a(gt),getEntityInvitation:a(It),cancelEntityInvitation:a(bt),resendEntityInvitation:a(St),acceptEntityInvitation:a(xt)};var Gu=()=>{return"/stats/query"},_t=async(e,t)=>{return o(Gu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var At={queryEntityStats:a(_t)};var qu=()=>{return"/entities/users"},Tt=async(e)=>{return o(qu(),{...e,method:"GET"})},Fu=()=>{return"/entities/users"},ht=async(e,t)=>{return o(Fu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ju=(e)=>{return`/entities/users/${e}`},Dt=async(e,t,n)=>{return o(Ju(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Mu=(e)=>{return`/entities/users/${e}`},Et=async(e,t)=>{return o(Mu(e),{...t,method:"DELETE"})},Lu=(e)=>{return`/entities/users/${e}/token`},Rt=async(e,t)=>{return o(Lu(e),{...t,method:"POST"})};var Ot={list:a(Tt),addEntityUser:a(ht),update:a(Dt),removeEntityUser:a(Et),generateEntityUserToken:a(Rt)};var Hu=(e)=>{return`/estimates/shareable/${e}`},kt=async(e,t)=>{return o(Hu(e),{...t,method:"GET"})},Yu=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/shareable/${e}/html?${r}`:`/estimates/shareable/${e}/html`},Nt=async(e,t,n)=>{return o(Yu(e,t),{...n,method:"GET"})},Qu=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/shareable/${e}/pdf?${r}`:`/estimates/shareable/${e}/pdf`},wt=async(e,t,n)=>{return o(Qu(e,t),{...n,method:"GET"})},Ku=()=>{return"/estimates"},Ct=async(e,t)=>{return o(Ku(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Wu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/estimates?${n}`:"/estimates"},Bt=async(e,t)=>{return o(Wu(e),{...t,method:"GET"})},Uu=()=>{return"/estimates/custom"},Gt=async(e,t)=>{return o(Uu(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Zu=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/estimates/${e}?${r}`:`/estimates/${e}`},qt=async(e,t,n)=>{return o(Zu(e,t),{...n,method:"GET"})},ju=(e)=>{return`/estimates/${e}`},Ft=async(e,t,n)=>{return o(ju(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Vu=(e)=>{return`/estimates/${e}/versions`},Jt=async(e,t)=>{return o(Vu(e),{...t,method:"GET"})},$u=(e,t)=>{return`/estimates/${e}/versions/${t}`},Mt=async(e,t,n)=>{return o($u(e,t),{...n,method:"GET"})},Xu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/estimates/render?${n}`:"/estimates/render"},Lt=async(e,t,n)=>{return o(Xu(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})};var Ht={getShareableEstimate:a(kt),getShareableEstimateHtml:a(Nt),getShareableEstimatePdf:a(wt),create:a(Ct),list:c(Bt),createCustom:a(Gt),get:a(qt),update:a(Ft),getVersions:a(Jt),getVersion:a(Mt),renderEstimatePreview:a(Lt)};var zu=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/export?${n}`:"/documents/export"},Yt=async(e,t)=>{return o(zu(e),{...t,method:"GET"})},em=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/documents/export/sales-per-item?${n}`:"/documents/export/sales-per-item"},Qt=async(e,t)=>{return o(em(e),{...t,method:"GET"})},tm=()=>{return"/documents/export/pdf"},Kt=async(e,t)=>{return o(tm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},nm=(e)=>{return`/documents/export/pdf/${e}`},Wt=async(e,t)=>{return o(nm(e),{...t,method:"GET"})},om=(e)=>{return`/documents/export/pdf/${e}/download`},Ut=async(e,t)=>{return o(om(e),{...t,method:"GET"})},am=()=>{return"/documents/export/eslog"},Zt=async(e,t)=>{return o(am(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var im=(e)=>{return`/documents/export/eslog/${e}/download`},jt=async(e,t)=>{return o(im(e),{...t,method:"GET"})};var Vt={exportDocuments:a(Yt),exportSalesPerItem:a(Qt),startPdfExport:a(Kt),list:c(Wt),downloadPdfExport:a(Ut),startEslogExport:a(Zt),downloadEslogExport:a(jt)};var rm=()=>{return"/files"},$t=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(n.append("category",e.category),e.account_payable_id!==void 0)n.append("account_payable_id",e.account_payable_id);if(e.incoming_purchase_document_id!==void 0)n.append("incoming_purchase_document_id",e.incoming_purchase_document_id);return o(rm(),{...t,method:"POST",body:n})},sm=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/files?${n}`:"/files"},Xt=async(e,t)=>{return o(sm(e),{...t,method:"GET"})},cm=(e)=>{return`/files/${e}`},zt=async(e,t)=>{return o(cm(e),{...t,method:"GET"})},lm=(e)=>{return`/files/${e}`},en=async(e,t)=>{return o(lm(e),{...t,method:"DELETE"})};var tn={uploadFile:a($t),list:c(Xt),get:a(zt),delete:a(en)};var pm=()=>{return"/fiscalization/fina/settings/certificate"},nn=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(e.passphrase!==void 0)n.append("passphrase",e.passphrase);return o(pm(),{...t,method:"POST",body:n})},dm=()=>{return"/fiscalization/fina/settings/certificate"},on=async(e)=>{return o(dm(),{...e,method:"GET"})},um=()=>{return"/fiscalization/fina/settings/certificate"},an=async(e)=>{return o(um(),{...e,method:"DELETE"})};var rn={uploadFinaCertificate:a(nn),getFinaCertificate:a(on),delete:a(an)};var mm=(e)=>{return`/fiscalization/fina/premises/${e}/devices`},sn=async(e,t)=>{return o(mm(e),{...t,method:"GET"})},fm=(e)=>{return`/fiscalization/fina/premises/${e}/devices`},cn=async(e,t,n)=>{return o(fm(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},vm=(e)=>{return`/fiscalization/fina/devices/${e}`},ln=async(e,t)=>{return o(vm(e),{...t,method:"GET"})},ym=(e)=>{return`/fiscalization/fina/devices/${e}`},pn=async(e,t)=>{return o(ym(e),{...t,method:"DELETE"})};var dn={listFinaDevices:a(sn),registerFinaDevice:a(cn),getFinaDevice:a(ln),delete:a(pn)};var gm=()=>{return"/fiscalization/fina/premises"},un=async(e)=>{return o(gm(),{...e,method:"GET"})},Im=()=>{return"/fiscalization/fina/premises"},mn=async(e,t)=>{return o(Im(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},bm=(e)=>{return`/fiscalization/fina/premises/${e}`},fn=async(e,t)=>{return o(bm(e),{...t,method:"GET"})},Sm=(e)=>{return`/fiscalization/fina/premises/${e}`},vn=async(e,t)=>{return o(Sm(e),{...t,method:"DELETE"})};var yn={listFinaPremises:a(un),create:a(mn),getFinaPremise:a(fn),delete:a(vn)};var xm=()=>{return"/fiscalization/fina/settings"},gn=async(e)=>{return o(xm(),{...e,method:"GET"})},Pm=()=>{return"/fiscalization/fina/settings"},In=async(e,t)=>{return o(Pm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var bn={list:a(gn),update:a(In)};var _m=()=>{return"/fiscalization/furs/settings/certificate"},Sn=async(e,t)=>{let n=new FormData;if(e.file!==void 0)n.append("file",e.file);if(e.passphrase!==void 0)n.append("passphrase",e.passphrase);return o(_m(),{...t,method:"POST",body:n})},Am=()=>{return"/fiscalization/furs/settings/certificate"},xn=async(e)=>{return o(Am(),{...e,method:"GET"})},Tm=()=>{return"/fiscalization/furs/settings/certificate"},Pn=async(e)=>{return o(Tm(),{...e,method:"DELETE"})};var _n={uploadFursCertificate:a(Sn),getFursCertificate:a(xn),delete:a(Pn)};var hm=(e)=>{return`/fiscalization/furs/premises/${e}/devices`},An=async(e,t)=>{return o(hm(e),{...t,method:"GET"})},Dm=(e)=>{return`/fiscalization/furs/premises/${e}/devices`},Tn=async(e,t,n)=>{return o(Dm(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Em=(e)=>{return`/fiscalization/furs/devices/${e}`},hn=async(e,t)=>{return o(Em(e),{...t,method:"GET"})};var Dn={listFursElectronicDevices:a(An),registerFursElectronicDevice:a(Tn),getFursElectronicDevice:a(hn)};var Rm=()=>{return"/fiscalization/furs/internal-act/report.pdf"},En=async(e)=>{return o(Rm(),{...e,method:"GET"})},Om=()=>{return"/fiscalization/furs/internal-act/report.docx"},Rn=async(e)=>{return o(Om(),{...e,method:"GET"})};var On={generateFursInternalActPdf:a(En),generateFursInternalActDocx:a(Rn)};var km=()=>{return"/fiscalization/furs/premises"},kn=async(e)=>{return o(km(),{...e,method:"GET"})},Nm=(e)=>{return`/fiscalization/furs/premises/${e}`},Nn=async(e,t)=>{return o(Nm(e),{...t,method:"GET"})},wm=()=>{return"/fiscalization/furs/premises/real-estate"},wn=async(e,t)=>{return o(wm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Cm=()=>{return"/fiscalization/furs/premises/movable"},Cn=async(e,t)=>{return o(Cm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Bm=(e)=>{return`/fiscalization/furs/premises/${e}/close`},Bn=async(e,t)=>{return o(Bm(e),{...t,method:"POST"})};var Gn={listFursBusinessPremises:a(kn),getFursBusinessPremise:a(Nn),registerFursRealEstatePremise:a(wn),registerFursMovablePremise:a(Cn),closeFursBusinessPremise:a(Bn)};var Gm=()=>{return"/fiscalization/furs/settings"},qn=async(e)=>{return o(Gm(),{...e,method:"GET"})},qm=()=>{return"/fiscalization/furs/settings"},Fn=async(e,t)=>{return o(qm(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Jn={list:a(qn),update:a(Fn)};var Fm=()=>{return"/health/live"},Mn=async(e)=>{return o(Fm(),{...e,method:"GET"})},Jm=()=>{return"/health/ready"},Ln=async(e)=>{return o(Jm(),{...e,method:"GET"})},Mm=()=>{return"/health"},Hn=async(e)=>{return o(Mm(),{...e,method:"GET"})};var Yn={livenessCheck:a(Mn),readinessCheck:a(Ln),healthCheck:a(Hn)};var Lm=()=>{return"/incoming-purchase-documents"},Qn=async(e,t)=>{return o(Lm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Hm=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/incoming-purchase-documents?${n}`:"/incoming-purchase-documents"},Kn=async(e,t)=>{return o(Hm(e),{...t,method:"GET"})},Ym=()=>{return"/incoming-purchase-documents/custom"},Wn=async(e,t)=>{return o(Ym(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Qm=(e)=>{return`/incoming-purchase-documents/${e}`},Un=async(e,t)=>{return o(Qm(e),{...t,method:"GET"})},Km=(e)=>{return`/incoming-purchase-documents/${e}`},Zn=async(e,t,n)=>{return o(Km(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Wm=(e)=>{return`/incoming-purchase-documents/${e}/attachments`},jn=async(e,t,n)=>{let r=new FormData;if(t.file!==void 0)r.append("file",t.file);return o(Wm(e),{...n,method:"POST",body:r})};var Um=(e,t)=>{return`/incoming-purchase-documents/${e}/attachments/${t}`},Vn=async(e,t,n)=>{return o(Um(e,t),{...n,method:"DELETE"})};var $n={create:a(Qn),list:c(Kn),createCustom:a(Wn),get:a(Un),update:a(Zn),uploadIncomingPurchaseDocumentAttachment:a(jn),delete:a(Vn)};var Xn="https://eu.spaceinvoices.com";function zn(e){let t=typeof e==="string"?{accessToken:e}:e,n=typeof t.accessToken==="function"?t.accessToken:()=>t.accessToken;h({baseUrl:t.basePath??Xn,getAccessToken:n,clientName:t.clientName??"js-sdk",onUnauthorized:t.onUnauthorized})}var Zm=(e)=>{return`/invoices/shareable/${e}`},eo=async(e,t)=>{return o(Zm(e),{...t,method:"GET"})},jm=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/shareable/${e}/html?${r}`:`/invoices/shareable/${e}/html`},to=async(e,t,n)=>{return o(jm(e,t),{...n,method:"GET"})},Vm=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/shareable/${e}/pdf?${r}`:`/invoices/shareable/${e}/pdf`},no=async(e,t,n)=>{return o(Vm(e,t),{...n,method:"GET"})},$m=(e)=>{return`/invoices/shareable/${e}/eslog`},oo=async(e,t)=>{return o($m(e),{...t,method:"GET"})},Xm=()=>{return"/invoices"},ao=async(e,t)=>{return o(Xm(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},zm=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invoices?${n}`:"/invoices"},io=async(e,t)=>{return o(zm(e),{...t,method:"GET"})},ef=()=>{return"/invoices/custom"},ro=async(e,t)=>{return o(ef(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},tf=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/invoices/${e}?${r}`:`/invoices/${e}`},so=async(e,t,n)=>{return o(tf(e,t),{...n,method:"GET"})},nf=(e)=>{return`/invoices/${e}`},co=async(e,t,n)=>{return o(nf(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},of=(e)=>{return`/invoices/${e}/versions`},lo=async(e,t)=>{return o(of(e),{...t,method:"GET"})},af=(e,t)=>{return`/invoices/${e}/versions/${t}`},po=async(e,t,n)=>{return o(af(e,t),{...n,method:"GET"})},rf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/invoices/render?${n}`:"/invoices/render"},uo=async(e,t,n)=>{return o(rf(t),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)})},sf=(e)=>{return`/invoices/${e}/void`},mo=async(e,t,n)=>{return o(sf(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},cf=(e)=>{return`/invoices/${e}/fiscalize`},fo=async(e,t)=>{return o(cf(e),{...t,method:"POST"})},lf=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/html?${r}`:`/documents/${e}/html`},vo=async(e,t,n)=>{return o(lf(e,t),{...n,method:"GET"})},pf=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/documents/${e}/pdf?${r}`:`/documents/${e}/pdf`},yo=async(e,t,n)=>{return o(pf(e,t),{...n,method:"GET"})};function go(e,t){let n=URL.createObjectURL(e),r=document.createElement("a");r.href=n,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}var Io=a(yo),bo={getShareableInvoice:a(eo),getShareableInvoiceHtml:a(to),getShareableInvoicePdf:a(no),getShareableInvoiceEslog:a(oo),create:a(ao),list:c(io),createCustom:a(ro),get:a(so),update:a(co),getVersions:a(lo),getVersion:a(po),renderInvoicePreview:a(uo),void:a(mo),fiscalizeInvoice:a(fo),renderHtml:a(vo),renderPdf:Io,async downloadPdf(e,t,n,r){let i=await Io(e,n,r);go(i,t)}};var df=()=>{return"/items"},So=async(e,t)=>{return o(df(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},uf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/items?${n}`:"/items"},xo=async(e,t)=>{return o(uf(e),{...t,method:"GET"})},mf=(e)=>{return`/items/${e}`},Po=async(e,t,n)=>{return o(mf(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},ff=(e)=>{return`/items/${e}`},_o=async(e,t)=>{return o(ff(e),{...t,method:"DELETE"})},vf=(e)=>{return`/items/${e}/restore`},Ao=async(e,t)=>{return o(vf(e),{...t,method:"POST"})},yf=(e)=>{return`/items/${e}/permanent`},To=async(e,t)=>{return o(yf(e),{...t,method:"DELETE"})};var ho={create:a(So),list:c(xo),update:a(Po),delete:a(_o),restoreItem:a(Ao),permanentDeleteItem:a(To)};var gf=()=>{return"/legacy-migration/auth"},Do=async(e,t)=>{return o(gf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},If=()=>{return"/legacy-migration/jobs"},Eo=async(e,t)=>{return o(If(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},bf=()=>{return"/legacy-migration/jobs"},Ro=async(e)=>{return o(bf(),{...e,method:"GET"})},Sf=(e)=>{return`/legacy-migration/jobs/${e}`},Oo=async(e,t)=>{return o(Sf(e),{...t,method:"GET"})};var ko={legacyMigrationAuth:a(Do),create:a(Eo),listMigrationJobs:a(Ro),getMigrationJob:a(Oo)};var xf=()=>{return"/locale/detect"},No=async(e)=>{return o(xf(),{...e,method:"GET"})};var wo={detectLocale:a(No)};var Pf=()=>{return"/order-integrations/shopify/authorize"},Co=async(e,t)=>{return o(Pf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},_f=(e)=>{return`/order-integrations/${e}/sync-shopify`},Bo=async(e,t,n)=>{return o(_f(e),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Af=()=>{return"/order-integrations"},Go=async(e,t)=>{return o(Af(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Tf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/order-integrations?${n}`:"/order-integrations"},qo=async(e,t)=>{return o(Tf(e),{...t,method:"GET"})},hf=(e)=>{return`/order-integrations/${e}`},Fo=async(e,t)=>{return o(hf(e),{...t,method:"GET"})},Df=(e)=>{return`/order-integrations/${e}`},Jo=async(e,t,n)=>{return o(Df(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Ef=(e)=>{return`/order-integrations/${e}`},Mo=async(e,t)=>{return o(Ef(e),{...t,method:"DELETE"})};var Lo={authorizeShopify:a(Co),syncShopifyOrders:a(Bo),create:a(Go),list:c(qo),get:a(Fo),update:a(Jo),delete:a(Mo)};var Rf=()=>{return"/orders"},Ho=async(e,t)=>{return o(Rf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Of=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/orders?${n}`:"/orders"},Yo=async(e,t)=>{return o(Of(e),{...t,method:"GET"})},kf=(e)=>{return`/orders/${e}`},Qo=async(e,t)=>{return o(kf(e),{...t,method:"GET"})},Nf=(e)=>{return`/orders/${e}`},Ko=async(e,t,n)=>{return o(Nf(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},wf=(e)=>{return`/orders/${e}`},Wo=async(e,t)=>{return o(wf(e),{...t,method:"DELETE"})},Cf=(e)=>{return`/orders/${e}/process`},Uo=async(e,t)=>{return o(Cf(e),{...t,method:"POST"})},Bf=(e)=>{return`/orders/${e}/cancel`},Zo=async(e,t)=>{return o(Bf(e),{...t,method:"POST"})},Gf=(e)=>{return`/orders/${e}/reissue`},jo=async(e,t)=>{return o(Gf(e),{...t,method:"POST"})};var Vo={create:a(Ho),list:c(Yo),get:a(Qo),update:a(Ko),delete:a(Wo),processOrder:a(Uo),cancelOrder:a(Zo),reissueOrder:a(jo)};var qf=()=>{return"/payments"},$o=async(e,t)=>{return o(qf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ff=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/payments?${n}`:"/payments"},Xo=async(e,t)=>{return o(Ff(e),{...t,method:"GET"})},Jf=(e,t)=>{let n=new URLSearchParams;Object.entries(t||{}).forEach(([i,s])=>{if(s!==void 0)n.append(i,s===null?"null":s.toString())});let r=n.toString();return r.length>0?`/payments/${e}?${r}`:`/payments/${e}`},zo=async(e,t,n)=>{return o(Jf(e,t),{...n,method:"GET"})},Mf=(e)=>{return`/payments/${e}`},ea=async(e,t,n)=>{return o(Mf(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Lf=(e)=>{return`/payments/${e}`},ta=async(e,t)=>{return o(Lf(e),{...t,method:"DELETE"})},Hf=(e)=>{return`/payments/${e}/restore`},na=async(e,t)=>{return o(Hf(e),{...t,method:"POST"})},Yf=(e)=>{return`/payments/${e}/permanent`},oa=async(e,t)=>{return o(Yf(e),{...t,method:"DELETE"})};var aa={create:a($o),list:c(Xo),get:a(zo),update:a(ea),delete:a(ta),restorePayment:a(na),permanentDeletePayment:a(oa)};var Qf=()=>{return"/fiscalization/pt/atcud-series"},ia=async(e,t)=>{return o(Qf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Kf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/atcud-series?${n}`:"/fiscalization/pt/atcud-series"},ra=async(e,t)=>{return o(Kf(e),{...t,method:"GET"})},Wf=(e)=>{return`/fiscalization/pt/atcud-series/${e}`},sa=async(e,t)=>{return o(Wf(e),{...t,method:"GET"})},Uf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/atcud-series/active?${n}`:"/fiscalization/pt/atcud-series/active"},ca=async(e,t)=>{return o(Uf(e),{...t,method:"POST"})};var la={create:a(ia),list:c(ra),get:a(sa),getActive:a(ca)};var Zf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/fiscalization/pt/saft/report?${n}`:"/fiscalization/pt/saft/report"},pa=async(e,t)=>{return o(Zf(e),{...t,method:"GET"})};var da={generateReport:a(pa)};var jf=()=>{return"/recurring-invoices"},ua=async(e,t)=>{return o(jf(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Vf=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/recurring-invoices?${n}`:"/recurring-invoices"},ma=async(e,t)=>{return o(Vf(e),{...t,method:"GET"})},$f=(e)=>{return`/recurring-invoices/${e}`},fa=async(e,t)=>{return o($f(e),{...t,method:"GET"})},Xf=(e)=>{return`/recurring-invoices/${e}`},va=async(e,t,n)=>{return o(Xf(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},zf=(e)=>{return`/recurring-invoices/${e}`},ya=async(e,t)=>{return o(zf(e),{...t,method:"DELETE"})},ev=(e)=>{return`/recurring-invoices/${e}/restore`},ga=async(e,t)=>{return o(ev(e),{...t,method:"POST"})},tv=(e)=>{return`/recurring-invoices/${e}/permanent`},Ia=async(e,t)=>{return o(tv(e),{...t,method:"DELETE"})},nv=(e)=>{return`/recurring-invoices/${e}/pause`},ba=async(e,t)=>{return o(nv(e),{...t,method:"POST"})},ov=(e)=>{return`/recurring-invoices/${e}/resume`},Sa=async(e,t)=>{return o(ov(e),{...t,method:"POST"})},av=(e)=>{return`/recurring-invoices/${e}/trigger`},xa=async(e,t)=>{return o(av(e),{...t,method:"POST"})};var Pa={create:a(ua),list:c(ma),get:a(fa),update:a(va),delete:a(ya),restoreRecurringInvoice:a(ga),permanentDeleteRecurringInvoice:a(Ia),pauseRecurringInvoice:a(ba),resumeRecurringInvoice:a(Sa),triggerRecurringInvoice:a(xa)};var iv=()=>{return"/stripe-app/authorize"},_a=async(e)=>{return o(iv(),{...e,method:"GET"})},rv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/oauth/callback?${n}`:"/stripe-app/oauth/callback"},Aa=async(e,t)=>{return o(rv(e),{...t,method:"GET"})},sv=()=>{return"/stripe-app/webhooks"},Ta=async(e)=>{return o(sv(),{...e,method:"POST"})},cv=()=>{return"/stripe-app/marketplace-authorize"},ha=async(e,t)=>{return o(cv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},lv=()=>{return"/stripe-app/connect"},Da=async(e,t)=>{return o(lv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},pv=()=>{return"/stripe-app/connection"},Ea=async(e)=>{return o(pv(),{...e,method:"GET"})},dv=()=>{return"/stripe-app/connection"},Ra=async(e)=>{return o(dv(),{...e,method:"DELETE"})},uv=()=>{return"/stripe-app/settings"},Oa=async(e)=>{return o(uv(),{...e,method:"GET"})},mv=()=>{return"/stripe-app/settings"},ka=async(e,t)=>{return o(mv(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},fv=()=>{return"/stripe-app/invoices"},Na=async(e,t)=>{return o(fv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},vv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/invoices?${n}`:"/stripe-app/invoices"},wa=async(e,t)=>{return o(vv(e),{...t,method:"GET"})},yv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/stripe-app/invoices/lookup?${n}`:"/stripe-app/invoices/lookup"},Ca=async(e,t)=>{return o(yv(e),{...t,method:"GET"})},gv=(e)=>{return`/stripe-app/invoices/${e}`},Ba=async(e,t)=>{return o(gv(e),{...t,method:"GET"})},Iv=()=>{return"/stripe-app/entity-connection"},Ga=async(e)=>{return o(Iv(),{...e,method:"GET"})},bv=()=>{return"/stripe-app/entity-connection"},qa=async(e)=>{return o(bv(),{...e,method:"DELETE"})},Sv=()=>{return"/stripe-app/entity-settings"},Fa=async(e)=>{return o(Sv(),{...e,method:"GET"})},xv=()=>{return"/stripe-app/entity-settings"},Ja=async(e,t)=>{return o(xv(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Ma={stripeAppAuthorize:a(_a),stripeAppOAuthCallback:a(Aa),stripeAppWebhook:a(Ta),stripeAppMarketplaceAuthorize:a(ha),stripeAppConnect:a(Da),stripeAppGetConnection:a(Ea),stripeAppDisconnect:a(Ra),stripeAppGetSettings:a(Oa),stripeAppUpdateSettings:a(ka),stripeAppCreateInvoice:a(Na),stripeAppListInvoices:a(wa),stripeAppLookupInvoice:a(Ca),stripeAppGetInvoice:a(Ba),stripeAppEntityGetConnection:a(Ga),stripeAppEntityDisconnect:a(qa),stripeAppEntityGetSettings:a(Fa),stripeAppEntityUpdateSettings:a(Ja)};var Pv=()=>{return"/suppliers"},La=async(e,t)=>{return o(Pv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},_v=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/suppliers?${n}`:"/suppliers"},Ha=async(e,t)=>{return o(_v(e),{...t,method:"GET"})},Av=(e)=>{return`/suppliers/${e}`},Ya=async(e,t)=>{return o(Av(e),{...t,method:"GET"})},Tv=(e)=>{return`/suppliers/${e}`},Qa=async(e,t,n)=>{return o(Tv(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})};var Ka={create:a(La),list:c(Ha),get:a(Ya),update:a(Qa)};var hv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/tax-reports/kir?${n}`:"/tax-reports/kir"},Wa=async(e,t)=>{return o(hv(e),{...t,method:"POST"})},Dv=()=>{return"/tax-reports/si/profile"},Ua=async(e)=>{return o(Dv(),{...e,method:"GET"})},Ev=()=>{return"/tax-reports/si/profile"},Za=async(e,t)=>{return o(Ev(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Rv=()=>{return"/tax-reports/si/yearly/normirani/review"},ja=async(e,t)=>{return o(Rv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Ov=()=>{return"/tax-reports/si/yearly/normirani/export"},Va=async(e,t)=>{return o(Ov(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},kv=()=>{return"/tax-reports/si/accounting/vod/export"},$a=async(e,t)=>{return o(kv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var Xa={generateKirExport:a(Wa),getSloveniaTaxProfile:a(Ua),updateSloveniaTaxProfile:a(Za),reviewSloveniaYearlyNormiraniReport:a(ja),exportSloveniaYearlyNormiraniReport:a(Va),exportSloveniaVodXml:a($a)};var Nv=()=>{return"/taxes"},za=async(e,t)=>{return o(Nv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},wv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/taxes?${n}`:"/taxes"},ei=async(e,t)=>{return o(wv(e),{...t,method:"GET"})},Cv=(e)=>{return`/taxes/${e}`},ti=async(e,t,n)=>{return o(Cv(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Bv=(e)=>{return`/taxes/${e}`},ni=async(e,t,n)=>{return o(Bv(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Gv=(e)=>{return`/taxes/${e}`},oi=async(e,t)=>{return o(Gv(e),{...t,method:"DELETE"})},qv=(e)=>{return`/taxes/${e}/restore`},ai=async(e,t)=>{return o(qv(e),{...t,method:"POST"})},Fv=(e)=>{return`/taxes/${e}/permanent`},ii=async(e,t)=>{return o(Fv(e),{...t,method:"DELETE"})};var ri={create:a(za),list:c(ei),update:a(ti),replaceTax:a(ni),delete:a(oi),restoreTax:a(ai),permanentDeleteTax:a(ii)};var Jv=()=>{return"/transaction-type/check"},si=async(e,t)=>{return o(Jv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ci={checkTransactionType:a(si)};var Mv=()=>{return"/upload/image"},li=async(e,t)=>{let n=new FormData;return n.append("file",e.file),o(Mv(),{...t,method:"POST",body:n})};var pi={uploadImage:a(li)};var Lv=()=>{return"/users/me"},di=async(e)=>{return o(Lv(),{...e,method:"GET"})},Hv=()=>{return"/users/me"},ui=async(e,t)=>{return o(Hv(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Yv=()=>{return"/users/me/settings/furs"},mi=async(e,t)=>{return o(Yv(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Qv=()=>{return"/users/me/settings/fina"},fi=async(e,t)=>{return o(Qv(),{...t,method:"PUT",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var vi={getMe:a(di),update:a(ui),updateFursSettings:a(mi),updateFinaSettings:a(fi)};var Kv=()=>{return"/vies/check"},yi=async(e,t)=>{return o(Kv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var gi={checkVies:a(yi)};var Wv=()=>{return"/webhooks"},Ii=async(e,t)=>{return o(Wv(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})},Uv=(e)=>{let t=new URLSearchParams;Object.entries(e||{}).forEach(([r,i])=>{if(i!==void 0)t.append(r,i===null?"null":i.toString())});let n=t.toString();return n.length>0?`/webhooks?${n}`:"/webhooks"},bi=async(e,t)=>{return o(Uv(e),{...t,method:"GET"})},Zv=(e)=>{return`/webhooks/${e}`},Si=async(e,t)=>{return o(Zv(e),{...t,method:"GET"})},jv=(e)=>{return`/webhooks/${e}`},xi=async(e,t,n)=>{return o(jv(e),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)})},Vv=(e)=>{return`/webhooks/${e}`},Pi=async(e,t)=>{return o(Vv(e),{...t,method:"DELETE"})},$v=(e)=>{return`/webhooks/${e}/test`},_i=async(e,t)=>{return o($v(e),{...t,method:"POST"})};var Xv=(e)=>{return`/webhooks/${e}/rotate-secret`},Ai=async(e,t)=>{return o(Xv(e),{...t,method:"POST"})};var Ti={create:a(Ii),list:c(bi),get:a(Si),update:a(xi),delete:a(Pi),testWebhook:a(_i),rotateWebhookSecret:a(Ai)};var zv=()=>{return"/white-label-subscriptions"},hi=async(e)=>{return o(zv(),{...e,method:"GET"})},ey=()=>{return"/white-label-subscriptions/plans"},Di=async(e)=>{return o(ey(),{...e,method:"GET"})},ty=(e)=>{return`/white-label-subscriptions/check-feature/${e}`},Ei=async(e,t)=>{return o(ty(e),{...t,method:"GET"})},ny=(e)=>{return`/white-label-subscriptions/check-limit/${e}`},Ri=async(e,t)=>{return o(ny(e),{...t,method:"GET"})},oy=()=>{return"/white-label-subscriptions/billing-email"},Oi=async(e,t)=>{return o(oy(),{...t,method:"PATCH",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)})};var ki={getCurrentWLSubscription:a(hi),list:a(Di),checkWLFeature:a(Ei),checkWLLimit:a(Ri),update:a(Oi)};var ay=()=>{return"/white-labels/current"},Ni=async(e)=>{return o(ay(),{...e,method:"GET"})};var wi={getCurrentWhiteLabel:a(Ni)};
38
2
 
39
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let E of o.seen.entries()){let q=E[1];if(c===E[0]){_(E);continue}if(o.external){let t=o.external.registry.get(E[0])?.id;if(c!==E[0]&&t){_(E);continue}}if(o.metadataRegistry.get(E[0])?.id){_(E);continue}if(q.cycle){_(E);continue}if(q.count>1){if(o.reused==="ref"){_(E);continue}}}}function Pc(o,c){let n=o.seen.get(c);if(!n)throw Error("Unprocessed schema. This is a bug in Zod.");let I=(E)=>{let q=o.seen.get(E);if(q.ref===null)return;let G=q.def??q.schema,t={...G},B=q.ref;if(q.ref=null,B){I(B);let H=o.seen.get(B),W=H.schema;if(W.$ref&&(o.target==="draft-07"||o.target==="draft-04"||o.target==="openapi-3.0"))G.allOf=G.allOf??[],G.allOf.push(W);else Object.assign(G,W);if(Object.assign(G,t),E._zod.parent===B)for(let M in G){if(M==="$ref"||M==="allOf")continue;if(!(M in t))delete G[M]}if(W.$ref&&H.def)for(let M in G){if(M==="$ref"||M==="allOf")continue;if(M in H.def&&JSON.stringify(G[M])===JSON.stringify(H.def[M]))delete G[M]}}let R=E._zod.parent;if(R&&R!==B){I(R);let H=o.seen.get(R);if(H?.schema.$ref){if(G.$ref=H.schema.$ref,H.def)for(let W in G){if(W==="$ref"||W==="allOf")continue;if(W in H.def&&JSON.stringify(G[W])===JSON.stringify(H.def[W]))delete G[W]}}}o.override({zodSchema:E,jsonSchema:G,path:q.path??[]})};for(let E of[...o.seen.entries()].reverse())I(E[0]);let S={};if(o.target==="draft-2020-12")S.$schema="https://json-schema.org/draft/2020-12/schema";else if(o.target==="draft-07")S.$schema="http://json-schema.org/draft-07/schema#";else if(o.target==="draft-04")S.$schema="http://json-schema.org/draft-04/schema#";else if(o.target==="openapi-3.0");if(o.external?.uri){let E=o.external.registry.get(c)?.id;if(!E)throw Error("Schema is missing an `id` property");S.$id=o.external.uri(E)}Object.assign(S,n.def??n.schema);let _=o.external?.defs??{};for(let E of o.seen.entries()){let q=E[1];if(q.def&&q.defId)_[q.defId]=q.def}if(o.external);else if(Object.keys(_).length>0)if(o.target==="draft-2020-12")S.$defs=_;else S.definitions=_;try{let E=JSON.parse(JSON.stringify(S));return Object.defineProperty(E,"~standard",{value:{...c["~standard"],jsonSchema:{input:Be(c,"input",o.processors),output:Be(c,"output",o.processors)}},enumerable:!1,writable:!1}),E}catch(E){throw Error("Error converting schema to JSON.")}}function U(o,c){let n=c??{seen:new Set};if(n.seen.has(o))return!1;n.seen.add(o);let I=o._zod.def;if(I.type==="transform")return!0;if(I.type==="array")return U(I.element,n);if(I.type==="set")return U(I.valueType,n);if(I.type==="lazy")return U(I.getter(),n);if(I.type==="promise"||I.type==="optional"||I.type==="nonoptional"||I.type==="nullable"||I.type==="readonly"||I.type==="default"||I.type==="prefault")return U(I.innerType,n);if(I.type==="intersection")return U(I.left,n)||U(I.right,n);if(I.type==="record"||I.type==="map")return U(I.keyType,n)||U(I.valueType,n);if(I.type==="pipe")return U(I.in,n)||U(I.out,n);if(I.type==="object"){for(let S in I.shape)if(U(I.shape[S],n))return!0;return!1}if(I.type==="union"){for(let S of I.options)if(U(S,n))return!0;return!1}if(I.type==="tuple"){for(let S of I.items)if(U(S,n))return!0;if(I.rest&&U(I.rest,n))return!0;return!1}return!1}var dn=(o,c={})=>(n)=>{let I=Sc({...n,processors:c});return $(o,I),gc(I,o),Pc(I,o)},Be=(o,c,n={})=>(I)=>{let{libraryOptions:S,target:_}=I??{},E=Sc({...S??{},target:_,io:c,processors:n});return $(o,E),gc(E,o),Pc(E,o)};var mne={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},an=(o,c,n,I)=>{let S=n;S.type="string";let{minimum:_,maximum:E,format:q,patterns:G,contentEncoding:t}=o._zod.bag;if(typeof _==="number")S.minLength=_;if(typeof E==="number")S.maxLength=E;if(q){if(S.format=mne[q]??q,S.format==="")delete S.format;if(q==="time")delete S.format}if(t)S.contentEncoding=t;if(G&&G.size>0){let B=[...G];if(B.length===1)S.pattern=B[0].source;else if(B.length>1)S.allOf=[...B.map((R)=>({...c.target==="draft-07"||c.target==="draft-04"||c.target==="openapi-3.0"?{type:"string"}:{},pattern:R.source}))]}},sn=(o,c,n,I)=>{let S=n,{minimum:_,maximum:E,format:q,multipleOf:G,exclusiveMaximum:t,exclusiveMinimum:B}=o._zod.bag;if(typeof q==="string"&&q.includes("int"))S.type="integer";else S.type="number";if(typeof B==="number")if(c.target==="draft-04"||c.target==="openapi-3.0")S.minimum=B,S.exclusiveMinimum=!0;else S.exclusiveMinimum=B;if(typeof _==="number"){if(S.minimum=_,typeof B==="number"&&c.target!=="draft-04")if(B>=_)delete S.minimum;else delete S.exclusiveMinimum}if(typeof t==="number")if(c.target==="draft-04"||c.target==="openapi-3.0")S.maximum=t,S.exclusiveMaximum=!0;else S.exclusiveMaximum=t;if(typeof E==="number"){if(S.maximum=E,typeof t==="number"&&c.target!=="draft-04")if(t<=E)delete S.maximum;else delete S.exclusiveMaximum}if(typeof G==="number")S.multipleOf=G},eA=(o,c,n,I)=>{n.type="boolean"};var oA=(o,c,n,I)=>{if(c.target==="openapi-3.0")n.type="string",n.nullable=!0,n.enum=[null];else n.type="null"};var cA=(o,c,n,I)=>{n.not={}};var rA=(o,c,n,I)=>{};var vA=(o,c,n,I)=>{let S=o._zod.def,_=De(S.entries);if(_.every((E)=>typeof E==="number"))n.type="number";if(_.every((E)=>typeof E==="string"))n.type="string";n.enum=_};var nA=(o,c,n,I)=>{if(c.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema")};var AA=(o,c,n,I)=>{if(c.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema")};var IA=(o,c,n,I)=>{let S=n,_=o._zod.def,{minimum:E,maximum:q}=o._zod.bag;if(typeof E==="number")S.minItems=E;if(typeof q==="number")S.maxItems=q;S.type="array",S.items=$(_.element,c,{...I,path:[...I.path,"items"]})},SA=(o,c,n,I)=>{let S=n,_=o._zod.def;S.type="object",S.properties={};let E=_.shape;for(let t in E)S.properties[t]=$(E[t],c,{...I,path:[...I.path,"properties",t]});let q=new Set(Object.keys(E)),G=new Set([...q].filter((t)=>{let B=_.shape[t]._zod;if(c.io==="input")return B.optin===void 0;else return B.optout===void 0}));if(G.size>0)S.required=Array.from(G);if(_.catchall?._zod.def.type==="never")S.additionalProperties=!1;else if(!_.catchall){if(c.io==="output")S.additionalProperties=!1}else if(_.catchall)S.additionalProperties=$(_.catchall,c,{...I,path:[...I.path,"additionalProperties"]})},gA=(o,c,n,I)=>{let S=o._zod.def,_=S.inclusive===!1,E=S.options.map((q,G)=>$(q,c,{...I,path:[...I.path,_?"oneOf":"anyOf",G]}));if(_)n.oneOf=E;else n.anyOf=E},PA=(o,c,n,I)=>{let S=o._zod.def,_=$(S.left,c,{...I,path:[...I.path,"allOf",0]}),E=$(S.right,c,{...I,path:[...I.path,"allOf",1]}),q=(t)=>("allOf"in t)&&Object.keys(t).length===1,G=[...q(_)?_.allOf:[_],...q(E)?E.allOf:[E]];n.allOf=G};var _A=(o,c,n,I)=>{let S=n,_=o._zod.def;S.type="object";let E=_.keyType,G=E._zod.bag?.patterns;if(_.mode==="loose"&&G&&G.size>0){let B=$(_.valueType,c,{...I,path:[...I.path,"patternProperties","*"]});S.patternProperties={};for(let R of G)S.patternProperties[R.source]=B}else{if(c.target==="draft-07"||c.target==="draft-2020-12")S.propertyNames=$(_.keyType,c,{...I,path:[...I.path,"propertyNames"]});S.additionalProperties=$(_.valueType,c,{...I,path:[...I.path,"additionalProperties"]})}let t=E._zod.values;if(t){let B=[...t].filter((R)=>typeof R==="string"||typeof R==="number");if(B.length>0)S.required=B}},EA=(o,c,n,I)=>{let S=o._zod.def,_=$(S.innerType,c,I),E=c.seen.get(o);if(c.target==="openapi-3.0")E.ref=S.innerType,n.nullable=!0;else n.anyOf=[_,{type:"null"}]},DA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType},OA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType,n.default=JSON.parse(JSON.stringify(S.defaultValue))},bA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);if(_.ref=S.innerType,c.io==="input")n._prefault=JSON.parse(JSON.stringify(S.defaultValue))},TA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType;let E;try{E=S.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}n.default=E},qA=(o,c,n,I)=>{let S=o._zod.def,_=c.io==="input"?S.in._zod.def.type==="transform"?S.out:S.in:S.out;$(_,c,I);let E=c.seen.get(o);E.ref=_},NA=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType,n.readOnly=!0};var _c=(o,c,n,I)=>{let S=o._zod.def;$(S.innerType,c,I);let _=c.seen.get(o);_.ref=S.innerType};var hne=u("ZodISODateTime",(o,c)=>{Yv.init(o,c),V.init(o,c)});function GA(o){return $n(hne,o)}var ine=u("ZodISODate",(o,c)=>{xv.init(o,c),V.init(o,c)});function uA(o){return Mn(ine,o)}var dne=u("ZodISOTime",(o,c)=>{Kv.init(o,c),V.init(o,c)});function JA(o){return zn(dne,o)}var ane=u("ZodISODuration",(o,c)=>{yv.init(o,c),V.init(o,c)});function tA(o){return kn(ane,o)}var BA=(o,c)=>{Qe.init(o,c),o.name="ZodError",Object.defineProperties(o,{format:{value:(n)=>Dr(o,n)},flatten:{value:(n)=>Er(o,n)},addIssue:{value:(n)=>{o.issues.push(n),o.message=JSON.stringify(o.issues,Ae,2)}},addIssues:{value:(n)=>{o.issues.push(...n),o.message=JSON.stringify(o.issues,Ae,2)}},isEmpty:{get(){return o.issues.length===0}}})},KJe=u("ZodError",BA),Z=u("ZodError",BA,{Parent:Error});var RA=we(Z),LA=Xe(Z),HA=Ne(Z),WA=Ge(Z),QA=Tr(Z),wA=qr(Z),XA=Nr(Z),YA=Gr(Z),xA=ur(Z),KA=Jr(Z),yA=tr(Z),VA=Br(Z);var F=u("ZodType",(o,c)=>{return y.init(o,c),Object.assign(o["~standard"],{jsonSchema:{input:Be(o,"input"),output:Be(o,"output")}}),o.toJSONSchema=dn(o,{}),o.def=c,o.type=c.type,Object.defineProperty(o,"_def",{value:c}),o.check=(...n)=>{return o.clone(x.mergeDefs(c,{checks:[...c.checks??[],...n.map((I)=>typeof I==="function"?{_zod:{check:I,def:{check:"custom"},onattach:[]}}:I)]}),{parent:!0})},o.with=o.check,o.clone=(n,I)=>j(o,n,I),o.brand=()=>o,o.register=(n,I)=>{return n.add(o,I),o},o.parse=(n,I)=>RA(o,n,I,{callee:o.parse}),o.safeParse=(n,I)=>HA(o,n,I),o.parseAsync=async(n,I)=>LA(o,n,I,{callee:o.parseAsync}),o.safeParseAsync=async(n,I)=>WA(o,n,I),o.spa=o.safeParseAsync,o.encode=(n,I)=>QA(o,n,I),o.decode=(n,I)=>wA(o,n,I),o.encodeAsync=async(n,I)=>XA(o,n,I),o.decodeAsync=async(n,I)=>YA(o,n,I),o.safeEncode=(n,I)=>xA(o,n,I),o.safeDecode=(n,I)=>KA(o,n,I),o.safeEncodeAsync=async(n,I)=>yA(o,n,I),o.safeDecodeAsync=async(n,I)=>VA(o,n,I),o.refine=(n,I)=>o.check(fAe(n,I)),o.superRefine=(n)=>o.check(lAe(n)),o.overwrite=(n)=>o.check(oe(n)),o.optional=()=>MA(o),o.exactOptional=()=>VAe(o),o.nullable=()=>zA(o),o.nullish=()=>MA(zA(o)),o.nonoptional=(n)=>UAe(o,n),o.array=()=>P(o),o.or=(n)=>J([o,n]),o.and=(n)=>XAe(o,n),o.transform=(n)=>kA(o,KAe(n)),o.default=(n)=>MAe(o,n),o.prefault=(n)=>kAe(o,n),o.catch=(n)=>ZAe(o,n),o.pipe=(n)=>kA(o,n),o.readonly=()=>pAe(o),o.describe=(n)=>{let I=o.clone();return ve.add(I,{description:n}),I},Object.defineProperty(o,"description",{get(){return ve.get(o)?.description},configurable:!0}),o.meta=(...n)=>{if(n.length===0)return ve.get(o);let I=o.clone();return ve.add(I,n[0]),I},o.isOptional=()=>o.safeParse(void 0).success,o.isNullable=()=>o.safeParse(null).success,o.apply=(n)=>n(o),o}),UA=u("_ZodString",(o,c)=>{Ve.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>an(o,I,S,_);let n=o._zod.bag;o.format=n.format??null,o.minLength=n.minimum??null,o.maxLength=n.maximum??null,o.regex=(...I)=>o.check(io(...I)),o.includes=(...I)=>o.check(ec(...I)),o.startsWith=(...I)=>o.check(oc(...I)),o.endsWith=(...I)=>o.check(cc(...I)),o.min=(...I)=>o.check(Se(...I)),o.max=(...I)=>o.check(ze(...I)),o.length=(...I)=>o.check(ke(...I)),o.nonempty=(...I)=>o.check(Se(1,...I)),o.lowercase=(I)=>o.check(ao(I)),o.uppercase=(I)=>o.check(so(I)),o.trim=()=>o.check(vc()),o.normalize=(...I)=>o.check(rc(...I)),o.toLowerCase=()=>o.check(nc()),o.toUpperCase=()=>o.check(Ac()),o.slugify=()=>o.check(Ic())}),cAe=u("ZodString",(o,c)=>{Ve.init(o,c),UA.init(o,c),o.email=(n)=>o.check(Tn(rAe,n)),o.url=(n)=>o.check(Jn(vAe,n)),o.jwt=(n)=>o.check(Fn(GAe,n)),o.emoji=(n)=>o.check(tn(nAe,n)),o.guid=(n)=>o.check(ho(FA,n)),o.uuid=(n)=>o.check(qn(me,n)),o.uuidv4=(n)=>o.check(Nn(me,n)),o.uuidv6=(n)=>o.check(Gn(me,n)),o.uuidv7=(n)=>o.check(un(me,n)),o.nanoid=(n)=>o.check(Bn(AAe,n)),o.guid=(n)=>o.check(ho(FA,n)),o.cuid=(n)=>o.check(Rn(IAe,n)),o.cuid2=(n)=>o.check(Ln(SAe,n)),o.ulid=(n)=>o.check(Hn(gAe,n)),o.base64=(n)=>o.check(Kn(TAe,n)),o.base64url=(n)=>o.check(yn(qAe,n)),o.xid=(n)=>o.check(Wn(PAe,n)),o.ksuid=(n)=>o.check(Qn(_Ae,n)),o.ipv4=(n)=>o.check(wn(EAe,n)),o.ipv6=(n)=>o.check(Xn(DAe,n)),o.cidrv4=(n)=>o.check(Yn(OAe,n)),o.cidrv6=(n)=>o.check(xn(bAe,n)),o.e164=(n)=>o.check(Vn(NAe,n)),o.datetime=(n)=>o.check(GA(n)),o.date=(n)=>o.check(uA(n)),o.time=(n)=>o.check(JA(n)),o.duration=(n)=>o.check(tA(n))});function e(o){return bn(cAe,o)}var V=u("ZodStringFormat",(o,c)=>{K.init(o,c),UA.init(o,c)}),rAe=u("ZodEmail",(o,c)=>{tv.init(o,c),V.init(o,c)});var FA=u("ZodGUID",(o,c)=>{uv.init(o,c),V.init(o,c)});var me=u("ZodUUID",(o,c)=>{Jv.init(o,c),V.init(o,c)});var vAe=u("ZodURL",(o,c)=>{Bv.init(o,c),V.init(o,c)});var nAe=u("ZodEmoji",(o,c)=>{Rv.init(o,c),V.init(o,c)});var AAe=u("ZodNanoID",(o,c)=>{Lv.init(o,c),V.init(o,c)});var IAe=u("ZodCUID",(o,c)=>{Hv.init(o,c),V.init(o,c)});var SAe=u("ZodCUID2",(o,c)=>{Wv.init(o,c),V.init(o,c)});var gAe=u("ZodULID",(o,c)=>{Qv.init(o,c),V.init(o,c)});var PAe=u("ZodXID",(o,c)=>{wv.init(o,c),V.init(o,c)});var _Ae=u("ZodKSUID",(o,c)=>{Xv.init(o,c),V.init(o,c)});var EAe=u("ZodIPv4",(o,c)=>{Vv.init(o,c),V.init(o,c)});var DAe=u("ZodIPv6",(o,c)=>{Fv.init(o,c),V.init(o,c)});var OAe=u("ZodCIDRv4",(o,c)=>{$v.init(o,c),V.init(o,c)});var bAe=u("ZodCIDRv6",(o,c)=>{Mv.init(o,c),V.init(o,c)});var TAe=u("ZodBase64",(o,c)=>{kv.init(o,c),V.init(o,c)});var qAe=u("ZodBase64URL",(o,c)=>{Uv.init(o,c),V.init(o,c)});var NAe=u("ZodE164",(o,c)=>{mv.init(o,c),V.init(o,c)});var GAe=u("ZodJWT",(o,c)=>{Zv.init(o,c),V.init(o,c)});var mA=u("ZodNumber",(o,c)=>{fo.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>sn(o,I,S,_),o.gt=(I,S)=>o.check($e(I,S)),o.gte=(I,S)=>o.check(te(I,S)),o.min=(I,S)=>o.check(te(I,S)),o.lt=(I,S)=>o.check(Fe(I,S)),o.lte=(I,S)=>o.check(Je(I,S)),o.max=(I,S)=>o.check(Je(I,S)),o.int=(I)=>o.check($A(I)),o.safe=(I)=>o.check($A(I)),o.positive=(I)=>o.check($e(0,I)),o.nonnegative=(I)=>o.check(te(0,I)),o.negative=(I)=>o.check(Fe(0,I)),o.nonpositive=(I)=>o.check(Je(0,I)),o.multipleOf=(I,S)=>o.check(Me(I,S)),o.step=(I,S)=>o.check(Me(I,S)),o.finite=()=>o;let n=o._zod.bag;o.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,o.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,o.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??0.5),o.isFinite=!0,o.format=n.format??null});function v(o){return Un(mA,o)}var uAe=u("ZodNumberFormat",(o,c)=>{Cv.init(o,c),mA.init(o,c)});function $A(o){return mn(uAe,o)}var JAe=u("ZodBoolean",(o,c)=>{jv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>eA(o,n,I,S)});function A(o){return Zn(JAe,o)}var tAe=u("ZodNull",(o,c)=>{pv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>oA(o,n,I,S)});function N(o){return Cn(tAe,o)}var BAe=u("ZodUnknown",(o,c)=>{fv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>rA(o,n,I,S)});function D(){return jn(BAe)}var RAe=u("ZodNever",(o,c)=>{lv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>cA(o,n,I,S)});function LAe(o){return pn(RAe,o)}var HAe=u("ZodArray",(o,c)=>{hv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>IA(o,n,I,S),o.element=c.element,o.min=(n,I)=>o.check(Se(n,I)),o.nonempty=(n)=>o.check(Se(1,n)),o.max=(n,I)=>o.check(ze(n,I)),o.length=(n,I)=>o.check(ke(n,I)),o.unwrap=()=>o.element});function P(o,c){return fn(HAe,o,c)}var WAe=u("ZodObject",(o,c)=>{av.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>SA(o,n,I,S),x.defineLazy(o,"shape",()=>{return c.shape}),o.keyof=()=>g(Object.keys(o._zod.def.shape)),o.catchall=(n)=>o.clone({...o._zod.def,catchall:n}),o.passthrough=()=>o.clone({...o._zod.def,catchall:D()}),o.loose=()=>o.clone({...o._zod.def,catchall:D()}),o.strict=()=>o.clone({...o._zod.def,catchall:LAe()}),o.strip=()=>o.clone({...o._zod.def,catchall:void 0}),o.extend=(n)=>{return x.extend(o,n)},o.safeExtend=(n)=>{return x.safeExtend(o,n)},o.merge=(n)=>x.merge(o,n),o.pick=(n)=>x.pick(o,n),o.omit=(n)=>x.omit(o,n),o.partial=(...n)=>x.partial(ZA,o,n[0]),o.required=(...n)=>x.required(CA,o,n[0])});function r(o,c){let n={type:"object",shape:o??{},...x.normalizeParams(c)};return new WAe(n)}var QAe=u("ZodUnion",(o,c)=>{sv.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>gA(o,n,I,S),o.options=c.options});function J(o,c){return new QAe({type:"union",options:o,...x.normalizeParams(c)})}var wAe=u("ZodIntersection",(o,c)=>{en.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>PA(o,n,I,S)});function XAe(o,c){return new wAe({type:"intersection",left:o,right:c})}var YAe=u("ZodRecord",(o,c)=>{on.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>_A(o,n,I,S),o.keyType=c.keyType,o.valueType=c.valueType});function O(o,c,n){return new YAe({type:"record",keyType:o,valueType:c,...x.normalizeParams(n)})}var Ec=u("ZodEnum",(o,c)=>{cn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(I,S,_)=>vA(o,I,S,_),o.enum=c.entries,o.options=Object.values(c.entries);let n=new Set(Object.keys(c.entries));o.extract=(I,S)=>{let _={};for(let E of I)if(n.has(E))_[E]=c.entries[E];else throw Error(`Key ${E} not found in enum`);return new Ec({...c,checks:[],...x.normalizeParams(S),entries:_})},o.exclude=(I,S)=>{let _={...c.entries};for(let E of I)if(n.has(E))delete _[E];else throw Error(`Key ${E} not found in enum`);return new Ec({...c,checks:[],...x.normalizeParams(S),entries:_})}});function g(o,c){let n=Array.isArray(o)?Object.fromEntries(o.map((I)=>[I,I])):o;return new Ec({type:"enum",entries:n,...x.normalizeParams(c)})}var xAe=u("ZodTransform",(o,c)=>{rn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>AA(o,n,I,S),o._zod.parse=(n,I)=>{if(I.direction==="backward")throw new _e(o.constructor.name);n.addIssue=(_)=>{if(typeof _==="string")n.issues.push(x.issue(_,n.value,c));else{let E=_;if(E.fatal)E.continue=!1;E.code??(E.code="custom"),E.input??(E.input=n.value),E.inst??(E.inst=o),n.issues.push(x.issue(E))}};let S=c.transform(n.value,n);if(S instanceof Promise)return S.then((_)=>{return n.value=_,n});return n.value=S,n}});function KAe(o){return new xAe({type:"transform",transform:o})}var ZA=u("ZodOptional",(o,c)=>{lo.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>_c(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function MA(o){return new ZA({type:"optional",innerType:o})}var yAe=u("ZodExactOptional",(o,c)=>{vn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>_c(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function VAe(o){return new yAe({type:"optional",innerType:o})}var FAe=u("ZodNullable",(o,c)=>{nn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>EA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function zA(o){return new FAe({type:"nullable",innerType:o})}var $Ae=u("ZodDefault",(o,c)=>{An.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>OA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType,o.removeDefault=o.unwrap});function MAe(o,c){return new $Ae({type:"default",innerType:o,get defaultValue(){return typeof c==="function"?c():x.shallowClone(c)}})}var zAe=u("ZodPrefault",(o,c)=>{In.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>bA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function kAe(o,c){return new zAe({type:"prefault",innerType:o,get defaultValue(){return typeof c==="function"?c():x.shallowClone(c)}})}var CA=u("ZodNonOptional",(o,c)=>{Sn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>DA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function UAe(o,c){return new CA({type:"nonoptional",innerType:o,...x.normalizeParams(c)})}var mAe=u("ZodCatch",(o,c)=>{gn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>TA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType,o.removeCatch=o.unwrap});function ZAe(o,c){return new mAe({type:"catch",innerType:o,catchValue:typeof c==="function"?c:()=>c})}var CAe=u("ZodPipe",(o,c)=>{Pn.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>qA(o,n,I,S),o.in=c.in,o.out=c.out});function kA(o,c){return new CAe({type:"pipe",in:o,out:c})}var jAe=u("ZodReadonly",(o,c)=>{_n.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>NA(o,n,I,S),o.unwrap=()=>o._zod.def.innerType});function pAe(o){return new jAe({type:"readonly",innerType:o})}var jA=u("ZodCustom",(o,c)=>{En.init(o,c),F.init(o,c),o._zod.processJSONSchema=(n,I,S)=>nA(o,n,I,S)});function fAe(o,c={}){return ln(jA,o,c)}function lAe(o){return hn(o)}function ce(o,c={}){let n=new jA({type:"custom",check:"custom",fn:(I)=>I instanceof o,abort:!0,...x.normalizeParams(c)});return n._zod.bag.Class=o,n._zod.check=(I)=>{if(!(I.value instanceof o))I.issues.push({code:"invalid_type",expected:o.name,input:I.value,inst:n,path:[...n._zod.def.path??[]]})},n}var pA=10,fA=100,hAe=r({limit:v().min(1).max(fA).default(pA).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","created_at","resource_type","action","-id","-created_at","-resource_type","-action"]),P(g(["id","created_at","resource_type","action","-id","-created_at","-resource_type","-action"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, resource_type, resource_id, action, actor_type, created_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'),resource_type:e().optional().describe("Filter by resource type (e.g., Invoice, Customer, Payment)"),resource_id:e().optional().describe("Filter by specific resource ID"),action:e().optional().describe("Filter by action type (e.g., created, updated, deleted, sent)")}),iAe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),dAe=r({data:P(r({id:e().describe("Unique activity identifier"),entity_id:e().describe("Entity that owns this activity"),resource_type:e().describe("Type of resource (e.g., Invoice, Customer, Payment)"),resource_id:e().describe("ID of the resource"),action:e().describe("Action performed (e.g., created, updated, deleted, voided, sent)"),actor_type:g(["user","api_key","system","cron","webhook"]).describe("Who/what triggered the activity"),actor_id:e().nullable().describe("User ID if actor_type is 'user'"),actor_label:e().nullable().describe("Display label (e.g., user email, 'Scheduled sync')"),details:O(e(),D()).nullable().describe("Additional context about the activity"),created_at:e().datetime({}).describe("When the activity occurred")})),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")});var Oc={};Q(Oc,{voidAdvanceInvoiceResponseTotalWithTaxMin:()=>AE,voidAdvanceInvoiceResponseTotalWithTaxMax:()=>IE,voidAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>bE,voidAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>TE,voidAdvanceInvoiceResponseTotalPaidMin:()=>qE,voidAdvanceInvoiceResponseTotalPaidMax:()=>NE,voidAdvanceInvoiceResponseTotalMin:()=>vE,voidAdvanceInvoiceResponseTotalMax:()=>nE,voidAdvanceInvoiceResponseTotalDueMin:()=>GE,voidAdvanceInvoiceResponseTotalDueMax:()=>uE,voidAdvanceInvoiceResponseTotalConvertedMin:()=>DE,voidAdvanceInvoiceResponseTotalConvertedMax:()=>OE,voidAdvanceInvoiceResponseShareableIdMax:()=>EE,voidAdvanceInvoiceResponseNumberMax:()=>i_,voidAdvanceInvoiceResponseItemsItemUnitMax:()=>QE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>yE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>VE,voidAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>ME,voidAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>zE,voidAdvanceInvoiceResponseItemsItemTotalMin:()=>xE,voidAdvanceInvoiceResponseItemsItemTotalMax:()=>KE,voidAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>FE,voidAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>$E,voidAdvanceInvoiceResponseItemsItemQuantityMin:()=>HE,voidAdvanceInvoiceResponseItemsItemQuantityMax:()=>WE,voidAdvanceInvoiceResponseItemsItemNameMax:()=>LE,voidAdvanceInvoiceResponseItemsItemItemIdMax:()=>mE,voidAdvanceInvoiceResponseItemsItemIdMax:()=>RE,voidAdvanceInvoiceResponseItemsItemDiscountsMax:()=>YE,voidAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>wE,voidAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>XE,voidAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>UE,voidAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>kE,voidAdvanceInvoiceResponseIssuerCountryCodeMin:()=>d_,voidAdvanceInvoiceResponseIssuerCountryCodeMax:()=>a_,voidAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>s_,voidAdvanceInvoiceResponseIdMax:()=>h_,voidAdvanceInvoiceResponseFursDataIterationDefault:()=>JE,voidAdvanceInvoiceResponseEntityIdMax:()=>gE,voidAdvanceInvoiceResponseDateYearMin:()=>PE,voidAdvanceInvoiceResponseDateYearMax:()=>_E,voidAdvanceInvoiceResponseDateServiceToRegExp:()=>BE,voidAdvanceInvoiceResponseDateServiceRegExp:()=>tE,voidAdvanceInvoiceResponseCustomerIdMax:()=>eE,voidAdvanceInvoiceResponseCustomerCountryCodeMin:()=>oE,voidAdvanceInvoiceResponseCustomerCountryCodeMax:()=>cE,voidAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>rE,voidAdvanceInvoiceResponseCurrencyCodeMax:()=>SE,voidAdvanceInvoicePathIdRegExp:()=>l_,updateAdvanceInvoiceResponseTotalWithTaxMin:()=>DP,updateAdvanceInvoiceResponseTotalWithTaxMax:()=>OP,updateAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>tP,updateAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>BP,updateAdvanceInvoiceResponseTotalPaidMin:()=>RP,updateAdvanceInvoiceResponseTotalPaidMax:()=>LP,updateAdvanceInvoiceResponseTotalMin:()=>_P,updateAdvanceInvoiceResponseTotalMax:()=>EP,updateAdvanceInvoiceResponseTotalDueMin:()=>HP,updateAdvanceInvoiceResponseTotalDueMax:()=>WP,updateAdvanceInvoiceResponseTotalConvertedMin:()=>uP,updateAdvanceInvoiceResponseTotalConvertedMax:()=>JP,updateAdvanceInvoiceResponseShareableIdMax:()=>GP,updateAdvanceInvoiceResponseNumberMax:()=>rP,updateAdvanceInvoiceResponseItemsItemUnitMax:()=>VP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>UP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>mP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>jP,updateAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>pP,updateAdvanceInvoiceResponseItemsItemTotalMin:()=>zP,updateAdvanceInvoiceResponseItemsItemTotalMax:()=>kP,updateAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>ZP,updateAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>CP,updateAdvanceInvoiceResponseItemsItemQuantityMin:()=>KP,updateAdvanceInvoiceResponseItemsItemQuantityMax:()=>yP,updateAdvanceInvoiceResponseItemsItemNameMax:()=>xP,updateAdvanceInvoiceResponseItemsItemItemIdMax:()=>hP,updateAdvanceInvoiceResponseItemsItemIdMax:()=>YP,updateAdvanceInvoiceResponseItemsItemDiscountsMax:()=>MP,updateAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>FP,updateAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>$P,updateAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>lP,updateAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>fP,updateAdvanceInvoiceResponseIssuerCountryCodeMin:()=>vP,updateAdvanceInvoiceResponseIssuerCountryCodeMax:()=>nP,updateAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>AP,updateAdvanceInvoiceResponseIdMax:()=>cP,updateAdvanceInvoiceResponseFursDataIterationDefault:()=>QP,updateAdvanceInvoiceResponseEntityIdMax:()=>TP,updateAdvanceInvoiceResponseDateYearMin:()=>qP,updateAdvanceInvoiceResponseDateYearMax:()=>NP,updateAdvanceInvoiceResponseDateServiceToRegExp:()=>XP,updateAdvanceInvoiceResponseDateServiceRegExp:()=>wP,updateAdvanceInvoiceResponseCustomerIdMax:()=>IP,updateAdvanceInvoiceResponseCustomerCountryCodeMin:()=>SP,updateAdvanceInvoiceResponseCustomerCountryCodeMax:()=>gP,updateAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>PP,updateAdvanceInvoiceResponseCurrencyCodeMax:()=>bP,updateAdvanceInvoicePathIdRegExp:()=>Fg,updateAdvanceInvoiceBodyItemsItemUnitMax:()=>lg,updateAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>sg,updateAdvanceInvoiceBodyItemsItemQuantityMin:()=>pg,updateAdvanceInvoiceBodyItemsItemQuantityMax:()=>fg,updateAdvanceInvoiceBodyItemsItemDiscountsMax:()=>dg,updateAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>hg,updateAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>ig,updateAdvanceInvoiceBodyItemsItemDescriptionMax:()=>jg,updateAdvanceInvoiceBodyItemsItemDeliveryNoteIdMax:()=>ag,updateAdvanceInvoiceBodyIssuerOneCountryCodeMin:()=>Mg,updateAdvanceInvoiceBodyIssuerOneCountryCodeMax:()=>zg,updateAdvanceInvoiceBodyIssuerOneBankAccountTypeDefault:()=>kg,updateAdvanceInvoiceBodyDateRegExp:()=>$g,updateAdvanceInvoiceBodyDateDueRegExp:()=>oP,updateAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>Cg,updateAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>Ug,updateAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>mg,updateAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>Zg,updateAdvanceInvoiceBodyChangeReasonMax:()=>eP,renderAdvanceInvoicePreviewQueryTemplateDefault:()=>dP,renderAdvanceInvoicePreviewQueryPartialDefault:()=>e_,renderAdvanceInvoicePreviewQueryLocaleMin:()=>aP,renderAdvanceInvoicePreviewQueryLocaleMax:()=>sP,renderAdvanceInvoicePreviewBodyTwoItemsItemUnitMax:()=>V_,renderAdvanceInvoicePreviewBodyTwoItemsItemSaveItemDefault:()=>k_,renderAdvanceInvoicePreviewBodyTwoItemsItemQuantityMin:()=>K_,renderAdvanceInvoicePreviewBodyTwoItemsItemQuantityMax:()=>y_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsMax:()=>M_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>F_,renderAdvanceInvoicePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>$_,renderAdvanceInvoicePreviewBodyTwoItemsItemDescriptionMax:()=>x_,renderAdvanceInvoicePreviewBodyTwoItemsItemDeliveryNoteIdMax:()=>z_,renderAdvanceInvoicePreviewBodyTwoIssuerCountryCodeMin:()=>J_,renderAdvanceInvoicePreviewBodyTwoIssuerCountryCodeMax:()=>t_,renderAdvanceInvoicePreviewBodyTwoIssuerBankAccountTypeDefault:()=>B_,renderAdvanceInvoicePreviewBodyTwoFinaPremiseIdRegExp:()=>m_,renderAdvanceInvoicePreviewBodyTwoFinaPremiseIdMax:()=>U_,renderAdvanceInvoicePreviewBodyTwoFinaOperatorOibMin:()=>j_,renderAdvanceInvoicePreviewBodyTwoFinaOperatorOibMax:()=>p_,renderAdvanceInvoicePreviewBodyTwoFinaDeviceIdRegExp:()=>C_,renderAdvanceInvoicePreviewBodyTwoFinaDeviceIdMax:()=>Z_,renderAdvanceInvoicePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>f_,renderAdvanceInvoicePreviewBodyTwoDateServiceToRegExp:()=>Y_,renderAdvanceInvoicePreviewBodyTwoDateServiceRegExp:()=>X_,renderAdvanceInvoicePreviewBodyTwoDateRegExp:()=>u_,renderAdvanceInvoicePreviewBodyTwoDateDueRegExp:()=>w_,renderAdvanceInvoicePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>W_,renderAdvanceInvoicePreviewBodyTwoCustomerOneCountryCodeMin:()=>R_,renderAdvanceInvoicePreviewBodyTwoCustomerOneCountryCodeMax:()=>L_,renderAdvanceInvoicePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>H_,renderAdvanceInvoicePreviewBodyTwoCurrencyCodeMax:()=>Q_,renderAdvanceInvoicePreviewBodyOneIssuerCountryCodeMin:()=>c_,renderAdvanceInvoicePreviewBodyOneIssuerCountryCodeMax:()=>r_,renderAdvanceInvoicePreviewBodyOneIssuerBankAccountTypeDefault:()=>v_,renderAdvanceInvoicePreviewBodyOneFinaPremiseIdRegExp:()=>O_,renderAdvanceInvoicePreviewBodyOneFinaPremiseIdMax:()=>D_,renderAdvanceInvoicePreviewBodyOneFinaOperatorOibMin:()=>q_,renderAdvanceInvoicePreviewBodyOneFinaOperatorOibMax:()=>N_,renderAdvanceInvoicePreviewBodyOneFinaDeviceIdRegExp:()=>T_,renderAdvanceInvoicePreviewBodyOneFinaDeviceIdMax:()=>b_,renderAdvanceInvoicePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>G_,renderAdvanceInvoicePreviewBodyOneDateServiceToRegExp:()=>E_,renderAdvanceInvoicePreviewBodyOneDateServiceRegExp:()=>__,renderAdvanceInvoicePreviewBodyOneDateRegExp:()=>o_,renderAdvanceInvoicePreviewBodyOneDateDueRegExp:()=>P_,renderAdvanceInvoicePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>S_,renderAdvanceInvoicePreviewBodyOneCustomerOneCountryCodeMin:()=>n_,renderAdvanceInvoicePreviewBodyOneCustomerOneCountryCodeMax:()=>A_,renderAdvanceInvoicePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>I_,renderAdvanceInvoicePreviewBodyOneCurrencyCodeMax:()=>g_,getShareableAdvanceInvoiceResponseTotalWithTaxMin:()=>n0,getShareableAdvanceInvoiceResponseTotalWithTaxMax:()=>A0,getShareableAdvanceInvoiceResponseTotalWithTaxConvertedMin:()=>O0,getShareableAdvanceInvoiceResponseTotalWithTaxConvertedMax:()=>b0,getShareableAdvanceInvoiceResponseTotalPaidMin:()=>T0,getShareableAdvanceInvoiceResponseTotalPaidMax:()=>q0,getShareableAdvanceInvoiceResponseTotalMin:()=>r0,getShareableAdvanceInvoiceResponseTotalMax:()=>v0,getShareableAdvanceInvoiceResponseTotalDueMin:()=>N0,getShareableAdvanceInvoiceResponseTotalDueMax:()=>G0,getShareableAdvanceInvoiceResponseTotalConvertedMin:()=>E0,getShareableAdvanceInvoiceResponseTotalConvertedMax:()=>D0,getShareableAdvanceInvoiceResponseShareableIdMax:()=>_0,getShareableAdvanceInvoiceResponseNumberMax:()=>hA,getShareableAdvanceInvoiceResponseItemsItemUnitMax:()=>W0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxMin:()=>K0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxMax:()=>y0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>$0,getShareableAdvanceInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>M0,getShareableAdvanceInvoiceResponseItemsItemTotalMin:()=>Y0,getShareableAdvanceInvoiceResponseItemsItemTotalMax:()=>x0,getShareableAdvanceInvoiceResponseItemsItemTotalConvertedMin:()=>V0,getShareableAdvanceInvoiceResponseItemsItemTotalConvertedMax:()=>F0,getShareableAdvanceInvoiceResponseItemsItemQuantityMin:()=>L0,getShareableAdvanceInvoiceResponseItemsItemQuantityMax:()=>H0,getShareableAdvanceInvoiceResponseItemsItemNameMax:()=>R0,getShareableAdvanceInvoiceResponseItemsItemItemIdMax:()=>U0,getShareableAdvanceInvoiceResponseItemsItemIdMax:()=>B0,getShareableAdvanceInvoiceResponseItemsItemDiscountsMax:()=>X0,getShareableAdvanceInvoiceResponseItemsItemDiscountsItemValueMin:()=>Q0,getShareableAdvanceInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>w0,getShareableAdvanceInvoiceResponseItemsItemDeliveryNoteIdMax:()=>k0,getShareableAdvanceInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>z0,getShareableAdvanceInvoiceResponseIssuerCountryCodeMin:()=>iA,getShareableAdvanceInvoiceResponseIssuerCountryCodeMax:()=>dA,getShareableAdvanceInvoiceResponseIssuerBankAccountTypeDefault:()=>aA,getShareableAdvanceInvoiceResponseIdMax:()=>lA,getShareableAdvanceInvoiceResponseFursDataIterationDefault:()=>u0,getShareableAdvanceInvoiceResponseEntityIdMax:()=>S0,getShareableAdvanceInvoiceResponseDateYearMin:()=>g0,getShareableAdvanceInvoiceResponseDateYearMax:()=>P0,getShareableAdvanceInvoiceResponseDateServiceToRegExp:()=>t0,getShareableAdvanceInvoiceResponseDateServiceRegExp:()=>J0,getShareableAdvanceInvoiceResponseCustomerIdMax:()=>sA,getShareableAdvanceInvoiceResponseCustomerCountryCodeMin:()=>e0,getShareableAdvanceInvoiceResponseCustomerCountryCodeMax:()=>o0,getShareableAdvanceInvoiceResponseCustomerBankAccountTypeDefault:()=>c0,getShareableAdvanceInvoiceResponseCurrencyCodeMax:()=>I0,getAdvanceInvoicesResponseDataItemTotalWithTaxMin:()=>KI,getAdvanceInvoicesResponseDataItemTotalWithTaxMax:()=>yI,getAdvanceInvoicesResponseDataItemTotalWithTaxConvertedMin:()=>mI,getAdvanceInvoicesResponseDataItemTotalWithTaxConvertedMax:()=>ZI,getAdvanceInvoicesResponseDataItemTotalPaidMin:()=>CI,getAdvanceInvoicesResponseDataItemTotalPaidMax:()=>jI,getAdvanceInvoicesResponseDataItemTotalMin:()=>YI,getAdvanceInvoicesResponseDataItemTotalMax:()=>xI,getAdvanceInvoicesResponseDataItemTotalDueMin:()=>pI,getAdvanceInvoicesResponseDataItemTotalDueMax:()=>fI,getAdvanceInvoicesResponseDataItemTotalConvertedMin:()=>kI,getAdvanceInvoicesResponseDataItemTotalConvertedMax:()=>UI,getAdvanceInvoicesResponseDataItemShareableIdMax:()=>zI,getAdvanceInvoicesResponseDataItemNumberMax:()=>BI,getAdvanceInvoicesResponseDataItemItemsItemUnitMax:()=>oS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxMin:()=>IS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxMax:()=>SS,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>_S,getAdvanceInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>ES,getAdvanceInvoicesResponseDataItemItemsItemTotalMin:()=>nS,getAdvanceInvoicesResponseDataItemItemsItemTotalMax:()=>AS,getAdvanceInvoicesResponseDataItemItemsItemTotalConvertedMin:()=>gS,getAdvanceInvoicesResponseDataItemItemsItemTotalConvertedMax:()=>PS,getAdvanceInvoicesResponseDataItemItemsItemQuantityMin:()=>sI,getAdvanceInvoicesResponseDataItemItemsItemQuantityMax:()=>eS,getAdvanceInvoicesResponseDataItemItemsItemNameMax:()=>aI,getAdvanceInvoicesResponseDataItemItemsItemItemIdMax:()=>bS,getAdvanceInvoicesResponseDataItemItemsItemIdMax:()=>dI,getAdvanceInvoicesResponseDataItemItemsItemDiscountsMax:()=>vS,getAdvanceInvoicesResponseDataItemItemsItemDiscountsItemValueMin:()=>cS,getAdvanceInvoicesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>rS,getAdvanceInvoicesResponseDataItemItemsItemDeliveryNoteIdMax:()=>OS,getAdvanceInvoicesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>DS,getAdvanceInvoicesResponseDataItemIssuerCountryCodeMin:()=>RI,getAdvanceInvoicesResponseDataItemIssuerCountryCodeMax:()=>LI,getAdvanceInvoicesResponseDataItemIssuerBankAccountTypeDefault:()=>HI,getAdvanceInvoicesResponseDataItemIdMax:()=>tI,getAdvanceInvoicesResponseDataItemFursDataIterationDefault:()=>lI,getAdvanceInvoicesResponseDataItemEntityIdMax:()=>FI,getAdvanceInvoicesResponseDataItemDateYearMin:()=>$I,getAdvanceInvoicesResponseDataItemDateYearMax:()=>MI,getAdvanceInvoicesResponseDataItemDateServiceToRegExp:()=>iI,getAdvanceInvoicesResponseDataItemDateServiceRegExp:()=>hI,getAdvanceInvoicesResponseDataItemCustomerIdMax:()=>WI,getAdvanceInvoicesResponseDataItemCustomerCountryCodeMin:()=>QI,getAdvanceInvoicesResponseDataItemCustomerCountryCodeMax:()=>wI,getAdvanceInvoicesResponseDataItemCustomerBankAccountTypeDefault:()=>XI,getAdvanceInvoicesResponseDataItemCurrencyCodeMax:()=>VI,getAdvanceInvoicesQueryLimitMax:()=>JI,getAdvanceInvoicesQueryLimitDefault:()=>uI,getAdvanceInvoiceVersionsPathIdRegExp:()=>iP,getAdvanceInvoiceByIdResponseTotalWithTaxMin:()=>sS,getAdvanceInvoiceByIdResponseTotalWithTaxMax:()=>eg,getAdvanceInvoiceByIdResponseTotalWithTaxConvertedMin:()=>Sg,getAdvanceInvoiceByIdResponseTotalWithTaxConvertedMax:()=>gg,getAdvanceInvoiceByIdResponseTotalPaidMin:()=>Pg,getAdvanceInvoiceByIdResponseTotalPaidMax:()=>_g,getAdvanceInvoiceByIdResponseTotalMin:()=>dS,getAdvanceInvoiceByIdResponseTotalMax:()=>aS,getAdvanceInvoiceByIdResponseTotalDueMin:()=>Eg,getAdvanceInvoiceByIdResponseTotalDueMax:()=>Dg,getAdvanceInvoiceByIdResponseTotalConvertedMin:()=>Ag,getAdvanceInvoiceByIdResponseTotalConvertedMax:()=>Ig,getAdvanceInvoiceByIdResponseShareableIdMax:()=>ng,getAdvanceInvoiceByIdResponseNumberMax:()=>ZS,getAdvanceInvoiceByIdResponseItemsItemUnitMax:()=>Jg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxMin:()=>Wg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxMax:()=>Qg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxConvertedMin:()=>Yg,getAdvanceInvoiceByIdResponseItemsItemTotalWithTaxConvertedMax:()=>xg,getAdvanceInvoiceByIdResponseItemsItemTotalMin:()=>Lg,getAdvanceInvoiceByIdResponseItemsItemTotalMax:()=>Hg,getAdvanceInvoiceByIdResponseItemsItemTotalConvertedMin:()=>wg,getAdvanceInvoiceByIdResponseItemsItemTotalConvertedMax:()=>Xg,getAdvanceInvoiceByIdResponseItemsItemQuantityMin:()=>Gg,getAdvanceInvoiceByIdResponseItemsItemQuantityMax:()=>ug,getAdvanceInvoiceByIdResponseItemsItemNameMax:()=>Ng,getAdvanceInvoiceByIdResponseItemsItemItemIdMax:()=>Vg,getAdvanceInvoiceByIdResponseItemsItemIdMax:()=>qg,getAdvanceInvoiceByIdResponseItemsItemDiscountsMax:()=>Rg,getAdvanceInvoiceByIdResponseItemsItemDiscountsItemValueMin:()=>tg,getAdvanceInvoiceByIdResponseItemsItemDiscountsItemTypeDefault:()=>Bg,getAdvanceInvoiceByIdResponseItemsItemDeliveryNoteIdMax:()=>yg,getAdvanceInvoiceByIdResponseItemsItemAdvanceInvoiceIdMax:()=>Kg,getAdvanceInvoiceByIdResponseIssuerCountryCodeMin:()=>CS,getAdvanceInvoiceByIdResponseIssuerCountryCodeMax:()=>jS,getAdvanceInvoiceByIdResponseIssuerBankAccountTypeDefault:()=>pS,getAdvanceInvoiceByIdResponseIdMax:()=>mS,getAdvanceInvoiceByIdResponseFursDataIterationDefault:()=>Og,getAdvanceInvoiceByIdResponseEntityIdMax:()=>cg,getAdvanceInvoiceByIdResponseDateYearMin:()=>rg,getAdvanceInvoiceByIdResponseDateYearMax:()=>vg,getAdvanceInvoiceByIdResponseDateServiceToRegExp:()=>Tg,getAdvanceInvoiceByIdResponseDateServiceRegExp:()=>bg,getAdvanceInvoiceByIdResponseCustomerIdMax:()=>fS,getAdvanceInvoiceByIdResponseCustomerCountryCodeMin:()=>lS,getAdvanceInvoiceByIdResponseCustomerCountryCodeMax:()=>hS,getAdvanceInvoiceByIdResponseCustomerBankAccountTypeDefault:()=>iS,getAdvanceInvoiceByIdResponseCurrencyCodeMax:()=>og,getAdvanceInvoiceByIdPathIdRegExp:()=>US,createCustomAdvanceInvoiceBodyPaymentsItemTagMax:()=>MS,createCustomAdvanceInvoiceBodyPaymentsItemReferenceMax:()=>zS,createCustomAdvanceInvoiceBodyPaymentsItemNoteMax:()=>kS,createCustomAdvanceInvoiceBodyPaymentsItemAmountExclusiveMin:()=>$S,createCustomAdvanceInvoiceBodyItemsItemUnitMax:()=>YS,createCustomAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>FS,createCustomAdvanceInvoiceBodyItemsItemQuantityMin:()=>wS,createCustomAdvanceInvoiceBodyItemsItemQuantityMax:()=>XS,createCustomAdvanceInvoiceBodyItemsItemDiscountsMax:()=>yS,createCustomAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>xS,createCustomAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>KS,createCustomAdvanceInvoiceBodyItemsItemDescriptionMax:()=>QS,createCustomAdvanceInvoiceBodyItemsItemDeliveryNoteIdMax:()=>VS,createCustomAdvanceInvoiceBodyIssuerCountryCodeMin:()=>qS,createCustomAdvanceInvoiceBodyIssuerCountryCodeMax:()=>NS,createCustomAdvanceInvoiceBodyIssuerBankAccountTypeDefault:()=>GS,createCustomAdvanceInvoiceBodyDateServiceToRegExp:()=>WS,createCustomAdvanceInvoiceBodyDateServiceRegExp:()=>HS,createCustomAdvanceInvoiceBodyDateRegExp:()=>TS,createCustomAdvanceInvoiceBodyDateDueRegExp:()=>LS,createCustomAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>BS,createCustomAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>uS,createCustomAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>JS,createCustomAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>tS,createCustomAdvanceInvoiceBodyCurrencyCodeMax:()=>RS,createAdvanceInvoiceBodyPaymentsItemTagMax:()=>PI,createAdvanceInvoiceBodyPaymentsItemReferenceMax:()=>_I,createAdvanceInvoiceBodyPaymentsItemNoteMax:()=>EI,createAdvanceInvoiceBodyPaymentsItemAmountExclusiveMin:()=>gI,createAdvanceInvoiceBodyItemsItemUnitMax:()=>rI,createAdvanceInvoiceBodyItemsItemSaveItemDefault:()=>SI,createAdvanceInvoiceBodyItemsItemQuantityMin:()=>oI,createAdvanceInvoiceBodyItemsItemQuantityMax:()=>cI,createAdvanceInvoiceBodyItemsItemDiscountsMax:()=>AI,createAdvanceInvoiceBodyItemsItemDiscountsItemValueMin:()=>vI,createAdvanceInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>nI,createAdvanceInvoiceBodyItemsItemDescriptionMax:()=>eI,createAdvanceInvoiceBodyItemsItemDeliveryNoteIdMax:()=>II,createAdvanceInvoiceBodyIssuerCountryCodeMin:()=>Z0,createAdvanceInvoiceBodyIssuerCountryCodeMax:()=>C0,createAdvanceInvoiceBodyIssuerBankAccountTypeDefault:()=>j0,createAdvanceInvoiceBodyFinaPremiseIdRegExp:()=>OI,createAdvanceInvoiceBodyFinaPremiseIdMax:()=>DI,createAdvanceInvoiceBodyFinaOperatorOibMin:()=>qI,createAdvanceInvoiceBodyFinaOperatorOibMax:()=>NI,createAdvanceInvoiceBodyFinaDeviceIdRegExp:()=>TI,createAdvanceInvoiceBodyFinaDeviceIdMax:()=>bI,createAdvanceInvoiceBodyExpectedTotalWithTaxExclusiveMin:()=>GI,createAdvanceInvoiceBodyDateServiceToRegExp:()=>s0,createAdvanceInvoiceBodyDateServiceRegExp:()=>a0,createAdvanceInvoiceBodyDateRegExp:()=>m0,createAdvanceInvoiceBodyDateDueRegExp:()=>d0,createAdvanceInvoiceBodyCustomerTwoSaveCustomerDefault:()=>h0,createAdvanceInvoiceBodyCustomerOneCountryCodeMin:()=>p0,createAdvanceInvoiceBodyCustomerOneCountryCodeMax:()=>f0,createAdvanceInvoiceBodyCustomerOneBankAccountTypeDefault:()=>l0,createAdvanceInvoiceBodyCurrencyCodeMax:()=>i0,VoidAdvanceInvoiceResponse:()=>Y0e,VoidAdvanceInvoiceParams:()=>Q0e,VoidAdvanceInvoiceHeader:()=>w0e,VoidAdvanceInvoiceBody:()=>X0e,UpdateAdvanceInvoiceResponse:()=>N0e,UpdateAdvanceInvoiceParams:()=>b0e,UpdateAdvanceInvoiceHeader:()=>T0e,UpdateAdvanceInvoiceBody:()=>q0e,RenderAdvanceInvoicePreviewQueryParams:()=>L0e,RenderAdvanceInvoicePreviewHeader:()=>H0e,RenderAdvanceInvoicePreviewBody:()=>W0e,GetShareableAdvanceInvoiceResponse:()=>sAe,GetShareableAdvanceInvoicePdfQueryParams:()=>r0e,GetShareableAdvanceInvoicePdfParams:()=>c0e,GetShareableAdvanceInvoiceParams:()=>aAe,GetShareableAdvanceInvoiceHtmlQueryParams:()=>o0e,GetShareableAdvanceInvoiceHtmlParams:()=>e0e,GetAdvanceInvoicesResponse:()=>S0e,GetAdvanceInvoicesQueryParams:()=>A0e,GetAdvanceInvoicesHeader:()=>I0e,GetAdvanceInvoiceVersionsResponse:()=>J0e,GetAdvanceInvoiceVersionsParams:()=>G0e,GetAdvanceInvoiceVersionsHeader:()=>u0e,GetAdvanceInvoiceVersionResponse:()=>R0e,GetAdvanceInvoiceVersionParams:()=>t0e,GetAdvanceInvoiceVersionHeader:()=>B0e,GetAdvanceInvoiceByIdResponse:()=>O0e,GetAdvanceInvoiceByIdQueryParams:()=>E0e,GetAdvanceInvoiceByIdParams:()=>_0e,GetAdvanceInvoiceByIdHeader:()=>D0e,CreateCustomAdvanceInvoiceHeader:()=>g0e,CreateCustomAdvanceInvoiceBody:()=>P0e,CreateAdvanceInvoiceHeader:()=>v0e,CreateAdvanceInvoiceBody:()=>n0e});var aAe=r({shareableId:e().describe("Shareable document token")}),lA=36,hA=100,iA=2,dA=2,aA="iban",sA=36,e0=2,o0=2,c0="iban",r0=-140737488355328,v0=140737488355327,n0=-140737488355328,A0=140737488355327,I0=3,S0=36,g0=-2147483648,P0=2147483647,_0=64,E0=-140737488355328,D0=140737488355327,O0=-140737488355328,b0=140737488355327,T0=-140737488355328,q0=140737488355327,N0=-140737488355328,G0=140737488355327,u0=0,J0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,t0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,B0=36,R0=500,L0=-140737488355328,H0=140737488355327,W0=50,Q0=0,w0="percent",X0=5,Y0=-140737488355328,x0=140737488355327,K0=-140737488355328,y0=140737488355327,V0=-140737488355328,F0=140737488355327,$0=-140737488355328,M0=140737488355327,z0=36,k0=36,U0=36,sAe=r({id:e().max(lA),number:e().max(hA),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(iA).max(dA).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aA).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(sA).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(e0).max(o0).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(c0).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(r0).max(v0),total_with_tax:v().min(n0).max(A0),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(I0),entity_id:e().max(S0),date_year:v().min(g0).max(P0),shareable_id:e().max(_0).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(E0).max(D0).nullish(),total_with_tax_converted:v().min(O0).max(b0).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the advance invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(T0).max(q0),total_due:v().min(N0).max(G0),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(u0),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(J0).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(t0).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(B0),name:e().max(R0),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
40
- Only present if user originally sent gross price.
41
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(L0).max(H0),unit:e().max(W0).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Q0).describe("Discount value"),type:g(["percent","amount"]).default(w0).describe("Discount type: 'percent' (default) or 'amount'")})).max(X0).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Y0).max(x0),total_with_tax:v().min(K0).max(y0),total_converted:v().min(V0).max(F0).nullish(),total_with_tax_converted:v().min($0).max(M0).nullish(),advance_invoice_id:e().max(z0).nullish(),delivery_note_id:e().max(k0).nullish(),item_id:e().max(U0).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),e0e=r({shareableId:e().describe("Shareable document token")}),o0e=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),c0e=r({shareableId:e().describe("Shareable document token")}),r0e=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),v0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),m0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Z0=2,C0=2,j0="iban",p0=2,f0=2,l0="iban",h0=!0,i0=3,d0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,a0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,s0=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,eI=2000,oI=-140737488355328,cI=140737488355327,rI=50,vI=0,nI="percent",AI=5,II=36,SI=!0,gI=0,PI=100,_I=100,EI=500,DI=20,OI=/^[0-9a-zA-Z]{1,20}$/,bI=20,TI=/^\d{1,20}$/,qI=11,NI=11,GI=0,n0e=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(m0).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Z0).max(C0).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(j0).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(p0).max(f0).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(l0).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(h0).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(i0).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(d0).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(a0).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(s0).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(eI).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(oI).max(cI),unit:e().max(rI).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(vI).describe("Discount value"),type:g(["percent","amount"]).default(nI).describe("Discount type: 'percent' (default) or 'amount'")})).max(AI).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(II).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
42
- When provided, the item's name, description, price, and taxes are used as defaults.
43
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(SI).describe(`Whether to save this item to the catalog.
44
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
45
- Default: true.`)})).min(1).describe("Line items for the advance invoice. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents. Creates document relations automatically."),payments:P(r({amount:v().gt(gI).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(PI).nullish(),reference:e().max(_I).nullish(),note:e().max(EI).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(DI).regex(OI).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(bI).regex(TI).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(qI).max(NI).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(GI).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),uI=10,JI=100,A0e=r({limit:v().min(1).max(JI).default(uI).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, date_due, paid_in_full, voided_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().optional().describe(`Full-text search query to filter results across multiple fields.
46
- Searches are case-insensitive and match partial strings.
47
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this advance invoice\n- `document_relations` - Linked documents (invoices, credit notes, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),I0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),tI=36,BI=100,RI=2,LI=2,HI="iban",WI=36,QI=2,wI=2,XI="iban",YI=-140737488355328,xI=140737488355327,KI=-140737488355328,yI=140737488355327,VI=3,FI=36,$I=-2147483648,MI=2147483647,zI=64,kI=-140737488355328,UI=140737488355327,mI=-140737488355328,ZI=140737488355327,CI=-140737488355328,jI=140737488355327,pI=-140737488355328,fI=140737488355327,lI=0,hI=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,iI=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,dI=36,aI=500,sI=-140737488355328,eS=140737488355327,oS=50,cS=0,rS="percent",vS=5,nS=-140737488355328,AS=140737488355327,IS=-140737488355328,SS=140737488355327,gS=-140737488355328,PS=140737488355327,_S=-140737488355328,ES=140737488355327,DS=36,OS=36,bS=36,S0e=r({data:P(r({id:e().max(tI),number:e().max(BI),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(RI).max(LI).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(HI).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(WI).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(QI).max(wI).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(XI).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(YI).max(xI),total_with_tax:v().min(KI).max(yI),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(VI),entity_id:e().max(FI),date_year:v().min($I).max(MI),shareable_id:e().max(zI).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(kI).max(UI).nullish(),total_with_tax_converted:v().min(mI).max(ZI).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the advance invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(CI).max(jI),total_due:v().min(pI).max(fI),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(lI),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(hI).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(iI).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(dI),name:e().max(aI),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
48
- Only present if user originally sent gross price.
49
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(sI).max(eS),unit:e().max(oS).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(cS).describe("Discount value"),type:g(["percent","amount"]).default(rS).describe("Discount type: 'percent' (default) or 'amount'")})).max(vS).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(nS).max(AS),total_with_tax:v().min(IS).max(SS),total_converted:v().min(gS).max(PS).nullish(),total_with_tax_converted:v().min(_S).max(ES).nullish(),advance_invoice_id:e().max(DS).nullish(),delivery_note_id:e().max(OS).nullish(),item_id:e().max(bS).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),g0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),TS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qS=2,NS=2,GS="iban",uS=2,JS=2,tS="iban",BS=!0,RS=3,LS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,HS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,WS=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,QS=2000,wS=-140737488355328,XS=140737488355327,YS=50,xS=0,KS="percent",yS=5,VS=36,FS=!0,$S=0,MS=100,zS=100,kS=500,P0e=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(TS).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(qS).max(NS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(GS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(uS).max(JS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(tS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(BS).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(RS).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),date_due:e().regex(LS).nullish().describe("Document due date in YYYY-MM-DD format"),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(HS).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(WS).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(QS).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(wS).max(XS),unit:e().max(YS).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(xS).describe("Discount value"),type:g(["percent","amount"]).default(KS).describe("Discount type: 'percent' (default) or 'amount'")})).max(yS).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),delivery_note_id:e().max(VS).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
50
- When provided, the item's name, description, price, and taxes are used as defaults.
51
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(FS).describe(`Whether to save this item to the catalog.
52
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
53
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents."),payments:P(r({amount:v().gt($S).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(MS).nullish(),reference:e().max(zS).nullish(),note:e().max(kS).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the advance invoice. If amounts are not provided, the advance invoice total is split equally among all payments. Automatically updates payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish()}),US=/^[a-z]{3,4}_[0-9a-f]{24}$/,_0e=r({id:e().regex(US).describe("Unique resource identifier")}),E0e=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this advance invoice\n- `document_relations` - Linked documents (invoices, credit notes, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),D0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),mS=36,ZS=100,CS=2,jS=2,pS="iban",fS=36,lS=2,hS=2,iS="iban",dS=-140737488355328,aS=140737488355327,sS=-140737488355328,eg=140737488355327,og=3,cg=36,rg=-2147483648,vg=2147483647,ng=64,Ag=-140737488355328,Ig=140737488355327,Sg=-140737488355328,gg=140737488355327,Pg=-140737488355328,_g=140737488355327,Eg=-140737488355328,Dg=140737488355327,Og=0,bg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Tg=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qg=36,Ng=500,Gg=-140737488355328,ug=140737488355327,Jg=50,tg=0,Bg="percent",Rg=5,Lg=-140737488355328,Hg=140737488355327,Wg=-140737488355328,Qg=140737488355327,wg=-140737488355328,Xg=140737488355327,Yg=-140737488355328,xg=140737488355327,Kg=36,yg=36,Vg=36,O0e=r({id:e().max(mS),number:e().max(ZS),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(CS).max(jS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(pS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(fS).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(lS).max(hS).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(iS).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(dS).max(aS),total_with_tax:v().min(sS).max(eg),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(og),entity_id:e().max(cg),date_year:v().min(rg).max(vg),shareable_id:e().max(ng).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Ag).max(Ig).nullish(),total_with_tax_converted:v().min(Sg).max(gg).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the advance invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(Pg).max(_g),total_due:v().min(Eg).max(Dg),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(Og),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(bg).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Tg).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(qg),name:e().max(Ng),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
54
- Only present if user originally sent gross price.
55
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(Gg).max(ug),unit:e().max(Jg).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(tg).describe("Discount value"),type:g(["percent","amount"]).default(Bg).describe("Discount type: 'percent' (default) or 'amount'")})).max(Rg).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Lg).max(Hg),total_with_tax:v().min(Wg).max(Qg),total_converted:v().min(wg).max(Xg).nullish(),total_with_tax_converted:v().min(Yg).max(xg).nullish(),advance_invoice_id:e().max(Kg).nullish(),delivery_note_id:e().max(yg).nullish(),item_id:e().max(Vg).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),Fg=/^[a-z]{3,4}_[0-9a-f]{24}$/,b0e=r({id:e().regex(Fg).describe("Unique resource identifier")}),T0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$g=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Mg=2,zg=2,kg="iban",Ug=2,mg=2,Zg="iban",Cg=!0,jg=2000,pg=-140737488355328,fg=140737488355327,lg=50,hg=0,ig="percent",dg=5,ag=36,sg=!0,eP=500,oP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,q0e=r({date:e().regex($g).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Mg).max(zg).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(kg).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(D().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Ug).max(mg).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Zg).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Cg).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(jg).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(pg).max(fg),unit:e().max(lg).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(hg).describe("Discount value"),type:g(["percent","amount"]).default(ig).describe("Discount type: 'percent' (default) or 'amount'")})).max(dg).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(ag).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
56
- When provided, the item's name, description, price, and taxes are used as defaults.
57
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(sg).describe(`Whether to save this item to the catalog.
58
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
59
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:O(e(),D()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(eP).optional().describe("Reason for the change. Stored in version history for audit trail."),date_due:e().regex(oP).nullish().describe("Payment due date (YYYY-MM-DD or ISO datetime format). Set to null to clear."),linked_documents:P(e().min(1)).optional().describe("Link this advance invoice to other documents. Replaces existing links. Accepts invoice IDs (inv_xxx).")}),cP=36,rP=100,vP=2,nP=2,AP="iban",IP=36,SP=2,gP=2,PP="iban",_P=-140737488355328,EP=140737488355327,DP=-140737488355328,OP=140737488355327,bP=3,TP=36,qP=-2147483648,NP=2147483647,GP=64,uP=-140737488355328,JP=140737488355327,tP=-140737488355328,BP=140737488355327,RP=-140737488355328,LP=140737488355327,HP=-140737488355328,WP=140737488355327,QP=0,wP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,XP=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,YP=36,xP=500,KP=-140737488355328,yP=140737488355327,VP=50,FP=0,$P="percent",MP=5,zP=-140737488355328,kP=140737488355327,UP=-140737488355328,mP=140737488355327,ZP=-140737488355328,CP=140737488355327,jP=-140737488355328,pP=140737488355327,fP=36,lP=36,hP=36,N0e=r({id:e().max(cP),number:e().max(rP),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(vP).max(nP).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(AP).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(IP).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(SP).max(gP).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(PP).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(_P).max(EP),total_with_tax:v().min(DP).max(OP),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(bP),entity_id:e().max(TP),date_year:v().min(qP).max(NP),shareable_id:e().max(GP).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(uP).max(JP).nullish(),total_with_tax_converted:v().min(tP).max(BP).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the advance invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(RP).max(LP),total_due:v().min(HP).max(WP),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(QP),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(wP).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(XP).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(YP),name:e().max(xP),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
60
- Only present if user originally sent gross price.
61
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(KP).max(yP),unit:e().max(VP).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(FP).describe("Discount value"),type:g(["percent","amount"]).default($P).describe("Discount type: 'percent' (default) or 'amount'")})).max(MP).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(zP).max(kP),total_with_tax:v().min(UP).max(mP),total_converted:v().min(ZP).max(CP).nullish(),total_with_tax_converted:v().min(jP).max(pP).nullish(),advance_invoice_id:e().max(fP).nullish(),delivery_note_id:e().max(lP).nullish(),item_id:e().max(hP).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments"),iP=/^[a-z]{3,4}_[0-9a-f]{24}$/,G0e=r({id:e().regex(iP).describe("Unique resource identifier")}),u0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),J0e=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),t0e=r({id:e().describe("Advance Invoice ID"),version:v().min(1).describe("Version number")}),B0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),R0e=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),dP="modern",aP=2,sP=5,e_="true",L0e=r({template:g(["modern","classic","minimal","fashion"]).default(dP).describe("Document template design to use"),locale:e().min(aP).max(sP).nullish(),partial:g(["true","false"]).default(e_).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),H0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),o_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,c_=2,r_=2,v_="iban",n_=2,A_=2,I_="iban",S_=!0,g_=3,P_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,__=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,E_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,D_=20,O_=/^[0-9a-zA-Z]{1,20}$/,b_=20,T_=/^\d{1,20}$/,q_=11,N_=11,G_=0,u_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,J_=2,t_=2,B_="iban",R_=2,L_=2,H_="iban",W_=!0,Q_=3,w_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,X_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Y_=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,x_=2000,K_=-140737488355328,y_=140737488355327,V_=50,F_=0,$_="percent",M_=5,z_=36,k_=!0,U_=20,m_=/^[0-9a-zA-Z]{1,20}$/,Z_=20,C_=/^\d{1,20}$/,j_=11,p_=11,f_=0,W0e=J([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(o_).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(c_).max(r_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(v_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(n_).max(A_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(I_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(S_).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(g_).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(P_).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(__).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(E_).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:O(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max(D_).regex(O_).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(b_).regex(T_).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(q_).max(N_).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(G_).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(u_).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(J_).max(t_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(B_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(R_).max(L_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(H_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(W_).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Q_).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(w_).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(X_).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Y_).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(x_).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(K_).max(y_),unit:e().max(V_).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(F_).describe("Discount value"),type:g(["percent","amount"]).default($_).describe("Discount type: 'percent' (default) or 'amount'")})).max(M_).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(z_).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
62
- When provided, the item's name, description, price, and taxes are used as defaults.
63
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(k_).describe(`Whether to save this item to the catalog.
64
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
65
- Default: true.`)})).min(1).describe("Line items for the advance invoice. At least one item is required."),fina:r({premise_id:e().min(1).max(U_).regex(m_).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(Z_).regex(C_).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(j_).max(p_).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(f_).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),l_=/^[a-z]{3,4}_[0-9a-f]{24}$/,Q0e=r({id:e().regex(l_).describe("Unique resource identifier")}),w0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),X0e=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate advance invoice', 'Technical error')")}),h_=36,i_=100,d_=2,a_=2,s_="iban",eE=36,oE=2,cE=2,rE="iban",vE=-140737488355328,nE=140737488355327,AE=-140737488355328,IE=140737488355327,SE=3,gE=36,PE=-2147483648,_E=2147483647,EE=64,DE=-140737488355328,OE=140737488355327,bE=-140737488355328,TE=140737488355327,qE=-140737488355328,NE=140737488355327,GE=-140737488355328,uE=140737488355327,JE=0,tE=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,BE=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RE=36,LE=500,HE=-140737488355328,WE=140737488355327,QE=50,wE=0,XE="percent",YE=5,xE=-140737488355328,KE=140737488355327,yE=-140737488355328,VE=140737488355327,FE=-140737488355328,$E=140737488355327,ME=-140737488355328,zE=140737488355327,kE=36,UE=36,mE=36,Y0e=r({id:e().max(h_),number:e().max(i_),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the advance invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(d_).max(a_).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(s_).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(eE).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(oE).max(cE).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(rE).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(vE).max(nE),total_with_tax:v().min(AE).max(IE),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(SE),entity_id:e().max(gE),date_year:v().min(PE).max(_E),shareable_id:e().max(EE).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(DE).max(OE).nullish(),total_with_tax_converted:v().min(bE).max(TE).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the advance invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(qE).max(NE),total_due:v().min(GE).max(uE),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(JE),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(tE).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(BE).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),items:P(r({id:e().max(RE),name:e().max(LE),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
66
- Only present if user originally sent gross price.
67
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(HE).max(WE),unit:e().max(QE).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(wE).describe("Discount value"),type:g(["percent","amount"]).default(XE).describe("Discount type: 'percent' (default) or 'amount'")})).max(YE).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(xE).max(KE),total_with_tax:v().min(yE).max(VE),total_converted:v().min(FE).max($E).nullish(),total_with_tax_converted:v().min(ME).max(zE).nullish(),advance_invoice_id:e().max(kE).nullish(),delivery_note_id:e().max(UE).nullish(),item_id:e().max(mE).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Advance invoice for prepayments");var bc={};Q(bc,{searchCompanyRegistryResponseDataItemCountryCodeMin:()=>pE,searchCompanyRegistryResponseDataItemCountryCodeMax:()=>fE,searchCompanyRegistryQueryQMin:()=>jE,searchCompanyRegistryQueryCountryCodeMin:()=>ZE,searchCompanyRegistryQueryCountryCodeMax:()=>CE,getSupportedCountriesResponseDataItemMin:()=>lE,getSupportedCountriesResponseDataItemMax:()=>hE,SearchCompanyRegistryResponse:()=>K0e,SearchCompanyRegistryQueryParams:()=>x0e,GetSupportedCountriesResponse:()=>y0e});var ZE=2,CE=2,jE=2,x0e=r({country_code:e().min(ZE).max(CE).describe("ISO 3166-1 alpha-2 country code to search in (e.g., SI, AT, HR)"),q:e().min(jE).describe("Search query - company name or tax number (min 2 characters)"),limit:e().optional().describe("Maximum number of results (default: 10, max: 50)")}),pE=2,fE=2,K0e=r({data:P(r({id:e(),country_code:e().min(pE).max(fE),registration_number:e(),tax_number:e().nullable(),name:e(),address:e().nullable(),post_code:e().nullable(),city:e().nullable(),legal_form:e().nullable(),bank_accounts:P(r({iban:e().describe("IBAN or bank account number"),bank:e().optional().describe("Bank name or code"),is_active:A().optional().describe("Whether this account is currently active")})),status:e()}).describe("Company from public registry for autocomplete"))}),lE=2,hE=2,y0e=r({data:P(e().min(lE).max(hE))}).describe("List of country codes with registry data available");var Tc={};Q(Tc,{voidCreditNoteResponseTotalWithTaxMin:()=>bN,voidCreditNoteResponseTotalWithTaxMax:()=>TN,voidCreditNoteResponseTotalWithTaxConvertedMin:()=>RN,voidCreditNoteResponseTotalWithTaxConvertedMax:()=>LN,voidCreditNoteResponseTotalPaidMin:()=>HN,voidCreditNoteResponseTotalPaidMax:()=>WN,voidCreditNoteResponseTotalMin:()=>DN,voidCreditNoteResponseTotalMax:()=>ON,voidCreditNoteResponseTotalDueMin:()=>QN,voidCreditNoteResponseTotalDueMax:()=>wN,voidCreditNoteResponseTotalConvertedMin:()=>tN,voidCreditNoteResponseTotalConvertedMax:()=>BN,voidCreditNoteResponseShareableIdMax:()=>JN,voidCreditNoteResponseNumberMax:()=>nN,voidCreditNoteResponseItemsItemUnitMax:()=>MN,voidCreditNoteResponseItemsItemTotalWithTaxMin:()=>CN,voidCreditNoteResponseItemsItemTotalWithTaxMax:()=>jN,voidCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>lN,voidCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>hN,voidCreditNoteResponseItemsItemTotalMin:()=>mN,voidCreditNoteResponseItemsItemTotalMax:()=>ZN,voidCreditNoteResponseItemsItemTotalConvertedMin:()=>pN,voidCreditNoteResponseItemsItemTotalConvertedMax:()=>fN,voidCreditNoteResponseItemsItemQuantityMin:()=>FN,voidCreditNoteResponseItemsItemQuantityMax:()=>$N,voidCreditNoteResponseItemsItemNameMax:()=>VN,voidCreditNoteResponseItemsItemItemIdMax:()=>sN,voidCreditNoteResponseItemsItemIdMax:()=>yN,voidCreditNoteResponseItemsItemDiscountsMax:()=>UN,voidCreditNoteResponseItemsItemDiscountsItemValueMin:()=>zN,voidCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>kN,voidCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>aN,voidCreditNoteResponseItemsItemCreditNoteIdMax:()=>iN,voidCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>dN,voidCreditNoteResponseIssuerCountryCodeMin:()=>AN,voidCreditNoteResponseIssuerCountryCodeMax:()=>IN,voidCreditNoteResponseIssuerBankAccountTypeDefault:()=>SN,voidCreditNoteResponseIdMax:()=>vN,voidCreditNoteResponseFursDataIterationDefault:()=>XN,voidCreditNoteResponseEntityIdMax:()=>NN,voidCreditNoteResponseDateYearMin:()=>GN,voidCreditNoteResponseDateYearMax:()=>uN,voidCreditNoteResponseDateServiceToRegExp:()=>KN,voidCreditNoteResponseDateServiceRegExp:()=>xN,voidCreditNoteResponseDateDueRegExp:()=>YN,voidCreditNoteResponseCustomerIdMax:()=>gN,voidCreditNoteResponseCustomerCountryCodeMin:()=>PN,voidCreditNoteResponseCustomerCountryCodeMax:()=>_N,voidCreditNoteResponseCustomerBankAccountTypeDefault:()=>EN,voidCreditNoteResponseCurrencyCodeMax:()=>qN,voidCreditNotePathIdRegExp:()=>rN,updateCreditNoteResponseTotalWithTaxMin:()=>uT,updateCreditNoteResponseTotalWithTaxMax:()=>JT,updateCreditNoteResponseTotalWithTaxConvertedMin:()=>wT,updateCreditNoteResponseTotalWithTaxConvertedMax:()=>XT,updateCreditNoteResponseTotalPaidMin:()=>YT,updateCreditNoteResponseTotalPaidMax:()=>xT,updateCreditNoteResponseTotalMin:()=>NT,updateCreditNoteResponseTotalMax:()=>GT,updateCreditNoteResponseTotalDueMin:()=>KT,updateCreditNoteResponseTotalDueMax:()=>yT,updateCreditNoteResponseTotalConvertedMin:()=>WT,updateCreditNoteResponseTotalConvertedMax:()=>QT,updateCreditNoteResponseShareableIdMax:()=>HT,updateCreditNoteResponseNumberMax:()=>PT,updateCreditNoteResponseItemsItemUnitMax:()=>ZT,updateCreditNoteResponseItemsItemTotalWithTaxMin:()=>hT,updateCreditNoteResponseItemsItemTotalWithTaxMax:()=>iT,updateCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>sT,updateCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>eq,updateCreditNoteResponseItemsItemTotalMin:()=>fT,updateCreditNoteResponseItemsItemTotalMax:()=>lT,updateCreditNoteResponseItemsItemTotalConvertedMin:()=>dT,updateCreditNoteResponseItemsItemTotalConvertedMax:()=>aT,updateCreditNoteResponseItemsItemQuantityMin:()=>UT,updateCreditNoteResponseItemsItemQuantityMax:()=>mT,updateCreditNoteResponseItemsItemNameMax:()=>kT,updateCreditNoteResponseItemsItemItemIdMax:()=>vq,updateCreditNoteResponseItemsItemIdMax:()=>zT,updateCreditNoteResponseItemsItemDiscountsMax:()=>pT,updateCreditNoteResponseItemsItemDiscountsItemValueMin:()=>CT,updateCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>jT,updateCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>rq,updateCreditNoteResponseItemsItemCreditNoteIdMax:()=>oq,updateCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>cq,updateCreditNoteResponseIssuerCountryCodeMin:()=>_T,updateCreditNoteResponseIssuerCountryCodeMax:()=>ET,updateCreditNoteResponseIssuerBankAccountTypeDefault:()=>DT,updateCreditNoteResponseIdMax:()=>gT,updateCreditNoteResponseFursDataIterationDefault:()=>VT,updateCreditNoteResponseEntityIdMax:()=>BT,updateCreditNoteResponseDateYearMin:()=>RT,updateCreditNoteResponseDateYearMax:()=>LT,updateCreditNoteResponseDateServiceToRegExp:()=>MT,updateCreditNoteResponseDateServiceRegExp:()=>$T,updateCreditNoteResponseDateDueRegExp:()=>FT,updateCreditNoteResponseCustomerIdMax:()=>OT,updateCreditNoteResponseCustomerCountryCodeMin:()=>bT,updateCreditNoteResponseCustomerCountryCodeMax:()=>TT,updateCreditNoteResponseCustomerBankAccountTypeDefault:()=>qT,updateCreditNoteResponseCurrencyCodeMax:()=>tT,updateCreditNotePathIdRegExp:()=>C2,updateCreditNoteBodyItemsItemUnitMax:()=>cT,updateCreditNoteBodyItemsItemSaveItemDefault:()=>IT,updateCreditNoteBodyItemsItemQuantityMin:()=>eT,updateCreditNoteBodyItemsItemQuantityMax:()=>oT,updateCreditNoteBodyItemsItemDiscountsMax:()=>nT,updateCreditNoteBodyItemsItemDiscountsItemValueMin:()=>rT,updateCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>vT,updateCreditNoteBodyItemsItemDescriptionMax:()=>s2,updateCreditNoteBodyItemsItemDeliveryNoteIdMax:()=>AT,updateCreditNoteBodyIssuerOneCountryCodeMin:()=>p2,updateCreditNoteBodyIssuerOneCountryCodeMax:()=>f2,updateCreditNoteBodyIssuerOneBankAccountTypeDefault:()=>l2,updateCreditNoteBodyDateRegExp:()=>j2,updateCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>a2,updateCreditNoteBodyCustomerOneCountryCodeMin:()=>h2,updateCreditNoteBodyCustomerOneCountryCodeMax:()=>i2,updateCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>d2,updateCreditNoteBodyChangeReasonMax:()=>ST,renderCreditNotePreviewQueryTemplateDefault:()=>Aq,renderCreditNotePreviewQueryPartialDefault:()=>gq,renderCreditNotePreviewQueryLocaleMin:()=>Iq,renderCreditNotePreviewQueryLocaleMax:()=>Sq,renderCreditNotePreviewBodyTwoItemsItemUnitMax:()=>Cq,renderCreditNotePreviewBodyTwoItemsItemSaveItemDefault:()=>hq,renderCreditNotePreviewBodyTwoItemsItemQuantityMin:()=>mq,renderCreditNotePreviewBodyTwoItemsItemQuantityMax:()=>Zq,renderCreditNotePreviewBodyTwoItemsItemDiscountsMax:()=>fq,renderCreditNotePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>jq,renderCreditNotePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>pq,renderCreditNotePreviewBodyTwoItemsItemDescriptionMax:()=>Uq,renderCreditNotePreviewBodyTwoItemsItemDeliveryNoteIdMax:()=>lq,renderCreditNotePreviewBodyTwoIssuerCountryCodeMin:()=>Xq,renderCreditNotePreviewBodyTwoIssuerCountryCodeMax:()=>Yq,renderCreditNotePreviewBodyTwoIssuerBankAccountTypeDefault:()=>xq,renderCreditNotePreviewBodyTwoFinaPremiseIdRegExp:()=>dq,renderCreditNotePreviewBodyTwoFinaPremiseIdMax:()=>iq,renderCreditNotePreviewBodyTwoFinaOperatorOibMin:()=>eN,renderCreditNotePreviewBodyTwoFinaOperatorOibMax:()=>oN,renderCreditNotePreviewBodyTwoFinaDeviceIdRegExp:()=>sq,renderCreditNotePreviewBodyTwoFinaDeviceIdMax:()=>aq,renderCreditNotePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>cN,renderCreditNotePreviewBodyTwoDateServiceToRegExp:()=>kq,renderCreditNotePreviewBodyTwoDateServiceRegExp:()=>zq,renderCreditNotePreviewBodyTwoDateRegExp:()=>wq,renderCreditNotePreviewBodyTwoDateDueRegExp:()=>Mq,renderCreditNotePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>Fq,renderCreditNotePreviewBodyTwoCustomerOneCountryCodeMin:()=>Kq,renderCreditNotePreviewBodyTwoCustomerOneCountryCodeMax:()=>yq,renderCreditNotePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>Vq,renderCreditNotePreviewBodyTwoCurrencyCodeMax:()=>$q,renderCreditNotePreviewBodyOneIssuerCountryCodeMin:()=>_q,renderCreditNotePreviewBodyOneIssuerCountryCodeMax:()=>Eq,renderCreditNotePreviewBodyOneIssuerBankAccountTypeDefault:()=>Dq,renderCreditNotePreviewBodyOneFinaPremiseIdRegExp:()=>Bq,renderCreditNotePreviewBodyOneFinaPremiseIdMax:()=>tq,renderCreditNotePreviewBodyOneFinaOperatorOibMin:()=>Hq,renderCreditNotePreviewBodyOneFinaOperatorOibMax:()=>Wq,renderCreditNotePreviewBodyOneFinaDeviceIdRegExp:()=>Lq,renderCreditNotePreviewBodyOneFinaDeviceIdMax:()=>Rq,renderCreditNotePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>Qq,renderCreditNotePreviewBodyOneDateServiceToRegExp:()=>Jq,renderCreditNotePreviewBodyOneDateServiceRegExp:()=>uq,renderCreditNotePreviewBodyOneDateRegExp:()=>Pq,renderCreditNotePreviewBodyOneDateDueRegExp:()=>Gq,renderCreditNotePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>qq,renderCreditNotePreviewBodyOneCustomerOneCountryCodeMin:()=>Oq,renderCreditNotePreviewBodyOneCustomerOneCountryCodeMax:()=>bq,renderCreditNotePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Tq,renderCreditNotePreviewBodyOneCurrencyCodeMax:()=>Nq,getShareableCreditNoteResponseTotalWithTaxMin:()=>ID,getShareableCreditNoteResponseTotalWithTaxMax:()=>SD,getShareableCreditNoteResponseTotalWithTaxConvertedMin:()=>TD,getShareableCreditNoteResponseTotalWithTaxConvertedMax:()=>qD,getShareableCreditNoteResponseTotalPaidMin:()=>ND,getShareableCreditNoteResponseTotalPaidMax:()=>GD,getShareableCreditNoteResponseTotalMin:()=>nD,getShareableCreditNoteResponseTotalMax:()=>AD,getShareableCreditNoteResponseTotalDueMin:()=>uD,getShareableCreditNoteResponseTotalDueMax:()=>JD,getShareableCreditNoteResponseTotalConvertedMin:()=>OD,getShareableCreditNoteResponseTotalConvertedMax:()=>bD,getShareableCreditNoteResponseShareableIdMax:()=>DD,getShareableCreditNoteResponseNumberMax:()=>dE,getShareableCreditNoteResponseItemsItemUnitMax:()=>XD,getShareableCreditNoteResponseItemsItemTotalWithTaxMin:()=>FD,getShareableCreditNoteResponseItemsItemTotalWithTaxMax:()=>$D,getShareableCreditNoteResponseItemsItemTotalWithTaxConvertedMin:()=>kD,getShareableCreditNoteResponseItemsItemTotalWithTaxConvertedMax:()=>UD,getShareableCreditNoteResponseItemsItemTotalMin:()=>yD,getShareableCreditNoteResponseItemsItemTotalMax:()=>VD,getShareableCreditNoteResponseItemsItemTotalConvertedMin:()=>MD,getShareableCreditNoteResponseItemsItemTotalConvertedMax:()=>zD,getShareableCreditNoteResponseItemsItemQuantityMin:()=>QD,getShareableCreditNoteResponseItemsItemQuantityMax:()=>wD,getShareableCreditNoteResponseItemsItemNameMax:()=>WD,getShareableCreditNoteResponseItemsItemItemIdMax:()=>jD,getShareableCreditNoteResponseItemsItemIdMax:()=>HD,getShareableCreditNoteResponseItemsItemDiscountsMax:()=>KD,getShareableCreditNoteResponseItemsItemDiscountsItemValueMin:()=>YD,getShareableCreditNoteResponseItemsItemDiscountsItemTypeDefault:()=>xD,getShareableCreditNoteResponseItemsItemDeliveryNoteIdMax:()=>CD,getShareableCreditNoteResponseItemsItemCreditNoteIdMax:()=>mD,getShareableCreditNoteResponseItemsItemAdvanceInvoiceIdMax:()=>ZD,getShareableCreditNoteResponseIssuerCountryCodeMin:()=>aE,getShareableCreditNoteResponseIssuerCountryCodeMax:()=>sE,getShareableCreditNoteResponseIssuerBankAccountTypeDefault:()=>eD,getShareableCreditNoteResponseIdMax:()=>iE,getShareableCreditNoteResponseFursDataIterationDefault:()=>tD,getShareableCreditNoteResponseEntityIdMax:()=>PD,getShareableCreditNoteResponseDateYearMin:()=>_D,getShareableCreditNoteResponseDateYearMax:()=>ED,getShareableCreditNoteResponseDateServiceToRegExp:()=>LD,getShareableCreditNoteResponseDateServiceRegExp:()=>RD,getShareableCreditNoteResponseDateDueRegExp:()=>BD,getShareableCreditNoteResponseCustomerIdMax:()=>oD,getShareableCreditNoteResponseCustomerCountryCodeMin:()=>cD,getShareableCreditNoteResponseCustomerCountryCodeMax:()=>rD,getShareableCreditNoteResponseCustomerBankAccountTypeDefault:()=>vD,getShareableCreditNoteResponseCurrencyCodeMax:()=>gD,getCreditNotesResponseDataItemTotalWithTaxMin:()=>$O,getCreditNotesResponseDataItemTotalWithTaxMax:()=>MO,getCreditNotesResponseDataItemTotalWithTaxConvertedMin:()=>pO,getCreditNotesResponseDataItemTotalWithTaxConvertedMax:()=>fO,getCreditNotesResponseDataItemTotalPaidMin:()=>lO,getCreditNotesResponseDataItemTotalPaidMax:()=>hO,getCreditNotesResponseDataItemTotalMin:()=>VO,getCreditNotesResponseDataItemTotalMax:()=>FO,getCreditNotesResponseDataItemTotalDueMin:()=>iO,getCreditNotesResponseDataItemTotalDueMax:()=>dO,getCreditNotesResponseDataItemTotalConvertedMin:()=>CO,getCreditNotesResponseDataItemTotalConvertedMax:()=>jO,getCreditNotesResponseDataItemShareableIdMax:()=>ZO,getCreditNotesResponseDataItemNumberMax:()=>WO,getCreditNotesResponseDataItemItemsItemUnitMax:()=>Ab,getCreditNotesResponseDataItemItemsItemTotalWithTaxMin:()=>Eb,getCreditNotesResponseDataItemItemsItemTotalWithTaxMax:()=>Db,getCreditNotesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>Tb,getCreditNotesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>qb,getCreditNotesResponseDataItemItemsItemTotalMin:()=>Pb,getCreditNotesResponseDataItemItemsItemTotalMax:()=>_b,getCreditNotesResponseDataItemItemsItemTotalConvertedMin:()=>Ob,getCreditNotesResponseDataItemItemsItemTotalConvertedMax:()=>bb,getCreditNotesResponseDataItemItemsItemQuantityMin:()=>vb,getCreditNotesResponseDataItemItemsItemQuantityMax:()=>nb,getCreditNotesResponseDataItemItemsItemNameMax:()=>rb,getCreditNotesResponseDataItemItemsItemItemIdMax:()=>Jb,getCreditNotesResponseDataItemItemsItemIdMax:()=>cb,getCreditNotesResponseDataItemItemsItemDiscountsMax:()=>gb,getCreditNotesResponseDataItemItemsItemDiscountsItemValueMin:()=>Ib,getCreditNotesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>Sb,getCreditNotesResponseDataItemItemsItemDeliveryNoteIdMax:()=>ub,getCreditNotesResponseDataItemItemsItemCreditNoteIdMax:()=>Nb,getCreditNotesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>Gb,getCreditNotesResponseDataItemIssuerCountryCodeMin:()=>QO,getCreditNotesResponseDataItemIssuerCountryCodeMax:()=>wO,getCreditNotesResponseDataItemIssuerBankAccountTypeDefault:()=>XO,getCreditNotesResponseDataItemIdMax:()=>HO,getCreditNotesResponseDataItemFursDataIterationDefault:()=>aO,getCreditNotesResponseDataItemEntityIdMax:()=>kO,getCreditNotesResponseDataItemDateYearMin:()=>UO,getCreditNotesResponseDataItemDateYearMax:()=>mO,getCreditNotesResponseDataItemDateServiceToRegExp:()=>ob,getCreditNotesResponseDataItemDateServiceRegExp:()=>eb,getCreditNotesResponseDataItemDateDueRegExp:()=>sO,getCreditNotesResponseDataItemCustomerIdMax:()=>YO,getCreditNotesResponseDataItemCustomerCountryCodeMin:()=>xO,getCreditNotesResponseDataItemCustomerCountryCodeMax:()=>KO,getCreditNotesResponseDataItemCustomerBankAccountTypeDefault:()=>yO,getCreditNotesResponseDataItemCurrencyCodeMax:()=>zO,getCreditNotesQueryLimitMax:()=>LO,getCreditNotesQueryLimitDefault:()=>RO,getCreditNoteVersionsPathIdRegExp:()=>nq,getCreditNoteByIdResponseTotalWithTaxMin:()=>n2,getCreditNoteByIdResponseTotalWithTaxMax:()=>A2,getCreditNoteByIdResponseTotalWithTaxConvertedMin:()=>O2,getCreditNoteByIdResponseTotalWithTaxConvertedMax:()=>b2,getCreditNoteByIdResponseTotalPaidMin:()=>T2,getCreditNoteByIdResponseTotalPaidMax:()=>q2,getCreditNoteByIdResponseTotalMin:()=>r2,getCreditNoteByIdResponseTotalMax:()=>v2,getCreditNoteByIdResponseTotalDueMin:()=>N2,getCreditNoteByIdResponseTotalDueMax:()=>G2,getCreditNoteByIdResponseTotalConvertedMin:()=>E2,getCreditNoteByIdResponseTotalConvertedMax:()=>D2,getCreditNoteByIdResponseShareableIdMax:()=>_2,getCreditNoteByIdResponseNumberMax:()=>hb,getCreditNoteByIdResponseItemsItemUnitMax:()=>Q2,getCreditNoteByIdResponseItemsItemTotalWithTaxMin:()=>y2,getCreditNoteByIdResponseItemsItemTotalWithTaxMax:()=>V2,getCreditNoteByIdResponseItemsItemTotalWithTaxConvertedMin:()=>M2,getCreditNoteByIdResponseItemsItemTotalWithTaxConvertedMax:()=>z2,getCreditNoteByIdResponseItemsItemTotalMin:()=>x2,getCreditNoteByIdResponseItemsItemTotalMax:()=>K2,getCreditNoteByIdResponseItemsItemTotalConvertedMin:()=>F2,getCreditNoteByIdResponseItemsItemTotalConvertedMax:()=>$2,getCreditNoteByIdResponseItemsItemQuantityMin:()=>H2,getCreditNoteByIdResponseItemsItemQuantityMax:()=>W2,getCreditNoteByIdResponseItemsItemNameMax:()=>L2,getCreditNoteByIdResponseItemsItemItemIdMax:()=>Z2,getCreditNoteByIdResponseItemsItemIdMax:()=>R2,getCreditNoteByIdResponseItemsItemDiscountsMax:()=>Y2,getCreditNoteByIdResponseItemsItemDiscountsItemValueMin:()=>w2,getCreditNoteByIdResponseItemsItemDiscountsItemTypeDefault:()=>X2,getCreditNoteByIdResponseItemsItemDeliveryNoteIdMax:()=>m2,getCreditNoteByIdResponseItemsItemCreditNoteIdMax:()=>k2,getCreditNoteByIdResponseItemsItemAdvanceInvoiceIdMax:()=>U2,getCreditNoteByIdResponseIssuerCountryCodeMin:()=>ib,getCreditNoteByIdResponseIssuerCountryCodeMax:()=>db,getCreditNoteByIdResponseIssuerBankAccountTypeDefault:()=>ab,getCreditNoteByIdResponseIdMax:()=>lb,getCreditNoteByIdResponseFursDataIterationDefault:()=>u2,getCreditNoteByIdResponseEntityIdMax:()=>S2,getCreditNoteByIdResponseDateYearMin:()=>g2,getCreditNoteByIdResponseDateYearMax:()=>P2,getCreditNoteByIdResponseDateServiceToRegExp:()=>B2,getCreditNoteByIdResponseDateServiceRegExp:()=>t2,getCreditNoteByIdResponseDateDueRegExp:()=>J2,getCreditNoteByIdResponseCustomerIdMax:()=>sb,getCreditNoteByIdResponseCustomerCountryCodeMin:()=>e2,getCreditNoteByIdResponseCustomerCountryCodeMax:()=>o2,getCreditNoteByIdResponseCustomerBankAccountTypeDefault:()=>c2,getCreditNoteByIdResponseCurrencyCodeMax:()=>I2,getCreditNoteByIdPathIdRegExp:()=>fb,createCustomCreditNoteBodyPaymentsItemTagMax:()=>Cb,createCustomCreditNoteBodyPaymentsItemReferenceMax:()=>jb,createCustomCreditNoteBodyPaymentsItemNoteMax:()=>pb,createCustomCreditNoteBodyPaymentsItemAmountExclusiveMin:()=>Zb,createCustomCreditNoteBodyItemsItemUnitMax:()=>$b,createCustomCreditNoteBodyItemsItemSaveItemDefault:()=>mb,createCustomCreditNoteBodyItemsItemQuantityMin:()=>Vb,createCustomCreditNoteBodyItemsItemQuantityMax:()=>Fb,createCustomCreditNoteBodyItemsItemDiscountsMax:()=>kb,createCustomCreditNoteBodyItemsItemDiscountsItemValueMin:()=>Mb,createCustomCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>zb,createCustomCreditNoteBodyItemsItemDescriptionMax:()=>yb,createCustomCreditNoteBodyItemsItemDeliveryNoteIdMax:()=>Ub,createCustomCreditNoteBodyIssuerCountryCodeMin:()=>Bb,createCustomCreditNoteBodyIssuerCountryCodeMax:()=>Rb,createCustomCreditNoteBodyIssuerBankAccountTypeDefault:()=>Lb,createCustomCreditNoteBodyDateServiceToRegExp:()=>Kb,createCustomCreditNoteBodyDateServiceRegExp:()=>xb,createCustomCreditNoteBodyDateRegExp:()=>tb,createCustomCreditNoteBodyDateDueRegExp:()=>Yb,createCustomCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>wb,createCustomCreditNoteBodyCustomerOneCountryCodeMin:()=>Hb,createCustomCreditNoteBodyCustomerOneCountryCodeMax:()=>Wb,createCustomCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>Qb,createCustomCreditNoteBodyCurrencyCodeMax:()=>Xb,createCreditNoteBodyPaymentsItemTagMax:()=>OO,createCreditNoteBodyPaymentsItemReferenceMax:()=>bO,createCreditNoteBodyPaymentsItemNoteMax:()=>TO,createCreditNoteBodyPaymentsItemAmountExclusiveMin:()=>DO,createCreditNoteBodyItemsItemUnitMax:()=>IO,createCreditNoteBodyItemsItemSaveItemDefault:()=>EO,createCreditNoteBodyItemsItemQuantityMin:()=>nO,createCreditNoteBodyItemsItemQuantityMax:()=>AO,createCreditNoteBodyItemsItemDiscountsMax:()=>PO,createCreditNoteBodyItemsItemDiscountsItemValueMin:()=>SO,createCreditNoteBodyItemsItemDiscountsItemTypeDefault:()=>gO,createCreditNoteBodyItemsItemDescriptionMax:()=>vO,createCreditNoteBodyItemsItemDeliveryNoteIdMax:()=>_O,createCreditNoteBodyIssuerCountryCodeMin:()=>fD,createCreditNoteBodyIssuerCountryCodeMax:()=>lD,createCreditNoteBodyIssuerBankAccountTypeDefault:()=>hD,createCreditNoteBodyFinaPremiseIdRegExp:()=>NO,createCreditNoteBodyFinaPremiseIdMax:()=>qO,createCreditNoteBodyFinaOperatorOibMin:()=>JO,createCreditNoteBodyFinaOperatorOibMax:()=>tO,createCreditNoteBodyFinaDeviceIdRegExp:()=>uO,createCreditNoteBodyFinaDeviceIdMax:()=>GO,createCreditNoteBodyExpectedTotalWithTaxExclusiveMin:()=>BO,createCreditNoteBodyDateServiceToRegExp:()=>rO,createCreditNoteBodyDateServiceRegExp:()=>cO,createCreditNoteBodyDateRegExp:()=>pD,createCreditNoteBodyDateDueRegExp:()=>oO,createCreditNoteBodyCustomerTwoSaveCustomerDefault:()=>sD,createCreditNoteBodyCustomerOneCountryCodeMin:()=>iD,createCreditNoteBodyCustomerOneCountryCodeMax:()=>dD,createCreditNoteBodyCustomerOneBankAccountTypeDefault:()=>aD,createCreditNoteBodyCurrencyCodeMax:()=>eO,VoidCreditNoteResponse:()=>bIe,VoidCreditNoteParams:()=>EIe,VoidCreditNoteHeader:()=>DIe,VoidCreditNoteBody:()=>OIe,UpdateCreditNoteResponse:()=>cIe,UpdateCreditNoteParams:()=>s0e,UpdateCreditNoteHeader:()=>eIe,UpdateCreditNoteBody:()=>oIe,RenderCreditNotePreviewQueryParams:()=>gIe,RenderCreditNotePreviewHeader:()=>PIe,RenderCreditNotePreviewBody:()=>_Ie,GetShareableCreditNoteResponse:()=>F0e,GetShareableCreditNotePdfQueryParams:()=>k0e,GetShareableCreditNotePdfParams:()=>z0e,GetShareableCreditNoteParams:()=>V0e,GetShareableCreditNoteHtmlQueryParams:()=>M0e,GetShareableCreditNoteHtmlParams:()=>$0e,GetShareableCreditNoteEslogParams:()=>U0e,GetCreditNotesResponse:()=>p0e,GetCreditNotesQueryParams:()=>C0e,GetCreditNotesHeader:()=>j0e,GetCreditNoteVersionsResponse:()=>nIe,GetCreditNoteVersionsParams:()=>rIe,GetCreditNoteVersionsHeader:()=>vIe,GetCreditNoteVersionResponse:()=>SIe,GetCreditNoteVersionParams:()=>AIe,GetCreditNoteVersionHeader:()=>IIe,GetCreditNoteByIdResponse:()=>a0e,GetCreditNoteByIdQueryParams:()=>i0e,GetCreditNoteByIdParams:()=>h0e,GetCreditNoteByIdHeader:()=>d0e,CreateCustomCreditNoteHeader:()=>f0e,CreateCustomCreditNoteBody:()=>l0e,CreateCreditNoteHeader:()=>m0e,CreateCreditNoteBody:()=>Z0e});var V0e=r({shareableId:e().describe("Shareable document token")}),iE=36,dE=100,aE=2,sE=2,eD="iban",oD=36,cD=2,rD=2,vD="iban",nD=-140737488355328,AD=140737488355327,ID=-140737488355328,SD=140737488355327,gD=3,PD=36,_D=-2147483648,ED=2147483647,DD=64,OD=-140737488355328,bD=140737488355327,TD=-140737488355328,qD=140737488355327,ND=-140737488355328,GD=140737488355327,uD=-140737488355328,JD=140737488355327,tD=0,BD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,HD=36,WD=500,QD=-140737488355328,wD=140737488355327,XD=50,YD=0,xD="percent",KD=5,yD=-140737488355328,VD=140737488355327,FD=-140737488355328,$D=140737488355327,MD=-140737488355328,zD=140737488355327,kD=-140737488355328,UD=140737488355327,mD=36,ZD=36,CD=36,jD=36,F0e=r({id:e().max(iE),number:e().max(dE),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(aE).max(sE).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(eD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(oD).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(cD).max(rD).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(vD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(nD).max(AD),total_with_tax:v().min(ID).max(SD),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(gD),entity_id:e().max(PD),date_year:v().min(_D).max(ED),shareable_id:e().max(DD).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(OD).max(bD).nullish(),total_with_tax_converted:v().min(TD).max(qD).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(ND).max(GD),total_due:v().min(uD).max(JD),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(tD),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(BD).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(RD).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(LD).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(HD),name:e().max(WD),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
68
- Only present if user originally sent gross price.
69
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(QD).max(wD),unit:e().max(XD).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(YD).describe("Discount value"),type:g(["percent","amount"]).default(xD).describe("Discount type: 'percent' (default) or 'amount'")})).max(KD).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(yD).max(VD),total_with_tax:v().min(FD).max($D),total_converted:v().min(MD).max(zD).nullish(),total_with_tax_converted:v().min(kD).max(UD).nullish(),credit_note_id:e().max(mD).nullish(),advance_invoice_id:e().max(ZD).nullish(),delivery_note_id:e().max(CD).nullish(),item_id:e().max(jD).nullish(),metadata:O(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),$0e=r({shareableId:e().describe("Shareable document token")}),M0e=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),z0e=r({shareableId:e().describe("Shareable document token")}),k0e=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),U0e=r({shareableId:e().describe("Shareable document token")}),m0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),pD=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,fD=2,lD=2,hD="iban",iD=2,dD=2,aD="iban",sD=!0,eO=3,oO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,rO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,vO=2000,nO=-140737488355328,AO=140737488355327,IO=50,SO=0,gO="percent",PO=5,_O=36,EO=!0,DO=0,OO=100,bO=100,TO=500,qO=20,NO=/^[0-9a-zA-Z]{1,20}$/,GO=20,uO=/^\d{1,20}$/,JO=11,tO=11,BO=0,Z0e=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(pD).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(fD).max(lD).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(hD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(iD).max(dD).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aD).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(sD).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(eO).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(oO).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(cO).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(rO).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(vO).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(nO).max(AO),unit:e().max(IO).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(SO).describe("Discount value"),type:g(["percent","amount"]).default(gO).describe("Discount type: 'percent' (default) or 'amount'")})).max(PO).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(_O).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
70
- When provided, the item's name, description, price, and taxes are used as defaults.
71
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(EO).describe(`Whether to save this item to the catalog.
72
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
73
- Default: true.`)})).min(1).describe("Line items for the credit note. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices. Accepts invoice IDs (inv_xxx). Creates 'credit_for' document relations. If no payment is specified and linked invoices have remaining balance, automatically applies the credit note to the invoices."),payments:P(r({amount:v().gt(DO).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(OO).nullish(),reference:e().max(bO).nullish(),note:e().max(TO).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(qO).regex(NO).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(GO).regex(uO).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(JO).max(tO).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(BO).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),RO=10,LO=100,C0e=r({limit:v().min(1).max(LO).default(RO).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_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().optional().describe(`Full-text search query to filter results across multiple fields.
74
- Searches are case-insensitive and match partial strings.
75
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this credit note\n- `document_relations` - Linked documents (invoices, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),j0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),HO=36,WO=100,QO=2,wO=2,XO="iban",YO=36,xO=2,KO=2,yO="iban",VO=-140737488355328,FO=140737488355327,$O=-140737488355328,MO=140737488355327,zO=3,kO=36,UO=-2147483648,mO=2147483647,ZO=64,CO=-140737488355328,jO=140737488355327,pO=-140737488355328,fO=140737488355327,lO=-140737488355328,hO=140737488355327,iO=-140737488355328,dO=140737488355327,aO=0,sO=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,eb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ob=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cb=36,rb=500,vb=-140737488355328,nb=140737488355327,Ab=50,Ib=0,Sb="percent",gb=5,Pb=-140737488355328,_b=140737488355327,Eb=-140737488355328,Db=140737488355327,Ob=-140737488355328,bb=140737488355327,Tb=-140737488355328,qb=140737488355327,Nb=36,Gb=36,ub=36,Jb=36,p0e=r({data:P(r({id:e().max(HO),number:e().max(WO),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(QO).max(wO).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(XO).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(YO).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(xO).max(KO).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(yO).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(VO).max(FO),total_with_tax:v().min($O).max(MO),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(zO),entity_id:e().max(kO),date_year:v().min(UO).max(mO),shareable_id:e().max(ZO).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(CO).max(jO).nullish(),total_with_tax_converted:v().min(pO).max(fO).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(lO).max(hO),total_due:v().min(iO).max(dO),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(aO),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(sO).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(eb).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(ob).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(cb),name:e().max(rb),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
76
- Only present if user originally sent gross price.
77
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(vb).max(nb),unit:e().max(Ab).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Ib).describe("Discount value"),type:g(["percent","amount"]).default(Sb).describe("Discount type: 'percent' (default) or 'amount'")})).max(gb).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Pb).max(_b),total_with_tax:v().min(Eb).max(Db),total_converted:v().min(Ob).max(bb).nullish(),total_with_tax_converted:v().min(Tb).max(qb).nullish(),credit_note_id:e().max(Nb).nullish(),advance_invoice_id:e().max(Gb).nullish(),delivery_note_id:e().max(ub).nullish(),item_id:e().max(Jb).nullish(),metadata:O(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),f0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),tb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Bb=2,Rb=2,Lb="iban",Hb=2,Wb=2,Qb="iban",wb=!0,Xb=3,Yb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,xb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Kb=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,yb=2000,Vb=-140737488355328,Fb=140737488355327,$b=50,Mb=0,zb="percent",kb=5,Ub=36,mb=!0,Zb=0,Cb=100,jb=100,pb=500,l0e=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(tb).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Bb).max(Rb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Lb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Hb).max(Wb).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Qb).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(wb).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(Xb).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(Yb).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(xb).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Kb).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(yb).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(Vb).max(Fb),unit:e().max($b).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Mb).describe("Discount value"),type:g(["percent","amount"]).default(zb).describe("Discount type: 'percent' (default) or 'amount'")})).max(kb).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),delivery_note_id:e().max(Ub).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
78
- When provided, the item's name, description, price, and taxes are used as defaults.
79
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(mb).describe(`Whether to save this item to the catalog.
80
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
81
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices."),payments:P(r({amount:v().gt(Zb).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(Cb).nullish(),reference:e().max(jb).nullish(),note:e().max(pb).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the credit note. If amounts are not provided, the credit note total is split equally among all payments. Automatically updates credit note payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),fb=/^[a-z]{3,4}_[0-9a-f]{24}$/,h0e=r({id:e().regex(fb).describe("Unique resource identifier")}),i0e=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this credit note\n- `document_relations` - Linked documents (invoices, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),d0e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lb=36,hb=100,ib=2,db=2,ab="iban",sb=36,e2=2,o2=2,c2="iban",r2=-140737488355328,v2=140737488355327,n2=-140737488355328,A2=140737488355327,I2=3,S2=36,g2=-2147483648,P2=2147483647,_2=64,E2=-140737488355328,D2=140737488355327,O2=-140737488355328,b2=140737488355327,T2=-140737488355328,q2=140737488355327,N2=-140737488355328,G2=140737488355327,u2=0,J2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,t2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,B2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,R2=36,L2=500,H2=-140737488355328,W2=140737488355327,Q2=50,w2=0,X2="percent",Y2=5,x2=-140737488355328,K2=140737488355327,y2=-140737488355328,V2=140737488355327,F2=-140737488355328,$2=140737488355327,M2=-140737488355328,z2=140737488355327,k2=36,U2=36,m2=36,Z2=36,a0e=r({id:e().max(lb),number:e().max(hb),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(ib).max(db).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(ab).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(sb).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(e2).max(o2).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(c2).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(r2).max(v2),total_with_tax:v().min(n2).max(A2),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(I2),entity_id:e().max(S2),date_year:v().min(g2).max(P2),shareable_id:e().max(_2).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(E2).max(D2).nullish(),total_with_tax_converted:v().min(O2).max(b2).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(T2).max(q2),total_due:v().min(N2).max(G2),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(u2),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(J2).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(t2).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(B2).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(R2),name:e().max(L2),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
82
- Only present if user originally sent gross price.
83
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(H2).max(W2),unit:e().max(Q2).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(w2).describe("Discount value"),type:g(["percent","amount"]).default(X2).describe("Discount type: 'percent' (default) or 'amount'")})).max(Y2).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(x2).max(K2),total_with_tax:v().min(y2).max(V2),total_converted:v().min(F2).max($2).nullish(),total_with_tax_converted:v().min(M2).max(z2).nullish(),credit_note_id:e().max(k2).nullish(),advance_invoice_id:e().max(U2).nullish(),delivery_note_id:e().max(m2).nullish(),item_id:e().max(Z2).nullish(),metadata:O(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),C2=/^[a-z]{3,4}_[0-9a-f]{24}$/,s0e=r({id:e().regex(C2).describe("Unique resource identifier")}),eIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),j2=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,p2=2,f2=2,l2="iban",h2=2,i2=2,d2="iban",a2=!0,s2=2000,eT=-140737488355328,oT=140737488355327,cT=50,rT=0,vT="percent",nT=5,AT=36,IT=!0,ST=500,oIe=r({date:e().regex(j2).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(p2).max(f2).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(l2).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(D().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(h2).max(i2).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d2).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(a2).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(s2).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(eT).max(oT),unit:e().max(cT).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(rT).describe("Discount value"),type:g(["percent","amount"]).default(vT).describe("Discount type: 'percent' (default) or 'amount'")})).max(nT).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(AT).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
84
- When provided, the item's name, description, price, and taxes are used as defaults.
85
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(IT).describe(`Whether to save this item to the catalog.
86
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
87
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:O(e(),D()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(ST).optional().describe("Reason for the change. Stored in version history for audit trail."),linked_documents:P(e().min(1)).optional().describe("Link this credit note to invoices. Replaces existing links. Accepts invoice IDs (inv_xxx)."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),gT=36,PT=100,_T=2,ET=2,DT="iban",OT=36,bT=2,TT=2,qT="iban",NT=-140737488355328,GT=140737488355327,uT=-140737488355328,JT=140737488355327,tT=3,BT=36,RT=-2147483648,LT=2147483647,HT=64,WT=-140737488355328,QT=140737488355327,wT=-140737488355328,XT=140737488355327,YT=-140737488355328,xT=140737488355327,KT=-140737488355328,yT=140737488355327,VT=0,FT=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,$T=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,MT=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,zT=36,kT=500,UT=-140737488355328,mT=140737488355327,ZT=50,CT=0,jT="percent",pT=5,fT=-140737488355328,lT=140737488355327,hT=-140737488355328,iT=140737488355327,dT=-140737488355328,aT=140737488355327,sT=-140737488355328,eq=140737488355327,oq=36,cq=36,rq=36,vq=36,cIe=r({id:e().max(gT),number:e().max(PT),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(_T).max(ET).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(DT).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(OT).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(bT).max(TT).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(qT).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(NT).max(GT),total_with_tax:v().min(uT).max(JT),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(tT),entity_id:e().max(BT),date_year:v().min(RT).max(LT),shareable_id:e().max(HT).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(WT).max(QT).nullish(),total_with_tax_converted:v().min(wT).max(XT).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(YT).max(xT),total_due:v().min(KT).max(yT),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(VT),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(FT).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex($T).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(MT).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(zT),name:e().max(kT),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
88
- Only present if user originally sent gross price.
89
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(UT).max(mT),unit:e().max(ZT).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(CT).describe("Discount value"),type:g(["percent","amount"]).default(jT).describe("Discount type: 'percent' (default) or 'amount'")})).max(pT).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(fT).max(lT),total_with_tax:v().min(hT).max(iT),total_converted:v().min(dT).max(aT).nullish(),total_with_tax_converted:v().min(sT).max(eq).nullish(),credit_note_id:e().max(oq).nullish(),advance_invoice_id:e().max(cq).nullish(),delivery_note_id:e().max(rq).nullish(),item_id:e().max(vq).nullish(),metadata:O(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections"),nq=/^[a-z]{3,4}_[0-9a-f]{24}$/,rIe=r({id:e().regex(nq).describe("Unique resource identifier")}),vIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),nIe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),AIe=r({id:e().describe("Credit Note ID"),version:v().min(1).describe("Version number")}),IIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),SIe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),Aq="modern",Iq=2,Sq=5,gq="true",gIe=r({template:g(["modern","classic","minimal","fashion"]).default(Aq).describe("Document template design to use"),locale:e().min(Iq).max(Sq).nullish(),partial:g(["true","false"]).default(gq).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),PIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Pq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_q=2,Eq=2,Dq="iban",Oq=2,bq=2,Tq="iban",qq=!0,Nq=3,Gq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,uq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Jq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,tq=20,Bq=/^[0-9a-zA-Z]{1,20}$/,Rq=20,Lq=/^\d{1,20}$/,Hq=11,Wq=11,Qq=0,wq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Xq=2,Yq=2,xq="iban",Kq=2,yq=2,Vq="iban",Fq=!0,$q=3,Mq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,zq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,kq=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Uq=2000,mq=-140737488355328,Zq=140737488355327,Cq=50,jq=0,pq="percent",fq=5,lq=36,hq=!0,iq=20,dq=/^[0-9a-zA-Z]{1,20}$/,aq=20,sq=/^\d{1,20}$/,eN=11,oN=11,cN=0,_Ie=J([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(Pq).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(_q).max(Eq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Dq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Oq).max(bq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Tq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(qq).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(Nq).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(Gq).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(uq).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Jq).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:O(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max(tq).regex(Bq).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(Rq).regex(Lq).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(Hq).max(Wq).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(Qq).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(wq).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Xq).max(Yq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(xq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Kq).max(yq).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Vq).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(Fq).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max($q).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(Mq).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(zq).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(kq).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(Uq).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(mq).max(Zq),unit:e().max(Cq).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(jq).describe("Discount value"),type:g(["percent","amount"]).default(pq).describe("Discount type: 'percent' (default) or 'amount'")})).max(fq).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(lq).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
90
- When provided, the item's name, description, price, and taxes are used as defaults.
91
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(hq).describe(`Whether to save this item to the catalog.
92
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
93
- Default: true.`)})).min(1).describe("Line items for the credit note. At least one item is required."),fina:r({premise_id:e().min(1).max(iq).regex(dq).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(aq).regex(sq).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(eN).max(oN).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(cN).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),rN=/^[a-z]{3,4}_[0-9a-f]{24}$/,EIe=r({id:e().regex(rN).describe("Unique resource identifier")}),DIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),OIe=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate credit note', 'Technical error')")}),vN=36,nN=100,AN=2,IN=2,SN="iban",gN=36,PN=2,_N=2,EN="iban",DN=-140737488355328,ON=140737488355327,bN=-140737488355328,TN=140737488355327,qN=3,NN=36,GN=-2147483648,uN=2147483647,JN=64,tN=-140737488355328,BN=140737488355327,RN=-140737488355328,LN=140737488355327,HN=-140737488355328,WN=140737488355327,QN=-140737488355328,wN=140737488355327,XN=0,YN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,xN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,KN=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,yN=36,VN=500,FN=-140737488355328,$N=140737488355327,MN=50,zN=0,kN="percent",UN=5,mN=-140737488355328,ZN=140737488355327,CN=-140737488355328,jN=140737488355327,pN=-140737488355328,fN=140737488355327,lN=-140737488355328,hN=140737488355327,iN=36,dN=36,aN=36,sN=36,bIe=r({id:e().max(vN),number:e().max(nN),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the credit note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(AN).max(IN).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(SN).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(gN).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(PN).max(_N).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(EN).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(DN).max(ON),total_with_tax:v().min(bN).max(TN),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(qN),entity_id:e().max(NN),date_year:v().min(GN).max(uN),shareable_id:e().max(JN).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(tN).max(BN).nullish(),total_with_tax_converted:v().min(RN).max(LN).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),total_paid:v().min(HN).max(WN),total_due:v().min(QN).max(wN),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(XN),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_due:e().regex(YN).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(xN).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(KN).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(yN),name:e().max(VN),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
94
- Only present if user originally sent gross price.
95
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(FN).max($N),unit:e().max(MN).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(zN).describe("Discount value"),type:g(["percent","amount"]).default(kN).describe("Discount type: 'percent' (default) or 'amount'")})).max(UN).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(mN).max(ZN),total_with_tax:v().min(CN).max(jN),total_converted:v().min(pN).max(fN).nullish(),total_with_tax_converted:v().min(lN).max(hN).nullish(),credit_note_id:e().max(iN).nullish(),advance_invoice_id:e().max(dN).nullish(),delivery_note_id:e().max(aN).nullish(),item_id:e().max(sN).nullish(),metadata:O(e(),e()).optional(),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Credit note document for refunds/corrections");var qc={};Q(qc,{updateCustomerResponseOneTaxNumberMax:()=>nu,updateCustomerResponseOneStateMax:()=>cu,updateCustomerResponseOnePostCodeMax:()=>eu,updateCustomerResponseOneNameMax:()=>dG,updateCustomerResponseOneIdMax:()=>iG,updateCustomerResponseOneEntityIdMax:()=>Su,updateCustomerResponseOneEmailMax:()=>Iu,updateCustomerResponseOneCountryMax:()=>ru,updateCustomerResponseOneCountryCodeMax:()=>vu,updateCustomerResponseOneCompanyNumberMax:()=>Au,updateCustomerResponseOneCityMax:()=>ou,updateCustomerResponseOneAddressMax:()=>aG,updateCustomerResponseOneAddress2Max:()=>sG,updateCustomerPathIdRegExp:()=>zG,updateCustomerBodyTaxNumberMax:()=>fG,updateCustomerBodyStateMax:()=>CG,updateCustomerBodyPostCodeMax:()=>mG,updateCustomerBodyEmailMax:()=>hG,updateCustomerBodyCountryMax:()=>jG,updateCustomerBodyCountryCodeMax:()=>pG,updateCustomerBodyCompanyNumberMax:()=>lG,updateCustomerBodyCityMax:()=>ZG,updateCustomerBodyAddressMax:()=>kG,updateCustomerBodyAddress2Max:()=>UG,restoreCustomerResponseOneTaxNumberMax:()=>uu,restoreCustomerResponseOneStateMax:()=>qu,restoreCustomerResponseOnePostCodeMax:()=>bu,restoreCustomerResponseOneNameMax:()=>Eu,restoreCustomerResponseOneIdMax:()=>_u,restoreCustomerResponseOneEntityIdMax:()=>Bu,restoreCustomerResponseOneEmailMax:()=>tu,restoreCustomerResponseOneCountryMax:()=>Nu,restoreCustomerResponseOneCountryCodeMax:()=>Gu,restoreCustomerResponseOneCompanyNumberMax:()=>Ju,restoreCustomerResponseOneCityMax:()=>Tu,restoreCustomerResponseOneAddressMax:()=>Du,restoreCustomerResponseOneAddress2Max:()=>Ou,restoreCustomerPathIdRegExp:()=>Pu,permanentDeleteCustomerPathIdRegExp:()=>Ru,getCustomersResponseDataItemOneTaxNumberMax:()=>JG,getCustomersResponseDataItemOneStateMax:()=>NG,getCustomersResponseDataItemOnePostCodeMax:()=>TG,getCustomersResponseDataItemOneNameMax:()=>DG,getCustomersResponseDataItemOneIdMax:()=>EG,getCustomersResponseDataItemOneEntityIdMax:()=>RG,getCustomersResponseDataItemOneEmailMax:()=>BG,getCustomersResponseDataItemOneCountryMax:()=>GG,getCustomersResponseDataItemOneCountryCodeMax:()=>uG,getCustomersResponseDataItemOneCompanyNumberMax:()=>tG,getCustomersResponseDataItemOneCityMax:()=>qG,getCustomersResponseDataItemOneAddressMax:()=>OG,getCustomersResponseDataItemOneAddress2Max:()=>bG,getCustomersQueryLimitMax:()=>_G,getCustomersQueryLimitDefault:()=>PG,getCustomerByIdResponseOneTaxNumberMax:()=>VG,getCustomerByIdResponseOneStateMax:()=>xG,getCustomerByIdResponseOnePostCodeMax:()=>XG,getCustomerByIdResponseOneNameMax:()=>WG,getCustomerByIdResponseOneIdMax:()=>HG,getCustomerByIdResponseOneEntityIdMax:()=>MG,getCustomerByIdResponseOneEmailMax:()=>$G,getCustomerByIdResponseOneCountryMax:()=>KG,getCustomerByIdResponseOneCountryCodeMax:()=>yG,getCustomerByIdResponseOneCompanyNumberMax:()=>FG,getCustomerByIdResponseOneCityMax:()=>YG,getCustomerByIdResponseOneAddressMax:()=>QG,getCustomerByIdResponseOneAddress2Max:()=>wG,getCustomerByIdPathIdRegExp:()=>LG,deleteCustomerPathIdRegExp:()=>gu,createCustomerBodyTaxNumberMax:()=>IG,createCustomerBodyStateMax:()=>vG,createCustomerBodyPostCodeMax:()=>cG,createCustomerBodyEmailMax:()=>gG,createCustomerBodyCountryMax:()=>nG,createCustomerBodyCountryCodeMax:()=>AG,createCustomerBodyCompanyNumberMax:()=>SG,createCustomerBodyCityMax:()=>rG,createCustomerBodyAddressMax:()=>eG,createCustomerBodyAddress2Max:()=>oG,UpdateCustomerResponse:()=>WIe,UpdateCustomerParams:()=>RIe,UpdateCustomerHeader:()=>LIe,UpdateCustomerBody:()=>HIe,RestoreCustomerResponse:()=>xIe,RestoreCustomerParams:()=>XIe,RestoreCustomerHeader:()=>YIe,PermanentDeleteCustomerParams:()=>KIe,PermanentDeleteCustomerHeader:()=>yIe,GetCustomersResponse:()=>uIe,GetCustomersQueryParams:()=>NIe,GetCustomersHeader:()=>GIe,GetCustomerByIdResponse:()=>BIe,GetCustomerByIdParams:()=>JIe,GetCustomerByIdHeader:()=>tIe,DeleteCustomerParams:()=>QIe,DeleteCustomerHeader:()=>wIe,CreateCustomerHeader:()=>TIe,CreateCustomerBody:()=>qIe});var TIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),eG=500,oG=500,cG=20,rG=100,vG=100,nG=100,AG=2,IG=50,SG=50,gG=255,qIe=r({name:e().min(1),address:e().max(eG).nullish(),address_2:e().max(oG).nullish(),post_code:e().max(cG).nullish(),city:e().max(rG).nullish(),state:e().max(vG).nullish(),country:e().max(nG).nullish(),country_code:e().max(AG).nullish(),tax_number:e().max(IG).nullish(),company_number:e().max(SG).nullish(),email:e().max(gG).nullish(),is_tax_subject:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),PG=10,_G=100,NIe=r({limit:v().min(1).max(_G).default(PG).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","email","address","city","country","created_at","updated_at","-id","-name","-email","-address","-city","-country","-created_at","-updated_at"]),P(g(["id","name","email","address","city","country","created_at","updated_at","-id","-name","-email","-address","-city","-country","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, address, city, country, tax_number, email, 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().optional().describe(`Full-text search query to filter results across multiple fields.
96
- Searches are case-insensitive and match partial strings.
97
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),GIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),EG=36,DG=255,OG=500,bG=500,TG=20,qG=100,NG=100,GG=100,uG=2,JG=50,tG=50,BG=255,RG=36,uIe=r({data:P(r({id:e().max(EG),name:e().max(DG),address:e().max(OG).nullish(),address_2:e().max(bG).nullish(),post_code:e().max(TG).nullish(),city:e().max(qG).nullish(),state:e().max(NG).nullish(),country:e().max(GG).nullish(),country_code:e().max(uG).nullish(),tax_number:e().max(JG).nullish(),company_number:e().max(tG).nullish(),email:e().max(BG).nullish(),is_tax_subject:A(),entity_id:e().max(RG),vies:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),LG=/^[a-z]{3,4}_[0-9a-f]{24}$/,JIe=r({id:e().regex(LG).describe("Unique resource identifier")}),tIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),HG=36,WG=255,QG=500,wG=500,XG=20,YG=100,xG=100,KG=100,yG=2,VG=50,FG=50,$G=255,MG=36,BIe=r({id:e().max(HG),name:e().max(WG),address:e().max(QG).nullish(),address_2:e().max(wG).nullish(),post_code:e().max(XG).nullish(),city:e().max(YG).nullish(),state:e().max(xG).nullish(),country:e().max(KG).nullish(),country_code:e().max(yG).nullish(),tax_number:e().max(VG).nullish(),company_number:e().max(FG).nullish(),email:e().max($G).nullish(),is_tax_subject:A(),entity_id:e().max(MG),vies:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),zG=/^[a-z]{3,4}_[0-9a-f]{24}$/,RIe=r({id:e().regex(zG).describe("Unique resource identifier")}),LIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),kG=500,UG=500,mG=20,ZG=100,CG=100,jG=100,pG=2,fG=50,lG=50,hG=255,HIe=r({name:e().min(1).optional(),address:e().max(kG).nullish(),address_2:e().max(UG).nullish(),post_code:e().max(mG).nullish(),city:e().max(ZG).nullish(),state:e().max(CG).nullish(),country:e().max(jG).nullish(),country_code:e().max(pG).nullish(),tax_number:e().max(fG).nullish(),company_number:e().max(lG).nullish(),email:e().max(hG).nullish(),is_tax_subject:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),iG=36,dG=255,aG=500,sG=500,eu=20,ou=100,cu=100,ru=100,vu=2,nu=50,Au=50,Iu=255,Su=36,WIe=r({id:e().max(iG),name:e().max(dG),address:e().max(aG).nullish(),address_2:e().max(sG).nullish(),post_code:e().max(eu).nullish(),city:e().max(ou).nullish(),state:e().max(cu).nullish(),country:e().max(ru).nullish(),country_code:e().max(vu).nullish(),tax_number:e().max(nu).nullish(),company_number:e().max(Au).nullish(),email:e().max(Iu).nullish(),is_tax_subject:A(),entity_id:e().max(Su),vies:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),gu=/^[a-z]{3,4}_[0-9a-f]{24}$/,QIe=r({id:e().regex(gu).describe("Unique resource identifier")}),wIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Pu=/^[a-z]{3,4}_[0-9a-f]{24}$/,XIe=r({id:e().regex(Pu).describe("Unique resource identifier")}),YIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),_u=36,Eu=255,Du=500,Ou=500,bu=20,Tu=100,qu=100,Nu=100,Gu=2,uu=50,Ju=50,tu=255,Bu=36,xIe=r({id:e().max(_u),name:e().max(Eu),address:e().max(Du).nullish(),address_2:e().max(Ou).nullish(),post_code:e().max(bu).nullish(),city:e().max(Tu).nullish(),state:e().max(qu).nullish(),country:e().max(Nu).nullish(),country_code:e().max(Gu).nullish(),tax_number:e().max(uu).nullish(),company_number:e().max(Ju).nullish(),email:e().max(tu).nullish(),is_tax_subject:A(),entity_id:e().max(Bu),vies:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Customer information").and(r({})).describe("Customer of the Entity"),Ru=/^[a-z]{3,4}_[0-9a-f]{24}$/,KIe=r({id:e().regex(Ru).describe("Unique resource identifier")}),yIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var Nc={};Q(Nc,{voidDeliveryNoteResponseTotalWithTaxMin:()=>CB,voidDeliveryNoteResponseTotalWithTaxMax:()=>jB,voidDeliveryNoteResponseTotalWithTaxConvertedMin:()=>sB,voidDeliveryNoteResponseTotalWithTaxConvertedMax:()=>eR,voidDeliveryNoteResponseTotalMin:()=>mB,voidDeliveryNoteResponseTotalMax:()=>ZB,voidDeliveryNoteResponseTotalConvertedMin:()=>dB,voidDeliveryNoteResponseTotalConvertedMax:()=>aB,voidDeliveryNoteResponseShareableIdMax:()=>iB,voidDeliveryNoteResponseNumberMax:()=>yB,voidDeliveryNoteResponseItemsItemUnitMax:()=>SR,voidDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>OR,voidDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>bR,voidDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>NR,voidDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>GR,voidDeliveryNoteResponseItemsItemTotalMin:()=>ER,voidDeliveryNoteResponseItemsItemTotalMax:()=>DR,voidDeliveryNoteResponseItemsItemTotalConvertedMin:()=>TR,voidDeliveryNoteResponseItemsItemTotalConvertedMax:()=>qR,voidDeliveryNoteResponseItemsItemQuantityMin:()=>AR,voidDeliveryNoteResponseItemsItemQuantityMax:()=>IR,voidDeliveryNoteResponseItemsItemNameMax:()=>nR,voidDeliveryNoteResponseItemsItemItemIdMax:()=>JR,voidDeliveryNoteResponseItemsItemIdMax:()=>vR,voidDeliveryNoteResponseItemsItemDiscountsMax:()=>_R,voidDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>gR,voidDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>PR,voidDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>uR,voidDeliveryNoteResponseIssuerCountryCodeMin:()=>VB,voidDeliveryNoteResponseIssuerCountryCodeMax:()=>FB,voidDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>$B,voidDeliveryNoteResponseIdMax:()=>KB,voidDeliveryNoteResponseEntityIdMax:()=>fB,voidDeliveryNoteResponseDateYearMin:()=>lB,voidDeliveryNoteResponseDateYearMax:()=>hB,voidDeliveryNoteResponseDateServiceToRegExp:()=>rR,voidDeliveryNoteResponseDateServiceRegExp:()=>cR,voidDeliveryNoteResponseDateDueRegExp:()=>oR,voidDeliveryNoteResponseCustomerIdMax:()=>MB,voidDeliveryNoteResponseCustomerCountryCodeMin:()=>zB,voidDeliveryNoteResponseCustomerCountryCodeMax:()=>kB,voidDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>UB,voidDeliveryNoteResponseCurrencyCodeMax:()=>pB,voidDeliveryNotePathIdRegExp:()=>xB,updateDeliveryNoteResponseTotalWithTaxMin:()=>Ot,updateDeliveryNoteResponseTotalWithTaxMax:()=>bt,updateDeliveryNoteResponseTotalWithTaxConvertedMin:()=>Bt,updateDeliveryNoteResponseTotalWithTaxConvertedMax:()=>Rt,updateDeliveryNoteResponseTotalMin:()=>Et,updateDeliveryNoteResponseTotalMax:()=>Dt,updateDeliveryNoteResponseTotalConvertedMin:()=>Jt,updateDeliveryNoteResponseTotalConvertedMax:()=>tt,updateDeliveryNoteResponseShareableIdMax:()=>ut,updateDeliveryNoteResponseNumberMax:()=>vt,updateDeliveryNoteResponseItemsItemUnitMax:()=>xt,updateDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>Mt,updateDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>zt,updateDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>mt,updateDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>Zt,updateDeliveryNoteResponseItemsItemTotalMin:()=>Ft,updateDeliveryNoteResponseItemsItemTotalMax:()=>$t,updateDeliveryNoteResponseItemsItemTotalConvertedMin:()=>kt,updateDeliveryNoteResponseItemsItemTotalConvertedMax:()=>Ut,updateDeliveryNoteResponseItemsItemQuantityMin:()=>Xt,updateDeliveryNoteResponseItemsItemQuantityMax:()=>Yt,updateDeliveryNoteResponseItemsItemNameMax:()=>wt,updateDeliveryNoteResponseItemsItemItemIdMax:()=>jt,updateDeliveryNoteResponseItemsItemIdMax:()=>Qt,updateDeliveryNoteResponseItemsItemDiscountsMax:()=>Vt,updateDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>Kt,updateDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>yt,updateDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>Ct,updateDeliveryNoteResponseIssuerCountryCodeMin:()=>nt,updateDeliveryNoteResponseIssuerCountryCodeMax:()=>At,updateDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>It,updateDeliveryNoteResponseIdMax:()=>rt,updateDeliveryNoteResponseEntityIdMax:()=>qt,updateDeliveryNoteResponseDateYearMin:()=>Nt,updateDeliveryNoteResponseDateYearMax:()=>Gt,updateDeliveryNoteResponseDateServiceToRegExp:()=>Wt,updateDeliveryNoteResponseDateServiceRegExp:()=>Ht,updateDeliveryNoteResponseDateDueRegExp:()=>Lt,updateDeliveryNoteResponseCustomerIdMax:()=>St,updateDeliveryNoteResponseCustomerCountryCodeMin:()=>gt,updateDeliveryNoteResponseCustomerCountryCodeMax:()=>Pt,updateDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>_t,updateDeliveryNoteResponseCurrencyCodeMax:()=>Tt,updateDeliveryNotePathIdRegExp:()=>M1,updateDeliveryNoteBodyItemsItemUnitMax:()=>i1,updateDeliveryNoteBodyItemsItemSaveItemDefault:()=>ot,updateDeliveryNoteBodyItemsItemQuantityMin:()=>l1,updateDeliveryNoteBodyItemsItemQuantityMax:()=>h1,updateDeliveryNoteBodyItemsItemDiscountsMax:()=>s1,updateDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>d1,updateDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>a1,updateDeliveryNoteBodyItemsItemDescriptionMax:()=>f1,updateDeliveryNoteBodyItemsItemDeliveryNoteIdMax:()=>et,updateDeliveryNoteBodyIssuerOneCountryCodeMin:()=>k1,updateDeliveryNoteBodyIssuerOneCountryCodeMax:()=>U1,updateDeliveryNoteBodyIssuerOneBankAccountTypeDefault:()=>m1,updateDeliveryNoteBodyDateRegExp:()=>z1,updateDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>p1,updateDeliveryNoteBodyCustomerOneCountryCodeMin:()=>Z1,updateDeliveryNoteBodyCustomerOneCountryCodeMax:()=>C1,updateDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>j1,updateDeliveryNoteBodyChangeReasonMax:()=>ct,renderDeliveryNotePreviewQueryTemplateDefault:()=>ft,renderDeliveryNotePreviewQueryPartialDefault:()=>it,renderDeliveryNotePreviewQueryLocaleMin:()=>lt,renderDeliveryNotePreviewQueryLocaleMax:()=>ht,renderDeliveryNotePreviewBodyTwoItemsItemUnitMax:()=>LB,renderDeliveryNotePreviewBodyTwoItemsItemSaveItemDefault:()=>XB,renderDeliveryNotePreviewBodyTwoItemsItemQuantityMin:()=>BB,renderDeliveryNotePreviewBodyTwoItemsItemQuantityMax:()=>RB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsMax:()=>QB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>HB,renderDeliveryNotePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>WB,renderDeliveryNotePreviewBodyTwoItemsItemDescriptionMax:()=>tB,renderDeliveryNotePreviewBodyTwoItemsItemDeliveryNoteIdMax:()=>wB,renderDeliveryNotePreviewBodyTwoIssuerCountryCodeMin:()=>_B,renderDeliveryNotePreviewBodyTwoIssuerCountryCodeMax:()=>EB,renderDeliveryNotePreviewBodyTwoIssuerBankAccountTypeDefault:()=>DB,renderDeliveryNotePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>YB,renderDeliveryNotePreviewBodyTwoDateServiceToRegExp:()=>JB,renderDeliveryNotePreviewBodyTwoDateServiceRegExp:()=>uB,renderDeliveryNotePreviewBodyTwoDateRegExp:()=>PB,renderDeliveryNotePreviewBodyTwoDateDueRegExp:()=>GB,renderDeliveryNotePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>qB,renderDeliveryNotePreviewBodyTwoCustomerOneCountryCodeMin:()=>OB,renderDeliveryNotePreviewBodyTwoCustomerOneCountryCodeMax:()=>bB,renderDeliveryNotePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>TB,renderDeliveryNotePreviewBodyTwoCurrencyCodeMax:()=>NB,renderDeliveryNotePreviewBodyOneIssuerCountryCodeMin:()=>at,renderDeliveryNotePreviewBodyOneIssuerCountryCodeMax:()=>st,renderDeliveryNotePreviewBodyOneIssuerBankAccountTypeDefault:()=>eB,renderDeliveryNotePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>gB,renderDeliveryNotePreviewBodyOneDateServiceToRegExp:()=>SB,renderDeliveryNotePreviewBodyOneDateServiceRegExp:()=>IB,renderDeliveryNotePreviewBodyOneDateRegExp:()=>dt,renderDeliveryNotePreviewBodyOneDateDueRegExp:()=>AB,renderDeliveryNotePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>vB,renderDeliveryNotePreviewBodyOneCustomerOneCountryCodeMin:()=>oB,renderDeliveryNotePreviewBodyOneCustomerOneCountryCodeMax:()=>cB,renderDeliveryNotePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>rB,renderDeliveryNotePreviewBodyOneCurrencyCodeMax:()=>nB,getShareableDeliveryNoteResponseTotalWithTaxMin:()=>Fu,getShareableDeliveryNoteResponseTotalWithTaxMax:()=>$u,getShareableDeliveryNoteResponseTotalWithTaxConvertedMin:()=>ju,getShareableDeliveryNoteResponseTotalWithTaxConvertedMax:()=>pu,getShareableDeliveryNoteResponseTotalMin:()=>yu,getShareableDeliveryNoteResponseTotalMax:()=>Vu,getShareableDeliveryNoteResponseTotalConvertedMin:()=>Zu,getShareableDeliveryNoteResponseTotalConvertedMax:()=>Cu,getShareableDeliveryNoteResponseShareableIdMax:()=>mu,getShareableDeliveryNoteResponseNumberMax:()=>Hu,getShareableDeliveryNoteResponseItemsItemUnitMax:()=>e8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxMin:()=>A8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxMax:()=>I8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxConvertedMin:()=>P8,getShareableDeliveryNoteResponseItemsItemTotalWithTaxConvertedMax:()=>_8,getShareableDeliveryNoteResponseItemsItemTotalMin:()=>v8,getShareableDeliveryNoteResponseItemsItemTotalMax:()=>n8,getShareableDeliveryNoteResponseItemsItemTotalConvertedMin:()=>S8,getShareableDeliveryNoteResponseItemsItemTotalConvertedMax:()=>g8,getShareableDeliveryNoteResponseItemsItemQuantityMin:()=>au,getShareableDeliveryNoteResponseItemsItemQuantityMax:()=>su,getShareableDeliveryNoteResponseItemsItemNameMax:()=>du,getShareableDeliveryNoteResponseItemsItemItemIdMax:()=>D8,getShareableDeliveryNoteResponseItemsItemIdMax:()=>iu,getShareableDeliveryNoteResponseItemsItemDiscountsMax:()=>r8,getShareableDeliveryNoteResponseItemsItemDiscountsItemValueMin:()=>o8,getShareableDeliveryNoteResponseItemsItemDiscountsItemTypeDefault:()=>c8,getShareableDeliveryNoteResponseItemsItemDeliveryNoteIdMax:()=>E8,getShareableDeliveryNoteResponseIssuerCountryCodeMin:()=>Wu,getShareableDeliveryNoteResponseIssuerCountryCodeMax:()=>Qu,getShareableDeliveryNoteResponseIssuerBankAccountTypeDefault:()=>wu,getShareableDeliveryNoteResponseIdMax:()=>Lu,getShareableDeliveryNoteResponseEntityIdMax:()=>zu,getShareableDeliveryNoteResponseDateYearMin:()=>ku,getShareableDeliveryNoteResponseDateYearMax:()=>Uu,getShareableDeliveryNoteResponseDateServiceToRegExp:()=>hu,getShareableDeliveryNoteResponseDateServiceRegExp:()=>lu,getShareableDeliveryNoteResponseDateDueRegExp:()=>fu,getShareableDeliveryNoteResponseCustomerIdMax:()=>Xu,getShareableDeliveryNoteResponseCustomerCountryCodeMin:()=>Yu,getShareableDeliveryNoteResponseCustomerCountryCodeMax:()=>xu,getShareableDeliveryNoteResponseCustomerBankAccountTypeDefault:()=>Ku,getShareableDeliveryNoteResponseCurrencyCodeMax:()=>Mu,getDeliveryNotesResponseDataItemTotalWithTaxMin:()=>h8,getDeliveryNotesResponseDataItemTotalWithTaxMax:()=>i8,getDeliveryNotesResponseDataItemTotalWithTaxConvertedMin:()=>vJ,getDeliveryNotesResponseDataItemTotalWithTaxConvertedMax:()=>nJ,getDeliveryNotesResponseDataItemTotalMin:()=>f8,getDeliveryNotesResponseDataItemTotalMax:()=>l8,getDeliveryNotesResponseDataItemTotalConvertedMin:()=>cJ,getDeliveryNotesResponseDataItemTotalConvertedMax:()=>rJ,getDeliveryNotesResponseDataItemShareableIdMax:()=>oJ,getDeliveryNotesResponseDataItemNumberMax:()=>z8,getDeliveryNotesResponseDataItemItemsItemUnitMax:()=>DJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxMin:()=>GJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxMax:()=>uJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>BJ,getDeliveryNotesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>RJ,getDeliveryNotesResponseDataItemItemsItemTotalMin:()=>qJ,getDeliveryNotesResponseDataItemItemsItemTotalMax:()=>NJ,getDeliveryNotesResponseDataItemItemsItemTotalConvertedMin:()=>JJ,getDeliveryNotesResponseDataItemItemsItemTotalConvertedMax:()=>tJ,getDeliveryNotesResponseDataItemItemsItemQuantityMin:()=>_J,getDeliveryNotesResponseDataItemItemsItemQuantityMax:()=>EJ,getDeliveryNotesResponseDataItemItemsItemNameMax:()=>PJ,getDeliveryNotesResponseDataItemItemsItemItemIdMax:()=>HJ,getDeliveryNotesResponseDataItemItemsItemIdMax:()=>gJ,getDeliveryNotesResponseDataItemItemsItemDiscountsMax:()=>TJ,getDeliveryNotesResponseDataItemItemsItemDiscountsItemValueMin:()=>OJ,getDeliveryNotesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>bJ,getDeliveryNotesResponseDataItemItemsItemDeliveryNoteIdMax:()=>LJ,getDeliveryNotesResponseDataItemIssuerCountryCodeMin:()=>k8,getDeliveryNotesResponseDataItemIssuerCountryCodeMax:()=>U8,getDeliveryNotesResponseDataItemIssuerBankAccountTypeDefault:()=>m8,getDeliveryNotesResponseDataItemIdMax:()=>M8,getDeliveryNotesResponseDataItemEntityIdMax:()=>a8,getDeliveryNotesResponseDataItemDateYearMin:()=>s8,getDeliveryNotesResponseDataItemDateYearMax:()=>eJ,getDeliveryNotesResponseDataItemDateServiceToRegExp:()=>SJ,getDeliveryNotesResponseDataItemDateServiceRegExp:()=>IJ,getDeliveryNotesResponseDataItemDateDueRegExp:()=>AJ,getDeliveryNotesResponseDataItemCustomerIdMax:()=>Z8,getDeliveryNotesResponseDataItemCustomerCountryCodeMin:()=>C8,getDeliveryNotesResponseDataItemCustomerCountryCodeMax:()=>j8,getDeliveryNotesResponseDataItemCustomerBankAccountTypeDefault:()=>p8,getDeliveryNotesResponseDataItemCurrencyCodeMax:()=>d8,getDeliveryNotesQueryLimitMax:()=>$8,getDeliveryNotesQueryLimitDefault:()=>F8,getDeliveryNoteVersionsPathIdRegExp:()=>pt,getDeliveryNoteByIdResponseTotalWithTaxMin:()=>A1,getDeliveryNoteByIdResponseTotalWithTaxMax:()=>I1,getDeliveryNoteByIdResponseTotalWithTaxConvertedMin:()=>b1,getDeliveryNoteByIdResponseTotalWithTaxConvertedMax:()=>T1,getDeliveryNoteByIdResponseTotalMin:()=>v1,getDeliveryNoteByIdResponseTotalMax:()=>n1,getDeliveryNoteByIdResponseTotalConvertedMin:()=>D1,getDeliveryNoteByIdResponseTotalConvertedMax:()=>O1,getDeliveryNoteByIdResponseShareableIdMax:()=>E1,getDeliveryNoteByIdResponseNumberMax:()=>iJ,getDeliveryNoteByIdResponseItemsItemUnitMax:()=>R1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxMin:()=>X1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxMax:()=>Y1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxConvertedMin:()=>y1,getDeliveryNoteByIdResponseItemsItemTotalWithTaxConvertedMax:()=>V1,getDeliveryNoteByIdResponseItemsItemTotalMin:()=>Q1,getDeliveryNoteByIdResponseItemsItemTotalMax:()=>w1,getDeliveryNoteByIdResponseItemsItemTotalConvertedMin:()=>x1,getDeliveryNoteByIdResponseItemsItemTotalConvertedMax:()=>K1,getDeliveryNoteByIdResponseItemsItemQuantityMin:()=>t1,getDeliveryNoteByIdResponseItemsItemQuantityMax:()=>B1,getDeliveryNoteByIdResponseItemsItemNameMax:()=>J1,getDeliveryNoteByIdResponseItemsItemItemIdMax:()=>$1,getDeliveryNoteByIdResponseItemsItemIdMax:()=>u1,getDeliveryNoteByIdResponseItemsItemDiscountsMax:()=>W1,getDeliveryNoteByIdResponseItemsItemDiscountsItemValueMin:()=>L1,getDeliveryNoteByIdResponseItemsItemDiscountsItemTypeDefault:()=>H1,getDeliveryNoteByIdResponseItemsItemDeliveryNoteIdMax:()=>F1,getDeliveryNoteByIdResponseIssuerCountryCodeMin:()=>dJ,getDeliveryNoteByIdResponseIssuerCountryCodeMax:()=>aJ,getDeliveryNoteByIdResponseIssuerBankAccountTypeDefault:()=>sJ,getDeliveryNoteByIdResponseIdMax:()=>hJ,getDeliveryNoteByIdResponseEntityIdMax:()=>g1,getDeliveryNoteByIdResponseDateYearMin:()=>P1,getDeliveryNoteByIdResponseDateYearMax:()=>_1,getDeliveryNoteByIdResponseDateServiceToRegExp:()=>G1,getDeliveryNoteByIdResponseDateServiceRegExp:()=>N1,getDeliveryNoteByIdResponseDateDueRegExp:()=>q1,getDeliveryNoteByIdResponseCustomerIdMax:()=>e1,getDeliveryNoteByIdResponseCustomerCountryCodeMin:()=>o1,getDeliveryNoteByIdResponseCustomerCountryCodeMax:()=>c1,getDeliveryNoteByIdResponseCustomerBankAccountTypeDefault:()=>r1,getDeliveryNoteByIdResponseCurrencyCodeMax:()=>S1,getDeliveryNoteByIdPathIdRegExp:()=>lJ,createDeliveryNoteBodyItemsItemUnitMax:()=>w8,createDeliveryNoteBodyItemsItemSaveItemDefault:()=>y8,createDeliveryNoteBodyItemsItemQuantityMin:()=>W8,createDeliveryNoteBodyItemsItemQuantityMax:()=>Q8,createDeliveryNoteBodyItemsItemDiscountsMax:()=>x8,createDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>X8,createDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>Y8,createDeliveryNoteBodyItemsItemDescriptionMax:()=>H8,createDeliveryNoteBodyItemsItemDeliveryNoteIdMax:()=>K8,createDeliveryNoteBodyIssuerCountryCodeMin:()=>b8,createDeliveryNoteBodyIssuerCountryCodeMax:()=>T8,createDeliveryNoteBodyIssuerBankAccountTypeDefault:()=>q8,createDeliveryNoteBodyExpectedTotalWithTaxExclusiveMin:()=>V8,createDeliveryNoteBodyDateServiceToRegExp:()=>L8,createDeliveryNoteBodyDateServiceRegExp:()=>R8,createDeliveryNoteBodyDateRegExp:()=>O8,createDeliveryNoteBodyDateDueRegExp:()=>B8,createDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>J8,createDeliveryNoteBodyCustomerOneCountryCodeMin:()=>N8,createDeliveryNoteBodyCustomerOneCountryCodeMax:()=>G8,createDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>u8,createDeliveryNoteBodyCurrencyCodeMax:()=>t8,createCustomDeliveryNoteBodyItemsItemUnitMax:()=>mJ,createCustomDeliveryNoteBodyItemsItemSaveItemDefault:()=>fJ,createCustomDeliveryNoteBodyItemsItemQuantityMin:()=>kJ,createCustomDeliveryNoteBodyItemsItemQuantityMax:()=>UJ,createCustomDeliveryNoteBodyItemsItemDiscountsMax:()=>jJ,createCustomDeliveryNoteBodyItemsItemDiscountsItemValueMin:()=>ZJ,createCustomDeliveryNoteBodyItemsItemDiscountsItemTypeDefault:()=>CJ,createCustomDeliveryNoteBodyItemsItemDescriptionMax:()=>zJ,createCustomDeliveryNoteBodyItemsItemDeliveryNoteIdMax:()=>pJ,createCustomDeliveryNoteBodyIssuerCountryCodeMin:()=>QJ,createCustomDeliveryNoteBodyIssuerCountryCodeMax:()=>wJ,createCustomDeliveryNoteBodyIssuerBankAccountTypeDefault:()=>XJ,createCustomDeliveryNoteBodyDateServiceToRegExp:()=>MJ,createCustomDeliveryNoteBodyDateServiceRegExp:()=>$J,createCustomDeliveryNoteBodyDateRegExp:()=>WJ,createCustomDeliveryNoteBodyDateDueRegExp:()=>FJ,createCustomDeliveryNoteBodyCustomerTwoSaveCustomerDefault:()=>yJ,createCustomDeliveryNoteBodyCustomerOneCountryCodeMin:()=>YJ,createCustomDeliveryNoteBodyCustomerOneCountryCodeMax:()=>xJ,createCustomDeliveryNoteBodyCustomerOneBankAccountTypeDefault:()=>KJ,createCustomDeliveryNoteBodyCurrencyCodeMax:()=>VJ,VoidDeliveryNoteResponse:()=>OSe,VoidDeliveryNoteParams:()=>_Se,VoidDeliveryNoteHeader:()=>ESe,VoidDeliveryNoteBody:()=>DSe,UpdateDeliveryNoteResponse:()=>oSe,UpdateDeliveryNoteParams:()=>aIe,UpdateDeliveryNoteHeader:()=>sIe,UpdateDeliveryNoteBody:()=>eSe,RenderDeliveryNotePreviewQueryParams:()=>SSe,RenderDeliveryNotePreviewHeader:()=>gSe,RenderDeliveryNotePreviewBody:()=>PSe,GetShareableDeliveryNoteResponse:()=>FIe,GetShareableDeliveryNotePdfQueryParams:()=>kIe,GetShareableDeliveryNotePdfParams:()=>zIe,GetShareableDeliveryNoteParams:()=>VIe,GetShareableDeliveryNoteHtmlQueryParams:()=>MIe,GetShareableDeliveryNoteHtmlParams:()=>$Ie,GetDeliveryNotesResponse:()=>jIe,GetDeliveryNotesQueryParams:()=>ZIe,GetDeliveryNotesHeader:()=>CIe,GetDeliveryNoteVersionsResponse:()=>vSe,GetDeliveryNoteVersionsParams:()=>cSe,GetDeliveryNoteVersionsHeader:()=>rSe,GetDeliveryNoteVersionResponse:()=>ISe,GetDeliveryNoteVersionParams:()=>nSe,GetDeliveryNoteVersionHeader:()=>ASe,GetDeliveryNoteByIdResponse:()=>dIe,GetDeliveryNoteByIdQueryParams:()=>hIe,GetDeliveryNoteByIdParams:()=>lIe,GetDeliveryNoteByIdHeader:()=>iIe,CreateDeliveryNoteHeader:()=>UIe,CreateDeliveryNoteBody:()=>mIe,CreateCustomDeliveryNoteHeader:()=>pIe,CreateCustomDeliveryNoteBody:()=>fIe});var VIe=r({shareableId:e().describe("Shareable document token")}),Lu=36,Hu=100,Wu=2,Qu=2,wu="iban",Xu=36,Yu=2,xu=2,Ku="iban",yu=-140737488355328,Vu=140737488355327,Fu=-140737488355328,$u=140737488355327,Mu=3,zu=36,ku=-2147483648,Uu=2147483647,mu=64,Zu=-140737488355328,Cu=140737488355327,ju=-140737488355328,pu=140737488355327,fu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hu=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,iu=36,du=500,au=-140737488355328,su=140737488355327,e8=50,o8=0,c8="percent",r8=5,v8=-140737488355328,n8=140737488355327,A8=-140737488355328,I8=140737488355327,S8=-140737488355328,g8=140737488355327,P8=-140737488355328,_8=140737488355327,E8=36,D8=36,FIe=r({id:e().max(Lu),number:e().max(Hu),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Wu).max(Qu).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(wu).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(Xu).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Yu).max(xu).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Ku).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(yu).max(Vu),total_with_tax:v().min(Fu).max($u),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(Mu),entity_id:e().max(zu),date_year:v().min(ku).max(Uu),shareable_id:e().max(mu).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Zu).max(Cu).nullish(),total_with_tax_converted:v().min(ju).max(pu).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(fu).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(lu).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(hu).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(iu),name:e().max(du),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
98
- Only present if user originally sent gross price.
99
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(au).max(su),unit:e().max(e8).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(o8).describe("Discount value"),type:g(["percent","amount"]).default(c8).describe("Discount type: 'percent' (default) or 'amount'")})).max(r8).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(v8).max(n8),total_with_tax:v().min(A8).max(I8),total_converted:v().min(S8).max(g8).nullish(),total_with_tax_converted:v().min(P8).max(_8).nullish(),delivery_note_id:e().max(E8).nullish(),item_id:e().max(D8).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),$Ie=r({shareableId:e().describe("Shareable document token")}),MIe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),zIe=r({shareableId:e().describe("Shareable document token")}),kIe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),UIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),O8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,b8=2,T8=2,q8="iban",N8=2,G8=2,u8="iban",J8=!0,t8=3,B8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,R8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,L8=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,H8=2000,W8=-140737488355328,Q8=140737488355327,w8=50,X8=0,Y8="percent",x8=5,K8=36,y8=!0,V8=0,mIe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(O8).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(b8).max(T8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(q8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(N8).max(G8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(u8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(J8).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(t8).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(B8).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(R8).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(L8).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(H8).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(W8).max(Q8),unit:e().max(w8).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(X8).describe("Discount value"),type:g(["percent","amount"]).default(Y8).describe("Discount type: 'percent' (default) or 'amount'")})).max(x8).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(K8).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
100
- When provided, the item's name, description, price, and taxes are used as defaults.
101
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(y8).describe(`Whether to save this item to the catalog.
102
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
103
- Default: true.`)})).min(1).describe("Line items for the delivery note. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(V8).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),F8=10,$8=100,ZIe=r({limit:v().min(1).max($8).default(F8).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_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().optional().describe(`Full-text search query to filter results across multiple fields.
104
- Searches are case-insensitive and match partial strings.
105
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe(`Comma-separated list of relations to include in the response.
106
-
107
- **Available relations:**
108
- - \`document_relations\` - Linked documents (invoices, etc.)
109
-
110
- **Usage:**
111
- \`?include=document_relations\``),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),CIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),M8=36,z8=100,k8=2,U8=2,m8="iban",Z8=36,C8=2,j8=2,p8="iban",f8=-140737488355328,l8=140737488355327,h8=-140737488355328,i8=140737488355327,d8=3,a8=36,s8=-2147483648,eJ=2147483647,oJ=64,cJ=-140737488355328,rJ=140737488355327,vJ=-140737488355328,nJ=140737488355327,AJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,IJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,SJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,gJ=36,PJ=500,_J=-140737488355328,EJ=140737488355327,DJ=50,OJ=0,bJ="percent",TJ=5,qJ=-140737488355328,NJ=140737488355327,GJ=-140737488355328,uJ=140737488355327,JJ=-140737488355328,tJ=140737488355327,BJ=-140737488355328,RJ=140737488355327,LJ=36,HJ=36,jIe=r({data:P(r({id:e().max(M8),number:e().max(z8),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(k8).max(U8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(m8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(Z8).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(C8).max(j8).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(p8).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(f8).max(l8),total_with_tax:v().min(h8).max(i8),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(d8),entity_id:e().max(a8),date_year:v().min(s8).max(eJ),shareable_id:e().max(oJ).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(cJ).max(rJ).nullish(),total_with_tax_converted:v().min(vJ).max(nJ).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(AJ).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(IJ).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(SJ).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(gJ),name:e().max(PJ),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
112
- Only present if user originally sent gross price.
113
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(_J).max(EJ),unit:e().max(DJ).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(OJ).describe("Discount value"),type:g(["percent","amount"]).default(bJ).describe("Discount type: 'percent' (default) or 'amount'")})).max(TJ).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(qJ).max(NJ),total_with_tax:v().min(GJ).max(uJ),total_converted:v().min(JJ).max(tJ).nullish(),total_with_tax_converted:v().min(BJ).max(RJ).nullish(),delivery_note_id:e().max(LJ).nullish(),item_id:e().max(HJ).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),pIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),WJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,QJ=2,wJ=2,XJ="iban",YJ=2,xJ=2,KJ="iban",yJ=!0,VJ=3,FJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,$J=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,MJ=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,zJ=2000,kJ=-140737488355328,UJ=140737488355327,mJ=50,ZJ=0,CJ="percent",jJ=5,pJ=36,fJ=!0,fIe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(WJ).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(QJ).max(wJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(XJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(YJ).max(xJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(KJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(yJ).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(VJ).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(FJ).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex($J).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(MJ).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(zJ).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(kJ).max(UJ),unit:e().max(mJ).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(ZJ).describe("Discount value"),type:g(["percent","amount"]).default(CJ).describe("Discount type: 'percent' (default) or 'amount'")})).max(jJ).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),delivery_note_id:e().max(pJ).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
114
- When provided, the item's name, description, price, and taxes are used as defaults.
115
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(fJ).describe(`Whether to save this item to the catalog.
116
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
117
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),lJ=/^[a-z]{3,4}_[0-9a-f]{24}$/,lIe=r({id:e().regex(lJ).describe("Unique resource identifier")}),hIe=r({include:e().optional().describe(`Comma-separated list of relations to include in the response.
118
-
119
- **Available relations:**
120
- - \`document_relations\` - Linked documents (invoices, etc.)
121
-
122
- **Usage:**
123
- \`?include=document_relations\``)}),iIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),hJ=36,iJ=100,dJ=2,aJ=2,sJ="iban",e1=36,o1=2,c1=2,r1="iban",v1=-140737488355328,n1=140737488355327,A1=-140737488355328,I1=140737488355327,S1=3,g1=36,P1=-2147483648,_1=2147483647,E1=64,D1=-140737488355328,O1=140737488355327,b1=-140737488355328,T1=140737488355327,q1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,N1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,G1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,u1=36,J1=500,t1=-140737488355328,B1=140737488355327,R1=50,L1=0,H1="percent",W1=5,Q1=-140737488355328,w1=140737488355327,X1=-140737488355328,Y1=140737488355327,x1=-140737488355328,K1=140737488355327,y1=-140737488355328,V1=140737488355327,F1=36,$1=36,dIe=r({id:e().max(hJ),number:e().max(iJ),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(dJ).max(aJ).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(sJ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(e1).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(o1).max(c1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(r1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(v1).max(n1),total_with_tax:v().min(A1).max(I1),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(S1),entity_id:e().max(g1),date_year:v().min(P1).max(_1),shareable_id:e().max(E1).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(D1).max(O1).nullish(),total_with_tax_converted:v().min(b1).max(T1).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(q1).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(N1).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(G1).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(u1),name:e().max(J1),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
124
- Only present if user originally sent gross price.
125
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(t1).max(B1),unit:e().max(R1).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(L1).describe("Discount value"),type:g(["percent","amount"]).default(H1).describe("Discount type: 'percent' (default) or 'amount'")})).max(W1).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Q1).max(w1),total_with_tax:v().min(X1).max(Y1),total_converted:v().min(x1).max(K1).nullish(),total_with_tax_converted:v().min(y1).max(V1).nullish(),delivery_note_id:e().max(F1).nullish(),item_id:e().max($1).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),M1=/^[a-z]{3,4}_[0-9a-f]{24}$/,aIe=r({id:e().regex(M1).describe("Unique resource identifier")}),sIe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),z1=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k1=2,U1=2,m1="iban",Z1=2,C1=2,j1="iban",p1=!0,f1=2000,l1=-140737488355328,h1=140737488355327,i1=50,d1=0,a1="percent",s1=5,et=36,ot=!0,ct=500,eSe=r({date:e().regex(z1).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(k1).max(U1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(m1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(D().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Z1).max(C1).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(j1).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(p1).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(f1).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(l1).max(h1),unit:e().max(i1).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(d1).describe("Discount value"),type:g(["percent","amount"]).default(a1).describe("Discount type: 'percent' (default) or 'amount'")})).max(s1).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(et).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
126
- When provided, the item's name, description, price, and taxes are used as defaults.
127
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(ot).describe(`Whether to save this item to the catalog.
128
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
129
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:O(e(),D()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(ct).optional().describe("Reason for the change. Stored in version history for audit trail."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Replaces existing links. Accepts invoice IDs (inv_xxx).")}),rt=36,vt=100,nt=2,At=2,It="iban",St=36,gt=2,Pt=2,_t="iban",Et=-140737488355328,Dt=140737488355327,Ot=-140737488355328,bt=140737488355327,Tt=3,qt=36,Nt=-2147483648,Gt=2147483647,ut=64,Jt=-140737488355328,tt=140737488355327,Bt=-140737488355328,Rt=140737488355327,Lt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Ht=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Wt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Qt=36,wt=500,Xt=-140737488355328,Yt=140737488355327,xt=50,Kt=0,yt="percent",Vt=5,Ft=-140737488355328,$t=140737488355327,Mt=-140737488355328,zt=140737488355327,kt=-140737488355328,Ut=140737488355327,mt=-140737488355328,Zt=140737488355327,Ct=36,jt=36,oSe=r({id:e().max(rt),number:e().max(vt),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(nt).max(At).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(It).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(St).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(gt).max(Pt).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(_t).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(Et).max(Dt),total_with_tax:v().min(Ot).max(bt),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(Tt),entity_id:e().max(qt),date_year:v().min(Nt).max(Gt),shareable_id:e().max(ut).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Jt).max(tt).nullish(),total_with_tax_converted:v().min(Bt).max(Rt).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(Lt).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(Ht).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Wt).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(Qt),name:e().max(wt),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
130
- Only present if user originally sent gross price.
131
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(Xt).max(Yt),unit:e().max(xt).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Kt).describe("Discount value"),type:g(["percent","amount"]).default(yt).describe("Discount type: 'percent' (default) or 'amount'")})).max(Vt).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Ft).max($t),total_with_tax:v().min(Mt).max(zt),total_converted:v().min(kt).max(Ut).nullish(),total_with_tax_converted:v().min(mt).max(Zt).nullish(),delivery_note_id:e().max(Ct).nullish(),item_id:e().max(jt).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document"),pt=/^[a-z]{3,4}_[0-9a-f]{24}$/,cSe=r({id:e().regex(pt).describe("Unique resource identifier")}),rSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vSe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),nSe=r({id:e().describe("Delivery Note ID"),version:v().min(1).describe("Version number")}),ASe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ISe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),ft="modern",lt=2,ht=5,it="true",SSe=r({template:g(["modern","classic","minimal","fashion"]).default(ft).describe("Document template design to use"),locale:e().min(lt).max(ht).nullish(),partial:g(["true","false"]).default(it).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),gSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),dt=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,at=2,st=2,eB="iban",oB=2,cB=2,rB="iban",vB=!0,nB=3,AB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,IB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,SB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,gB=0,PB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_B=2,EB=2,DB="iban",OB=2,bB=2,TB="iban",qB=!0,NB=3,GB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,uB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,JB=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,tB=2000,BB=-140737488355328,RB=140737488355327,LB=50,HB=0,WB="percent",QB=5,wB=36,XB=!0,YB=0,PSe=J([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(dt).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(at).max(st).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(eB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(oB).max(cB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(rB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(vB).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(nB).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(AB).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(IB).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(SB).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:O(e(),e()).optional()})).min(1),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(gB).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(PB).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(_B).max(EB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(DB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(OB).max(bB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(TB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(qB).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(NB).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),hide_prices:A().optional().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(GB).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(uB).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(JB).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(tB).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(BB).max(RB),unit:e().max(LB).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(HB).describe("Discount value"),type:g(["percent","amount"]).default(WB).describe("Discount type: 'percent' (default) or 'amount'")})).max(QB).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(wB).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
132
- When provided, the item's name, description, price, and taxes are used as defaults.
133
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(XB).describe(`Whether to save this item to the catalog.
134
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
135
- Default: true.`)})).min(1).describe("Line items for the delivery note. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this delivery note to other documents. Accepts estimate IDs (est_xxx) or invoice IDs (inv_xxx). Creates document relations automatically."),expected_total_with_tax:v().gt(YB).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]),xB=/^[a-z]{3,4}_[0-9a-f]{24}$/,_Se=r({id:e().regex(xB).describe("Unique resource identifier")}),ESe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),DSe=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate delivery note', 'Technical error')")}),KB=36,yB=100,VB=2,FB=2,$B="iban",MB=36,zB=2,kB=2,UB="iban",mB=-140737488355328,ZB=140737488355327,CB=-140737488355328,jB=140737488355327,pB=3,fB=36,lB=-2147483648,hB=2147483647,iB=64,dB=-140737488355328,aB=140737488355327,sB=-140737488355328,eR=140737488355327,oR=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cR=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,rR=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,vR=36,nR=500,AR=-140737488355328,IR=140737488355327,SR=50,gR=0,PR="percent",_R=5,ER=-140737488355328,DR=140737488355327,OR=-140737488355328,bR=140737488355327,TR=-140737488355328,qR=140737488355327,NR=-140737488355328,GR=140737488355327,uR=36,JR=36,OSe=r({id:e().max(KB),number:e().max(yB),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the delivery note was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(VB).max(FB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default($B).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(MB).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(zB).max(kB).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(UB).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(mB).max(ZB),total_with_tax:v().min(CB).max(jB),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(pB),entity_id:e().max(fB),date_year:v().min(lB).max(hB),shareable_id:e().max(iB).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(dB).max(aB).nullish(),total_with_tax_converted:v().min(sB).max(eR).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),hide_prices:A().describe("When true, prices and totals are hidden on the document (packing list mode)."),date_due:e().regex(oR).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(cR).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(rR).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(vR),name:e().max(nR),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
136
- Only present if user originally sent gross price.
137
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(AR).max(IR),unit:e().max(SR).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(gR).describe("Discount value"),type:g(["percent","amount"]).default(PR).describe("Discount type: 'percent' (default) or 'amount'")})).max(_R).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(ER).max(DR),total_with_tax:v().min(OR).max(bR),total_converted:v().min(TR).max(qR).nullish(),total_with_tax_converted:v().min(NR).max(GR).nullish(),delivery_note_id:e().max(uR).nullish(),item_id:e().max(JR).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Delivery note / packing list document");var Gc={};Q(Gc,{unshareDocumentPathIdRegExp:()=>WR,shareDocumentPathIdRegExp:()=>LR,sendDocumentBodySubjectMax:()=>tR,sendDocumentBodyAttachPdfDefault:()=>BR,sendDocumentBodyAttachEslogDefault:()=>RR,getShareableIdPathIdRegExp:()=>HR,UnshareDocumentParams:()=>pSe,UnshareDocumentHeader:()=>fSe,ShareDocumentResponse:()=>mSe,ShareDocumentParams:()=>kSe,ShareDocumentHeader:()=>USe,SendDocumentResponse:()=>zSe,SendDocumentParams:()=>FSe,SendDocumentHeader:()=>$Se,SendDocumentBody:()=>MSe,RestoreDocumentResponse:()=>xSe,RestoreDocumentQueryParams:()=>XSe,RestoreDocumentParams:()=>wSe,RestoreDocumentHeader:()=>YSe,PermanentDeleteDocumentQueryParams:()=>ySe,PermanentDeleteDocumentParams:()=>KSe,PermanentDeleteDocumentHeader:()=>VSe,GetShareableIdResponse:()=>jSe,GetShareableIdParams:()=>ZSe,GetShareableIdHeader:()=>CSe,GetNextDocumentNumberResponse:()=>qSe,GetNextDocumentNumberQueryParams:()=>bSe,GetNextDocumentNumberHeader:()=>TSe,FiscalizeDocumentResponse:()=>LSe,FiscalizeDocumentQueryParams:()=>BSe,FiscalizeDocumentParams:()=>tSe,FiscalizeDocumentHeader:()=>RSe,FinalizeDocumentResponse:()=>JSe,FinalizeDocumentQueryParams:()=>GSe,FinalizeDocumentParams:()=>NSe,FinalizeDocumentHeader:()=>uSe,DeleteDocumentQueryParams:()=>WSe,DeleteDocumentParams:()=>HSe,DeleteDocumentHeader:()=>QSe});var bSe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type"),business_premise_name:e().optional().describe("Business premise name (Slovenia FURS). If provided with electronic_device_name, returns fiscalization-format number."),electronic_device_name:e().optional().describe("Electronic device name (Slovenia FURS). Required if business_premise_name is provided.")}),TSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),qSe=r({number:e().nullable().describe("Preview of the next document number. Null if cannot be determined."),furs:r({business_premise_name:e().describe("Business premise name used for this preview (Slovenia FURS)"),electronic_device_name:e().describe("Electronic device name used for this preview (Slovenia FURS)")}).nullish().describe("FURS (Slovenia) fiscalization info if FURS numbering was used. Null for standard numbering."),fina:r({premise_id:e().describe("Business premise ID used for this preview (Croatia CIS)"),device_id:e().describe("Electronic device ID used for this preview (Croatia CIS)")}).nullish().describe("FINA (Croatia) CIS fiscalization info if FINA is enabled. Null for standard numbering.")}),NSe=r({id:e().describe("Document ID")}),GSe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),uSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),JSe=D(),tSe=r({id:e().describe("Document ID")}),BSe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),RSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),LSe=D(),HSe=r({id:e().describe("Document ID")}),WSe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),QSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),wSe=r({id:e().describe("Document ID")}),XSe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),YSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xSe=D(),KSe=r({id:e().describe("Document ID")}),ySe=r({type:g(["invoice","estimate","credit_note","advance_invoice","delivery_note"]).describe("Document type")}),VSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),FSe=r({id:e().describe("Document ID")}),$Se=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),tR=255,BR=!1,RR=!1,MSe=r({to:e().email().describe("Recipient email address"),subject:e().min(1).max(tR).optional().describe("Email subject line. If not provided, uses default from entity settings."),body_text:e().min(1).optional().describe("Email body text with optional markdown formatting and template variables ({document_number}, {customer_name}, {entity_name}, {invoice_link})."),attach_pdf:A().default(BR).describe("Whether to attach the document as a PDF."),attach_eslog:A().default(RR).describe("Whether to attach the document as e-SLOG 2.0 XML (Slovenian only).")}),zSe=r({message_id:e().describe("AWS SES message ID for tracking"),status:g(["sent","queued"]).describe("Email send status"),to:e().email().describe("Recipient email address"),subject:e().describe("Email subject"),shareable_link:e().url().optional().describe("Public URL for viewing the invoice online (if document_id was provided)")}),LR=/^[a-z]{3,4}_[0-9a-f]{24}$/,kSe=r({id:e().regex(LR).describe("Unique resource identifier")}),USe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),mSe=r({shareable_id:e().describe("Unique shareable token for public document access")}).describe("Response containing a shareable ID token"),HR=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZSe=r({id:e().regex(HR).describe("Unique resource identifier")}),CSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),jSe=r({shareable_id:e().describe("Unique shareable token for public document access")}).describe("Response containing a shareable ID token"),WR=/^[a-z]{3,4}_[0-9a-f]{24}$/,pSe=r({id:e().regex(WR).describe("Unique resource identifier")}),fSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var uc={};Q(uc,{sendEmailBodySubjectMax:()=>QR,sendEmailBodyAttachPdfDefault:()=>wR,sendEmailBodyAttachEslogDefault:()=>XR,SendEmailResponse:()=>iSe,SendEmailHeader:()=>lSe,SendEmailBody:()=>hSe});var lSe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),QR=255,wR=!1,XR=!1,hSe=r({to:e().email().describe("Recipient email address"),subject:e().min(1).max(QR).optional().describe("Email subject line. If not provided, uses default from entity settings or a generated subject."),body_text:e().min(1).optional().describe("Email body. Supports markdown formatting (**bold**, *italic*, `code`, [links](url), lists, headers). Plain text works fine too! Images and HTML tags are skipped for security. Supports template variables like {document_number}, {customer_name}, {entity_name}, and {invoice_link} for the public invoice URL. If {invoice_link} is not present, defaults to appending 'View your invoice online: {url}' at the bottom."),document_id:e().optional().describe("ID of the document (invoice, etc.) to reference for sharing. Generates a public shareable link."),attach_pdf:A().default(wR).describe("Whether to attach the invoice as a PDF. By default, only the public link is included in the email body. Set to true to also attach the PDF file."),attach_eslog:A().default(XR).describe("Whether to attach the document as e-SLOG 2.0 XML (Slovenian electronic invoice format). Only available for Slovenian entities when eslog.validation_status = 'valid'. Can be combined with attach_pdf to attach both formats.")}),iSe=r({message_id:e().describe("AWS SES message ID for tracking"),status:g(["sent","queued"]).describe("Email send status"),to:e().email().describe("Recipient email address"),subject:e().describe("Email subject"),shareable_link:e().url().optional().describe("Public URL for viewing the invoice online (if document_id was provided)")});var Jc={};Q(Jc,{patchEntityResponseTwoOneTaxNumberMax:()=>TQ,patchEntityResponseTwoOneTaxNumber2Max:()=>qQ,patchEntityResponseTwoOneStateMax:()=>_Q,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>UQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>zQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>kQ,patchEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>MQ,patchEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>$Q,patchEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>XQ,patchEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>KQ,patchEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>YQ,patchEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>xQ,patchEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>JQ,patchEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>VQ,patchEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>FQ,patchEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>yQ,patchEntityResponseTwoOneSettingsFursEnabledDefault:()=>RQ,patchEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>QQ,patchEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>HQ,patchEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>WQ,patchEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>wQ,patchEntityResponseTwoOneSettingsFinaEnabledDefault:()=>LQ,patchEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>tQ,patchEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>BQ,patchEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>mQ,patchEntityResponseTwoOnePostCodeMax:()=>gQ,patchEntityResponseTwoOneNameMax:()=>AQ,patchEntityResponseTwoOneLocaleMax:()=>bQ,patchEntityResponseTwoOneIdMax:()=>nQ,patchEntityResponseTwoOneEmailMax:()=>GQ,patchEntityResponseTwoOneCurrencyCodeMax:()=>OQ,patchEntityResponseTwoOneCountryMax:()=>EQ,patchEntityResponseTwoOneCountryCodeMax:()=>DQ,patchEntityResponseTwoOneCompanyNumberMax:()=>NQ,patchEntityResponseTwoOneCityMax:()=>PQ,patchEntityResponseTwoOneAddressMax:()=>IQ,patchEntityResponseTwoOneAddress2Max:()=>SQ,patchEntityResponseTwoOneAccountIdMax:()=>uQ,patchEntityResponseOneTaxNumberMax:()=>xW,patchEntityResponseOneTaxNumber2Max:()=>KW,patchEntityResponseOneStateMax:()=>WW,patchEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>rQ,patchEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>oQ,patchEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>cQ,patchEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>eQ,patchEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>sW,patchEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>pW,patchEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>hW,patchEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>fW,patchEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>lW,patchEntityResponseOneSettingsPrimaryColorRegExp:()=>$W,patchEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>dW,patchEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>aW,patchEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>iW,patchEntityResponseOneSettingsFursEnabledDefault:()=>kW,patchEntityResponseOneSettingsFinaUSustPdvDefault:()=>CW,patchEntityResponseOneSettingsFinaOperatorOibMin:()=>mW,patchEntityResponseOneSettingsFinaOperatorOibMax:()=>ZW,patchEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>jW,patchEntityResponseOneSettingsFinaEnabledDefault:()=>UW,patchEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>MW,patchEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>zW,patchEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>vQ,patchEntityResponseOnePostCodeMax:()=>LW,patchEntityResponseOneNameMax:()=>tW,patchEntityResponseOneLocaleMax:()=>YW,patchEntityResponseOneIdMax:()=>JW,patchEntityResponseOneEmailMax:()=>VW,patchEntityResponseOneCurrencyCodeMax:()=>XW,patchEntityResponseOneCountryMax:()=>QW,patchEntityResponseOneCountryCodeMax:()=>wW,patchEntityResponseOneCompanyNumberMax:()=>yW,patchEntityResponseOneCityMax:()=>HW,patchEntityResponseOneAddressMax:()=>BW,patchEntityResponseOneAddress2Max:()=>RW,patchEntityResponseOneAccountIdMax:()=>FW,patchEntityPathIdRegExp:()=>kH,patchEntityHeaderXAccountIdRegExp:()=>UH,patchEntityBodyTaxNumberMax:()=>hH,patchEntityBodyTaxNumber2Max:()=>iH,patchEntityBodyStateMax:()=>pH,patchEntityBodySettingsUpnQrPurposeCodeRegExp:()=>GW,patchEntityBodySettingsUpnQrPurposeCodeMin:()=>qW,patchEntityBodySettingsUpnQrPurposeCodeMax:()=>NW,patchEntityBodySettingsUpnQrPurposeCodeDefault:()=>TW,patchEntityBodySettingsUpnQrDisplayModeDefault:()=>bW,patchEntityBodySettingsTaxRulesEuViesValidateVatDefault:()=>SW,patchEntityBodySettingsTaxRulesEuRequireGrossPricesDefault:()=>_W,patchEntityBodySettingsTaxRulesEuAutoReverseChargeDefault:()=>gW,patchEntityBodySettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>PW,patchEntityBodySettingsPrimaryColorRegExp:()=>sH,patchEntityBodySettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>DW,patchEntityBodySettingsOverdueNotificationsThresholdDaysDefault:()=>OW,patchEntityBodySettingsOverdueNotificationsEnabledDefault:()=>EW,patchEntityBodySettingsFursEnabledDefault:()=>cW,patchEntityBodySettingsFinaUSustPdvDefault:()=>AW,patchEntityBodySettingsFinaOperatorOibMin:()=>vW,patchEntityBodySettingsFinaOperatorOibMax:()=>nW,patchEntityBodySettingsFinaNumberingSequenceDefault:()=>IW,patchEntityBodySettingsFinaEnabledDefault:()=>rW,patchEntityBodySettingsDefaultInvoiceDueDaysExclusiveMin:()=>eW,patchEntityBodySettingsDefaultEstimateValidDaysExclusiveMin:()=>oW,patchEntityBodySettingsBankAccountsItemTypeDefault:()=>uW,patchEntityBodyPostCodeMax:()=>CH,patchEntityBodyLocaleMax:()=>lH,patchEntityBodyEmailMax:()=>aH,patchEntityBodyCurrencyCodeMax:()=>fH,patchEntityBodyCompanyNumberMax:()=>dH,patchEntityBodyCityMax:()=>jH,patchEntityBodyAddressMax:()=>mH,patchEntityBodyAddress2Max:()=>ZH,getEntitiesResponseDataItemTwoOneTaxNumberMax:()=>DH,getEntitiesResponseDataItemTwoOneTaxNumber2Max:()=>OH,getEntitiesResponseDataItemTwoOneStateMax:()=>SH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeRegExp:()=>MH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeMin:()=>FH,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeMax:()=>$H,getEntitiesResponseDataItemTwoOneSettingsUpnQrPurposeCodeDefault:()=>VH,getEntitiesResponseDataItemTwoOneSettingsUpnQrDisplayModeDefault:()=>yH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>WH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>XH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>QH,getEntitiesResponseDataItemTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>wH,getEntitiesResponseDataItemTwoOneSettingsPrimaryColorRegExp:()=>NH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>xH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>KH,getEntitiesResponseDataItemTwoOneSettingsOverdueNotificationsEnabledDefault:()=>YH,getEntitiesResponseDataItemTwoOneSettingsFursEnabledDefault:()=>JH,getEntitiesResponseDataItemTwoOneSettingsFinaUSustPdvDefault:()=>LH,getEntitiesResponseDataItemTwoOneSettingsFinaOperatorOibMin:()=>BH,getEntitiesResponseDataItemTwoOneSettingsFinaOperatorOibMax:()=>RH,getEntitiesResponseDataItemTwoOneSettingsFinaNumberingSequenceDefault:()=>HH,getEntitiesResponseDataItemTwoOneSettingsFinaEnabledDefault:()=>tH,getEntitiesResponseDataItemTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>GH,getEntitiesResponseDataItemTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>uH,getEntitiesResponseDataItemTwoOneSettingsBankAccountsItemTypeDefault:()=>zH,getEntitiesResponseDataItemTwoOnePostCodeMax:()=>AH,getEntitiesResponseDataItemTwoOneNameMax:()=>rH,getEntitiesResponseDataItemTwoOneLocaleMax:()=>EH,getEntitiesResponseDataItemTwoOneIdMax:()=>cH,getEntitiesResponseDataItemTwoOneEmailMax:()=>TH,getEntitiesResponseDataItemTwoOneCurrencyCodeMax:()=>_H,getEntitiesResponseDataItemTwoOneCountryMax:()=>gH,getEntitiesResponseDataItemTwoOneCountryCodeMax:()=>PH,getEntitiesResponseDataItemTwoOneCompanyNumberMax:()=>bH,getEntitiesResponseDataItemTwoOneCityMax:()=>IH,getEntitiesResponseDataItemTwoOneAddressMax:()=>vH,getEntitiesResponseDataItemTwoOneAddress2Max:()=>nH,getEntitiesResponseDataItemTwoOneAccountIdMax:()=>qH,getEntitiesResponseDataItemOneTaxNumberMax:()=>wL,getEntitiesResponseDataItemOneTaxNumber2Max:()=>XL,getEntitiesResponseDataItemOneStateMax:()=>RL,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeRegExp:()=>eH,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeMin:()=>aL,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeMax:()=>sL,getEntitiesResponseDataItemOneSettingsUpnQrPurposeCodeDefault:()=>dL,getEntitiesResponseDataItemOneSettingsUpnQrDisplayModeDefault:()=>iL,getEntitiesResponseDataItemOneSettingsTaxRulesEuViesValidateVatDefault:()=>ZL,getEntitiesResponseDataItemOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>pL,getEntitiesResponseDataItemOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>CL,getEntitiesResponseDataItemOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>jL,getEntitiesResponseDataItemOneSettingsPrimaryColorRegExp:()=>yL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>lL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsThresholdDaysDefault:()=>hL,getEntitiesResponseDataItemOneSettingsOverdueNotificationsEnabledDefault:()=>fL,getEntitiesResponseDataItemOneSettingsFursEnabledDefault:()=>$L,getEntitiesResponseDataItemOneSettingsFinaUSustPdvDefault:()=>UL,getEntitiesResponseDataItemOneSettingsFinaOperatorOibMin:()=>zL,getEntitiesResponseDataItemOneSettingsFinaOperatorOibMax:()=>kL,getEntitiesResponseDataItemOneSettingsFinaNumberingSequenceDefault:()=>mL,getEntitiesResponseDataItemOneSettingsFinaEnabledDefault:()=>ML,getEntitiesResponseDataItemOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>VL,getEntitiesResponseDataItemOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>FL,getEntitiesResponseDataItemOneSettingsBankAccountsItemTypeDefault:()=>oH,getEntitiesResponseDataItemOnePostCodeMax:()=>tL,getEntitiesResponseDataItemOneNameMax:()=>GL,getEntitiesResponseDataItemOneLocaleMax:()=>QL,getEntitiesResponseDataItemOneIdMax:()=>NL,getEntitiesResponseDataItemOneEmailMax:()=>xL,getEntitiesResponseDataItemOneCurrencyCodeMax:()=>WL,getEntitiesResponseDataItemOneCountryMax:()=>LL,getEntitiesResponseDataItemOneCountryCodeMax:()=>HL,getEntitiesResponseDataItemOneCompanyNumberMax:()=>YL,getEntitiesResponseDataItemOneCityMax:()=>BL,getEntitiesResponseDataItemOneAddressMax:()=>uL,getEntitiesResponseDataItemOneAddress2Max:()=>JL,getEntitiesResponseDataItemOneAccountIdMax:()=>KL,getEntitiesQueryLimitMax:()=>bL,getEntitiesQueryLimitDefault:()=>OL,getEntitiesQueryEnvironmentDefault:()=>TL,getEntitiesHeaderXAccountIdRegExp:()=>qL,enableEntityResponseTwoOneTaxNumberMax:()=>k3,enableEntityResponseTwoOneTaxNumber2Max:()=>U3,enableEntityResponseTwoOneStateMax:()=>V3,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>_w,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>gw,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>Pw,enableEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>Sw,enableEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>Iw,enableEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>ew,enableEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>rw,enableEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>ow,enableEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>cw,enableEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>j3,enableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>nw,enableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>Aw,enableEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>vw,enableEntityResponseTwoOneSettingsFursEnabledDefault:()=>l3,enableEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>a3,enableEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>i3,enableEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>d3,enableEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>s3,enableEntityResponseTwoOneSettingsFinaEnabledDefault:()=>h3,enableEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>p3,enableEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>f3,enableEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>Ew,enableEntityResponseTwoOnePostCodeMax:()=>K3,enableEntityResponseTwoOneNameMax:()=>X3,enableEntityResponseTwoOneLocaleMax:()=>z3,enableEntityResponseTwoOneIdMax:()=>w3,enableEntityResponseTwoOneEmailMax:()=>Z3,enableEntityResponseTwoOneCurrencyCodeMax:()=>M3,enableEntityResponseTwoOneCountryMax:()=>F3,enableEntityResponseTwoOneCountryCodeMax:()=>$3,enableEntityResponseTwoOneCompanyNumberMax:()=>m3,enableEntityResponseTwoOneCityMax:()=>y3,enableEntityResponseTwoOneAddressMax:()=>Y3,enableEntityResponseTwoOneAddress2Max:()=>x3,enableEntityResponseTwoOneAccountIdMax:()=>C3,enableEntityResponseOneTaxNumberMax:()=>c3,enableEntityResponseOneTaxNumber2Max:()=>r3,enableEntityResponseOneStateMax:()=>dQ,enableEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>W3,enableEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>L3,enableEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>H3,enableEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>R3,enableEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>B3,enableEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>T3,enableEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>G3,enableEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>q3,enableEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>N3,enableEntityResponseOneSettingsPrimaryColorRegExp:()=>I3,enableEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>J3,enableEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>t3,enableEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>u3,enableEntityResponseOneSettingsFursEnabledDefault:()=>P3,enableEntityResponseOneSettingsFinaUSustPdvDefault:()=>O3,enableEntityResponseOneSettingsFinaOperatorOibMin:()=>E3,enableEntityResponseOneSettingsFinaOperatorOibMax:()=>D3,enableEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>b3,enableEntityResponseOneSettingsFinaEnabledDefault:()=>_3,enableEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>S3,enableEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>g3,enableEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>Q3,enableEntityResponseOnePostCodeMax:()=>hQ,enableEntityResponseOneNameMax:()=>pQ,enableEntityResponseOneLocaleMax:()=>o3,enableEntityResponseOneIdMax:()=>jQ,enableEntityResponseOneEmailMax:()=>n3,enableEntityResponseOneCurrencyCodeMax:()=>e3,enableEntityResponseOneCountryMax:()=>aQ,enableEntityResponseOneCountryCodeMax:()=>sQ,enableEntityResponseOneCompanyNumberMax:()=>v3,enableEntityResponseOneCityMax:()=>iQ,enableEntityResponseOneAddressMax:()=>fQ,enableEntityResponseOneAddress2Max:()=>lQ,enableEntityResponseOneAccountIdMax:()=>A3,enableEntityPathIdRegExp:()=>ZQ,enableEntityHeaderXAccountIdRegExp:()=>CQ,disableEntityResponseTwoOneTaxNumberMax:()=>PX,disableEntityResponseTwoOneTaxNumber2Max:()=>_X,disableEntityResponseTwoOneStateMax:()=>nX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeRegExp:()=>VX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeMin:()=>KX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeMax:()=>yX,disableEntityResponseTwoOneSettingsUpnQrPurposeCodeDefault:()=>xX,disableEntityResponseTwoOneSettingsUpnQrDisplayModeDefault:()=>YX,disableEntityResponseTwoOneSettingsTaxRulesEuViesValidateVatDefault:()=>RX,disableEntityResponseTwoOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>WX,disableEntityResponseTwoOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>LX,disableEntityResponseTwoOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>HX,disableEntityResponseTwoOneSettingsPrimaryColorRegExp:()=>bX,disableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>wX,disableEntityResponseTwoOneSettingsOverdueNotificationsThresholdDaysDefault:()=>XX,disableEntityResponseTwoOneSettingsOverdueNotificationsEnabledDefault:()=>QX,disableEntityResponseTwoOneSettingsFursEnabledDefault:()=>NX,disableEntityResponseTwoOneSettingsFinaUSustPdvDefault:()=>tX,disableEntityResponseTwoOneSettingsFinaOperatorOibMin:()=>uX,disableEntityResponseTwoOneSettingsFinaOperatorOibMax:()=>JX,disableEntityResponseTwoOneSettingsFinaNumberingSequenceDefault:()=>BX,disableEntityResponseTwoOneSettingsFinaEnabledDefault:()=>GX,disableEntityResponseTwoOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>TX,disableEntityResponseTwoOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>qX,disableEntityResponseTwoOneSettingsBankAccountsItemTypeDefault:()=>FX,disableEntityResponseTwoOnePostCodeMax:()=>rX,disableEntityResponseTwoOneNameMax:()=>eX,disableEntityResponseTwoOneLocaleMax:()=>gX,disableEntityResponseTwoOneIdMax:()=>sw,disableEntityResponseTwoOneEmailMax:()=>DX,disableEntityResponseTwoOneCurrencyCodeMax:()=>SX,disableEntityResponseTwoOneCountryMax:()=>AX,disableEntityResponseTwoOneCountryCodeMax:()=>IX,disableEntityResponseTwoOneCompanyNumberMax:()=>EX,disableEntityResponseTwoOneCityMax:()=>vX,disableEntityResponseTwoOneAddressMax:()=>oX,disableEntityResponseTwoOneAddress2Max:()=>cX,disableEntityResponseTwoOneAccountIdMax:()=>OX,disableEntityResponseOneTaxNumberMax:()=>Hw,disableEntityResponseOneTaxNumber2Max:()=>Ww,disableEntityResponseOneStateMax:()=>Jw,disableEntityResponseOneSettingsUpnQrPurposeCodeRegExp:()=>dw,disableEntityResponseOneSettingsUpnQrPurposeCodeMin:()=>hw,disableEntityResponseOneSettingsUpnQrPurposeCodeMax:()=>iw,disableEntityResponseOneSettingsUpnQrPurposeCodeDefault:()=>lw,disableEntityResponseOneSettingsUpnQrDisplayModeDefault:()=>fw,disableEntityResponseOneSettingsTaxRulesEuViesValidateVatDefault:()=>kw,disableEntityResponseOneSettingsTaxRulesEuRequireGrossPricesDefault:()=>Zw,disableEntityResponseOneSettingsTaxRulesEuAutoReverseChargeDefault:()=>Uw,disableEntityResponseOneSettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>mw,disableEntityResponseOneSettingsPrimaryColorRegExp:()=>Yw,disableEntityResponseOneSettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>jw,disableEntityResponseOneSettingsOverdueNotificationsThresholdDaysDefault:()=>pw,disableEntityResponseOneSettingsOverdueNotificationsEnabledDefault:()=>Cw,disableEntityResponseOneSettingsFursEnabledDefault:()=>yw,disableEntityResponseOneSettingsFinaUSustPdvDefault:()=>Mw,disableEntityResponseOneSettingsFinaOperatorOibMin:()=>Fw,disableEntityResponseOneSettingsFinaOperatorOibMax:()=>$w,disableEntityResponseOneSettingsFinaNumberingSequenceDefault:()=>zw,disableEntityResponseOneSettingsFinaEnabledDefault:()=>Vw,disableEntityResponseOneSettingsDefaultInvoiceDueDaysExclusiveMin:()=>xw,disableEntityResponseOneSettingsDefaultEstimateValidDaysExclusiveMin:()=>Kw,disableEntityResponseOneSettingsBankAccountsItemTypeDefault:()=>aw,disableEntityResponseOnePostCodeMax:()=>Gw,disableEntityResponseOneNameMax:()=>Tw,disableEntityResponseOneLocaleMax:()=>Lw,disableEntityResponseOneIdMax:()=>bw,disableEntityResponseOneEmailMax:()=>ww,disableEntityResponseOneCurrencyCodeMax:()=>Rw,disableEntityResponseOneCountryMax:()=>tw,disableEntityResponseOneCountryCodeMax:()=>Bw,disableEntityResponseOneCompanyNumberMax:()=>Qw,disableEntityResponseOneCityMax:()=>uw,disableEntityResponseOneAddressMax:()=>qw,disableEntityResponseOneAddress2Max:()=>Nw,disableEntityResponseOneAccountIdMax:()=>Xw,disableEntityPathIdRegExp:()=>Dw,disableEntityHeaderXAccountIdRegExp:()=>Ow,createEntityHeaderXAccountIdRegExp:()=>YR,createEntityBodyTaxNumberMax:()=>mR,createEntityBodyTaxNumber2Max:()=>ZR,createEntityBodyStateMax:()=>FR,createEntityBodySettingsUpnQrPurposeCodeRegExp:()=>EL,createEntityBodySettingsUpnQrPurposeCodeMin:()=>PL,createEntityBodySettingsUpnQrPurposeCodeMax:()=>_L,createEntityBodySettingsUpnQrPurposeCodeDefault:()=>gL,createEntityBodySettingsUpnQrDisplayModeDefault:()=>SL,createEntityBodySettingsTaxRulesEuViesValidateVatDefault:()=>oL,createEntityBodySettingsTaxRulesEuRequireGrossPricesDefault:()=>vL,createEntityBodySettingsTaxRulesEuAutoReverseChargeDefault:()=>cL,createEntityBodySettingsTaxRulesEuAutoRemoveTaxExportDefault:()=>rL,createEntityBodySettingsPrimaryColorRegExp:()=>pR,createEntityBodySettingsOverdueNotificationsThresholdDaysItemExclusiveMin:()=>AL,createEntityBodySettingsOverdueNotificationsThresholdDaysDefault:()=>IL,createEntityBodySettingsOverdueNotificationsEnabledDefault:()=>nL,createEntityBodySettingsFursEnabledDefault:()=>hR,createEntityBodySettingsFinaUSustPdvDefault:()=>sR,createEntityBodySettingsFinaOperatorOibMin:()=>dR,createEntityBodySettingsFinaOperatorOibMax:()=>aR,createEntityBodySettingsFinaNumberingSequenceDefault:()=>eL,createEntityBodySettingsFinaEnabledDefault:()=>iR,createEntityBodySettingsDefaultInvoiceDueDaysExclusiveMin:()=>fR,createEntityBodySettingsDefaultEstimateValidDaysExclusiveMin:()=>lR,createEntityBodySettingsBankAccountsItemTypeDefault:()=>DL,createEntityBodyPostCodeMax:()=>yR,createEntityBodyLocaleMax:()=>UR,createEntityBodyEmailMax:()=>jR,createEntityBodyCurrencyCodeMax:()=>kR,createEntityBodyCountryMax:()=>$R,createEntityBodyCountryCodeMin:()=>MR,createEntityBodyCountryCodeMax:()=>zR,createEntityBodyCompanyNumberMax:()=>CR,createEntityBodyCityMax:()=>VR,createEntityBodyAddressMax:()=>xR,createEntityBodyAddress2Max:()=>KR,PatchEntityResponse:()=>nge,PatchEntityParams:()=>cge,PatchEntityHeader:()=>rge,PatchEntityBody:()=>vge,GetEntitiesResponse:()=>oge,GetEntitiesQueryParams:()=>sSe,GetEntitiesHeader:()=>ege,EnableEntityResponse:()=>Sge,EnableEntityParams:()=>Age,EnableEntityHeader:()=>Ige,DisableEntityResponse:()=>_ge,DisableEntityParams:()=>gge,DisableEntityHeader:()=>Pge,CreateEntityHeader:()=>dSe,CreateEntityBody:()=>aSe});var YR=/^acc_[0-9a-fA-F]{24}$/,dSe=r({"x-account-id":e().regex(YR).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),xR=500,KR=500,yR=20,VR=100,FR=100,$R=100,MR=2,zR=2,kR=3,UR=20,mR=50,ZR=50,CR=50,jR=255,pR=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,fR=0,lR=0,hR=!1,iR=!1,dR=11,aR=11,sR=!0,eL="N",oL=!0,cL=!1,rL=!1,vL=!1,nL=!1,AL=0,IL=[7,14,30],SL="qr_only",gL="OTHR",PL=4,_L=4,EL=/^[A-Z]{4}$/,DL="iban",aSe=r({name:e().min(1),address:e().max(xR).nullish(),address_2:e().max(KR).nullish(),post_code:e().max(yR).nullish(),city:e().max(VR).nullish(),state:e().max(FR).nullish(),country:e().max($R),country_code:e().min(MR).max(zR).nullish(),currency_code:e().max(kR).nullish(),locale:e().max(UR).optional(),tax_number:e().max(mR).nullish(),tax_number_2:e().max(ZR).nullish(),company_number:e().max(CR).nullish(),email:e().max(jR).nullish(),environment:g(["live","sandbox"]).optional(),is_tax_subject:A().optional(),is_enabled:A().optional().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(pR).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(fR).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(lR).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(hR).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(iR).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(dR).max(aR).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(sR).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(eL).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(oL).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(cL).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(rL).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(vL).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(nL).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(AL)).default(IL).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(SL).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(PL).max(_L).regex(EL).default(gL).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(DL).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).optional().describe("Entity settings"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),OL=10,bL=100,TL="live",sSe=r({limit:v().min(1).max(bL).default(OL).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","country","created_at","updated_at","-id","-name","-country","-created_at","-updated_at"]),P(g(["id","name","country","created_at","updated_at","-id","-name","-country","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, country, currency_code, 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().optional().describe(`Full-text search query to filter results across multiple fields.
138
- Searches are case-insensitive and match partial strings.
139
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),environment:g(["live","sandbox"]).default(TL).describe('Environment making queries on. Defaults to "live".')}),qL=/^acc_[0-9a-fA-F]{24}$/,ege=r({"x-account-id":e().regex(qL).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),NL=36,GL=255,uL=500,JL=500,tL=20,BL=100,RL=100,LL=100,HL=2,WL=3,QL=20,wL=50,XL=50,YL=50,xL=255,KL=36,yL=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,VL=0,FL=0,$L=!1,ML=!1,zL=11,kL=11,UL=!0,mL="N",ZL=!0,CL=!1,jL=!1,pL=!1,fL=!1,lL=0,hL=[7,14,30],iL="qr_only",dL="OTHR",aL=4,sL=4,eH=/^[A-Z]{4}$/,oH="iban",cH=36,rH=255,vH=500,nH=500,AH=20,IH=100,SH=100,gH=100,PH=2,_H=3,EH=20,DH=50,OH=50,bH=50,TH=255,qH=36,NH=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,GH=0,uH=0,JH=!1,tH=!1,BH=11,RH=11,LH=!0,HH="N",WH=!0,QH=!1,wH=!1,XH=!1,YH=!1,xH=0,KH=[7,14,30],yH="qr_only",VH="OTHR",FH=4,$H=4,MH=/^[A-Z]{4}$/,zH="iban",oge=r({data:P(r({id:e().max(NL),name:e().max(GL),address:e().max(uL).nullish(),address_2:e().max(JL).nullish(),post_code:e().max(tL).nullish(),city:e().max(BL).nullish(),state:e().max(RL).nullish(),country:e().max(LL),country_code:e().max(HL),currency_code:e().max(WL).nullish(),locale:e().max(QL),tax_number:e().max(wL).nullish(),tax_number_2:e().max(XL).nullish(),company_number:e().max(YL).nullish(),email:e().max(xL).nullish(),account_id:e().max(KL),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(yL).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(VL).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(FL).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default($L).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(ML).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(zL).max(kL).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(UL).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(mL).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(ZL).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(CL).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(jL).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(pL).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(fL).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(lL)).default(hL).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(iL).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(aL).max(sL).regex(eH).default(dL).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(oH).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(cH),name:e().max(rH),address:e().max(vH).nullish(),address_2:e().max(nH).nullish(),post_code:e().max(AH).nullish(),city:e().max(IH).nullish(),state:e().max(SH).nullish(),country:e().max(gH),country_code:e().max(PH),currency_code:e().max(_H).nullish(),locale:e().max(EH),tax_number:e().max(DH).nullish(),tax_number_2:e().max(OH).nullish(),company_number:e().max(bH).nullish(),email:e().max(TH).nullish(),account_id:e().max(qH),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(NH).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(GH).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(uH).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(JH).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(tH).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(BH).max(RH).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(LH).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(HH).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(WH).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(QH).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(wH).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(XH).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(YH).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(xH)).default(KH).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(yH).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(FH).max($H).regex(MH).default(VH).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(zH).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created."))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),kH=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,cge=r({id:e().regex(kH).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),UH=/^acc_[0-9a-fA-F]{24}$/,rge=r({"x-account-id":e().regex(UH).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),mH=500,ZH=500,CH=20,jH=100,pH=100,fH=3,lH=20,hH=50,iH=50,dH=50,aH=255,sH=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,eW=0,oW=0,cW=!1,rW=!1,vW=11,nW=11,AW=!0,IW="N",SW=!0,gW=!1,PW=!1,_W=!1,EW=!1,DW=0,OW=[7,14,30],bW="qr_only",TW="OTHR",qW=4,NW=4,GW=/^[A-Z]{4}$/,uW="iban",vge=r({name:e().min(1).optional(),address:e().max(mH).nullish(),address_2:e().max(ZH).nullish(),post_code:e().max(CH).nullish(),city:e().max(jH).nullish(),state:e().max(pH).nullish(),currency_code:e().max(fH).nullish(),locale:e().max(lH).optional(),tax_number:e().max(hH).nullish(),tax_number_2:e().max(iH).nullish(),company_number:e().max(dH).nullish(),email:e().max(aH).nullish(),is_tax_subject:A().optional(),is_enabled:A().optional().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(sH).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(eW).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(oW).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(cW).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(rW).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(vW).max(nW).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(AW).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(IW).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(SW).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(gW).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(PW).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(_W).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(EW).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(DW)).default(OW).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(bW).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(qW).max(NW).regex(GW).default(TW).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(uW).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).optional().describe("Entity settings"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),JW=36,tW=255,BW=500,RW=500,LW=20,HW=100,WW=100,QW=100,wW=2,XW=3,YW=20,xW=50,KW=50,yW=50,VW=255,FW=36,$W=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,MW=0,zW=0,kW=!1,UW=!1,mW=11,ZW=11,CW=!0,jW="N",pW=!0,fW=!1,lW=!1,hW=!1,iW=!1,dW=0,aW=[7,14,30],sW="qr_only",eQ="OTHR",oQ=4,cQ=4,rQ=/^[A-Z]{4}$/,vQ="iban",nQ=36,AQ=255,IQ=500,SQ=500,gQ=20,PQ=100,_Q=100,EQ=100,DQ=2,OQ=3,bQ=20,TQ=50,qQ=50,NQ=50,GQ=255,uQ=36,JQ=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,tQ=0,BQ=0,RQ=!1,LQ=!1,HQ=11,WQ=11,QQ=!0,wQ="N",XQ=!0,YQ=!1,xQ=!1,KQ=!1,yQ=!1,VQ=0,FQ=[7,14,30],$Q="qr_only",MQ="OTHR",zQ=4,kQ=4,UQ=/^[A-Z]{4}$/,mQ="iban",nge=r({id:e().max(JW),name:e().max(tW),address:e().max(BW).nullish(),address_2:e().max(RW).nullish(),post_code:e().max(LW).nullish(),city:e().max(HW).nullish(),state:e().max(WW).nullish(),country:e().max(QW),country_code:e().max(wW),currency_code:e().max(XW).nullish(),locale:e().max(YW),tax_number:e().max(xW).nullish(),tax_number_2:e().max(KW).nullish(),company_number:e().max(yW).nullish(),email:e().max(VW).nullish(),account_id:e().max(FW),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex($W).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(MW).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(zW).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(kW).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(UW).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(mW).max(ZW).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(CW).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(jW).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(pW).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(fW).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(lW).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(hW).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(iW).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(dW)).default(aW).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(sW).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(oQ).max(cQ).regex(rQ).default(eQ).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(vQ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(nQ),name:e().max(AQ),address:e().max(IQ).nullish(),address_2:e().max(SQ).nullish(),post_code:e().max(gQ).nullish(),city:e().max(PQ).nullish(),state:e().max(_Q).nullish(),country:e().max(EQ),country_code:e().max(DQ),currency_code:e().max(OQ).nullish(),locale:e().max(bQ),tax_number:e().max(TQ).nullish(),tax_number_2:e().max(qQ).nullish(),company_number:e().max(NQ).nullish(),email:e().max(GQ).nullish(),account_id:e().max(uQ),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(JQ).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(tQ).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(BQ).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(RQ).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(LQ).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(HQ).max(WQ).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(QQ).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(wQ).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(XQ).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(YQ).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(xQ).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(KQ).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(yQ).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(VQ)).default(FQ).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default($Q).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(zQ).max(kQ).regex(UQ).default(MQ).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(mQ).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created.")),ZQ=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Age=r({id:e().regex(ZQ).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),CQ=/^acc_[0-9a-fA-F]{24}$/,Ige=r({"x-account-id":e().regex(CQ).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),jQ=36,pQ=255,fQ=500,lQ=500,hQ=20,iQ=100,dQ=100,aQ=100,sQ=2,e3=3,o3=20,c3=50,r3=50,v3=50,n3=255,A3=36,I3=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,S3=0,g3=0,P3=!1,_3=!1,E3=11,D3=11,O3=!0,b3="N",T3=!0,q3=!1,N3=!1,G3=!1,u3=!1,J3=0,t3=[7,14,30],B3="qr_only",R3="OTHR",L3=4,H3=4,W3=/^[A-Z]{4}$/,Q3="iban",w3=36,X3=255,Y3=500,x3=500,K3=20,y3=100,V3=100,F3=100,$3=2,M3=3,z3=20,k3=50,U3=50,m3=50,Z3=255,C3=36,j3=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,p3=0,f3=0,l3=!1,h3=!1,i3=11,d3=11,a3=!0,s3="N",ew=!0,ow=!1,cw=!1,rw=!1,vw=!1,nw=0,Aw=[7,14,30],Iw="qr_only",Sw="OTHR",gw=4,Pw=4,_w=/^[A-Z]{4}$/,Ew="iban",Sge=r({id:e().max(jQ),name:e().max(pQ),address:e().max(fQ).nullish(),address_2:e().max(lQ).nullish(),post_code:e().max(hQ).nullish(),city:e().max(iQ).nullish(),state:e().max(dQ).nullish(),country:e().max(aQ),country_code:e().max(sQ),currency_code:e().max(e3).nullish(),locale:e().max(o3),tax_number:e().max(c3).nullish(),tax_number_2:e().max(r3).nullish(),company_number:e().max(v3).nullish(),email:e().max(n3).nullish(),account_id:e().max(A3),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(I3).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(S3).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(g3).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(P3).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(_3).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(E3).max(D3).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(O3).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(b3).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(T3).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(q3).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(N3).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(G3).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(u3).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(J3)).default(t3).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(B3).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(L3).max(H3).regex(W3).default(R3).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Q3).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(w3),name:e().max(X3),address:e().max(Y3).nullish(),address_2:e().max(x3).nullish(),post_code:e().max(K3).nullish(),city:e().max(y3).nullish(),state:e().max(V3).nullish(),country:e().max(F3),country_code:e().max($3),currency_code:e().max(M3).nullish(),locale:e().max(z3),tax_number:e().max(k3).nullish(),tax_number_2:e().max(U3).nullish(),company_number:e().max(m3).nullish(),email:e().max(Z3).nullish(),account_id:e().max(C3),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(j3).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(p3).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(f3).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(l3).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(h3).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(i3).max(d3).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(a3).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(s3).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(ew).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(ow).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(cw).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(rw).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(vw).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(nw)).default(Aw).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(Iw).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(gw).max(Pw).regex(_w).default(Sw).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Ew).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created.")),Dw=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,gge=r({id:e().regex(Dw).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Ow=/^acc_[0-9a-fA-F]{24}$/,Pge=r({"x-account-id":e().regex(Ow).optional().describe("Account Id on which the request is made. Optional if user is part of only one account.")}),bw=36,Tw=255,qw=500,Nw=500,Gw=20,uw=100,Jw=100,tw=100,Bw=2,Rw=3,Lw=20,Hw=50,Ww=50,Qw=50,ww=255,Xw=36,Yw=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,xw=0,Kw=0,yw=!1,Vw=!1,Fw=11,$w=11,Mw=!0,zw="N",kw=!0,Uw=!1,mw=!1,Zw=!1,Cw=!1,jw=0,pw=[7,14,30],fw="qr_only",lw="OTHR",hw=4,iw=4,dw=/^[A-Z]{4}$/,aw="iban",sw=36,eX=255,oX=500,cX=500,rX=20,vX=100,nX=100,AX=100,IX=2,SX=3,gX=20,PX=50,_X=50,EX=50,DX=255,OX=36,bX=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,TX=0,qX=0,NX=!1,GX=!1,uX=11,JX=11,tX=!0,BX="N",RX=!0,LX=!1,HX=!1,WX=!1,QX=!1,wX=0,XX=[7,14,30],YX="qr_only",xX="OTHR",KX=4,yX=4,VX=/^[A-Z]{4}$/,FX="iban",_ge=r({id:e().max(bw),name:e().max(Tw),address:e().max(qw).nullish(),address_2:e().max(Nw).nullish(),post_code:e().max(Gw).nullish(),city:e().max(uw).nullish(),state:e().max(Jw).nullish(),country:e().max(tw),country_code:e().max(Bw),currency_code:e().max(Rw).nullish(),locale:e().max(Lw),tax_number:e().max(Hw).nullish(),tax_number_2:e().max(Ww).nullish(),company_number:e().max(Qw).nullish(),email:e().max(ww).nullish(),account_id:e().max(Xw),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(Yw).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(xw).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(Kw).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(yw).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(Vw).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(Fw).max($w).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(Mw).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(zw).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(kw).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(Uw).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(mw).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(Zw).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(Cw).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(jw)).default(pw).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(fw).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(hw).max(iw).regex(dw).default(lw).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aw).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({id:e().max(sw),name:e().max(eX),address:e().max(oX).nullish(),address_2:e().max(cX).nullish(),post_code:e().max(rX).nullish(),city:e().max(vX).nullish(),state:e().max(nX).nullish(),country:e().max(AX),country_code:e().max(IX),currency_code:e().max(SX).nullish(),locale:e().max(gX),tax_number:e().max(PX).nullish(),tax_number_2:e().max(_X).nullish(),company_number:e().max(EX).nullish(),email:e().max(DX).nullish(),account_id:e().max(OX),environment:g(["live","sandbox"]).describe("Entity environment"),is_tax_subject:A(),is_enabled:A().describe("Whether the entity is enabled. Disabled entities cannot create documents (invoices, estimates, etc.) but all data remains accessible and settings can be updated."),settings:r({pdf_template:g(["modern","classic","minimal","fashion"]).nullish().describe("Default PDF template for document rendering. Defaults to 'modern' if not set."),number_formats:r({invoice:e().nullish(),estimate:e().nullish(),credit_note:e().nullish(),advance_invoice:e().nullish(),delivery_note:e().nullish()}).nullish(),primary_color:e().regex(bX).nullish(),has_logo:A().nullish(),has_signature:A().nullish(),default_invoice_due_days:v().gt(TX).nullish().describe("Default number of days until invoice is due (from invoice date)"),default_estimate_valid_days:v().gt(qX).nullish().describe("Default number of days until estimate expires (from estimate date)"),email_defaults:r({invoice_subject:e().nullish().describe("Default subject line for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}"),invoice_body:e().nullish().describe("Default body text for invoice emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {entity_email}"),estimate_subject:e().nullish().describe("Default subject line for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}"),estimate_body:e().nullish().describe("Default body text for estimate emails. Available variables: {document_number}, {entity_name}, {customer_name}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {entity_email}")}).nullish(),default_invoice_note:e().nullish().describe("Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_invoice_payment_terms:e().nullish().describe("Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_note:e().nullish().describe("Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_estimate_payment_terms:e().nullish().describe("Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_note:e().nullish().describe("Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),default_credit_note_payment_terms:e().nullish().describe("Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),document_footer:e().nullish().describe("Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year}"),furs:r({enabled:A().default(NX).describe("Whether FURS fiscalization is enabled for this entity"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized). Optional - can be set per-premise."),operator_tax_number:e().optional().describe("Operator tax number for this entity (used when creating invoices via API key)"),operator_label:e().optional().describe("Operator label/name for this entity"),foreign_operator:A().optional().describe("Whether the operator is a foreign legal entity")}).nullish().describe("FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint."),fina:r({enabled:A().default(GX).describe("Whether CIS (FINA) fiscalization is enabled for this entity"),operator_oib:e().min(uX).max(JX).optional().describe("OIB of the operator (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name for this entity"),u_sust_pdv:A().default(tX).describe("Whether the entity is in the PDV (VAT) system. Most businesses are."),numbering_sequence:g(["N","P"]).default(BX).describe("Numbering sequence: N (per premise) or P (per device)"),certificate_expiry:e().optional().describe("Certificate expiry date (ISO 8601 format)")}).nullish().describe("FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint."),tax_rules:r({eu:r({vies_validate_vat:A().default(RX).describe("Validate EU VAT numbers against the VIES API. When enabled, customer VAT numbers are checked for validity before creating invoices. Validation results are cached on customer records. If VIES is unavailable, invoice creation continues with a warning."),auto_reverse_charge:A().default(LX).describe("Automatically apply 0% tax (reverse charge) for intra-EU B2B transactions. When enabled, taxes are removed and replaced with reverse charge note for valid VIES-validated cross-border B2B sales. Requires vies_validate_vat to be enabled for VAT validation."),auto_remove_tax_export:A().default(HX).describe("Automatically remove all taxes for exports to non-EU countries. When enabled, invoices to customers outside the EU will have all tax lines removed."),require_gross_prices:A().default(WX).describe("Require gross prices when reverse charge is applied. When enabled, creates a validation error if net prices are used with reverse charge transactions, since removing tax would change the invoice total.")}).nullish().describe("EU tax rules settings. Only applicable for entities based in EU countries. Set to null or omit for non-EU entities.")}).nullish().describe("Tax rules engine settings. Controls automatic tax behaviors based on entity location and transaction characteristics (VIES validation, reverse charge, export tax removal). Defaults are set automatically based on entity country. Set to null for non-EU entities."),overdue_notifications:r({enabled:A().default(QX).describe("Enable automatic overdue invoice notification emails to customers"),threshold_days:P(v().gt(wX)).default(XX).describe("Days overdue when notification emails are sent (exact day match). Email is triggered when any invoice hits these thresholds."),email_subject:e().nullish().describe("Custom email subject. Available variables: {customer_name}, {entity_name}, {overdue_count}"),email_body:e().nullish().describe("Custom email body. Available variables: {customer_name}, {entity_name}, {invoice_list}, {total_amount}, {entity_email}. If {invoice_list} is not included, the invoice table will be auto-appended.")}).nullish().describe("Settings for automatic overdue invoice notification emails to customers"),upn_qr:r({enabled:A().describe("Whether UPN QR payment slip is enabled on invoices (Slovenia only)"),display_mode:g(["qr_only","full_slip"]).default(YX).describe("Display mode for UPN payment slip: 'qr_only' shows QR code inline after content, 'full_slip' shows complete payment slip at page bottom"),purpose_code:e().min(KX).max(yX).regex(VX).default(xX).describe("4-letter purpose code for UPN payments (ISO 20022). Common values: OTHR (other), GDSV (goods/services), SALA (salary)")}).nullish().describe("UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers."),epc_qr:r({enabled:A().describe("Whether EPC QR code is enabled on EUR invoices (SEPA countries)")}).nullish().describe("EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment."),bank_accounts:P(r({type:g(["iban","us_domestic","uk_domestic","other"]).default(FX).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)"),is_default:A().optional().describe("Whether this is the default account for new invoices")})).nullish().describe("Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices."),eslog_validation_enabled:A().nullish().describe("Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid."),delivery_note_hide_prices:A().nullish().describe("Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode)."),tax_clause_defaults:r({domestic:e().nullish().describe("Default tax clause for domestic transactions (same country)"),intra_eu_b2b:e().nullish().describe("Default tax clause for intra-EU B2B transactions (reverse charge applies)"),intra_eu_b2c:e().nullish().describe("Default tax clause for intra-EU B2C transactions"),export:e().nullish().describe("Default tax clause for export transactions (outside EU)")}).nullish().describe("Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc.")}).describe("Entity settings"),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Business entity (company/organization)").and(r({metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),country_rules:r({max_taxes_per_item:v().min(1).describe("Maximum number of taxes allowed per line item"),features:P(e()).describe("Available country-specific features (availability only, not enabled status)")}).describe("Country-specific rules derived from entity's country_code")})).describe("Legal entity (business, club, sole-proprietor, ...) on which invoices and other resources are created."));var tc={};Q(tc,{deleteEntityApiKeyPathIdRegExp:()=>MX,createEntityApiKeyBodyNameMax:()=>$X,ListEntityApiKeysResponse:()=>Dge,ListEntityApiKeysHeader:()=>Ege,DeleteEntityApiKeyResponse:()=>Nge,DeleteEntityApiKeyParams:()=>Tge,DeleteEntityApiKeyHeader:()=>qge,CreateEntityApiKeyHeader:()=>Oge,CreateEntityApiKeyBody:()=>bge});var Ege=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Dge=r({data:P(r({id:e().describe("API key (ek_* prefix for entity-scoped keys)"),entity_id:e().describe("Entity ID this key is scoped to"),name:e().nullable().describe("Friendly name for the API key"),environment:g(["live","sandbox"]).describe("Environment the key is valid for"),created_at:e().datetime({}).describe("When the key was created")}).and(r({prefix_hint:e().describe("Masked version of the key for display")})))}),Oge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$X=255,bge=r({name:e().max($X).optional().describe("Friendly name for the API key")}),MX=/^ek_(live|sandbox)_[0-9a-fA-F]{32}$/,Tge=r({id:e().regex(MX).describe("Entity API key ID (format: ek_{environment}_{hex32})")}),qge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),Nge=r({message:e()});var Bc={};Q(Bc,{resendEntityInvitationPathIdRegExp:()=>UX,getEntityInvitationPathIdRegExp:()=>zX,cancelEntityInvitationPathIdRegExp:()=>kX,acceptEntityInvitationBodyPasswordMin:()=>ZX,acceptEntityInvitationBodyNameMax:()=>mX,ResendEntityInvitationResponse:()=>wge,ResendEntityInvitationParams:()=>Wge,ResendEntityInvitationHeader:()=>Qge,ListEntityInvitationsResponse:()=>uge,ListEntityInvitationsHeader:()=>Gge,GetEntityInvitationResponse:()=>Bge,GetEntityInvitationParams:()=>Jge,GetEntityInvitationHeader:()=>tge,CancelEntityInvitationResponse:()=>Hge,CancelEntityInvitationParams:()=>Rge,CancelEntityInvitationHeader:()=>Lge,AcceptEntityInvitationResponse:()=>xge,AcceptEntityInvitationQueryParams:()=>Xge,AcceptEntityInvitationBody:()=>Yge});var Gge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uge=r({data:P(r({id:e().describe("Invitation ID"),entity_id:e().describe("Entity ID"),email:e().describe("Invitee email"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),invited_by_user_id:e().describe("ID of user who sent the invitation"),expires_at:e().datetime({}).describe("When the invitation expires"),accepted_at:e().datetime({}).nullable().describe("When the invitation was accepted (null if pending)"),status:g(["pending","accepted","expired"]).describe("Current status of the invitation"),created_at:e().datetime({}).describe("When the invitation was created")}))}),zX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Jge=r({id:e().regex(zX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),tge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),Bge=r({id:e().describe("Invitation ID"),entity_id:e().describe("Entity ID"),email:e().describe("Invitee email"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),invited_by_user_id:e().describe("ID of user who sent the invitation"),expires_at:e().datetime({}).describe("When the invitation expires"),accepted_at:e().datetime({}).nullable().describe("When the invitation was accepted (null if pending)"),status:g(["pending","accepted","expired"]).describe("Current status of the invitation"),created_at:e().datetime({}).describe("When the invitation was created")}),kX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Rge=r({id:e().regex(kX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Lge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),Hge=r({message:e()}),UX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Wge=r({id:e().regex(UX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Qge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),wge=r({message:e(),expires_at:e().datetime({})}),Xge=r({token:e().min(1).describe("Invitation token from the invitation email")}),mX=255,ZX=8,Yge=r({name:e().min(1).max(mX).describe("Name of the user accepting the invitation"),password:e().min(ZX).describe("Password for the new user account")}),xge=r({message:e(),user_id:e(),entity_id:e(),access_token:e().describe("Access token to use for authenticated requests")});var Rc={};Q(Rc,{queryEntityStatsBodyOrderByMax:()=>fX,queryEntityStatsBodyOrderByItemDirectionDefault:()=>pX,queryEntityStatsBodyMetricsMax:()=>CX,queryEntityStatsBodyLimitMax:()=>lX,queryEntityStatsBodyGroupByMax:()=>jX,QueryEntityStatsResponse:()=>Vge,QueryEntityStatsHeader:()=>Kge,QueryEntityStatsBody:()=>yge});var Kge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),CX=10,jX=5,pX="asc",fX=3,lX=1000,yge=r({metrics:P(r({type:g(["count","sum","avg","min","max"]).describe("Aggregation type"),field:e().optional().describe("Field to aggregate (required for sum/avg/min/max)"),alias:e().optional().describe("Custom name for this metric in the response")})).min(1).max(CX).describe("Metrics to compute"),table:g(["invoices","estimates","credit_notes","advance_invoices","payments","customers","items","invoice_taxes"]).describe("Table to query"),date_from:e().optional().describe("Start date (ISO format YYYY-MM-DD)"),date_to:e().optional().describe("End date (ISO format YYYY-MM-DD)"),filters:O(e(),D()).optional().describe("Additional filters (field: value pairs)"),group_by:P(e()).max(jX).optional().describe("Fields to group by"),order_by:P(r({field:e().describe("Field to order by"),direction:g(["asc","desc"]).default(pX).describe("Sort direction")})).max(fX).optional().describe("Ordering for results"),limit:v().min(1).max(lX).optional().describe("Maximum number of rows to return")}).describe("Stats query request specification"),Vge=r({query:r({table:e(),date_from:e().nullable(),date_to:e().nullable(),group_by:P(e()).nullable()}).describe("Echo of query parameters"),data:P(O(e(),D())).describe("Query results - shape depends on metrics and group_by"),row_count:v().describe("Number of rows returned")}).describe("Stats query response with aggregated data");var Lc={};Q(Lc,{updateEntityUserRolePathUserIdRegExp:()=>dX,removeEntityUserPathUserIdRegExp:()=>aX,generateEntityUserTokenResponseOneUserIdMax:()=>o4,generateEntityUserTokenResponseOneTtlDefault:()=>hge,generateEntityUserTokenResponseOneScopeMax:()=>c4,generateEntityUserTokenResponseOneIdMax:()=>e4,generateEntityUserTokenPathUserIdRegExp:()=>sX,addEntityUserBodySendInviteDefault:()=>iX,addEntityUserBodyRoleDefault:()=>hX,UpdateEntityUserRoleResponse:()=>Zge,UpdateEntityUserRoleParams:()=>kge,UpdateEntityUserRoleHeader:()=>Uge,UpdateEntityUserRoleBody:()=>mge,RemoveEntityUserResponse:()=>pge,RemoveEntityUserParams:()=>Cge,RemoveEntityUserHeader:()=>jge,GetEntityUsersResponse:()=>$ge,GetEntityUsersHeader:()=>Fge,GenerateEntityUserTokenResponse:()=>ige,GenerateEntityUserTokenParams:()=>fge,GenerateEntityUserTokenHeader:()=>lge,AddEntityUserHeader:()=>Mge,AddEntityUserBody:()=>zge});var Fge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$ge=r({data:P(r({user_id:e().describe("User ID"),entity_id:e().describe("Entity ID"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),email:e().describe("User email"),name:e().nullable().describe("User name"),invited_by_user_id:e().nullable().describe("ID of user who invited this user"),created_at:e().datetime({}).describe("When the user was added to the entity")}))}),Mge=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),hX="editor",iX=!0,zge=r({email:e().email().describe("Email address of the user to add or invite"),role:g(["viewer","editor","admin"]).default(hX).describe("Role to assign to the user"),send_invite:A().default(iX).describe("Whether to send an invitation email (only applies to new users)")}),dX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,kge=r({user_id:e().regex(dX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),Uge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),mge=r({role:g(["viewer","editor","admin"]).describe("New role to assign to the user")}),Zge=r({user_id:e().describe("User ID"),entity_id:e().describe("Entity ID"),role:g(["viewer","editor","admin"]).describe("User role on the entity"),email:e().describe("User email"),name:e().nullable().describe("User name"),invited_by_user_id:e().nullable().describe("ID of user who invited this user"),created_at:e().datetime({}).describe("When the user was added to the entity")}),aX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,Cge=r({user_id:e().regex(aX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),jge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),pge=r({message:e()}),sX=/^(?:[a-z]{3,4}_){0,2}[0-9a-f]{24}$/,fge=r({user_id:e().regex(sX).describe("Space Invoices resource identifier (format: {prefix}_{hex24})")}),lge=r({"x-entity-id":e().min(1).optional().describe("Optional entity ID specifying which entity context to use for this operation.")}),e4=100,o4=36,hge=31536000,c4=50,ige=r({id:e().max(e4),user_id:e().max(o4),ttl:v().describe("Token time-to-live in seconds"),scope:e().max(c4).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Access token for authentication").and(r({entity_id:e().describe("Entity ID the token is scoped to")})).describe("Access token for authentication");var Hc={};Q(Hc,{updateEstimateResponseTotalWithTaxMin:()=>sY,updateEstimateResponseTotalWithTaxMax:()=>ex,updateEstimateResponseTotalWithTaxConvertedMin:()=>Sx,updateEstimateResponseTotalWithTaxConvertedMax:()=>gx,updateEstimateResponseTotalMin:()=>dY,updateEstimateResponseTotalMax:()=>aY,updateEstimateResponseTotalConvertedMin:()=>Ax,updateEstimateResponseTotalConvertedMax:()=>Ix,updateEstimateResponseShareableIdMax:()=>nx,updateEstimateResponseNumberMax:()=>ZY,updateEstimateResponseItemsItemUnitMax:()=>qx,updateEstimateResponseItemsItemTotalWithTaxMin:()=>Bx,updateEstimateResponseItemsItemTotalWithTaxMax:()=>Rx,updateEstimateResponseItemsItemTotalWithTaxConvertedMin:()=>Wx,updateEstimateResponseItemsItemTotalWithTaxConvertedMax:()=>Qx,updateEstimateResponseItemsItemTotalMin:()=>Jx,updateEstimateResponseItemsItemTotalMax:()=>tx,updateEstimateResponseItemsItemTotalConvertedMin:()=>Lx,updateEstimateResponseItemsItemTotalConvertedMax:()=>Hx,updateEstimateResponseItemsItemQuantityMin:()=>bx,updateEstimateResponseItemsItemQuantityMax:()=>Tx,updateEstimateResponseItemsItemNameMax:()=>Ox,updateEstimateResponseItemsItemItemIdMax:()=>xx,updateEstimateResponseItemsItemIdMax:()=>Dx,updateEstimateResponseItemsItemEstimateIdMax:()=>wx,updateEstimateResponseItemsItemDiscountsMax:()=>ux,updateEstimateResponseItemsItemDiscountsItemValueMin:()=>Nx,updateEstimateResponseItemsItemDiscountsItemTypeDefault:()=>Gx,updateEstimateResponseItemsItemDeliveryNoteIdMax:()=>Yx,updateEstimateResponseItemsItemAdvanceInvoiceIdMax:()=>Xx,updateEstimateResponseIssuerCountryCodeMin:()=>CY,updateEstimateResponseIssuerCountryCodeMax:()=>jY,updateEstimateResponseIssuerBankAccountTypeDefault:()=>pY,updateEstimateResponseIdMax:()=>mY,updateEstimateResponseEntityIdMax:()=>cx,updateEstimateResponseDateYearMin:()=>rx,updateEstimateResponseDateYearMax:()=>vx,updateEstimateResponseDateServiceToRegExp:()=>Ex,updateEstimateResponseDateServiceRegExp:()=>_x,updateEstimateResponseDateDueRegExp:()=>Px,updateEstimateResponseCustomerIdMax:()=>fY,updateEstimateResponseCustomerCountryCodeMin:()=>lY,updateEstimateResponseCustomerCountryCodeMax:()=>hY,updateEstimateResponseCustomerBankAccountTypeDefault:()=>iY,updateEstimateResponseCurrencyCodeMax:()=>ox,updateEstimatePathIdRegExp:()=>tY,updateEstimateBodyItemsItemUnitMax:()=>yY,updateEstimateBodyItemsItemSaveItemDefault:()=>zY,updateEstimateBodyItemsItemQuantityMin:()=>xY,updateEstimateBodyItemsItemQuantityMax:()=>KY,updateEstimateBodyItemsItemDiscountsMax:()=>$Y,updateEstimateBodyItemsItemDiscountsItemValueMin:()=>VY,updateEstimateBodyItemsItemDiscountsItemTypeDefault:()=>FY,updateEstimateBodyItemsItemDescriptionMax:()=>YY,updateEstimateBodyItemsItemDeliveryNoteIdMax:()=>MY,updateEstimateBodyIssuerOneCountryCodeMin:()=>RY,updateEstimateBodyIssuerOneCountryCodeMax:()=>LY,updateEstimateBodyIssuerOneBankAccountTypeDefault:()=>HY,updateEstimateBodyDateValidTillRegExp:()=>UY,updateEstimateBodyDateRegExp:()=>BY,updateEstimateBodyCustomerTwoSaveCustomerDefault:()=>XY,updateEstimateBodyCustomerOneCountryCodeMin:()=>WY,updateEstimateBodyCustomerOneCountryCodeMax:()=>QY,updateEstimateBodyCustomerOneBankAccountTypeDefault:()=>wY,updateEstimateBodyChangeReasonMax:()=>kY,renderEstimatePreviewQueryTemplateDefault:()=>yx,renderEstimatePreviewQueryPartialDefault:()=>$x,renderEstimatePreviewQueryLocaleMin:()=>Vx,renderEstimatePreviewQueryLocaleMax:()=>Fx,renderEstimatePreviewBodyTwoItemsItemUnitMax:()=>EK,renderEstimatePreviewBodyTwoItemsItemSaveItemDefault:()=>qK,renderEstimatePreviewBodyTwoItemsItemQuantityMin:()=>PK,renderEstimatePreviewBodyTwoItemsItemQuantityMax:()=>_K,renderEstimatePreviewBodyTwoItemsItemDiscountsMax:()=>bK,renderEstimatePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>DK,renderEstimatePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>OK,renderEstimatePreviewBodyTwoItemsItemDescriptionMax:()=>gK,renderEstimatePreviewBodyTwoItemsItemDeliveryNoteIdMax:()=>TK,renderEstimatePreviewBodyTwoIssuerCountryCodeMin:()=>ax,renderEstimatePreviewBodyTwoIssuerCountryCodeMax:()=>sx,renderEstimatePreviewBodyTwoIssuerBankAccountTypeDefault:()=>eK,renderEstimatePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>NK,renderEstimatePreviewBodyTwoDateServiceToRegExp:()=>SK,renderEstimatePreviewBodyTwoDateServiceRegExp:()=>IK,renderEstimatePreviewBodyTwoDateRegExp:()=>dx,renderEstimatePreviewBodyTwoDateDueRegExp:()=>AK,renderEstimatePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>vK,renderEstimatePreviewBodyTwoCustomerOneCountryCodeMin:()=>oK,renderEstimatePreviewBodyTwoCustomerOneCountryCodeMax:()=>cK,renderEstimatePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>rK,renderEstimatePreviewBodyTwoCurrencyCodeMax:()=>nK,renderEstimatePreviewBodyOneIssuerCountryCodeMin:()=>zx,renderEstimatePreviewBodyOneIssuerCountryCodeMax:()=>kx,renderEstimatePreviewBodyOneIssuerBankAccountTypeDefault:()=>Ux,renderEstimatePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>ix,renderEstimatePreviewBodyOneDateServiceToRegExp:()=>hx,renderEstimatePreviewBodyOneDateServiceRegExp:()=>lx,renderEstimatePreviewBodyOneDateRegExp:()=>Mx,renderEstimatePreviewBodyOneDateDueRegExp:()=>fx,renderEstimatePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>jx,renderEstimatePreviewBodyOneCustomerOneCountryCodeMin:()=>mx,renderEstimatePreviewBodyOneCustomerOneCountryCodeMax:()=>Zx,renderEstimatePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>Cx,renderEstimatePreviewBodyOneCurrencyCodeMax:()=>px,getShareableEstimateResponseTotalWithTaxMin:()=>O4,getShareableEstimateResponseTotalWithTaxMax:()=>b4,getShareableEstimateResponseTotalWithTaxConvertedMin:()=>B4,getShareableEstimateResponseTotalWithTaxConvertedMax:()=>R4,getShareableEstimateResponseTotalMin:()=>E4,getShareableEstimateResponseTotalMax:()=>D4,getShareableEstimateResponseTotalConvertedMin:()=>J4,getShareableEstimateResponseTotalConvertedMax:()=>t4,getShareableEstimateResponseShareableIdMax:()=>u4,getShareableEstimateResponseNumberMax:()=>v4,getShareableEstimateResponseItemsItemUnitMax:()=>x4,getShareableEstimateResponseItemsItemTotalWithTaxMin:()=>M4,getShareableEstimateResponseItemsItemTotalWithTaxMax:()=>z4,getShareableEstimateResponseItemsItemTotalWithTaxConvertedMin:()=>m4,getShareableEstimateResponseItemsItemTotalWithTaxConvertedMax:()=>Z4,getShareableEstimateResponseItemsItemTotalMin:()=>F4,getShareableEstimateResponseItemsItemTotalMax:()=>$4,getShareableEstimateResponseItemsItemTotalConvertedMin:()=>k4,getShareableEstimateResponseItemsItemTotalConvertedMax:()=>U4,getShareableEstimateResponseItemsItemQuantityMin:()=>X4,getShareableEstimateResponseItemsItemQuantityMax:()=>Y4,getShareableEstimateResponseItemsItemNameMax:()=>w4,getShareableEstimateResponseItemsItemItemIdMax:()=>f4,getShareableEstimateResponseItemsItemIdMax:()=>Q4,getShareableEstimateResponseItemsItemEstimateIdMax:()=>C4,getShareableEstimateResponseItemsItemDiscountsMax:()=>V4,getShareableEstimateResponseItemsItemDiscountsItemValueMin:()=>K4,getShareableEstimateResponseItemsItemDiscountsItemTypeDefault:()=>y4,getShareableEstimateResponseItemsItemDeliveryNoteIdMax:()=>p4,getShareableEstimateResponseItemsItemAdvanceInvoiceIdMax:()=>j4,getShareableEstimateResponseIssuerCountryCodeMin:()=>n4,getShareableEstimateResponseIssuerCountryCodeMax:()=>A4,getShareableEstimateResponseIssuerBankAccountTypeDefault:()=>I4,getShareableEstimateResponseIdMax:()=>r4,getShareableEstimateResponseEntityIdMax:()=>q4,getShareableEstimateResponseDateYearMin:()=>N4,getShareableEstimateResponseDateYearMax:()=>G4,getShareableEstimateResponseDateServiceToRegExp:()=>W4,getShareableEstimateResponseDateServiceRegExp:()=>H4,getShareableEstimateResponseDateDueRegExp:()=>L4,getShareableEstimateResponseCustomerIdMax:()=>S4,getShareableEstimateResponseCustomerCountryCodeMin:()=>g4,getShareableEstimateResponseCustomerCountryCodeMax:()=>P4,getShareableEstimateResponseCustomerBankAccountTypeDefault:()=>_4,getShareableEstimateResponseCurrencyCodeMax:()=>T4,getEstimatesResponseDataItemTotalWithTaxMin:()=>w9,getEstimatesResponseDataItemTotalWithTaxMax:()=>X9,getEstimatesResponseDataItemTotalWithTaxConvertedMin:()=>M9,getEstimatesResponseDataItemTotalWithTaxConvertedMax:()=>z9,getEstimatesResponseDataItemTotalMin:()=>W9,getEstimatesResponseDataItemTotalMax:()=>Q9,getEstimatesResponseDataItemTotalConvertedMin:()=>F9,getEstimatesResponseDataItemTotalConvertedMax:()=>$9,getEstimatesResponseDataItemShareableIdMax:()=>V9,getEstimatesResponseDataItemNumberMax:()=>G9,getEstimatesResponseDataItemItemsItemUnitMax:()=>f9,getEstimatesResponseDataItemItemsItemTotalWithTaxMin:()=>s9,getEstimatesResponseDataItemItemsItemTotalWithTaxMax:()=>e6,getEstimatesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>r6,getEstimatesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>v6,getEstimatesResponseDataItemItemsItemTotalMin:()=>d9,getEstimatesResponseDataItemItemsItemTotalMax:()=>a9,getEstimatesResponseDataItemItemsItemTotalConvertedMin:()=>o6,getEstimatesResponseDataItemItemsItemTotalConvertedMax:()=>c6,getEstimatesResponseDataItemItemsItemQuantityMin:()=>j9,getEstimatesResponseDataItemItemsItemQuantityMax:()=>p9,getEstimatesResponseDataItemItemsItemNameMax:()=>C9,getEstimatesResponseDataItemItemsItemItemIdMax:()=>S6,getEstimatesResponseDataItemItemsItemIdMax:()=>Z9,getEstimatesResponseDataItemItemsItemEstimateIdMax:()=>n6,getEstimatesResponseDataItemItemsItemDiscountsMax:()=>i9,getEstimatesResponseDataItemItemsItemDiscountsItemValueMin:()=>l9,getEstimatesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>h9,getEstimatesResponseDataItemItemsItemDeliveryNoteIdMax:()=>I6,getEstimatesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>A6,getEstimatesResponseDataItemIssuerCountryCodeMin:()=>u9,getEstimatesResponseDataItemIssuerCountryCodeMax:()=>J9,getEstimatesResponseDataItemIssuerBankAccountTypeDefault:()=>t9,getEstimatesResponseDataItemIdMax:()=>N9,getEstimatesResponseDataItemEntityIdMax:()=>x9,getEstimatesResponseDataItemDateYearMin:()=>K9,getEstimatesResponseDataItemDateYearMax:()=>y9,getEstimatesResponseDataItemDateServiceToRegExp:()=>m9,getEstimatesResponseDataItemDateServiceRegExp:()=>U9,getEstimatesResponseDataItemDateDueRegExp:()=>k9,getEstimatesResponseDataItemCustomerIdMax:()=>B9,getEstimatesResponseDataItemCustomerCountryCodeMin:()=>R9,getEstimatesResponseDataItemCustomerCountryCodeMax:()=>L9,getEstimatesResponseDataItemCustomerBankAccountTypeDefault:()=>H9,getEstimatesResponseDataItemCurrencyCodeMax:()=>Y9,getEstimatesQueryLimitMax:()=>q9,getEstimatesQueryLimitDefault:()=>T9,getEstimateVersionsPathIdRegExp:()=>Kx,getEstimateByIdResponseTotalWithTaxMin:()=>m6,getEstimateByIdResponseTotalWithTaxMax:()=>Z6,getEstimateByIdResponseTotalWithTaxConvertedMin:()=>d6,getEstimateByIdResponseTotalWithTaxConvertedMax:()=>a6,getEstimateByIdResponseTotalMin:()=>k6,getEstimateByIdResponseTotalMax:()=>U6,getEstimateByIdResponseTotalConvertedMin:()=>h6,getEstimateByIdResponseTotalConvertedMax:()=>i6,getEstimateByIdResponseShareableIdMax:()=>l6,getEstimateByIdResponseNumberMax:()=>x6,getEstimateByIdResponseItemsItemUnitMax:()=>AY,getEstimateByIdResponseItemsItemTotalWithTaxMin:()=>EY,getEstimateByIdResponseItemsItemTotalWithTaxMax:()=>DY,getEstimateByIdResponseItemsItemTotalWithTaxConvertedMin:()=>TY,getEstimateByIdResponseItemsItemTotalWithTaxConvertedMax:()=>qY,getEstimateByIdResponseItemsItemTotalMin:()=>PY,getEstimateByIdResponseItemsItemTotalMax:()=>_Y,getEstimateByIdResponseItemsItemTotalConvertedMin:()=>OY,getEstimateByIdResponseItemsItemTotalConvertedMax:()=>bY,getEstimateByIdResponseItemsItemQuantityMin:()=>vY,getEstimateByIdResponseItemsItemQuantityMax:()=>nY,getEstimateByIdResponseItemsItemNameMax:()=>rY,getEstimateByIdResponseItemsItemItemIdMax:()=>JY,getEstimateByIdResponseItemsItemIdMax:()=>cY,getEstimateByIdResponseItemsItemEstimateIdMax:()=>NY,getEstimateByIdResponseItemsItemDiscountsMax:()=>gY,getEstimateByIdResponseItemsItemDiscountsItemValueMin:()=>IY,getEstimateByIdResponseItemsItemDiscountsItemTypeDefault:()=>SY,getEstimateByIdResponseItemsItemDeliveryNoteIdMax:()=>uY,getEstimateByIdResponseItemsItemAdvanceInvoiceIdMax:()=>GY,getEstimateByIdResponseIssuerCountryCodeMin:()=>K6,getEstimateByIdResponseIssuerCountryCodeMax:()=>y6,getEstimateByIdResponseIssuerBankAccountTypeDefault:()=>V6,getEstimateByIdResponseIdMax:()=>Y6,getEstimateByIdResponseEntityIdMax:()=>j6,getEstimateByIdResponseDateYearMin:()=>p6,getEstimateByIdResponseDateYearMax:()=>f6,getEstimateByIdResponseDateServiceToRegExp:()=>oY,getEstimateByIdResponseDateServiceRegExp:()=>eY,getEstimateByIdResponseDateDueRegExp:()=>s6,getEstimateByIdResponseCustomerIdMax:()=>F6,getEstimateByIdResponseCustomerCountryCodeMin:()=>$6,getEstimateByIdResponseCustomerCountryCodeMax:()=>M6,getEstimateByIdResponseCustomerBankAccountTypeDefault:()=>z6,getEstimateByIdResponseCurrencyCodeMax:()=>C6,getEstimateByIdPathIdRegExp:()=>X6,createEstimateBodyItemsItemUnitMax:()=>g9,createEstimateBodyItemsItemSaveItemDefault:()=>O9,createEstimateBodyItemsItemQuantityMin:()=>I9,createEstimateBodyItemsItemQuantityMax:()=>S9,createEstimateBodyItemsItemDiscountsMax:()=>E9,createEstimateBodyItemsItemDiscountsItemValueMin:()=>P9,createEstimateBodyItemsItemDiscountsItemTypeDefault:()=>_9,createEstimateBodyItemsItemDescriptionMax:()=>A9,createEstimateBodyItemsItemDeliveryNoteIdMax:()=>D9,createEstimateBodyIssuerCountryCodeMin:()=>h4,createEstimateBodyIssuerCountryCodeMax:()=>i4,createEstimateBodyIssuerBankAccountTypeDefault:()=>d4,createEstimateBodyExpectedTotalWithTaxExclusiveMin:()=>b9,createEstimateBodyDateServiceToRegExp:()=>n9,createEstimateBodyDateServiceRegExp:()=>v9,createEstimateBodyDateRegExp:()=>l4,createEstimateBodyDateDueRegExp:()=>r9,createEstimateBodyCustomerTwoSaveCustomerDefault:()=>o9,createEstimateBodyCustomerOneCountryCodeMin:()=>a4,createEstimateBodyCustomerOneCountryCodeMax:()=>s4,createEstimateBodyCustomerOneBankAccountTypeDefault:()=>e9,createEstimateBodyCurrencyCodeMax:()=>c9,createCustomEstimateBodyItemsItemUnitMax:()=>R6,createCustomEstimateBodyItemsItemSaveItemDefault:()=>w6,createCustomEstimateBodyItemsItemQuantityMin:()=>t6,createCustomEstimateBodyItemsItemQuantityMax:()=>B6,createCustomEstimateBodyItemsItemDiscountsMax:()=>W6,createCustomEstimateBodyItemsItemDiscountsItemValueMin:()=>L6,createCustomEstimateBodyItemsItemDiscountsItemTypeDefault:()=>H6,createCustomEstimateBodyItemsItemDescriptionMax:()=>J6,createCustomEstimateBodyItemsItemDeliveryNoteIdMax:()=>Q6,createCustomEstimateBodyIssuerCountryCodeMin:()=>P6,createCustomEstimateBodyIssuerCountryCodeMax:()=>_6,createCustomEstimateBodyIssuerBankAccountTypeDefault:()=>E6,createCustomEstimateBodyDateServiceToRegExp:()=>u6,createCustomEstimateBodyDateServiceRegExp:()=>G6,createCustomEstimateBodyDateRegExp:()=>g6,createCustomEstimateBodyDateDueRegExp:()=>N6,createCustomEstimateBodyCustomerTwoSaveCustomerDefault:()=>T6,createCustomEstimateBodyCustomerOneCountryCodeMin:()=>D6,createCustomEstimateBodyCustomerOneCountryCodeMax:()=>O6,createCustomEstimateBodyCustomerOneBankAccountTypeDefault:()=>b6,createCustomEstimateBodyCurrencyCodeMax:()=>q6,UpdateEstimateResponse:()=>qPe,UpdateEstimateParams:()=>OPe,UpdateEstimateHeader:()=>bPe,UpdateEstimateBody:()=>TPe,RenderEstimatePreviewQueryParams:()=>RPe,RenderEstimatePreviewHeader:()=>LPe,RenderEstimatePreviewBody:()=>HPe,GetShareableEstimateResponse:()=>age,GetShareableEstimatePdfQueryParams:()=>cPe,GetShareableEstimatePdfParams:()=>oPe,GetShareableEstimateParams:()=>dge,GetShareableEstimateHtmlQueryParams:()=>ePe,GetShareableEstimateHtmlParams:()=>sge,GetEstimatesResponse:()=>IPe,GetEstimatesQueryParams:()=>nPe,GetEstimatesHeader:()=>APe,GetEstimateVersionsResponse:()=>uPe,GetEstimateVersionsParams:()=>NPe,GetEstimateVersionsHeader:()=>GPe,GetEstimateVersionResponse:()=>BPe,GetEstimateVersionParams:()=>JPe,GetEstimateVersionHeader:()=>tPe,GetEstimateByIdResponse:()=>DPe,GetEstimateByIdQueryParams:()=>_Pe,GetEstimateByIdParams:()=>PPe,GetEstimateByIdHeader:()=>EPe,CreateEstimateHeader:()=>rPe,CreateEstimateBody:()=>vPe,CreateCustomEstimateHeader:()=>SPe,CreateCustomEstimateBody:()=>gPe});var dge=r({shareableId:e().describe("Shareable document token")}),r4=36,v4=100,n4=2,A4=2,I4="iban",S4=36,g4=2,P4=2,_4="iban",E4=-140737488355328,D4=140737488355327,O4=-140737488355328,b4=140737488355327,T4=3,q4=36,N4=-2147483648,G4=2147483647,u4=64,J4=-140737488355328,t4=140737488355327,B4=-140737488355328,R4=140737488355327,L4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,H4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,W4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Q4=36,w4=500,X4=-140737488355328,Y4=140737488355327,x4=50,K4=0,y4="percent",V4=5,F4=-140737488355328,$4=140737488355327,M4=-140737488355328,z4=140737488355327,k4=-140737488355328,U4=140737488355327,m4=-140737488355328,Z4=140737488355327,C4=36,j4=36,p4=36,f4=36,age=r({id:e().max(r4),number:e().max(v4),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(n4).max(A4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(I4).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(S4).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(g4).max(P4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(_4).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(E4).max(D4),total_with_tax:v().min(O4).max(b4),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(T4),entity_id:e().max(q4),date_year:v().min(N4).max(G4),shareable_id:e().max(u4).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(J4).max(t4).nullish(),total_with_tax_converted:v().min(B4).max(R4).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(L4).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(H4).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(W4).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(Q4),name:e().max(w4),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
140
- Only present if user originally sent gross price.
141
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(X4).max(Y4),unit:e().max(x4).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(K4).describe("Discount value"),type:g(["percent","amount"]).default(y4).describe("Discount type: 'percent' (default) or 'amount'")})).max(V4).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(F4).max($4),total_with_tax:v().min(M4).max(z4),total_converted:v().min(k4).max(U4).nullish(),total_with_tax_converted:v().min(m4).max(Z4).nullish(),estimate_id:e().max(C4).nullish(),advance_invoice_id:e().max(j4).nullish(),delivery_note_id:e().max(p4).nullish(),item_id:e().max(f4).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),sge=r({shareableId:e().describe("Shareable document token")}),ePe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),oPe=r({shareableId:e().describe("Shareable document token")}),cPe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),rPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),l4=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,h4=2,i4=2,d4="iban",a4=2,s4=2,e9="iban",o9=!0,c9=3,r9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,v9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,n9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,A9=2000,I9=-140737488355328,S9=140737488355327,g9=50,P9=0,_9="percent",E9=5,D9=36,O9=!0,b9=0,vPe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(l4).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(h4).max(i4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d4).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(a4).max(s4).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(e9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(o9).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(c9).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(r9).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(v9).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(n9).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(A9).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(I9).max(S9),unit:e().max(g9).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(P9).describe("Discount value"),type:g(["percent","amount"]).default(_9).describe("Discount type: 'percent' (default) or 'amount'")})).max(E9).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(D9).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
142
- When provided, the item's name, description, price, and taxes are used as defaults.
143
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(O9).describe(`Whether to save this item to the catalog.
144
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
145
- Default: true.`)})).min(1).describe("Line items for the estimate. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(b9).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),T9=10,q9=100,nPe=r({limit:v().min(1).max(q9).default(T9).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","number","date","total","total_with_tax","created_at","updated_at","date_valid_till","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_valid_till"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","date_valid_till","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_valid_till"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, date_valid_till\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().optional().describe(`Full-text search query to filter results across multiple fields.
146
- Searches are case-insensitive and match partial strings.
147
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe(`Comma-separated list of relations to include in the response.
148
-
149
- **Available relations:**
150
- - \`document_relations\` - Linked documents (invoices, etc.)
151
-
152
- **Usage:**
153
- \`?include=document_relations\``),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),APe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),N9=36,G9=100,u9=2,J9=2,t9="iban",B9=36,R9=2,L9=2,H9="iban",W9=-140737488355328,Q9=140737488355327,w9=-140737488355328,X9=140737488355327,Y9=3,x9=36,K9=-2147483648,y9=2147483647,V9=64,F9=-140737488355328,$9=140737488355327,M9=-140737488355328,z9=140737488355327,k9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,U9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,m9=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Z9=36,C9=500,j9=-140737488355328,p9=140737488355327,f9=50,l9=0,h9="percent",i9=5,d9=-140737488355328,a9=140737488355327,s9=-140737488355328,e6=140737488355327,o6=-140737488355328,c6=140737488355327,r6=-140737488355328,v6=140737488355327,n6=36,A6=36,I6=36,S6=36,IPe=r({data:P(r({id:e().max(N9),number:e().max(G9),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(u9).max(J9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(t9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(B9).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(R9).max(L9).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(H9).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(W9).max(Q9),total_with_tax:v().min(w9).max(X9),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(Y9),entity_id:e().max(x9),date_year:v().min(K9).max(y9),shareable_id:e().max(V9).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(F9).max($9).nullish(),total_with_tax_converted:v().min(M9).max(z9).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(k9).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(U9).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(m9).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(Z9),name:e().max(C9),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
154
- Only present if user originally sent gross price.
155
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(j9).max(p9),unit:e().max(f9).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(l9).describe("Discount value"),type:g(["percent","amount"]).default(h9).describe("Discount type: 'percent' (default) or 'amount'")})).max(i9).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(d9).max(a9),total_with_tax:v().min(s9).max(e6),total_converted:v().min(o6).max(c6).nullish(),total_with_tax_converted:v().min(r6).max(v6).nullish(),estimate_id:e().max(n6).nullish(),advance_invoice_id:e().max(A6).nullish(),delivery_note_id:e().max(I6).nullish(),item_id:e().max(S6).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),SPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),g6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,P6=2,_6=2,E6="iban",D6=2,O6=2,b6="iban",T6=!0,q6=3,N6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,G6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,u6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,J6=2000,t6=-140737488355328,B6=140737488355327,R6=50,L6=0,H6="percent",W6=5,Q6=36,w6=!0,gPe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(g6).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(P6).max(_6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(E6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(D6).max(O6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(b6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(T6).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(q6).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(N6).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(G6).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(u6).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(J6).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(t6).max(B6),unit:e().max(R6).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(L6).describe("Discount value"),type:g(["percent","amount"]).default(H6).describe("Discount type: 'percent' (default) or 'amount'")})).max(W6).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),delivery_note_id:e().max(Q6).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
156
- When provided, the item's name, description, price, and taxes are used as defaults.
157
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(w6).describe(`Whether to save this item to the catalog.
158
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
159
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),X6=/^[a-z]{3,4}_[0-9a-f]{24}$/,PPe=r({id:e().regex(X6).describe("Unique resource identifier")}),_Pe=r({include:e().optional().describe(`Comma-separated list of relations to include in the response.
160
-
161
- **Available relations:**
162
- - \`document_relations\` - Linked documents (invoices, etc.)
163
-
164
- **Usage:**
165
- \`?include=document_relations\``)}),EPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Y6=36,x6=100,K6=2,y6=2,V6="iban",F6=36,$6=2,M6=2,z6="iban",k6=-140737488355328,U6=140737488355327,m6=-140737488355328,Z6=140737488355327,C6=3,j6=36,p6=-2147483648,f6=2147483647,l6=64,h6=-140737488355328,i6=140737488355327,d6=-140737488355328,a6=140737488355327,s6=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,eY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,oY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,cY=36,rY=500,vY=-140737488355328,nY=140737488355327,AY=50,IY=0,SY="percent",gY=5,PY=-140737488355328,_Y=140737488355327,EY=-140737488355328,DY=140737488355327,OY=-140737488355328,bY=140737488355327,TY=-140737488355328,qY=140737488355327,NY=36,GY=36,uY=36,JY=36,DPe=r({id:e().max(Y6),number:e().max(x6),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(K6).max(y6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(V6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(F6).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min($6).max(M6).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(z6).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(k6).max(U6),total_with_tax:v().min(m6).max(Z6),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(C6),entity_id:e().max(j6),date_year:v().min(p6).max(f6),shareable_id:e().max(l6).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(h6).max(i6).nullish(),total_with_tax_converted:v().min(d6).max(a6).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(s6).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(eY).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(oY).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(cY),name:e().max(rY),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
166
- Only present if user originally sent gross price.
167
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(vY).max(nY),unit:e().max(AY).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(IY).describe("Discount value"),type:g(["percent","amount"]).default(SY).describe("Discount type: 'percent' (default) or 'amount'")})).max(gY).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(PY).max(_Y),total_with_tax:v().min(EY).max(DY),total_converted:v().min(OY).max(bY).nullish(),total_with_tax_converted:v().min(TY).max(qY).nullish(),estimate_id:e().max(NY).nullish(),advance_invoice_id:e().max(GY).nullish(),delivery_note_id:e().max(uY).nullish(),item_id:e().max(JY).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),tY=/^[a-z]{3,4}_[0-9a-f]{24}$/,OPe=r({id:e().regex(tY).describe("Unique resource identifier")}),bPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),BY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RY=2,LY=2,HY="iban",WY=2,QY=2,wY="iban",XY=!0,YY=2000,xY=-140737488355328,KY=140737488355327,yY=50,VY=0,FY="percent",$Y=5,MY=36,zY=!0,kY=500,UY=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,TPe=r({date:e().regex(BY).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(RY).max(LY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(HY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(D().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(WY).max(QY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(wY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(XY).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(YY).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(xY).max(KY),unit:e().max(yY).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(VY).describe("Discount value"),type:g(["percent","amount"]).default(FY).describe("Discount type: 'percent' (default) or 'amount'")})).max($Y).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(MY).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
168
- When provided, the item's name, description, price, and taxes are used as defaults.
169
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(zY).describe(`Whether to save this item to the catalog.
170
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
171
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:O(e(),D()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(kY).optional().describe("Reason for the change. Stored in version history for audit trail."),date_valid_till:e().regex(UY).nullish().describe("Estimate validity date (YYYY-MM-DD or ISO datetime format). Set to null to clear."),title_type:g(["estimate","quote"]).optional().describe('Document title type. "estimate" or "quote".'),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),mY=36,ZY=100,CY=2,jY=2,pY="iban",fY=36,lY=2,hY=2,iY="iban",dY=-140737488355328,aY=140737488355327,sY=-140737488355328,ex=140737488355327,ox=3,cx=36,rx=-2147483648,vx=2147483647,nx=64,Ax=-140737488355328,Ix=140737488355327,Sx=-140737488355328,gx=140737488355327,Px=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,_x=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Ex=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Dx=36,Ox=500,bx=-140737488355328,Tx=140737488355327,qx=50,Nx=0,Gx="percent",ux=5,Jx=-140737488355328,tx=140737488355327,Bx=-140737488355328,Rx=140737488355327,Lx=-140737488355328,Hx=140737488355327,Wx=-140737488355328,Qx=140737488355327,wx=36,Xx=36,Yx=36,xx=36,qPe=r({id:e().max(mY),number:e().max(ZY),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the estimate was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(CY).max(jY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(pY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(fY).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(lY).max(hY).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(iY).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(dY).max(aY),total_with_tax:v().min(sY).max(ex),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(ox),entity_id:e().max(cx),date_year:v().min(rx).max(vx),shareable_id:e().max(nx).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Ax).max(Ix).nullish(),total_with_tax_converted:v().min(Sx).max(gx).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_valid_till:e().datetime({}).nullish().describe("Date until which the estimate is valid (ISO 8601 datetime at midnight UTC)"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(Px).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(_x).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Ex).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(Dx),name:e().max(Ox),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
172
- Only present if user originally sent gross price.
173
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(bx).max(Tx),unit:e().max(qx).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Nx).describe("Discount value"),type:g(["percent","amount"]).default(Gx).describe("Discount type: 'percent' (default) or 'amount'")})).max(ux).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Jx).max(tx),total_with_tax:v().min(Bx).max(Rx),total_converted:v().min(Lx).max(Hx).nullish(),total_with_tax_converted:v().min(Wx).max(Qx).nullish(),estimate_id:e().max(wx).nullish(),advance_invoice_id:e().max(Xx).nullish(),delivery_note_id:e().max(Yx).nullish(),item_id:e().max(xx).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Estimate/quote document"),Kx=/^[a-z]{3,4}_[0-9a-f]{24}$/,NPe=r({id:e().regex(Kx).describe("Unique resource identifier")}),GPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uPe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),JPe=r({id:e().describe("Estimate ID"),version:v().min(1).describe("Version number")}),tPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),BPe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),yx="modern",Vx=2,Fx=5,$x="true",RPe=r({template:g(["modern","classic","minimal","fashion"]).default(yx).describe("Document template design to use"),locale:e().min(Vx).max(Fx).nullish(),partial:g(["true","false"]).default($x).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),LPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Mx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,zx=2,kx=2,Ux="iban",mx=2,Zx=2,Cx="iban",jx=!0,px=3,fx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,lx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,hx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ix=0,dx=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,ax=2,sx=2,eK="iban",oK=2,cK=2,rK="iban",vK=!0,nK=3,AK=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,IK=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,SK=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,gK=2000,PK=-140737488355328,_K=140737488355327,EK=50,DK=0,OK="percent",bK=5,TK=36,qK=!0,NK=0,HPe=J([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(Mx).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(zx).max(kx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Ux).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(mx).max(Zx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Cx).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(jx).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(px).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(fx).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(lx).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(hx).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:O(e(),e()).optional()})).min(1),expected_total_with_tax:v().gt(ix).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(dx).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(ax).max(sx).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(eK).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(oK).max(cK).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(rK).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(vK).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(nK).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_valid_till:e().nullish().describe("Estimate validity date in YYYY-MM-DD format"),title_type:g(["estimate","quote"]).nullish().describe("Display name variant for the document. 'estimate' renders as 'Estimate' (Predračun), 'quote' renders as 'Quote' (Ponudba)."),date_due:e().regex(AK).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(IK).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(SK).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(gK).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(PK).max(_K),unit:e().max(EK).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(DK).describe("Discount value"),type:g(["percent","amount"]).default(OK).describe("Discount type: 'percent' (default) or 'amount'")})).max(bK).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(TK).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
174
- When provided, the item's name, description, price, and taxes are used as defaults.
175
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(qK).describe(`Whether to save this item to the catalog.
176
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
177
- Default: true.`)})).min(1).describe("Line items for the estimate. At least one item is required."),expected_total_with_tax:v().gt(NK).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules.")})]);var Wc={};Q(Wc,{exportSalesPerItemQueryLanguageDefault:()=>uK,exportDocumentsQueryLanguageDefault:()=>GK,StartPdfExportHeader:()=>YPe,StartPdfExportBody:()=>xPe,GetPdfExportStatusResponse:()=>VPe,GetPdfExportStatusParams:()=>KPe,GetPdfExportStatusHeader:()=>yPe,ExportSalesPerItemQueryParams:()=>wPe,ExportSalesPerItemHeader:()=>XPe,ExportDocumentsQueryParams:()=>WPe,ExportDocumentsHeader:()=>QPe});var GK="en",WPe=r({type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Document type to export"),format:g(["xlsx","csv"]).describe("Export format"),date_from:e().optional().describe("Start date filter (ISO 8601 date). Date range cannot exceed 1 year."),date_to:e().optional().describe("End date filter (ISO 8601 date). Date range cannot exceed 1 year."),language:g(["en","sl","de","it","fr","es"]).default(GK).describe("Language for column headers. Default: en."),query:e().optional().describe("JSON query filter (same as list endpoints)"),search:e().optional().describe("Full-text search")}),QPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uK="en",wPe=r({format:g(["xlsx","csv"]).describe("Export format"),date_from:e().describe("Start date filter (ISO 8601 date). Required. Date range cannot exceed 1 year."),date_to:e().describe("End date filter (ISO 8601 date). Required. Date range cannot exceed 1 year."),language:g(["en","sl","de","it","fr","es","pt","nl","pl","hr"]).default(uK).describe("Language for column headers. Default: en.")}),XPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),YPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xPe=J([r({type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Document type to export"),document_ids:P(e()).min(1).describe("Specific document IDs to export")}),r({type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Document type to export"),date_from:e().optional().describe("Start date filter (ISO 8601 date). Date range cannot exceed 1 year."),date_to:e().optional().describe("End date filter (ISO 8601 date). Date range cannot exceed 1 year.")})]),KPe=r({jobId:e().describe("Export job ID")}),yPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),VPe=r({id:e().describe("Export job ID"),status:g(["pending","processing","completed","failed"]).describe("Export job status"),progress:v().describe("Export progress percentage (0-100)"),total_docs:v().nullable().describe("Total number of documents to export"),file_url:e().nullable().describe("Download URL for the completed export"),error:e().nullable().describe("Error message if the export failed")});var Qc={};Q(Qc,{getFilesResponseDataItemOneWidthMin:()=>yK,getFilesResponseDataItemOneWidthMax:()=>VK,getFilesResponseDataItemOneUrlMax:()=>XK,getFilesResponseDataItemOneSecureUrlMax:()=>YK,getFilesResponseDataItemOnePublicIdMax:()=>xK,getFilesResponseDataItemOneMimeTypeMax:()=>UK,getFilesResponseDataItemOneInvoiceIdMax:()=>LK,getFilesResponseDataItemOneIdMax:()=>BK,getFilesResponseDataItemOneHeightMin:()=>FK,getFilesResponseDataItemOneHeightMax:()=>$K,getFilesResponseDataItemOneFormatMax:()=>KK,getFilesResponseDataItemOneFilenameMax:()=>kK,getFilesResponseDataItemOneEstimateIdMax:()=>HK,getFilesResponseDataItemOneEntityIdMax:()=>RK,getFilesResponseDataItemOneCreditNoteIdMax:()=>WK,getFilesResponseDataItemOneCategoryMax:()=>wK,getFilesResponseDataItemOneCacheKeyMax:()=>mK,getFilesResponseDataItemOneBytesMin:()=>MK,getFilesResponseDataItemOneBytesMax:()=>zK,getFilesResponseDataItemOneAdvanceInvoiceIdMax:()=>QK,getFilesQueryLimitMax:()=>tK,getFilesQueryLimitDefault:()=>JK,getFileByIdResponseOneWidthMin:()=>oy,getFileByIdResponseOneWidthMax:()=>cy,getFileByIdResponseOneUrlMax:()=>dK,getFileByIdResponseOneSecureUrlMax:()=>aK,getFileByIdResponseOnePublicIdMax:()=>sK,getFileByIdResponseOneMimeTypeMax:()=>Sy,getFileByIdResponseOneInvoiceIdMax:()=>pK,getFileByIdResponseOneIdMax:()=>CK,getFileByIdResponseOneHeightMin:()=>ry,getFileByIdResponseOneHeightMax:()=>vy,getFileByIdResponseOneFormatMax:()=>ey,getFileByIdResponseOneFilenameMax:()=>Iy,getFileByIdResponseOneEstimateIdMax:()=>fK,getFileByIdResponseOneEntityIdMax:()=>jK,getFileByIdResponseOneCreditNoteIdMax:()=>lK,getFileByIdResponseOneCategoryMax:()=>iK,getFileByIdResponseOneCacheKeyMax:()=>gy,getFileByIdResponseOneBytesMin:()=>ny,getFileByIdResponseOneBytesMax:()=>Ay,getFileByIdResponseOneAdvanceInvoiceIdMax:()=>hK,getFileByIdPathIdRegExp:()=>ZK,deleteFilePathIdRegExp:()=>Py,UploadFileHeader:()=>FPe,UploadFileBody:()=>$Pe,GetFilesResponse:()=>kPe,GetFilesQueryParams:()=>MPe,GetFilesHeader:()=>zPe,GetFileByIdResponse:()=>ZPe,GetFileByIdParams:()=>UPe,GetFileByIdHeader:()=>mPe,DeleteFileParams:()=>CPe,DeleteFileHeader:()=>jPe});var FPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),$Pe=r({file:ce(File).optional().describe("File to upload"),category:g(["logo","signature","attachment"]).describe("File category (logo, signature, or attachment)"),account_payable_id:e().optional().describe("Account payable ID for attachments (optional, only for attachment category)")}),JK=10,tK=100,MPe=r({limit:v().min(1).max(tK).default(JK).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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."),category:g(["logo","signature","attachment"]).optional().describe("Filter by file category"),account_payable_id:e().optional().describe("Filter by account payable ID (for attachments)")}),zPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),BK=36,RK=36,LK=36,HK=36,WK=36,QK=36,wK=20,XK=500,YK=500,xK=200,KK=20,yK=-2147483648,VK=2147483647,FK=-2147483648,$K=2147483647,MK=-2147483648,zK=2147483647,kK=255,UK=100,mK=255,kPe=r({data:P(r({id:e().max(BK),entity_id:e().max(RK),invoice_id:e().max(LK).nullish(),estimate_id:e().max(HK).nullish(),credit_note_id:e().max(WK).nullish(),advance_invoice_id:e().max(QK).nullish(),category:e().max(wK),url:e().max(XK),secureUrl:e().max(YK),publicId:e().max(xK),format:e().max(KK),width:v().min(yK).max(VK).nullish(),height:v().min(FK).max($K).nullish(),bytes:v().min(MK).max(zK),filename:e().max(kK).nullish(),mime_type:e().max(UK),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),cache_key:e().max(mK).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("File metadata record with upload information").and(r({})).describe("File metadata record with upload information")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),ZK=/^[a-z]{3,4}_[0-9a-f]{24}$/,UPe=r({id:e().regex(ZK).describe("Unique resource identifier")}),mPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),CK=36,jK=36,pK=36,fK=36,lK=36,hK=36,iK=20,dK=500,aK=500,sK=200,ey=20,oy=-2147483648,cy=2147483647,ry=-2147483648,vy=2147483647,ny=-2147483648,Ay=2147483647,Iy=255,Sy=100,gy=255,ZPe=r({id:e().max(CK),entity_id:e().max(jK),invoice_id:e().max(pK).nullish(),estimate_id:e().max(fK).nullish(),credit_note_id:e().max(lK).nullish(),advance_invoice_id:e().max(hK).nullish(),category:e().max(iK),url:e().max(dK),secureUrl:e().max(aK),publicId:e().max(sK),format:e().max(ey),width:v().min(oy).max(cy).nullish(),height:v().min(ry).max(vy).nullish(),bytes:v().min(ny).max(Ay),filename:e().max(Iy).nullish(),mime_type:e().max(Sy),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),cache_key:e().max(gy).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("File metadata record with upload information").and(r({})).describe("File metadata record with upload information"),Py=/^[a-z]{3,4}_[0-9a-f]{24}$/,CPe=r({id:e().regex(Py).describe("Unique resource identifier")}),jPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var wc={};Q(wc,{UploadFinaCertificateResponse:()=>lPe,UploadFinaCertificateHeader:()=>pPe,UploadFinaCertificateBody:()=>fPe,GetFinaCertificateResponse:()=>iPe,GetFinaCertificateHeader:()=>hPe,DeleteFinaCertificateHeader:()=>dPe});var pPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),fPe=r({file:ce(File).optional().describe("P12/PFX certificate file"),passphrase:e().optional().describe("Certificate passphrase (will be encrypted before storage)")}),lPe=r({certificate_expiry:e().datetime({}).describe("Certificate expiration date (ISO 8601 format)"),message:e().describe("Success message")}),hPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),iPe=r({certificate_expiry:e(),certificate_cn:e().nullable(),certificate_issuer:e().nullable(),uploaded_at:e(),message:e()}),dPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var Xc={};Q(Xc,{registerFinaDeviceBodyDeviceIdRegExp:()=>Dy,registerFinaDeviceBodyDeviceIdMax:()=>Ey,RegisterFinaDeviceParams:()=>o_e,RegisterFinaDeviceHeader:()=>c_e,RegisterFinaDeviceBody:()=>r_e,ListFinaDevicesResponseItem:()=>_y,ListFinaDevicesResponse:()=>e_e,ListFinaDevicesParams:()=>aPe,ListFinaDevicesHeader:()=>sPe,GetFinaDeviceResponse:()=>A_e,GetFinaDeviceParams:()=>v_e,GetFinaDeviceHeader:()=>n_e,DeleteFinaDeviceResponse:()=>g_e,DeleteFinaDeviceParams:()=>I_e,DeleteFinaDeviceHeader:()=>S_e});var aPe=r({id:e().describe("Premise ID")}),sPe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),_y=r({id:e(),premise_id:e(),device_id:e(),is_active:A(),counter:v(),created_at:e().datetime({}),updated_at:e().datetime({})}),e_e=P(_y),o_e=r({id:e().describe("Premise ID")}),c_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ey=20,Dy=/^\d{1,20}$/,r_e=r({device_id:e().min(1).max(Ey).regex(Dy).describe("Electronic device ID (OznNapUr), digits only, 1-20 chars")}),v_e=r({id:e().describe("Device ID")}),n_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),A_e=r({id:e(),premise_id:e(),device_id:e(),is_active:A(),counter:v(),created_at:e().datetime({}),updated_at:e().datetime({})}),I_e=r({id:e().describe("Device ID")}),S_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),g_e=r({success:A().describe("Operation success status"),message:e().describe("Success message"),device_id:e().describe("ID of the registered electronic device")});var Yc={};Q(Yc,{createFinaPremiseBodyPremiseIdRegExp:()=>Ty,createFinaPremiseBodyPremiseIdMax:()=>by,ListFinaPremisesResponseItem:()=>Oy,ListFinaPremisesResponse:()=>__e,ListFinaPremisesHeader:()=>P_e,GetFinaPremiseResponse:()=>T_e,GetFinaPremiseParams:()=>O_e,GetFinaPremiseHeader:()=>b_e,DeleteFinaPremiseResponse:()=>G_e,DeleteFinaPremiseParams:()=>q_e,DeleteFinaPremiseHeader:()=>N_e,CreateFinaPremiseHeader:()=>E_e,CreateFinaPremiseBody:()=>D_e});var P_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Oy=r({id:e(),entity_id:e(),premise_id:e(),type:e(),real_estate:r({cadastral_municipality:e(),land_registry_number:e(),building_number:e().nullable(),sub_building_number:e().nullable(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),settlement:e().nullable(),city:e().nullable(),postal_code:e().nullable()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),premise_id:e(),device_id:e(),is_active:A(),counter:v(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),__e=P(Oy),E_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),by=20,Ty=/^[0-9a-zA-Z]{1,20}$/,D_e=r({premise_id:e().min(1).max(by).regex(Ty).describe("Business premise ID (OznPosPr), alphanumeric, 1-20 chars. Must match the ID registered on ePorezna.")}),O_e=r({id:e().describe("Premise ID")}),b_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),T_e=r({id:e(),entity_id:e(),premise_id:e(),type:e(),real_estate:r({cadastral_municipality:e(),land_registry_number:e(),building_number:e().nullable(),sub_building_number:e().nullable(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),settlement:e().nullable(),city:e().nullable(),postal_code:e().nullable()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),premise_id:e(),device_id:e(),is_active:A(),counter:v(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),q_e=r({id:e().describe("Premise ID")}),N_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),G_e=r({success:A().describe("Operation success status"),message:e().describe("Success message"),premise_id:e().describe("Business premise ID")});var xc={};Q(xc,{updateFinaSettingsBodyOperatorOibMin:()=>qy,updateFinaSettingsBodyOperatorOibMax:()=>Ny,UpdateFinaSettingsResponse:()=>R_e,UpdateFinaSettingsHeader:()=>t_e,UpdateFinaSettingsBody:()=>B_e,GetFinaSettingsResponse:()=>J_e,GetFinaSettingsHeader:()=>u_e});var u_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),J_e=r({enabled:A().describe("Whether CIS fiscalization is enabled"),operator_oib:e().optional().describe("Operator OIB"),operator_label:e().optional().describe("Operator label"),u_sust_pdv:A().optional().describe("Whether entity is in PDV system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence"),certificate_expiry:e().optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")}),t_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),qy=11,Ny=11,B_e=r({enabled:A().optional().describe("Enable/disable CIS fiscalization"),operator_oib:e().min(qy).max(Ny).optional().describe("Operator OIB (11 digits). Used when creating invoices via API key."),operator_label:e().optional().describe("Operator label/name"),u_sust_pdv:A().optional().describe("Whether the entity is in the PDV (VAT) system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence: N (per premise) or P (per device)")}),R_e=r({enabled:A().describe("Whether CIS fiscalization is enabled"),operator_oib:e().optional().describe("Operator OIB"),operator_label:e().optional().describe("Operator label"),u_sust_pdv:A().optional().describe("Whether entity is in PDV system"),numbering_sequence:g(["N","P"]).optional().describe("Numbering sequence"),certificate_expiry:e().optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")});var Kc={};Q(Kc,{UploadFursCertificateResponse:()=>W_e,UploadFursCertificateHeader:()=>L_e,UploadFursCertificateBody:()=>H_e,GetFursCertificateResponse:()=>w_e,GetFursCertificateHeader:()=>Q_e,DeleteFursCertificateHeader:()=>X_e});var L_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),H_e=r({file:ce(File).optional().describe("P12/PFX certificate file"),passphrase:e().optional().describe("Certificate passphrase (will be encrypted before storage)")}),W_e=r({certificate_expiry:e().datetime({}).describe("Certificate expiration date (ISO 8601 format)"),message:e().describe("Success message")}),Q_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),w_e=r({certificate_expiry:e(),certificate_cn:e().nullable(),certificate_issuer:e().nullable(),uploaded_at:e(),message:e()}),X_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var yc={};Q(yc,{registerFursElectronicDeviceBodyNameMax:()=>uy,RegisterFursElectronicDeviceParams:()=>y_e,RegisterFursElectronicDeviceHeader:()=>V_e,RegisterFursElectronicDeviceBody:()=>F_e,ListFursElectronicDevicesResponseItem:()=>Gy,ListFursElectronicDevicesResponse:()=>K_e,ListFursElectronicDevicesParams:()=>Y_e,ListFursElectronicDevicesHeader:()=>x_e,GetFursElectronicDeviceResponse:()=>z_e,GetFursElectronicDeviceParams:()=>$_e,GetFursElectronicDeviceHeader:()=>M_e});var Y_e=r({id:e().describe("Business premise ID")}),x_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Gy=r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})}),K_e=P(Gy),y_e=r({id:e().describe("Business premise ID")}),V_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uy=20,F_e=r({name:e().min(1).max(uy).describe("Electronic device name/identifier (e.g., 'E1', 'POS1', 'DEVICE1')")}),$_e=r({id:e().describe("Electronic device ID")}),M_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),z_e=r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})});var Vc={};Q(Vc,{registerFursRealEstatePremiseBodyRealEstateStreetMax:()=>Hy,registerFursRealEstatePremiseBodyRealEstatePostalCodeRegExp:()=>Ky,registerFursRealEstatePremiseBodyRealEstatePostalCodeMin:()=>Yy,registerFursRealEstatePremiseBodyRealEstatePostalCodeMax:()=>xy,registerFursRealEstatePremiseBodyRealEstateHouseNumberMax:()=>Wy,registerFursRealEstatePremiseBodyRealEstateHouseNumberAdditionalMax:()=>Qy,registerFursRealEstatePremiseBodyRealEstateCommunityMax:()=>wy,registerFursRealEstatePremiseBodyRealEstateCityMax:()=>Xy,registerFursRealEstatePremiseBodyRealEstateCadastralNumberRegExp:()=>By,registerFursRealEstatePremiseBodyRealEstateBuildingSectionRegExp:()=>Ly,registerFursRealEstatePremiseBodyRealEstateBuildingNumberRegExp:()=>Ry,registerFursRealEstatePremiseBodyBusinessPremiseNameMax:()=>ty,registerFursMovablePremiseBodyBusinessPremiseNameMax:()=>yy,RegisterFursRealEstatePremiseResponse:()=>f_e,RegisterFursRealEstatePremiseHeader:()=>j_e,RegisterFursRealEstatePremiseBody:()=>p_e,RegisterFursMovablePremiseResponse:()=>i_e,RegisterFursMovablePremiseHeader:()=>l_e,RegisterFursMovablePremiseBody:()=>h_e,ListFursBusinessPremisesResponseItem:()=>Jy,ListFursBusinessPremisesResponse:()=>U_e,ListFursBusinessPremisesHeader:()=>k_e,GetFursBusinessPremiseResponse:()=>C_e,GetFursBusinessPremiseParams:()=>m_e,GetFursBusinessPremiseHeader:()=>Z_e,CloseFursBusinessPremiseResponse:()=>s_e,CloseFursBusinessPremiseParams:()=>d_e,CloseFursBusinessPremiseHeader:()=>a_e});var k_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Jy=r({id:e(),entity_id:e(),business_premise_name:e(),type:e(),real_estate:r({property_id:e(),building_number:e().nullable(),building_section:e().nullable(),community:e(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),cadastral_number:e()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),U_e=P(Jy),m_e=r({id:e().describe("Business premise ID")}),Z_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),C_e=r({id:e(),entity_id:e(),business_premise_name:e(),type:e(),real_estate:r({property_id:e(),building_number:e().nullable(),building_section:e().nullable(),community:e(),street:e().nullable(),house_number:e().nullable(),house_number_additional:e().nullable(),cadastral_number:e()}).nullable(),movable_premise:r({type:e()}).nullable(),is_active:A(),registered_at:e().datetime({}),closed_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({}),Devices:P(r({id:e(),business_premise_id:e(),electronic_device_name:e(),is_active:A(),counter:v(),registered_at:e().datetime({}).nullable(),created_at:e().datetime({}),updated_at:e().datetime({})})).optional()}),j_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ty=20,By=/^\d+$/,Ry=/^\d+$/,Ly=/^\d+$/,Hy=100,Wy=10,Qy=10,wy=100,Xy=100,Yy=4,xy=4,Ky=/^\d{4}$/,p_e=r({business_premise_name:e().min(1).max(ty).describe("Business premise name/identifier (e.g., 'P1', 'TRGOVINA1')"),real_estate:r({cadastral_number:e().min(1).regex(By).describe("Cadastral number of the property (required, numeric, max 9999)"),building_number:e().min(1).regex(Ry).describe("Building number (required, numeric, max 99999)"),building_section:e().min(1).regex(Ly).describe("Building section number (required, numeric, max 9999)"),street:e().min(1).max(Hy).describe("Street name (required, max 100 chars)"),house_number:e().min(1).max(Wy).describe("House number (required, max 10 chars)"),house_number_additional:e().max(Qy).nullish().describe("Additional house number suffix (optional, max 10 chars)"),community:e().min(1).max(wy).describe("Community / občina name (required, max 100 chars)"),city:e().min(1).max(Xy).describe("City name (required, max 100 chars)"),postal_code:e().min(Yy).max(xy).regex(Ky).describe("Postal code (required, exactly 4 digits)")}).describe("Real estate (physical location) details")}),f_e=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")}),l_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yy=20,h_e=r({business_premise_name:e().min(1).max(yy).describe("Business premise name/identifier (e.g., 'VEHICLE1', 'STALL2')"),movable_premise:r({premise_type:g(["A","B","C"]).describe("Type of movable premise: A=vehicle, B=market stall, C=vending machine")}).describe("Movable premise details")}),i_e=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")}),d_e=r({id:e().describe("Business premise ID")}),a_e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),s_e=r({success:A().describe("Operation success status"),message:e().describe("Success message"),business_premise_name:e().describe("Registered business premise name"),environment:g(["test","production"]).describe("FURS environment used")});var Fc={};Q(Fc,{UpdateFursSettingsResponse:()=>vEe,UpdateFursSettingsHeader:()=>cEe,UpdateFursSettingsBody:()=>rEe,GetFursSettingsResponse:()=>oEe,GetFursSettingsHeader:()=>eEe});var eEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),oEe=r({enabled:A().describe("Whether FURS fiscalization is enabled"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy"),operator_tax_number:e().optional().describe("Operator tax number"),operator_label:e().optional().describe("Operator label"),certificate_expiry:e().datetime({}).optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")}),cEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),rEe=r({enabled:A().optional().describe("Enable/disable FURS fiscalization"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy: B (device-level) or C (centralized)"),operator_tax_number:e().optional().describe("Operator tax number for API key usage"),operator_label:e().optional().describe("Operator label/name")}),vEe=r({enabled:A().describe("Whether FURS fiscalization is enabled"),numbering_strategy:g(["B","C"]).optional().describe("Numbering strategy"),operator_tax_number:e().optional().describe("Operator tax number"),operator_label:e().optional().describe("Operator label"),certificate_expiry:e().datetime({}).optional().describe("Certificate expiration date"),has_certificate:A().describe("Whether a certificate is uploaded"),certificate_status:g(["valid","expiring_soon","expired","missing"]).optional().describe("Certificate status")});var $c={};Q($c,{voidInvoiceResponseTotalWithTaxMin:()=>sM,voidInvoiceResponseTotalWithTaxMax:()=>ez,voidInvoiceResponseTotalWithTaxConvertedMin:()=>Sz,voidInvoiceResponseTotalWithTaxConvertedMax:()=>gz,voidInvoiceResponseTotalPaidMin:()=>Pz,voidInvoiceResponseTotalPaidMax:()=>_z,voidInvoiceResponseTotalMin:()=>dM,voidInvoiceResponseTotalMax:()=>aM,voidInvoiceResponseTotalDueMin:()=>Ez,voidInvoiceResponseTotalDueMax:()=>Dz,voidInvoiceResponseTotalConvertedMin:()=>Az,voidInvoiceResponseTotalConvertedMax:()=>Iz,voidInvoiceResponseShareableIdMax:()=>nz,voidInvoiceResponseNumberMax:()=>ZM,voidInvoiceResponseItemsItemUnitMax:()=>Jz,voidInvoiceResponseItemsItemTotalWithTaxMin:()=>Wz,voidInvoiceResponseItemsItemTotalWithTaxMax:()=>Qz,voidInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>Yz,voidInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>xz,voidInvoiceResponseItemsItemTotalMin:()=>Lz,voidInvoiceResponseItemsItemTotalMax:()=>Hz,voidInvoiceResponseItemsItemTotalConvertedMin:()=>wz,voidInvoiceResponseItemsItemTotalConvertedMax:()=>Xz,voidInvoiceResponseItemsItemQuantityMin:()=>Gz,voidInvoiceResponseItemsItemQuantityMax:()=>uz,voidInvoiceResponseItemsItemNameMax:()=>Nz,voidInvoiceResponseItemsItemItemIdMax:()=>Fz,voidInvoiceResponseItemsItemInvoiceIdMax:()=>Kz,voidInvoiceResponseItemsItemIdMax:()=>qz,voidInvoiceResponseItemsItemDiscountsMax:()=>Rz,voidInvoiceResponseItemsItemDiscountsItemValueMin:()=>tz,voidInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>Bz,voidInvoiceResponseItemsItemDeliveryNoteIdMax:()=>Vz,voidInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>yz,voidInvoiceResponseIssuerCountryCodeMin:()=>CM,voidInvoiceResponseIssuerCountryCodeMax:()=>jM,voidInvoiceResponseIssuerBankAccountTypeDefault:()=>pM,voidInvoiceResponseIdMax:()=>mM,voidInvoiceResponseFursDataIterationDefault:()=>Oz,voidInvoiceResponseEntityIdMax:()=>cz,voidInvoiceResponseDateYearMin:()=>rz,voidInvoiceResponseDateYearMax:()=>vz,voidInvoiceResponseDateServiceToRegExp:()=>Tz,voidInvoiceResponseDateServiceRegExp:()=>bz,voidInvoiceResponseCustomerIdMax:()=>fM,voidInvoiceResponseCustomerCountryCodeMin:()=>lM,voidInvoiceResponseCustomerCountryCodeMax:()=>hM,voidInvoiceResponseCustomerBankAccountTypeDefault:()=>iM,voidInvoiceResponseCurrencyCodeMax:()=>oz,voidInvoicePathIdRegExp:()=>UM,updateInvoiceResponseTotalWithTaxMin:()=>n$,updateInvoiceResponseTotalWithTaxMax:()=>A$,updateInvoiceResponseTotalWithTaxConvertedMin:()=>O$,updateInvoiceResponseTotalWithTaxConvertedMax:()=>b$,updateInvoiceResponseTotalPaidMin:()=>T$,updateInvoiceResponseTotalPaidMax:()=>q$,updateInvoiceResponseTotalMin:()=>r$,updateInvoiceResponseTotalMax:()=>v$,updateInvoiceResponseTotalDueMin:()=>N$,updateInvoiceResponseTotalDueMax:()=>G$,updateInvoiceResponseTotalConvertedMin:()=>E$,updateInvoiceResponseTotalConvertedMax:()=>D$,updateInvoiceResponseShareableIdMax:()=>_$,updateInvoiceResponseNumberMax:()=>hF,updateInvoiceResponseItemsItemUnitMax:()=>W$,updateInvoiceResponseItemsItemTotalWithTaxMin:()=>K$,updateInvoiceResponseItemsItemTotalWithTaxMax:()=>y$,updateInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>$$,updateInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>M$,updateInvoiceResponseItemsItemTotalMin:()=>Y$,updateInvoiceResponseItemsItemTotalMax:()=>x$,updateInvoiceResponseItemsItemTotalConvertedMin:()=>V$,updateInvoiceResponseItemsItemTotalConvertedMax:()=>F$,updateInvoiceResponseItemsItemQuantityMin:()=>L$,updateInvoiceResponseItemsItemQuantityMax:()=>H$,updateInvoiceResponseItemsItemNameMax:()=>R$,updateInvoiceResponseItemsItemItemIdMax:()=>m$,updateInvoiceResponseItemsItemInvoiceIdMax:()=>z$,updateInvoiceResponseItemsItemIdMax:()=>B$,updateInvoiceResponseItemsItemDiscountsMax:()=>X$,updateInvoiceResponseItemsItemDiscountsItemValueMin:()=>Q$,updateInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>w$,updateInvoiceResponseItemsItemDeliveryNoteIdMax:()=>U$,updateInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>k$,updateInvoiceResponseIssuerCountryCodeMin:()=>iF,updateInvoiceResponseIssuerCountryCodeMax:()=>dF,updateInvoiceResponseIssuerBankAccountTypeDefault:()=>aF,updateInvoiceResponseIdMax:()=>lF,updateInvoiceResponseFursDataIterationDefault:()=>u$,updateInvoiceResponseEntityIdMax:()=>S$,updateInvoiceResponseDateYearMin:()=>g$,updateInvoiceResponseDateYearMax:()=>P$,updateInvoiceResponseDateServiceToRegExp:()=>t$,updateInvoiceResponseDateServiceRegExp:()=>J$,updateInvoiceResponseCustomerIdMax:()=>sF,updateInvoiceResponseCustomerCountryCodeMin:()=>e$,updateInvoiceResponseCustomerCountryCodeMax:()=>o$,updateInvoiceResponseCustomerBankAccountTypeDefault:()=>c$,updateInvoiceResponseCurrencyCodeMax:()=>I$,updateInvoicePathIdRegExp:()=>HF,updateInvoiceBodyItemsItemUnitMax:()=>MF,updateInvoiceBodyItemsItemSaveItemDefault:()=>ZF,updateInvoiceBodyItemsItemQuantityMin:()=>FF,updateInvoiceBodyItemsItemQuantityMax:()=>$F,updateInvoiceBodyItemsItemDiscountsMax:()=>UF,updateInvoiceBodyItemsItemDiscountsItemValueMin:()=>zF,updateInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>kF,updateInvoiceBodyItemsItemDescriptionMax:()=>VF,updateInvoiceBodyItemsItemDeliveryNoteIdMax:()=>mF,updateInvoiceBodyIssuerOneCountryCodeMin:()=>QF,updateInvoiceBodyIssuerOneCountryCodeMax:()=>wF,updateInvoiceBodyIssuerOneBankAccountTypeDefault:()=>XF,updateInvoiceBodyDateServiceToRegExp:()=>fF,updateInvoiceBodyDateServiceRegExp:()=>pF,updateInvoiceBodyDateRegExp:()=>WF,updateInvoiceBodyDateDueRegExp:()=>jF,updateInvoiceBodyCustomerTwoSaveCustomerDefault:()=>yF,updateInvoiceBodyCustomerOneCountryCodeMin:()=>YF,updateInvoiceBodyCustomerOneCountryCodeMax:()=>xF,updateInvoiceBodyCustomerOneBankAccountTypeDefault:()=>KF,updateInvoiceBodyChangeReasonMax:()=>CF,renderInvoicePreviewQueryTemplateDefault:()=>C$,renderInvoicePreviewQueryPartialDefault:()=>f$,renderInvoicePreviewQueryLocaleMin:()=>j$,renderInvoicePreviewQueryLocaleMax:()=>p$,renderInvoicePreviewBodyTwoItemsItemUnitMax:()=>QM,renderInvoicePreviewBodyTwoItemsItemSaveItemDefault:()=>KM,renderInvoicePreviewBodyTwoItemsItemQuantityMin:()=>HM,renderInvoicePreviewBodyTwoItemsItemQuantityMax:()=>WM,renderInvoicePreviewBodyTwoItemsItemDiscountsMax:()=>YM,renderInvoicePreviewBodyTwoItemsItemDiscountsItemValueMin:()=>wM,renderInvoicePreviewBodyTwoItemsItemDiscountsItemTypeDefault:()=>XM,renderInvoicePreviewBodyTwoItemsItemDescriptionMax:()=>LM,renderInvoicePreviewBodyTwoItemsItemDeliveryNoteIdMax:()=>xM,renderInvoicePreviewBodyTwoIssuerCountryCodeMin:()=>OM,renderInvoicePreviewBodyTwoIssuerCountryCodeMax:()=>bM,renderInvoicePreviewBodyTwoIssuerBankAccountTypeDefault:()=>TM,renderInvoicePreviewBodyTwoFinaPremiseIdRegExp:()=>VM,renderInvoicePreviewBodyTwoFinaPremiseIdMax:()=>yM,renderInvoicePreviewBodyTwoFinaOperatorOibMin:()=>MM,renderInvoicePreviewBodyTwoFinaOperatorOibMax:()=>zM,renderInvoicePreviewBodyTwoFinaDeviceIdRegExp:()=>$M,renderInvoicePreviewBodyTwoFinaDeviceIdMax:()=>FM,renderInvoicePreviewBodyTwoExpectedTotalWithTaxExclusiveMin:()=>kM,renderInvoicePreviewBodyTwoDateServiceToRegExp:()=>RM,renderInvoicePreviewBodyTwoDateServiceRegExp:()=>BM,renderInvoicePreviewBodyTwoDateRegExp:()=>DM,renderInvoicePreviewBodyTwoDateDueRegExp:()=>tM,renderInvoicePreviewBodyTwoCustomerTwoSaveCustomerDefault:()=>uM,renderInvoicePreviewBodyTwoCustomerOneCountryCodeMin:()=>qM,renderInvoicePreviewBodyTwoCustomerOneCountryCodeMax:()=>NM,renderInvoicePreviewBodyTwoCustomerOneBankAccountTypeDefault:()=>GM,renderInvoicePreviewBodyTwoCurrencyCodeMax:()=>JM,renderInvoicePreviewBodyOneIssuerCountryCodeMin:()=>h$,renderInvoicePreviewBodyOneIssuerCountryCodeMax:()=>i$,renderInvoicePreviewBodyOneIssuerBankAccountTypeDefault:()=>d$,renderInvoicePreviewBodyOneFinaPremiseIdRegExp:()=>IM,renderInvoicePreviewBodyOneFinaPremiseIdMax:()=>AM,renderInvoicePreviewBodyOneFinaOperatorOibMin:()=>PM,renderInvoicePreviewBodyOneFinaOperatorOibMax:()=>_M,renderInvoicePreviewBodyOneFinaDeviceIdRegExp:()=>gM,renderInvoicePreviewBodyOneFinaDeviceIdMax:()=>SM,renderInvoicePreviewBodyOneExpectedTotalWithTaxExclusiveMin:()=>EM,renderInvoicePreviewBodyOneDateServiceToRegExp:()=>nM,renderInvoicePreviewBodyOneDateServiceRegExp:()=>vM,renderInvoicePreviewBodyOneDateRegExp:()=>l$,renderInvoicePreviewBodyOneDateDueRegExp:()=>rM,renderInvoicePreviewBodyOneCustomerTwoSaveCustomerDefault:()=>oM,renderInvoicePreviewBodyOneCustomerOneCountryCodeMin:()=>a$,renderInvoicePreviewBodyOneCustomerOneCountryCodeMax:()=>s$,renderInvoicePreviewBodyOneCustomerOneBankAccountTypeDefault:()=>eM,renderInvoicePreviewBodyOneCurrencyCodeMax:()=>cM,renderDocumentPdfQueryTemplateDefault:()=>mz,renderDocumentPdfQueryLocaleMin:()=>Zz,renderDocumentPdfQueryLocaleMax:()=>Cz,renderDocumentPdfPathIdRegExp:()=>Uz,renderDocumentHtmlQueryTemplateDefault:()=>Mz,renderDocumentHtmlQueryLocaleMin:()=>zz,renderDocumentHtmlQueryLocaleMax:()=>kz,renderDocumentHtmlPathIdRegExp:()=>$z,getShareableInvoiceResponseTotalWithTaxMin:()=>py,getShareableInvoiceResponseTotalWithTaxMax:()=>fy,getShareableInvoiceResponseTotalWithTaxConvertedMin:()=>o5,getShareableInvoiceResponseTotalWithTaxConvertedMax:()=>c5,getShareableInvoiceResponseTotalPaidMin:()=>r5,getShareableInvoiceResponseTotalPaidMax:()=>v5,getShareableInvoiceResponseTotalMin:()=>Cy,getShareableInvoiceResponseTotalMax:()=>jy,getShareableInvoiceResponseTotalDueMin:()=>n5,getShareableInvoiceResponseTotalDueMax:()=>A5,getShareableInvoiceResponseTotalConvertedMin:()=>sy,getShareableInvoiceResponseTotalConvertedMax:()=>e5,getShareableInvoiceResponseShareableIdMax:()=>ay,getShareableInvoiceResponseNumberMax:()=>Fy,getShareableInvoiceResponseItemsItemUnitMax:()=>O5,getShareableInvoiceResponseItemsItemTotalWithTaxMin:()=>u5,getShareableInvoiceResponseItemsItemTotalWithTaxMax:()=>J5,getShareableInvoiceResponseItemsItemTotalWithTaxConvertedMin:()=>R5,getShareableInvoiceResponseItemsItemTotalWithTaxConvertedMax:()=>L5,getShareableInvoiceResponseItemsItemTotalMin:()=>N5,getShareableInvoiceResponseItemsItemTotalMax:()=>G5,getShareableInvoiceResponseItemsItemTotalConvertedMin:()=>t5,getShareableInvoiceResponseItemsItemTotalConvertedMax:()=>B5,getShareableInvoiceResponseItemsItemQuantityMin:()=>E5,getShareableInvoiceResponseItemsItemQuantityMax:()=>D5,getShareableInvoiceResponseItemsItemNameMax:()=>_5,getShareableInvoiceResponseItemsItemItemIdMax:()=>w5,getShareableInvoiceResponseItemsItemInvoiceIdMax:()=>H5,getShareableInvoiceResponseItemsItemIdMax:()=>P5,getShareableInvoiceResponseItemsItemDiscountsMax:()=>q5,getShareableInvoiceResponseItemsItemDiscountsItemValueMin:()=>b5,getShareableInvoiceResponseItemsItemDiscountsItemTypeDefault:()=>T5,getShareableInvoiceResponseItemsItemDeliveryNoteIdMax:()=>Q5,getShareableInvoiceResponseItemsItemAdvanceInvoiceIdMax:()=>W5,getShareableInvoiceResponseIssuerCountryCodeMin:()=>$y,getShareableInvoiceResponseIssuerCountryCodeMax:()=>My,getShareableInvoiceResponseIssuerBankAccountTypeDefault:()=>zy,getShareableInvoiceResponseIdMax:()=>Vy,getShareableInvoiceResponseFursDataIterationDefault:()=>I5,getShareableInvoiceResponseEntityIdMax:()=>hy,getShareableInvoiceResponseDateYearMin:()=>iy,getShareableInvoiceResponseDateYearMax:()=>dy,getShareableInvoiceResponseDateServiceToRegExp:()=>g5,getShareableInvoiceResponseDateServiceRegExp:()=>S5,getShareableInvoiceResponseCustomerIdMax:()=>ky,getShareableInvoiceResponseCustomerCountryCodeMin:()=>Uy,getShareableInvoiceResponseCustomerCountryCodeMax:()=>my,getShareableInvoiceResponseCustomerBankAccountTypeDefault:()=>Zy,getShareableInvoiceResponseCurrencyCodeMax:()=>ly,getInvoicesResponseDataItemTotalWithTaxMin:()=>J7,getInvoicesResponseDataItemTotalWithTaxMax:()=>t7,getInvoicesResponseDataItemTotalWithTaxConvertedMin:()=>X7,getInvoicesResponseDataItemTotalWithTaxConvertedMax:()=>Y7,getInvoicesResponseDataItemTotalPaidMin:()=>x7,getInvoicesResponseDataItemTotalPaidMax:()=>K7,getInvoicesResponseDataItemTotalMin:()=>G7,getInvoicesResponseDataItemTotalMax:()=>u7,getInvoicesResponseDataItemTotalDueMin:()=>y7,getInvoicesResponseDataItemTotalDueMax:()=>V7,getInvoicesResponseDataItemTotalConvertedMin:()=>Q7,getInvoicesResponseDataItemTotalConvertedMax:()=>w7,getInvoicesResponseDataItemShareableIdMax:()=>W7,getInvoicesResponseDataItemNumberMax:()=>_7,getInvoicesResponseDataItemItemsItemUnitMax:()=>Z7,getInvoicesResponseDataItemItemsItemTotalWithTaxMin:()=>h7,getInvoicesResponseDataItemItemsItemTotalWithTaxMax:()=>i7,getInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMin:()=>s7,getInvoicesResponseDataItemItemsItemTotalWithTaxConvertedMax:()=>eV,getInvoicesResponseDataItemItemsItemTotalMin:()=>f7,getInvoicesResponseDataItemItemsItemTotalMax:()=>l7,getInvoicesResponseDataItemItemsItemTotalConvertedMin:()=>d7,getInvoicesResponseDataItemItemsItemTotalConvertedMax:()=>a7,getInvoicesResponseDataItemItemsItemQuantityMin:()=>U7,getInvoicesResponseDataItemItemsItemQuantityMax:()=>m7,getInvoicesResponseDataItemItemsItemNameMax:()=>k7,getInvoicesResponseDataItemItemsItemItemIdMax:()=>vV,getInvoicesResponseDataItemItemsItemInvoiceIdMax:()=>oV,getInvoicesResponseDataItemItemsItemIdMax:()=>z7,getInvoicesResponseDataItemItemsItemDiscountsMax:()=>p7,getInvoicesResponseDataItemItemsItemDiscountsItemValueMin:()=>C7,getInvoicesResponseDataItemItemsItemDiscountsItemTypeDefault:()=>j7,getInvoicesResponseDataItemItemsItemDeliveryNoteIdMax:()=>rV,getInvoicesResponseDataItemItemsItemAdvanceInvoiceIdMax:()=>cV,getInvoicesResponseDataItemIssuerCountryCodeMin:()=>E7,getInvoicesResponseDataItemIssuerCountryCodeMax:()=>D7,getInvoicesResponseDataItemIssuerBankAccountTypeDefault:()=>O7,getInvoicesResponseDataItemIdMax:()=>P7,getInvoicesResponseDataItemFursDataIterationDefault:()=>F7,getInvoicesResponseDataItemEntityIdMax:()=>R7,getInvoicesResponseDataItemDateYearMin:()=>L7,getInvoicesResponseDataItemDateYearMax:()=>H7,getInvoicesResponseDataItemDateServiceToRegExp:()=>M7,getInvoicesResponseDataItemDateServiceRegExp:()=>$7,getInvoicesResponseDataItemCustomerIdMax:()=>b7,getInvoicesResponseDataItemCustomerCountryCodeMin:()=>T7,getInvoicesResponseDataItemCustomerCountryCodeMax:()=>q7,getInvoicesResponseDataItemCustomerBankAccountTypeDefault:()=>N7,getInvoicesResponseDataItemCurrencyCodeMax:()=>B7,getInvoicesQueryLimitMax:()=>g7,getInvoicesQueryLimitDefault:()=>S7,getInvoiceVersionsPathIdRegExp:()=>Z$,getInvoiceByIdResponseTotalWithTaxMin:()=>mV,getInvoiceByIdResponseTotalWithTaxMax:()=>ZV,getInvoiceByIdResponseTotalWithTaxConvertedMin:()=>dV,getInvoiceByIdResponseTotalWithTaxConvertedMax:()=>aV,getInvoiceByIdResponseTotalPaidMin:()=>sV,getInvoiceByIdResponseTotalPaidMax:()=>eF,getInvoiceByIdResponseTotalMin:()=>kV,getInvoiceByIdResponseTotalMax:()=>UV,getInvoiceByIdResponseTotalDueMin:()=>oF,getInvoiceByIdResponseTotalDueMax:()=>cF,getInvoiceByIdResponseTotalConvertedMin:()=>hV,getInvoiceByIdResponseTotalConvertedMax:()=>iV,getInvoiceByIdResponseShareableIdMax:()=>lV,getInvoiceByIdResponseNumberMax:()=>xV,getInvoiceByIdResponseItemsItemUnitMax:()=>PF,getInvoiceByIdResponseItemsItemTotalWithTaxMin:()=>TF,getInvoiceByIdResponseItemsItemTotalWithTaxMax:()=>qF,getInvoiceByIdResponseItemsItemTotalWithTaxConvertedMin:()=>uF,getInvoiceByIdResponseItemsItemTotalWithTaxConvertedMax:()=>JF,getInvoiceByIdResponseItemsItemTotalMin:()=>OF,getInvoiceByIdResponseItemsItemTotalMax:()=>bF,getInvoiceByIdResponseItemsItemTotalConvertedMin:()=>NF,getInvoiceByIdResponseItemsItemTotalConvertedMax:()=>GF,getInvoiceByIdResponseItemsItemQuantityMin:()=>SF,getInvoiceByIdResponseItemsItemQuantityMax:()=>gF,getInvoiceByIdResponseItemsItemNameMax:()=>IF,getInvoiceByIdResponseItemsItemItemIdMax:()=>LF,getInvoiceByIdResponseItemsItemInvoiceIdMax:()=>tF,getInvoiceByIdResponseItemsItemIdMax:()=>AF,getInvoiceByIdResponseItemsItemDiscountsMax:()=>DF,getInvoiceByIdResponseItemsItemDiscountsItemValueMin:()=>_F,getInvoiceByIdResponseItemsItemDiscountsItemTypeDefault:()=>EF,getInvoiceByIdResponseItemsItemDeliveryNoteIdMax:()=>RF,getInvoiceByIdResponseItemsItemAdvanceInvoiceIdMax:()=>BF,getInvoiceByIdResponseIssuerCountryCodeMin:()=>KV,getInvoiceByIdResponseIssuerCountryCodeMax:()=>yV,getInvoiceByIdResponseIssuerBankAccountTypeDefault:()=>VV,getInvoiceByIdResponseIdMax:()=>YV,getInvoiceByIdResponseFursDataIterationDefault:()=>rF,getInvoiceByIdResponseEntityIdMax:()=>jV,getInvoiceByIdResponseDateYearMin:()=>pV,getInvoiceByIdResponseDateYearMax:()=>fV,getInvoiceByIdResponseDateServiceToRegExp:()=>nF,getInvoiceByIdResponseDateServiceRegExp:()=>vF,getInvoiceByIdResponseCustomerIdMax:()=>FV,getInvoiceByIdResponseCustomerCountryCodeMin:()=>$V,getInvoiceByIdResponseCustomerCountryCodeMax:()=>MV,getInvoiceByIdResponseCustomerBankAccountTypeDefault:()=>zV,getInvoiceByIdResponseCurrencyCodeMax:()=>CV,getInvoiceByIdPathIdRegExp:()=>XV,createInvoiceBodyPaymentsItemTagMax:()=>a5,createInvoiceBodyPaymentsItemReferenceMax:()=>s5,createInvoiceBodyPaymentsItemNoteMax:()=>e7,createInvoiceBodyPaymentsItemAmountExclusiveMin:()=>d5,createInvoiceBodyItemsItemUnitMax:()=>j5,createInvoiceBodyItemsItemSaveItemDefault:()=>i5,createInvoiceBodyItemsItemQuantityMin:()=>Z5,createInvoiceBodyItemsItemQuantityMax:()=>C5,createInvoiceBodyItemsItemDiscountsMax:()=>l5,createInvoiceBodyItemsItemDiscountsItemValueMin:()=>p5,createInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>f5,createInvoiceBodyItemsItemDescriptionMax:()=>m5,createInvoiceBodyItemsItemDeliveryNoteIdMax:()=>h5,createInvoiceBodyIssuerCountryCodeMin:()=>Y5,createInvoiceBodyIssuerCountryCodeMax:()=>x5,createInvoiceBodyIssuerBankAccountTypeDefault:()=>K5,createInvoiceBodyFinaPremiseIdRegExp:()=>c7,createInvoiceBodyFinaPremiseIdMax:()=>o7,createInvoiceBodyFinaOperatorOibMin:()=>n7,createInvoiceBodyFinaOperatorOibMax:()=>A7,createInvoiceBodyFinaDeviceIdRegExp:()=>v7,createInvoiceBodyFinaDeviceIdMax:()=>r7,createInvoiceBodyExpectedTotalWithTaxExclusiveMin:()=>I7,createInvoiceBodyDateServiceToRegExp:()=>U5,createInvoiceBodyDateServiceRegExp:()=>k5,createInvoiceBodyDateRegExp:()=>X5,createInvoiceBodyDateDueRegExp:()=>z5,createInvoiceBodyCustomerTwoSaveCustomerDefault:()=>$5,createInvoiceBodyCustomerOneCountryCodeMin:()=>y5,createInvoiceBodyCustomerOneCountryCodeMax:()=>V5,createInvoiceBodyCustomerOneBankAccountTypeDefault:()=>F5,createInvoiceBodyCurrencyCodeMax:()=>M5,createCustomInvoiceBodyPaymentsItemTagMax:()=>WV,createCustomInvoiceBodyPaymentsItemReferenceMax:()=>QV,createCustomInvoiceBodyPaymentsItemNoteMax:()=>wV,createCustomInvoiceBodyPaymentsItemAmountExclusiveMin:()=>HV,createCustomInvoiceBodyItemsItemUnitMax:()=>uV,createCustomInvoiceBodyItemsItemSaveItemDefault:()=>LV,createCustomInvoiceBodyItemsItemQuantityMin:()=>NV,createCustomInvoiceBodyItemsItemQuantityMax:()=>GV,createCustomInvoiceBodyItemsItemDiscountsMax:()=>BV,createCustomInvoiceBodyItemsItemDiscountsItemValueMin:()=>JV,createCustomInvoiceBodyItemsItemDiscountsItemTypeDefault:()=>tV,createCustomInvoiceBodyItemsItemDescriptionMax:()=>qV,createCustomInvoiceBodyItemsItemDeliveryNoteIdMax:()=>RV,createCustomInvoiceBodyIssuerCountryCodeMin:()=>AV,createCustomInvoiceBodyIssuerCountryCodeMax:()=>IV,createCustomInvoiceBodyIssuerBankAccountTypeDefault:()=>SV,createCustomInvoiceBodyDateServiceToRegExp:()=>TV,createCustomInvoiceBodyDateServiceRegExp:()=>bV,createCustomInvoiceBodyDateRegExp:()=>nV,createCustomInvoiceBodyDateDueRegExp:()=>OV,createCustomInvoiceBodyCustomerTwoSaveCustomerDefault:()=>EV,createCustomInvoiceBodyCustomerOneCountryCodeMin:()=>gV,createCustomInvoiceBodyCustomerOneCountryCodeMax:()=>PV,createCustomInvoiceBodyCustomerOneBankAccountTypeDefault:()=>_V,createCustomInvoiceBodyCurrencyCodeMax:()=>DV,VoidInvoiceResponse:()=>zEe,VoidInvoiceParams:()=>FEe,VoidInvoiceHeader:()=>$Ee,VoidInvoiceBody:()=>MEe,UpdateInvoiceResponse:()=>HEe,UpdateInvoiceParams:()=>BEe,UpdateInvoiceHeader:()=>REe,UpdateInvoiceBody:()=>LEe,RenderInvoicePreviewQueryParams:()=>KEe,RenderInvoicePreviewHeader:()=>yEe,RenderInvoicePreviewBody:()=>VEe,RenderDocumentPdfQueryParams:()=>CEe,RenderDocumentPdfParams:()=>ZEe,RenderDocumentPdfHeader:()=>jEe,RenderDocumentHtmlQueryParams:()=>UEe,RenderDocumentHtmlParams:()=>kEe,RenderDocumentHtmlHeader:()=>mEe,GetShareableInvoiceResponse:()=>AEe,GetShareableInvoicePdfQueryParams:()=>PEe,GetShareableInvoicePdfParams:()=>gEe,GetShareableInvoiceParams:()=>nEe,GetShareableInvoiceHtmlQueryParams:()=>SEe,GetShareableInvoiceHtmlParams:()=>IEe,GetShareableInvoiceEslogParams:()=>_Ee,GetInvoicesResponse:()=>TEe,GetInvoicesQueryParams:()=>OEe,GetInvoicesHeader:()=>bEe,GetInvoiceVersionsResponse:()=>wEe,GetInvoiceVersionsParams:()=>WEe,GetInvoiceVersionsHeader:()=>QEe,GetInvoiceVersionResponse:()=>xEe,GetInvoiceVersionParams:()=>XEe,GetInvoiceVersionHeader:()=>YEe,GetInvoiceByIdResponse:()=>tEe,GetInvoiceByIdQueryParams:()=>uEe,GetInvoiceByIdParams:()=>GEe,GetInvoiceByIdHeader:()=>JEe,CreateInvoiceHeader:()=>EEe,CreateInvoiceBody:()=>DEe,CreateCustomInvoiceHeader:()=>qEe,CreateCustomInvoiceBody:()=>NEe});var nEe=r({shareableId:e().describe("Shareable document token")}),Vy=36,Fy=100,$y=2,My=2,zy="iban",ky=36,Uy=2,my=2,Zy="iban",Cy=-140737488355328,jy=140737488355327,py=-140737488355328,fy=140737488355327,ly=3,hy=36,iy=-2147483648,dy=2147483647,ay=64,sy=-140737488355328,e5=140737488355327,o5=-140737488355328,c5=140737488355327,r5=-140737488355328,v5=140737488355327,n5=-140737488355328,A5=140737488355327,I5=0,S5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,g5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,P5=36,_5=500,E5=-140737488355328,D5=140737488355327,O5=50,b5=0,T5="percent",q5=5,N5=-140737488355328,G5=140737488355327,u5=-140737488355328,J5=140737488355327,t5=-140737488355328,B5=140737488355327,R5=-140737488355328,L5=140737488355327,H5=36,W5=36,Q5=36,w5=36,AEe=r({id:e().max(Vy),number:e().max(Fy),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min($y).max(My).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(zy).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(ky).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Uy).max(my).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(Zy).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(Cy).max(jy),total_with_tax:v().min(py).max(fy),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(ly),entity_id:e().max(hy),date_year:v().min(iy).max(dy),shareable_id:e().max(ay).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(sy).max(e5).nullish(),total_with_tax_converted:v().min(o5).max(c5).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(r5).max(v5),total_due:v().min(n5).max(A5),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(I5),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(S5).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(g5).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(P5),name:e().max(_5),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
178
- Only present if user originally sent gross price.
179
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(E5).max(D5),unit:e().max(O5).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(b5).describe("Discount value"),type:g(["percent","amount"]).default(T5).describe("Discount type: 'percent' (default) or 'amount'")})).max(q5).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(N5).max(G5),total_with_tax:v().min(u5).max(J5),total_converted:v().min(t5).max(B5).nullish(),total_with_tax_converted:v().min(R5).max(L5).nullish(),invoice_id:e().max(H5).nullish(),advance_invoice_id:e().max(W5).nullish(),delivery_note_id:e().max(Q5).nullish(),item_id:e().max(w5).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),IEe=r({shareableId:e().describe("Shareable document token")}),SEe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),gEe=r({shareableId:e().describe("Shareable document token")}),PEe=r({locale:g(["en-US","de-DE","it-IT","fr-FR","es-ES","sl-SI","pt-PT","nl-NL","pl-PL","hr-HR"]).optional().describe("Document language for rendering. Defaults to entity locale.")}),_Ee=r({shareableId:e().describe("Shareable document token")}),EEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),X5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Y5=2,x5=2,K5="iban",y5=2,V5=2,F5="iban",$5=!0,M5=3,z5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,k5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,U5=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,m5=2000,Z5=-140737488355328,C5=140737488355327,j5=50,p5=0,f5="percent",l5=5,h5=36,i5=!0,d5=0,a5=100,s5=100,e7=500,o7=20,c7=/^[0-9a-zA-Z]{1,20}$/,r7=20,v7=/^\d{1,20}$/,n7=11,A7=11,I7=0,DEe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(X5).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(Y5).max(x5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(K5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(y5).max(V5).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(F5).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default($5).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(M5).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(z5).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(k5).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(U5).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(m5).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(Z5).max(C5),unit:e().max(j5).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(p5).describe("Discount value"),type:g(["percent","amount"]).default(f5).describe("Discount type: 'percent' (default) or 'amount'")})).max(l5).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(h5).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
180
- When provided, the item's name, description, price, and taxes are used as defaults.
181
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(i5).describe(`Whether to save this item to the catalog.
182
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
183
- Default: true.`)})).min(1).describe("Line items for the invoice. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents. Accepts estimate IDs (est_xxx) for converted estimates or credit note IDs (cre_xxx). Creates document relations automatically."),payments:P(r({amount:v().gt(d5).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(a5).nullish(),reference:e().max(s5).nullish(),note:e().max(e7).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the invoice. If amounts are not provided, the invoice total is split equally among all payments. Automatically updates invoice payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),fina:r({premise_id:e().min(1).max(o7).regex(c7).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(r7).regex(v7).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(n7).max(A7).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),expected_total_with_tax:v().gt(I7).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),S7=10,g7=100,OEe=r({limit:v().min(1).max(g7).default(S7).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]),P(g(["id","number","date","total","total_with_tax","created_at","updated_at","date_due","-id","-number","-date","-total","-total_with_tax","-created_at","-updated_at","-date_due"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, number, date, customer, customer.name, customer.email, customer.address, customer.city, customer.country, total, total_with_tax, items.name, items.description, payments.type, payments.date, document_relations.relation_type, document_relations.target_type, metadata, created_at, updated_at, paid_in_full, voided_at, date_due, paid_in_full, voided_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().optional().describe(`Full-text search query to filter results across multiple fields.
184
- Searches are case-insensitive and match partial strings.
185
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this invoice\n- `document_relations` - Linked documents (credit notes, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),bEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),P7=36,_7=100,E7=2,D7=2,O7="iban",b7=36,T7=2,q7=2,N7="iban",G7=-140737488355328,u7=140737488355327,J7=-140737488355328,t7=140737488355327,B7=3,R7=36,L7=-2147483648,H7=2147483647,W7=64,Q7=-140737488355328,w7=140737488355327,X7=-140737488355328,Y7=140737488355327,x7=-140737488355328,K7=140737488355327,y7=-140737488355328,V7=140737488355327,F7=0,$7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,M7=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,z7=36,k7=500,U7=-140737488355328,m7=140737488355327,Z7=50,C7=0,j7="percent",p7=5,f7=-140737488355328,l7=140737488355327,h7=-140737488355328,i7=140737488355327,d7=-140737488355328,a7=140737488355327,s7=-140737488355328,eV=140737488355327,oV=36,cV=36,rV=36,vV=36,TEe=r({data:P(r({id:e().max(P7),number:e().max(_7),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(E7).max(D7).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(O7).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(b7).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(T7).max(q7).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(N7).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(G7).max(u7),total_with_tax:v().min(J7).max(t7),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(B7),entity_id:e().max(R7),date_year:v().min(L7).max(H7),shareable_id:e().max(W7).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Q7).max(w7).nullish(),total_with_tax_converted:v().min(X7).max(Y7).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(x7).max(K7),total_due:v().min(y7).max(V7),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(F7),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex($7).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(M7).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(z7),name:e().max(k7),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
186
- Only present if user originally sent gross price.
187
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(U7).max(m7),unit:e().max(Z7).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(C7).describe("Discount value"),type:g(["percent","amount"]).default(j7).describe("Discount type: 'percent' (default) or 'amount'")})).max(p7).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(f7).max(l7),total_with_tax:v().min(h7).max(i7),total_converted:v().min(d7).max(a7).nullish(),total_with_tax_converted:v().min(s7).max(eV).nullish(),invoice_id:e().max(oV).nullish(),advance_invoice_id:e().max(cV).nullish(),delivery_note_id:e().max(rV).nullish(),item_id:e().max(vV).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),qEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),nV=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,AV=2,IV=2,SV="iban",gV=2,PV=2,_V="iban",EV=!0,DV=3,OV=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,bV=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,TV=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qV=2000,NV=-140737488355328,GV=140737488355327,uV=50,JV=0,tV="percent",BV=5,RV=36,LV=!0,HV=0,WV=100,QV=100,wV=500,NEe=r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(nV).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(AV).max(IV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(SV).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(gV).max(PV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(_V).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(EV).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().describe("Pre-calculated document total (before tax)."),total_with_tax:v().describe("Pre-calculated document total (after tax)."),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).optional().describe("Pre-calculated tax summary. If not provided, defaults to empty array."),currency_code:e().max(DV).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(OV).nullish().describe("Document due date in YYYY-MM-DD format"),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(bV).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(TV).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(qV).nullish(),price:v().optional().describe("Net price per unit (before tax). Optional for custom documents."),gross_price:v().optional().describe("Gross price per unit (includes tax). Optional for custom documents."),quantity:v().min(NV).max(GV),unit:e().max(uV).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(JV).describe("Discount value"),type:g(["percent","amount"]).default(tV).describe("Discount type: 'percent' (default) or 'amount'")})).max(BV).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().describe("Pre-calculated total for this line item (before tax)."),total_with_tax:v().describe("Pre-calculated total for this line item (after tax)."),delivery_note_id:e().max(RV).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
188
- When provided, the item's name, description, price, and taxes are used as defaults.
189
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(LV).describe(`Whether to save this item to the catalog.
190
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
191
- Default: true.`)})).min(1).describe("Line items with pre-calculated totals. At least one item is required."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents."),payments:P(r({amount:v().gt(HV).optional().describe("Payment amount. If not provided, uses the document total (total_with_tax)"),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(WV).nullish(),reference:e().max(QV).nullish(),note:e().max(wV).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")})).nullish().describe("Optional payments to record with the invoice. If amounts are not provided, the invoice total is split equally among all payments. Automatically updates invoice payment status."),furs:r({business_premise_name:e().min(1).optional().describe("FURS business premise name (e.g., 'P1', 'STORE1'). Required unless skip=true."),electronic_device_name:e().min(1).optional().describe("FURS electronic device name (e.g., 'E1', 'POS1'). Required unless skip=true."),operator_tax_number:e().optional().describe("Operator tax number. If not provided and using user authentication, defaults to user's FURS settings."),operator_label:e().optional().describe("Operator label/name. If not provided and using user authentication, defaults to user's FURS settings."),skip:A().optional().describe("Skip FURS fiscalization. Only allowed for bank transfer payments or unpaid invoices. Cash/card/check payments always require fiscalization per Slovenian law.")}).nullish(),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish(),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),XV=/^[a-z]{3,4}_[0-9a-f]{24}$/,GEe=r({id:e().regex(XV).describe("Unique resource identifier")}),uEe=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `payments` - Payment records linked to this invoice\n- `document_relations` - Linked documents (credit notes, advance invoices, etc.)\n\n**Usage:**\n`?include=payments`\n`?include=payments,document_relations`")}),JEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),YV=36,xV=100,KV=2,yV=2,VV="iban",FV=36,$V=2,MV=2,zV="iban",kV=-140737488355328,UV=140737488355327,mV=-140737488355328,ZV=140737488355327,CV=3,jV=36,pV=-2147483648,fV=2147483647,lV=64,hV=-140737488355328,iV=140737488355327,dV=-140737488355328,aV=140737488355327,sV=-140737488355328,eF=140737488355327,oF=-140737488355328,cF=140737488355327,rF=0,vF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,AF=36,IF=500,SF=-140737488355328,gF=140737488355327,PF=50,_F=0,EF="percent",DF=5,OF=-140737488355328,bF=140737488355327,TF=-140737488355328,qF=140737488355327,NF=-140737488355328,GF=140737488355327,uF=-140737488355328,JF=140737488355327,tF=36,BF=36,RF=36,LF=36,tEe=r({id:e().max(YV),number:e().max(xV),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(KV).max(yV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(VV).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(FV).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min($V).max(MV).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(zV).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(kV).max(UV),total_with_tax:v().min(mV).max(ZV),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(CV),entity_id:e().max(jV),date_year:v().min(pV).max(fV),shareable_id:e().max(lV).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(hV).max(iV).nullish(),total_with_tax_converted:v().min(dV).max(aV).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(sV).max(eF),total_due:v().min(oF).max(cF),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(rF),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(vF).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(nF).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(AF),name:e().max(IF),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
192
- Only present if user originally sent gross price.
193
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(SF).max(gF),unit:e().max(PF).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(_F).describe("Discount value"),type:g(["percent","amount"]).default(EF).describe("Discount type: 'percent' (default) or 'amount'")})).max(DF).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(OF).max(bF),total_with_tax:v().min(TF).max(qF),total_converted:v().min(NF).max(GF).nullish(),total_with_tax_converted:v().min(uF).max(JF).nullish(),invoice_id:e().max(tF).nullish(),advance_invoice_id:e().max(BF).nullish(),delivery_note_id:e().max(RF).nullish(),item_id:e().max(LF).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),HF=/^[a-z]{3,4}_[0-9a-f]{24}$/,BEe=r({id:e().regex(HF).describe("Unique resource identifier")}),REe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),WF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,QF=2,wF=2,XF="iban",YF=2,xF=2,KF="iban",yF=!0,VF=2000,FF=-140737488355328,$F=140737488355327,MF=50,zF=0,kF="percent",UF=5,mF=36,ZF=!0,CF=500,jF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,pF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,fF=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LEe=r({date:e().regex(WF).optional().describe("Document date (YYYY-MM-DD or ISO datetime format)."),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(QF).max(wF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(XF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(D().describe("Issuer information snapshot.")).optional(),customer_id:e().nullish().describe("Referenced Customer ID. Set to null to remove customer reference."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(YF).max(xF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(KF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(yF).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(VF).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(FF).max($F),unit:e().max(MF).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(zF).describe("Discount value"),type:g(["percent","amount"]).default(kF).describe("Discount type: 'percent' (default) or 'amount'")})).max(UF).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(mF).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
194
- When provided, the item's name, description, price, and taxes are used as defaults.
195
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(ZF).describe(`Whether to save this item to the catalog.
196
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
197
- Default: true.`)})).min(1).optional().describe("Line items for the document. If provided, replaces ALL existing items. Triggers recalculation of totals."),note:e().nullish().describe("Document note/memo. Set to null to clear."),payment_terms:e().nullish().describe("Payment terms text. Set to null to clear."),currency_code:e().optional().describe("Currency code (ISO 4217, 3 characters). Changing currency triggers exchange rate recalculation."),metadata:O(e(),D()).nullish().describe("Custom metadata object. Set to null to clear."),change_reason:e().max(CF).optional().describe("Reason for the change. Stored in version history for audit trail."),date_due:e().regex(jF).nullish().describe("Payment due date (YYYY-MM-DD or ISO datetime format). Set to null to clear."),date_service:e().regex(pF).nullish().describe("Service/work date or start of service period. Set to null to clear."),date_service_to:e().regex(fF).nullish().describe("End of service period (if different from date_service). Set to null to clear."),linked_documents:P(e().min(1)).optional().describe("Link this invoice to other documents. Replaces existing links. Accepts estimate IDs (est_xxx) or credit note IDs (cre_xxx)."),eslog:r({validation_enabled:A().nullish().describe("Enable e-SLOG validation for this document. true = validate, false = skip, null/undefined = use entity default")}).nullish()}),lF=36,hF=100,iF=2,dF=2,aF="iban",sF=36,e$=2,o$=2,c$="iban",r$=-140737488355328,v$=140737488355327,n$=-140737488355328,A$=140737488355327,I$=3,S$=36,g$=-2147483648,P$=2147483647,_$=64,E$=-140737488355328,D$=140737488355327,O$=-140737488355328,b$=140737488355327,T$=-140737488355328,q$=140737488355327,N$=-140737488355328,G$=140737488355327,u$=0,J$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,t$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,B$=36,R$=500,L$=-140737488355328,H$=140737488355327,W$=50,Q$=0,w$="percent",X$=5,Y$=-140737488355328,x$=140737488355327,K$=-140737488355328,y$=140737488355327,V$=-140737488355328,F$=140737488355327,$$=-140737488355328,M$=140737488355327,z$=36,k$=36,U$=36,m$=36,HEe=r({id:e().max(lF),number:e().max(hF),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(iF).max(dF).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(aF).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(sF).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(e$).max(o$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(c$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(r$).max(v$),total_with_tax:v().min(n$).max(A$),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(I$),entity_id:e().max(S$),date_year:v().min(g$).max(P$),shareable_id:e().max(_$).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(E$).max(D$).nullish(),total_with_tax_converted:v().min(O$).max(b$).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(T$).max(q$),total_due:v().min(N$).max(G$),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(u$),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(J$).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(t$).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(B$),name:e().max(R$),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
198
- Only present if user originally sent gross price.
199
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(L$).max(H$),unit:e().max(W$).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(Q$).describe("Discount value"),type:g(["percent","amount"]).default(w$).describe("Discount type: 'percent' (default) or 'amount'")})).max(X$).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Y$).max(x$),total_with_tax:v().min(K$).max(y$),total_converted:v().min(V$).max(F$).nullish(),total_with_tax_converted:v().min($$).max(M$).nullish(),invoice_id:e().max(z$).nullish(),advance_invoice_id:e().max(k$).nullish(),delivery_note_id:e().max(U$).nullish(),item_id:e().max(m$).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),Z$=/^[a-z]{3,4}_[0-9a-f]{24}$/,WEe=r({id:e().regex(Z$).describe("Unique resource identifier")}),QEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),wEe=r({versions:P(r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")})).describe("List of versions"),count:v().describe("Total number of versions")}),XEe=r({id:e().describe("Invoice ID"),version:v().min(1).describe("Version number")}),YEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xEe=r({id:e().describe("Version record ID"),document_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),document_id:e().describe("Document ID"),version:v().min(1).describe("Version number"),snapshot:O(e(),D()).describe("Full document snapshot at this version"),changed_fields:P(e()).describe("Fields that were changed in this update"),user:r({id:e(),name:e().nullable(),email:e()}).nullable().describe("User who made the change"),reason:e().nullable().describe("Reason for the change"),created_at:e().datetime({}).describe("When this version was created")}),C$="modern",j$=2,p$=5,f$="true",KEe=r({template:g(["modern","classic","minimal","fashion"]).default(C$).describe("Document template design to use"),locale:e().min(j$).max(p$).nullish(),partial:g(["true","false"]).default(f$).describe("Whether to treat the document as partial (allows incomplete data) or complete (validates all required fields)")}),yEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),l$=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,h$=2,i$=2,d$="iban",a$=2,s$=2,eM="iban",oM=!0,cM=3,rM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,vM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,nM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,AM=20,IM=/^[0-9a-zA-Z]{1,20}$/,SM=20,gM=/^\d{1,20}$/,PM=11,_M=11,EM=0,DM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,OM=2,bM=2,TM="iban",qM=2,NM=2,GM="iban",uM=!0,JM=3,tM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,BM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,RM=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,LM=2000,HM=-140737488355328,WM=140737488355327,QM=50,wM=0,XM="percent",YM=5,xM=36,KM=!0,yM=20,VM=/^[0-9a-zA-Z]{1,20}$/,FM=20,$M=/^\d{1,20}$/,MM=11,zM=11,kM=0,VEe=J([r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(l$).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(h$).max(i$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(d$).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(a$).max(s$).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(eM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(oM).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(cM).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(rM).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(vM).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(nM).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().optional(),quantity:v().optional(),price:v().optional(),gross_price:v().optional(),description:e().optional(),taxes:P(r({rate:v().optional(),tax_id:e().optional()})).optional(),metadata:O(e(),e()).optional()})).min(1),fina:r({premise_id:e().min(1).max(AM).regex(IM).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(SM).regex(gM).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(PM).max(_M).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(EM).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")}),r({is_draft:A().optional().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().regex(DM).optional().describe("Document date in YYYY-MM-DD format"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(OM).max(bM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(TM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).optional().describe("Document issuer (entity) information"),customer_id:e().nullish().describe("Referenced Customer ID. Required if customer is not provided."),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(qM).max(NM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(GM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information").and(r({save_customer:A().default(uM).describe("Whether to save (create new or update existing) the customer data.\nDefaults to `true`.\nWhen `true` with `customer_id`, updates the existing customer.\nWhen `true` without `customer_id`, checks for duplicate customers (matching `tax_number` or `name`) and reuses the existing customer if found, otherwise creates a new customer.\nWhen `false`, customer data is stored inline on the document only.")}).nullable()).optional().describe("Customer recipient of the document.\nBoth `customer` and `customer_id` are optional - documents can be created without customer information.\nIf both `customer_id` and `customer` are provided with `save_customer=true`, the existing customer will be updated.\nIf only `customer` is provided with `save_customer=true` (or by default), the system checks for duplicates by `tax_number` or `name`, reusing existing customers when found."),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),currency_code:e().max(JM).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),date_due:e().regex(tM).nullish().describe("Document due date in YYYY-MM-DD format"),date_service:e().regex(BM).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(RM).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({name:e().min(1).optional().describe("Item name. Required unless `item_id` is provided."),description:e().max(LM).nullish(),price:v().optional().describe("Net price per unit (before tax).\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),gross_price:v().optional().describe("Gross price per unit (includes tax).\nIf provided, net price is calculated.\nProvide either `price` OR `gross_price`, not both.\nOptional if `item_id` is provided."),quantity:v().min(HM).max(WM),unit:e().max(QM).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).optional().describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(wM).describe("Discount value"),type:g(["percent","amount"]).default(XM).describe("Discount type: 'percent' (default) or 'amount'")})).max(YM).optional().describe("Line discounts (max 5). Applied sequentially to line subtotal."),delivery_note_id:e().max(xM).nullish(),item_id:e().optional().describe(`ID of a catalog item to prefill from.
200
- When provided, the item's name, description, price, and taxes are used as defaults.
201
- Any field you provide will override the catalog item's value.`),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]).optional(),save_item:A().default(KM).describe(`Whether to save this item to the catalog.
202
- When true without item_id, matches by exact name and reuses existing, or creates a new catalog item.
203
- Default: true.`)})).min(1).describe("Line items for the invoice. At least one item is required."),fina:r({premise_id:e().min(1).max(yM).regex(VM).optional().describe("CIS business premise ID (OznPosPr, alphanumeric, 1-20 chars). Required when CIS is enabled."),device_id:e().min(1).max(FM).regex($M).optional().describe("CIS electronic device ID (OznNapUr, digits only, 1-20 chars). Required when CIS is enabled."),operator_oib:e().min(MM).max(zM).optional().describe("Operator OIB (11 digits). If not provided, uses entity settings."),is_end_consumer:A().optional().describe("Mark customer as end consumer (B2C) even if they have an OIB. In Croatia, OIB is assigned to all individuals; this flag disambiguates B2C from B2B."),payment_type:g(["cash","card","online","bank_transfer","paypal","crypto","coupon","other"]).optional().describe("Expected payment method. Mandatory for CIS fiscalization (NacinPlac field). If omitted, derived from payment data."),subsequent_submit:A().optional().describe("Late/subsequent submission flag (NakDost). Set to true if submitting after the normal deadline.")}).nullish(),expected_total_with_tax:v().gt(kM).optional().describe("Expected total with tax. When provided, the system calculates a rounding_correction to reconcile differences between the calculated total and this expected value. Maximum allowed correction is ±1.00. Useful when importing invoices from external systems with different rounding rules."),force_linked_documents:A().optional().describe("Force linking documents even if an advance invoice is already applied to another invoice. Defaults to false.")})]),UM=/^[a-z]{3,4}_[0-9a-f]{24}$/,FEe=r({id:e().regex(UM).describe("Unique resource identifier")}),$Ee=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),MEe=r({reason:e().min(1).optional().describe("Technical reason for voiding (e.g., 'Duplicate invoice', 'Technical error')")}),mM=36,ZM=100,CM=2,jM=2,pM="iban",fM=36,lM=2,hM=2,iM="iban",dM=-140737488355328,aM=140737488355327,sM=-140737488355328,ez=140737488355327,oz=3,cz=36,rz=-2147483648,vz=2147483647,nz=64,Az=-140737488355328,Iz=140737488355327,Sz=-140737488355328,gz=140737488355327,Pz=-140737488355328,_z=140737488355327,Ez=-140737488355328,Dz=140737488355327,Oz=0,bz=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,Tz=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$/,qz=36,Nz=500,Gz=-140737488355328,uz=140737488355327,Jz=50,tz=0,Bz="percent",Rz=5,Lz=-140737488355328,Hz=140737488355327,Wz=-140737488355328,Qz=140737488355327,wz=-140737488355328,Xz=140737488355327,Yz=-140737488355328,xz=140737488355327,Kz=36,yz=36,Vz=36,Fz=36,zEe=r({id:e().max(mM),number:e().max(ZM),is_draft:A().describe("Whether this is a draft document. Draft documents have no sequential number assigned, skip fiscalization, and can be deleted. Use POST /{documents}/{id}/finalize to assign a number and finalize."),date:e().datetime({}).describe("Date the invoice was created (ISO 8601 datetime at midnight UTC)"),issuer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(CM).max(jM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(pM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).describe("Document issuer (entity) information"),customer_id:e().max(fM).nullish(),customer:r({name:e().nullish(),email:e().email().nullish(),address:e().nullish(),address_2:e().nullish(),post_code:e().nullish(),city:e().nullish(),state:e().nullish(),country:e().nullish(),country_code:e().min(lM).max(hM).nullish(),tax_number:e().nullish(),tax_number_2:e().nullish(),company_number:e().nullish(),bank_account:r({type:g(["iban","us_domestic","uk_domestic","other"]).default(iM).describe("Account type determines which fields are used"),name:e().optional().describe("Display name for this account. Falls back to account number if not set"),bank_name:e().optional().describe("Bank name"),iban:e().optional().describe("IBAN (for type=iban)"),account_number:e().optional().describe("Account number (for us_domestic, uk_domestic, other)"),bic:e().optional().describe("BIC/SWIFT code for international transfers"),routing_number:e().optional().describe("US ABA routing number (for type=us_domestic)"),sort_code:e().optional().describe("UK sort code (for type=uk_domestic)")}).nullish()}).nullish().describe("Customer information"),note:e().nullish().describe("Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note."),payment_terms:e().nullish().describe("Payment terms for the document. If not provided, defaults to entity's document-type-specific payment terms setting. Pass empty string to explicitly set no terms."),tax_clause:e().nullish().describe("Tax clause for the document. Auto-populated based on transaction type if tax_clause_defaults are configured in entity settings. Pass empty string to explicitly set no clause."),total:v().min(dM).max(aM),total_with_tax:v().min(sM).max(ez),taxes:P(r({rate:v(),base:v(),amount:v(),reverse_charge:A().optional()})).describe("Applied taxes summary"),currency_code:e().max(oz),entity_id:e().max(cz),date_year:v().min(rz).max(vz),shareable_id:e().max(nz).nullish(),voided_at:e().date().nullish(),transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullish().describe("Transaction type for VAT purposes (domestic, intra_eu_b2b, intra_eu_b2c, export). Always determined based on issuer/customer countries."),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),exchange_rate:r({rate:v().describe("Exchange rate used for conversion"),source:e().describe("Source of the exchange rate (e.g., 'Frankfurter')"),date:e().datetime({}).describe("Date of the exchange rate"),quote_currency:e().describe("Quote currency (the base currency converted to)")}).nullish().describe("Currency exchange rate information if conversion was applied"),total_converted:v().min(Az).max(Iz).nullish(),total_with_tax_converted:v().min(Sz).max(gz).nullish(),rounding_correction:v().nullish().describe("Rounding correction applied to reconcile differences between calculated total_with_tax and expected_total_with_tax. Only present when expected_total_with_tax was provided during creation."),eslog:r({validation_enabled:A().nullish().describe("Override entity default: true = validate, false = skip, null = use entity setting"),validation_status:g(["valid","invalid","not_validated"]).nullish().describe("Validation status: 'valid', 'invalid', or 'not_validated'"),validation_errors:P(e()).nullish().describe("Array of validation error messages (if status is 'invalid')"),validated_at:e().nullish().describe("ISO timestamp when validation was last performed")}).nullish().describe("e-SLOG 2.0 validation data for Slovenian electronic invoices. Only applicable when entity.country_code = 'SI' and eslog validation is enabled."),vies:r({warning:e().nullable().describe("Warning message if VIES validation was unavailable or the VAT number was invalid. Document creation proceeds but this indicates the transaction type may need review."),skipped:A().nullable().describe("True when VIES validation was skipped due to entity settings (vies_validate_vat: false) but would normally apply. Used for audit trail.")}).nullish().describe("VIES validation info including any warnings and skipped indicator for audit trail"),deleted_at:e().datetime({}).nullish().describe("Timestamp when the document was soft-deleted. Null if not deleted."),created_at:e().datetime({}),updated_at:e().datetime({}),date_due:e().datetime({}).nullish().describe("Date the invoice is due (ISO 8601 datetime at midnight UTC)"),total_paid:v().min(Pz).max(_z),total_due:v().min(Ez).max(Dz),paid_in_full:A(),furs:r({status:g(["pending","success","failed","skipped"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),cancellation_reason:e().optional(),data:r({zoi:e(),eor:e().optional(),qr_code:e().optional(),business_premise_name:e(),electronic_device_name:e(),invoice_number:e(),iteration:v().default(Oz),payload:O(e(),D()).describe("FURS API request payload"),issuer_tax_number:e().optional(),operator_tax_number:e().optional(),operator_label:e().optional(),foreign_operator:A().optional(),cancelled:A().optional(),cancelled_eor:e().optional(),cancellation_payload:O(e(),D()).optional().describe("FURS API cancellation payload")}).optional()}).nullish().describe("FURS (Slovenia) fiscalization data. Read-only field, not editable via API. Includes status, premise name, device name, and FURS identifiers (ZOI, EOR, QR code)."),fina:r({status:g(["pending","success","failed"]),fiscalized_at:e().datetime({}).optional(),error:e().optional(),data:r({zki:e(),jir:e().optional(),qr_code_url:e().optional(),premise_id:e(),device_id:e(),invoice_number:e(),operator_oib:e().optional(),payment_type:e().optional(),numbering_sequence:e().optional(),payload:O(e(),D()).describe("CIS SOAP request payload"),subsequent_submit:A().optional(),issuer_oib:e().optional(),operator_label:e().optional()}).optional()}).nullish().describe("FINA (Croatia) CIS fiscalization data. Read-only field. Includes status, premise/device IDs, and CIS identifiers (ZKI, JIR, QR code URL)."),date_service:e().regex(bz).nullish().describe("Service date in YYYY-MM-DD format. For invoices only."),date_service_to:e().regex(Tz).nullish().describe("Service period end date in YYYY-MM-DD format. For invoices only. Use with date_service for date ranges."),items:P(r({id:e().max(qz),name:e().max(Nz),description:e().nullable(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe(`Per-unit gross price (includes tax).
204
- Only present if user originally sent gross price.
205
- Use gross pricing to keep invoice totals stable when VIES reverse charge is applied.`),quantity:v().min(Gz).max(uz),unit:e().max(Jz).nullish(),taxes:P(r({rate:v().optional(),tax_id:e().optional(),classification:e().optional(),reverse_charge:A().optional(),amount:v().optional()}).describe("Document Item Tax")).describe("Applied taxes (provide rate to create new tax, or tax_id to use existing tax)"),discounts:P(r({value:v().min(tz).describe("Discount value"),type:g(["percent","amount"]).default(Bz).describe("Discount type: 'percent' (default) or 'amount'")})).max(Rz).describe("Line discounts (max 5). Applied sequentially to line subtotal."),total:v().min(Lz).max(Hz),total_with_tax:v().min(Wz).max(Qz),total_converted:v().min(wz).max(Xz).nullish(),total_with_tax_converted:v().min(Yz).max(xz).nullish(),invoice_id:e().max(Kz).nullish(),advance_invoice_id:e().max(yz).nullish(),delivery_note_id:e().max(Vz).nullish(),item_id:e().max(Fz).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})})),document_relations:P(r({id:e(),source_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),source_id:e(),target_type:g(["invoice","estimate","credit_note","advance_invoice"]).describe("Type of document"),target_id:e(),relation_type:e(),entity_id:e(),created_at:e().datetime({})})).optional()}).describe("Invoice document with fiscalization support"),$z=/^[a-z]{3,4}_[0-9a-f]{24}$/,kEe=r({id:e().regex($z).describe("Unique resource identifier")}),Mz="modern",zz=2,kz=5,UEe=r({template:g(["modern","classic","minimal","fashion"]).default(Mz).describe("Document template design to use"),locale:e().min(zz).max(kz).nullish()}),mEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Uz=/^[a-z]{3,4}_[0-9a-f]{24}$/,ZEe=r({id:e().regex(Uz).describe("Unique resource identifier")}),mz="modern",Zz=2,Cz=5,CEe=r({template:g(["modern","classic","minimal","fashion"]).default(mz).describe("Document template design to use"),locale:e().min(Zz).max(Cz).nullish()}),jEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var Mc={};Q(Mc,{restoreItemResponseTwoOneTotalTaxMin:()=>Hk,restoreItemResponseTwoOneTotalTaxMax:()=>Wk,restoreItemResponseTwoOneTaxIdsItemMax:()=>Lk,restoreItemResponseTwoOneNameMax:()=>Bk,restoreItemResponseTwoOneIdMax:()=>tk,restoreItemResponseTwoOneEntityIdMax:()=>Qk,restoreItemResponseTwoOneDescriptionMax:()=>Rk,restoreItemResponseOneTotalTaxMin:()=>Gk,restoreItemResponseOneTotalTaxMax:()=>uk,restoreItemResponseOneTaxIdsItemMax:()=>Nk,restoreItemResponseOneNameMax:()=>Tk,restoreItemResponseOneIdMax:()=>bk,restoreItemResponseOneEntityIdMax:()=>Jk,restoreItemResponseOneDescriptionMax:()=>qk,restoreItemPathIdRegExp:()=>Ok,permanentDeleteItemPathIdRegExp:()=>wk,getItemsResponseDataItemTwoOneTotalTaxMin:()=>Pk,getItemsResponseDataItemTwoOneTotalTaxMax:()=>_k,getItemsResponseDataItemTwoOneTaxIdsItemMax:()=>gk,getItemsResponseDataItemTwoOneNameMax:()=>Ik,getItemsResponseDataItemTwoOneIdMax:()=>Ak,getItemsResponseDataItemTwoOneEntityIdMax:()=>Ek,getItemsResponseDataItemTwoOneDescriptionMax:()=>Sk,getItemsResponseDataItemOneTotalTaxMin:()=>rk,getItemsResponseDataItemOneTotalTaxMax:()=>vk,getItemsResponseDataItemOneTaxIdsItemMax:()=>ck,getItemsResponseDataItemOneNameMax:()=>ek,getItemsResponseDataItemOneIdMax:()=>sz,getItemsResponseDataItemOneEntityIdMax:()=>nk,getItemsResponseDataItemOneDescriptionMax:()=>ok,getItemsQueryLimitMax:()=>az,getItemsQueryLimitDefault:()=>dz,deleteItemPathIdRegExp:()=>Dk,createItemBodyTaxesMax:()=>iz,createItemBodyTaxesItemRateMin:()=>fz,createItemBodyTaxesItemRateMax:()=>lz,createItemBodyTaxesItemClassificationMax:()=>hz,createItemBodyTaxIdsItemMax:()=>pz,createItemBodyDescriptionMax:()=>jz,RestoreItemResponse:()=>oDe,RestoreItemParams:()=>sEe,RestoreItemHeader:()=>eDe,PermanentDeleteItemParams:()=>cDe,PermanentDeleteItemHeader:()=>rDe,GetItemsResponse:()=>iEe,GetItemsQueryParams:()=>lEe,GetItemsHeader:()=>hEe,DeleteItemParams:()=>dEe,DeleteItemHeader:()=>aEe,CreateItemHeader:()=>pEe,CreateItemBody:()=>fEe});var pEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),jz=2000,pz=36,fz=0,lz=100,hz=50,iz=2,fEe=r({name:e().min(1),description:e().max(jz).nullish(),price:v().optional().describe("Net price per unit (before tax). Provide either price OR gross_price, not both."),gross_price:v().optional().describe("Gross price per unit (includes tax). If provided, net price is calculated. Provide either price OR gross_price, not both."),tax_ids:P(e().max(pz)).optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),taxes:P(r({rate:v().min(fz).max(lz).optional().describe("Tax rate percentage. Either rate or classification must be provided."),classification:e().max(hz).optional().describe("Tax classification to lookup existing tax. Either rate or classification must be provided.")})).max(iz).nullish().describe("Taxes for the item. Provide rate to auto-create, or classification to lookup existing tax.")}),dz=10,az=100,lEe=r({limit:v().min(1).max(az).default(dz).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]),P(g(["id","name","price","created_at","updated_at","-id","-name","-price","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, description, price, unit, 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().optional().describe(`Full-text search query to filter results across multiple fields.
206
- Searches are case-insensitive and match partial strings.
207
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),hEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),sz=36,ek=500,ok=2000,ck=36,rk=-140737488355328,vk=140737488355327,nk=36,Ak=36,Ik=500,Sk=2000,gk=36,Pk=-140737488355328,_k=140737488355327,Ek=36,iEe=r({data:P(r({id:e().max(sz),name:e().max(ek),description:e().max(ok).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(ck)),total_tax:v().min(rk).max(vk),entity_id:e().max(nk),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({id:e().max(Ak),name:e().max(Ik),description:e().max(Sk).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(gk)),total_tax:v().min(Pk).max(_k),entity_id:e().max(Ek),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({})).describe("Item or Service provided to customers by the Entity"))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Dk=/^[a-z]{3,4}_[0-9a-f]{24}$/,dEe=r({id:e().regex(Dk).describe("Unique resource identifier")}),aEe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ok=/^[a-z]{3,4}_[0-9a-f]{24}$/,sEe=r({id:e().regex(Ok).describe("Unique resource identifier")}),eDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),bk=36,Tk=500,qk=2000,Nk=36,Gk=-140737488355328,uk=140737488355327,Jk=36,tk=36,Bk=500,Rk=2000,Lk=36,Hk=-140737488355328,Wk=140737488355327,Qk=36,oDe=r({id:e().max(bk),name:e().max(Tk),description:e().max(qk).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(Nk)),total_tax:v().min(Gk).max(uk),entity_id:e().max(Jk),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({id:e().max(tk),name:e().max(Bk),description:e().max(Rk).nullish(),price:v().describe("Per-unit net price (before tax). Always stores net price."),gross_price:v().nullish().describe("Per-unit gross price (includes tax). Only present if user originally sent gross price."),tax_ids:P(e().max(Lk)),total_tax:v().min(Hk).max(Wk),entity_id:e().max(Qk),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Product or service item").and(r({})).describe("Item or Service provided to customers by the Entity")),wk=/^[a-z]{3,4}_[0-9a-f]{24}$/,cDe=r({id:e().regex(wk).describe("Unique resource identifier")}),rDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var zc={};Q(zc,{updateOrderIntegrationResponseOneShopDomainMax:()=>_U,updateOrderIntegrationResponseOneScopesMax:()=>EU,updateOrderIntegrationResponseOneNameMax:()=>PU,updateOrderIntegrationResponseOneLocaleMax:()=>TU,updateOrderIntegrationResponseOneIdMax:()=>SU,updateOrderIntegrationResponseOneEntityIdMax:()=>gU,updateOrderIntegrationResponseOneElectronicDeviceIdMax:()=>NU,updateOrderIntegrationResponseOneDefaultPaymentTypeMax:()=>DU,updateOrderIntegrationResponseOneBusinessPremiseIdMax:()=>qU,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMin:()=>OU,updateOrderIntegrationResponseOneAutoProcessDelaySecondsMax:()=>bU,updateOrderIntegrationPathIdRegExp:()=>rU,updateOrderIntegrationBodyLocaleMax:()=>nU,updateOrderIntegrationBodyElectronicDeviceIdMax:()=>IU,updateOrderIntegrationBodyBusinessPremiseIdMax:()=>AU,updateOrderIntegrationBodyAutoProcessDelaySecondsMin:()=>vU,getOrderIntegrationsResponseDataItemOneShopDomainMax:()=>$k,getOrderIntegrationsResponseDataItemOneScopesMax:()=>Mk,getOrderIntegrationsResponseDataItemOneNameMax:()=>Fk,getOrderIntegrationsResponseDataItemOneLocaleMax:()=>mk,getOrderIntegrationsResponseDataItemOneIdMax:()=>yk,getOrderIntegrationsResponseDataItemOneEntityIdMax:()=>Vk,getOrderIntegrationsResponseDataItemOneElectronicDeviceIdMax:()=>Ck,getOrderIntegrationsResponseDataItemOneDefaultPaymentTypeMax:()=>zk,getOrderIntegrationsResponseDataItemOneBusinessPremiseIdMax:()=>Zk,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMin:()=>kk,getOrderIntegrationsResponseDataItemOneAutoProcessDelaySecondsMax:()=>Uk,getOrderIntegrationsQueryLimitMax:()=>Kk,getOrderIntegrationsQueryLimitDefault:()=>xk,getOrderIntegrationByIdResponseOneShopDomainMax:()=>hk,getOrderIntegrationByIdResponseOneScopesMax:()=>ik,getOrderIntegrationByIdResponseOneNameMax:()=>lk,getOrderIntegrationByIdResponseOneLocaleMax:()=>eU,getOrderIntegrationByIdResponseOneIdMax:()=>pk,getOrderIntegrationByIdResponseOneEntityIdMax:()=>fk,getOrderIntegrationByIdResponseOneElectronicDeviceIdMax:()=>cU,getOrderIntegrationByIdResponseOneDefaultPaymentTypeMax:()=>dk,getOrderIntegrationByIdResponseOneBusinessPremiseIdMax:()=>oU,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMin:()=>ak,getOrderIntegrationByIdResponseOneAutoProcessDelaySecondsMax:()=>sk,getOrderIntegrationByIdPathIdRegExp:()=>jk,deleteOrderIntegrationPathIdRegExp:()=>GU,createOrderIntegrationBodySourceDefault:()=>Yk,authorizeShopifyBodyAutoProcessDelaySecondsMin:()=>Xk,UpdateOrderIntegrationResponse:()=>NDe,UpdateOrderIntegrationParams:()=>bDe,UpdateOrderIntegrationHeader:()=>TDe,UpdateOrderIntegrationBody:()=>qDe,GetOrderIntegrationsResponse:()=>_De,GetOrderIntegrationsQueryParams:()=>gDe,GetOrderIntegrationsHeader:()=>PDe,GetOrderIntegrationByIdResponse:()=>ODe,GetOrderIntegrationByIdParams:()=>EDe,GetOrderIntegrationByIdHeader:()=>DDe,DeleteOrderIntegrationParams:()=>GDe,DeleteOrderIntegrationHeader:()=>uDe,CreateOrderIntegrationHeader:()=>IDe,CreateOrderIntegrationBody:()=>SDe,AuthorizeShopifyResponse:()=>ADe,AuthorizeShopifyHeader:()=>vDe,AuthorizeShopifyBody:()=>nDe});var vDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Xk=0,nDe=r({shop_domain:e().min(1).describe("Shopify shop domain, e.g. myshop.myshopify.com"),name:e().optional().describe("Integration name"),auto_process:A().optional().describe("Auto-create invoices on order receipt"),send_invoice_email:A().optional().describe("Auto-send invoice email"),issue_invoice_for_bank:A().optional().describe("Issue invoice (vs estimate) for unpaid bank transfers"),issue_invoice_on_complete:A().optional().describe("Delay document until order is fulfilled/complete"),auto_process_delay_seconds:v().min(Xk).optional().describe("Seconds to wait before processing (0 = immediate)")}),ADe=r({redirect_url:e().url()}),IDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Yk="manual",SDe=r({name:e().min(1),source:g(["shopify","woocommerce","manual"]).default(Yk),auto_process:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),xk=10,Kk=100,gDe=r({limit:v().min(1).max(Kk).default(xk).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]),P(g(["id","name","source","created_at","updated_at","-id","-name","-source","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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().optional().describe(`Full-text search query to filter results across multiple fields.
208
- Searches are case-insensitive and match partial strings.
209
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),PDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yk=36,Vk=36,Fk=255,$k=255,Mk=1000,zk=20,kk=-2147483648,Uk=2147483647,mk=10,Zk=36,Ck=36,_De=r({data:P(r({id:e().max(yk),entity_id:e().max(Vk),name:e().max(Fk),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max($k).nullish(),scopes:e().max(Mk).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(zk).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(kk).max(Uk),auto_reissue_on_update:A(),locale:e().max(mk).nullish(),business_premise_id:e().max(Zk).nullish(),electronic_device_id:e().max(Ck).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),jk=/^[a-z]{3,4}_[0-9a-f]{24}$/,EDe=r({id:e().regex(jk).describe("Unique resource identifier")}),DDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),pk=36,fk=36,lk=255,hk=255,ik=1000,dk=20,ak=-2147483648,sk=2147483647,eU=10,oU=36,cU=36,ODe=r({id:e().max(pk),entity_id:e().max(fk),name:e().max(lk),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max(hk).nullish(),scopes:e().max(ik).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(dk).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(ak).max(sk),auto_reissue_on_update:A(),locale:e().max(eU).nullish(),business_premise_id:e().max(oU).nullish(),electronic_device_id:e().max(cU).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration"),rU=/^[a-z]{3,4}_[0-9a-f]{24}$/,bDe=r({id:e().regex(rU).describe("Unique resource identifier")}),TDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),vU=0,nU=10,AU=36,IU=36,qDe=r({name:e().min(1).optional(),auto_process:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),is_active:A().optional(),auto_process_on:g(["created","paid","fulfilled"]).optional(),default_payment_type:e().optional(),send_invoice_email:A().optional(),send_estimate_email:A().optional(),issue_invoice_for_bank:A().optional(),issue_invoice_on_complete:A().optional(),auto_process_delay_seconds:v().min(vU).optional(),auto_reissue_on_update:A().optional(),locale:e().max(nU).optional(),business_premise_id:e().max(AU).optional(),electronic_device_id:e().max(IU).optional()}),SU=36,gU=36,PU=255,_U=255,EU=1000,DU=20,OU=-2147483648,bU=2147483647,TU=10,qU=36,NU=36,NDe=r({id:e().max(SU),entity_id:e().max(gU),name:e().max(PU),source:g(["shopify","woocommerce","manual"]).describe("Integration source platform"),is_active:A(),shop_domain:e().max(_U).nullish(),scopes:e().max(EU).nullish(),auto_process:A(),auto_process_on:g(["created","paid","fulfilled"]).describe("When to automatically process orders into invoices"),default_payment_type:e().max(DU).nullish(),send_invoice_email:A(),send_estimate_email:A(),issue_invoice_for_bank:A(),issue_invoice_on_complete:A(),auto_process_delay_seconds:v().min(OU).max(bU),auto_reissue_on_update:A(),locale:e().max(TU).nullish(),business_premise_id:e().max(qU).nullish(),electronic_device_id:e().max(NU).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order integration connection information").and(r({})).describe("Order Integration"),GU=/^[a-z]{3,4}_[0-9a-f]{24}$/,GDe=r({id:e().regex(GU).describe("Unique resource identifier")}),uDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var kc={};Q(kc,{updateOrderResponseOneTotalWithTaxMin:()=>rZ,updateOrderResponseOneTotalWithTaxMax:()=>vZ,updateOrderResponseOneTotalShippingMin:()=>IZ,updateOrderResponseOneTotalShippingMax:()=>SZ,updateOrderResponseOneTotalMin:()=>oZ,updateOrderResponseOneTotalMax:()=>cZ,updateOrderResponseOneTotalDiscountMin:()=>nZ,updateOrderResponseOneTotalDiscountMax:()=>AZ,updateOrderResponseOneSourceOrderNumberMax:()=>im,updateOrderResponseOneSourceIdMax:()=>hm,updateOrderResponseOneSourceEventIdMax:()=>DZ,updateOrderResponseOnePaymentMethodMax:()=>gZ,updateOrderResponseOnePaymentGatewayMax:()=>PZ,updateOrderResponseOneOrderIntegrationIdMax:()=>lm,updateOrderResponseOneInvoiceIdMax:()=>_Z,updateOrderResponseOneIdMax:()=>pm,updateOrderResponseOneEstimateIdMax:()=>EZ,updateOrderResponseOneErrorMax:()=>OZ,updateOrderResponseOneEntityIdMax:()=>fm,updateOrderResponseOneCustomerNameMax:()=>dm,updateOrderResponseOneCustomerIdMax:()=>sm,updateOrderResponseOneCustomerEmailMax:()=>am,updateOrderResponseOneCurrencyCodeMax:()=>eZ,updateOrderPathIdRegExp:()=>Ym,updateOrderBodyTotalWithTaxMin:()=>Mm,updateOrderBodyTotalWithTaxMax:()=>zm,updateOrderBodyTotalShippingMin:()=>mm,updateOrderBodyTotalShippingMax:()=>Zm,updateOrderBodyTotalMin:()=>Fm,updateOrderBodyTotalMax:()=>$m,updateOrderBodyTotalDiscountMin:()=>km,updateOrderBodyTotalDiscountMax:()=>Um,updateOrderBodySourceOrderNumberMax:()=>xm,updateOrderBodyPaymentMethodMax:()=>Cm,updateOrderBodyPaymentGatewayMax:()=>jm,updateOrderBodyCustomerNameMax:()=>Km,updateOrderBodyCustomerEmailMax:()=>ym,updateOrderBodyCurrencyCodeMax:()=>Vm,reissueOrderResponseOneTotalWithTaxMin:()=>tC,reissueOrderResponseOneTotalWithTaxMax:()=>BC,reissueOrderResponseOneTotalShippingMin:()=>HC,reissueOrderResponseOneTotalShippingMax:()=>WC,reissueOrderResponseOneTotalMin:()=>uC,reissueOrderResponseOneTotalMax:()=>JC,reissueOrderResponseOneTotalDiscountMin:()=>RC,reissueOrderResponseOneTotalDiscountMax:()=>LC,reissueOrderResponseOneSourceOrderNumberMax:()=>bC,reissueOrderResponseOneSourceIdMax:()=>OC,reissueOrderResponseOneSourceEventIdMax:()=>xC,reissueOrderResponseOnePaymentMethodMax:()=>QC,reissueOrderResponseOnePaymentGatewayMax:()=>wC,reissueOrderResponseOneOrderIntegrationIdMax:()=>DC,reissueOrderResponseOneInvoiceIdMax:()=>XC,reissueOrderResponseOneIdMax:()=>_C,reissueOrderResponseOneEstimateIdMax:()=>YC,reissueOrderResponseOneErrorMax:()=>KC,reissueOrderResponseOneEntityIdMax:()=>EC,reissueOrderResponseOneCustomerNameMax:()=>TC,reissueOrderResponseOneCustomerIdMax:()=>NC,reissueOrderResponseOneCustomerEmailMax:()=>qC,reissueOrderResponseOneCurrencyCodeMax:()=>GC,reissueOrderPathIdRegExp:()=>PC,processOrderResponseOneTotalWithTaxMin:()=>QZ,processOrderResponseOneTotalWithTaxMax:()=>wZ,processOrderResponseOneTotalShippingMin:()=>xZ,processOrderResponseOneTotalShippingMax:()=>KZ,processOrderResponseOneTotalMin:()=>HZ,processOrderResponseOneTotalMax:()=>WZ,processOrderResponseOneTotalDiscountMin:()=>XZ,processOrderResponseOneTotalDiscountMax:()=>YZ,processOrderResponseOneSourceOrderNumberMax:()=>JZ,processOrderResponseOneSourceIdMax:()=>uZ,processOrderResponseOneSourceEventIdMax:()=>MZ,processOrderResponseOnePaymentMethodMax:()=>yZ,processOrderResponseOnePaymentGatewayMax:()=>VZ,processOrderResponseOneOrderIntegrationIdMax:()=>GZ,processOrderResponseOneInvoiceIdMax:()=>FZ,processOrderResponseOneIdMax:()=>qZ,processOrderResponseOneEstimateIdMax:()=>$Z,processOrderResponseOneErrorMax:()=>zZ,processOrderResponseOneEntityIdMax:()=>NZ,processOrderResponseOneCustomerNameMax:()=>tZ,processOrderResponseOneCustomerIdMax:()=>RZ,processOrderResponseOneCustomerEmailMax:()=>BZ,processOrderResponseOneCurrencyCodeMax:()=>LZ,processOrderPathIdRegExp:()=>TZ,getOrdersResponseDataItemOneTotalWithTaxMin:()=>hU,getOrdersResponseDataItemOneTotalWithTaxMax:()=>iU,getOrdersResponseDataItemOneTotalShippingMin:()=>sU,getOrdersResponseDataItemOneTotalShippingMax:()=>em,getOrdersResponseDataItemOneTotalMin:()=>fU,getOrdersResponseDataItemOneTotalMax:()=>lU,getOrdersResponseDataItemOneTotalDiscountMin:()=>dU,getOrdersResponseDataItemOneTotalDiscountMax:()=>aU,getOrdersResponseDataItemOneSourceOrderNumberMax:()=>mU,getOrdersResponseDataItemOneSourceIdMax:()=>UU,getOrdersResponseDataItemOneSourceEventIdMax:()=>nm,getOrdersResponseDataItemOnePaymentMethodMax:()=>om,getOrdersResponseDataItemOnePaymentGatewayMax:()=>cm,getOrdersResponseDataItemOneOrderIntegrationIdMax:()=>kU,getOrdersResponseDataItemOneInvoiceIdMax:()=>rm,getOrdersResponseDataItemOneIdMax:()=>MU,getOrdersResponseDataItemOneEstimateIdMax:()=>vm,getOrdersResponseDataItemOneErrorMax:()=>Am,getOrdersResponseDataItemOneEntityIdMax:()=>zU,getOrdersResponseDataItemOneCustomerNameMax:()=>ZU,getOrdersResponseDataItemOneCustomerIdMax:()=>jU,getOrdersResponseDataItemOneCustomerEmailMax:()=>CU,getOrdersResponseDataItemOneCurrencyCodeMax:()=>pU,getOrdersQueryLimitMax:()=>$U,getOrdersQueryLimitDefault:()=>FU,getOrderByIdResponseOneTotalWithTaxMin:()=>Gm,getOrderByIdResponseOneTotalWithTaxMax:()=>um,getOrderByIdResponseOneTotalShippingMin:()=>Bm,getOrderByIdResponseOneTotalShippingMax:()=>Rm,getOrderByIdResponseOneTotalMin:()=>qm,getOrderByIdResponseOneTotalMax:()=>Nm,getOrderByIdResponseOneTotalDiscountMin:()=>Jm,getOrderByIdResponseOneTotalDiscountMax:()=>tm,getOrderByIdResponseOneSourceOrderNumberMax:()=>Em,getOrderByIdResponseOneSourceIdMax:()=>_m,getOrderByIdResponseOneSourceEventIdMax:()=>wm,getOrderByIdResponseOnePaymentMethodMax:()=>Lm,getOrderByIdResponseOnePaymentGatewayMax:()=>Hm,getOrderByIdResponseOneOrderIntegrationIdMax:()=>Pm,getOrderByIdResponseOneInvoiceIdMax:()=>Wm,getOrderByIdResponseOneIdMax:()=>Sm,getOrderByIdResponseOneEstimateIdMax:()=>Qm,getOrderByIdResponseOneErrorMax:()=>Xm,getOrderByIdResponseOneEntityIdMax:()=>gm,getOrderByIdResponseOneCustomerNameMax:()=>Dm,getOrderByIdResponseOneCustomerIdMax:()=>bm,getOrderByIdResponseOneCustomerEmailMax:()=>Om,getOrderByIdResponseOneCurrencyCodeMax:()=>Tm,getOrderByIdPathIdRegExp:()=>Im,deleteOrderPathIdRegExp:()=>bZ,createOrderBodyTotalWithTaxMin:()=>QU,createOrderBodyTotalWithTaxMax:()=>wU,createOrderBodyTotalShippingMin:()=>xU,createOrderBodyTotalShippingMax:()=>KU,createOrderBodyTotalMin:()=>HU,createOrderBodyTotalMax:()=>WU,createOrderBodyTotalDiscountMin:()=>XU,createOrderBodyTotalDiscountMax:()=>YU,createOrderBodySourceOrderNumberMax:()=>tU,createOrderBodySourceIdMax:()=>JU,createOrderBodyPaymentMethodMax:()=>yU,createOrderBodyPaymentGatewayMax:()=>VU,createOrderBodyOrderIntegrationIdMax:()=>uU,createOrderBodyCustomerNameMax:()=>BU,createOrderBodyCustomerEmailMax:()=>RU,createOrderBodyCurrencyCodeMax:()=>LU,cancelOrderResponseOneTotalWithTaxMin:()=>aZ,cancelOrderResponseOneTotalWithTaxMax:()=>sZ,cancelOrderResponseOneTotalShippingMin:()=>cC,cancelOrderResponseOneTotalShippingMax:()=>rC,cancelOrderResponseOneTotalMin:()=>iZ,cancelOrderResponseOneTotalMax:()=>dZ,cancelOrderResponseOneTotalDiscountMin:()=>eC,cancelOrderResponseOneTotalDiscountMax:()=>oC,cancelOrderResponseOneSourceOrderNumberMax:()=>jZ,cancelOrderResponseOneSourceIdMax:()=>CZ,cancelOrderResponseOneSourceEventIdMax:()=>SC,cancelOrderResponseOnePaymentMethodMax:()=>vC,cancelOrderResponseOnePaymentGatewayMax:()=>nC,cancelOrderResponseOneOrderIntegrationIdMax:()=>ZZ,cancelOrderResponseOneInvoiceIdMax:()=>AC,cancelOrderResponseOneIdMax:()=>UZ,cancelOrderResponseOneEstimateIdMax:()=>IC,cancelOrderResponseOneErrorMax:()=>gC,cancelOrderResponseOneEntityIdMax:()=>mZ,cancelOrderResponseOneCustomerNameMax:()=>pZ,cancelOrderResponseOneCustomerIdMax:()=>lZ,cancelOrderResponseOneCustomerEmailMax:()=>fZ,cancelOrderResponseOneCurrencyCodeMax:()=>hZ,cancelOrderPathIdRegExp:()=>kZ,UpdateOrderResponse:()=>xDe,UpdateOrderParams:()=>wDe,UpdateOrderHeader:()=>XDe,UpdateOrderBody:()=>YDe,ReissueOrderResponse:()=>ZDe,ReissueOrderParams:()=>UDe,ReissueOrderHeader:()=>mDe,ProcessOrderResponse:()=>$De,ProcessOrderParams:()=>VDe,ProcessOrderHeader:()=>FDe,GetOrdersResponse:()=>LDe,GetOrdersQueryParams:()=>BDe,GetOrdersHeader:()=>RDe,GetOrderByIdResponse:()=>QDe,GetOrderByIdParams:()=>HDe,GetOrderByIdHeader:()=>WDe,DeleteOrderParams:()=>KDe,DeleteOrderHeader:()=>yDe,CreateOrderHeader:()=>JDe,CreateOrderBody:()=>tDe,CancelOrderResponse:()=>kDe,CancelOrderParams:()=>MDe,CancelOrderHeader:()=>zDe});var JDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),uU=36,JU=255,tU=100,BU=255,RU=255,LU=3,HU=-140737488355328,WU=140737488355327,QU=-140737488355328,wU=140737488355327,XU=-140737488355328,YU=140737488355327,xU=-140737488355328,KU=140737488355327,yU=50,VU=100,tDe=r({order_integration_id:e().max(uU),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(JU),source_order_number:e().max(tU).nullish(),customer_name:e().max(BU).nullish(),customer_email:e().max(RU).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),currency_code:e().max(LU),total:v().min(HU).max(WU),total_with_tax:v().min(QU).max(wU),total_discount:v().min(XU).max(YU).optional(),total_shipping:v().min(xU).max(KU).optional(),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})).min(1),payment_status:g(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e().max(yU).nullish(),payment_gateway:e().max(VU).nullish(),ordered_at:e().datetime({}).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),FU=10,$U=100,BDe=r({limit:v().min(1).max($U).default(FU).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]),P(g(["id","status","source","customer_name","total","created_at","updated_at","-id","-status","-source","-customer_name","-total","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, 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().optional().describe(`Full-text search query to filter results across multiple fields.
210
- Searches are case-insensitive and match partial strings.
211
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),RDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),MU=36,zU=36,kU=36,UU=255,mU=100,ZU=255,CU=255,jU=36,pU=3,fU=-140737488355328,lU=140737488355327,hU=-140737488355328,iU=140737488355327,dU=-140737488355328,aU=140737488355327,sU=-140737488355328,em=140737488355327,om=50,cm=100,rm=36,vm=36,nm=255,Am=2000,LDe=r({data:P(r({id:e().max(MU),entity_id:e().max(zU),order_integration_id:e().max(kU),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(UU),source_order_number:e().max(mU).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(ZU).nullish(),customer_email:e().max(CU).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(jU).nullish(),currency_code:e().max(pU),total:v().min(fU).max(lU),total_with_tax:v().min(hU).max(iU),total_discount:v().min(dU).max(aU),total_shipping:v().min(sU).max(em),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(om).nullish(),payment_gateway:e().max(cm).nullish(),invoice_id:e().max(rm).nullish(),estimate_id:e().max(vm).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(nm).nullish(),error:e().max(Am).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Im=/^[a-z]{3,4}_[0-9a-f]{24}$/,HDe=r({id:e().regex(Im).describe("Unique resource identifier")}),WDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Sm=36,gm=36,Pm=36,_m=255,Em=100,Dm=255,Om=255,bm=36,Tm=3,qm=-140737488355328,Nm=140737488355327,Gm=-140737488355328,um=140737488355327,Jm=-140737488355328,tm=140737488355327,Bm=-140737488355328,Rm=140737488355327,Lm=50,Hm=100,Wm=36,Qm=36,wm=255,Xm=2000,QDe=r({id:e().max(Sm),entity_id:e().max(gm),order_integration_id:e().max(Pm),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(_m),source_order_number:e().max(Em).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(Dm).nullish(),customer_email:e().max(Om).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(bm).nullish(),currency_code:e().max(Tm),total:v().min(qm).max(Nm),total_with_tax:v().min(Gm).max(um),total_discount:v().min(Jm).max(tm),total_shipping:v().min(Bm).max(Rm),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(Lm).nullish(),payment_gateway:e().max(Hm).nullish(),invoice_id:e().max(Wm).nullish(),estimate_id:e().max(Qm).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(wm).nullish(),error:e().max(Xm).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),Ym=/^[a-z]{3,4}_[0-9a-f]{24}$/,wDe=r({id:e().regex(Ym).describe("Unique resource identifier")}),XDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xm=100,Km=255,ym=255,Vm=3,Fm=-140737488355328,$m=140737488355327,Mm=-140737488355328,zm=140737488355327,km=-140737488355328,Um=140737488355327,mm=-140737488355328,Zm=140737488355327,Cm=50,jm=100,YDe=r({source_order_number:e().max(xm).nullish(),customer_name:e().max(Km).nullish(),customer_email:e().max(ym).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),currency_code:e().max(Vm).optional(),total:v().min(Fm).max($m).optional(),total_with_tax:v().min(Mm).max(zm).optional(),total_discount:v().min(km).max(Um).optional(),total_shipping:v().min(mm).max(Zm).optional(),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})).min(1).optional(),payment_status:g(["unpaid","paid","partially_paid","refunded"]).optional().describe("Order payment status"),payment_method:e().max(Cm).nullish(),payment_gateway:e().max(jm).nullish(),ordered_at:e().datetime({}).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),pm=36,fm=36,lm=36,hm=255,im=100,dm=255,am=255,sm=36,eZ=3,oZ=-140737488355328,cZ=140737488355327,rZ=-140737488355328,vZ=140737488355327,nZ=-140737488355328,AZ=140737488355327,IZ=-140737488355328,SZ=140737488355327,gZ=50,PZ=100,_Z=36,EZ=36,DZ=255,OZ=2000,xDe=r({id:e().max(pm),entity_id:e().max(fm),order_integration_id:e().max(lm),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(hm),source_order_number:e().max(im).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(dm).nullish(),customer_email:e().max(am).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(sm).nullish(),currency_code:e().max(eZ),total:v().min(oZ).max(cZ),total_with_tax:v().min(rZ).max(vZ),total_discount:v().min(nZ).max(AZ),total_shipping:v().min(IZ).max(SZ),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(gZ).nullish(),payment_gateway:e().max(PZ).nullish(),invoice_id:e().max(_Z).nullish(),estimate_id:e().max(EZ).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(DZ).nullish(),error:e().max(OZ).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),bZ=/^[a-z]{3,4}_[0-9a-f]{24}$/,KDe=r({id:e().regex(bZ).describe("Unique resource identifier")}),yDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),TZ=/^[a-z]{3,4}_[0-9a-f]{24}$/,VDe=r({id:e().regex(TZ).describe("Unique resource identifier")}),FDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),qZ=36,NZ=36,GZ=36,uZ=255,JZ=100,tZ=255,BZ=255,RZ=36,LZ=3,HZ=-140737488355328,WZ=140737488355327,QZ=-140737488355328,wZ=140737488355327,XZ=-140737488355328,YZ=140737488355327,xZ=-140737488355328,KZ=140737488355327,yZ=50,VZ=100,FZ=36,$Z=36,MZ=255,zZ=2000,$De=r({id:e().max(qZ),entity_id:e().max(NZ),order_integration_id:e().max(GZ),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(uZ),source_order_number:e().max(JZ).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(tZ).nullish(),customer_email:e().max(BZ).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(RZ).nullish(),currency_code:e().max(LZ),total:v().min(HZ).max(WZ),total_with_tax:v().min(QZ).max(wZ),total_discount:v().min(XZ).max(YZ),total_shipping:v().min(xZ).max(KZ),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(yZ).nullish(),payment_gateway:e().max(VZ).nullish(),invoice_id:e().max(FZ).nullish(),estimate_id:e().max($Z).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(MZ).nullish(),error:e().max(zZ).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),kZ=/^[a-z]{3,4}_[0-9a-f]{24}$/,MDe=r({id:e().regex(kZ).describe("Unique resource identifier")}),zDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),UZ=36,mZ=36,ZZ=36,CZ=255,jZ=100,pZ=255,fZ=255,lZ=36,hZ=3,iZ=-140737488355328,dZ=140737488355327,aZ=-140737488355328,sZ=140737488355327,eC=-140737488355328,oC=140737488355327,cC=-140737488355328,rC=140737488355327,vC=50,nC=100,AC=36,IC=36,SC=255,gC=2000,kDe=r({id:e().max(UZ),entity_id:e().max(mZ),order_integration_id:e().max(ZZ),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(CZ),source_order_number:e().max(jZ).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(pZ).nullish(),customer_email:e().max(fZ).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(lZ).nullish(),currency_code:e().max(hZ),total:v().min(iZ).max(dZ),total_with_tax:v().min(aZ).max(sZ),total_discount:v().min(eC).max(oC),total_shipping:v().min(cC).max(rC),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(vC).nullish(),payment_gateway:e().max(nC).nullish(),invoice_id:e().max(AC).nullish(),estimate_id:e().max(IC).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(SC).nullish(),error:e().max(gC).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order"),PC=/^[a-z]{3,4}_[0-9a-f]{24}$/,UDe=r({id:e().regex(PC).describe("Unique resource identifier")}),mDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),_C=36,EC=36,DC=36,OC=255,bC=100,TC=255,qC=255,NC=36,GC=3,uC=-140737488355328,JC=140737488355327,tC=-140737488355328,BC=140737488355327,RC=-140737488355328,LC=140737488355327,HC=-140737488355328,WC=140737488355327,QC=50,wC=100,XC=36,YC=36,xC=255,KC=2000,ZDe=r({id:e().max(_C),entity_id:e().max(EC),order_integration_id:e().max(DC),source:g(["shopify","woocommerce","manual"]).describe("Order source platform"),source_id:e().max(OC),source_order_number:e().max(bC).nullish(),status:g(["pending","processing","invoiced","cancelled","failed"]).describe("Order processing status"),paid:A(),paid_at:e().datetime({}).nullish(),fulfilled:A(),fulfilled_at:e().datetime({}).nullish(),cancelled:A(),cancelled_at:e().datetime({}).nullish(),refunded:A(),refunded_at:e().datetime({}).nullish(),customer_name:e().max(TC).nullish(),customer_email:e().max(qC).nullish(),customer:r({phone:e().optional(),company_name:e().optional(),tax_number:e().optional(),company_number:e().optional(),is_business:A().optional(),notes:e().optional()}).nullish(),billing_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),shipping_address:r({address:e().optional(),address_2:e().optional(),city:e().optional(),state:e().optional(),post_code:e().optional(),country:e().optional(),country_code:e().optional()}).nullish(),customer_id:e().max(NC).nullish(),currency_code:e().max(GC),total:v().min(uC).max(JC),total_with_tax:v().min(tC).max(BC),total_discount:v().min(RC).max(LC),total_shipping:v().min(HC).max(WC),items:P(r({name:e(),quantity:v(),price:v(),gross_price:v().optional(),total:v(),total_with_tax:v(),tax_rate:v().optional(),sku:e().optional(),source_id:e().optional(),discount:v().optional(),unit:e().optional()})),payment_status:g(["unpaid","paid","partially_paid","refunded"]).describe("Order payment status"),payment_method:e().max(QC).nullish(),payment_gateway:e().max(wC).nullish(),invoice_id:e().max(XC).nullish(),estimate_id:e().max(YC).nullish(),process_after:e().datetime({}).nullish(),transactions:P(r({amount:v(),gateway:e(),status:e(),tag:e().optional(),date:e(),note:e().optional()})),complete:A(),items_changed_after_processing:A(),raw_data:O(e(),D()).nullish(),source_event_id:e().max(xC).nullish(),error:e().max(KC).nullish(),ordered_at:e().datetime({}).nullish(),processed_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Order information").and(r({})).describe("Order");var Uc={};Q(Uc,{updatePaymentResponseTwoInvoiceNumberMax:()=>fj,updatePaymentResponseTwoInvoiceIdMax:()=>pj,updatePaymentResponseTwoCreditNoteNumberMax:()=>hj,updatePaymentResponseTwoCreditNoteIdMax:()=>lj,updatePaymentResponseTwoAdvanceInvoiceNumberMax:()=>dj,updatePaymentResponseTwoAdvanceInvoiceIdMax:()=>ij,updatePaymentResponseOneTagMax:()=>mj,updatePaymentResponseOneReferenceMax:()=>Zj,updatePaymentResponseOneNoteMax:()=>Cj,updatePaymentResponseOneInvoiceIdMax:()=>yj,updatePaymentResponseOneIdMax:()=>Kj,updatePaymentResponseOneEntityIdMax:()=>jj,updatePaymentResponseOneCurrencyCodeMax:()=>zj,updatePaymentResponseOneCreditNoteIdMax:()=>Vj,updatePaymentResponseOneAmountMin:()=>$j,updatePaymentResponseOneAmountMax:()=>Mj,updatePaymentResponseOneAmountConvertedMin:()=>kj,updatePaymentResponseOneAmountConvertedMax:()=>Uj,updatePaymentResponseOneAdvanceInvoiceIdMax:()=>Fj,updatePaymentPathIdRegExp:()=>Qj,updatePaymentBodyTagMax:()=>Xj,updatePaymentBodyReferenceMax:()=>Yj,updatePaymentBodyNoteMax:()=>xj,updatePaymentBodyAmountExclusiveMin:()=>wj,restorePaymentResponseTwoInvoiceNumberMax:()=>Op,restorePaymentResponseTwoInvoiceIdMax:()=>Dp,restorePaymentResponseTwoCreditNoteNumberMax:()=>Tp,restorePaymentResponseTwoCreditNoteIdMax:()=>bp,restorePaymentResponseTwoAdvanceInvoiceNumberMax:()=>Np,restorePaymentResponseTwoAdvanceInvoiceIdMax:()=>qp,restorePaymentResponseOneTagMax:()=>gp,restorePaymentResponseOneReferenceMax:()=>Pp,restorePaymentResponseOneNoteMax:()=>_p,restorePaymentResponseOneInvoiceIdMax:()=>op,restorePaymentResponseOneIdMax:()=>ep,restorePaymentResponseOneEntityIdMax:()=>Ep,restorePaymentResponseOneCurrencyCodeMax:()=>Ap,restorePaymentResponseOneCreditNoteIdMax:()=>cp,restorePaymentResponseOneAmountMin:()=>vp,restorePaymentResponseOneAmountMax:()=>np,restorePaymentResponseOneAmountConvertedMin:()=>Ip,restorePaymentResponseOneAmountConvertedMax:()=>Sp,restorePaymentResponseOneAdvanceInvoiceIdMax:()=>rp,restorePaymentPathIdRegExp:()=>sj,permanentDeletePaymentPathIdRegExp:()=>Gp,getPaymentsResponseDataItemTwoInvoiceNumberMax:()=>rj,getPaymentsResponseDataItemTwoInvoiceIdMax:()=>cj,getPaymentsResponseDataItemTwoCreditNoteNumberMax:()=>nj,getPaymentsResponseDataItemTwoCreditNoteIdMax:()=>vj,getPaymentsResponseDataItemTwoAdvanceInvoiceNumberMax:()=>Ij,getPaymentsResponseDataItemTwoAdvanceInvoiceIdMax:()=>Aj,getPaymentsResponseDataItemOneTagMax:()=>aC,getPaymentsResponseDataItemOneReferenceMax:()=>sC,getPaymentsResponseDataItemOneNoteMax:()=>ej,getPaymentsResponseDataItemOneInvoiceIdMax:()=>CC,getPaymentsResponseDataItemOneIdMax:()=>ZC,getPaymentsResponseDataItemOneEntityIdMax:()=>oj,getPaymentsResponseDataItemOneCurrencyCodeMax:()=>hC,getPaymentsResponseDataItemOneCreditNoteIdMax:()=>jC,getPaymentsResponseDataItemOneAmountMin:()=>fC,getPaymentsResponseDataItemOneAmountMax:()=>lC,getPaymentsResponseDataItemOneAmountConvertedMin:()=>iC,getPaymentsResponseDataItemOneAmountConvertedMax:()=>dC,getPaymentsResponseDataItemOneAdvanceInvoiceIdMax:()=>pC,getPaymentsQueryLimitMax:()=>mC,getPaymentsQueryLimitDefault:()=>UC,getPaymentByIdResponseTwoInvoiceNumberMax:()=>Bj,getPaymentByIdResponseTwoInvoiceIdMax:()=>tj,getPaymentByIdResponseTwoCreditNoteNumberMax:()=>Lj,getPaymentByIdResponseTwoCreditNoteIdMax:()=>Rj,getPaymentByIdResponseTwoAdvanceInvoiceNumberMax:()=>Wj,getPaymentByIdResponseTwoAdvanceInvoiceIdMax:()=>Hj,getPaymentByIdResponseOneTagMax:()=>Nj,getPaymentByIdResponseOneReferenceMax:()=>Gj,getPaymentByIdResponseOneNoteMax:()=>uj,getPaymentByIdResponseOneInvoiceIdMax:()=>Pj,getPaymentByIdResponseOneIdMax:()=>gj,getPaymentByIdResponseOneEntityIdMax:()=>Jj,getPaymentByIdResponseOneCurrencyCodeMax:()=>bj,getPaymentByIdResponseOneCreditNoteIdMax:()=>_j,getPaymentByIdResponseOneAmountMin:()=>Dj,getPaymentByIdResponseOneAmountMax:()=>Oj,getPaymentByIdResponseOneAmountConvertedMin:()=>Tj,getPaymentByIdResponseOneAmountConvertedMax:()=>qj,getPaymentByIdResponseOneAdvanceInvoiceIdMax:()=>Ej,getPaymentByIdPathIdRegExp:()=>Sj,deletePaymentPathIdRegExp:()=>aj,createPaymentBodyTagMax:()=>MC,createPaymentBodyReferenceMax:()=>zC,createPaymentBodyNoteMax:()=>kC,createPaymentBodyInvoiceIdMax:()=>yC,createPaymentBodyCreditNoteIdMax:()=>VC,createPaymentBodyAmountExclusiveMin:()=>$C,createPaymentBodyAdvanceInvoiceIdMax:()=>FC,UpdatePaymentResponse:()=>cOe,UpdatePaymentParams:()=>sDe,UpdatePaymentHeader:()=>eOe,UpdatePaymentBody:()=>oOe,RestorePaymentResponse:()=>IOe,RestorePaymentParams:()=>nOe,RestorePaymentHeader:()=>AOe,PermanentDeletePaymentParams:()=>SOe,PermanentDeletePaymentHeader:()=>gOe,GetPaymentsResponse:()=>lDe,GetPaymentsQueryParams:()=>pDe,GetPaymentsHeader:()=>fDe,GetPaymentByIdResponse:()=>aDe,GetPaymentByIdQueryParams:()=>iDe,GetPaymentByIdParams:()=>hDe,GetPaymentByIdHeader:()=>dDe,DeletePaymentParams:()=>rOe,DeletePaymentHeader:()=>vOe,CreatePaymentHeader:()=>CDe,CreatePaymentBody:()=>jDe});var CDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),yC=36,VC=36,FC=36,$C=0,MC=100,zC=100,kC=500,jDe=r({invoice_id:e().max(yC).nullish(),credit_note_id:e().max(VC).nullish(),advance_invoice_id:e().max(FC).nullish(),amount:v().gt($C),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(MC).nullish(),reference:e().max(zC).nullish(),note:e().max(kC).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),UC=10,mC=100,pDe=r({limit:v().min(1).max(mC).default(UC).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]),P(g(["id","amount","type","date","created_at","updated_at","-id","-amount","-type","-date","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, 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().optional().describe(`Full-text search query to filter results across multiple fields.
212
- Searches are case-insensitive and match partial strings.
213
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `Invoice` - The invoice this payment is linked to\n- `CreditNote` - The credit note this payment is linked to\n- `AdvanceInvoice` - The advance invoice this payment is linked to\n\n**Usage:**\n`?include=Invoice`\n`?include=Invoice,CreditNote,AdvanceInvoice`"),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),fDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ZC=36,CC=36,jC=36,pC=36,fC=-140737488355328,lC=140737488355327,hC=3,iC=-140737488355328,dC=140737488355327,aC=100,sC=100,ej=500,oj=36,cj=36,rj=100,vj=36,nj=100,Aj=36,Ij=100,lDe=r({data:P(r({id:e().max(ZC),invoice_id:e().max(CC).nullish(),credit_note_id:e().max(jC).nullish(),advance_invoice_id:e().max(pC).nullish(),amount:v().min(fC).max(lC),currency_code:e().max(hC),amount_converted:v().min(iC).max(dC),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().describe("Payment date in YYYY-MM-DD format"),tag:e().max(aC).nullish(),reference:e().max(sC).nullish(),note:e().max(ej).nullish(),entity_id:e().max(oj),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Payment record for an invoice, credit note, or advance invoice").and(r({date:e().datetime({}).optional().describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),Invoice:r({id:e().max(cj),number:e().max(rj)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(vj),number:e().max(nj)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(Aj),number:e().max(Ij)}).nullish().describe("Related advance invoice")})).describe("Payment record for an invoice, credit note, or advance invoice")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Sj=/^[a-z]{3,4}_[0-9a-f]{24}$/,hDe=r({id:e().regex(Sj).describe("Unique resource identifier")}),iDe=r({include:e().optional().describe("Comma-separated list of relations to include in the response.\n\n**Available relations:**\n- `Invoice` - The invoice this payment is linked to\n- `CreditNote` - The credit note this payment is linked to\n- `AdvanceInvoice` - The advance invoice this payment is linked to\n\n**Usage:**\n`?include=Invoice`\n`?include=Invoice,CreditNote,AdvanceInvoice`")}),dDe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),gj=36,Pj=36,_j=36,Ej=36,Dj=-140737488355328,Oj=140737488355327,bj=3,Tj=-140737488355328,qj=140737488355327,Nj=100,Gj=100,uj=500,Jj=36,tj=36,Bj=100,Rj=36,Lj=100,Hj=36,Wj=100,aDe=r({id:e().max(gj),invoice_id:e().max(Pj).nullish(),credit_note_id:e().max(_j).nullish(),advance_invoice_id:e().max(Ej).nullish(),amount:v().min(Dj).max(Oj),currency_code:e().max(bj),amount_converted:v().min(Tj).max(qj),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().describe("Payment date in YYYY-MM-DD format"),tag:e().max(Nj).nullish(),reference:e().max(Gj).nullish(),note:e().max(uj).nullish(),entity_id:e().max(Jj),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Payment record for an invoice, credit note, or advance invoice").and(r({date:e().datetime({}).optional().describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),Invoice:r({id:e().max(tj),number:e().max(Bj)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(Rj),number:e().max(Lj)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(Hj),number:e().max(Wj)}).nullish().describe("Related advance invoice")})).describe("Payment record for an invoice, credit note, or advance invoice"),Qj=/^[a-z]{3,4}_[0-9a-f]{24}$/,sDe=r({id:e().regex(Qj).describe("Unique resource identifier")}),eOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),wj=0,Xj=100,Yj=100,xj=500,oOe=r({amount:v().gt(wj).optional(),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).optional().describe("Payment type/method"),date:e().optional().describe("Payment date in YYYY-MM-DD format"),tag:e().max(Xj).nullish(),reference:e().max(Yj).nullish(),note:e().max(xj).nullish(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Kj=36,yj=36,Vj=36,Fj=36,$j=-140737488355328,Mj=140737488355327,zj=3,kj=-140737488355328,Uj=140737488355327,mj=100,Zj=100,Cj=500,jj=36,pj=36,fj=100,lj=36,hj=100,ij=36,dj=100,cOe=r({id:e().max(Kj),invoice_id:e().max(yj).nullish(),credit_note_id:e().max(Vj).nullish(),advance_invoice_id:e().max(Fj).nullish(),amount:v().min($j).max(Mj),currency_code:e().max(zj),amount_converted:v().min(kj).max(Uj),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().describe("Payment date in YYYY-MM-DD format"),tag:e().max(mj).nullish(),reference:e().max(Zj).nullish(),note:e().max(Cj).nullish(),entity_id:e().max(jj),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Payment record for an invoice, credit note, or advance invoice").and(r({date:e().datetime({}).optional().describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),Invoice:r({id:e().max(pj),number:e().max(fj)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(lj),number:e().max(hj)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(ij),number:e().max(dj)}).nullish().describe("Related advance invoice")})).describe("Payment record for an invoice, credit note, or advance invoice"),aj=/^[a-z]{3,4}_[0-9a-f]{24}$/,rOe=r({id:e().regex(aj).describe("Unique resource identifier")}),vOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),sj=/^[a-z]{3,4}_[0-9a-f]{24}$/,nOe=r({id:e().regex(sj).describe("Unique resource identifier")}),AOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ep=36,op=36,cp=36,rp=36,vp=-140737488355328,np=140737488355327,Ap=3,Ip=-140737488355328,Sp=140737488355327,gp=100,Pp=100,_p=500,Ep=36,Dp=36,Op=100,bp=36,Tp=100,qp=36,Np=100,IOe=r({id:e().max(ep),invoice_id:e().max(op).nullish(),credit_note_id:e().max(cp).nullish(),advance_invoice_id:e().max(rp).nullish(),amount:v().min(vp).max(np),currency_code:e().max(Ap),amount_converted:v().min(Ip).max(Sp),type:g(["cash","bank_transfer","card","check","paypal","coupon","other","credit_note","advance"]).describe("Payment type/method"),date:e().describe("Payment date in YYYY-MM-DD format"),tag:e().max(gp).nullish(),reference:e().max(Pp).nullish(),note:e().max(_p).nullish(),entity_id:e().max(Ep),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Payment record for an invoice, credit note, or advance invoice").and(r({date:e().datetime({}).optional().describe("Date the payment was received (ISO 8601 datetime at midnight UTC)"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data."),Invoice:r({id:e().max(Dp),number:e().max(Op)}).nullish().describe("Related invoice"),CreditNote:r({id:e().max(bp),number:e().max(Tp)}).nullish().describe("Related credit note"),AdvanceInvoice:r({id:e().max(qp),number:e().max(Np)}).nullish().describe("Related advance invoice")})).describe("Payment record for an invoice, credit note, or advance invoice"),Gp=/^[a-z]{3,4}_[0-9a-f]{24}$/,SOe=r({id:e().regex(Gp).describe("Unique resource identifier")}),gOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var mc={};Q(mc,{updateRecurringInvoiceResponseOneStartDateMax:()=>rl,updateRecurringInvoiceResponseOneSendToMax:()=>Il,updateRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Sl,updateRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>gl,updateRecurringInvoiceResponseOneNextRunDateMax:()=>nl,updateRecurringInvoiceResponseOneNameMax:()=>ff,updateRecurringInvoiceResponseOneMonthOfYearMin:()=>ol,updateRecurringInvoiceResponseOneMonthOfYearMax:()=>cl,updateRecurringInvoiceResponseOneLastRunDateMax:()=>Al,updateRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>El,updateRecurringInvoiceResponseOneLastErrorMax:()=>Dl,updateRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Pl,updateRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>_l,updateRecurringInvoiceResponseOneIntervalMin:()=>lf,updateRecurringInvoiceResponseOneIntervalMax:()=>hf,updateRecurringInvoiceResponseOneIdMax:()=>Cf,updateRecurringInvoiceResponseOneEntityIdMax:()=>jf,updateRecurringInvoiceResponseOneEndDateMax:()=>vl,updateRecurringInvoiceResponseOneDocumentIdMax:()=>pf,updateRecurringInvoiceResponseOneDayOfWeekMin:()=>df,updateRecurringInvoiceResponseOneDayOfWeekMax:()=>af,updateRecurringInvoiceResponseOneDayOfMonthMin:()=>sf,updateRecurringInvoiceResponseOneDayOfMonthMax:()=>el,updateRecurringInvoicePathIdRegExp:()=>wf,updateRecurringInvoiceBodyStartDateRegExp:()=>zf,updateRecurringInvoiceBodySendToMax:()=>Uf,updateRecurringInvoiceBodyPaymentTermsDaysMin:()=>mf,updateRecurringInvoiceBodyPaymentTermsDaysMax:()=>Zf,updateRecurringInvoiceBodyNameMax:()=>Xf,updateRecurringInvoiceBodyMonthOfYearMin:()=>$f,updateRecurringInvoiceBodyMonthOfYearMax:()=>Mf,updateRecurringInvoiceBodyIntervalMin:()=>Yf,updateRecurringInvoiceBodyIntervalMax:()=>xf,updateRecurringInvoiceBodyEndDateRegExp:()=>kf,updateRecurringInvoiceBodyDayOfWeekMin:()=>Kf,updateRecurringInvoiceBodyDayOfWeekMax:()=>yf,updateRecurringInvoiceBodyDayOfMonthMin:()=>Vf,updateRecurringInvoiceBodyDayOfMonthMax:()=>Ff,triggerRecurringInvoiceResponseOneStartDateMax:()=>fh,triggerRecurringInvoiceResponseOneSendToMax:()=>dh,triggerRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>ah,triggerRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>sh,triggerRecurringInvoiceResponseOneNextRunDateMax:()=>hh,triggerRecurringInvoiceResponseOneNameMax:()=>Mh,triggerRecurringInvoiceResponseOneMonthOfYearMin:()=>jh,triggerRecurringInvoiceResponseOneMonthOfYearMax:()=>ph,triggerRecurringInvoiceResponseOneLastRunDateMax:()=>ih,triggerRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>ci,triggerRecurringInvoiceResponseOneLastErrorMax:()=>ri,triggerRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>ei,triggerRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>oi,triggerRecurringInvoiceResponseOneIntervalMin:()=>zh,triggerRecurringInvoiceResponseOneIntervalMax:()=>kh,triggerRecurringInvoiceResponseOneIdMax:()=>Vh,triggerRecurringInvoiceResponseOneEntityIdMax:()=>Fh,triggerRecurringInvoiceResponseOneEndDateMax:()=>lh,triggerRecurringInvoiceResponseOneDocumentIdMax:()=>$h,triggerRecurringInvoiceResponseOneDayOfWeekMin:()=>Uh,triggerRecurringInvoiceResponseOneDayOfWeekMax:()=>mh,triggerRecurringInvoiceResponseOneDayOfMonthMin:()=>Zh,triggerRecurringInvoiceResponseOneDayOfMonthMax:()=>Ch,triggerRecurringInvoicePathIdRegExp:()=>yh,resumeRecurringInvoiceResponseOneStartDateMax:()=>Bh,resumeRecurringInvoiceResponseOneSendToMax:()=>Wh,resumeRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Qh,resumeRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>wh,resumeRecurringInvoiceResponseOneNextRunDateMax:()=>Lh,resumeRecurringInvoiceResponseOneNameMax:()=>Oh,resumeRecurringInvoiceResponseOneMonthOfYearMin:()=>Jh,resumeRecurringInvoiceResponseOneMonthOfYearMax:()=>th,resumeRecurringInvoiceResponseOneLastRunDateMax:()=>Hh,resumeRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>xh,resumeRecurringInvoiceResponseOneLastErrorMax:()=>Kh,resumeRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Xh,resumeRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Yh,resumeRecurringInvoiceResponseOneIntervalMin:()=>bh,resumeRecurringInvoiceResponseOneIntervalMax:()=>Th,resumeRecurringInvoiceResponseOneIdMax:()=>_h,resumeRecurringInvoiceResponseOneEntityIdMax:()=>Eh,resumeRecurringInvoiceResponseOneEndDateMax:()=>Rh,resumeRecurringInvoiceResponseOneDocumentIdMax:()=>Dh,resumeRecurringInvoiceResponseOneDayOfWeekMin:()=>qh,resumeRecurringInvoiceResponseOneDayOfWeekMax:()=>Nh,resumeRecurringInvoiceResponseOneDayOfMonthMin:()=>Gh,resumeRecurringInvoiceResponseOneDayOfMonthMax:()=>uh,resumeRecurringInvoicePathIdRegExp:()=>Ph,restoreRecurringInvoiceResponseOneStartDateMax:()=>Ql,restoreRecurringInvoiceResponseOneSendToMax:()=>xl,restoreRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>Kl,restoreRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>yl,restoreRecurringInvoiceResponseOneNextRunDateMax:()=>Xl,restoreRecurringInvoiceResponseOneNameMax:()=>Gl,restoreRecurringInvoiceResponseOneMonthOfYearMin:()=>Hl,restoreRecurringInvoiceResponseOneMonthOfYearMax:()=>Wl,restoreRecurringInvoiceResponseOneLastRunDateMax:()=>Yl,restoreRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>$l,restoreRecurringInvoiceResponseOneLastErrorMax:()=>Ml,restoreRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Vl,restoreRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Fl,restoreRecurringInvoiceResponseOneIntervalMin:()=>ul,restoreRecurringInvoiceResponseOneIntervalMax:()=>Jl,restoreRecurringInvoiceResponseOneIdMax:()=>Tl,restoreRecurringInvoiceResponseOneEntityIdMax:()=>ql,restoreRecurringInvoiceResponseOneEndDateMax:()=>wl,restoreRecurringInvoiceResponseOneDocumentIdMax:()=>Nl,restoreRecurringInvoiceResponseOneDayOfWeekMin:()=>tl,restoreRecurringInvoiceResponseOneDayOfWeekMax:()=>Bl,restoreRecurringInvoiceResponseOneDayOfMonthMin:()=>Rl,restoreRecurringInvoiceResponseOneDayOfMonthMax:()=>Ll,restoreRecurringInvoicePathIdRegExp:()=>bl,permanentDeleteRecurringInvoicePathIdRegExp:()=>zl,pauseRecurringInvoiceResponseOneStartDateMax:()=>sl,pauseRecurringInvoiceResponseOneSendToMax:()=>rh,pauseRecurringInvoiceResponseOnePaymentTermsDaysMin:()=>vh,pauseRecurringInvoiceResponseOnePaymentTermsDaysMax:()=>nh,pauseRecurringInvoiceResponseOneNextRunDateMax:()=>oh,pauseRecurringInvoiceResponseOneNameMax:()=>Cl,pauseRecurringInvoiceResponseOneMonthOfYearMin:()=>dl,pauseRecurringInvoiceResponseOneMonthOfYearMax:()=>al,pauseRecurringInvoiceResponseOneLastRunDateMax:()=>ch,pauseRecurringInvoiceResponseOneLastGeneratedInvoiceIdMax:()=>Sh,pauseRecurringInvoiceResponseOneLastErrorMax:()=>gh,pauseRecurringInvoiceResponseOneInvoicesGeneratedMin:()=>Ah,pauseRecurringInvoiceResponseOneInvoicesGeneratedMax:()=>Ih,pauseRecurringInvoiceResponseOneIntervalMin:()=>jl,pauseRecurringInvoiceResponseOneIntervalMax:()=>pl,pauseRecurringInvoiceResponseOneIdMax:()=>Ul,pauseRecurringInvoiceResponseOneEntityIdMax:()=>ml,pauseRecurringInvoiceResponseOneEndDateMax:()=>eh,pauseRecurringInvoiceResponseOneDocumentIdMax:()=>Zl,pauseRecurringInvoiceResponseOneDayOfWeekMin:()=>fl,pauseRecurringInvoiceResponseOneDayOfWeekMax:()=>ll,pauseRecurringInvoiceResponseOneDayOfMonthMin:()=>hl,pauseRecurringInvoiceResponseOneDayOfMonthMax:()=>il,pauseRecurringInvoicePathIdRegExp:()=>kl,getRecurringInvoicesResponseDataItemOneStartDateMax:()=>lp,getRecurringInvoicesResponseDataItemOneSendToMax:()=>ap,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMin:()=>sp,getRecurringInvoicesResponseDataItemOnePaymentTermsDaysMax:()=>ef,getRecurringInvoicesResponseDataItemOneNextRunDateMax:()=>ip,getRecurringInvoicesResponseDataItemOneNameMax:()=>zp,getRecurringInvoicesResponseDataItemOneMonthOfYearMin:()=>pp,getRecurringInvoicesResponseDataItemOneMonthOfYearMax:()=>fp,getRecurringInvoicesResponseDataItemOneLastRunDateMax:()=>dp,getRecurringInvoicesResponseDataItemOneLastGeneratedInvoiceIdMax:()=>rf,getRecurringInvoicesResponseDataItemOneLastErrorMax:()=>vf,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMin:()=>of,getRecurringInvoicesResponseDataItemOneInvoicesGeneratedMax:()=>cf,getRecurringInvoicesResponseDataItemOneIntervalMin:()=>kp,getRecurringInvoicesResponseDataItemOneIntervalMax:()=>Up,getRecurringInvoicesResponseDataItemOneIdMax:()=>Fp,getRecurringInvoicesResponseDataItemOneEntityIdMax:()=>$p,getRecurringInvoicesResponseDataItemOneEndDateMax:()=>hp,getRecurringInvoicesResponseDataItemOneDocumentIdMax:()=>Mp,getRecurringInvoicesResponseDataItemOneDayOfWeekMin:()=>mp,getRecurringInvoicesResponseDataItemOneDayOfWeekMax:()=>Zp,getRecurringInvoicesResponseDataItemOneDayOfMonthMin:()=>Cp,getRecurringInvoicesResponseDataItemOneDayOfMonthMax:()=>jp,getRecurringInvoicesQueryLimitMax:()=>Vp,getRecurringInvoicesQueryLimitDefault:()=>yp,getRecurringInvoiceByIdResponseOneStartDateMax:()=>Nf,getRecurringInvoiceByIdResponseOneSendToMax:()=>tf,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMin:()=>Bf,getRecurringInvoiceByIdResponseOnePaymentTermsDaysMax:()=>Rf,getRecurringInvoiceByIdResponseOneNextRunDateMax:()=>uf,getRecurringInvoiceByIdResponseOneNameMax:()=>gf,getRecurringInvoiceByIdResponseOneMonthOfYearMin:()=>Tf,getRecurringInvoiceByIdResponseOneMonthOfYearMax:()=>qf,getRecurringInvoiceByIdResponseOneLastRunDateMax:()=>Jf,getRecurringInvoiceByIdResponseOneLastGeneratedInvoiceIdMax:()=>Wf,getRecurringInvoiceByIdResponseOneLastErrorMax:()=>Qf,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMin:()=>Lf,getRecurringInvoiceByIdResponseOneInvoicesGeneratedMax:()=>Hf,getRecurringInvoiceByIdResponseOneIntervalMin:()=>Pf,getRecurringInvoiceByIdResponseOneIntervalMax:()=>_f,getRecurringInvoiceByIdResponseOneIdMax:()=>Af,getRecurringInvoiceByIdResponseOneEntityIdMax:()=>If,getRecurringInvoiceByIdResponseOneEndDateMax:()=>Gf,getRecurringInvoiceByIdResponseOneDocumentIdMax:()=>Sf,getRecurringInvoiceByIdResponseOneDayOfWeekMin:()=>Ef,getRecurringInvoiceByIdResponseOneDayOfWeekMax:()=>Df,getRecurringInvoiceByIdResponseOneDayOfMonthMin:()=>Of,getRecurringInvoiceByIdResponseOneDayOfMonthMax:()=>bf,getRecurringInvoiceByIdPathIdRegExp:()=>nf,deleteRecurringInvoicePathIdRegExp:()=>Ol,createRecurringInvoiceBodyStartDateRegExp:()=>wp,createRecurringInvoiceBodySendToMax:()=>Yp,createRecurringInvoiceBodyPaymentTermsDaysMin:()=>xp,createRecurringInvoiceBodyPaymentTermsDaysMax:()=>Kp,createRecurringInvoiceBodyMonthOfYearMin:()=>Wp,createRecurringInvoiceBodyMonthOfYearMax:()=>Qp,createRecurringInvoiceBodyIntervalMin:()=>Jp,createRecurringInvoiceBodyIntervalMax:()=>tp,createRecurringInvoiceBodyEndDateRegExp:()=>Xp,createRecurringInvoiceBodyDocumentIdMax:()=>up,createRecurringInvoiceBodyDayOfWeekMin:()=>Bp,createRecurringInvoiceBodyDayOfWeekMax:()=>Rp,createRecurringInvoiceBodyDayOfMonthMin:()=>Lp,createRecurringInvoiceBodyDayOfMonthMax:()=>Hp,UpdateRecurringInvoiceResponse:()=>JOe,UpdateRecurringInvoiceParams:()=>NOe,UpdateRecurringInvoiceHeader:()=>GOe,UpdateRecurringInvoiceBody:()=>uOe,TriggerRecurringInvoiceResponse:()=>$Oe,TriggerRecurringInvoiceParams:()=>VOe,TriggerRecurringInvoiceHeader:()=>FOe,ResumeRecurringInvoiceResponse:()=>yOe,ResumeRecurringInvoiceParams:()=>xOe,ResumeRecurringInvoiceHeader:()=>KOe,RestoreRecurringInvoiceResponse:()=>HOe,RestoreRecurringInvoiceParams:()=>ROe,RestoreRecurringInvoiceHeader:()=>LOe,PermanentDeleteRecurringInvoiceParams:()=>WOe,PermanentDeleteRecurringInvoiceHeader:()=>QOe,PauseRecurringInvoiceResponse:()=>YOe,PauseRecurringInvoiceParams:()=>wOe,PauseRecurringInvoiceHeader:()=>XOe,GetRecurringInvoicesResponse:()=>OOe,GetRecurringInvoicesQueryParams:()=>EOe,GetRecurringInvoicesHeader:()=>DOe,GetRecurringInvoiceByIdResponse:()=>qOe,GetRecurringInvoiceByIdParams:()=>bOe,GetRecurringInvoiceByIdHeader:()=>TOe,DeleteRecurringInvoiceParams:()=>tOe,DeleteRecurringInvoiceHeader:()=>BOe,CreateRecurringInvoiceHeader:()=>POe,CreateRecurringInvoiceBody:()=>_Oe});var POe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),up=36,Jp=-2147483648,tp=2147483647,Bp=-2147483648,Rp=2147483647,Lp=-2147483648,Hp=2147483647,Wp=-2147483648,Qp=2147483647,wp=/^\d{4}-\d{2}-\d{2}$/,Xp=/^\d{4}-\d{2}-\d{2}$/,Yp=255,xp=-2147483648,Kp=2147483647,_Oe=r({document_id:e().max(up),name:e().min(1),frequency:g(["daily","weekly","monthly","yearly"]),interval:v().min(Jp).max(tp).optional(),day_of_week:v().min(Bp).max(Rp).nullish(),day_of_month:v().min(Lp).max(Hp).nullish(),month_of_year:v().min(Wp).max(Qp).nullish(),start_date:e().regex(wp).describe("Start date in YYYY-MM-DD format"),end_date:e().regex(Xp).optional().describe("End date in YYYY-MM-DD format (null = no end)"),auto_send:A().optional(),create_as_draft:A().optional(),send_to:e().max(Yp).nullish(),payment_terms_days:v().min(xp).max(Kp).nullish(),notify_owner:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),yp=10,Vp=100,EOe=r({limit:v().min(1).max(Vp).default(yp).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_at"]),P(g(["id","name","status","next_run_date","created_at","-id","-name","-status","-next_run_date","-created_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, status, frequency, document_id\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().optional().describe(`Full-text search query to filter results across multiple fields.
214
- Searches are case-insensitive and match partial strings.
215
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),DOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Fp=36,$p=36,Mp=36,zp=255,kp=-2147483648,Up=2147483647,mp=-2147483648,Zp=2147483647,Cp=-2147483648,jp=2147483647,pp=-2147483648,fp=2147483647,lp=10,hp=10,ip=10,dp=10,ap=255,sp=-2147483648,ef=2147483647,of=-2147483648,cf=2147483647,rf=36,vf=1000,OOe=r({data:P(r({id:e().max(Fp),entity_id:e().max($p),document_id:e().max(Mp),name:e().max(zp),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(kp).max(Up),day_of_week:v().min(mp).max(Zp).nullish(),day_of_month:v().min(Cp).max(jp).nullish(),month_of_year:v().min(pp).max(fp).nullish(),start_date:e().max(lp),end_date:e().max(hp).nullish(),next_run_date:e().max(ip).nullish(),last_run_date:e().max(dp).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(ap).nullish(),payment_terms_days:v().min(sp).max(ef).nullish(),notify_owner:A(),invoices_generated:v().min(of).max(cf),last_generated_invoice_id:e().max(rf).nullish(),last_error:e().max(vf).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),nf=/^[a-z]{3,4}_[0-9a-f]{24}$/,bOe=r({id:e().regex(nf).describe("Unique resource identifier")}),TOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Af=36,If=36,Sf=36,gf=255,Pf=-2147483648,_f=2147483647,Ef=-2147483648,Df=2147483647,Of=-2147483648,bf=2147483647,Tf=-2147483648,qf=2147483647,Nf=10,Gf=10,uf=10,Jf=10,tf=255,Bf=-2147483648,Rf=2147483647,Lf=-2147483648,Hf=2147483647,Wf=36,Qf=1000,qOe=r({id:e().max(Af),entity_id:e().max(If),document_id:e().max(Sf),name:e().max(gf),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(Pf).max(_f),day_of_week:v().min(Ef).max(Df).nullish(),day_of_month:v().min(Of).max(bf).nullish(),month_of_year:v().min(Tf).max(qf).nullish(),start_date:e().max(Nf),end_date:e().max(Gf).nullish(),next_run_date:e().max(uf).nullish(),last_run_date:e().max(Jf).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(tf).nullish(),payment_terms_days:v().min(Bf).max(Rf).nullish(),notify_owner:A(),invoices_generated:v().min(Lf).max(Hf),last_generated_invoice_id:e().max(Wf).nullish(),last_error:e().max(Qf).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),wf=/^[a-z]{3,4}_[0-9a-f]{24}$/,NOe=r({id:e().regex(wf).describe("Unique resource identifier")}),GOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Xf=255,Yf=-2147483648,xf=2147483647,Kf=-2147483648,yf=2147483647,Vf=-2147483648,Ff=2147483647,$f=-2147483648,Mf=2147483647,zf=/^\d{4}-\d{2}-\d{2}$/,kf=/^\d{4}-\d{2}-\d{2}$/,Uf=255,mf=-2147483648,Zf=2147483647,uOe=r({name:e().max(Xf).optional(),frequency:g(["daily","weekly","monthly","yearly"]).optional(),interval:v().min(Yf).max(xf).optional(),day_of_week:v().min(Kf).max(yf).nullish(),day_of_month:v().min(Vf).max(Ff).nullish(),month_of_year:v().min($f).max(Mf).nullish(),start_date:e().regex(zf).optional(),end_date:e().regex(kf).nullish(),auto_send:A().optional(),create_as_draft:A().optional(),send_to:e().max(Uf).nullish(),payment_terms_days:v().min(mf).max(Zf).nullish(),notify_owner:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Cf=36,jf=36,pf=36,ff=255,lf=-2147483648,hf=2147483647,df=-2147483648,af=2147483647,sf=-2147483648,el=2147483647,ol=-2147483648,cl=2147483647,rl=10,vl=10,nl=10,Al=10,Il=255,Sl=-2147483648,gl=2147483647,Pl=-2147483648,_l=2147483647,El=36,Dl=1000,JOe=r({id:e().max(Cf),entity_id:e().max(jf),document_id:e().max(pf),name:e().max(ff),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(lf).max(hf),day_of_week:v().min(df).max(af).nullish(),day_of_month:v().min(sf).max(el).nullish(),month_of_year:v().min(ol).max(cl).nullish(),start_date:e().max(rl),end_date:e().max(vl).nullish(),next_run_date:e().max(nl).nullish(),last_run_date:e().max(Al).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Il).nullish(),payment_terms_days:v().min(Sl).max(gl).nullish(),notify_owner:A(),invoices_generated:v().min(Pl).max(_l),last_generated_invoice_id:e().max(El).nullish(),last_error:e().max(Dl).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Ol=/^[a-z]{3,4}_[0-9a-f]{24}$/,tOe=r({id:e().regex(Ol).describe("Unique resource identifier")}),BOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),bl=/^[a-z]{3,4}_[0-9a-f]{24}$/,ROe=r({id:e().regex(bl).describe("Unique resource identifier")}),LOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Tl=36,ql=36,Nl=36,Gl=255,ul=-2147483648,Jl=2147483647,tl=-2147483648,Bl=2147483647,Rl=-2147483648,Ll=2147483647,Hl=-2147483648,Wl=2147483647,Ql=10,wl=10,Xl=10,Yl=10,xl=255,Kl=-2147483648,yl=2147483647,Vl=-2147483648,Fl=2147483647,$l=36,Ml=1000,HOe=r({id:e().max(Tl),entity_id:e().max(ql),document_id:e().max(Nl),name:e().max(Gl),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(ul).max(Jl),day_of_week:v().min(tl).max(Bl).nullish(),day_of_month:v().min(Rl).max(Ll).nullish(),month_of_year:v().min(Hl).max(Wl).nullish(),start_date:e().max(Ql),end_date:e().max(wl).nullish(),next_run_date:e().max(Xl).nullish(),last_run_date:e().max(Yl).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(xl).nullish(),payment_terms_days:v().min(Kl).max(yl).nullish(),notify_owner:A(),invoices_generated:v().min(Vl).max(Fl),last_generated_invoice_id:e().max($l).nullish(),last_error:e().max(Ml).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),zl=/^[a-z]{3,4}_[0-9a-f]{24}$/,WOe=r({id:e().regex(zl).describe("Unique resource identifier")}),QOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),kl=/^[a-z]{3,4}_[0-9a-f]{24}$/,wOe=r({id:e().regex(kl).describe("Unique resource identifier")}),XOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ul=36,ml=36,Zl=36,Cl=255,jl=-2147483648,pl=2147483647,fl=-2147483648,ll=2147483647,hl=-2147483648,il=2147483647,dl=-2147483648,al=2147483647,sl=10,eh=10,oh=10,ch=10,rh=255,vh=-2147483648,nh=2147483647,Ah=-2147483648,Ih=2147483647,Sh=36,gh=1000,YOe=r({id:e().max(Ul),entity_id:e().max(ml),document_id:e().max(Zl),name:e().max(Cl),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(jl).max(pl),day_of_week:v().min(fl).max(ll).nullish(),day_of_month:v().min(hl).max(il).nullish(),month_of_year:v().min(dl).max(al).nullish(),start_date:e().max(sl),end_date:e().max(eh).nullish(),next_run_date:e().max(oh).nullish(),last_run_date:e().max(ch).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(rh).nullish(),payment_terms_days:v().min(vh).max(nh).nullish(),notify_owner:A(),invoices_generated:v().min(Ah).max(Ih),last_generated_invoice_id:e().max(Sh).nullish(),last_error:e().max(gh).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),Ph=/^[a-z]{3,4}_[0-9a-f]{24}$/,xOe=r({id:e().regex(Ph).describe("Unique resource identifier")}),KOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),_h=36,Eh=36,Dh=36,Oh=255,bh=-2147483648,Th=2147483647,qh=-2147483648,Nh=2147483647,Gh=-2147483648,uh=2147483647,Jh=-2147483648,th=2147483647,Bh=10,Rh=10,Lh=10,Hh=10,Wh=255,Qh=-2147483648,wh=2147483647,Xh=-2147483648,Yh=2147483647,xh=36,Kh=1000,yOe=r({id:e().max(_h),entity_id:e().max(Eh),document_id:e().max(Dh),name:e().max(Oh),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(bh).max(Th),day_of_week:v().min(qh).max(Nh).nullish(),day_of_month:v().min(Gh).max(uh).nullish(),month_of_year:v().min(Jh).max(th).nullish(),start_date:e().max(Bh),end_date:e().max(Rh).nullish(),next_run_date:e().max(Lh).nullish(),last_run_date:e().max(Hh).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(Wh).nullish(),payment_terms_days:v().min(Qh).max(wh).nullish(),notify_owner:A(),invoices_generated:v().min(Xh).max(Yh),last_generated_invoice_id:e().max(xh).nullish(),last_error:e().max(Kh).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule"),yh=/^[a-z]{3,4}_[0-9a-f]{24}$/,VOe=r({id:e().regex(yh).describe("Unique resource identifier")}),FOe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Vh=36,Fh=36,$h=36,Mh=255,zh=-2147483648,kh=2147483647,Uh=-2147483648,mh=2147483647,Zh=-2147483648,Ch=2147483647,jh=-2147483648,ph=2147483647,fh=10,lh=10,hh=10,ih=10,dh=255,ah=-2147483648,sh=2147483647,ei=-2147483648,oi=2147483647,ci=36,ri=1000,$Oe=r({id:e().max(Vh),entity_id:e().max(Fh),document_id:e().max($h),name:e().max(Mh),frequency:g(["daily","weekly","monthly","yearly"]).describe("Recurrence frequency"),interval:v().min(zh).max(kh),day_of_week:v().min(Uh).max(mh).nullish(),day_of_month:v().min(Zh).max(Ch).nullish(),month_of_year:v().min(jh).max(ph).nullish(),start_date:e().max(fh),end_date:e().max(lh).nullish(),next_run_date:e().max(hh).nullish(),last_run_date:e().max(ih).nullish(),status:g(["active","paused","completed"]).describe("Recurring invoice schedule status"),auto_send:A(),create_as_draft:A(),send_to:e().max(dh).nullish(),payment_terms_days:v().min(ah).max(sh).nullish(),notify_owner:A(),invoices_generated:v().min(ei).max(oi),last_generated_invoice_id:e().max(ci).nullish(),last_error:e().max(ri).nullish(),last_error_at:e().datetime({}).nullish(),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Recurring invoice schedule configuration").and(r({})).describe("Recurring invoice schedule");var Zc={};Q(Zc,{stripeAppUpdateSettingsBodyDefaultTaxRateMin:()=>ni,stripeAppUpdateSettingsBodyDefaultTaxRateMax:()=>Ai,stripeAppUpdateSettingsBodyDefaultNoteMax:()=>vi,stripeAppListInvoicesQueryLimitMax:()=>gi,stripeAppListInvoicesQueryLimitDefault:()=>Si,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin:()=>_i,stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax:()=>Ei,stripeAppEntityUpdateSettingsBodyDefaultNoteMax:()=>Pi,stripeAppCreateInvoiceBodyNoteMax:()=>Ii,StripeAppWebhookResponse:()=>UOe,StripeAppUpdateSettingsResponse:()=>sOe,StripeAppUpdateSettingsHeader:()=>dOe,StripeAppUpdateSettingsBody:()=>aOe,StripeAppOAuthCallbackQueryParams:()=>kOe,StripeAppMarketplaceAuthorizeResponse:()=>ZOe,StripeAppMarketplaceAuthorizeBody:()=>mOe,StripeAppLookupInvoiceResponse:()=>Ibe,StripeAppLookupInvoiceQueryParams:()=>nbe,StripeAppLookupInvoiceHeader:()=>Abe,StripeAppListInvoicesResponse:()=>vbe,StripeAppListInvoicesQueryParams:()=>cbe,StripeAppListInvoicesHeader:()=>rbe,StripeAppGetSettingsResponse:()=>iOe,StripeAppGetSettingsHeader:()=>hOe,StripeAppGetInvoiceResponse:()=>Pbe,StripeAppGetInvoiceParams:()=>Sbe,StripeAppGetInvoiceHeader:()=>gbe,StripeAppGetConnectionResponse:()=>pOe,StripeAppGetConnectionHeader:()=>jOe,StripeAppEntityUpdateSettingsResponse:()=>bbe,StripeAppEntityUpdateSettingsBody:()=>Obe,StripeAppEntityGetSettingsResponse:()=>Dbe,StripeAppEntityGetConnectionResponse:()=>_be,StripeAppEntityDisconnectResponse:()=>Ebe,StripeAppDisconnectResponse:()=>lOe,StripeAppDisconnectHeader:()=>fOe,StripeAppCreateInvoiceHeader:()=>ebe,StripeAppCreateInvoiceBody:()=>obe,StripeAppConnectBody:()=>COe,StripeAppAuthorizeResponse:()=>zOe,StripeAppAuthorizeHeader:()=>MOe});var MOe=r({"stripe-user-account-id":e().describe("Stripe account ID from the Stripe App context")}),zOe=r({redirect_url:e().url().describe("URL to redirect the user to for authentication")}),kOe=r({code:e().min(1).describe("OAuth authorization code from Stripe"),state:e().min(1).describe("Encrypted state token from the authorize step")}),UOe=r({received:A().describe("Whether the webhook was received successfully")}),mOe=r({entity_id:e().min(1).describe("Entity ID to connect to the Stripe account")}),ZOe=r({redirect_url:e().url().describe("URL to redirect the user to for authentication")}),COe=r({state:e().min(1).describe("State token from the authorize step"),entity_id:e().min(1).describe("Entity ID to connect to the Stripe account"),force:A().optional().describe("If true, disconnects any existing connection for this Stripe account before connecting")}),jOe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),pOe=r({id:e().describe("Connection ID"),stripe_account_id:e().describe("Connected Stripe account ID"),entity_id:e().describe("Connected Space Invoices entity ID"),white_label_id:e().describe("White-label context for this connection"),auto_invoice_config:r({enabled:A(),events:P(e()),default_note:e().optional()}).describe("Auto-invoice configuration"),created_at:e().datetime({}).describe("When the connection was created")}),fOe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),lOe=r({message:e()}),hOe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),iOe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),dOe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),vi=500,ni=0,Ai=100,aOe=r({auto_invoice_enabled:A().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:P(g(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e().max(vi).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:v().min(ni).max(Ai).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),sOe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),ebe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),Ii=2000,obe=r({stripe_object_id:e().min(1).describe("Stripe object ID (pi_xxx for payment intents, in_xxx for invoices). Type is auto-detected from prefix."),note:e().max(Ii).optional().describe("Optional note to include on the invoice")}),Si=10,gi=50,cbe=r({limit:v().min(1).max(gi).default(Si).describe("Number of invoices to return")}),rbe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),vbe=r({data:P(r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}))}),nbe=r({stripe_object_id:e().min(1).describe("Stripe object ID (e.g. in_xxx for invoices, pi_xxx for payment intents)")}),Abe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),Ibe=r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}),Sbe=r({id:e().describe("Invoice ID")}),gbe=r({"stripe-user-account-id":e().describe("Stripe account ID")}),Pbe=r({id:e().describe("Space Invoices invoice ID"),number:e().nullable().describe("Invoice number"),status:e().describe("Invoice status"),total:v().describe("Invoice total amount"),currency:e().describe("Currency code"),public_url:e().url().nullable().describe("Public URL to view the invoice"),fiscalization_status:e().nullable().describe("Fiscalization/compliance status if applicable"),created_at:e().datetime({}).describe("When the invoice was created")}),_be=r({id:e().describe("Connection ID"),stripe_account_id:e().describe("Connected Stripe account ID"),entity_id:e().describe("Connected Space Invoices entity ID"),white_label_id:e().describe("White-label context for this connection"),auto_invoice_config:r({enabled:A(),events:P(e()),default_note:e().optional()}).describe("Auto-invoice configuration"),created_at:e().datetime({}).describe("When the connection was created")}),Ebe=r({message:e()}),Dbe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")}),Pi=500,_i=0,Ei=100,Obe=r({auto_invoice_enabled:A().optional().describe("Enable or disable auto-invoicing"),auto_invoice_events:P(g(["payment_intent.succeeded","invoice.paid"])).optional().describe("Stripe event types that trigger auto-invoice creation"),default_note:e().max(Pi).optional().describe("Default note to include on auto-created invoices"),default_tax_rate:v().min(_i).max(Ei).nullish().describe("Default tax rate (%) to apply to auto-created invoices when Stripe data has no tax info. Set to null to disable.")}),bbe=r({auto_invoice_enabled:A().describe("Whether auto-invoicing is enabled"),auto_invoice_events:P(e()).describe("Stripe event types that trigger auto-invoice creation"),default_note:e().nullable().describe("Default note for auto-created invoices"),default_tax_rate:v().nullable().describe("Default tax rate applied when Stripe data has no tax info")});var Cc={};Q(Cc,{generateKirExportQueryYearRegExp:()=>Di,generateKirExportQueryQuarterRegExp:()=>bi,generateKirExportQueryMonthRegExp:()=>Oi,GenerateKirExportQueryParams:()=>Tbe,GenerateKirExportHeader:()=>qbe});var Di=/^\d{4}$/,Oi=/^(1[0-2]|[1-9])$/,bi=/^[1-4]$/,Tbe=r({year:e().regex(Di).describe("Year for KIR export (e.g., 2025)"),month:e().regex(Oi).optional().describe("Month for monthly export (1-12). Cannot be used with quarter."),quarter:e().regex(bi).optional().describe("Quarter for quarterly export (1-4). Cannot be used with month.")}),qbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var jc={};Q(jc,{updateTaxResponseTwoOneTaxRatesItemRateMin:()=>Ui,updateTaxResponseTwoOneTaxRatesItemRateMax:()=>mi,updateTaxResponseTwoOneNameMax:()=>ki,updateTaxResponseTwoOneIdMax:()=>zi,updateTaxResponseTwoOneEntityIdMax:()=>Zi,updateTaxResponseOneTaxRatesItemRateMin:()=>Fi,updateTaxResponseOneTaxRatesItemRateMax:()=>$i,updateTaxResponseOneNameMax:()=>Vi,updateTaxResponseOneIdMax:()=>yi,updateTaxResponseOneEntityIdMax:()=>Mi,updateTaxPathIdRegExp:()=>Yi,updateTaxBodyTaxRatesItemRateMin:()=>xi,updateTaxBodyTaxRatesItemRateMax:()=>Ki,restoreTaxResponseTwoOneTaxRatesItemRateMin:()=>Dd,restoreTaxResponseTwoOneTaxRatesItemRateMax:()=>Od,restoreTaxResponseTwoOneNameMax:()=>Ed,restoreTaxResponseTwoOneIdMax:()=>_d,restoreTaxResponseTwoOneEntityIdMax:()=>bd,restoreTaxResponseOneTaxRatesItemRateMin:()=>Sd,restoreTaxResponseOneTaxRatesItemRateMax:()=>gd,restoreTaxResponseOneNameMax:()=>Id,restoreTaxResponseOneIdMax:()=>Ad,restoreTaxResponseOneEntityIdMax:()=>Pd,restoreTaxPathIdRegExp:()=>nd,replaceTaxResponseTwoOneTaxRatesItemRateMin:()=>od,replaceTaxResponseTwoOneTaxRatesItemRateMax:()=>cd,replaceTaxResponseTwoOneNameMax:()=>ed,replaceTaxResponseTwoOneIdMax:()=>si,replaceTaxResponseTwoOneEntityIdMax:()=>rd,replaceTaxResponseOneTaxRatesItemRateMin:()=>ii,replaceTaxResponseOneTaxRatesItemRateMax:()=>di,replaceTaxResponseOneNameMax:()=>hi,replaceTaxResponseOneIdMax:()=>li,replaceTaxResponseOneEntityIdMax:()=>ai,replaceTaxPathIdRegExp:()=>Ci,replaceTaxBodyTaxRatesItemRateMin:()=>pi,replaceTaxBodyTaxRatesItemRateMax:()=>fi,replaceTaxBodyNameMax:()=>ji,permanentDeleteTaxPathIdRegExp:()=>Td,getTaxesResponseDataItemTwoOneTaxRatesItemRateMin:()=>Qi,getTaxesResponseDataItemTwoOneTaxRatesItemRateMax:()=>wi,getTaxesResponseDataItemTwoOneNameMax:()=>Wi,getTaxesResponseDataItemTwoOneIdMax:()=>Hi,getTaxesResponseDataItemTwoOneEntityIdMax:()=>Xi,getTaxesResponseDataItemOneTaxRatesItemRateMin:()=>Bi,getTaxesResponseDataItemOneTaxRatesItemRateMax:()=>Ri,getTaxesResponseDataItemOneNameMax:()=>ti,getTaxesResponseDataItemOneIdMax:()=>Ji,getTaxesResponseDataItemOneEntityIdMax:()=>Li,getTaxesQueryLimitMax:()=>ui,getTaxesQueryLimitDefault:()=>Gi,deleteTaxPathIdRegExp:()=>vd,createTaxBodyTaxRatesItemRateMin:()=>qi,createTaxBodyTaxRatesItemRateMax:()=>Ni,createTaxBodyNameMax:()=>Ti,UpdateTaxResponse:()=>Hbe,UpdateTaxParams:()=>Bbe,UpdateTaxHeader:()=>Rbe,UpdateTaxBody:()=>Lbe,RestoreTaxResponse:()=>Vbe,RestoreTaxParams:()=>Kbe,RestoreTaxHeader:()=>ybe,ReplaceTaxResponse:()=>Xbe,ReplaceTaxParams:()=>Wbe,ReplaceTaxHeader:()=>Qbe,ReplaceTaxBody:()=>wbe,PermanentDeleteTaxParams:()=>Fbe,PermanentDeleteTaxHeader:()=>$be,GetTaxesResponse:()=>tbe,GetTaxesQueryParams:()=>ube,GetTaxesHeader:()=>Jbe,DeleteTaxParams:()=>Ybe,DeleteTaxHeader:()=>xbe,CreateTaxHeader:()=>Nbe,CreateTaxBody:()=>Gbe});var Nbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ti=100,qi=0,Ni=100,Gbe=r({name:e().max(Ti).optional(),tax_rates:P(r({rate:v().min(qi).max(Ni),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Gi=10,ui=100,ube=r({limit:v().min(1).max(ui).default(Gi).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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:J([g(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]),P(g(["id","name","created_at","updated_at","-id","-name","-created_at","-updated_at"]))]).optional(),query:e().optional().describe('JSON query object for filtering results. Supports MongoDB-style operators.\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, is_default, 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().optional().describe(`Full-text search query to filter results across multiple fields.
216
- Searches are case-insensitive and match partial strings.
217
- Searches across all text fields including names, descriptions, addresses, and metadata values.`),deleted:A().optional().describe("When true, returns only soft-deleted (trashed) items. Default false excludes deleted items.")}),Jbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ji=36,ti=100,Bi=0,Ri=100,Li=36,Hi=36,Wi=100,Qi=0,wi=100,Xi=36,tbe=r({data:P(r({id:e().max(Ji),name:e().max(ti),tax_rates:P(r({rate:v().min(Bi).max(Ri),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Li),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(Hi),name:e().max(Wi),tax_rates:P(r({rate:v().min(Qi).max(wi),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Xi),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking"))),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),Yi=/^[a-z]{3,4}_[0-9a-f]{24}$/,Bbe=r({id:e().regex(Yi).describe("Unique resource identifier")}),Rbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xi=0,Ki=100,Lbe=r({tax_rates:P(r({rate:v().min(xi).max(Ki),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Set to true to make this the default tax (unsets other defaults)")}),yi=36,Vi=100,Fi=0,$i=100,Mi=36,zi=36,ki=100,Ui=0,mi=100,Zi=36,Hbe=r({id:e().max(yi),name:e().max(Vi),tax_rates:P(r({rate:v().min(Fi).max($i),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Mi),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(zi),name:e().max(ki),tax_rates:P(r({rate:v().min(Ui).max(mi),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Zi),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),Ci=/^[a-z]{3,4}_[0-9a-f]{24}$/,Wbe=r({id:e().regex(Ci).describe("Unique resource identifier")}),Qbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ji=100,pi=0,fi=100,wbe=r({name:e().max(ji).optional(),tax_rates:P(r({rate:v().min(pi).max(fi),valid_from:e().date().nullish()})).min(1),is_default:A().optional().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),li=36,hi=100,ii=0,di=100,ai=36,si=36,ed=100,od=0,cd=100,rd=36,Xbe=r({id:e().max(li),name:e().max(hi),tax_rates:P(r({rate:v().min(ii).max(di),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(ai),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(si),name:e().max(ed),tax_rates:P(r({rate:v().min(od).max(cd),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(rd),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),vd=/^[a-z]{3,4}_[0-9a-f]{24}$/,Ybe=r({id:e().regex(vd).describe("Unique resource identifier")}),xbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),nd=/^[a-z]{3,4}_[0-9a-f]{24}$/,Kbe=r({id:e().regex(nd).describe("Unique resource identifier")}),ybe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Ad=36,Id=100,Sd=0,gd=100,Pd=36,_d=36,Ed=100,Dd=0,Od=100,bd=36,Vbe=r({id:e().max(Ad),name:e().max(Id),tax_rates:P(r({rate:v().min(Sd).max(gd),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(Pd),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({id:e().max(_d),name:e().max(Ed),tax_rates:P(r({rate:v().min(Dd).max(Od),valid_from:e().datetime({})})).describe("Tax rate history"),is_default:A().describe("Whether this is the default tax for new documents. Only one tax per entity can be default."),classification:e().nullish().describe('Classification for API tax lookups (e.g., "standard", "reduced", "zero"). Unique per entity. Can be used instead of rate when creating documents.'),entity_id:e().max(bd),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),deleted_at:e().datetime({}).nullish(),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Tax definition with rate history").and(r({})).describe("Tax with one or more rates, each with a valid_from date for historical rate tracking")),Td=/^[a-z]{3,4}_[0-9a-f]{24}$/,Fbe=r({id:e().regex(Td).describe("Unique resource identifier")}),$be=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")});var pc={};Q(pc,{UploadImageResponse:()=>kbe,UploadImageHeader:()=>Mbe,UploadImageBody:()=>zbe});var Mbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),zbe=r({file:ce(File).describe("Image file to upload (PNG, JPG, WEBP, GIF)")}),kbe=r({url:e().url().describe("Public URL of the uploaded image"),secureUrl:e().url().describe("Secure HTTPS URL of the uploaded image"),publicId:e().describe("Cloudinary public ID for future reference/deletion"),format:e().describe("Image format (jpg, png, webp, etc.)"),width:v().describe("Image width in pixels"),height:v().describe("Image height in pixels"),bytes:v().describe("File size in bytes"),entity_id:e().describe("Entity ID that the image belongs to")});var fc={};Q(fc,{updateUserFursSettingsResponseNameMax:()=>Qd,updateUserFursSettingsResponseIdMax:()=>Hd,updateUserFursSettingsResponseEmailMax:()=>Wd,updateUserFursSettingsResponseAccountIdMax:()=>wd,updateUserFinaSettingsResponseNameMax:()=>xd,updateUserFinaSettingsResponseIdMax:()=>Xd,updateUserFinaSettingsResponseEmailMax:()=>Yd,updateUserFinaSettingsResponseAccountIdMax:()=>Kd,patchMeResponseNameMax:()=>Rd,patchMeResponseIdMax:()=>td,patchMeResponseEmailMax:()=>Bd,patchMeResponseAccountIdMax:()=>Ld,patchMeBodyNameMin:()=>Jd,getMeResponseNameMax:()=>Gd,getMeResponseIdMax:()=>qd,getMeResponseEmailMax:()=>Nd,getMeResponseAccountIdMax:()=>ud,UpdateUserFursSettingsResponse:()=>pbe,UpdateUserFursSettingsHeader:()=>Cbe,UpdateUserFursSettingsBody:()=>jbe,UpdateUserFinaSettingsResponse:()=>hbe,UpdateUserFinaSettingsHeader:()=>fbe,UpdateUserFinaSettingsBody:()=>lbe,PatchMeResponse:()=>Zbe,PatchMeBody:()=>mbe,GetMeResponse:()=>Ube});var qd=36,Nd=255,Gd=255,ud=36,Ube=r({id:e().max(qd),email:e().max(Nd),name:e().max(Gd).nullish(),email_verified:A(),account_id:e().max(ud).nullish(),settings:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}),Jd=2,mbe=r({name:e().min(Jd).nullish().describe("User display name"),locale:g(["en","de","sl"]).optional().describe("Preferred UI language")}),td=36,Bd=255,Rd=255,Ld=36,Zbe=r({id:e().max(td),email:e().max(Bd),name:e().max(Rd).nullish(),email_verified:A(),account_id:e().max(Ld).nullish(),settings:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}),Cbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),jbe=r({operator_tax_number:e().optional().describe("Operator tax number for FURS fiscalization"),operator_label:e().optional().describe("Operator label/name for FURS fiscalization")}).describe("Update user FURS operator settings for a specific entity"),Hd=36,Wd=255,Qd=255,wd=36,pbe=r({id:e().max(Hd),email:e().max(Wd),name:e().max(Qd).nullish(),email_verified:A(),account_id:e().max(wd).nullish(),settings:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})}),fbe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),lbe=r({operator_oib:e().optional().describe("Operator OIB for FINA fiscalization"),operator_label:e().optional().describe("Operator label/name for FINA fiscalization")}).describe("Update user FINA operator settings for a specific entity"),Xd=36,Yd=255,xd=255,Kd=36,hbe=r({id:e().max(Xd),email:e().max(Yd),name:e().max(xd).nullish(),email_verified:A(),account_id:e().max(Kd).nullish(),settings:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),metadata:J([e(),v(),A(),N(),O(e(),D()),P(D()),N()]),created_at:e().datetime({}),updated_at:e().datetime({})});var lc={};Q(lc,{checkViesResponseIssuerCountryCodeMin:()=>zd,checkViesResponseIssuerCountryCodeMax:()=>kd,checkViesResponseCustomerCountryCodeMin:()=>Ud,checkViesResponseCustomerCountryCodeMax:()=>md,checkViesBodyIssuerIsTaxSubjectDefault:()=>Fd,checkViesBodyIssuerCountryCodeMin:()=>yd,checkViesBodyIssuerCountryCodeMax:()=>Vd,checkViesBodyCustomerCountryCodeMin:()=>$d,checkViesBodyCustomerCountryCodeMax:()=>Md,CheckViesResponse:()=>dbe,CheckViesBody:()=>ibe});var yd=2,Vd=2,Fd=!0,$d=2,Md=2,ibe=r({issuer:r({country:e().optional().describe("Country name (e.g., 'Germany', 'Deutschland', 'Slovenija'). Automatically resolved to country_code."),country_code:e().min(yd).max(Vd).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),is_tax_subject:A().default(Fd).describe("Whether the issuer is a tax subject. Set false for small businesses or tax-exempt organizations.")}).describe("Issuer (seller) information"),customer:r({country:e().optional().describe("Country name (e.g., 'Germany', 'Deutschland'). Automatically resolved to country_code."),country_code:e().min($d).max(Md).optional().describe("ISO 3166-1 alpha-2 country code. If provided, takes precedence over country name."),tax_number:e().optional().describe("Customer tax number (with or without country prefix)")}).describe("Customer (buyer) information")}),zd=2,kd=2,Ud=2,md=2,dbe=r({transaction_type:g(["domestic","intra_eu_b2b","intra_eu_b2c","export"]).nullable().describe("Determined transaction type based on geography and tax status"),reverse_charge_applies:A().describe("Whether reverse charge should be applied (0% tax with reverse charge note)"),issuer_country_code:e().min(zd).max(kd).nullable().describe("Resolved issuer country code"),customer_country_code:e().min(Ud).max(md).nullable().describe("Resolved customer country code"),vies_valid:A().nullable().describe("VIES validation result (true if tax number is valid, null if not checked)"),warning:e().nullable().describe("Warning message if VIES validation was unavailable or tax number was invalid"),is_tax_subject:A().optional().describe("False when issuer is not a tax subject (transaction treated as B2C)")});var hc={};Q(hc,{updateWebhookResponseUrlMax:()=>Pa,updateWebhookResponseMetadataDefault:()=>Ea,updateWebhookResponseIdMax:()=>Sa,updateWebhookResponseEntityIdMax:()=>ga,updateWebhookResponseDescriptionMax:()=>_a,updateWebhookPathIdRegExp:()=>na,updateWebhookBodyUrlMax:()=>Aa,updateWebhookBodyDescriptionMax:()=>Ia,testWebhookResponseWebhookIdMax:()=>Ta,testWebhookResponseResponseStatusMin:()=>Ga,testWebhookResponseResponseStatusMax:()=>ua,testWebhookResponseResponseBodyMax:()=>Ja,testWebhookResponseMaxAttemptsMin:()=>La,testWebhookResponseMaxAttemptsMax:()=>Ha,testWebhookResponseIdMax:()=>ba,testWebhookResponseEventTypeMax:()=>Na,testWebhookResponseErrorMessageMax:()=>ta,testWebhookResponseEntityIdMax:()=>qa,testWebhookResponseDurationMsMin:()=>Wa,testWebhookResponseDurationMsMax:()=>Qa,testWebhookResponseAttemptMin:()=>Ba,testWebhookResponseAttemptMax:()=>Ra,testWebhookPathIdRegExp:()=>Oa,rotateWebhookSecretResponseUrlMax:()=>ha,rotateWebhookSecretResponseSecretMax:()=>da,rotateWebhookSecretResponseMetadataDefault:()=>aa,rotateWebhookSecretResponseIdMax:()=>fa,rotateWebhookSecretResponseEntityIdMax:()=>la,rotateWebhookSecretResponseDescriptionMax:()=>ia,rotateWebhookSecretPathIdRegExp:()=>pa,getWebhooksResponseDataItemUrlMax:()=>id,getWebhooksResponseDataItemMetadataDefault:()=>ad,getWebhooksResponseDataItemIdMax:()=>ld,getWebhooksResponseDataItemEntityIdMax:()=>hd,getWebhooksResponseDataItemDescriptionMax:()=>dd,getWebhooksQueryLimitMax:()=>fd,getWebhooksQueryLimitDefault:()=>pd,getWebhookDeliveriesResponseDataItemWebhookIdMax:()=>Ka,getWebhookDeliveriesResponseDataItemResponseStatusMin:()=>Fa,getWebhookDeliveriesResponseDataItemResponseStatusMax:()=>$a,getWebhookDeliveriesResponseDataItemResponseBodyMax:()=>Ma,getWebhookDeliveriesResponseDataItemMaxAttemptsMin:()=>ma,getWebhookDeliveriesResponseDataItemMaxAttemptsMax:()=>Za,getWebhookDeliveriesResponseDataItemIdMax:()=>xa,getWebhookDeliveriesResponseDataItemEventTypeMax:()=>Va,getWebhookDeliveriesResponseDataItemErrorMessageMax:()=>za,getWebhookDeliveriesResponseDataItemEntityIdMax:()=>ya,getWebhookDeliveriesResponseDataItemDurationMsMin:()=>Ca,getWebhookDeliveriesResponseDataItemDurationMsMax:()=>ja,getWebhookDeliveriesResponseDataItemAttemptMin:()=>ka,getWebhookDeliveriesResponseDataItemAttemptMax:()=>Ua,getWebhookDeliveriesQueryLimitMax:()=>Ya,getWebhookDeliveriesQueryLimitDefault:()=>Xa,getWebhookDeliveriesPathIdRegExp:()=>wa,getWebhookByIdResponseUrlMax:()=>ca,getWebhookByIdResponseMetadataDefault:()=>va,getWebhookByIdResponseIdMax:()=>ea,getWebhookByIdResponseEntityIdMax:()=>oa,getWebhookByIdResponseDescriptionMax:()=>ra,getWebhookByIdPathIdRegExp:()=>sd,deleteWebhookPathIdRegExp:()=>Da,createWebhookBodyUrlMax:()=>Zd,createWebhookBodyDescriptionMax:()=>Cd,createWebhookBodyActiveDefault:()=>jd,UpdateWebhookResponse:()=>g2e,UpdateWebhookParams:()=>A2e,UpdateWebhookHeader:()=>I2e,UpdateWebhookBody:()=>S2e,TestWebhookResponse:()=>b2e,TestWebhookParams:()=>D2e,TestWebhookHeader:()=>O2e,RotateWebhookSecretResponse:()=>t2e,RotateWebhookSecretParams:()=>u2e,RotateWebhookSecretHeader:()=>J2e,GetWebhooksResponse:()=>c2e,GetWebhooksQueryParams:()=>e2e,GetWebhooksHeader:()=>o2e,GetWebhookDeliveriesResponse:()=>G2e,GetWebhookDeliveriesQueryParams:()=>q2e,GetWebhookDeliveriesParams:()=>T2e,GetWebhookDeliveriesHeader:()=>N2e,GetWebhookByIdResponse:()=>n2e,GetWebhookByIdParams:()=>r2e,GetWebhookByIdHeader:()=>v2e,DeleteWebhookResponse:()=>E2e,DeleteWebhookParams:()=>P2e,DeleteWebhookHeader:()=>_2e,CreateWebhookHeader:()=>abe,CreateWebhookBody:()=>sbe});var abe=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Zd=2048,Cd=500,jd=!0,sbe=r({url:e().url().max(Zd).describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e().max(Cd).optional().describe("Optional description for this webhook"),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])).min(1).describe("Events that trigger this webhook"),active:A().default(jd).describe("Whether webhook is active"),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),pd=10,fd=100,e2e=r({limit:v().min(1).max(fd).default(pd).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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.")}),o2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ld=36,hd=36,id=2048,dd=500,ad={},c2e=r({data:P(r({id:e().max(ld),entity_id:e().max(hd),url:e().max(id),description:e().max(dd).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:O(e(),e()).default(ad),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),sd=/^[a-z]{3,4}_[0-9a-f]{24}$/,r2e=r({id:e().regex(sd).describe("Unique resource identifier")}),v2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ea=36,oa=36,ca=2048,ra=500,va={},n2e=r({id:e().max(ea),entity_id:e().max(oa),url:e().max(ca),description:e().max(ra).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:O(e(),e()).default(va),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),na=/^[a-z]{3,4}_[0-9a-f]{24}$/,A2e=r({id:e().regex(na).describe("Unique resource identifier")}),I2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),Aa=2048,Ia=500,S2e=r({url:e().url().max(Aa).optional().describe("The HTTPS URL to send webhook events to. Cannot target localhost, private IPs, or internal domains."),description:e().max(Ia).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])).min(1).optional(),active:A().optional(),metadata:O(e(),e()).nullish().describe("Custom key-value data for your own use. Store any JSON object up to 50 properties. Values must be strings up to 250 characters. Useful for storing external IDs, tags, or integration data.")}),Sa=36,ga=36,Pa=2048,_a=500,Ea={},g2e=r({id:e().max(Sa),entity_id:e().max(ga),url:e().max(Pa),description:e().max(_a).nullish(),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:O(e(),e()).default(Ea),created_at:e().datetime({}),updated_at:e().datetime({}),secret:e().describe("Masked secret (only shown on create and rotate)")}).describe("Webhook endpoint (secret masked)"),Da=/^[a-z]{3,4}_[0-9a-f]{24}$/,P2e=r({id:e().regex(Da).describe("Unique resource identifier")}),_2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),E2e=r({success:A()}),Oa=/^[a-z]{3,4}_[0-9a-f]{24}$/,D2e=r({id:e().regex(Oa).describe("Unique resource identifier")}),O2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),ba=36,Ta=36,qa=36,Na=100,Ga=-2147483648,ua=2147483647,Ja=1e4,ta=2000,Ba=-2147483648,Ra=2147483647,La=-2147483648,Ha=2147483647,Wa=-2147483648,Qa=2147483647,b2e=r({id:e().max(ba),webhook_id:e().max(Ta),entity_id:e().max(qa),event_type:e().max(Na),status:g(["pending","success","failed"]),request_body:O(e(),D()),response_status:v().min(Ga).max(ua).nullish(),response_body:e().max(Ja).nullish(),error_message:e().max(ta).nullish(),attempt:v().min(Ba).max(Ra),max_attempts:v().min(La).max(Ha),next_retry_at:e().datetime({}).nullish(),duration_ms:v().min(Wa).max(Qa).nullish(),created_at:e().datetime({}),completed_at:e().datetime({}).nullish()}).describe("Webhook delivery attempt record"),wa=/^[a-z]{3,4}_[0-9a-f]{24}$/,T2e=r({id:e().regex(wa).describe("Unique resource identifier")}),Xa=10,Ya=100,q2e=r({limit:v().min(1).max(Ya).default(Xa).describe("Number of results per request."),next_cursor:e().optional().describe("Cursor to fetch the next page of results. Use the value from pagination.next_cursor in the previous response."),prev_cursor:e().optional().describe("Cursor to fetch the previous page of results. Use the value from pagination.prev_cursor in the previous response."),include_total_count:A().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.")}),N2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),xa=36,Ka=36,ya=36,Va=100,Fa=-2147483648,$a=2147483647,Ma=1e4,za=2000,ka=-2147483648,Ua=2147483647,ma=-2147483648,Za=2147483647,Ca=-2147483648,ja=2147483647,G2e=r({data:P(r({id:e().max(xa),webhook_id:e().max(Ka),entity_id:e().max(ya),event_type:e().max(Va),status:g(["pending","success","failed"]),request_body:O(e(),D()),response_status:v().min(Fa).max($a).nullish(),response_body:e().max(Ma).nullish(),error_message:e().max(za).nullish(),attempt:v().min(ka).max(Ua),max_attempts:v().min(ma).max(Za),next_retry_at:e().datetime({}).nullish(),duration_ms:v().min(Ca).max(ja).nullish(),created_at:e().datetime({}),completed_at:e().datetime({}).nullish()}).describe("Webhook delivery attempt record")),pagination:r({total:v().describe("Total number of items available in the collection"),next_cursor:e().nullable().describe("Cursor for fetching the next page. Null if no more results available."),prev_cursor:e().nullable().describe("Cursor for fetching the previous page. Null if at the first page."),has_more:A().describe("Indicates whether more results are available after the current page")}).describe("Pagination metadata including cursors and result counts")}),pa=/^[a-z]{3,4}_[0-9a-f]{24}$/,u2e=r({id:e().regex(pa).describe("Unique resource identifier")}),J2e=r({"x-entity-id":e().min(1).optional().describe("Entity ID on which the request is made. Optional - defaults to the first created entity if not provided.")}),fa=36,la=36,ha=2048,ia=500,da=64,aa={},t2e=r({id:e().max(fa),entity_id:e().max(la),url:e().max(ha),description:e().max(ia).nullish(),secret:e().max(da),events:P(g(["invoice.created","invoice.updated","invoice.sent","invoice.paid","invoice.overdue","invoice.cancelled","invoice.deleted","invoice.restored","invoice.voided","invoice.finalized","customer.created","customer.updated","customer.deleted","customer.restored","customer.permanently_deleted","payment.received","payment.failed","payment.deleted","payment.restored","payment.permanently_deleted","estimate.created","estimate.sent","estimate.accepted","estimate.rejected","estimate.deleted","estimate.restored","credit_note.created","credit_note.issued","credit_note.voided","credit_note.deleted","credit_note.restored","advance_invoice.created","advance_invoice.paid","advance_invoice.applied","advance_invoice.deleted","advance_invoice.restored","item.created","item.deleted","item.restored","item.permanently_deleted","tax.created","tax.updated","tax.deleted","tax.restored","tax.permanently_deleted","recurring_invoice.created","recurring_invoice.updated","recurring_invoice.deleted","recurring_invoice.restored","recurring_invoice.permanently_deleted","recurring_invoice.paused","recurring_invoice.resumed","recurring_invoice.invoice_generated","recurring_invoice.generation_failed","recurring_invoice.completed","stripe_app.connected","stripe_app.disconnected","stripe_app.settings_updated","order.created","order.updated","order.deleted","order.restored","order.permanently_deleted","order.processed","order.cancelled","order.failed","order_integration.created","order_integration.updated","order_integration.deleted","delivery_note.created","delivery_note.sent","delivery_note.cancelled","delivery_note.voided","delivery_note.deleted","delivery_note.restored"])),active:A(),metadata:O(e(),e()).default(aa),created_at:e().datetime({}),updated_at:e().datetime({})}).describe("Webhook endpoint with full secret visible");var ic={};Q(ic,{GetWLSubscriptionPlansResponse:()=>R2e,GetCurrentWLSubscriptionResponse:()=>B2e,CreateWLPortalResponse:()=>x2e,CreateWLPortalBody:()=>Y2e,CreateWLCheckoutResponse:()=>X2e,CreateWLCheckoutBody:()=>w2e,CheckWLLimitResponse:()=>Q2e,CheckWLLimitParams:()=>W2e,CheckWLFeatureResponse:()=>H2e,CheckWLFeatureParams:()=>L2e});var B2e=r({plan:r({id:e().describe("Unique plan ID"),slug:e().describe("Plan slug"),name:e().describe("Display name"),billing_interval:e().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:v().nullable().describe("Price in cents. Null for free plans."),limits:r({documents_per_month:v().nullable().describe("Maximum documents per month. Null means unlimited.")}).nullable(),features:P(e()).describe("List of features included. Empty array means all features."),is_free:A().describe("Whether this is a free plan"),display_order:v().describe("Display order for sorting")}).describe("A subscription plan for a white-label product"),status:e().describe("Subscription status"),billing_interval:e().nullable().describe("Current billing interval"),current_period_start:e().describe("Current period start date (ISO 8601)"),current_period_end:e().describe("Current period end date (ISO 8601)"),usage:r({documents_count:v().describe("Documents created this period"),documents_limit:v().nullable().describe("Documents limit for current plan. Null means unlimited."),period_start:e().describe("Current period start date (ISO 8601)"),period_end:e().describe("Current period end date (ISO 8601)")}).describe("Usage statistics for current billing period")}).describe("Current entity subscription with usage stats"),R2e=r({plans:P(r({id:e().describe("Unique plan ID"),slug:e().describe("Plan slug"),name:e().describe("Display name"),billing_interval:e().nullable().describe('Billing interval: "monthly", "yearly", or null for free plans'),base_price_cents:v().nullable().describe("Price in cents. Null for free plans."),limits:r({documents_per_month:v().nullable().describe("Maximum documents per month. Null means unlimited.")}).nullable(),features:P(e()).describe("List of features included. Empty array means all features."),is_free:A().describe("Whether this is a free plan"),display_order:v().describe("Display order for sorting")}).describe("A subscription plan for a white-label product")).describe("Available plans for the current white-label"),current_plan_slug:e().nullable().describe("Current plan slug (null if no subscription)")}).describe("Available subscription plans for the current white-label"),L2e=r({feature:e().describe("Feature slug to check")}),H2e=r({feature:e().describe("Feature being checked"),allowed:A().describe("Whether the feature is allowed on the current plan"),requires_upgrade:A().describe("Whether an upgrade is needed to access this feature"),upgrade_plan_slug:e().nullable().describe("Minimum plan slug that includes this feature (if requires_upgrade is true)")}).describe("Feature access check result"),W2e=r({resource:e().describe("Resource type to check (e.g., 'documents')")}),Q2e=r({resource:e().describe("Resource being checked"),allowed:A().describe("Whether creating more of this resource is allowed"),usage:v().describe("Current usage count"),limit:v().nullable().describe("Current limit. Null means unlimited."),percentage:v().describe("Usage as percentage of limit (0-100). 0 if unlimited.")}).describe("Resource limit check result"),w2e=r({plan_slug:e().describe("Plan slug to subscribe to"),billing_interval:g(["monthly","yearly"]).describe("Billing interval"),success_url:e().url().describe("URL to redirect to after successful checkout"),cancel_url:e().url().describe("URL to redirect to if checkout is cancelled")}).describe("Request to create a Stripe checkout session"),X2e=r({checkout_url:e().describe("URL to redirect user to Stripe Checkout")}).describe("Stripe checkout session URL"),Y2e=r({return_url:e().url().describe("URL to redirect to after leaving the portal")}).describe("Request to create a Stripe customer portal session"),x2e=r({portal_url:e().describe("URL to redirect user to Stripe Customer Portal")}).describe("Stripe customer portal URL");var dc={};Q(dc,{GetCurrentWhiteLabelResponse:()=>K2e});var K2e=r({slug:e().describe("Unique identifier for the white-label"),name:e().describe("Display name of the white-label"),hidden_features:P(e()).describe('Features hidden from UI for this white-label (still available via API). Empty array means all features visible. Possible values: "developer_tools"'),theme:r({primary:e().optional().describe("Primary color in HSL format (e.g., '220 70% 50%')"),radius:e().optional().describe("Border radius (e.g., '0.5rem', '0.75rem')")}).nullish().describe("Theme configuration (default colors for embed-sdk). Null means use defaults."),hal_app_id:e().nullable().describe("Hal app ID for chat widget loading. Null means no Hal integration.")}).describe("White-label configuration for the current domain");var sc=null,Ze=null;function Ce(o){sc=o}function sa(o){Ze=o}function es(){return Ze}function y2e(){if(!sc)throw Error("SDK not initialized. Call new SpaceInvoices() first.");return sc}function V2e(o){if(!o)return{};if(o instanceof Headers){let c={};return o.forEach((n,I)=>{c[I]=n}),c}if(Array.isArray(o)){let c={};for(let[n,I]of o)c[n]=I;return c}return o}async function b(o,c){let n=y2e(),I=await Promise.resolve(n.getAccessToken()),S=`${n.baseUrl}${o}`,E={...V2e(c.headers)};if(I)E.Authorization=`Bearer ${I}`;if(Ze)E["x-account-id"]=Ze;let q=await fetch(S,{...c,headers:E});if(q.status===401&&n.onUnauthorized)n.onUnauthorized(q);let G,t=q.headers.get("content-length"),B=q.headers.get("content-type");if(t==="0"||q.status===204)G=void 0;else if(B?.includes("application/pdf")||B?.includes("image/"))G=await q.blob();else if(B?.includes("text/html"))G=await q.text();else try{G=await q.json()}catch{G=void 0}return{data:G,status:q.status,headers:q.headers}}var F2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/activities?${n}`:"/activities"},os=async(o,c)=>{return b(F2e(o),{...c,method:"GET"})};function cs(o){if(!o?.entity_id&&!o?.signal)return;let c={};if(o.entity_id)c.headers={"x-entity-id":o.entity_id};if(o.signal)c.signal=o.signal;return c}function T(o){return async(...c)=>{let n=c[c.length-1],I=n&&typeof n==="object"&&(("entity_id"in n)||("signal"in n)||Object.keys(n).length===0),S,_;if(I)S=c.slice(0,-1),_=cs(n);else S=[...c];S.push(_);let E=await o(...S);if(E.status>=200&&E.status<300)return E.data;let q=Error(`API error: ${E.status}`);throw q.status=E.status,q.data=E.data,q}}function X(o){return async(c)=>{let{entity_id:n,signal:I,...S}=c||{},_=cs({entity_id:n,signal:I}),E=await o(S,_);if(E.status===200)return E.data;let q=Error(`API error: ${E.status}`);throw q.status=E.status,q.data=E.data,q}}var je={list:X(os)};var $2e=(o)=>{return`/advance-invoices/shareable/${o}`},rs=async(o,c)=>{return b($2e(o),{...c,method:"GET"})},M2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/shareable/${o}/html?${I}`:`/advance-invoices/shareable/${o}/html`},vs=async(o,c,n)=>{return b(M2e(o,c),{...n,method:"GET"})},z2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/shareable/${o}/pdf?${I}`:`/advance-invoices/shareable/${o}/pdf`},ns=async(o,c,n)=>{return b(z2e(o,c),{...n,method:"GET"})},k2e=()=>{return"/advance-invoices"},As=async(o,c)=>{return b(k2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},U2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/advance-invoices?${n}`:"/advance-invoices"},Is=async(o,c)=>{return b(U2e(o),{...c,method:"GET"})};var m2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/advance-invoices/${o}?${I}`:`/advance-invoices/${o}`},Ss=async(o,c,n)=>{return b(m2e(o,c),{...n,method:"GET"})},Z2e=(o)=>{return`/advance-invoices/${o}`},gs=async(o,c,n)=>{return b(Z2e(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var C2e=(o,c)=>{return`/advance-invoices/${o}/versions/${c}`},Ps=async(o,c,n)=>{return b(C2e(o,c),{...n,method:"GET"})},j2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/advance-invoices/render?${n}`:"/advance-invoices/render"},_s=async(o,c,n)=>{return b(j2e(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},p2e=(o)=>{return`/advance-invoices/${o}/void`},Es=async(o,c,n)=>{return b(p2e(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var pe={getShareableAdvanceInvoice:T(rs),getShareableAdvanceInvoiceHtml:T(vs),getShareableAdvanceInvoicePdf:T(ns),create:T(As),list:X(Is),get:T(Ss),update:T(gs),getVersion:T(Ps),renderAdvanceInvoicePreview:T(_s),void:T(Es)};var f2e=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/company-registry/search?${n}`:"/company-registry/search"},Ds=async(o,c)=>{return b(f2e(o),{...c,method:"GET"})},l2e=()=>{return"/company-registry/countries"},Os=async(o)=>{return b(l2e(),{...o,method:"GET"})};var fe={searchCompanyRegistry:T(Ds),list:T(Os)};var h2e=(o)=>{return`/credit-notes/shareable/${o}`},bs=async(o,c)=>{return b(h2e(o),{...c,method:"GET"})},i2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/shareable/${o}/html?${I}`:`/credit-notes/shareable/${o}/html`},Ts=async(o,c,n)=>{return b(i2e(o,c),{...n,method:"GET"})},d2e=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/shareable/${o}/pdf?${I}`:`/credit-notes/shareable/${o}/pdf`},qs=async(o,c,n)=>{return b(d2e(o,c),{...n,method:"GET"})},a2e=(o)=>{return`/credit-notes/shareable/${o}/eslog`},Ns=async(o,c)=>{return b(a2e(o),{...c,method:"GET"})},s2e=()=>{return"/credit-notes"},Gs=async(o,c)=>{return b(s2e(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},eTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/credit-notes?${n}`:"/credit-notes"},us=async(o,c)=>{return b(eTe(o),{...c,method:"GET"})};var oTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/credit-notes/${o}?${I}`:`/credit-notes/${o}`},Js=async(o,c,n)=>{return b(oTe(o,c),{...n,method:"GET"})},cTe=(o)=>{return`/credit-notes/${o}`},ts=async(o,c,n)=>{return b(cTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var rTe=(o,c)=>{return`/credit-notes/${o}/versions/${c}`},Bs=async(o,c,n)=>{return b(rTe(o,c),{...n,method:"GET"})},vTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/credit-notes/render?${n}`:"/credit-notes/render"},Rs=async(o,c,n)=>{return b(vTe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},nTe=(o)=>{return`/credit-notes/${o}/void`},Ls=async(o,c,n)=>{return b(nTe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var le={getShareableCreditNote:T(bs),getShareableCreditNoteHtml:T(Ts),getShareableCreditNotePdf:T(qs),getShareableCreditNoteEslog:T(Ns),create:T(Gs),list:X(us),get:T(Js),update:T(ts),getVersion:T(Bs),renderCreditNotePreview:T(Rs),void:T(Ls)};var ATe=()=>{return"/customers"},Hs=async(o,c)=>{return b(ATe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},ITe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/customers?${n}`:"/customers"},Ws=async(o,c)=>{return b(ITe(o),{...c,method:"GET"})},STe=(o)=>{return`/customers/${o}`},Qs=async(o,c)=>{return b(STe(o),{...c,method:"GET"})},gTe=(o)=>{return`/customers/${o}`},ws=async(o,c,n)=>{return b(gTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},PTe=(o)=>{return`/customers/${o}`},Xs=async(o,c)=>{return b(PTe(o),{...c,method:"DELETE"})},_Te=(o)=>{return`/customers/${o}/restore`},Ys=async(o,c)=>{return b(_Te(o),{...c,method:"POST"})},ETe=(o)=>{return`/customers/${o}/permanent`},xs=async(o,c)=>{return b(ETe(o),{...c,method:"DELETE"})};var he={create:T(Hs),list:X(Ws),get:T(Qs),update:T(ws),delete:T(Xs),restoreCustomer:T(Ys),permanentDeleteCustomer:T(xs)};var DTe=(o)=>{return`/delivery-notes/shareable/${o}`},Ks=async(o,c)=>{return b(DTe(o),{...c,method:"GET"})},OTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/shareable/${o}/html?${I}`:`/delivery-notes/shareable/${o}/html`},ys=async(o,c,n)=>{return b(OTe(o,c),{...n,method:"GET"})},bTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/shareable/${o}/pdf?${I}`:`/delivery-notes/shareable/${o}/pdf`},Vs=async(o,c,n)=>{return b(bTe(o,c),{...n,method:"GET"})},TTe=()=>{return"/delivery-notes"},Fs=async(o,c)=>{return b(TTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},qTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/delivery-notes?${n}`:"/delivery-notes"},$s=async(o,c)=>{return b(qTe(o),{...c,method:"GET"})};var NTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/delivery-notes/${o}?${I}`:`/delivery-notes/${o}`},Ms=async(o,c,n)=>{return b(NTe(o,c),{...n,method:"GET"})},GTe=(o)=>{return`/delivery-notes/${o}`},zs=async(o,c,n)=>{return b(GTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var uTe=(o,c)=>{return`/delivery-notes/${o}/versions/${c}`},ks=async(o,c,n)=>{return b(uTe(o,c),{...n,method:"GET"})},JTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/delivery-notes/render?${n}`:"/delivery-notes/render"},Us=async(o,c,n)=>{return b(JTe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},tTe=(o)=>{return`/delivery-notes/${o}/void`},ms=async(o,c,n)=>{return b(tTe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var ie={getShareableDeliveryNote:T(Ks),getShareableDeliveryNoteHtml:T(ys),getShareableDeliveryNotePdf:T(Vs),create:T(Fs),list:X($s),get:T(Ms),update:T(zs),getVersion:T(ks),renderDeliveryNotePreview:T(Us),void:T(ms)};var BTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/next-number?${n}`:"/documents/next-number"},Zs=async(o,c)=>{return b(BTe(o),{...c,method:"GET"})},RTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/finalize?${I}`:`/documents/${o}/finalize`},Cs=async(o,c,n)=>{return b(RTe(o,c),{...n,method:"POST"})},LTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/fiscalize?${I}`:`/documents/${o}/fiscalize`},js=async(o,c,n)=>{return b(LTe(o,c),{...n,method:"POST"})},HTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}?${I}`:`/documents/${o}`},ps=async(o,c,n)=>{return b(HTe(o,c),{...n,method:"DELETE"})},WTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/restore?${I}`:`/documents/${o}/restore`},fs=async(o,c,n)=>{return b(WTe(o,c),{...n,method:"POST"})},QTe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/permanent?${I}`:`/documents/${o}/permanent`},ls=async(o,c,n)=>{return b(QTe(o,c),{...n,method:"DELETE"})},wTe=(o)=>{return`/documents/${o}/send`},hs=async(o,c,n)=>{return b(wTe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},XTe=(o)=>{return`/documents/${o}/share`},is=async(o,c)=>{return b(XTe(o),{...c,method:"POST"})},YTe=(o)=>{return`/documents/${o}/share`},ds=async(o,c)=>{return b(YTe(o),{...c,method:"GET"})},xTe=(o)=>{return`/documents/${o}/share`},as=async(o,c)=>{return b(xTe(o),{...c,method:"DELETE"})};var de={getNextNumber:T(Zs),finalizeDocument:T(Cs),fiscalizeDocument:T(js),delete:T(ps),restoreDocument:T(fs),permanentDeleteDocument:T(ls),sendDocument:T(hs),shareDocument:T(is),getShareableId:T(ds),unshareDocument:T(as)};var KTe=()=>{return"/email/send"},ss=async(o,c)=>{return b(KTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var ae={sendEmail:T(ss)};var yTe=()=>{return"/entities"},eee=async(o,c)=>{return b(yTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},VTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/entities?${n}`:"/entities"},oee=async(o,c)=>{return b(VTe(o),{...c,method:"GET"})},FTe=(o)=>{return`/entities/${o}`},cee=async(o,c,n)=>{return b(FTe(o),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},$Te=(o)=>{return`/entities/${o}/enable`},ree=async(o,c)=>{return b($Te(o),{...c,method:"POST"})},MTe=(o)=>{return`/entities/${o}/disable`},vee=async(o,c)=>{return b(MTe(o),{...c,method:"POST"})};var se={create:T(eee),list:X(oee),update:T(cee),enableEntity:T(ree),disableEntity:T(vee)};var zTe=()=>{return"/entities/api-keys"},nee=async(o)=>{return b(zTe(),{...o,method:"GET"})},kTe=()=>{return"/entities/api-keys"},Aee=async(o,c)=>{return b(kTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},UTe=(o)=>{return`/entities/api-keys/${o}`},Iee=async(o,c)=>{return b(UTe(o),{...c,method:"DELETE"})};var eo={listEntityApiKeys:T(nee),create:T(Aee),delete:T(Iee)};var mTe=()=>{return"/entities/invitations"},See=async(o)=>{return b(mTe(),{...o,method:"GET"})},ZTe=(o)=>{return`/entities/invitations/${o}`},gee=async(o,c)=>{return b(ZTe(o),{...c,method:"GET"})},CTe=(o)=>{return`/entities/invitations/${o}`},Pee=async(o,c)=>{return b(CTe(o),{...c,method:"DELETE"})},jTe=(o)=>{return`/entities/invitations/${o}/resend`},_ee=async(o,c)=>{return b(jTe(o),{...c,method:"POST"})},pTe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invitations/accept?${n}`:"/invitations/accept"},Eee=async(o,c,n)=>{return b(pTe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})};var oo={listEntityInvitations:T(See),getEntityInvitation:T(gee),cancelEntityInvitation:T(Pee),resendEntityInvitation:T(_ee),acceptEntityInvitation:T(Eee)};var fTe=()=>{return"/stats/query"},Dee=async(o,c)=>{return b(fTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var co={queryEntityStats:T(Dee)};var lTe=()=>{return"/entities/users"},Oee=async(o)=>{return b(lTe(),{...o,method:"GET"})},hTe=()=>{return"/entities/users"},bee=async(o,c)=>{return b(hTe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},iTe=(o)=>{return`/entities/users/${o}`},Tee=async(o,c,n)=>{return b(iTe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},dTe=(o)=>{return`/entities/users/${o}`},qee=async(o,c)=>{return b(dTe(o),{...c,method:"DELETE"})},aTe=(o)=>{return`/entities/users/${o}/token`},Nee=async(o,c)=>{return b(aTe(o),{...c,method:"POST"})};var ro={list:T(Oee),addEntityUser:T(bee),update:T(Tee),removeEntityUser:T(qee),generateEntityUserToken:T(Nee)};var sTe=(o)=>{return`/estimates/shareable/${o}`},Gee=async(o,c)=>{return b(sTe(o),{...c,method:"GET"})},eqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/shareable/${o}/html?${I}`:`/estimates/shareable/${o}/html`},uee=async(o,c,n)=>{return b(eqe(o,c),{...n,method:"GET"})},oqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/shareable/${o}/pdf?${I}`:`/estimates/shareable/${o}/pdf`},Jee=async(o,c,n)=>{return b(oqe(o,c),{...n,method:"GET"})},cqe=()=>{return"/estimates"},tee=async(o,c)=>{return b(cqe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},rqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/estimates?${n}`:"/estimates"},Bee=async(o,c)=>{return b(rqe(o),{...c,method:"GET"})};var vqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/estimates/${o}?${I}`:`/estimates/${o}`},Ree=async(o,c,n)=>{return b(vqe(o,c),{...n,method:"GET"})},nqe=(o)=>{return`/estimates/${o}`},Lee=async(o,c,n)=>{return b(nqe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var Aqe=(o,c)=>{return`/estimates/${o}/versions/${c}`},Hee=async(o,c,n)=>{return b(Aqe(o,c),{...n,method:"GET"})},Iqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/estimates/render?${n}`:"/estimates/render"},Wee=async(o,c,n)=>{return b(Iqe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})};var vo={getShareableEstimate:T(Gee),getShareableEstimateHtml:T(uee),getShareableEstimatePdf:T(Jee),create:T(tee),list:X(Bee),get:T(Ree),update:T(Lee),getVersion:T(Hee),renderEstimatePreview:T(Wee)};var Sqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/export?${n}`:"/documents/export"},Qee=async(o,c)=>{return b(Sqe(o),{...c,method:"GET"})},gqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/documents/export/sales-per-item?${n}`:"/documents/export/sales-per-item"},wee=async(o,c)=>{return b(gqe(o),{...c,method:"GET"})},Pqe=()=>{return"/documents/export/pdf"},Xee=async(o,c)=>{return b(Pqe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},_qe=(o)=>{return`/documents/export/pdf/${o}`},Yee=async(o,c)=>{return b(_qe(o),{...c,method:"GET"})};var no={exportDocuments:T(Qee),exportSalesPerItem:T(wee),startPdfExport:T(Xee),list:X(Yee)};var Eqe=()=>{return"/files"},xee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(n.append("category",o.category),o.account_payable_id!==void 0)n.append("account_payable_id",o.account_payable_id);return b(Eqe(),{...c,method:"POST",body:n})},Dqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/files?${n}`:"/files"},Kee=async(o,c)=>{return b(Dqe(o),{...c,method:"GET"})},Oqe=(o)=>{return`/files/${o}`},yee=async(o,c)=>{return b(Oqe(o),{...c,method:"GET"})},bqe=(o)=>{return`/files/${o}`},Vee=async(o,c)=>{return b(bqe(o),{...c,method:"DELETE"})};var Ao={uploadFile:T(xee),list:X(Kee),get:T(yee),delete:T(Vee)};var Tqe=()=>{return"/fiscalization/fina/settings/certificate"},Fee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(o.passphrase!==void 0)n.append("passphrase",o.passphrase);return b(Tqe(),{...c,method:"POST",body:n})},qqe=()=>{return"/fiscalization/fina/settings/certificate"},$ee=async(o)=>{return b(qqe(),{...o,method:"GET"})},Nqe=()=>{return"/fiscalization/fina/settings/certificate"},Mee=async(o)=>{return b(Nqe(),{...o,method:"DELETE"})};var Io={uploadFinaCertificate:T(Fee),getFinaCertificate:T($ee),delete:T(Mee)};var Gqe=(o)=>{return`/fiscalization/fina/premises/${o}/devices`},zee=async(o,c)=>{return b(Gqe(o),{...c,method:"GET"})},uqe=(o)=>{return`/fiscalization/fina/premises/${o}/devices`},kee=async(o,c,n)=>{return b(uqe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},Jqe=(o)=>{return`/fiscalization/fina/devices/${o}`},Uee=async(o,c)=>{return b(Jqe(o),{...c,method:"GET"})},tqe=(o)=>{return`/fiscalization/fina/devices/${o}`},mee=async(o,c)=>{return b(tqe(o),{...c,method:"DELETE"})};var So={listFinaDevices:T(zee),registerFinaDevice:T(kee),getFinaDevice:T(Uee),delete:T(mee)};var Bqe=()=>{return"/fiscalization/fina/premises"},Zee=async(o)=>{return b(Bqe(),{...o,method:"GET"})},Rqe=()=>{return"/fiscalization/fina/premises"},Cee=async(o,c)=>{return b(Rqe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},Lqe=(o)=>{return`/fiscalization/fina/premises/${o}`},jee=async(o,c)=>{return b(Lqe(o),{...c,method:"GET"})},Hqe=(o)=>{return`/fiscalization/fina/premises/${o}`},pee=async(o,c)=>{return b(Hqe(o),{...c,method:"DELETE"})};var go={listFinaPremises:T(Zee),create:T(Cee),getFinaPremise:T(jee),delete:T(pee)};var Wqe=()=>{return"/fiscalization/fina/settings"},fee=async(o)=>{return b(Wqe(),{...o,method:"GET"})},Qqe=()=>{return"/fiscalization/fina/settings"},lee=async(o,c)=>{return b(Qqe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Po={list:T(fee),update:T(lee)};var wqe=()=>{return"/fiscalization/furs/settings/certificate"},hee=async(o,c)=>{let n=new FormData;if(o.file!==void 0)n.append("file",o.file);if(o.passphrase!==void 0)n.append("passphrase",o.passphrase);return b(wqe(),{...c,method:"POST",body:n})},Xqe=()=>{return"/fiscalization/furs/settings/certificate"},iee=async(o)=>{return b(Xqe(),{...o,method:"GET"})},Yqe=()=>{return"/fiscalization/furs/settings/certificate"},dee=async(o)=>{return b(Yqe(),{...o,method:"DELETE"})};var _o={uploadFursCertificate:T(hee),getFursCertificate:T(iee),delete:T(dee)};var xqe=(o)=>{return`/fiscalization/furs/premises/${o}/devices`},aee=async(o,c)=>{return b(xqe(o),{...c,method:"GET"})},Kqe=(o)=>{return`/fiscalization/furs/premises/${o}/devices`},see=async(o,c,n)=>{return b(Kqe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},yqe=(o)=>{return`/fiscalization/furs/devices/${o}`},eoe=async(o,c)=>{return b(yqe(o),{...c,method:"GET"})};var Eo={listFursElectronicDevices:T(aee),registerFursElectronicDevice:T(see),getFursElectronicDevice:T(eoe)};var Vqe=()=>{return"/fiscalization/furs/premises"},ooe=async(o)=>{return b(Vqe(),{...o,method:"GET"})},Fqe=(o)=>{return`/fiscalization/furs/premises/${o}`},coe=async(o,c)=>{return b(Fqe(o),{...c,method:"GET"})},$qe=()=>{return"/fiscalization/furs/premises/real-estate"},roe=async(o,c)=>{return b($qe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},Mqe=()=>{return"/fiscalization/furs/premises/movable"},voe=async(o,c)=>{return b(Mqe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},zqe=(o)=>{return`/fiscalization/furs/premises/${o}/close`},noe=async(o,c)=>{return b(zqe(o),{...c,method:"POST"})};var Do={listFursBusinessPremises:T(ooe),getFursBusinessPremise:T(coe),registerFursRealEstatePremise:T(roe),registerFursMovablePremise:T(voe),closeFursBusinessPremise:T(noe)};var kqe=()=>{return"/fiscalization/furs/settings"},Aoe=async(o)=>{return b(kqe(),{...o,method:"GET"})},Uqe=()=>{return"/fiscalization/furs/settings"},Ioe=async(o,c)=>{return b(Uqe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Oo={list:T(Aoe),update:T(Ioe)};var mqe=()=>{return"/health"},Soe=async(o)=>{return b(mqe(),{...o,method:"GET"})};var bo={healthCheck:T(Soe)};var Zqe=(o)=>{return`/invoices/shareable/${o}`},goe=async(o,c)=>{return b(Zqe(o),{...c,method:"GET"})},Cqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/shareable/${o}/html?${I}`:`/invoices/shareable/${o}/html`},Poe=async(o,c,n)=>{return b(Cqe(o,c),{...n,method:"GET"})},jqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/shareable/${o}/pdf?${I}`:`/invoices/shareable/${o}/pdf`},_oe=async(o,c,n)=>{return b(jqe(o,c),{...n,method:"GET"})},pqe=(o)=>{return`/invoices/shareable/${o}/eslog`},Eoe=async(o,c)=>{return b(pqe(o),{...c,method:"GET"})},fqe=()=>{return"/invoices"},Doe=async(o,c)=>{return b(fqe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},lqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invoices?${n}`:"/invoices"},Ooe=async(o,c)=>{return b(lqe(o),{...c,method:"GET"})};var hqe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/invoices/${o}?${I}`:`/invoices/${o}`},boe=async(o,c,n)=>{return b(hqe(o,c),{...n,method:"GET"})},iqe=(o)=>{return`/invoices/${o}`},Toe=async(o,c,n)=>{return b(iqe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})};var dqe=(o,c)=>{return`/invoices/${o}/versions/${c}`},qoe=async(o,c,n)=>{return b(dqe(o,c),{...n,method:"GET"})},aqe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/invoices/render?${n}`:"/invoices/render"},Noe=async(o,c,n)=>{return b(aqe(c),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(o)})},sqe=(o)=>{return`/invoices/${o}/void`},Goe=async(o,c,n)=>{return b(sqe(o),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},eNe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/html?${I}`:`/documents/${o}/html`},uoe=async(o,c,n)=>{return b(eNe(o,c),{...n,method:"GET"})},oNe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/documents/${o}/pdf?${I}`:`/documents/${o}/pdf`},Joe=async(o,c,n)=>{return b(oNe(o,c),{...n,method:"GET"})};var To={getShareableInvoice:T(goe),getShareableInvoiceHtml:T(Poe),getShareableInvoicePdf:T(_oe),getShareableInvoiceEslog:T(Eoe),create:T(Doe),list:X(Ooe),get:T(boe),update:T(Toe),getVersion:T(qoe),renderInvoicePreview:T(Noe),void:T(Goe),renderHtml:T(uoe),renderPdf:T(Joe)};var cNe=()=>{return"/items"},toe=async(o,c)=>{return b(cNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},rNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/items?${n}`:"/items"},Boe=async(o,c)=>{return b(rNe(o),{...c,method:"GET"})},vNe=(o)=>{return`/items/${o}`},Roe=async(o,c)=>{return b(vNe(o),{...c,method:"DELETE"})},nNe=(o)=>{return`/items/${o}/restore`},Loe=async(o,c)=>{return b(nNe(o),{...c,method:"POST"})},ANe=(o)=>{return`/items/${o}/permanent`},Hoe=async(o,c)=>{return b(ANe(o),{...c,method:"DELETE"})};var qo={create:T(toe),list:X(Boe),delete:T(Roe),restoreItem:T(Loe),permanentDeleteItem:T(Hoe)};var INe=()=>{return"/locale/detect"},Woe=async(o)=>{return b(INe(),{...o,method:"GET"})};var No={detectLocale:T(Woe)};var SNe=()=>{return"/order-integrations/shopify/authorize"},Qoe=async(o,c)=>{return b(SNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},gNe=()=>{return"/order-integrations"},woe=async(o,c)=>{return b(gNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},PNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/order-integrations?${n}`:"/order-integrations"},Xoe=async(o,c)=>{return b(PNe(o),{...c,method:"GET"})},_Ne=(o)=>{return`/order-integrations/${o}`},Yoe=async(o,c)=>{return b(_Ne(o),{...c,method:"GET"})},ENe=(o)=>{return`/order-integrations/${o}`},xoe=async(o,c,n)=>{return b(ENe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},DNe=(o)=>{return`/order-integrations/${o}`},Koe=async(o,c)=>{return b(DNe(o),{...c,method:"DELETE"})};var Go={authorizeShopify:T(Qoe),create:T(woe),list:X(Xoe),get:T(Yoe),update:T(xoe),delete:T(Koe)};var ONe=()=>{return"/orders"},yoe=async(o,c)=>{return b(ONe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},bNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/orders?${n}`:"/orders"},Voe=async(o,c)=>{return b(bNe(o),{...c,method:"GET"})},TNe=(o)=>{return`/orders/${o}`},Foe=async(o,c)=>{return b(TNe(o),{...c,method:"GET"})},qNe=(o)=>{return`/orders/${o}`},$oe=async(o,c,n)=>{return b(qNe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},NNe=(o)=>{return`/orders/${o}`},Moe=async(o,c)=>{return b(NNe(o),{...c,method:"DELETE"})},GNe=(o)=>{return`/orders/${o}/process`},zoe=async(o,c)=>{return b(GNe(o),{...c,method:"POST"})},uNe=(o)=>{return`/orders/${o}/cancel`},koe=async(o,c)=>{return b(uNe(o),{...c,method:"POST"})},JNe=(o)=>{return`/orders/${o}/reissue`},Uoe=async(o,c)=>{return b(JNe(o),{...c,method:"POST"})};var uo={create:T(yoe),list:X(Voe),get:T(Foe),update:T($oe),delete:T(Moe),processOrder:T(zoe),cancelOrder:T(koe),reissueOrder:T(Uoe)};var tNe=()=>{return"/payments"},moe=async(o,c)=>{return b(tNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},BNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/payments?${n}`:"/payments"},Zoe=async(o,c)=>{return b(BNe(o),{...c,method:"GET"})},RNe=(o,c)=>{let n=new URLSearchParams;Object.entries(c||{}).forEach(([S,_])=>{if(_!==void 0)n.append(S,_===null?"null":_.toString())});let I=n.toString();return I.length>0?`/payments/${o}?${I}`:`/payments/${o}`},Coe=async(o,c,n)=>{return b(RNe(o,c),{...n,method:"GET"})},LNe=(o)=>{return`/payments/${o}`},joe=async(o,c,n)=>{return b(LNe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},HNe=(o)=>{return`/payments/${o}`},poe=async(o,c)=>{return b(HNe(o),{...c,method:"DELETE"})},WNe=(o)=>{return`/payments/${o}/restore`},foe=async(o,c)=>{return b(WNe(o),{...c,method:"POST"})},QNe=(o)=>{return`/payments/${o}/permanent`},loe=async(o,c)=>{return b(QNe(o),{...c,method:"DELETE"})};var Jo={create:T(moe),list:X(Zoe),get:T(Coe),update:T(joe),delete:T(poe),restorePayment:T(foe),permanentDeletePayment:T(loe)};var wNe=()=>{return"/recurring-invoices"},hoe=async(o,c)=>{return b(wNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},XNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/recurring-invoices?${n}`:"/recurring-invoices"},ioe=async(o,c)=>{return b(XNe(o),{...c,method:"GET"})},YNe=(o)=>{return`/recurring-invoices/${o}`},doe=async(o,c)=>{return b(YNe(o),{...c,method:"GET"})},xNe=(o)=>{return`/recurring-invoices/${o}`},aoe=async(o,c,n)=>{return b(xNe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},KNe=(o)=>{return`/recurring-invoices/${o}`},soe=async(o,c)=>{return b(KNe(o),{...c,method:"DELETE"})},yNe=(o)=>{return`/recurring-invoices/${o}/restore`},ece=async(o,c)=>{return b(yNe(o),{...c,method:"POST"})},VNe=(o)=>{return`/recurring-invoices/${o}/permanent`},oce=async(o,c)=>{return b(VNe(o),{...c,method:"DELETE"})},FNe=(o)=>{return`/recurring-invoices/${o}/pause`},cce=async(o,c)=>{return b(FNe(o),{...c,method:"POST"})},$Ne=(o)=>{return`/recurring-invoices/${o}/resume`},rce=async(o,c)=>{return b($Ne(o),{...c,method:"POST"})},MNe=(o)=>{return`/recurring-invoices/${o}/trigger`},vce=async(o,c)=>{return b(MNe(o),{...c,method:"POST"})};var to={create:T(hoe),list:X(ioe),get:T(doe),update:T(aoe),delete:T(soe),restoreRecurringInvoice:T(ece),permanentDeleteRecurringInvoice:T(oce),pauseRecurringInvoice:T(cce),resumeRecurringInvoice:T(rce),triggerRecurringInvoice:T(vce)};var zNe=()=>{return"/stripe-app/authorize"},nce=async(o)=>{return b(zNe(),{...o,method:"GET"})},kNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/oauth/callback?${n}`:"/stripe-app/oauth/callback"},Ace=async(o,c)=>{return b(kNe(o),{...c,method:"GET"})},UNe=()=>{return"/stripe-app/webhooks"},Ice=async(o)=>{return b(UNe(),{...o,method:"POST"})},mNe=()=>{return"/stripe-app/marketplace-authorize"},Sce=async(o,c)=>{return b(mNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},ZNe=()=>{return"/stripe-app/connect"},gce=async(o,c)=>{return b(ZNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},CNe=()=>{return"/stripe-app/connection"},Pce=async(o)=>{return b(CNe(),{...o,method:"GET"})},jNe=()=>{return"/stripe-app/connection"},_ce=async(o)=>{return b(jNe(),{...o,method:"DELETE"})},pNe=()=>{return"/stripe-app/settings"},Ece=async(o)=>{return b(pNe(),{...o,method:"GET"})},fNe=()=>{return"/stripe-app/settings"},Dce=async(o,c)=>{return b(fNe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},lNe=()=>{return"/stripe-app/invoices"},Oce=async(o,c)=>{return b(lNe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},hNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/invoices?${n}`:"/stripe-app/invoices"},bce=async(o,c)=>{return b(hNe(o),{...c,method:"GET"})},iNe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/stripe-app/invoices/lookup?${n}`:"/stripe-app/invoices/lookup"},Tce=async(o,c)=>{return b(iNe(o),{...c,method:"GET"})},dNe=(o)=>{return`/stripe-app/invoices/${o}`},qce=async(o,c)=>{return b(dNe(o),{...c,method:"GET"})},aNe=()=>{return"/stripe-app/entity-connection"},Nce=async(o)=>{return b(aNe(),{...o,method:"GET"})},sNe=()=>{return"/stripe-app/entity-connection"},Gce=async(o)=>{return b(sNe(),{...o,method:"DELETE"})},eGe=()=>{return"/stripe-app/entity-settings"},uce=async(o)=>{return b(eGe(),{...o,method:"GET"})},oGe=()=>{return"/stripe-app/entity-settings"},Jce=async(o,c)=>{return b(oGe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Bo={stripeAppAuthorize:T(nce),stripeAppOAuthCallback:T(Ace),stripeAppWebhook:T(Ice),stripeAppMarketplaceAuthorize:T(Sce),stripeAppConnect:T(gce),stripeAppGetConnection:T(Pce),stripeAppDisconnect:T(_ce),stripeAppGetSettings:T(Ece),stripeAppUpdateSettings:T(Dce),stripeAppCreateInvoice:T(Oce),stripeAppListInvoices:T(bce),stripeAppLookupInvoice:T(Tce),stripeAppGetInvoice:T(qce),stripeAppEntityGetConnection:T(Nce),stripeAppEntityDisconnect:T(Gce),stripeAppEntityGetSettings:T(uce),stripeAppEntityUpdateSettings:T(Jce)};var cGe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/tax-reports/kir?${n}`:"/tax-reports/kir"},tce=async(o,c)=>{return b(cGe(o),{...c,method:"POST"})};var Ro={generateKirExport:T(tce)};var rGe=()=>{return"/taxes"},Bce=async(o,c)=>{return b(rGe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},vGe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/taxes?${n}`:"/taxes"},Rce=async(o,c)=>{return b(vGe(o),{...c,method:"GET"})},nGe=(o)=>{return`/taxes/${o}`},Lce=async(o,c,n)=>{return b(nGe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},AGe=(o)=>{return`/taxes/${o}`},Hce=async(o,c,n)=>{return b(AGe(o),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},IGe=(o)=>{return`/taxes/${o}`},Wce=async(o,c)=>{return b(IGe(o),{...c,method:"DELETE"})},SGe=(o)=>{return`/taxes/${o}/restore`},Qce=async(o,c)=>{return b(SGe(o),{...c,method:"POST"})},gGe=(o)=>{return`/taxes/${o}/permanent`},wce=async(o,c)=>{return b(gGe(o),{...c,method:"DELETE"})};var Lo={create:T(Bce),list:X(Rce),update:T(Lce),replaceTax:T(Hce),delete:T(Wce),restoreTax:T(Qce),permanentDeleteTax:T(wce)};var ge="https://eu.spaceinvoices.com";var PGe=()=>{return"/upload/image"},Xce=async(o,c)=>{let n=new FormData;return n.append("file",o.file),b(PGe(),{...c,method:"POST",body:n})};var Ho={uploadImage:T(Xce)};var _Ge=()=>{return"/users/me"},Yce=async(o)=>{return b(_Ge(),{...o,method:"GET"})},EGe=()=>{return"/users/me"},xce=async(o,c)=>{return b(EGe(),{...c,method:"PATCH",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},DGe=()=>{return"/users/me/settings/furs"},Kce=async(o,c)=>{return b(DGe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},OGe=()=>{return"/users/me/settings/fina"},yce=async(o,c)=>{return b(OGe(),{...c,method:"PUT",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Wo={getMe:T(Yce),update:T(xce),updateFursSettings:T(Kce),updateFinaSettings:T(yce)};var bGe=()=>{return"/vies/check"},Vce=async(o,c)=>{return b(bGe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Qo={checkVies:T(Vce)};var TGe=()=>{return"/webhooks"},Fce=async(o,c)=>{return b(TGe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})},qGe=(o)=>{let c=new URLSearchParams;Object.entries(o||{}).forEach(([I,S])=>{if(S!==void 0)c.append(I,S===null?"null":S.toString())});let n=c.toString();return n.length>0?`/webhooks?${n}`:"/webhooks"},$ce=async(o,c)=>{return b(qGe(o),{...c,method:"GET"})},NGe=(o)=>{return`/webhooks/${o}`},Mce=async(o,c)=>{return b(NGe(o),{...c,method:"GET"})},GGe=(o)=>{return`/webhooks/${o}`},zce=async(o,c,n)=>{return b(GGe(o),{...n,method:"PATCH",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(c)})},uGe=(o)=>{return`/webhooks/${o}`},kce=async(o,c)=>{return b(uGe(o),{...c,method:"DELETE"})},JGe=(o)=>{return`/webhooks/${o}/test`},Uce=async(o,c)=>{return b(JGe(o),{...c,method:"POST"})};var tGe=(o)=>{return`/webhooks/${o}/rotate-secret`},mce=async(o,c)=>{return b(tGe(o),{...c,method:"POST"})};var wo={create:T(Fce),list:X($ce),get:T(Mce),update:T(zce),delete:T(kce),testWebhook:T(Uce),rotateWebhookSecret:T(mce)};var BGe=()=>{return"/white-label-subscriptions"},Zce=async(o)=>{return b(BGe(),{...o,method:"GET"})},RGe=()=>{return"/white-label-subscriptions/plans"},Cce=async(o)=>{return b(RGe(),{...o,method:"GET"})},LGe=(o)=>{return`/white-label-subscriptions/check-feature/${o}`},jce=async(o,c)=>{return b(LGe(o),{...c,method:"GET"})},HGe=(o)=>{return`/white-label-subscriptions/check-limit/${o}`},pce=async(o,c)=>{return b(HGe(o),{...c,method:"GET"})},WGe=()=>{return"/white-label-subscriptions/checkout"},fce=async(o,c)=>{return b(WGe(),{...c,method:"POST",headers:{"Content-Type":"application/json",...c?.headers},body:JSON.stringify(o)})};var Xo={getCurrentWLSubscription:T(Zce),list:T(Cce),checkWLFeature:T(jce),checkWLLimit:T(pce),create:T(fce)};var QGe=()=>{return"/white-labels/current"},lce=async(o)=>{return b(QGe(),{...o,method:"GET"})};var Yo={getCurrentWhiteLabel:T(lce)};class Pe{advanceInvoices=pe;customers=he;taxReports=Ro;payments=Jo;locale=No;invoices=To;vies=Qo;estimates=vo;fursSettings=Oo;health=bo;orderIntegrations=Go;fursDevices=Eo;stripeApp=Bo;fursCertificate=_o;fursPremises=Do;finaCertificate=Io;whiteLabels=Yo;recurringInvoices=to;exports=no;companyRegistry=fe;entityStats=co;taxes=Lo;users=Wo;files=Ao;activities=je;entityUsers=ro;documents=de;finaDevices=So;deliveryNotes=ie;orders=uo;entityApiKeys=eo;whiteLabelSubscriptions=Xo;items=qo;finaPremises=go;webhooks=wo;finaSettings=Po;creditNotes=le;entityInvitations=oo;email=ae;entities=se;upload=Ho;constructor(o){let c=typeof o==="string"?{accessToken:o}:o,n=typeof c.accessToken==="function"?c.accessToken:()=>c.accessToken;Ce({baseUrl:c.basePath??ge,getAccessToken:n,onUnauthorized:c.onUnauthorized})}}function hce(o){let c=typeof o==="string"?{accessToken:o}:o,n=typeof c.accessToken==="function"?c.accessToken:()=>c.accessToken;Ce({baseUrl:c.basePath??ge,getAccessToken:n,onUnauthorized:c.onUnauthorized})}
218
-
219
- //# debugId=BCCDB242B93A2A7464756E2164756E21
3
+ //# debugId=26E6C4843C54ACB664756E2164756E21