nordlet 0.3.9 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) hide show
  1. package/dist/Client.d.ts +6 -0
  2. package/dist/Client.js +28 -20
  3. package/dist/api/resources/account/types/MeAccountResponse.d.ts +3 -0
  4. package/dist/api/resources/bank/client/Client.d.ts +65 -0
  5. package/dist/api/resources/bank/client/Client.js +236 -0
  6. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +9 -0
  7. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +9 -0
  8. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +9 -0
  9. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +9 -0
  10. package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.d.ts +9 -0
  11. package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.js +3 -0
  12. package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.d.ts +12 -0
  13. package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.js +3 -0
  14. package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.d.ts +48 -0
  15. package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.js +31 -0
  16. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
  17. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
  18. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +1 -0
  19. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +1 -0
  20. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
  21. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
  22. package/dist/api/resources/bank/client/requests/index.d.ts +5 -2
  23. package/dist/api/resources/bank/client/requests/index.js +7 -1
  24. package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +9 -0
  25. package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +9 -0
  26. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +9 -0
  27. package/dist/api/resources/bank/types/AccountsListBankResponse.js +15 -0
  28. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +9 -0
  29. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +9 -0
  30. package/dist/api/resources/bank/types/SecuritiesGetBankResponse.d.ts +50 -0
  31. package/dist/api/resources/bank/types/SecuritiesGetBankResponse.js +17 -0
  32. package/dist/api/resources/bank/types/SecuritiesImportBankResponse.d.ts +14 -0
  33. package/dist/api/resources/bank/types/SecuritiesImportBankResponse.js +3 -0
  34. package/dist/api/resources/bank/types/SecuritiesListBankResponse.d.ts +28 -0
  35. package/dist/api/resources/bank/types/SecuritiesListBankResponse.js +3 -0
  36. package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
  37. package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
  38. package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
  39. package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
  40. package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
  41. package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
  42. package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
  43. package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
  44. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
  45. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
  46. package/dist/api/resources/bank/types/index.d.ts +3 -0
  47. package/dist/api/resources/bank/types/index.js +3 -0
  48. package/dist/api/resources/billing/client/Client.d.ts +131 -0
  49. package/dist/api/resources/billing/client/Client.js +479 -0
  50. package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.d.ts +16 -0
  51. package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.js +11 -0
  52. package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.d.ts +11 -0
  53. package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.js +3 -0
  54. package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.d.ts +9 -0
  55. package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.js +3 -0
  56. package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.d.ts +9 -0
  57. package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.js +3 -0
  58. package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.d.ts +22 -0
  59. package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.js +17 -0
  60. package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.d.ts +9 -0
  61. package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.js +3 -0
  62. package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.d.ts +6 -0
  63. package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.js +4 -0
  64. package/dist/api/resources/billing/client/requests/index.d.ts +6 -0
  65. package/dist/api/resources/billing/client/requests/index.js +5 -1
  66. package/dist/api/resources/billing/types/AccountGetBillingResponse.d.ts +18 -2
  67. package/dist/api/resources/billing/types/AccountGetBillingResponse.js +4 -0
  68. package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.d.ts +70 -0
  69. package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.js +21 -0
  70. package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.d.ts +70 -0
  71. package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.js +21 -0
  72. package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.d.ts +70 -0
  73. package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.js +21 -0
  74. package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.d.ts +18 -2
  75. package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.js +4 -0
  76. package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.d.ts +70 -0
  77. package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.js +21 -0
  78. package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.d.ts +4 -0
  79. package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.js +3 -0
  80. package/dist/api/resources/billing/types/TopupConfirmBillingResponse.d.ts +70 -0
  81. package/dist/api/resources/billing/types/TopupConfirmBillingResponse.js +21 -0
  82. package/dist/api/resources/billing/types/UsageListBillingResponse.d.ts +1 -0
  83. package/dist/api/resources/billing/types/UsageListBillingResponse.js +1 -0
  84. package/dist/api/resources/billing/types/index.d.ts +6 -0
  85. package/dist/api/resources/billing/types/index.js +6 -0
  86. package/dist/api/resources/capture/client/Client.d.ts +2 -0
  87. package/dist/api/resources/capture/client/Client.js +2 -0
  88. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +29 -0
  89. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
  90. package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
  91. package/dist/api/resources/capture/client/requests/index.js +3 -1
  92. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +93 -0
  93. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
  94. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
  95. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
  96. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
  97. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
  98. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
  99. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
  100. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
  101. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
  102. package/dist/api/resources/declarations/client/Client.d.ts +93 -1
  103. package/dist/api/resources/declarations/client/Client.js +325 -1
  104. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
  105. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
  106. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
  107. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
  108. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
  109. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
  110. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
  111. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
  112. package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
  113. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
  114. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
  115. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
  116. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
  117. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
  118. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
  119. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
  120. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
  121. package/dist/api/resources/declarations/types/index.d.ts +4 -0
  122. package/dist/api/resources/declarations/types/index.js +4 -0
  123. package/dist/api/resources/index.d.ts +6 -0
  124. package/dist/api/resources/index.js +7 -1
  125. package/dist/api/resources/inventory/client/Client.d.ts +22 -0
  126. package/dist/api/resources/inventory/client/Client.js +80 -0
  127. package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
  128. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
  129. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
  130. package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
  131. package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
  132. package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
  133. package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
  134. package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
  135. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
  136. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
  137. package/dist/api/resources/inventory/types/index.d.ts +1 -0
  138. package/dist/api/resources/inventory/types/index.js +1 -0
  139. package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
  140. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +8 -0
  141. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +8 -0
  142. package/dist/api/resources/partners/client/requests/CreatePartnersRequest.d.ts +0 -2
  143. package/dist/api/resources/partners/client/requests/FindOrCreatePartnersRequest.d.ts +0 -2
  144. package/dist/api/resources/partners/client/requests/UpdatePartnersRequest.d.ts +0 -2
  145. package/dist/api/resources/partners/types/CreatePartnersResponse.d.ts +0 -2
  146. package/dist/api/resources/partners/types/FindOrCreatePartnersResponse.d.ts +0 -2
  147. package/dist/api/resources/partners/types/GetPartnersResponse.d.ts +0 -2
  148. package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +0 -2
  149. package/dist/api/resources/partners/types/UpdatePartnersResponse.d.ts +0 -2
  150. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +1 -0
  151. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +1 -0
  152. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +1 -0
  153. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +1 -0
  154. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +1 -0
  155. package/dist/api/resources/peppol/client/Client.d.ts +58 -0
  156. package/dist/api/resources/peppol/client/Client.js +207 -0
  157. package/dist/api/resources/peppol/client/index.d.ts +1 -0
  158. package/dist/api/resources/peppol/client/index.js +17 -0
  159. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
  160. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
  161. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
  162. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
  163. package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
  164. package/dist/api/resources/peppol/client/requests/index.js +2 -0
  165. package/dist/api/resources/peppol/exports.d.ts +2 -0
  166. package/dist/api/resources/peppol/exports.js +21 -0
  167. package/dist/api/resources/peppol/index.d.ts +2 -0
  168. package/dist/api/resources/peppol/index.js +18 -0
  169. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
  170. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
  171. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
  172. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
  173. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
  174. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
  175. package/dist/api/resources/peppol/types/index.d.ts +3 -0
  176. package/dist/api/resources/peppol/types/index.js +19 -0
  177. package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
  178. package/dist/api/resources/platformSellers/client/Client.js +458 -0
  179. package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
  180. package/dist/api/resources/platformSellers/client/index.js +17 -0
  181. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
  182. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
  183. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
  184. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
  185. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
  186. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
  187. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
  188. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
  189. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
  190. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
  191. package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
  192. package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
  193. package/dist/api/resources/platformSellers/exports.d.ts +2 -0
  194. package/dist/api/resources/platformSellers/exports.js +21 -0
  195. package/dist/api/resources/platformSellers/index.d.ts +2 -0
  196. package/dist/api/resources/platformSellers/index.js +18 -0
  197. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
  198. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
  199. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
  200. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
  201. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
  202. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
  203. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
  204. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
  205. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
  206. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
  207. package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
  208. package/dist/api/resources/platformSellers/types/index.js +21 -0
  209. package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
  210. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
  211. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
  212. package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
  213. package/dist/api/resources/sales/client/Client.d.ts +134 -0
  214. package/dist/api/resources/sales/client/Client.js +482 -0
  215. package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.d.ts +70 -0
  216. package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.js +27 -0
  217. package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.d.ts +9 -0
  218. package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.js +3 -0
  219. package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.d.ts +9 -0
  220. package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.js +3 -0
  221. package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.d.ts +48 -0
  222. package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.js +31 -0
  223. package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.d.ts +71 -0
  224. package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.js +27 -0
  225. package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
  226. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
  227. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
  228. package/dist/api/resources/sales/client/requests/index.d.ts +6 -0
  229. package/dist/api/resources/sales/client/requests/index.js +7 -1
  230. package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.d.ts +55 -0
  231. package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.js +16 -0
  232. package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.d.ts +3 -0
  233. package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.js +3 -0
  234. package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.d.ts +55 -0
  235. package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.js +16 -0
  236. package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.d.ts +69 -0
  237. package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.js +22 -0
  238. package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.d.ts +55 -0
  239. package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.js +16 -0
  240. package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
  241. package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
  242. package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
  243. package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
  244. package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
  245. package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
  246. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
  247. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
  248. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
  249. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
  250. package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
  251. package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
  252. package/dist/api/resources/sales/types/index.d.ts +6 -0
  253. package/dist/api/resources/sales/types/index.js +6 -0
  254. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +4 -0
  255. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +4 -0
  256. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +4 -0
  257. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +4 -0
  258. package/package.json +1 -1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FlatRateConfirmBillingResponse = void 0;
