@spaceinvoices/js-sdk 2.2.0 → 2.2.1

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 (296) hide show
  1. package/dist/generated/documents/documents.d.cts +42 -1
  2. package/dist/generated/documents/documents.d.ts +42 -1
  3. package/dist/generated/documents/documents.d.ts.map +1 -1
  4. package/dist/generated/model/advanceInvoice.d.cts +6 -11
  5. package/dist/generated/model/advanceInvoice.d.ts +6 -11
  6. package/dist/generated/model/advanceInvoice.d.ts.map +1 -1
  7. package/dist/generated/model/advanceInvoiceItemsItem.d.cts +2 -2
  8. package/dist/generated/model/advanceInvoiceItemsItem.d.ts +2 -2
  9. package/dist/generated/model/advanceInvoiceItemsItem.d.ts.map +1 -1
  10. package/dist/generated/model/completeAdvanceInvoicePreview.d.cts +4 -8
  11. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts +4 -8
  12. package/dist/generated/model/completeAdvanceInvoicePreview.d.ts.map +1 -1
  13. package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.cts +4 -51
  14. package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.ts +4 -51
  15. package/dist/generated/model/completeAdvanceInvoicePreviewCustomer.d.ts.map +1 -1
  16. package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.cts +2 -2
  17. package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.ts +2 -2
  18. package/dist/generated/model/completeAdvanceInvoicePreviewItemsItem.d.ts.map +1 -1
  19. package/dist/generated/model/completeCreditNotePreview.d.cts +4 -8
  20. package/dist/generated/model/completeCreditNotePreview.d.ts +4 -8
  21. package/dist/generated/model/completeCreditNotePreview.d.ts.map +1 -1
  22. package/dist/generated/model/completeCreditNotePreviewCustomer.d.cts +4 -51
  23. package/dist/generated/model/completeCreditNotePreviewCustomer.d.ts +4 -51
  24. package/dist/generated/model/completeCreditNotePreviewCustomer.d.ts.map +1 -1
  25. package/dist/generated/model/completeCreditNotePreviewItemsItem.d.cts +2 -2
  26. package/dist/generated/model/completeCreditNotePreviewItemsItem.d.ts +2 -2
  27. package/dist/generated/model/completeCreditNotePreviewItemsItem.d.ts.map +1 -1
  28. package/dist/generated/model/completeEstimatePreview.d.cts +4 -8
  29. package/dist/generated/model/completeEstimatePreview.d.ts +4 -8
  30. package/dist/generated/model/completeEstimatePreview.d.ts.map +1 -1
  31. package/dist/generated/model/completeEstimatePreviewCustomer.d.cts +4 -51
  32. package/dist/generated/model/completeEstimatePreviewCustomer.d.ts +4 -51
  33. package/dist/generated/model/completeEstimatePreviewCustomer.d.ts.map +1 -1
  34. package/dist/generated/model/completeEstimatePreviewItemsItem.d.cts +2 -2
  35. package/dist/generated/model/completeEstimatePreviewItemsItem.d.ts +2 -2
  36. package/dist/generated/model/completeEstimatePreviewItemsItem.d.ts.map +1 -1
  37. package/dist/generated/model/completeInvoicePreview.d.cts +4 -8
  38. package/dist/generated/model/completeInvoicePreview.d.ts +4 -8
  39. package/dist/generated/model/completeInvoicePreview.d.ts.map +1 -1
  40. package/dist/generated/model/completeInvoicePreviewCustomer.d.cts +4 -51
  41. package/dist/generated/model/completeInvoicePreviewCustomer.d.ts +4 -51
  42. package/dist/generated/model/completeInvoicePreviewCustomer.d.ts.map +1 -1
  43. package/dist/generated/model/completeInvoicePreviewItemsItem.d.cts +2 -2
  44. package/dist/generated/model/completeInvoicePreviewItemsItem.d.ts +2 -2
  45. package/dist/generated/model/completeInvoicePreviewItemsItem.d.ts.map +1 -1
  46. package/dist/generated/model/createAdvanceInvoiceBody.d.cts +6 -10
  47. package/dist/generated/model/createAdvanceInvoiceBody.d.ts +6 -10
  48. package/dist/generated/model/createAdvanceInvoiceBody.d.ts.map +1 -1
  49. package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.cts +4 -51
  50. package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.ts +4 -51
  51. package/dist/generated/model/createAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
  52. package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.cts +1 -1
  53. package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.ts +1 -1
  54. package/dist/generated/model/createAdvanceInvoiceBodyFurs.d.ts.map +1 -1
  55. package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.cts +2 -2
  56. package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.ts +2 -2
  57. package/dist/generated/model/createAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
  58. package/dist/generated/model/createCreditNoteBody.d.cts +6 -10
  59. package/dist/generated/model/createCreditNoteBody.d.ts +6 -10
  60. package/dist/generated/model/createCreditNoteBody.d.ts.map +1 -1
  61. package/dist/generated/model/createCreditNoteBodyCustomer.d.cts +4 -51
  62. package/dist/generated/model/createCreditNoteBodyCustomer.d.ts +4 -51
  63. package/dist/generated/model/createCreditNoteBodyCustomer.d.ts.map +1 -1
  64. package/dist/generated/model/createCreditNoteBodyItemsItem.d.cts +2 -2
  65. package/dist/generated/model/createCreditNoteBodyItemsItem.d.ts +2 -2
  66. package/dist/generated/model/createCreditNoteBodyItemsItem.d.ts.map +1 -1
  67. package/dist/generated/model/createCustomAdvanceInvoiceBody.d.cts +5 -9
  68. package/dist/generated/model/createCustomAdvanceInvoiceBody.d.ts +5 -9
  69. package/dist/generated/model/createCustomAdvanceInvoiceBody.d.ts.map +1 -1
  70. package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.cts +3 -50
  71. package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.ts +3 -50
  72. package/dist/generated/model/createCustomAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
  73. package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.cts +1 -1
  74. package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.ts +1 -1
  75. package/dist/generated/model/createCustomAdvanceInvoiceBodyFurs.d.ts.map +1 -1
  76. package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.cts +2 -2
  77. package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.ts +2 -2
  78. package/dist/generated/model/createCustomAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
  79. package/dist/generated/model/createCustomAdvanceInvoiceBodyPayment.d.cts +1 -1
  80. package/dist/generated/model/createCustomAdvanceInvoiceBodyPayment.d.ts +1 -1
  81. package/dist/generated/model/createCustomCreditNoteBody.d.cts +5 -9
  82. package/dist/generated/model/createCustomCreditNoteBody.d.ts +5 -9
  83. package/dist/generated/model/createCustomCreditNoteBody.d.ts.map +1 -1
  84. package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.cts +3 -50
  85. package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.ts +3 -50
  86. package/dist/generated/model/createCustomCreditNoteBodyCustomer.d.ts.map +1 -1
  87. package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.cts +2 -2
  88. package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.ts +2 -2
  89. package/dist/generated/model/createCustomCreditNoteBodyItemsItem.d.ts.map +1 -1
  90. package/dist/generated/model/createCustomCreditNoteBodyPayment.d.cts +1 -1
  91. package/dist/generated/model/createCustomCreditNoteBodyPayment.d.ts +1 -1
  92. package/dist/generated/model/createCustomEstimateBody.d.cts +5 -9
  93. package/dist/generated/model/createCustomEstimateBody.d.ts +5 -9
  94. package/dist/generated/model/createCustomEstimateBody.d.ts.map +1 -1
  95. package/dist/generated/model/createCustomEstimateBodyCustomer.d.cts +3 -50
  96. package/dist/generated/model/createCustomEstimateBodyCustomer.d.ts +3 -50
  97. package/dist/generated/model/createCustomEstimateBodyCustomer.d.ts.map +1 -1
  98. package/dist/generated/model/createCustomEstimateBodyItemsItem.d.cts +2 -2
  99. package/dist/generated/model/createCustomEstimateBodyItemsItem.d.ts +2 -2
  100. package/dist/generated/model/createCustomEstimateBodyItemsItem.d.ts.map +1 -1
  101. package/dist/generated/model/createCustomInvoiceBody.d.cts +5 -9
  102. package/dist/generated/model/createCustomInvoiceBody.d.ts +5 -9
  103. package/dist/generated/model/createCustomInvoiceBody.d.ts.map +1 -1
  104. package/dist/generated/model/createCustomInvoiceBodyCustomer.d.cts +3 -50
  105. package/dist/generated/model/createCustomInvoiceBodyCustomer.d.ts +3 -50
  106. package/dist/generated/model/createCustomInvoiceBodyCustomer.d.ts.map +1 -1
  107. package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.cts +2 -2
  108. package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.ts +2 -2
  109. package/dist/generated/model/createCustomInvoiceBodyItemsItem.d.ts.map +1 -1
  110. package/dist/generated/model/createCustomInvoiceBodyPayment.d.cts +1 -1
  111. package/dist/generated/model/createCustomInvoiceBodyPayment.d.ts +1 -1
  112. package/dist/generated/model/createDocumentPayment.d.cts +35 -0
  113. package/dist/generated/model/createDocumentPayment.d.ts +35 -0
  114. package/dist/generated/model/createDocumentPayment.d.ts.map +1 -0
  115. package/dist/generated/model/createDocumentPaymentMetadata.d.cts +15 -0
  116. package/dist/generated/model/createDocumentPaymentMetadata.d.ts +15 -0
  117. package/dist/generated/model/createDocumentPaymentMetadata.d.ts.map +1 -0
  118. package/dist/generated/model/createEstimateBody.d.cts +4 -8
  119. package/dist/generated/model/createEstimateBody.d.ts +4 -8
  120. package/dist/generated/model/createEstimateBody.d.ts.map +1 -1
  121. package/dist/generated/model/createEstimateBodyCustomer.d.cts +4 -51
  122. package/dist/generated/model/createEstimateBodyCustomer.d.ts +4 -51
  123. package/dist/generated/model/createEstimateBodyCustomer.d.ts.map +1 -1
  124. package/dist/generated/model/createEstimateBodyItemsItem.d.cts +2 -2
  125. package/dist/generated/model/createEstimateBodyItemsItem.d.ts +2 -2
  126. package/dist/generated/model/createEstimateBodyItemsItem.d.ts.map +1 -1
  127. package/dist/generated/model/createInvoiceBody.d.cts +6 -10
  128. package/dist/generated/model/createInvoiceBody.d.ts +6 -10
  129. package/dist/generated/model/createInvoiceBody.d.ts.map +1 -1
  130. package/dist/generated/model/createInvoiceBodyCustomer.d.cts +4 -51
  131. package/dist/generated/model/createInvoiceBodyCustomer.d.ts +4 -51
  132. package/dist/generated/model/createInvoiceBodyCustomer.d.ts.map +1 -1
  133. package/dist/generated/model/createInvoiceBodyItemsItem.d.cts +2 -2
  134. package/dist/generated/model/createInvoiceBodyItemsItem.d.ts +2 -2
  135. package/dist/generated/model/createInvoiceBodyItemsItem.d.ts.map +1 -1
  136. package/dist/generated/model/createWebhookBodyEventsItem.d.cts +0 -11
  137. package/dist/generated/model/createWebhookBodyEventsItem.d.ts +0 -11
  138. package/dist/generated/model/createWebhookBodyEventsItem.d.ts.map +1 -1
  139. package/dist/generated/model/creditNote.d.cts +6 -11
  140. package/dist/generated/model/creditNote.d.ts +6 -11
  141. package/dist/generated/model/creditNote.d.ts.map +1 -1
  142. package/dist/generated/model/creditNoteItemsItem.d.cts +2 -2
  143. package/dist/generated/model/creditNoteItemsItem.d.ts +2 -2
  144. package/dist/generated/model/creditNoteItemsItem.d.ts.map +1 -1
  145. package/dist/generated/model/documentCustomer.d.cts +61 -0
  146. package/dist/generated/model/documentCustomer.d.ts +61 -0
  147. package/dist/generated/model/documentCustomer.d.ts.map +1 -0
  148. package/dist/generated/model/documentEntity.d.cts +44 -0
  149. package/dist/generated/model/documentEntity.d.ts +44 -0
  150. package/dist/generated/model/documentEntity.d.ts.map +1 -0
  151. package/dist/generated/model/documentEntityBankAccount.d.cts +29 -0
  152. package/dist/generated/model/documentEntityBankAccount.d.ts +29 -0
  153. package/dist/generated/model/documentEntityBankAccount.d.ts.map +1 -0
  154. package/dist/generated/model/documentItemTax.d.cts +18 -0
  155. package/dist/generated/model/documentItemTax.d.ts +18 -0
  156. package/dist/generated/model/documentItemTax.d.ts.map +1 -0
  157. package/dist/generated/model/documentSummaryTax.d.cts +14 -0
  158. package/dist/generated/model/documentSummaryTax.d.ts +14 -0
  159. package/dist/generated/model/documentSummaryTax.d.ts.map +1 -0
  160. package/dist/generated/model/estimate.d.cts +6 -11
  161. package/dist/generated/model/estimate.d.ts +6 -11
  162. package/dist/generated/model/estimate.d.ts.map +1 -1
  163. package/dist/generated/model/estimateItemsItem.d.cts +2 -2
  164. package/dist/generated/model/estimateItemsItem.d.ts +2 -2
  165. package/dist/generated/model/estimateItemsItem.d.ts.map +1 -1
  166. package/dist/generated/model/finaFiscalizationResponse.d.cts +2 -0
  167. package/dist/generated/model/finaFiscalizationResponse.d.ts +2 -0
  168. package/dist/generated/model/finaFiscalizationResponse.d.ts.map +1 -1
  169. package/dist/generated/model/fursFiscalizationResponse.d.cts +5 -1
  170. package/dist/generated/model/fursFiscalizationResponse.d.ts +5 -1
  171. package/dist/generated/model/fursFiscalizationResponse.d.ts.map +1 -1
  172. package/dist/generated/model/index.d.cts +8 -0
  173. package/dist/generated/model/index.d.ts +8 -0
  174. package/dist/generated/model/index.d.ts.map +1 -1
  175. package/dist/generated/model/invoice.d.cts +6 -11
  176. package/dist/generated/model/invoice.d.ts +6 -11
  177. package/dist/generated/model/invoice.d.ts.map +1 -1
  178. package/dist/generated/model/invoiceItemsItem.d.cts +2 -2
  179. package/dist/generated/model/invoiceItemsItem.d.ts +2 -2
  180. package/dist/generated/model/invoiceItemsItem.d.ts.map +1 -1
  181. package/dist/generated/model/partialAdvanceInvoicePreview.d.cts +4 -8
  182. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts +4 -8
  183. package/dist/generated/model/partialAdvanceInvoicePreview.d.ts.map +1 -1
  184. package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.cts +4 -51
  185. package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.ts +4 -51
  186. package/dist/generated/model/partialAdvanceInvoicePreviewCustomer.d.ts.map +1 -1
  187. package/dist/generated/model/partialCreditNotePreview.d.cts +4 -8
  188. package/dist/generated/model/partialCreditNotePreview.d.ts +4 -8
  189. package/dist/generated/model/partialCreditNotePreview.d.ts.map +1 -1
  190. package/dist/generated/model/partialCreditNotePreviewCustomer.d.cts +4 -51
  191. package/dist/generated/model/partialCreditNotePreviewCustomer.d.ts +4 -51
  192. package/dist/generated/model/partialCreditNotePreviewCustomer.d.ts.map +1 -1
  193. package/dist/generated/model/partialEstimatePreview.d.cts +4 -8
  194. package/dist/generated/model/partialEstimatePreview.d.ts +4 -8
  195. package/dist/generated/model/partialEstimatePreview.d.ts.map +1 -1
  196. package/dist/generated/model/partialEstimatePreviewCustomer.d.cts +4 -51
  197. package/dist/generated/model/partialEstimatePreviewCustomer.d.ts +4 -51
  198. package/dist/generated/model/partialEstimatePreviewCustomer.d.ts.map +1 -1
  199. package/dist/generated/model/partialInvoicePreview.d.cts +4 -8
  200. package/dist/generated/model/partialInvoicePreview.d.ts +4 -8
  201. package/dist/generated/model/partialInvoicePreview.d.ts.map +1 -1
  202. package/dist/generated/model/partialInvoicePreviewCustomer.d.cts +4 -51
  203. package/dist/generated/model/partialInvoicePreviewCustomer.d.ts +4 -51
  204. package/dist/generated/model/partialInvoicePreviewCustomer.d.ts.map +1 -1
  205. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.cts +32 -25
  206. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts +32 -25
  207. package/dist/generated/model/registerFursRealEstatePremiseBodyRealEstate.d.ts.map +1 -1
  208. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.cts +15 -0
  209. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts +15 -0
  210. package/dist/generated/model/stripeAppMarketplaceAuthorizeBody.d.ts.map +1 -0
  211. package/dist/generated/model/updateAdvanceInvoiceBody.d.cts +3 -7
  212. package/dist/generated/model/updateAdvanceInvoiceBody.d.ts +3 -7
  213. package/dist/generated/model/updateAdvanceInvoiceBody.d.ts.map +1 -1
  214. package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.cts +3 -50
  215. package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.ts +3 -50
  216. package/dist/generated/model/updateAdvanceInvoiceBodyCustomer.d.ts.map +1 -1
  217. package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.cts +2 -2
  218. package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.ts +2 -2
  219. package/dist/generated/model/updateAdvanceInvoiceBodyItemsItem.d.ts.map +1 -1
  220. package/dist/generated/model/updateCreditNoteBody.d.cts +3 -7
  221. package/dist/generated/model/updateCreditNoteBody.d.ts +3 -7
  222. package/dist/generated/model/updateCreditNoteBody.d.ts.map +1 -1
  223. package/dist/generated/model/updateCreditNoteBodyCustomer.d.cts +3 -50
  224. package/dist/generated/model/updateCreditNoteBodyCustomer.d.ts +3 -50
  225. package/dist/generated/model/updateCreditNoteBodyCustomer.d.ts.map +1 -1
  226. package/dist/generated/model/updateCreditNoteBodyItemsItem.d.cts +2 -2
  227. package/dist/generated/model/updateCreditNoteBodyItemsItem.d.ts +2 -2
  228. package/dist/generated/model/updateCreditNoteBodyItemsItem.d.ts.map +1 -1
  229. package/dist/generated/model/updateEstimateBody.d.cts +3 -7
  230. package/dist/generated/model/updateEstimateBody.d.ts +3 -7
  231. package/dist/generated/model/updateEstimateBody.d.ts.map +1 -1
  232. package/dist/generated/model/updateEstimateBodyCustomer.d.cts +3 -50
  233. package/dist/generated/model/updateEstimateBodyCustomer.d.ts +3 -50
  234. package/dist/generated/model/updateEstimateBodyCustomer.d.ts.map +1 -1
  235. package/dist/generated/model/updateEstimateBodyItemsItem.d.cts +2 -2
  236. package/dist/generated/model/updateEstimateBodyItemsItem.d.ts +2 -2
  237. package/dist/generated/model/updateEstimateBodyItemsItem.d.ts.map +1 -1
  238. package/dist/generated/model/updateInvoiceBody.d.cts +3 -7
  239. package/dist/generated/model/updateInvoiceBody.d.ts +3 -7
  240. package/dist/generated/model/updateInvoiceBody.d.ts.map +1 -1
  241. package/dist/generated/model/updateInvoiceBodyCustomer.d.cts +3 -50
  242. package/dist/generated/model/updateInvoiceBodyCustomer.d.ts +3 -50
  243. package/dist/generated/model/updateInvoiceBodyCustomer.d.ts.map +1 -1
  244. package/dist/generated/model/updateInvoiceBodyItemsItem.d.cts +2 -2
  245. package/dist/generated/model/updateInvoiceBodyItemsItem.d.ts +2 -2
  246. package/dist/generated/model/updateInvoiceBodyItemsItem.d.ts.map +1 -1
  247. package/dist/generated/model/updateWebhookBodyEventsItem.d.cts +0 -11
  248. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts +0 -11
  249. package/dist/generated/model/updateWebhookBodyEventsItem.d.ts.map +1 -1
  250. package/dist/generated/model/webhookResponseEventsItem.d.cts +0 -11
  251. package/dist/generated/model/webhookResponseEventsItem.d.ts +0 -11
  252. package/dist/generated/model/webhookResponseEventsItem.d.ts.map +1 -1
  253. package/dist/generated/model/webhookWithSecretEventsItem.d.cts +0 -11
  254. package/dist/generated/model/webhookWithSecretEventsItem.d.ts +0 -11
  255. package/dist/generated/model/webhookWithSecretEventsItem.d.ts.map +1 -1
  256. package/dist/generated/stripe-app/stripe-app.d.cts +42 -1
  257. package/dist/generated/stripe-app/stripe-app.d.ts +42 -1
  258. package/dist/generated/stripe-app/stripe-app.d.ts.map +1 -1
  259. package/dist/generated-zod/advance-invoices/advance-invoices.d.cts +70 -35
  260. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts +70 -35
  261. package/dist/generated-zod/advance-invoices/advance-invoices.d.ts.map +1 -1
  262. package/dist/generated-zod/credit-notes/credit-notes.d.cts +70 -35
  263. package/dist/generated-zod/credit-notes/credit-notes.d.ts +70 -35
  264. package/dist/generated-zod/credit-notes/credit-notes.d.ts.map +1 -1
  265. package/dist/generated-zod/documents/documents.d.cts +19 -0
  266. package/dist/generated-zod/documents/documents.d.ts +19 -0
  267. package/dist/generated-zod/documents/documents.d.ts.map +1 -1
  268. package/dist/generated-zod/estimates/estimates.d.cts +40 -35
  269. package/dist/generated-zod/estimates/estimates.d.ts +40 -35
  270. package/dist/generated-zod/estimates/estimates.d.ts.map +1 -1
  271. package/dist/generated-zod/furs-premises/furs-premises.d.cts +15 -7
  272. package/dist/generated-zod/furs-premises/furs-premises.d.ts +15 -7
  273. package/dist/generated-zod/furs-premises/furs-premises.d.ts.map +1 -1
  274. package/dist/generated-zod/invoices/invoices.d.cts +77 -35
  275. package/dist/generated-zod/invoices/invoices.d.ts +77 -35
  276. package/dist/generated-zod/invoices/invoices.d.ts.map +1 -1
  277. package/dist/generated-zod/stripe-app/stripe-app.d.cts +10 -0
  278. package/dist/generated-zod/stripe-app/stripe-app.d.ts +10 -0
  279. package/dist/generated-zod/stripe-app/stripe-app.d.ts.map +1 -1
  280. package/dist/generated-zod/webhooks/webhooks.d.cts +0 -66
  281. package/dist/generated-zod/webhooks/webhooks.d.ts +0 -66
  282. package/dist/generated-zod/webhooks/webhooks.d.ts.map +1 -1
  283. package/dist/index.cjs +52 -52
  284. package/dist/index.cjs.map +18 -18
  285. package/dist/index.js +52 -52
  286. package/dist/index.js.map +18 -18
  287. package/dist/sdk/client.d.cts +2 -0
  288. package/dist/sdk/client.d.ts +2 -0
  289. package/dist/sdk/client.d.ts.map +1 -1
  290. package/dist/sdk/documents.d.cts +2 -0
  291. package/dist/sdk/documents.d.ts +2 -0
  292. package/dist/sdk/documents.d.ts.map +1 -1
  293. package/dist/sdk/stripe-app.d.cts +2 -0
  294. package/dist/sdk/stripe-app.d.ts +2 -0
  295. package/dist/sdk/stripe-app.d.ts.map +1 -1
  296. package/package.json +1 -1
