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
@@ -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
  *
@@ -2169,6 +2253,404 @@ class SalesClient {
2169
2253
  }
2170
2254
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/acts/pdf");
2171
2255
  }
2256
+ /**
2257
+ * @param {NordletApi.InvoiceTemplatesCreateSalesRequest} request
2258
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
2259
+ *
2260
+ * @throws {@link NordletApi.BadRequestError}
2261
+ * @throws {@link NordletApi.UnauthorizedError}
2262
+ * @throws {@link NordletApi.PaymentRequiredError}
2263
+ * @throws {@link NordletApi.ForbiddenError}
2264
+ * @throws {@link NordletApi.NotFoundError}
2265
+ * @throws {@link NordletApi.ConflictError}
2266
+ * @throws {@link NordletApi.ContentTooLargeError}
2267
+ * @throws {@link NordletApi.UnprocessableEntityError}
2268
+ * @throws {@link NordletApi.TooManyRequestsError}
2269
+ * @throws {@link NordletApi.InternalServerError}
2270
+ *
2271
+ * @example
2272
+ * await client.sales.invoiceTemplatesCreate({
2273
+ * name: "name"
2274
+ * })
2275
+ */
2276
+ invoiceTemplatesCreate(request, requestOptions) {
2277
+ return core.HttpResponsePromise.fromPromise(this.__invoiceTemplatesCreate(request, requestOptions));
2278
+ }
2279
+ async __invoiceTemplatesCreate(request, requestOptions) {
2280
+ const _authRequest = await this._options.authProvider.getAuthRequest();
2281
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
2282
+ const _response = await core.fetcher({
2283
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
2284
+ (await core.Supplier.get(this._options.environment)) ??
2285
+ environments.NordletApiEnvironment.Production, "v1/sales/invoice-templates/create"),
2286
+ method: "POST",
2287
+ headers: _headers,
2288
+ contentType: "application/json",
2289
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
2290
+ requestType: "json",
2291
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
2292
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
2293
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
2294
+ abortSignal: requestOptions?.abortSignal,
2295
+ fetchFn: this._options?.fetch,
2296
+ logging: this._options.logging,
2297
+ });
2298
+ if (_response.ok) {
2299
+ return {
2300
+ data: _response.body,
2301
+ rawResponse: _response.rawResponse,
2302
+ };
2303
+ }
2304
+ if (_response.error.reason === "status-code") {
2305
+ switch (_response.error.statusCode) {
2306
+ case 400:
2307
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
2308
+ case 401:
2309
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
2310
+ case 402:
2311
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
2312
+ case 403:
2313
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
2314
+ case 404:
2315
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
2316
+ case 409:
2317
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
2318
+ case 413:
2319
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2320
+ case 422:
2321
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2322
+ case 429:
2323
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2324
+ case 500:
2325
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2326
+ default:
2327
+ throw new errors.NordletApiError({
2328
+ statusCode: _response.error.statusCode,
2329
+ body: _response.error.body,
2330
+ rawResponse: _response.rawResponse,
2331
+ });
2332
+ }
2333
+ }
2334
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoice-templates/create");
2335
+ }
2336
+ /**
2337
+ * @param {NordletApi.InvoiceTemplatesUpdateSalesRequest} request
2338
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
2339
+ *
2340
+ * @throws {@link NordletApi.BadRequestError}
2341
+ * @throws {@link NordletApi.UnauthorizedError}
2342
+ * @throws {@link NordletApi.PaymentRequiredError}
2343
+ * @throws {@link NordletApi.ForbiddenError}
2344
+ * @throws {@link NordletApi.NotFoundError}
2345
+ * @throws {@link NordletApi.ConflictError}
2346
+ * @throws {@link NordletApi.ContentTooLargeError}
2347
+ * @throws {@link NordletApi.UnprocessableEntityError}
2348
+ * @throws {@link NordletApi.TooManyRequestsError}
2349
+ * @throws {@link NordletApi.InternalServerError}
2350
+ *
2351
+ * @example
2352
+ * await client.sales.invoiceTemplatesUpdate({
2353
+ * id: "id"
2354
+ * })
2355
+ */
2356
+ invoiceTemplatesUpdate(request, requestOptions) {
2357
+ return core.HttpResponsePromise.fromPromise(this.__invoiceTemplatesUpdate(request, requestOptions));
2358
+ }
2359
+ async __invoiceTemplatesUpdate(request, requestOptions) {
2360
+ const _authRequest = await this._options.authProvider.getAuthRequest();
2361
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
2362
+ const _response = await core.fetcher({
2363
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
2364
+ (await core.Supplier.get(this._options.environment)) ??
2365
+ environments.NordletApiEnvironment.Production, "v1/sales/invoice-templates/update"),
2366
+ method: "POST",
2367
+ headers: _headers,
2368
+ contentType: "application/json",
2369
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
2370
+ requestType: "json",
2371
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
2372
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
2373
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
2374
+ abortSignal: requestOptions?.abortSignal,
2375
+ fetchFn: this._options?.fetch,
2376
+ logging: this._options.logging,
2377
+ });
2378
+ if (_response.ok) {
2379
+ return {
2380
+ data: _response.body,
2381
+ rawResponse: _response.rawResponse,
2382
+ };
2383
+ }
2384
+ if (_response.error.reason === "status-code") {
2385
+ switch (_response.error.statusCode) {
2386
+ case 400:
2387
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
2388
+ case 401:
2389
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
2390
+ case 402:
2391
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
2392
+ case 403:
2393
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
2394
+ case 404:
2395
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
2396
+ case 409:
2397
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
2398
+ case 413:
2399
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2400
+ case 422:
2401
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2402
+ case 429:
2403
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2404
+ case 500:
2405
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2406
+ default:
2407
+ throw new errors.NordletApiError({
2408
+ statusCode: _response.error.statusCode,
2409
+ body: _response.error.body,
2410
+ rawResponse: _response.rawResponse,
2411
+ });
2412
+ }
2413
+ }
2414
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoice-templates/update");
2415
+ }
2416
+ /**
2417
+ * @param {NordletApi.InvoiceTemplatesGetSalesRequest} request
2418
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
2419
+ *
2420
+ * @throws {@link NordletApi.BadRequestError}
2421
+ * @throws {@link NordletApi.UnauthorizedError}
2422
+ * @throws {@link NordletApi.PaymentRequiredError}
2423
+ * @throws {@link NordletApi.ForbiddenError}
2424
+ * @throws {@link NordletApi.NotFoundError}
2425
+ * @throws {@link NordletApi.ConflictError}
2426
+ * @throws {@link NordletApi.ContentTooLargeError}
2427
+ * @throws {@link NordletApi.UnprocessableEntityError}
2428
+ * @throws {@link NordletApi.TooManyRequestsError}
2429
+ * @throws {@link NordletApi.InternalServerError}
2430
+ *
2431
+ * @example
2432
+ * await client.sales.invoiceTemplatesGet({
2433
+ * id: "id"
2434
+ * })
2435
+ */
2436
+ invoiceTemplatesGet(request, requestOptions) {
2437
+ return core.HttpResponsePromise.fromPromise(this.__invoiceTemplatesGet(request, requestOptions));
2438
+ }
2439
+ async __invoiceTemplatesGet(request, requestOptions) {
2440
+ const _authRequest = await this._options.authProvider.getAuthRequest();
2441
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
2442
+ const _response = await core.fetcher({
2443
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
2444
+ (await core.Supplier.get(this._options.environment)) ??
2445
+ environments.NordletApiEnvironment.Production, "v1/sales/invoice-templates/get"),
2446
+ method: "POST",
2447
+ headers: _headers,
2448
+ contentType: "application/json",
2449
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
2450
+ requestType: "json",
2451
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
2452
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
2453
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
2454
+ abortSignal: requestOptions?.abortSignal,
2455
+ fetchFn: this._options?.fetch,
2456
+ logging: this._options.logging,
2457
+ });
2458
+ if (_response.ok) {
2459
+ return {
2460
+ data: _response.body,
2461
+ rawResponse: _response.rawResponse,
2462
+ };
2463
+ }
2464
+ if (_response.error.reason === "status-code") {
2465
+ switch (_response.error.statusCode) {
2466
+ case 400:
2467
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
2468
+ case 401:
2469
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
2470
+ case 402:
2471
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
2472
+ case 403:
2473
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
2474
+ case 404:
2475
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
2476
+ case 409:
2477
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
2478
+ case 413:
2479
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2480
+ case 422:
2481
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2482
+ case 429:
2483
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2484
+ case 500:
2485
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2486
+ default:
2487
+ throw new errors.NordletApiError({
2488
+ statusCode: _response.error.statusCode,
2489
+ body: _response.error.body,
2490
+ rawResponse: _response.rawResponse,
2491
+ });
2492
+ }
2493
+ }
2494
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoice-templates/get");
2495
+ }
2496
+ /**
2497
+ * @param {NordletApi.InvoiceTemplatesDeleteSalesRequest} request
2498
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
2499
+ *
2500
+ * @throws {@link NordletApi.BadRequestError}
2501
+ * @throws {@link NordletApi.UnauthorizedError}
2502
+ * @throws {@link NordletApi.PaymentRequiredError}
2503
+ * @throws {@link NordletApi.ForbiddenError}
2504
+ * @throws {@link NordletApi.NotFoundError}
2505
+ * @throws {@link NordletApi.ConflictError}
2506
+ * @throws {@link NordletApi.ContentTooLargeError}
2507
+ * @throws {@link NordletApi.UnprocessableEntityError}
2508
+ * @throws {@link NordletApi.TooManyRequestsError}
2509
+ * @throws {@link NordletApi.InternalServerError}
2510
+ *
2511
+ * @example
2512
+ * await client.sales.invoiceTemplatesDelete({
2513
+ * id: "id"
2514
+ * })
2515
+ */
2516
+ invoiceTemplatesDelete(request, requestOptions) {
2517
+ return core.HttpResponsePromise.fromPromise(this.__invoiceTemplatesDelete(request, requestOptions));
2518
+ }
2519
+ async __invoiceTemplatesDelete(request, requestOptions) {
2520
+ const _authRequest = await this._options.authProvider.getAuthRequest();
2521
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
2522
+ const _response = await core.fetcher({
2523
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
2524
+ (await core.Supplier.get(this._options.environment)) ??
2525
+ environments.NordletApiEnvironment.Production, "v1/sales/invoice-templates/delete"),
2526
+ method: "POST",
2527
+ headers: _headers,
2528
+ contentType: "application/json",
2529
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
2530
+ requestType: "json",
2531
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
2532
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
2533
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
2534
+ abortSignal: requestOptions?.abortSignal,
2535
+ fetchFn: this._options?.fetch,
2536
+ logging: this._options.logging,
2537
+ });
2538
+ if (_response.ok) {
2539
+ return {
2540
+ data: _response.body,
2541
+ rawResponse: _response.rawResponse,
2542
+ };
2543
+ }
2544
+ if (_response.error.reason === "status-code") {
2545
+ switch (_response.error.statusCode) {
2546
+ case 400:
2547
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
2548
+ case 401:
2549
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
2550
+ case 402:
2551
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
2552
+ case 403:
2553
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
2554
+ case 404:
2555
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
2556
+ case 409:
2557
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
2558
+ case 413:
2559
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2560
+ case 422:
2561
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2562
+ case 429:
2563
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2564
+ case 500:
2565
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2566
+ default:
2567
+ throw new errors.NordletApiError({
2568
+ statusCode: _response.error.statusCode,
2569
+ body: _response.error.body,
2570
+ rawResponse: _response.rawResponse,
2571
+ });
2572
+ }
2573
+ }
2574
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoice-templates/delete");
2575
+ }
2576
+ /**
2577
+ * @param {NordletApi.InvoiceTemplatesListSalesRequest} request
2578
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
2579
+ *
2580
+ * @throws {@link NordletApi.BadRequestError}
2581
+ * @throws {@link NordletApi.UnauthorizedError}
2582
+ * @throws {@link NordletApi.PaymentRequiredError}
2583
+ * @throws {@link NordletApi.ForbiddenError}
2584
+ * @throws {@link NordletApi.NotFoundError}
2585
+ * @throws {@link NordletApi.ConflictError}
2586
+ * @throws {@link NordletApi.ContentTooLargeError}
2587
+ * @throws {@link NordletApi.UnprocessableEntityError}
2588
+ * @throws {@link NordletApi.TooManyRequestsError}
2589
+ * @throws {@link NordletApi.InternalServerError}
2590
+ *
2591
+ * @example
2592
+ * await client.sales.invoiceTemplatesList()
2593
+ */
2594
+ invoiceTemplatesList(request = {}, requestOptions) {
2595
+ return core.HttpResponsePromise.fromPromise(this.__invoiceTemplatesList(request, requestOptions));
2596
+ }
2597
+ async __invoiceTemplatesList(request = {}, requestOptions) {
2598
+ const _authRequest = await this._options.authProvider.getAuthRequest();
2599
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
2600
+ const _response = await core.fetcher({
2601
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
2602
+ (await core.Supplier.get(this._options.environment)) ??
2603
+ environments.NordletApiEnvironment.Production, "v1/sales/invoice-templates/list"),
2604
+ method: "POST",
2605
+ headers: _headers,
2606
+ contentType: "application/json",
2607
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
2608
+ requestType: "json",
2609
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
2610
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
2611
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
2612
+ abortSignal: requestOptions?.abortSignal,
2613
+ fetchFn: this._options?.fetch,
2614
+ logging: this._options.logging,
2615
+ });
2616
+ if (_response.ok) {
2617
+ return {
2618
+ data: _response.body,
2619
+ rawResponse: _response.rawResponse,
2620
+ };
2621
+ }
2622
+ if (_response.error.reason === "status-code") {
2623
+ switch (_response.error.statusCode) {
2624
+ case 400:
2625
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
2626
+ case 401:
2627
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
2628
+ case 402:
2629
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
2630
+ case 403:
2631
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
2632
+ case 404:
2633
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
2634
+ case 409:
2635
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
2636
+ case 413:
2637
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
2638
+ case 422:
2639
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
2640
+ case 429:
2641
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
2642
+ case 500:
2643
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
2644
+ default:
2645
+ throw new errors.NordletApiError({
2646
+ statusCode: _response.error.statusCode,
2647
+ body: _response.error.body,
2648
+ rawResponse: _response.rawResponse,
2649
+ });
2650
+ }
2651
+ }
2652
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoice-templates/list");
2653
+ }
2172
2654
  /**
2173
2655
  * @param {NordletApi.RecognitionComputeSalesRequest} request
2174
2656
  * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,70 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * name: "name"
5
+ * }
6
+ */
7
+ export interface InvoiceTemplatesCreateSalesRequest {
8
+ name: string;
9
+ documentType?: InvoiceTemplatesCreateSalesRequest.DocumentType;
10
+ partnerId?: string | null;
11
+ currency?: string | null;
12
+ paymentTermDays?: number | null;
13
+ vatScheme?: InvoiceTemplatesCreateSalesRequest.VatScheme | null;
14
+ vatCountryCode?: string | null;
15
+ agreementId?: string | null;
16
+ operationTypeId?: string | null;
17
+ documentSeriesId?: string | null;
18
+ discountPercent?: string | null;
19
+ issuedByName?: string | null;
20
+ issuedByTitle?: string | null;
21
+ receivedByName?: string | null;
22
+ receivedByTitle?: string | null;
23
+ notes?: string | null;
24
+ supplyType?: InvoiceTemplatesCreateSalesRequest.SupplyType | null;
25
+ seriesLabel?: string | null;
26
+ orderNumber?: string | null;
27
+ intrastatTransportMode?: string | null;
28
+ intrastatDeliveryTerms?: string | null;
29
+ intrastatRegion?: string | null;
30
+ intrastatNatureOfTransaction?: string | null;
31
+ lines?: InvoiceTemplatesCreateSalesRequest.Lines.Item[];
32
+ }
33
+ export declare namespace InvoiceTemplatesCreateSalesRequest {
34
+ const DocumentType: {
35
+ readonly Invoice: "invoice";
36
+ readonly CreditNote: "credit_note";
37
+ };
38
+ type DocumentType = (typeof DocumentType)[keyof typeof DocumentType];
39
+ const VatScheme: {
40
+ readonly Domestic: "domestic";
41
+ readonly IntraEuB2B: "intra_eu_b2b";
42
+ readonly ReverseCharge: "reverse_charge";
43
+ readonly OssUnion: "oss_union";
44
+ readonly Ioss: "ioss";
45
+ readonly MarketplaceDeemed: "marketplace_deemed";
46
+ readonly Export: "export";
47
+ readonly OutOfScope: "out_of_scope";
48
+ readonly SmeExempt: "sme_exempt";
49
+ };
50
+ type VatScheme = (typeof VatScheme)[keyof typeof VatScheme];
51
+ const SupplyType: {
52
+ readonly Goods: "goods";
53
+ readonly Services: "services";
54
+ readonly Digital: "digital";
55
+ };
56
+ type SupplyType = (typeof SupplyType)[keyof typeof SupplyType];
57
+ type Lines = Lines.Item[];
58
+ namespace Lines {
59
+ interface Item {
60
+ itemId?: string | undefined;
61
+ description?: string | undefined;
62
+ quantity?: string | undefined;
63
+ unitPriceExclVat?: string | undefined;
64
+ vatRatePercent?: string | undefined;
65
+ vatExemptionBasis?: string | undefined;
66
+ projectId?: string | undefined;
67
+ unit?: string | undefined;
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InvoiceTemplatesCreateSalesRequest = void 0;
5
+ var InvoiceTemplatesCreateSalesRequest;
6
+ (function (InvoiceTemplatesCreateSalesRequest) {
7
+ InvoiceTemplatesCreateSalesRequest.DocumentType = {
8
+ Invoice: "invoice",
9
+ CreditNote: "credit_note",
10
+ };
11
+ InvoiceTemplatesCreateSalesRequest.VatScheme = {
12
+ Domestic: "domestic",
13
+ IntraEuB2B: "intra_eu_b2b",
14
+ ReverseCharge: "reverse_charge",
15
+ OssUnion: "oss_union",
16
+ Ioss: "ioss",
17
+ MarketplaceDeemed: "marketplace_deemed",
18
+ Export: "export",
19
+ OutOfScope: "out_of_scope",
20
+ SmeExempt: "sme_exempt",
21
+ };
22
+ InvoiceTemplatesCreateSalesRequest.SupplyType = {
23
+ Goods: "goods",
24
+ Services: "services",
25
+ Digital: "digital",
26
+ };
27
+ })(InvoiceTemplatesCreateSalesRequest || (exports.InvoiceTemplatesCreateSalesRequest = InvoiceTemplatesCreateSalesRequest = {}));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface InvoiceTemplatesDeleteSalesRequest {
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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface InvoiceTemplatesGetSalesRequest {
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 });