5
+ var FlatRateConfirmBillingResponse;
6
+ (function (FlatRateConfirmBillingResponse) {
7
+ FlatRateConfirmBillingResponse.Plan = {
8
+ Starter: "starter",
9
+ Business: "business",
10
+ Scale: "scale",
11
+ };
12
+ FlatRateConfirmBillingResponse.AccountType = {
13
+ FlatRate: "flat_rate",
14
+ PerRequest: "per_request",
15
+ };
16
+ FlatRateConfirmBillingResponse.Status = {
17
+ Trial: "trial",
18
+ Active: "active",
19
+ Suspended: "suspended",
20
+ };
21
+ })(FlatRateConfirmBillingResponse || (exports.FlatRateConfirmBillingResponse = FlatRateConfirmBillingResponse = {}));
@@ -0,0 +1,4 @@
1
+ export interface FlatRateCreateBillingResponse {
2
+ url: string;
3
+ sessionId: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,70 @@
1
+ export interface TopupConfirmBillingResponse {
2
+ plan: TopupConfirmBillingResponse.Plan;
3
+ accountType: TopupConfirmBillingResponse.AccountType;
4
+ status: TopupConfirmBillingResponse.Status;
5
+ balanceCents: number;
6
+ trialEndsAt: string | null;
7
+ firstTopUpAt: string | null;
8
+ lastChargedDate: string | null;
9
+ paymentsConfigured: boolean;
10
+ hasPaymentAccount: boolean;
11
+ hasSubscription: boolean;
12
+ paymentFailedAt: string | null;
13
+ paymentFailedInvoiceUrl: string | null;
14
+ monthToDate: TopupConfirmBillingResponse.MonthToDate;
15
+ plans: Record<string, TopupConfirmBillingResponse.Plans.Value>;
16
+ apiRequestEur: string;
17
+ topUp: TopupConfirmBillingResponse.TopUp;
18
+ autoTopUp: TopupConfirmBillingResponse.AutoTopUp;
19
+ overdraftCapCents: number;
20
+ overdraftCapMaxCents: number;
21
+ trialDays: number;
22
+ }
23
+ export declare namespace TopupConfirmBillingResponse {
24
+ const Plan: {
25
+ readonly Starter: "starter";
26
+ readonly Business: "business";
27
+ readonly Scale: "scale";
28
+ };
29
+ type Plan = (typeof Plan)[keyof typeof Plan];
30
+ const AccountType: {
31
+ readonly FlatRate: "flat_rate";
32
+ readonly PerRequest: "per_request";
33
+ };
34
+ type AccountType = (typeof AccountType)[keyof typeof AccountType];
35
+ const Status: {
36
+ readonly Trial: "trial";
37
+ readonly Active: "active";
38
+ readonly Suspended: "suspended";
39
+ };
40
+ type Status = (typeof Status)[keyof typeof Status];
41
+ interface MonthToDate {
42
+ from: string;
43
+ to: string;
44
+ apiRequests: number;
45
+ saleInvoices: number;
46
+ ocrPages: number;
47
+ fileBytes: number;
48
+ databaseBytes: number;
49
+ archivedCompanies: number;
50
+ estimatedTodayCents: number;
51
+ }
52
+ namespace Plans {
53
+ interface Value {
54
+ monthlyFeeEur: string;
55
+ includedInvoices: number;
56
+ invoiceOverageEur: string;
57
+ includedDatabaseBytes: number;
58
+ includedFileBytes: number;
59
+ }
60
+ }
61
+ interface TopUp {
62
+ minCents: number;
63
+ maxCents: number;
64
+ }
65
+ interface AutoTopUp {
66
+ enabled: boolean;
67
+ amountCents: number;
68
+ pending: boolean;
69
+ }
70
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TopupConfirmBillingResponse = void 0;
5
+ var TopupConfirmBillingResponse;
6
+ (function (TopupConfirmBillingResponse) {
7
+ TopupConfirmBillingResponse.Plan = {
8
+ Starter: "starter",
9
+ Business: "business",
10
+ Scale: "scale",
11
+ };
12
+ TopupConfirmBillingResponse.AccountType = {
13
+ FlatRate: "flat_rate",
14
+ PerRequest: "per_request",
15
+ };
16
+ TopupConfirmBillingResponse.Status = {
17
+ Trial: "trial",
18
+ Active: "active",
19
+ Suspended: "suspended",
20
+ };
21
+ })(TopupConfirmBillingResponse || (exports.TopupConfirmBillingResponse = TopupConfirmBillingResponse = {}));
@@ -16,6 +16,7 @@ export declare namespace UsageListBillingResponse {
16
16
  readonly OcrPage: "ocr_page";
17
17
  readonly FileStorageBytes: "file_storage_bytes";
18
18
  readonly DatabaseBytes: "database_bytes";
19
+ readonly SaleInvoice: "sale_invoice";
19
20
  };
20
21
  type Metric = (typeof Metric)[keyof typeof Metric];
21
22
  }
@@ -13,6 +13,7 @@ var UsageListBillingResponse;
13
13
  OcrPage: "ocr_page",
14
14
  FileStorageBytes: "file_storage_bytes",
15
15
  DatabaseBytes: "database_bytes",
16
+ SaleInvoice: "sale_invoice",
16
17
  };
