nordlet 0.3.11 → 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 (104) hide show
  1. package/dist/api/resources/account/types/MeAccountResponse.d.ts +3 -0
  2. package/dist/api/resources/bank/client/Client.d.ts +65 -0
  3. package/dist/api/resources/bank/client/Client.js +236 -0
  4. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +1 -0
  5. package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +1 -0
  6. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +1 -0
  7. package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +1 -0
  8. package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.d.ts +9 -0
  9. package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.js +3 -0
  10. package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.d.ts +12 -0
  11. package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.js +3 -0
  12. package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.d.ts +48 -0
  13. package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.js +31 -0
  14. package/dist/api/resources/bank/client/requests/index.d.ts +3 -0
  15. package/dist/api/resources/bank/client/requests/index.js +3 -1
  16. package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +1 -0
  17. package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +1 -0
  18. package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +1 -0
  19. package/dist/api/resources/bank/types/AccountsListBankResponse.js +1 -0
  20. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +1 -0
  21. package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +1 -0
  22. package/dist/api/resources/bank/types/SecuritiesGetBankResponse.d.ts +50 -0
  23. package/dist/api/resources/bank/types/SecuritiesGetBankResponse.js +17 -0
  24. package/dist/api/resources/bank/types/SecuritiesImportBankResponse.d.ts +14 -0
  25. package/dist/api/resources/bank/types/SecuritiesImportBankResponse.js +3 -0
  26. package/dist/api/resources/bank/types/SecuritiesListBankResponse.d.ts +28 -0
  27. package/dist/api/resources/bank/types/SecuritiesListBankResponse.js +3 -0
  28. package/dist/api/resources/bank/types/index.d.ts +3 -0
  29. package/dist/api/resources/bank/types/index.js +3 -0
  30. package/dist/api/resources/billing/client/Client.d.ts +131 -0
  31. package/dist/api/resources/billing/client/Client.js +479 -0
  32. package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.d.ts +16 -0
  33. package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.js +11 -0
  34. package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.d.ts +11 -0
  35. package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.js +3 -0
  36. package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.d.ts +9 -0
  37. package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.js +3 -0
  38. package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.d.ts +9 -0
  39. package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.js +3 -0
  40. package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.d.ts +22 -0
  41. package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.js +17 -0
  42. package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.d.ts +9 -0
  43. package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.js +3 -0
  44. package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.d.ts +6 -0
  45. package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.js +4 -0
  46. package/dist/api/resources/billing/client/requests/index.d.ts +6 -0
  47. package/dist/api/resources/billing/client/requests/index.js +5 -1
  48. package/dist/api/resources/billing/types/AccountGetBillingResponse.d.ts +18 -2
  49. package/dist/api/resources/billing/types/AccountGetBillingResponse.js +4 -0
  50. package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.d.ts +70 -0
  51. package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.js +21 -0
  52. package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.d.ts +70 -0
  53. package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.js +21 -0
  54. package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.d.ts +70 -0
  55. package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.js +21 -0
  56. package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.d.ts +18 -2
  57. package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.js +4 -0
  58. package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.d.ts +70 -0
  59. package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.js +21 -0
  60. package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.d.ts +4 -0
  61. package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.js +3 -0
  62. package/dist/api/resources/billing/types/TopupConfirmBillingResponse.d.ts +70 -0
  63. package/dist/api/resources/billing/types/TopupConfirmBillingResponse.js +21 -0
  64. package/dist/api/resources/billing/types/UsageListBillingResponse.d.ts +1 -0
  65. package/dist/api/resources/billing/types/UsageListBillingResponse.js +1 -0
  66. package/dist/api/resources/billing/types/index.d.ts +6 -0
  67. package/dist/api/resources/billing/types/index.js +6 -0
  68. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +8 -0
  69. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +8 -0
  70. package/dist/api/resources/partners/client/requests/CreatePartnersRequest.d.ts +0 -2
  71. package/dist/api/resources/partners/client/requests/FindOrCreatePartnersRequest.d.ts +0 -2
  72. package/dist/api/resources/partners/client/requests/UpdatePartnersRequest.d.ts +0 -2
  73. package/dist/api/resources/partners/types/CreatePartnersResponse.d.ts +0 -2
  74. package/dist/api/resources/partners/types/FindOrCreatePartnersResponse.d.ts +0 -2
  75. package/dist/api/resources/partners/types/GetPartnersResponse.d.ts +0 -2
  76. package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +0 -2
  77. package/dist/api/resources/partners/types/UpdatePartnersResponse.d.ts +0 -2
  78. package/dist/api/resources/sales/client/Client.d.ts +108 -0
  79. package/dist/api/resources/sales/client/Client.js +398 -0
  80. package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.d.ts +70 -0
  81. package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.js +27 -0
  82. package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.d.ts +9 -0
  83. package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.js +3 -0
  84. package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.d.ts +9 -0
  85. package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.js +3 -0
  86. package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.d.ts +48 -0
  87. package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.js +31 -0
  88. package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.d.ts +71 -0
  89. package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.js +27 -0
  90. package/dist/api/resources/sales/client/requests/index.d.ts +5 -0
  91. package/dist/api/resources/sales/client/requests/index.js +7 -1
  92. package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.d.ts +55 -0
  93. package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.js +16 -0
  94. package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.d.ts +3 -0
  95. package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.js +3 -0
  96. package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.d.ts +55 -0
  97. package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.js +16 -0
  98. package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.d.ts +69 -0
  99. package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.js +22 -0
  100. package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.d.ts +55 -0
  101. package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.js +16 -0
  102. package/dist/api/resources/sales/types/index.d.ts +5 -0
  103. package/dist/api/resources/sales/types/index.js +5 -0
  104. package/package.json +1 -1
