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
@@ -12,6 +12,7 @@ export interface DocumentsUploadCaptureResponse {
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 DocumentsUploadCaptureResponse {
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 DocumentsUploadCaptureResponse {
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 DocumentsUploadCaptureResponse {
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 DocumentsUploadCaptureResponse;
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 = DocumentsUploadCaptureResponse.Extraction || (DocumentsUploadCaptureResponse.Extraction = {}));
13
20
  })(DocumentsUploadCaptureResponse || (exports.DocumentsUploadCaptureResponse = DocumentsUploadCaptureResponse = {}));
@@ -377,6 +377,98 @@ export declare class DeclarationsClient {
377
377
  */
378
378
  euIossCompute(request: NordletApi.EuIossComputeDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.EuIossComputeDeclarationsResponse>;
379
379
  private __euIossCompute;
380
+ /**
381
+ * @param {NordletApi.EuOwnGoodsTransfersComputeDeclarationsRequest} request
382
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
383
+ *
384
+ * @throws {@link NordletApi.BadRequestError}
385
+ * @throws {@link NordletApi.UnauthorizedError}
386
+ * @throws {@link NordletApi.PaymentRequiredError}
387
+ * @throws {@link NordletApi.ForbiddenError}
388
+ * @throws {@link NordletApi.NotFoundError}
389
+ * @throws {@link NordletApi.ConflictError}
390
+ * @throws {@link NordletApi.ContentTooLargeError}
391
+ * @throws {@link NordletApi.UnprocessableEntityError}
392
+ * @throws {@link NordletApi.TooManyRequestsError}
393
+ * @throws {@link NordletApi.InternalServerError}
394
+ *
395
+ * @example
396
+ * await client.declarations.euOwnGoodsTransfersCompute({
397
+ * year: 1000000,
398
+ * month: 1000000
399
+ * })
400
+ */
401
+ euOwnGoodsTransfersCompute(request: NordletApi.EuOwnGoodsTransfersComputeDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.EuOwnGoodsTransfersComputeDeclarationsResponse>;
402
+ private __euOwnGoodsTransfersCompute;
403
+ /**
404
+ * @param {NordletApi.EuDigitalReportingListDeclarationsRequest} request
405
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
406
+ *
407
+ * @throws {@link NordletApi.BadRequestError}
408
+ * @throws {@link NordletApi.UnauthorizedError}
409
+ * @throws {@link NordletApi.PaymentRequiredError}
410
+ * @throws {@link NordletApi.ForbiddenError}
411
+ * @throws {@link NordletApi.NotFoundError}
412
+ * @throws {@link NordletApi.ConflictError}
413
+ * @throws {@link NordletApi.ContentTooLargeError}
414
+ * @throws {@link NordletApi.UnprocessableEntityError}
415
+ * @throws {@link NordletApi.TooManyRequestsError}
416
+ * @throws {@link NordletApi.InternalServerError}
417
+ *
418
+ * @example
419
+ * await client.declarations.euDigitalReportingList({
420
+ * fromDate: "2026-07-01",
421
+ * toDate: "2026-07-01"
422
+ * })
423
+ */
424
+ euDigitalReportingList(request: NordletApi.EuDigitalReportingListDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.EuDigitalReportingListDeclarationsResponse>;
425
+ private __euDigitalReportingList;
426
+ /**
427
+ * Which platform sellers are reportable for the year (Council Directive (EU) 2021/514, Annex V) and why the others are excluded, the data still missing, and how the company files the report in its Member State.
428
+ *
429
+ * @param {NordletApi.EuDac7PreviewDeclarationsRequest} request
430
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
431
+ *
432
+ * @throws {@link NordletApi.BadRequestError}
433
+ * @throws {@link NordletApi.UnauthorizedError}
434
+ * @throws {@link NordletApi.PaymentRequiredError}
435
+ * @throws {@link NordletApi.ForbiddenError}
436
+ * @throws {@link NordletApi.NotFoundError}
437
+ * @throws {@link NordletApi.ConflictError}
438
+ * @throws {@link NordletApi.ContentTooLargeError}
439
+ * @throws {@link NordletApi.UnprocessableEntityError}
440
+ * @throws {@link NordletApi.TooManyRequestsError}
441
+ * @throws {@link NordletApi.InternalServerError}
442
+ *
443
+ * @example
444
+ * await client.declarations.euDac7Preview({
445
+ * year: 1000000
446
+ * })
447
+ */
448
+ euDac7Preview(request: NordletApi.EuDac7PreviewDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.EuDac7PreviewDeclarationsResponse>;
449
+ private __euDac7Preview;
450
+ /**
451
+ * @param {NordletApi.EuDac7XmlDeclarationsRequest} request
452
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
453
+ *
454
+ * @throws {@link NordletApi.BadRequestError}
455
+ * @throws {@link NordletApi.UnauthorizedError}
456
+ * @throws {@link NordletApi.PaymentRequiredError}
457
+ * @throws {@link NordletApi.ForbiddenError}
458
+ * @throws {@link NordletApi.NotFoundError}
459
+ * @throws {@link NordletApi.ConflictError}
460
+ * @throws {@link NordletApi.ContentTooLargeError}
461
+ * @throws {@link NordletApi.UnprocessableEntityError}
462
+ * @throws {@link NordletApi.TooManyRequestsError}
463
+ * @throws {@link NordletApi.InternalServerError}
464
+ *
465
+ * @example
466
+ * await client.declarations.euDac7Xml({
467
+ * year: 1000000
468
+ * })
469
+ */
470
+ euDac7Xml(request: NordletApi.EuDac7XmlDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.EuDac7XmlDeclarationsResponse>;
471
+ private __euDac7Xml;
380
472
  /**
381
473
  * @param {NordletApi.EuDistanceSalesThresholdGetDeclarationsRequest} request
382
474
  * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1640,7 +1732,7 @@ export declare class DeclarationsClient {
1640
1732
  plJpkMagGenerate(request: NordletApi.PlJpkMagGenerateDeclarationsRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PlJpkMagGenerateDeclarationsResponse>;
1641
1733
  private __plJpkMagGenerate;
1642
1734
  /**
1643
- * Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance withheld and the social and health contributions taken off it. One document per person, because that is how the form is filed.
1735
+ * Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance withheld and the social and health contributions taken off it. One document per person, because that is how the form is filed, addressed to the tax office of the place of residence of that person (employee field plKodUrzedu); a person without that code is refused with 422.
1644
1736
  *
1645
1737
  * @param {NordletApi.PlPit11GenerateDeclarationsRequest} request
1646
1738
  * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -1342,6 +1342,330 @@ class DeclarationsClient {
1342
1342
  }
1343
1343
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/ioss/compute");
1344
1344
  }
1345
+ /**
1346
+ * @param {NordletApi.EuOwnGoodsTransfersComputeDeclarationsRequest} request
1347
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
1348
+ *
1349
+ * @throws {@link NordletApi.BadRequestError}
1350
+ * @throws {@link NordletApi.UnauthorizedError}
1351
+ * @throws {@link NordletApi.PaymentRequiredError}
1352
+ * @throws {@link NordletApi.ForbiddenError}
1353
+ * @throws {@link NordletApi.NotFoundError}
1354
+ * @throws {@link NordletApi.ConflictError}
1355
+ * @throws {@link NordletApi.ContentTooLargeError}
1356
+ * @throws {@link NordletApi.UnprocessableEntityError}
1357
+ * @throws {@link NordletApi.TooManyRequestsError}
1358
+ * @throws {@link NordletApi.InternalServerError}
1359
+ *
1360
+ * @example
1361
+ * await client.declarations.euOwnGoodsTransfersCompute({
1362
+ * year: 1000000,
1363
+ * month: 1000000
1364
+ * })
1365
+ */
1366
+ euOwnGoodsTransfersCompute(request, requestOptions) {
1367
+ return core.HttpResponsePromise.fromPromise(this.__euOwnGoodsTransfersCompute(request, requestOptions));
1368
+ }
1369
+ async __euOwnGoodsTransfersCompute(request, requestOptions) {
1370
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1371
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1372
+ const _response = await core.fetcher({
1373
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1374
+ (await core.Supplier.get(this._options.environment)) ??
1375
+ environments.NordletApiEnvironment.Production, "v1/declarations/eu/own-goods-transfers/compute"),
1376
+ method: "POST",
1377
+ headers: _headers,
1378
+ contentType: "application/json",
1379
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1380
+ requestType: "json",
1381
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1382
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1383
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1384
+ abortSignal: requestOptions?.abortSignal,
1385
+ fetchFn: this._options?.fetch,
1386
+ logging: this._options.logging,
1387
+ });
1388
+ if (_response.ok) {
1389
+ return {
1390
+ data: _response.body,
1391
+ rawResponse: _response.rawResponse,
1392
+ };
1393
+ }
1394
+ if (_response.error.reason === "status-code") {
1395
+ switch (_response.error.statusCode) {
1396
+ case 400:
1397
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1398
+ case 401:
1399
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1400
+ case 402:
1401
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1402
+ case 403:
1403
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1404
+ case 404:
1405
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1406
+ case 409:
1407
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1408
+ case 413:
1409
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1410
+ case 422:
1411
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1412
+ case 429:
1413
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1414
+ case 500:
1415
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1416
+ default:
1417
+ throw new errors.NordletApiError({
1418
+ statusCode: _response.error.statusCode,
1419
+ body: _response.error.body,
1420
+ rawResponse: _response.rawResponse,
1421
+ });
1422
+ }
1423
+ }
1424
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/own-goods-transfers/compute");
1425
+ }
1426
+ /**
1427
+ * @param {NordletApi.EuDigitalReportingListDeclarationsRequest} request
1428
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
1429
+ *
1430
+ * @throws {@link NordletApi.BadRequestError}
1431
+ * @throws {@link NordletApi.UnauthorizedError}
1432
+ * @throws {@link NordletApi.PaymentRequiredError}
1433
+ * @throws {@link NordletApi.ForbiddenError}
1434
+ * @throws {@link NordletApi.NotFoundError}
1435
+ * @throws {@link NordletApi.ConflictError}
1436
+ * @throws {@link NordletApi.ContentTooLargeError}
1437
+ * @throws {@link NordletApi.UnprocessableEntityError}
1438
+ * @throws {@link NordletApi.TooManyRequestsError}
1439
+ * @throws {@link NordletApi.InternalServerError}
1440
+ *
1441
+ * @example
1442
+ * await client.declarations.euDigitalReportingList({
1443
+ * fromDate: "2026-07-01",
1444
+ * toDate: "2026-07-01"
1445
+ * })
1446
+ */
1447
+ euDigitalReportingList(request, requestOptions) {
1448
+ return core.HttpResponsePromise.fromPromise(this.__euDigitalReportingList(request, requestOptions));
1449
+ }
1450
+ async __euDigitalReportingList(request, requestOptions) {
1451
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1452
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1453
+ const _response = await core.fetcher({
1454
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1455
+ (await core.Supplier.get(this._options.environment)) ??
1456
+ environments.NordletApiEnvironment.Production, "v1/declarations/eu/digital-reporting/list"),
1457
+ method: "POST",
1458
+ headers: _headers,
1459
+ contentType: "application/json",
1460
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1461
+ requestType: "json",
1462
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1463
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1464
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1465
+ abortSignal: requestOptions?.abortSignal,
1466
+ fetchFn: this._options?.fetch,
1467
+ logging: this._options.logging,
1468
+ });
1469
+ if (_response.ok) {
1470
+ return {
1471
+ data: _response.body,
1472
+ rawResponse: _response.rawResponse,
1473
+ };
1474
+ }
1475
+ if (_response.error.reason === "status-code") {
1476
+ switch (_response.error.statusCode) {
1477
+ case 400:
1478
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1479
+ case 401:
1480
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1481
+ case 402:
1482
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1483
+ case 403:
1484
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1485
+ case 404:
1486
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1487
+ case 409:
1488
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1489
+ case 413:
1490
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1491
+ case 422:
1492
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1493
+ case 429:
1494
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1495
+ case 500:
1496
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1497
+ default:
1498
+ throw new errors.NordletApiError({
1499
+ statusCode: _response.error.statusCode,
1500
+ body: _response.error.body,
1501
+ rawResponse: _response.rawResponse,
1502
+ });
1503
+ }
1504
+ }
1505
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/digital-reporting/list");
1506
+ }
1507
+ /**
1508
+ * Which platform sellers are reportable for the year (Council Directive (EU) 2021/514, Annex V) and why the others are excluded, the data still missing, and how the company files the report in its Member State.
1509
+ *
1510
+ * @param {NordletApi.EuDac7PreviewDeclarationsRequest} request
1511
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
1512
+ *
1513
+ * @throws {@link NordletApi.BadRequestError}
1514
+ * @throws {@link NordletApi.UnauthorizedError}
1515
+ * @throws {@link NordletApi.PaymentRequiredError}
1516
+ * @throws {@link NordletApi.ForbiddenError}
1517
+ * @throws {@link NordletApi.NotFoundError}
1518
+ * @throws {@link NordletApi.ConflictError}
1519
+ * @throws {@link NordletApi.ContentTooLargeError}
1520
+ * @throws {@link NordletApi.UnprocessableEntityError}
1521
+ * @throws {@link NordletApi.TooManyRequestsError}
1522
+ * @throws {@link NordletApi.InternalServerError}
1523
+ *
1524
+ * @example
1525
+ * await client.declarations.euDac7Preview({
1526
+ * year: 1000000
1527
+ * })
1528
+ */
1529
+ euDac7Preview(request, requestOptions) {
1530
+ return core.HttpResponsePromise.fromPromise(this.__euDac7Preview(request, requestOptions));
1531
+ }
1532
+ async __euDac7Preview(request, requestOptions) {
1533
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1534
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1535
+ const _response = await core.fetcher({
1536
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1537
+ (await core.Supplier.get(this._options.environment)) ??
1538
+ environments.NordletApiEnvironment.Production, "v1/declarations/eu/dac7/preview"),
1539
+ method: "POST",
1540
+ headers: _headers,
1541
+ contentType: "application/json",
1542
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1543
+ requestType: "json",
1544
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1545
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1546
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1547
+ abortSignal: requestOptions?.abortSignal,
1548
+ fetchFn: this._options?.fetch,
1549
+ logging: this._options.logging,
1550
+ });
1551
+ if (_response.ok) {
1552
+ return {
1553
+ data: _response.body,
1554
+ rawResponse: _response.rawResponse,
1555
+ };
1556
+ }
1557
+ if (_response.error.reason === "status-code") {
1558
+ switch (_response.error.statusCode) {
1559
+ case 400:
1560
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1561
+ case 401:
1562
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1563
+ case 402:
1564
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1565
+ case 403:
1566
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1567
+ case 404:
1568
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1569
+ case 409:
1570
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1571
+ case 413:
1572
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1573
+ case 422:
1574
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1575
+ case 429:
1576
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1577
+ case 500:
1578
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1579
+ default:
1580
+ throw new errors.NordletApiError({
1581
+ statusCode: _response.error.statusCode,
1582
+ body: _response.error.body,
1583
+ rawResponse: _response.rawResponse,
1584
+ });
1585
+ }
1586
+ }
1587
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/dac7/preview");
1588
+ }
1589
+ /**
1590
+ * @param {NordletApi.EuDac7XmlDeclarationsRequest} request
1591
+ * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
1592
+ *
1593
+ * @throws {@link NordletApi.BadRequestError}
1594
+ * @throws {@link NordletApi.UnauthorizedError}
1595
+ * @throws {@link NordletApi.PaymentRequiredError}
1596
+ * @throws {@link NordletApi.ForbiddenError}
1597
+ * @throws {@link NordletApi.NotFoundError}
1598
+ * @throws {@link NordletApi.ConflictError}
1599
+ * @throws {@link NordletApi.ContentTooLargeError}
1600
+ * @throws {@link NordletApi.UnprocessableEntityError}
1601
+ * @throws {@link NordletApi.TooManyRequestsError}
1602
+ * @throws {@link NordletApi.InternalServerError}
1603
+ *
1604
+ * @example
1605
+ * await client.declarations.euDac7Xml({
1606
+ * year: 1000000
1607
+ * })
1608
+ */
1609
+ euDac7Xml(request, requestOptions) {
1610
+ return core.HttpResponsePromise.fromPromise(this.__euDac7Xml(request, requestOptions));
1611
+ }
1612
+ async __euDac7Xml(request, requestOptions) {
1613
+ const _authRequest = await this._options.authProvider.getAuthRequest();
1614
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
1615
+ const _response = await core.fetcher({
1616
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
1617
+ (await core.Supplier.get(this._options.environment)) ??
1618
+ environments.NordletApiEnvironment.Production, "v1/declarations/eu/dac7/xml"),
1619
+ method: "POST",
1620
+ headers: _headers,
1621
+ contentType: "application/json",
1622
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
1623
+ requestType: "json",
1624
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
1625
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
1626
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
1627
+ abortSignal: requestOptions?.abortSignal,
1628
+ fetchFn: this._options?.fetch,
1629
+ logging: this._options.logging,
1630
+ });
1631
+ if (_response.ok) {
1632
+ return {
1633
+ data: _response.body,
1634
+ rawResponse: _response.rawResponse,
1635
+ };
1636
+ }
1637
+ if (_response.error.reason === "status-code") {
1638
+ switch (_response.error.statusCode) {
1639
+ case 400:
1640
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
1641
+ case 401:
1642
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
1643
+ case 402:
1644
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
1645
+ case 403:
1646
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
1647
+ case 404:
1648
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
1649
+ case 409:
1650
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
1651
+ case 413:
1652
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
1653
+ case 422:
1654
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1655
+ case 429:
1656
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
1657
+ case 500:
1658
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
1659
+ default:
1660
+ throw new errors.NordletApiError({
1661
+ statusCode: _response.error.statusCode,
1662
+ body: _response.error.body,
1663
+ rawResponse: _response.rawResponse,
1664
+ });
1665
+ }
1666
+ }
1667
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/dac7/xml");
1668
+ }
1345
1669
  /**
1346
1670
  * @param {NordletApi.EuDistanceSalesThresholdGetDeclarationsRequest} request
1347
1671
  * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -5679,7 +6003,7 @@ class DeclarationsClient {
5679
6003
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/pl/jpk-mag/generate");
5680
6004
  }
5681
6005
  /**
5682
- * Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance withheld and the social and health contributions taken off it. One document per person, because that is how the form is filed.
6006
+ * Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance withheld and the social and health contributions taken off it. One document per person, because that is how the form is filed, addressed to the tax office of the place of residence of that person (employee field plKodUrzedu); a person without that code is refused with 422.
5683
6007
  *
5684
6008
  * @param {NordletApi.PlPit11GenerateDeclarationsRequest} request
5685
6009
  * @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * year: 1000000
5
+ * }
6
+ */
7
+ export interface EuDac7PreviewDeclarationsRequest {
8
+ year: number;
9
+ }
@@ -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,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * year: 1000000
5
+ * }
6
+ */
7
+ export interface EuDac7XmlDeclarationsRequest {
8
+ year: number;
9
+ }
@@ -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,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * fromDate: "2026-07-01",
5
+ * toDate: "2026-07-01"
6
+ * }
7
+ */
8
+ export interface EuDigitalReportingListDeclarationsRequest {
9
+ fromDate: string;
10
+ toDate: string;
11
+ }
@@ -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,11 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * year: 1000000,
5
+ * month: 1000000
6
+ * }
7
+ */
8
+ export interface EuOwnGoodsTransfersComputeDeclarationsRequest {
9
+ year: number;
10
+ month: number;
11
+ }
@@ -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 });
@@ -25,9 +25,13 @@ export { DeReturnsGenerateDeclarationsRequest } from "./DeReturnsGenerateDeclara
25
25
  export type { DkSelskabsskatGenerateDeclarationsRequest } from "./DkSelskabsskatGenerateDeclarationsRequest.js";