17
18
  })(Item = Rows.Item || (Rows.Item = {}));
18
19
  })(Rows = UsageListBillingResponse.Rows || (UsageListBillingResponse.Rows = {}));
@@ -1,6 +1,12 @@
1
1
  export * from "./AccountGetBillingResponse.js";
2
+ export * from "./AccountSetAccountTypeBillingResponse.js";
3
+ export * from "./AccountSetAutoTopUpBillingResponse.js";
4
+ export * from "./AccountSetOverdraftCapBillingResponse.js";
2
5
  export * from "./AccountSetPlanBillingResponse.js";
6
+ export * from "./FlatRateConfirmBillingResponse.js";
7
+ export * from "./FlatRateCreateBillingResponse.js";
3
8
  export * from "./PortalCreateBillingResponse.js";
9
+ export * from "./TopupConfirmBillingResponse.js";
4
10
  export * from "./TopupCreateBillingResponse.js";
5
11
  export * from "./TransactionsListBillingResponse.js";
6
12
  export * from "./UsageListBillingResponse.js";
@@ -15,8 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AccountGetBillingResponse.js"), exports);
18
+ __exportStar(require("./AccountSetAccountTypeBillingResponse.js"), exports);
19
+ __exportStar(require("./AccountSetAutoTopUpBillingResponse.js"), exports);
20
+ __exportStar(require("./AccountSetOverdraftCapBillingResponse.js"), exports);
18
21
  __exportStar(require("./AccountSetPlanBillingResponse.js"), exports);