@@ -1,6 +1,12 @@
1
1
  export * from "./AccountGetBillingResponse.js";
2
+ export * from "./AccountSetAccountTypeBillingResponse.js";
3
+ export * from "./AccountSetAutoTopUpBillingResponse.js";
4
+ export * from "./AccountSetOverdraftCapBillingResponse.js";
2
5
  export * from "./AccountSetPlanBillingResponse.js";
6
+ export * from "./FlatRateConfirmBillingResponse.js";
7
+ export * from "./FlatRateCreateBillingResponse.js";
3
8
  export * from "./PortalCreateBillingResponse.js";
9
+ export * from "./TopupConfirmBillingResponse.js";
4
10
  export * from "./TopupCreateBillingResponse.js";
5
11
  export * from "./TransactionsListBillingResponse.js";
6
12
  export * from "./UsageListBillingResponse.js";
@@ -15,8 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AccountGetBillingResponse.js"), exports);
18
+ __exportStar(require("./AccountSetAccountTypeBillingResponse.js"), exports);
19
+ __exportStar(require("./AccountSetAutoTopUpBillingResponse.js"), exports);
20
+ __exportStar(require("./AccountSetOverdraftCapBillingResponse.js"), exports);
18
21
  __exportStar(require("./AccountSetPlanBillingResponse.js"), exports);
22
+ __exportStar(require("./FlatRateConfirmBillingResponse.js"), exports);
23
+ __exportStar(require("./FlatRateCreateBillingResponse.js"), exports);
19
24
  __exportStar(require("./PortalCreateBillingResponse.js"), exports);
25
+ __exportStar(require("./TopupConfirmBillingResponse.js"), exports);
20
26
  __exportStar(require("./TopupCreateBillingResponse.js"), exports);
21
27
  __exportStar(require("./TransactionsListBillingResponse.js"), exports);
22
28
  __exportStar(require("./UsageListBillingResponse.js"), exports);
@@ -45,6 +45,14 @@ export declare namespace PostingRulesUpdateLedgerRequest {
45
45
  readonly AssetsDisposalLoss: "assets.disposalLoss";
46
46
  readonly AssetsDisposalProceeds: "assets.disposalProceeds";
47
47
  readonly CashAdvances: "cash.advances";
48
+ readonly SecuritiesInvestments: "securities.investments";
49
+ readonly SecuritiesGain: "securities.gain";
50
+ readonly SecuritiesLoss: "securities.loss";
51
+ readonly SecuritiesDividendIncome: "securities.dividendIncome";
52
+ readonly SecuritiesWithholdingTax: "securities.withholdingTax";
53
+ readonly SecuritiesInterestIncome: "securities.interestIncome";
54
+ readonly SecuritiesInterestExpense: "securities.interestExpense";
55
+ readonly SecuritiesFees: "securities.fees";
48
56
  readonly ClosingRetainedEarnings: "closing.retainedEarnings";
49
57
  };
50
58
  type Key = (typeof Key)[keyof typeof Key];
@@ -36,6 +36,14 @@ var PostingRulesUpdateLedgerRequest;
36
36
  AssetsDisposalLoss: "assets.disposalLoss",
37
37
  AssetsDisposalProceeds: "assets.disposalProceeds",
38
38
  CashAdvances: "cash.advances",
39
+ SecuritiesInvestments: "securities.investments",
40
+ SecuritiesGain: "securities.gain",
41
+ SecuritiesLoss: "securities.loss",
42
+ SecuritiesDividendIncome: "securities.dividendIncome",
43
+ SecuritiesWithholdingTax: "securities.withholdingTax",
44
+ SecuritiesInterestIncome: "securities.interestIncome",
45
+ SecuritiesInterestExpense: "securities.interestExpense",
46
+ SecuritiesFees: "securities.fees",
39
47
  ClosingRetainedEarnings: "closing.retainedEarnings",
40
48
  };