26
26
  export { EeEmploymentRegisterSendDeclarationsRequest } from "./EeEmploymentRegisterSendDeclarationsRequest.js";
27
27
  export type { EsVerifactuDeclaracionResponsableDeclarationsRequest } from "./EsVerifactuDeclaracionResponsableDeclarationsRequest.js";
28
+ export type { EuDac7PreviewDeclarationsRequest } from "./EuDac7PreviewDeclarationsRequest.js";
29
+ export type { EuDac7XmlDeclarationsRequest } from "./EuDac7XmlDeclarationsRequest.js";
30
+ export type { EuDigitalReportingListDeclarationsRequest } from "./EuDigitalReportingListDeclarationsRequest.js";
28
31
  export type { EuDistanceSalesThresholdGetDeclarationsRequest } from "./EuDistanceSalesThresholdGetDeclarationsRequest.js";
29
32
  export type { EuIossComputeDeclarationsRequest } from "./EuIossComputeDeclarationsRequest.js";
30
33
  export type { EuOssComputeDeclarationsRequest } from "./EuOssComputeDeclarationsRequest.js";
34
+ export type { EuOwnGoodsTransfersComputeDeclarationsRequest } from "./EuOwnGoodsTransfersComputeDeclarationsRequest.js";
31
35
  export type { EuSmeCrossBorderReportComputeDeclarationsRequest } from "./EuSmeCrossBorderReportComputeDeclarationsRequest.js";