@@ -5,14 +5,14 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
+ import type { CreateDocumentPayment } from './createDocumentPayment';
8
9
  import type { CreateInvoiceBodyCustomer } from './createInvoiceBodyCustomer';
9
10
  import type { CreateInvoiceBodyEslog } from './createInvoiceBodyEslog';
10
11
  import type { CreateInvoiceBodyFina } from './createInvoiceBodyFina';
11
12
  import type { CreateInvoiceBodyFurs } from './createInvoiceBodyFurs';
12
- import type { CreateInvoiceBodyIssuer } from './createInvoiceBodyIssuer';
13
13
  import type { CreateInvoiceBodyItemsItem } from './createInvoiceBodyItemsItem';
14
14
  import type { CreateInvoiceBodyMetadata } from './createInvoiceBodyMetadata';
15
- import type { CreateInvoiceBodyPaymentsItem } from './createInvoiceBodyPaymentsItem';
15
+ import type { DocumentEntity } from './documentEntity';
16
16
  export type CreateInvoiceBody = {
17
17
  /** 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. */
18
18
  is_draft?: boolean;
@@ -21,20 +21,16 @@ export type CreateInvoiceBody = {
21
21
  * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
22
22
  */
23
23
  date?: string;
24
- /** Document issuer (entity) information */
25
- issuer?: CreateInvoiceBodyIssuer;
24
+ issuer?: DocumentEntity;
26
25
  /**
27
26
  * Referenced Customer ID. Required if customer is not provided.
28
27
  * @nullable
29
28
  */
30
29
  customer_id?: string | null;
31
- /**
32
- * Customer of the invoice.
30
+ /** Customer of the invoice.
33
31
  Both `customer` and `customer_id` are optional - invoices can be created without customer information.
34
32
  If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
35
- If only `customer` is provided, the system checks for duplicates by `tax_number` or `name`.
36
- * @nullable
37
- */
33
+ If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
38
34
  customer?: CreateInvoiceBodyCustomer;
39
35
  /**
40
36
  * Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
@@ -87,7 +83,7 @@ export type CreateInvoiceBody = {
87
83
  * 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.
88
84
  * @nullable
89
85
  */
90
- payments?: CreateInvoiceBodyPaymentsItem[] | null;
86
+ payments?: CreateDocumentPayment[] | null;
91
87
  /**
92
88
  * FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
93
89
  * @nullable
@@ -5,14 +5,14 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
+ import type { CreateDocumentPayment } from './createDocumentPayment';
8
9
  import type { CreateInvoiceBodyCustomer } from './createInvoiceBodyCustomer';
9
10
  import type { CreateInvoiceBodyEslog } from './createInvoiceBodyEslog';
10
11
  import type { CreateInvoiceBodyFina } from './createInvoiceBodyFina';
11
12
  import type { CreateInvoiceBodyFurs } from './createInvoiceBodyFurs';
12
- import type { CreateInvoiceBodyIssuer } from './createInvoiceBodyIssuer';
13
13
  import type { CreateInvoiceBodyItemsItem } from './createInvoiceBodyItemsItem';
14
14
  import type { CreateInvoiceBodyMetadata } from './createInvoiceBodyMetadata';
15
- import type { CreateInvoiceBodyPaymentsItem } from './createInvoiceBodyPaymentsItem';
15
+ import type { DocumentEntity } from './documentEntity';
16
16
  export type CreateInvoiceBody = {
17
17
  /** 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. */
18
18
  is_draft?: boolean;
@@ -21,20 +21,16 @@ export type CreateInvoiceBody = {
21
21
  * @pattern ^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?)?$
22
22
  */
23
23
  date?: string;
24
- /** Document issuer (entity) information */
25
- issuer?: CreateInvoiceBodyIssuer;
24
+ issuer?: DocumentEntity;
26
25
  /**
27
26
  * Referenced Customer ID. Required if customer is not provided.
28
27
  * @nullable
29
28
  */
30
29
  customer_id?: string | null;
31
- /**
32
- * Customer of the invoice.
30
+ /** Customer of the invoice.
33
31
  Both `customer` and `customer_id` are optional - invoices can be created without customer information.
34
32
  If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
35
- If only `customer` is provided, the system checks for duplicates by `tax_number` or `name`.
36
- * @nullable
37
- */
33
+ If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`). */
38
34
  customer?: CreateInvoiceBodyCustomer;
39
35
  /**
40
36
  * Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
@@ -87,7 +83,7 @@ export type CreateInvoiceBody = {
87
83
  * 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.
88
84
  * @nullable
89
85
  */
90
- payments?: CreateInvoiceBodyPaymentsItem[] | null;
86
+ payments?: CreateDocumentPayment[] | null;
91
87
  /**
92
88
  * FURS fiscalization data (Slovenia). Required when FURS is enabled for the entity. Must specify business_premise_name and electronic_device_name.
93
89
  * @nullable
@@ -1 +1 @@
1
- {"version":3,"file":"createInvoiceBody.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createInvoiceBody.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,yMAAyM;IACzM,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC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3K,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,qBAAqB,EAAE,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"}
@@ -5,66 +5,19 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
+ import type { DocumentEntity } from './documentEntity';
8
9
  /**
9
10
  * Customer of the invoice.
10
11
  Both `customer` and `customer_id` are optional - invoices can be created without customer information.
11
12
  If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
12
- If only `customer` is provided, the system checks for duplicates by `tax_number` or `name`.
13
- * @nullable
13
+ If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
14
14
  */
15
- export type CreateInvoiceBodyCustomer = {
16
- /** @nullable */
17
- name?: string | null;
18
- /** @nullable */
19
- email?: string | null;
20
- /** @nullable */
21
- address?: string | null;
22
- /** @nullable */
23
- address_2?: string | null;
24
- /** @nullable */
25
- post_code?: string | null;
26
- /** @nullable */
27
- city?: string | null;
28
- /** @nullable */
29
- state?: string | null;
30
- /** @nullable */
31
- country?: string | null;
32
- /**
33
- * @minLength 2
34
- * @maxLength 2
35
- * @nullable
36
- */
37
- country_code?: string | null;
38
- /** @nullable */
39
- tax_number?: string | null;
40
- /** @nullable */
41
- tax_number_2?: string | null;
42
- /** @nullable */
43
- company_number?: string | null;
44
- /** @nullable */
45
- bank_account?: {
46
- /** Account type determines which fields are used */
47
- type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
48
- /** Display name for this account. Falls back to account number if not set */
49
- name?: string;
50
- /** Bank name */
51
- bank_name?: string;
52
- /** IBAN (for type=iban) */
53
- iban?: string;
54
- /** Account number (for us_domestic, uk_domestic, other) */
55
- account_number?: string;
56
- /** BIC/SWIFT code for international transfers */
57
- bic?: string;
58
- /** US ABA routing number (for type=us_domestic) */
59
- routing_number?: string;
60
- /** UK sort code (for type=uk_domestic) */
61
- sort_code?: string;
62
- } | null;
15
+ export type CreateInvoiceBodyCustomer = DocumentEntity & ({
63
16
  /** Whether to save (create new or update existing) the customer data.
64
17
  Defaults to `true`.
65
18
  When `true` with `customer_id`, updates the existing customer.
66
19
  When `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.
67
20
  When `false`, customer data is stored inline on the document only. */
68
21
  save_customer?: boolean;
69
- } | null;
22
+ } | null);
70
23
  //# sourceMappingURL=createInvoiceBodyCustomer.d.ts.map