22
+ __exportStar(require("./FlatRateConfirmBillingResponse.js"), exports);
23
+ __exportStar(require("./FlatRateCreateBillingResponse.js"), exports);
19
24
  __exportStar(require("./PortalCreateBillingResponse.js"), exports);
25
+ __exportStar(require("./TopupConfirmBillingResponse.js"), exports);
20
26
  __exportStar(require("./TopupCreateBillingResponse.js"), exports);
21
27
  __exportStar(require("./TransactionsListBillingResponse.js"), exports);
22
28
  __exportStar(require("./UsageListBillingResponse.js"), exports);
@@ -201,6 +201,8 @@ export declare class CaptureClient {
201
201
  documentsDelete(request: NordletApi.DocumentsDeleteCaptureRequest, requestOptions?: CaptureClient.RequestOptions): core.HttpResponsePromise<NordletApi.DocumentsDeleteCaptureResponse>;
202
202
  private __documentsDelete;
203
203
  /**
204
+ * Creates the purchase invoice (or credit note, see `type`) from `lines`. Lines with the opposite sign go in `oppositeLines` and are saved as a second document of the opposite type for the same supplier: a purchase credit note against the new invoice, or a purchase invoice next to the new credit note. It is numbered `oppositeDocumentNumber`, by default the document number followed by "-CR" (credit note) or "-INV" (invoice).
205
+ *
204
206
  * @param {NordletApi.DocumentsConfirmCaptureRequest} request
205
207
  * @param {CaptureClient.RequestOptions} requestOptions - Request-specific configuration.
206
208
  *
@@ -760,6 +760,8 @@ class CaptureClient {
760
760
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/capture/documents/delete");
761
761
  }
762
762
  /**
763
+ * Creates the purchase invoice (or credit note, see `type`) from `lines`. Lines with the opposite sign go in `oppositeLines` and are saved as a second document of the opposite type for the same supplier: a purchase credit note against the new invoice, or a purchase invoice next to the new credit note. It is numbered `oppositeDocumentNumber`, by default the document number followed by "-CR" (credit note) or "-INV" (invoice).
764
+ *
763
765
  * @param {NordletApi.DocumentsConfirmCaptureRequest} request
764
766
  * @param {CaptureClient.RequestOptions} requestOptions - Request-specific configuration.
765
767
  *
@@ -11,12 +11,15 @@ export interface DocumentsConfirmCaptureRequest {
11
11
  id: string;
12
12
  partnerId?: string;
13
13
  newSupplier?: DocumentsConfirmCaptureRequest.NewSupplier;
14
+ type?: DocumentsConfirmCaptureRequest.Type;
14
15
  documentNumber: string;
15
16
  documentDate: string;
16
17
  dueDate?: string;
17
18
  currency?: string;
18
19
  notes?: string;
19
20
  lines: DocumentsConfirmCaptureRequest.Lines.Item[];
21
+ oppositeLines?: DocumentsConfirmCaptureRequest.OppositeLines.Item[];
22
+ oppositeDocumentNumber?: string;
20
23
  }
21
24
  export declare namespace DocumentsConfirmCaptureRequest {
22
25
  interface NewSupplier {
@@ -25,6 +28,11 @@ export declare namespace DocumentsConfirmCaptureRequest {
25
28
  vatCode?: string | undefined;
26
29
  countryCode?: string | undefined;
27
30
  }
31
+ const Type: {
32
+ readonly Invoice: "invoice";
33
+ readonly CreditNote: "credit_note";
34
+ };
35
+ type Type = (typeof Type)[keyof typeof Type];
28
36
  type Lines = Lines.Item[];
29
37
  namespace Lines {
30
38
  interface Item {
@@ -46,4 +54,25 @@ export declare namespace DocumentsConfirmCaptureRequest {
46
54
  type Quantity = number | string;
47
55
  }
48
56
  }
57
+ type OppositeLines = OppositeLines.Item[];
58
+ namespace OppositeLines {
59
+ interface Item {
60
+ itemId?: string | undefined;
61
+ description?: string | undefined;
62
+ unit?: string | undefined;
63
+ quantity?: Item.Quantity | undefined;
64
+ unitPriceExclVat?: string | undefined;
65
+ unitPriceInclVat?: string | undefined;
66
+ vatRatePercent?: string | undefined;
67
+ vatClassifierCode?: string | undefined;
68
+ costCenterId?: string | undefined;
69
+ projectId?: string | undefined;
70
+ accountCode?: string | undefined;
71
+ deferralStartDate?: string | undefined;
72
+ deferralEndDate?: string | undefined;
73
+ }
74
+ namespace Item {
75
+ type Quantity = number | string;
76
+ }
77
+ }
49
78
  }
@@ -1,3 +1,11 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DocumentsConfirmCaptureRequest = void 0;
5
+ var DocumentsConfirmCaptureRequest;
6
+ (function (DocumentsConfirmCaptureRequest) {
7
+ DocumentsConfirmCaptureRequest.Type = {
8
+ Invoice: "invoice",
9
+ CreditNote: "credit_note",
10
+ };
11
+ })(DocumentsConfirmCaptureRequest || (exports.DocumentsConfirmCaptureRequest = DocumentsConfirmCaptureRequest = {}));
@@ -1,4 +1,4 @@
1
- export type { DocumentsConfirmCaptureRequest } from "./DocumentsConfirmCaptureRequest.js";
1
+ export { DocumentsConfirmCaptureRequest } from "./DocumentsConfirmCaptureRequest.js";
2
2
  export type { DocumentsDeleteCaptureRequest } from "./DocumentsDeleteCaptureRequest.js";
3
3
  export type { DocumentsExtractCaptureRequest } from "./DocumentsExtractCaptureRequest.js";
4
4
  export type { DocumentsGetCaptureRequest } from "./DocumentsGetCaptureRequest.js";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentsListCaptureRequest = void 0;
3
+ exports.DocumentsListCaptureRequest = exports.DocumentsConfirmCaptureRequest = void 0;
4
+ var DocumentsConfirmCaptureRequest_js_1 = require("./DocumentsConfirmCaptureRequest.js");
5
+ Object.defineProperty(exports, "DocumentsConfirmCaptureRequest", { enumerable: true, get: function () { return DocumentsConfirmCaptureRequest_js_1.DocumentsConfirmCaptureRequest; } });
4
6
  var DocumentsListCaptureRequest_js_1 = require("./DocumentsListCaptureRequest.js");
5
7
  Object.defineProperty(exports, "DocumentsListCaptureRequest", { enumerable: true, get: function () { return DocumentsListCaptureRequest_js_1.DocumentsListCaptureRequest; } });
@@ -1,6 +1,7 @@
1
1
  export interface DocumentsConfirmCaptureResponse {
2
2
  capture: DocumentsConfirmCaptureResponse.Capture;
3
3
  invoice: DocumentsConfirmCaptureResponse.Invoice;
4
+ oppositeInvoice: DocumentsConfirmCaptureResponse.OppositeInvoice | null;
4
5
  }
5
6
  export declare namespace DocumentsConfirmCaptureResponse {
6
7
  interface Capture {
@@ -17,6 +18,7 @@ export declare namespace DocumentsConfirmCaptureResponse {
17
18
  matchedPartnerId: string | null;
18
19
  purchaseInvoiceId: string | null;
19
20
  error: string | null;
21
+ senderId: string | null;
20
22
  createdAt: string;
21
23
  updatedAt: string;
22
24
  }
@@ -29,6 +31,7 @@ export declare namespace DocumentsConfirmCaptureResponse {
29
31
  };
30
32
  type Status = (typeof Status)[keyof typeof Status];
31
33
  interface Extraction {
34
+ documentType?: Extraction.DocumentType | undefined;
32
35
  supplier: Extraction.Supplier;
33
36
  documentNumber: string | null;
34
37
  documentDate: string | null;
@@ -39,8 +42,14 @@ export declare namespace DocumentsConfirmCaptureResponse {
39
42
  grossTotal: string | null;
40
43
  notes: string | null;
41
44
  lines: Extraction.Lines.Item[];
45
+ oppositeLines?: Extraction.OppositeLines.Item[] | undefined;
42
46
  }
43
47
  namespace Extraction {
48
+ const DocumentType: {
49
+ readonly Invoice: "invoice";
50
+ readonly CreditNote: "credit_note";
51
+ };
52
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
44
53
  interface Supplier {
45
54
  name: string | null;
46
55
  code: string | null;
@@ -61,6 +70,19 @@ export declare namespace DocumentsConfirmCaptureResponse {
61
70
  lineGross: string | null;
62
71
  }
63
72
  }
73
+ type OppositeLines = OppositeLines.Item[];
74
+ namespace OppositeLines {
75
+ interface Item {
76
+ description: string;
77
+ quantity: string;
78
+ unit: string | null;
79
+ unitPriceExclVat: string | null;
80
+ vatRatePercent: string | null;
81
+ lineNet: string | null;
82
+ lineVat: string | null;
83
+ lineGross: string | null;
84
+ }
85
+ }
64
86
  }
65
87
  }
66
88
  interface Invoice {
@@ -134,4 +156,75 @@ export declare namespace DocumentsConfirmCaptureResponse {
134
156
  }
135
157
  }
136
158
  }
159
+ interface OppositeInvoice {
160
+ id: string;
161
+ partnerId: string;
162
+ type: OppositeInvoice.Type;
163
+ status: OppositeInvoice.Status;
164
+ paymentStatus: OppositeInvoice.PaymentStatus;
165
+ documentNumber: string;
166
+ documentDate: string;
167
+ dueDate: string | null;
168
+ registrationDate: string | null;
169
+ currency: string;
170
+ netTotal: string;
171
+ vatTotal: string;
172
+ grossTotal: string;
173
+ paidAmount: string;
174
+ journalTransactionId: string | null;
175
+ creditedInvoiceId: string | null;
176
+ purchaseOrderId: string | null;
177
+ operationTypeId: string | null;
178
+ notes: string | null;
179
+ intrastatTransportMode: string | null;
180
+ intrastatDeliveryTerms: string | null;
181
+ intrastatRegion: string | null;
182
+ intrastatNatureOfTransaction: string | null;
183
+ einvoiceNumber: string | null;
184
+ documentRef: string | null;
185
+ createdAt: string;
186
+ updatedAt: string;
187
+ lines: OppositeInvoice.Lines.Item[];
188
+ }
189
+ namespace OppositeInvoice {
190
+ const Type: {
191
+ readonly Invoice: "invoice";
192
+ readonly CreditNote: "credit_note";
193
+ };
194
+ type Type = (typeof Type)[keyof typeof Type];
195
+ const Status: {
196
+ readonly Draft: "draft";
197
+ readonly Registered: "registered";
198
+ };
199
+ type Status = (typeof Status)[keyof typeof Status];
200
+ const PaymentStatus: {
201
+ readonly Unpaid: "unpaid";
202
+ readonly Partial: "partial";
203
+ readonly Paid: "paid";
204
+ };
205
+ type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
206
+ type Lines = Lines.Item[];
207
+ namespace Lines {
208
+ interface Item {
209
+ id: string;
210
+ itemId: string | null;
211
+ description: string;
212
+ unit: string;
213
+ quantity: string;
214
+ unitPriceExclVat: string | null;
215
+ unitPriceInclVat: string | null;
216
+ vatRatePercent: string;
217
+ vatClassifierCode: string | null;
218
+ costCenterId: string | null;
219
+ projectId: string | null;
220
+ accountCode: string | null;
221
+ deferralStartDate: string | null;
222
+ deferralEndDate: string | null;
223
+ lineNet: string;
224
+ lineVat: string;
225
+ lineGross: string;
226
+ sortOrder: number;
227
+ }
228
+ }
229
+ }
137
230
  }
@@ -12,6 +12,13 @@ var DocumentsConfirmCaptureResponse;
12
12
  Failed: "failed",
13
13
  Linked: "linked",
14
14
  };
15
+ let Extraction;
16
+ (function (Extraction) {
17
+ Extraction.DocumentType = {
18
+ Invoice: "invoice",
19
+ CreditNote: "credit_note",
20
+ };
21
+ })(Extraction = Capture.Extraction || (Capture.Extraction = {}));
15
22
  })(Capture = DocumentsConfirmCaptureResponse.Capture || (DocumentsConfirmCaptureResponse.Capture = {}));
16
23
  let Invoice;
17
24
  (function (Invoice) {
@@ -29,4 +36,20 @@ var DocumentsConfirmCaptureResponse;
29
36
  Paid: "paid",
30
37
  };
31
38
  })(Invoice = DocumentsConfirmCaptureResponse.Invoice || (DocumentsConfirmCaptureResponse.Invoice = {}));
39
+ let OppositeInvoice;
40
+ (function (OppositeInvoice) {
41
+ OppositeInvoice.Type = {
42
+ Invoice: "invoice",
43
+ CreditNote: "credit_note",
44
+ };
45
+ OppositeInvoice.Status = {
46
+ Draft: "draft",
47
+ Registered: "registered",
48
+ };
49
+ OppositeInvoice.PaymentStatus = {
50
+ Unpaid: "unpaid",
51
+ Partial: "partial",
52
+ Paid: "paid",
53
+ };
54
+ })(OppositeInvoice = DocumentsConfirmCaptureResponse.OppositeInvoice || (DocumentsConfirmCaptureResponse.OppositeInvoice = {}));
32
55
  })(DocumentsConfirmCaptureResponse || (exports.DocumentsConfirmCaptureResponse = DocumentsConfirmCaptureResponse = {}));
@@ -12,6 +12,7 @@ export interface DocumentsExtractCaptureResponse {
12
12
  matchedPartnerId: string | null;
13
13
  purchaseInvoiceId: string | null;
14
14
  error: string | null;
15
+ senderId: string | null;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
18
  rawText: string | null;
@@ -25,6 +26,7 @@ export declare namespace DocumentsExtractCaptureResponse {
25
26
  };
26
27
  type Status = (typeof Status)[keyof typeof Status];
27
28
  interface Extraction {
29
+ documentType?: Extraction.DocumentType | undefined;
28
30
  supplier: Extraction.Supplier;
29
31
  documentNumber: string | null;
30
32
  documentDate: string | null;
@@ -35,8 +37,14 @@ export declare namespace DocumentsExtractCaptureResponse {
35
37
  grossTotal: string | null;
36
38
  notes: string | null;
37
39
  lines: Extraction.Lines.Item[];
40
+ oppositeLines?: Extraction.OppositeLines.Item[] | undefined;
38
41
  }
39
42
  namespace Extraction {
43
+ const DocumentType: {
44
+ readonly Invoice: "invoice";
45
+ readonly CreditNote: "credit_note";
46
+ };
47
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
40
48
  interface Supplier {
41
49
  name: string | null;
42
50
  code: string | null;
@@ -57,5 +65,18 @@ export declare namespace DocumentsExtractCaptureResponse {
57
65
  lineGross: string | null;
58
66
  }
59
67
  }
68
+ type OppositeLines = OppositeLines.Item[];
69
+ namespace OppositeLines {
70
+ interface Item {
71
+ description: string;
72
+ quantity: string;
73
+ unit: string | null;
74
+ unitPriceExclVat: string | null;
75
+ vatRatePercent: string | null;
76
+ lineNet: string | null;
77
+ lineVat: string | null;
78
+ lineGross: string | null;
79
+ }
80
+ }
60
81
  }
61
82
  }
@@ -10,4 +10,11 @@ var DocumentsExtractCaptureResponse;
10
10
  Failed: "failed",
11
11
  Linked: "linked",
12
12
  };
13
+ let Extraction;
14
+ (function (Extraction) {
15
+ Extraction.DocumentType = {
16
+ Invoice: "invoice",
17
+ CreditNote: "credit_note",
18
+ };
19
+ })(Extraction = DocumentsExtractCaptureResponse.Extraction || (DocumentsExtractCaptureResponse.Extraction = {}));
13
20
  })(DocumentsExtractCaptureResponse || (exports.DocumentsExtractCaptureResponse = DocumentsExtractCaptureResponse = {}));
@@ -12,6 +12,7 @@ export interface DocumentsGetCaptureResponse {
12
12
  matchedPartnerId: string | null;
13
13
  purchaseInvoiceId: string | null;
14
14
  error: string | null;
15
+ senderId: string | null;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
18
  rawText: string | null;
@@ -25,6 +26,7 @@ export declare namespace DocumentsGetCaptureResponse {
25
26
  };
26
27
  type Status = (typeof Status)[keyof typeof Status];
27
28
  interface Extraction {
29
+ documentType?: Extraction.DocumentType | undefined;
28
30
  supplier: Extraction.Supplier;
29
31
  documentNumber: string | null;
30
32
  documentDate: string | null;
@@ -35,8 +37,14 @@ export declare namespace DocumentsGetCaptureResponse {
35
37
  grossTotal: string | null;
36
38
  notes: string | null;
37
39
  lines: Extraction.Lines.Item[];
40
+ oppositeLines?: Extraction.OppositeLines.Item[] | undefined;
38
41
  }
39
42
  namespace Extraction {
43
+ const DocumentType: {
44
+ readonly Invoice: "invoice";
45
+ readonly CreditNote: "credit_note";
46
+ };
47
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
40
48
  interface Supplier {
41
49
  name: string | null;
42
50
  code: string | null;
@@ -57,5 +65,18 @@ export declare namespace DocumentsGetCaptureResponse {
57
65
  lineGross: string | null;
58
66
  }
59
67
  }
68
+ type OppositeLines = OppositeLines.Item[];
69
+ namespace OppositeLines {
70
+ interface Item {
71
+ description: string;
72
+ quantity: string;
73
+ unit: string | null;
74
+ unitPriceExclVat: string | null;
75
+ vatRatePercent: string | null;
76
+ lineNet: string | null;
77
+ lineVat: string | null;
78
+ lineGross: string | null;
79
+ }
80
+ }
60
81
  }
61
82
  }
@@ -10,4 +10,11 @@ var DocumentsGetCaptureResponse;
10
10
  Failed: "failed",
11
11
  Linked: "linked",
12
12
  };
13
+ let Extraction;
14
+ (function (Extraction) {
15
+ Extraction.DocumentType = {
16
+ Invoice: "invoice",
17
+ CreditNote: "credit_note",
18
+ };
19
+ })(Extraction = DocumentsGetCaptureResponse.Extraction || (DocumentsGetCaptureResponse.Extraction = {}));
13
20
  })(DocumentsGetCaptureResponse || (exports.DocumentsGetCaptureResponse = DocumentsGetCaptureResponse = {}));
@@ -24,6 +24,7 @@ export declare namespace DocumentsListCaptureResponse {
24
24
  matchedPartnerId: string | null;
25
25
  purchaseInvoiceId: string | null;
26
26
  error: string | null;
27
+ senderId: string | null;
27
28
  createdAt: string;
28
29
  updatedAt: string;
29
30
  }
@@ -36,6 +37,7 @@ export declare namespace DocumentsListCaptureResponse {
36
37
  };
37
38
  type Status = (typeof Status)[keyof typeof Status];
38
39
  interface Extraction {
40
+ documentType?: Extraction.DocumentType | undefined;
39
41
  supplier: Extraction.Supplier;
40
42
  documentNumber: string | null;
41
43
  documentDate: string | null;
@@ -46,8 +48,14 @@ export declare namespace DocumentsListCaptureResponse {
46
48
  grossTotal: string | null;
47
49
  notes: string | null;
48
50
  lines: Extraction.Lines.Item[];
51
+ oppositeLines?: Extraction.OppositeLines.Item[] | undefined;
49
52
  }
50
53
  namespace Extraction {
54
+ const DocumentType: {
55
+ readonly Invoice: "invoice";
56
+ readonly CreditNote: "credit_note";
57
+ };
58
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
51
59
  interface Supplier {
52
60
  name: string | null;
53
61
  code: string | null;
@@ -68,6 +76,19 @@ export declare namespace DocumentsListCaptureResponse {
68
76
  lineGross: string | null;
69
77
  }
70
78
  }
79
+ type OppositeLines = OppositeLines.Item[];
80
+ namespace OppositeLines {
81
+ interface Item {
82
+ description: string;
83
+ quantity: string;
84
+ unit: string | null;
85
+ unitPriceExclVat: string | null;
86
+ vatRatePercent: string | null;
87
+ lineNet: string | null;
88
+ lineVat: string | null;
89
+ lineGross: string | null;
90
+ }
91
+ }
71
92
  }
72
93
  }
73
94
  }
@@ -14,6 +14,13 @@ var DocumentsListCaptureResponse;
14
14
  Failed: "failed",
15
15
  Linked: "linked",
16
16
  };
17
+ let Extraction;
18
+ (function (Extraction) {
19
+ Extraction.DocumentType = {
20
+ Invoice: "invoice",
21
+ CreditNote: "credit_note",
22
+ };
23
+ })(Extraction = Item.Extraction || (Item.Extraction = {}));
17
24
  })(Item = Rows.Item || (Rows.Item = {}));
18
25
  })(Rows = DocumentsListCaptureResponse.Rows || (DocumentsListCaptureResponse.Rows = {}));
19
26
  })(DocumentsListCaptureResponse || (exports.DocumentsListCaptureResponse = DocumentsListCaptureResponse = {}));