nordlet 0.3.8 → 0.3.11

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 (347) hide show
  1. package/dist/Client.d.ts +6 -0
  2. package/dist/Client.js +28 -20
  3. package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
  4. package/dist/api/resources/agreements/client/Client.d.ts +42 -0
  5. package/dist/api/resources/agreements/client/Client.js +158 -0
  6. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
  7. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
  8. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
  9. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
  10. package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
  11. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
  12. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
  13. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
  14. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
  15. package/dist/api/resources/agreements/types/index.d.ts +2 -0
  16. package/dist/api/resources/agreements/types/index.js +2 -0
  17. package/dist/api/resources/assets/client/Client.d.ts +42 -0
  18. package/dist/api/resources/assets/client/Client.js +155 -0
  19. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
  20. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
  21. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
  22. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
  23. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  24. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
  25. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
  26. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
  27. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
  28. package/dist/api/resources/assets/types/index.d.ts +2 -0
  29. package/dist/api/resources/assets/types/index.js +2 -0
  30. package/dist/api/resources/bank/client/Client.d.ts +27 -0
  31. package/dist/api/resources/bank/client/Client.js +85 -0
  32. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
  33. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
  34. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
  35. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -0
  36. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
  37. package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
  38. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +33 -0
  39. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +18 -0
  40. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
  41. package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
  42. package/dist/api/resources/bank/client/requests/index.d.ts +3 -2
  43. package/dist/api/resources/bank/client/requests/index.js +7 -1
  44. package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
  45. package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
  46. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
  47. package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
  48. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
  49. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -0
  50. package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
  51. package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
  52. package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
  53. package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
  54. package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
  55. package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
  56. package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
  57. package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
  58. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
  59. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
  60. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
  61. package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
  62. package/dist/api/resources/bank/types/index.d.ts +1 -0
  63. package/dist/api/resources/bank/types/index.js +1 -0
  64. package/dist/api/resources/capture/client/Client.d.ts +2 -0
  65. package/dist/api/resources/capture/client/Client.js +2 -0
  66. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +31 -0
  67. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
  68. package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
  69. package/dist/api/resources/capture/client/requests/index.js +3 -1
  70. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +95 -0
  71. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
  72. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
  73. package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
  74. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
  75. package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
  76. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
  77. package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
  78. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
  79. package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
  80. package/dist/api/resources/cash/client/Client.d.ts +71 -2
  81. package/dist/api/resources/cash/client/Client.js +245 -2
  82. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
  83. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
  84. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
  85. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
  86. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
  87. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
  88. package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
  89. package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
  90. package/dist/api/resources/cash/client/requests/index.js +3 -1
  91. package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
  92. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
  93. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
  94. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
  95. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
  96. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
  97. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
  98. package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
  99. package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
  100. package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
  101. package/dist/api/resources/cash/types/index.d.ts +3 -0
  102. package/dist/api/resources/cash/types/index.js +3 -0
  103. package/dist/api/resources/declarations/client/Client.d.ts +93 -1
  104. package/dist/api/resources/declarations/client/Client.js +325 -1
  105. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
  106. package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
  107. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
  108. package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
  109. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
  110. package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
  111. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
  112. package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
  113. package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
  114. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
  115. package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
  116. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
  117. package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
  118. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
  119. package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
  120. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
  121. package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
  122. package/dist/api/resources/declarations/types/index.d.ts +4 -0
  123. package/dist/api/resources/declarations/types/index.js +4 -0
  124. package/dist/api/resources/hr/client/Client.d.ts +178 -0
  125. package/dist/api/resources/hr/client/Client.js +642 -0
  126. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
  127. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
  128. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
  129. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
  130. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
  131. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
  132. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
  133. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
  134. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
  135. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
  136. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
  137. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
  138. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
  139. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
  140. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
  141. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
  142. package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
  143. package/dist/api/resources/hr/client/requests/index.js +5 -1
  144. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
  145. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
  146. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
  147. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
  148. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
  149. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
  150. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
  151. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
  152. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
  153. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
  154. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
  155. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
  156. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
  157. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
  158. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
  159. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
  160. package/dist/api/resources/hr/types/index.d.ts +8 -0
  161. package/dist/api/resources/hr/types/index.js +8 -0
  162. package/dist/api/resources/index.d.ts +6 -0
  163. package/dist/api/resources/index.js +7 -1
  164. package/dist/api/resources/inventory/client/Client.d.ts +22 -0
  165. package/dist/api/resources/inventory/client/Client.js +80 -0
  166. package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
  167. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
  168. package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
  169. package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
  170. package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
  171. package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
  172. package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
  173. package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
  174. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
  175. package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
  176. package/dist/api/resources/inventory/types/index.d.ts +1 -0
  177. package/dist/api/resources/inventory/types/index.js +1 -0
  178. package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
  179. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
  180. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
  181. package/dist/api/resources/partners/client/Client.d.ts +23 -0
  182. package/dist/api/resources/partners/client/Client.js +78 -0
  183. package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
  184. package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
  185. package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
  186. package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
  187. package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
  188. package/dist/api/resources/partners/types/index.d.ts +1 -0
  189. package/dist/api/resources/partners/types/index.js +1 -0
  190. package/dist/api/resources/payroll/client/Client.d.ts +23 -0
  191. package/dist/api/resources/payroll/client/Client.js +81 -0
  192. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
  193. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
  194. package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
  195. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +5 -0
  196. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
  197. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +5 -0
  198. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
  199. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +5 -0
  200. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
  201. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +5 -0
  202. package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
  203. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +52 -0
  204. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
  205. package/dist/api/resources/payroll/types/index.d.ts +1 -0
  206. package/dist/api/resources/payroll/types/index.js +1 -0
  207. package/dist/api/resources/peppol/client/Client.d.ts +58 -0
  208. package/dist/api/resources/peppol/client/Client.js +207 -0
  209. package/dist/api/resources/peppol/client/index.d.ts +1 -0
  210. package/dist/api/resources/peppol/client/index.js +17 -0
  211. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
  212. package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
  213. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
  214. package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
  215. package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
  216. package/dist/api/resources/peppol/client/requests/index.js +2 -0
  217. package/dist/api/resources/peppol/exports.d.ts +2 -0
  218. package/dist/api/resources/peppol/exports.js +21 -0
  219. package/dist/api/resources/peppol/index.d.ts +2 -0
  220. package/dist/api/resources/peppol/index.js +18 -0
  221. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
  222. package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
  223. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
  224. package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
  225. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
  226. package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
  227. package/dist/api/resources/peppol/types/index.d.ts +3 -0
  228. package/dist/api/resources/peppol/types/index.js +19 -0
  229. package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
  230. package/dist/api/resources/platformSellers/client/Client.js +458 -0
  231. package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
  232. package/dist/api/resources/platformSellers/client/index.js +17 -0
  233. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
  234. package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
  235. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
  236. package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
  237. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
  238. package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
  239. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
  240. package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
  241. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
  242. package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
  243. package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
  244. package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
  245. package/dist/api/resources/platformSellers/exports.d.ts +2 -0
  246. package/dist/api/resources/platformSellers/exports.js +21 -0
  247. package/dist/api/resources/platformSellers/index.d.ts +2 -0
  248. package/dist/api/resources/platformSellers/index.js +18 -0
  249. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
  250. package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
  251. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
  252. package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
  253. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
  254. package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
  255. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
  256. package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
  257. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
  258. package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
  259. package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
  260. package/dist/api/resources/platformSellers/types/index.js +21 -0
  261. package/dist/api/resources/pos/client/Client.d.ts +156 -0
  262. package/dist/api/resources/pos/client/Client.js +541 -0
  263. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
  264. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
  265. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
  266. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
  267. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
  268. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
  269. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
  270. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
  271. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
  272. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
  273. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
  274. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
  275. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
  276. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
  277. package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
  278. package/dist/api/resources/pos/client/requests/index.js +5 -1
  279. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
  280. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
  281. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
  282. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
  283. package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
  284. package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
  285. package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
  286. package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
  287. package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
  288. package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
  289. package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
  290. package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
  291. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
  292. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
  293. package/dist/api/resources/pos/types/index.d.ts +7 -0
  294. package/dist/api/resources/pos/types/index.js +7 -0
  295. package/dist/api/resources/purchases/client/Client.d.ts +40 -0
  296. package/dist/api/resources/purchases/client/Client.js +156 -0
  297. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
  298. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
  299. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
  300. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
  301. package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
  302. package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
  303. package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
  304. package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
  305. package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
  306. package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
  307. package/dist/api/resources/purchases/client/requests/index.js +3 -1
  308. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
  309. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
  310. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
  311. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
  312. package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
  313. package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
  314. package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
  315. package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
  316. package/dist/api/resources/purchases/types/index.d.ts +2 -0
  317. package/dist/api/resources/purchases/types/index.js +2 -0
  318. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
  319. package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
  320. package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
  321. package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
  322. package/dist/api/resources/sales/client/Client.d.ts +26 -0
  323. package/dist/api/resources/sales/client/Client.js +84 -0
  324. package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
  325. package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
  326. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
  327. package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
  328. package/dist/api/resources/sales/client/requests/index.d.ts +1 -0
  329. package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
  330. package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
  331. package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
  332. package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
  333. package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
  334. package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
  335. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
  336. package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
  337. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
  338. package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
  339. package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
  340. package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
  341. package/dist/api/resources/sales/types/index.d.ts +1 -0
  342. package/dist/api/resources/sales/types/index.js +1 -0
  343. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +5 -0
  344. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +5 -0
  345. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +5 -0
  346. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +5 -0
  347. package/package.json +1 -1