@@ -5,66 +5,19 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
+ import type { DocumentEntity } from './documentEntity';
8
9
  /**
9
10
  * Customer of the invoice.
10
11
  Both `customer` and `customer_id` are optional - invoices can be created without customer information.
11
12
  If `customer_id` is provided with `save_customer=true`, the existing customer will be updated.
12
- If only `customer` is provided, the system checks for duplicates by `tax_number` or `name`.
13
- * @nullable
13
+ If only `customer` is provided, the system checks for duplicates by `tax_number` or `company_number` (with optional `country_code`).
14
14
  */
15
- export type CreateInvoiceBodyCustomer = {
16
- /** @nullable */
17
- name?: string | null;
18
- /** @nullable */
19
- email?: string | null;
20
- /** @nullable */
21
- address?: string | null;
22
- /** @nullable */
23
- address_2?: string | null;
24
- /** @nullable */
25
- post_code?: string | null;
26
- /** @nullable */
27
- city?: string | null;
28
- /** @nullable */
29
- state?: string | null;
30
- /** @nullable */
31
- country?: string | null;
32
- /**
33
- * @minLength 2
34
- * @maxLength 2
35
- * @nullable
36
- */
37
- country_code?: string | null;
38
- /** @nullable */
39
- tax_number?: string | null;
40
- /** @nullable */
41
- tax_number_2?: string | null;
42
- /** @nullable */
43
- company_number?: string | null;
44
- /** @nullable */
45
- bank_account?: {
46
- /** Account type determines which fields are used */
47
- type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
48
- /** Display name for this account. Falls back to account number if not set */
49
- name?: string;
50
- /** Bank name */
51
- bank_name?: string;
52
- /** IBAN (for type=iban) */
53
- iban?: string;
54
- /** Account number (for us_domestic, uk_domestic, other) */
55
- account_number?: string;
56
- /** BIC/SWIFT code for international transfers */
57
- bic?: string;
58
- /** US ABA routing number (for type=us_domestic) */
59
- routing_number?: string;
60
- /** UK sort code (for type=uk_domestic) */
61
- sort_code?: string;
62
- } | null;
15
+ export type CreateInvoiceBodyCustomer = DocumentEntity & ({
63
16
  /** Whether to save (create new or update existing) the customer data.
64
17
  Defaults to `true`.
65
18
  When `true` with `customer_id`, updates the existing customer.
66
19
  When `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.
67
20
  When `false`, customer data is stored inline on the document only. */
68
21
  save_customer?: boolean;
69
- } | null;
22
+ } | null);
70
23
  //# sourceMappingURL=createInvoiceBodyCustomer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createInvoiceBodyCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createInvoiceBodyCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB;IAChB,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","sourceRoot":"","sources":["../../../src/generated/model/createInvoiceBodyCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD;;;;;GAKG;AACH,MAAM,MAAM,yBAAyB,GAAG,cAAc,GAAG,CAAC;IACxD;;;;uEAImE;IACnE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,IAAI,CAAC,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  import type { CreateInvoiceBodyItemsItemMetadata } from './createInvoiceBodyItemsItemMetadata';