32
36
  export type { EuSmeThresholdGetDeclarationsRequest } from "./EuSmeThresholdGetDeclarationsRequest.js";
33
37
  export type { EuSmeThresholdsListDeclarationsRequest } from "./EuSmeThresholdsListDeclarationsRequest.js";
@@ -0,0 +1,25 @@
1
+ export interface EuDac7PreviewDeclarationsResponse {
2
+ year: number;
3
+ country: string;
4
+ system: string;
5
+ sendsDirectly: boolean;
6
+ messageTypeIndic: string;
7
+ currency: string;
8
+ sellers: EuDac7PreviewDeclarationsResponse.Sellers.Item[];
9
+ warnings: string[];
10
+ source: string;
11
+ }
12
+ export declare namespace EuDac7PreviewDeclarationsResponse {
13
+ type Sellers = Sellers.Item[];
14
+ namespace Sellers {
15
+ interface Item {
16
+ sellerId: string;
17
+ name: string;
18
+ reportable: boolean;
19
+ reason: string | null;
20
+ consideration: string;
21
+ activities: number;
22
+ warnings: string[];
23
+ }
24
+ }
25
+ }
@@ -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,6 @@
1
+ export interface EuDac7XmlDeclarationsResponse {
2
+ fileName: string;
3
+ contentType: string;
4
+ data: string;
5
+ warnings: string[];
6
+ }
@@ -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 });