41
49
  })(Item = Rules.Item || (Rules.Item = {}));
@@ -29,8 +29,6 @@ export interface CreatePartnersRequest {
29
29
  website?: string;
30
30
  fax?: string;
31
31
  eoriCode?: string;
32
- otherCode?: string;
33
- foreignTaxNumber?: string;
34
32
  autoDebtReminder?: boolean;
35
33
  lateInterestPercent?: string;
36
34
  firstCallDate?: string;
@@ -29,8 +29,6 @@ export interface FindOrCreatePartnersRequest {
29
29
  website?: string;
30
30
  fax?: string;
31
31
  eoriCode?: string;
32
- otherCode?: string;
33
- foreignTaxNumber?: string;
34
32
  autoDebtReminder?: boolean;
35
33
  lateInterestPercent?: string;
36
34
  firstCallDate?: string;
@@ -30,8 +30,6 @@ export interface UpdatePartnersRequest {
30
30
  website?: string | null;
31
31
  fax?: string | null;
32
32
  eoriCode?: string | null;
33
- otherCode?: string | null;
34
- foreignTaxNumber?: string | null;
35
33
  autoDebtReminder?: boolean;
36
34
  lateInterestPercent?: string | null;
37
35
  firstCallDate?: string | null;
@@ -26,8 +26,6 @@ export interface CreatePartnersResponse {
26
26
  website: string | null;
27
27
  fax: string | null;
28
28
  eoriCode: string | null;
29
- otherCode: string | null;
30
- foreignTaxNumber: string | null;
31
29
  autoDebtReminder: boolean;
32
30
  lateInterestPercent: string | null;
33
31
  firstCallDate: string | null;
@@ -31,8 +31,6 @@ export declare namespace FindOrCreatePartnersResponse {
31
31
  website: string | null;
32
32
  fax: string | null;
33
33
  eoriCode: string | null;
34
- otherCode: string | null;
35
- foreignTaxNumber: string | null;
36
34
  autoDebtReminder: boolean;
37
35
  lateInterestPercent: string | null;
38
36
  firstCallDate: string | null;
@@ -26,8 +26,6 @@ export interface GetPartnersResponse {
26
26
  website: string | null;
27
27
  fax: string | null;
28
28
  eoriCode: string | null;
29
- otherCode: string | null;
30
- foreignTaxNumber: string | null;
31
29
  autoDebtReminder: boolean;
32
30
  lateInterestPercent: string | null;
33
31
  firstCallDate: string | null;
@@ -38,8 +38,6 @@ export declare namespace ListPartnersResponse {
38
38
  website: string | null;
39
39
  fax: string | null;
40
40
  eoriCode: string | null;
41
- otherCode: string | null;
42
- foreignTaxNumber: string | null;
43
41
  autoDebtReminder: boolean;
44
42
  lateInterestPercent: string | null;
45
43
  firstCallDate: string | null;
@@ -26,8 +26,6 @@ export interface UpdatePartnersResponse {
26
26
  website: string | null;
27
27
  fax: string | null;
28
28
  eoriCode: string | null;
29
- otherCode: string | null;
30
- foreignTaxNumber: string | null;
31
29
  autoDebtReminder: boolean;
32
30
  lateInterestPercent: string | null;
33
31
  firstCallDate: string | null;
@@ -628,6 +628,114 @@ export declare class SalesClient {
628
628
  */
629
629
  actsPdf(request: NordletApi.ActsPdfSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.ActsPdfSalesResponse>;
630
630
  private __actsPdf;
631
+ /**
632
+ * @param {NordletApi.InvoiceTemplatesCreateSalesRequest} request
633
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
634
+ *
635
+ * @throws {@link NordletApi.BadRequestError}
636
+ * @throws {@link NordletApi.UnauthorizedError}
637
+ * @throws {@link NordletApi.PaymentRequiredError}
638
+ * @throws {@link NordletApi.ForbiddenError}
639
+ * @throws {@link NordletApi.NotFoundError}
640
+ * @throws {@link NordletApi.ConflictError}
641
+ * @throws {@link NordletApi.ContentTooLargeError}
642
+ * @throws {@link NordletApi.UnprocessableEntityError}
643
+ * @throws {@link NordletApi.TooManyRequestsError}
644
+ * @throws {@link NordletApi.InternalServerError}
645
+ *
646
+ * @example
647
+ * await client.sales.invoiceTemplatesCreate({
648
+ * name: "name"
649
+ * })
650
+ */
651
+ invoiceTemplatesCreate(request: NordletApi.InvoiceTemplatesCreateSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoiceTemplatesCreateSalesResponse>;
652
+ private __invoiceTemplatesCreate;
653
+ /**
654
+ * @param {NordletApi.InvoiceTemplatesUpdateSalesRequest} request
655
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
656
+ *
657
+ * @throws {@link NordletApi.BadRequestError}
658
+ * @throws {@link NordletApi.UnauthorizedError}
659
+ * @throws {@link NordletApi.PaymentRequiredError}
660
+ * @throws {@link NordletApi.ForbiddenError}
661
+ * @throws {@link NordletApi.NotFoundError}
662
+ * @throws {@link NordletApi.ConflictError}
663
+ * @throws {@link NordletApi.ContentTooLargeError}
664
+ * @throws {@link NordletApi.UnprocessableEntityError}
665
+ * @throws {@link NordletApi.TooManyRequestsError}
666
+ * @throws {@link NordletApi.InternalServerError}
667
+ *
668
+ * @example
669
+ * await client.sales.invoiceTemplatesUpdate({
670
+ * id: "id"
671
+ * })
672
+ */
673
+ invoiceTemplatesUpdate(request: NordletApi.InvoiceTemplatesUpdateSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoiceTemplatesUpdateSalesResponse>;
674
+ private __invoiceTemplatesUpdate;
675
+ /**
676
+ * @param {NordletApi.InvoiceTemplatesGetSalesRequest} request
677
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
678
+ *
679
+ * @throws {@link NordletApi.BadRequestError}
680
+ * @throws {@link NordletApi.UnauthorizedError}
681
+ * @throws {@link NordletApi.PaymentRequiredError}
682
+ * @throws {@link NordletApi.ForbiddenError}
683
+ * @throws {@link NordletApi.NotFoundError}
684
+ * @throws {@link NordletApi.ConflictError}
685
+ * @throws {@link NordletApi.ContentTooLargeError}
686
+ * @throws {@link NordletApi.UnprocessableEntityError}
687
+ * @throws {@link NordletApi.TooManyRequestsError}
688
+ * @throws {@link NordletApi.InternalServerError}
689
+ *
690
+ * @example
691
+ * await client.sales.invoiceTemplatesGet({
692
+ * id: "id"
693
+ * })
694
+ */
695
+ invoiceTemplatesGet(request: NordletApi.InvoiceTemplatesGetSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoiceTemplatesGetSalesResponse>;
696
+ private __invoiceTemplatesGet;
697
+ /**
698
+ * @param {NordletApi.InvoiceTemplatesDeleteSalesRequest} request
699
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
700
+ *
701
+ * @throws {@link NordletApi.BadRequestError}
702
+ * @throws {@link NordletApi.UnauthorizedError}
703
+ * @throws {@link NordletApi.PaymentRequiredError}
704
+ * @throws {@link NordletApi.ForbiddenError}
705
+ * @throws {@link NordletApi.NotFoundError}
706
+ * @throws {@link NordletApi.ConflictError}
707
+ * @throws {@link NordletApi.ContentTooLargeError}
708
+ * @throws {@link NordletApi.UnprocessableEntityError}
709
+ * @throws {@link NordletApi.TooManyRequestsError}
710
+ * @throws {@link NordletApi.InternalServerError}
711
+ *
712
+ * @example
713
+ * await client.sales.invoiceTemplatesDelete({
714
+ * id: "id"
715
+ * })
716
+ */
717
+ invoiceTemplatesDelete(request: NordletApi.InvoiceTemplatesDeleteSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoiceTemplatesDeleteSalesResponse>;
718
+ private __invoiceTemplatesDelete;
719
+ /**
720
+ * @param {NordletApi.InvoiceTemplatesListSalesRequest} request
721
+ * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
722
+ *
723
+ * @throws {@link NordletApi.BadRequestError}
724
+ * @throws {@link NordletApi.UnauthorizedError}
725
+ * @throws {@link NordletApi.PaymentRequiredError}
726
+ * @throws {@link NordletApi.ForbiddenError}
727
+ * @throws {@link NordletApi.NotFoundError}
728
+ * @throws {@link NordletApi.ConflictError}
729
+ * @throws {@link NordletApi.ContentTooLargeError}
730
+ * @throws {@link NordletApi.UnprocessableEntityError}
731
+ * @throws {@link NordletApi.TooManyRequestsError}
732
+ * @throws {@link NordletApi.InternalServerError}
733
+ *
734
+ * @example
735
+ * await client.sales.invoiceTemplatesList()
736
+ */
737
+ invoiceTemplatesList(request?: NordletApi.InvoiceTemplatesListSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoiceTemplatesListSalesResponse>;
738
+ private __invoiceTemplatesList;
631
739
  /**
632
740
  * @param {NordletApi.RecognitionComputeSalesRequest} request
633
741
  * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -2253,6 +2253,404 @@ class SalesClient {
2253
2253
  }
2254
2254
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/acts/pdf");
2255
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
+ }
2256
2654
  /**
2257
2655
  * @param {NordletApi.RecognitionComputeSalesRequest} request
2258
2656
  * @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.