9
- import type { CreateInvoiceBodyItemsItemTaxesItem } from './createInvoiceBodyItemsItemTaxesItem';
9
+ import type { DocumentItemTax } from './documentItemTax';
10
10
  import type { LineDiscount } from './lineDiscount';
11
11
  export type CreateInvoiceBodyItemsItem = {
12
12
  /**
@@ -39,7 +39,7 @@ export type CreateInvoiceBodyItemsItem = {
39
39
  */
40
40
  unit?: string | null;
41
41
  /** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
42
- taxes?: CreateInvoiceBodyItemsItemTaxesItem[];
42
+ taxes?: DocumentItemTax[];
43
43
  /**
44
44
  * Line discounts (max 5). Applied sequentially to line subtotal.
45
45
  * @maxItems 5
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  import type { CreateInvoiceBodyItemsItemMetadata } from './createInvoiceBodyItemsItemMetadata';
9
- import type { CreateInvoiceBodyItemsItemTaxesItem } from './createInvoiceBodyItemsItemTaxesItem';
9
+ import type { DocumentItemTax } from './documentItemTax';
10
10
  import type { LineDiscount } from './lineDiscount';
11
11
  export type CreateInvoiceBodyItemsItem = {
12
12
  /**
@@ -39,7 +39,7 @@ export type CreateInvoiceBodyItemsItem = {
39
39
  */
40
40
  unit?: string | null;
41
41
  /** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
42
- taxes?: CreateInvoiceBodyItemsItemTaxesItem[];
42
+ taxes?: DocumentItemTax[];
43
43
  /**
44
44
  * Line discounts (max 5). Applied sequentially to line subtotal.
45
45
  * @maxItems 5
@@ -1 +1 @@
1
- {"version":3,"file":"createInvoiceBodyItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createInvoiceBodyItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;uCAGmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,CAAC,EAAE,mCAAmC,EAAE,CAAC;IAC9C;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,kCAAkC,CAAC;IAC9C;;kEAE8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
1
+ {"version":3,"file":"createInvoiceBodyItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createInvoiceBodyItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;uCAEmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;uCAGmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,kCAAkC,CAAC;IAC9C;;kEAE8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -54,16 +54,5 @@ export declare const CreateWebhookBodyEventsItem: {
54
54
  readonly stripe_appconnected: "stripe_app.connected";
55
55
  readonly stripe_appdisconnected: "stripe_app.disconnected";
56
56
  readonly stripe_appsettings_updated: "stripe_app.settings_updated";
57
- readonly ordercreated: "order.created";
58
- readonly orderupdated: "order.updated";
59
- readonly orderdeleted: "order.deleted";
60
- readonly orderrestored: "order.restored";
61
- readonly orderpermanently_deleted: "order.permanently_deleted";
62
- readonly orderprocessed: "order.processed";
63
- readonly ordercancelled: "order.cancelled";
64
- readonly orderfailed: "order.failed";
65
- readonly order_integrationcreated: "order_integration.created";
66
- readonly order_integrationupdated: "order_integration.updated";
67
- readonly order_integrationdeleted: "order_integration.deleted";
68
57
  };
69
58
  //# sourceMappingURL=createWebhookBodyEventsItem.d.ts.map
@@ -54,16 +54,5 @@ export declare const CreateWebhookBodyEventsItem: {
54
54
  readonly stripe_appconnected: "stripe_app.connected";
55
55
  readonly stripe_appdisconnected: "stripe_app.disconnected";
56
56
  readonly stripe_appsettings_updated: "stripe_app.settings_updated";
57
- readonly ordercreated: "order.created";
58
- readonly orderupdated: "order.updated";
59
- readonly orderdeleted: "order.deleted";
60
- readonly orderrestored: "order.restored";
61
- readonly orderpermanently_deleted: "order.permanently_deleted";
62
- readonly orderprocessed: "order.processed";
63
- readonly ordercancelled: "order.cancelled";
64
- readonly orderfailed: "order.failed";
65
- readonly order_integrationcreated: "order_integration.created";
66
- readonly order_integrationupdated: "order_integration.updated";
67
- readonly order_integrationdeleted: "order_integration.deleted";
68
57
  };
69
58
  //# sourceMappingURL=createWebhookBodyEventsItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWebhookBodyEventsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createWebhookBodyEventsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2D9B,CAAC"}
1
+ {"version":3,"file":"createWebhookBodyEventsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/createWebhookBodyEventsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgD9B,CAAC"}
@@ -5,13 +5,13 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
- import type { CreditNoteCustomer } from './creditNoteCustomer';
9
- import type { CreditNoteIssuer } from './creditNoteIssuer';
10
8
  import type { CreditNoteItemsItem } from './creditNoteItemsItem';
11
9
  import type { CreditNoteMetadata } from './creditNoteMetadata';
12
- import type { CreditNoteTaxesItem } from './creditNoteTaxesItem';
13
10
  import type { CreditNoteTransactionType } from './creditNoteTransactionType';
11
+ import type { DocumentCustomer } from './documentCustomer';
12
+ import type { DocumentEntity } from './documentEntity';
14
13
  import type { DocumentRelation } from './documentRelation';
14
+ import type { DocumentSummaryTax } from './documentSummaryTax';
15
15
  import type { EslogData } from './eslogData';
16
16
  import type { ExchangeRate } from './exchangeRate';
17
17
  import type { FinaFiscalizationResponse } from './finaFiscalizationResponse';
@@ -29,18 +29,13 @@ export interface CreditNote {
29
29
  is_draft: boolean;
30
30
  /** Date the credit note was created (ISO 8601 datetime at midnight UTC) */
31
31
  date: string;
32
- /** Document issuer (entity) information */
33
- issuer: CreditNoteIssuer;
32
+ issuer: DocumentEntity;
34
33
  /**
35
34
  * @maxLength 36
36
35
  * @nullable
37
36
  */
38
37
  customer_id?: string | null;
39
- /**
40
- * Customer information
41
- * @nullable
42
- */
43
- customer?: CreditNoteCustomer;
38
+ customer?: DocumentCustomer | null;
44
39
  /**
45
40
  * Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
46
41
  * @nullable
@@ -67,7 +62,7 @@ export interface CreditNote {
67
62
  */
68
63
  total_with_tax: number;
69
64
  /** Applied taxes summary */
70
- taxes: CreditNoteTaxesItem[];
65
+ taxes: DocumentSummaryTax[];
71
66
  /** @maxLength 3 */
72
67
  currency_code: string;
73
68
  /** @maxLength 36 */
@@ -5,13 +5,13 @@
5
5
  * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
- import type { CreditNoteCustomer } from './creditNoteCustomer';
9
- import type { CreditNoteIssuer } from './creditNoteIssuer';
10
8
  import type { CreditNoteItemsItem } from './creditNoteItemsItem';
11
9
  import type { CreditNoteMetadata } from './creditNoteMetadata';
12
- import type { CreditNoteTaxesItem } from './creditNoteTaxesItem';
13
10
  import type { CreditNoteTransactionType } from './creditNoteTransactionType';
11
+ import type { DocumentCustomer } from './documentCustomer';
12
+ import type { DocumentEntity } from './documentEntity';
14
13
  import type { DocumentRelation } from './documentRelation';
14
+ import type { DocumentSummaryTax } from './documentSummaryTax';
15
15
  import type { EslogData } from './eslogData';
16
16
  import type { ExchangeRate } from './exchangeRate';
17
17
  import type { FinaFiscalizationResponse } from './finaFiscalizationResponse';
@@ -29,18 +29,13 @@ export interface CreditNote {
29
29
  is_draft: boolean;
30
30
  /** Date the credit note was created (ISO 8601 datetime at midnight UTC) */
31
31
  date: string;
32
- /** Document issuer (entity) information */
33
- issuer: CreditNoteIssuer;
32
+ issuer: DocumentEntity;
34
33
  /**
35
34
  * @maxLength 36
36
35
  * @nullable
37
36
  */
38
37
  customer_id?: string | null;
39
- /**
40
- * Customer information
41
- * @nullable
42
- */
43
- customer?: CreditNoteCustomer;
38
+ customer?: DocumentCustomer | null;
44
39
  /**
45
40
  * Note for the document. If not provided, defaults to entity's document-type-specific note setting. Pass empty string to explicitly set no note.
46
41
  * @nullable
@@ -67,7 +62,7 @@ export interface CreditNote {
67
62
  */
68
63
  total_with_tax: number;
69
64
  /** Applied taxes summary */
70
- taxes: CreditNoteTaxesItem[];
65
+ taxes: DocumentSummaryTax[];
71
66
  /** @maxLength 3 */
72
67
  currency_code: string;
73
68
  /** @maxLength 36 */
@@ -1 +1 @@
1
- {"version":3,"file":"creditNote.d.ts","sourceRoot":"","sources":["../../../src/generated/model/creditNote.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MA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AAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,kBAAkB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACzC"}
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  import type { CreditNoteItemsItemMetadata } from './creditNoteItemsItemMetadata';
9
- import type { CreditNoteItemsItemTaxesItem } from './creditNoteItemsItemTaxesItem';
9
+ import type { DocumentItemTax } from './documentItemTax';
10
10
  import type { LineDiscount } from './lineDiscount';
11
11
  export type CreditNoteItemsItem = {
12
12
  /** @maxLength 36 */
@@ -35,7 +35,7 @@ export type CreditNoteItemsItem = {
35
35
  */
36
36
  unit?: string | null;
37
37
  /** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
38
- taxes: CreditNoteItemsItemTaxesItem[];
38
+ taxes: DocumentItemTax[];
39
39
  /**
40
40
  * Line discounts (max 5). Applied sequentially to line subtotal.
41
41
  * @maxItems 5
@@ -6,7 +6,7 @@
6
6
  * OpenAPI spec version: 1.0.0
7
7
  */
8
8
  import type { CreditNoteItemsItemMetadata } from './creditNoteItemsItemMetadata';
9
- import type { CreditNoteItemsItemTaxesItem } from './creditNoteItemsItemTaxesItem';
9
+ import type { DocumentItemTax } from './documentItemTax';
10
10
  import type { LineDiscount } from './lineDiscount';
11
11
  export type CreditNoteItemsItem = {
12
12
  /** @maxLength 36 */
@@ -35,7 +35,7 @@ export type CreditNoteItemsItem = {
35
35
  */
36
36
  unit?: string | null;
37
37
  /** Applied taxes (provide rate to create new tax, or tax_id to use existing tax) */
38
- taxes: CreditNoteItemsItemTaxesItem[];
38
+ taxes: DocumentItemTax[];
39
39
  /**
40
40
  * Line discounts (max 5). Applied sequentially to line subtotal.
41
41
  * @maxItems 5
@@ -1 +1 @@
1
- {"version":3,"file":"creditNoteItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/creditNoteItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,EAAE,4BAA4B,EAAE,CAAC;IACtC;;;OAGG;IACH,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"creditNoteItemsItem.d.ts","sourceRoot":"","sources":["../../../src/generated/model/creditNoteItemsItem.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAChC,oBAAoB;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB;IAChB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oFAAoF;IACpF,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB;;;OAGG;IACH,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Generated by orval v8.2.0 🍺
3
+ * Do not edit manually.
4
+ * Space Invoices API
5
+ * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ /**
9
+ * Customer information
10
+ * @nullable
11
+ */
12
+ export type DocumentCustomer = {
13
+ /** @nullable */
14
+ name?: string | null;
15
+ /** @nullable */
16
+ email?: string | null;
17
+ /** @nullable */
18
+ address?: string | null;
19
+ /** @nullable */
20
+ address_2?: string | null;
21
+ /** @nullable */
22
+ post_code?: string | null;
23
+ /** @nullable */
24
+ city?: string | null;
25
+ /** @nullable */
26
+ state?: string | null;
27
+ /** @nullable */
28
+ country?: string | null;
29
+ /**
30
+ * @minLength 2
31
+ * @maxLength 2
32
+ * @nullable
33
+ */
34
+ country_code?: string | null;
35
+ /** @nullable */
36
+ tax_number?: string | null;
37
+ /** @nullable */
38
+ tax_number_2?: string | null;
39
+ /** @nullable */
40
+ company_number?: string | null;
41
+ /** @nullable */
42
+ bank_account?: {
43
+ /** Account type determines which fields are used */
44
+ type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
45
+ /** Display name for this account. Falls back to account number if not set */
46
+ name?: string;
47
+ /** Bank name */
48
+ bank_name?: string;
49
+ /** IBAN (for type=iban) */
50
+ iban?: string;
51
+ /** Account number (for us_domestic, uk_domestic, other) */
52
+ account_number?: string;
53
+ /** BIC/SWIFT code for international transfers */
54
+ bic?: string;
55
+ /** US ABA routing number (for type=us_domestic) */
56
+ routing_number?: string;
57
+ /** UK sort code (for type=uk_domestic) */
58
+ sort_code?: string;
59
+ } | null;
60
+ } | null;
61
+ //# sourceMappingURL=documentCustomer.d.ts.map
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Generated by orval v8.2.0 🍺
3
+ * Do not edit manually.
4
+ * Space Invoices API
5
+ * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking.
6
+ * OpenAPI spec version: 1.0.0
7
+ */
8
+ /**
9
+ * Customer information
10
+ * @nullable
11
+ */
12
+ export type DocumentCustomer = {
13
+ /** @nullable */
14
+ name?: string | null;
15
+ /** @nullable */
16
+ email?: string | null;
17
+ /** @nullable */
18
+ address?: string | null;
19
+ /** @nullable */
20
+ address_2?: string | null;
21
+ /** @nullable */
22
+ post_code?: string | null;
23
+ /** @nullable */
24
+ city?: string | null;
25
+ /** @nullable */
26
+ state?: string | null;
27
+ /** @nullable */
28
+ country?: string | null;
29
+ /**
30
+ * @minLength 2
31
+ * @maxLength 2
32
+ * @nullable
33
+ */
34
+ country_code?: string | null;
35
+ /** @nullable */
36
+ tax_number?: string | null;
37
+ /** @nullable */
38
+ tax_number_2?: string | null;
39
+ /** @nullable */
40
+ company_number?: string | null;
41
+ /** @nullable */
42
+ bank_account?: {
43
+ /** Account type determines which fields are used */
44
+ type?: 'iban' | 'us_domestic' | 'uk_domestic' | 'other';
45
+ /** Display name for this account. Falls back to account number if not set */
46
+ name?: string;
47
+ /** Bank name */
48
+ bank_name?: string;
49
+ /** IBAN (for type=iban) */
50
+ iban?: string;
51
+ /** Account number (for us_domestic, uk_domestic, other) */
52
+ account_number?: string;
53
+ /** BIC/SWIFT code for international transfers */
54
+ bic?: string;
55
+ /** US ABA routing number (for type=us_domestic) */
56
+ routing_number?: string;
57
+ /** UK sort code (for type=uk_domestic) */
58
+ sort_code?: string;
59
+ } | null;
60
+ } | null;
61
+ //# sourceMappingURL=documentCustomer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentCustomer.d.ts","sourceRoot":"","sources":["../../../src/generated/model/documentCustomer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB;IAChB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gBAAgB;IAChB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gBAAgB;IAChB,YAAY,CAAC,EAAE;QACf,oDAAoD;QACpD,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,aAAa,GAAG,OAAO,CAAC;QACxD,6EAA6E;QAC7E,IAAI,CAAC,EAAE,MAAM,CAA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