@@ -0,0 +1,48 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface DeferralsListPurchasesRequest {
6
+ page?: number;
7
+ pageSize?: number;
8
+ sort?: DeferralsListPurchasesRequest.Sort.Item[];
9
+ filter?: DeferralsListPurchasesRequest.Filter.Item[];
10
+ /** Numeric fields to sum over every row matching the filter (not only the current page) */
11
+ totals?: string[];
12
+ }
13
+ export declare namespace DeferralsListPurchasesRequest {
14
+ type Sort = Sort.Item[];
15
+ namespace Sort {
16
+ interface Item {
17
+ field: string;
18
+ dir?: Item.Dir | undefined;
19
+ }
20
+ namespace Item {
21
+ const Dir: {
22
+ readonly Asc: "asc";
23
+ readonly Desc: "desc";
24
+ };
25
+ type Dir = (typeof Dir)[keyof typeof Dir];
26
+ }
27
+ }
28
+ type Filter = Filter.Item[];
29
+ namespace Filter {
30
+ interface Item {
31
+ field: string;
32
+ op: Item.Op;
33
+ value: Item.Value;
34
+ }
35
+ namespace Item {
36
+ const Op: {
37
+ readonly Eq: "eq";
38
+ readonly Ne: "ne";
39
+ readonly Contains: "contains";
40
+ readonly Gte: "gte";
41
+ readonly Lte: "lte";
42
+ readonly In: "in";
43
+ };
44
+ type Op = (typeof Op)[keyof typeof Op];
45
+ type Value = string | number | boolean | (string | number)[];
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DeferralsListPurchasesRequest = void 0;
5
+ var DeferralsListPurchasesRequest;
6
+ (function (DeferralsListPurchasesRequest) {
7
+ let Sort;
8
+ (function (Sort) {
9
+ let Item;
10
+ (function (Item) {
11
+ Item.Dir = {
12
+ Asc: "asc",
13
+ Desc: "desc",
14
+ };
15
+ })(Item = Sort.Item || (Sort.Item = {}));
16
+ })(Sort = DeferralsListPurchasesRequest.Sort || (DeferralsListPurchasesRequest.Sort = {}));
17
+ let Filter;
18
+ (function (Filter) {
19
+ let Item;
20
+ (function (Item) {
21
+ Item.Op = {
22
+ Eq: "eq",
23
+ Ne: "ne",
24
+ Contains: "contains",
25
+ Gte: "gte",
26
+ Lte: "lte",
27
+ In: "in",
28
+ };
29
+ })(Item = Filter.Item || (Filter.Item = {}));
30
+ })(Filter = DeferralsListPurchasesRequest.Filter || (DeferralsListPurchasesRequest.Filter = {}));
31
+ })(DeferralsListPurchasesRequest || (exports.DeferralsListPurchasesRequest = DeferralsListPurchasesRequest = {}));
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface DeferralsPostPurchasesRequest {
6
+ asOfDate?: string;
7
+ }
@@ -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 });
@@ -46,6 +46,8 @@ export declare namespace InvoicesCreatePurchasesRequest {
46
46
  costCenterId?: string | undefined;
47
47
  projectId?: string | undefined;
48
48
  accountCode?: string | undefined;
49
+ deferralStartDate?: string | undefined;
50
+ deferralEndDate?: string | undefined;
49
51
  }
50
52
  namespace Item {
51
53
  type Quantity = number | string;
@@ -8,4 +8,5 @@ export interface InvoicesRegisterPurchasesRequest {
8
8
  id: string;
9
9
  registrationDate?: string;
10
10
  warehouseId?: string;
11
+ returnFromStock?: boolean;
11
12
  }
@@ -36,6 +36,8 @@ export declare namespace InvoicesUpdatePurchasesRequest {
36
36
  costCenterId?: string | undefined;
37
37
  projectId?: string | undefined;
38
38
  accountCode?: string | undefined;
39
+ deferralStartDate?: string | undefined;
40
+ deferralEndDate?: string | undefined;
39
41
  }
40
42
  namespace Item {
41
43
  type Quantity = number | string;
@@ -32,6 +32,8 @@ export declare namespace OrdersCreatePurchasesRequest {
32
32
  costCenterId?: string | undefined;
33
33
  projectId?: string | undefined;
34
34
  accountCode?: string | undefined;
35
+ deferralStartDate?: string | undefined;
36
+ deferralEndDate?: string | undefined;
35
37
  }
36
38
  namespace Item {
37
39
  type Quantity = number | string;
@@ -29,6 +29,8 @@ export declare namespace OrdersUpdatePurchasesRequest {
29
29
  costCenterId?: string | undefined;
30
30
  projectId?: string | undefined;
31
31
  accountCode?: string | undefined;
32
+ deferralStartDate?: string | undefined;
33
+ deferralEndDate?: string | undefined;
32
34
  }
33
35
  namespace Item {
34
36
  type Quantity = number | string;
@@ -1,3 +1,5 @@
1
+ export { DeferralsListPurchasesRequest } from "./DeferralsListPurchasesRequest.js";
2
+ export type { DeferralsPostPurchasesRequest } from "./DeferralsPostPurchasesRequest.js";
1
3
  export { InvoicesCreatePurchasesRequest } from "./InvoicesCreatePurchasesRequest.js";
2
4
  export type { InvoicesDeletePurchasesRequest } from "./InvoicesDeletePurchasesRequest.js";
3
5
  export type { InvoicesGetPurchasesRequest } from "./InvoicesGetPurchasesRequest.js";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReceiptsListPurchasesRequest = exports.OrdersListPurchasesRequest = exports.InvoicesListPurchasesRequest = exports.InvoicesCreatePurchasesRequest = void 0;
3
+ exports.ReceiptsListPurchasesRequest = exports.OrdersListPurchasesRequest = exports.InvoicesListPurchasesRequest = exports.InvoicesCreatePurchasesRequest = exports.DeferralsListPurchasesRequest = void 0;
4
+ var DeferralsListPurchasesRequest_js_1 = require("./DeferralsListPurchasesRequest.js");
5
+ Object.defineProperty(exports, "DeferralsListPurchasesRequest", { enumerable: true, get: function () { return DeferralsListPurchasesRequest_js_1.DeferralsListPurchasesRequest; } });
4
6
  var InvoicesCreatePurchasesRequest_js_1 = require("./InvoicesCreatePurchasesRequest.js");
5
7
  Object.defineProperty(exports, "InvoicesCreatePurchasesRequest", { enumerable: true, get: function () { return InvoicesCreatePurchasesRequest_js_1.InvoicesCreatePurchasesRequest; } });
6
8
  var InvoicesListPurchasesRequest_js_1 = require("./InvoicesListPurchasesRequest.js");
@@ -0,0 +1,34 @@
1
+ export interface DeferralsListPurchasesResponse {
2
+ rows: DeferralsListPurchasesResponse.Rows.Item[];
3
+ page: number;
4
+ pageSize: number;
5
+ total: number;
6
+ totals?: Record<string, string> | undefined;
7
+ /** The requested totals split by currency code, present when the listed records carry a currency */
8
+ totalsByCurrency?: Record<string, Record<string, string>> | undefined;
9
+ }
10
+ export declare namespace DeferralsListPurchasesResponse {
11
+ type Rows = Rows.Item[];
12
+ namespace Rows {
13
+ interface Item {
14
+ id: string;
15
+ invoiceId: string;
16
+ invoiceLineId: string;
17
+ scheduleDate: string;
18
+ description: string | null;
19
+ amount: string;
20
+ expenseAccountCode: string;
21
+ prepaidAccountCode: string;
22
+ status: Item.Status;
23
+ journalTransactionId: string | null;
24
+ }
25
+ namespace Item {
26
+ const Status: {
27
+ readonly Pending: "pending";
28
+ readonly Posted: "posted";
29
+ readonly Cancelled: "cancelled";
30
+ };
31
+ type Status = (typeof Status)[keyof typeof Status];
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DeferralsListPurchasesResponse = void 0;
5
+ var DeferralsListPurchasesResponse;
6
+ (function (DeferralsListPurchasesResponse) {
7
+ let Rows;
8
+ (function (Rows) {
9
+ let Item;
10
+ (function (Item) {
11
+ Item.Status = {
12
+ Pending: "pending",
13
+ Posted: "posted",
14
+ Cancelled: "cancelled",
15
+ };
16
+ })(Item = Rows.Item || (Rows.Item = {}));
17
+ })(Rows = DeferralsListPurchasesResponse.Rows || (DeferralsListPurchasesResponse.Rows = {}));
18
+ })(DeferralsListPurchasesResponse || (exports.DeferralsListPurchasesResponse = DeferralsListPurchasesResponse = {}));
@@ -0,0 +1,5 @@
1
+ export interface DeferralsPostPurchasesResponse {
2
+ posted: number;
3
+ total: string;
4
+ journalTransactionIds: string[];
5
+ }
@@ -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 });
@@ -60,6 +60,8 @@ export declare namespace InvoicesCreatePurchasesResponse {
60
60
  costCenterId: string | null;
61
61
  projectId: string | null;
62
62
  accountCode: string | null;
63
+ deferralStartDate: string | null;
64
+ deferralEndDate: string | null;
63
65
  lineNet: string;
64
66
  lineVat: string;
65
67
  lineGross: string;
@@ -60,6 +60,8 @@ export declare namespace InvoicesGetPurchasesResponse {
60
60
  costCenterId: string | null;
61
61
  projectId: string | null;
62
62
  accountCode: string | null;
63
+ deferralStartDate: string | null;
64
+ deferralEndDate: string | null;
63
65
  lineNet: string;
64
66
  lineVat: string;
65
67
  lineGross: string;
@@ -60,6 +60,8 @@ export declare namespace InvoicesRegisterPurchasesResponse {
60
60
  costCenterId: string | null;
61
61
  projectId: string | null;
62
62
  accountCode: string | null;
63
+ deferralStartDate: string | null;
64
+ deferralEndDate: string | null;
63
65
  lineNet: string;
64
66
  lineVat: string;
65
67
  lineGross: string;
@@ -60,6 +60,8 @@ export declare namespace InvoicesUpdatePurchasesResponse {
60
60
  costCenterId: string | null;
61
61
  projectId: string | null;
62
62
  accountCode: string | null;
63
+ deferralStartDate: string | null;
64
+ deferralEndDate: string | null;
63
65
  lineNet: string;
64
66
  lineVat: string;
65
67
  lineGross: string;
@@ -1,3 +1,5 @@
1
+ export * from "./DeferralsListPurchasesResponse.js";
2
+ export * from "./DeferralsPostPurchasesResponse.js";
1
3
  export * from "./InvoicesCreatePurchasesResponse.js";
2
4
  export * from "./InvoicesDeletePurchasesResponse.js";
3
5
  export * from "./InvoicesGetPurchasesResponse.js";
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./DeferralsListPurchasesResponse.js"), exports);
18
+ __exportStar(require("./DeferralsPostPurchasesResponse.js"), exports);
17
19
  __exportStar(require("./InvoicesCreatePurchasesResponse.js"), exports);
18
20
  __exportStar(require("./InvoicesDeletePurchasesResponse.js"), exports);
19
21
  __exportStar(require("./InvoicesGetPurchasesResponse.js"), exports);
@@ -13,6 +13,12 @@ export interface VatResolveReferenceRequest {
13
13
  actingAsMarketplace?: boolean;
14
14
  sellerEstablishedInEu?: boolean;
15
15
  importedConsignmentValueEur?: string;
16
+ serviceKind?: VatResolveReferenceRequest.ServiceKind;
17
+ serviceCountryCode?: string;
18
+ underlyingSupplierGaveVatNumber?: boolean;
19
+ underlyingSupplierChargesVat?: boolean;
20
+ goodsKind?: VatResolveReferenceRequest.GoodsKind;
21
+ goodsLocationCountryCode?: string;
16
22
  }
17
23
  export declare namespace VatResolveReferenceRequest {
18
24
  const SupplyType: {
@@ -21,4 +27,14 @@ export declare namespace VatResolveReferenceRequest {
21
27
  readonly Digital: "digital";
22
28
  };
23
29
  type SupplyType = (typeof SupplyType)[keyof typeof SupplyType];
30
+ const ServiceKind: {
31
+ readonly ShortTermAccommodation: "short_term_accommodation";
32
+ readonly PassengerRoadTransport: "passenger_road_transport";
33
+ };
34
+ type ServiceKind = (typeof ServiceKind)[keyof typeof ServiceKind];
35
+ const GoodsKind: {
36
+ readonly Installed: "installed";
37
+ readonly EnergyNetwork: "energy_network";
38
+ };
39
+ type GoodsKind = (typeof GoodsKind)[keyof typeof GoodsKind];
24
40
  }
@@ -9,4 +9,12 @@ var VatResolveReferenceRequest;
9
9
  Services: "services",
10
10
  Digital: "digital",
11
11
  };
12
+ VatResolveReferenceRequest.ServiceKind = {
13
+ ShortTermAccommodation: "short_term_accommodation",
14
+ PassengerRoadTransport: "passenger_road_transport",
15
+ };
16
+ VatResolveReferenceRequest.GoodsKind = {
17
+ Installed: "installed",
18
+ EnergyNetwork: "energy_network",
19
+ };
12
20
  })(VatResolveReferenceRequest || (exports.VatResolveReferenceRequest = VatResolveReferenceRequest = {}));
@@ -13,6 +13,7 @@ export declare namespace AdvanceReconciliationReportsResponse {
13
13
  opening: string;
14
14
  issued: string;
15
15
  returned: string;
16
+ settled: string;
16
17
  closing: string;
17
18
  }
18
19
  }
@@ -8,6 +8,7 @@ export declare namespace OnlineSalesReportsResponse {
8
8
  namespace Rows {
9
9
  interface Item {
10
10
  channel: string;
11
+ currency: string;
11
12
  orders: number;
12
13
  fulfilled: number;
13
14
  cancelled: number;
@@ -122,6 +122,8 @@ export declare class SalesClient {
122
122
  invoicesPeppolXml(request: NordletApi.InvoicesPeppolXmlSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolXmlSalesResponse>;
123
123
  private __invoicesPeppolXml;
124
124
  /**
125
+ * Send an issued invoice or credit note to the customer over Peppol through the company's own access point (Settings → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is refused with 422 and the document can only be downloaded with `sales/invoices/peppol-xml`. `status` is `pending` until the receiving access point confirms, then `delivered`; `failed` and `rejected` come with `detail`, and the invoice can then be sent again. Later changes arrive through the access point's webhook and are announced as `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` and `sale_invoice.peppol_failed`.
126
+ *
125
127
  * @param {NordletApi.InvoicesPeppolSendSalesRequest} request
126
128
  * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
127
129
  *
@@ -143,6 +145,30 @@ export declare class SalesClient {
143
145
  */
144
146
  invoicesPeppolSend(request: NordletApi.InvoicesPeppolSendSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolSendSalesResponse>;
145
147
  private __invoicesPeppolSend;
148
+ /**
149
+ * Ask the company's Peppol access point what happened to an invoice sent with `sales/invoices/peppol-send`, and store the answer: `pending`, `delivered` (the receiving access point confirmed it), `rejected` (the receiver refused it, see `detail`) or `failed` (it could not be delivered, see `detail`). The access point's webhook updates the same fields without this call. Storecove has no call for the status of a sent document, so for a Storecove access point this answers 422 and the status comes only from its webhook.
150
+ *
151
+ * @param {NordletApi.InvoicesPeppolStatusSalesRequest} request
152
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
153
+ *
154
+ * @throws {@link NordletApi.BadRequestError}
155
+ * @throws {@link NordletApi.UnauthorizedError}
156
+ * @throws {@link NordletApi.PaymentRequiredError}
157
+ * @throws {@link NordletApi.ForbiddenError}
158
+ * @throws {@link NordletApi.NotFoundError}
159
+ * @throws {@link NordletApi.ConflictError}
160
+ * @throws {@link NordletApi.ContentTooLargeError}
161
+ * @throws {@link NordletApi.UnprocessableEntityError}
162
+ * @throws {@link NordletApi.TooManyRequestsError}
163
+ * @throws {@link NordletApi.InternalServerError}
164
+ *
165
+ * @example
166
+ * await client.sales.invoicesPeppolStatus({
167
+ * id: "id"
168
+ * })
169
+ */
170
+ invoicesPeppolStatus(request: NordletApi.InvoicesPeppolStatusSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolStatusSalesResponse>;
171
+ private __invoicesPeppolStatus;
146
172
  /**
147
173
  * Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
148
174
  *
@@ -440,6 +440,8 @@ class SalesClient {
440
440
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-xml");
441
441
  }
442
442
  /**
443
+ * Send an issued invoice or credit note to the customer over Peppol through the company's own access point (Settings → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is refused with 422 and the document can only be downloaded with `sales/invoices/peppol-xml`. `status` is `pending` until the receiving access point confirms, then `delivered`; `failed` and `rejected` come with `detail`, and the invoice can then be sent again. Later changes arrive through the access point's webhook and are announced as `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` and `sale_invoice.peppol_failed`.
444
+ *
443
445
  * @param {NordletApi.InvoicesPeppolSendSalesRequest} request
444
446
  * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
445
447
  *
@@ -519,6 +521,88 @@ class SalesClient {
519
521
  }
520
522
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-send");
521
523
  }
524
+ /**
525
+ * Ask the company's Peppol access point what happened to an invoice sent with `sales/invoices/peppol-send`, and store the answer: `pending`, `delivered` (the receiving access point confirmed it), `rejected` (the receiver refused it, see `detail`) or `failed` (it could not be delivered, see `detail`). The access point's webhook updates the same fields without this call. Storecove has no call for the status of a sent document, so for a Storecove access point this answers 422 and the status comes only from its webhook.
526
+ *
527
+ * @param {NordletApi.InvoicesPeppolStatusSalesRequest} request
528
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
529
+ *
530
+ * @throws {@link NordletApi.BadRequestError}
531
+ * @throws {@link NordletApi.UnauthorizedError}
532
+ * @throws {@link NordletApi.PaymentRequiredError}
533
+ * @throws {@link NordletApi.ForbiddenError}
534
+ * @throws {@link NordletApi.NotFoundError}
535
+ * @throws {@link NordletApi.ConflictError}
536
+ * @throws {@link NordletApi.ContentTooLargeError}
537
+ * @throws {@link NordletApi.UnprocessableEntityError}
538
+ * @throws {@link NordletApi.TooManyRequestsError}
539
+ * @throws {@link NordletApi.InternalServerError}
540
+ *
541
+ * @example
542
+ * await client.sales.invoicesPeppolStatus({
543
+ * id: "id"
544
+ * })
545
+ */
546
+ invoicesPeppolStatus(request, requestOptions) {
547
+ return core.HttpResponsePromise.fromPromise(this.__invoicesPeppolStatus(request, requestOptions));
548
+ }
549
+ async __invoicesPeppolStatus(request, requestOptions) {
550
+ const _authRequest = await this._options.authProvider.getAuthRequest();
551
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
552
+ const _response = await core.fetcher({
553
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
554
+ (await core.Supplier.get(this._options.environment)) ??
555
+ environments.NordletApiEnvironment.Production, "v1/sales/invoices/peppol-status"),
556
+ method: "POST",
557
+ headers: _headers,
558
+ contentType: "application/json",
559
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
560
+ requestType: "json",
561
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
562
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
563
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
564
+ abortSignal: requestOptions?.abortSignal,
565
+ fetchFn: this._options?.fetch,
566
+ logging: this._options.logging,
567
+ });
568
+ if (_response.ok) {
569
+ return {
570
+ data: _response.body,
571
+ rawResponse: _response.rawResponse,
572
+ };
573
+ }
574
+ if (_response.error.reason === "status-code") {
575
+ switch (_response.error.statusCode) {
576
+ case 400:
577
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
578
+ case 401:
579
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
580
+ case 402:
581
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
582
+ case 403:
583
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
584
+ case 404:
585
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
586
+ case 409:
587
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
588
+ case 413:
589
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
590
+ case 422:
591
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
592
+ case 429:
593
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
594
+ case 500:
595
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
596
+ default:
597
+ throw new errors.NordletApiError({
598
+ statusCode: _response.error.statusCode,
599
+ body: _response.error.body,
600
+ rawResponse: _response.rawResponse,
601
+ });
602
+ }
603
+ }
604
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-status");
605
+ }
522
606
  /**
523
607
  * Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
524
608
  *
@@ -9,4 +9,6 @@ export interface InvoicesApplyAdvanceSalesRequest {
9
9
  advanceId: string;
10
10
  invoiceId: string;
11
11
  date?: string;
12
+ /** Gross amount of the advance to apply; defaults to the unapplied advance or the unpaid balance of the invoice, whichever is smaller */
13
+ amount?: string;
12
14
  }
@@ -9,4 +9,5 @@ export interface InvoicesIssueSalesRequest {
9
9
  series?: string;
10
10
  issueDate?: string;
11
11
  warehouseId?: string;
12
+ returnToStock?: boolean;
12
13
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface InvoicesPeppolStatusSalesRequest {
8
+ id: string;
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 });
@@ -20,6 +20,7 @@ export type { InvoicesPaymentSettingsGetSalesRequest } from "./InvoicesPaymentSe
20
20
  export type { InvoicesPaymentSettingsUpdateSalesRequest } from "./InvoicesPaymentSettingsUpdateSalesRequest.js";
21
21
  export { InvoicesPdfSalesRequest } from "./InvoicesPdfSalesRequest.js";
22
22
  export type { InvoicesPeppolSendSalesRequest } from "./InvoicesPeppolSendSalesRequest.js";
23
+ export type { InvoicesPeppolStatusSalesRequest } from "./InvoicesPeppolStatusSalesRequest.js";
23
24
  export type { InvoicesPeppolXmlSalesRequest } from "./InvoicesPeppolXmlSalesRequest.js";
24
25
  export { InvoicesSendSalesRequest } from "./InvoicesSendSalesRequest.js";
25
26
  export type { InvoicesUnlockSalesRequest } from "./InvoicesUnlockSalesRequest.js";
@@ -50,8 +50,15 @@ export interface InvoicesApplyAdvanceSalesResponse {
50
50
  einvoiceDetail: string | null;
51
51
  einvoiceSentAt: string | null;
52
52
  einvoiceCheckedAt: string | null;
53
+ peppolMessageId: string | null;
54
+ peppolStatus: string | null;
55
+ peppolDetail: string | null;
56
+ peppolSentAt: string | null;
57
+ peppolCheckedAt: string | null;
53
58
  createdAt: string;
54
59
  updatedAt: string;
60
+ /** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
61
+ advanceAppliedAmount: string | null;
55
62
  lines: InvoicesApplyAdvanceSalesResponse.Lines.Item[];
56
63
  vatEvidence: InvoicesApplyAdvanceSalesResponse.VatEvidence | null;
57
64
  }
@@ -50,8 +50,15 @@ export interface InvoicesCreateSalesResponse {
50
50
  einvoiceDetail: string | null;
51
51
  einvoiceSentAt: string | null;
52
52
  einvoiceCheckedAt: string | null;
53
+ peppolMessageId: string | null;
54
+ peppolStatus: string | null;
55
+ peppolDetail: string | null;
56
+ peppolSentAt: string | null;
57
+ peppolCheckedAt: string | null;
53
58
  createdAt: string;
54
59
  updatedAt: string;
60
+ /** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
61
+ advanceAppliedAmount: string | null;
55
62
  lines: InvoicesCreateSalesResponse.Lines.Item[];
56
63
  vatEvidence: InvoicesCreateSalesResponse.VatEvidence | null;
57
64
  }
@@ -50,8 +50,15 @@ export interface InvoicesGetSalesResponse {
50
50
  einvoiceDetail: string | null;
51
51
  einvoiceSentAt: string | null;
52
52
  einvoiceCheckedAt: string | null;
53
+ peppolMessageId: string | null;
54
+ peppolStatus: string | null;
55
+ peppolDetail: string | null;
56
+ peppolSentAt: string | null;
57
+ peppolCheckedAt: string | null;
53
58
  createdAt: string;
54
59
  updatedAt: string;
60
+ /** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
61
+ advanceAppliedAmount: string | null;
55
62
  lines: InvoicesGetSalesResponse.Lines.Item[];
56
63
  vatEvidence: InvoicesGetSalesResponse.VatEvidence | null;
57
64
  }
@@ -50,8 +50,15 @@ export interface InvoicesIssueSalesResponse {
50
50
  einvoiceDetail: string | null;
51
51
  einvoiceSentAt: string | null;
52
52
  einvoiceCheckedAt: string | null;
53
+ peppolMessageId: string | null;
54
+ peppolStatus: string | null;
55
+ peppolDetail: string | null;
56
+ peppolSentAt: string | null;
57
+ peppolCheckedAt: string | null;
53
58
  createdAt: string;
54
59
  updatedAt: string;
60
+ /** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
61
+ advanceAppliedAmount: string | null;
55
62
  lines: InvoicesIssueSalesResponse.Lines.Item[];
56
63
  vatEvidence: InvoicesIssueSalesResponse.VatEvidence | null;
57
64
  }
@@ -62,6 +62,11 @@ export declare namespace InvoicesListSalesResponse {
62
62
  einvoiceDetail: string | null;
63
63
  einvoiceSentAt: string | null;
64
64
  einvoiceCheckedAt: string | null;
65
+ peppolMessageId: string | null;
66
+ peppolStatus: string | null;
67
+ peppolDetail: string | null;
68
+ peppolSentAt: string | null;
69
+ peppolCheckedAt: string | null;
65
70
  createdAt: string;
66
71
  updatedAt: string;
67
72
  partnerName: string | null;
@@ -50,8 +50,15 @@ export interface InvoicesLockSalesResponse {
50
50
  einvoiceDetail: string | null;
51
51
  einvoiceSentAt: string | null;
52
52
  einvoiceCheckedAt: string | null;
53
+ peppolMessageId: string | null;
54
+ peppolStatus: string | null;
55
+ peppolDetail: string | null;
56
+ peppolSentAt: string | null;
57
+ peppolCheckedAt: string | null;
53
58
  createdAt: string;
54
59
  updatedAt: string;
60
+ /** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
61
+ advanceAppliedAmount: string | null;
55
62
  lines: InvoicesLockSalesResponse.Lines.Item[];
56
63
  vatEvidence: InvoicesLockSalesResponse.VatEvidence | null;
57
64
  }
@@ -2,5 +2,16 @@ export interface InvoicesPeppolSendSalesResponse {
2
2
  sent: boolean;
3
3
  messageId: string;
4
4
  receiverId: string;
5
+ status: InvoicesPeppolSendSalesResponse.Status;
6
+ detail: string | null;
5
7
  fileId: string | null;
6
8
  }
9
+ export declare namespace InvoicesPeppolSendSalesResponse {
10
+ const Status: {
11
+ readonly Pending: "pending";
12
+ readonly Delivered: "delivered";
13
+ readonly Rejected: "rejected";
14
+ readonly Failed: "failed";
15
+ };
16
+ type Status = (typeof Status)[keyof typeof Status];
17
+ }