nordlet 0.3.8 → 0.3.9

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 (191) hide show
  1. package/dist/api/resources/account/types/ApiKeysListAccountResponse.d.ts +1 -0
  2. package/dist/api/resources/agreements/client/Client.d.ts +42 -0
  3. package/dist/api/resources/agreements/client/Client.js +158 -0
  4. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.d.ts +5 -0
  5. package/dist/api/resources/agreements/client/requests/SettingsGetAgreementsRequest.js +3 -0
  6. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.d.ts +9 -0
  7. package/dist/api/resources/agreements/client/requests/SettingsUpdateAgreementsRequest.js +3 -0
  8. package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
  9. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.d.ts +3 -0
  10. package/dist/api/resources/agreements/types/SettingsGetAgreementsResponse.js +3 -0
  11. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.d.ts +3 -0
  12. package/dist/api/resources/agreements/types/SettingsUpdateAgreementsResponse.js +3 -0
  13. package/dist/api/resources/agreements/types/index.d.ts +2 -0
  14. package/dist/api/resources/agreements/types/index.js +2 -0
  15. package/dist/api/resources/assets/client/Client.d.ts +42 -0
  16. package/dist/api/resources/assets/client/Client.js +155 -0
  17. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.d.ts +5 -0
  18. package/dist/api/resources/assets/client/requests/SettingsGetAssetsRequest.js +3 -0
  19. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.d.ts +9 -0
  20. package/dist/api/resources/assets/client/requests/SettingsUpdateAssetsRequest.js +3 -0
  21. package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
  22. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.d.ts +3 -0
  23. package/dist/api/resources/assets/types/SettingsGetAssetsResponse.js +3 -0
  24. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.d.ts +3 -0
  25. package/dist/api/resources/assets/types/SettingsUpdateAssetsResponse.js +3 -0
  26. package/dist/api/resources/assets/types/index.d.ts +2 -0
  27. package/dist/api/resources/assets/types/index.js +2 -0
  28. package/dist/api/resources/bank/client/Client.d.ts +27 -0
  29. package/dist/api/resources/bank/client/Client.js +85 -0
  30. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +32 -0
  31. package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +17 -0
  32. package/dist/api/resources/bank/client/requests/index.d.ts +1 -0
  33. package/dist/api/resources/bank/client/requests/index.js +3 -1
  34. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.d.ts +23 -0
  35. package/dist/api/resources/bank/types/TransactionsMatchManyBankResponse.js +11 -0
  36. package/dist/api/resources/bank/types/index.d.ts +1 -0
  37. package/dist/api/resources/bank/types/index.js +1 -0
  38. package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +2 -0
  39. package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +2 -0
  40. package/dist/api/resources/cash/client/Client.d.ts +71 -2
  41. package/dist/api/resources/cash/client/Client.js +245 -2
  42. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.d.ts +30 -0
  43. package/dist/api/resources/cash/client/requests/ExpenseReportsCreateCashRequest.js +3 -0
  44. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.d.ts +9 -0
  45. package/dist/api/resources/cash/client/requests/ExpenseReportsGetCashRequest.js +3 -0
  46. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.d.ts +48 -0
  47. package/dist/api/resources/cash/client/requests/ExpenseReportsListCashRequest.js +31 -0
  48. package/dist/api/resources/cash/client/requests/OrdersCreateCashRequest.d.ts +4 -3
  49. package/dist/api/resources/cash/client/requests/index.d.ts +3 -0
  50. package/dist/api/resources/cash/client/requests/index.js +3 -1
  51. package/dist/api/resources/cash/types/AdvanceHoldersBalancesCashResponse.d.ts +1 -0
  52. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.d.ts +26 -0
  53. package/dist/api/resources/cash/types/ExpenseReportsCreateCashResponse.js +3 -0
  54. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.d.ts +26 -0
  55. package/dist/api/resources/cash/types/ExpenseReportsGetCashResponse.js +3 -0
  56. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.d.ts +26 -0
  57. package/dist/api/resources/cash/types/ExpenseReportsListCashResponse.js +3 -0
  58. package/dist/api/resources/cash/types/OrdersCreateCashResponse.d.ts +2 -0
  59. package/dist/api/resources/cash/types/OrdersGetCashResponse.d.ts +2 -0
  60. package/dist/api/resources/cash/types/OrdersListCashResponse.d.ts +2 -0
  61. package/dist/api/resources/cash/types/index.d.ts +3 -0
  62. package/dist/api/resources/cash/types/index.js +3 -0
  63. package/dist/api/resources/hr/client/Client.d.ts +178 -0
  64. package/dist/api/resources/hr/client/Client.js +642 -0
  65. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.d.ts +9 -0
  66. package/dist/api/resources/hr/client/requests/BusinessTripsApproveHrRequest.js +3 -0
  67. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.d.ts +17 -0
  68. package/dist/api/resources/hr/client/requests/BusinessTripsCreateHrRequest.js +3 -0
  69. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.d.ts +9 -0
  70. package/dist/api/resources/hr/client/requests/BusinessTripsDeleteHrRequest.js +3 -0
  71. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.d.ts +9 -0
  72. package/dist/api/resources/hr/client/requests/BusinessTripsGetHrRequest.js +3 -0
  73. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.d.ts +48 -0
  74. package/dist/api/resources/hr/client/requests/BusinessTripsListHrRequest.js +31 -0
  75. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.d.ts +13 -0
  76. package/dist/api/resources/hr/client/requests/PerDiemRatesCreateHrRequest.js +3 -0
  77. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.d.ts +9 -0
  78. package/dist/api/resources/hr/client/requests/PerDiemRatesDeleteHrRequest.js +3 -0
  79. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.d.ts +48 -0
  80. package/dist/api/resources/hr/client/requests/PerDiemRatesListHrRequest.js +31 -0
  81. package/dist/api/resources/hr/client/requests/index.d.ts +8 -0
  82. package/dist/api/resources/hr/client/requests/index.js +5 -1
  83. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.d.ts +22 -0
  84. package/dist/api/resources/hr/types/BusinessTripsApproveHrResponse.js +11 -0
  85. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.d.ts +22 -0
  86. package/dist/api/resources/hr/types/BusinessTripsCreateHrResponse.js +11 -0
  87. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.d.ts +3 -0
  88. package/dist/api/resources/hr/types/BusinessTripsDeleteHrResponse.js +3 -0
  89. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.d.ts +22 -0
  90. package/dist/api/resources/hr/types/BusinessTripsGetHrResponse.js +11 -0
  91. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.d.ts +36 -0
  92. package/dist/api/resources/hr/types/BusinessTripsListHrResponse.js +17 -0
  93. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.d.ts +7 -0
  94. package/dist/api/resources/hr/types/PerDiemRatesCreateHrResponse.js +3 -0
  95. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.d.ts +3 -0
  96. package/dist/api/resources/hr/types/PerDiemRatesDeleteHrResponse.js +3 -0
  97. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.d.ts +21 -0
  98. package/dist/api/resources/hr/types/PerDiemRatesListHrResponse.js +3 -0
  99. package/dist/api/resources/hr/types/index.d.ts +8 -0
  100. package/dist/api/resources/hr/types/index.js +8 -0
  101. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +2 -0
  102. package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +2 -0
  103. package/dist/api/resources/partners/client/Client.d.ts +23 -0
  104. package/dist/api/resources/partners/client/Client.js +78 -0
  105. package/dist/api/resources/partners/client/requests/MergePartnersRequest.d.ts +11 -0
  106. package/dist/api/resources/partners/client/requests/MergePartnersRequest.js +3 -0
  107. package/dist/api/resources/partners/client/requests/index.d.ts +1 -0
  108. package/dist/api/resources/partners/types/MergePartnersResponse.d.ts +15 -0
  109. package/dist/api/resources/partners/types/MergePartnersResponse.js +3 -0
  110. package/dist/api/resources/partners/types/index.d.ts +1 -0
  111. package/dist/api/resources/partners/types/index.js +1 -0
  112. package/dist/api/resources/payroll/client/Client.d.ts +23 -0
  113. package/dist/api/resources/payroll/client/Client.js +81 -0
  114. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.d.ts +11 -0
  115. package/dist/api/resources/payroll/client/requests/RunsReversePayrollRequest.js +3 -0
  116. package/dist/api/resources/payroll/client/requests/index.d.ts +1 -0
  117. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +4 -0
  118. package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.js +1 -0
  119. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +4 -0
  120. package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.js +1 -0
  121. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +4 -0
  122. package/dist/api/resources/payroll/types/RunsGetPayrollResponse.js +1 -0
  123. package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +4 -0
  124. package/dist/api/resources/payroll/types/RunsListPayrollResponse.js +1 -0
  125. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +51 -0
  126. package/dist/api/resources/payroll/types/RunsReversePayrollResponse.js +25 -0
  127. package/dist/api/resources/payroll/types/index.d.ts +1 -0
  128. package/dist/api/resources/payroll/types/index.js +1 -0
  129. package/dist/api/resources/pos/client/Client.d.ts +156 -0
  130. package/dist/api/resources/pos/client/Client.js +541 -0
  131. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.d.ts +29 -0
  132. package/dist/api/resources/pos/client/requests/ReceiptsCreatePosRequest.js +3 -0
  133. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.d.ts +9 -0
  134. package/dist/api/resources/pos/client/requests/ReceiptsGetPosRequest.js +3 -0
  135. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.d.ts +48 -0
  136. package/dist/api/resources/pos/client/requests/ReceiptsListPosRequest.js +31 -0
  137. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.d.ts +13 -0
  138. package/dist/api/resources/pos/client/requests/ShiftsClosePosRequest.js +3 -0
  139. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.d.ts +9 -0
  140. package/dist/api/resources/pos/client/requests/ShiftsGetPosRequest.js +3 -0
  141. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.d.ts +48 -0
  142. package/dist/api/resources/pos/client/requests/ShiftsListPosRequest.js +31 -0
  143. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.d.ts +11 -0
  144. package/dist/api/resources/pos/client/requests/ShiftsOpenPosRequest.js +3 -0
  145. package/dist/api/resources/pos/client/requests/index.d.ts +7 -0
  146. package/dist/api/resources/pos/client/requests/index.js +5 -1
  147. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.d.ts +28 -0
  148. package/dist/api/resources/pos/types/ReceiptsCreatePosResponse.js +3 -0
  149. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.d.ts +28 -0
  150. package/dist/api/resources/pos/types/ReceiptsGetPosResponse.js +3 -0
  151. package/dist/api/resources/pos/types/ReceiptsListPosResponse.d.ts +25 -0
  152. package/dist/api/resources/pos/types/ReceiptsListPosResponse.js +3 -0
  153. package/dist/api/resources/pos/types/ShiftsClosePosResponse.d.ts +21 -0
  154. package/dist/api/resources/pos/types/ShiftsClosePosResponse.js +11 -0
  155. package/dist/api/resources/pos/types/ShiftsGetPosResponse.d.ts +19 -0
  156. package/dist/api/resources/pos/types/ShiftsGetPosResponse.js +11 -0
  157. package/dist/api/resources/pos/types/ShiftsListPosResponse.d.ts +33 -0
  158. package/dist/api/resources/pos/types/ShiftsListPosResponse.js +17 -0
  159. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.d.ts +19 -0
  160. package/dist/api/resources/pos/types/ShiftsOpenPosResponse.js +11 -0
  161. package/dist/api/resources/pos/types/index.d.ts +7 -0
  162. package/dist/api/resources/pos/types/index.js +7 -0
  163. package/dist/api/resources/purchases/client/Client.d.ts +40 -0
  164. package/dist/api/resources/purchases/client/Client.js +156 -0
  165. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.d.ts +48 -0
  166. package/dist/api/resources/purchases/client/requests/DeferralsListPurchasesRequest.js +31 -0
  167. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.d.ts +7 -0
  168. package/dist/api/resources/purchases/client/requests/DeferralsPostPurchasesRequest.js +3 -0
  169. package/dist/api/resources/purchases/client/requests/InvoicesCreatePurchasesRequest.d.ts +2 -0
  170. package/dist/api/resources/purchases/client/requests/InvoicesUpdatePurchasesRequest.d.ts +2 -0
  171. package/dist/api/resources/purchases/client/requests/OrdersCreatePurchasesRequest.d.ts +2 -0
  172. package/dist/api/resources/purchases/client/requests/OrdersUpdatePurchasesRequest.d.ts +2 -0
  173. package/dist/api/resources/purchases/client/requests/index.d.ts +2 -0
  174. package/dist/api/resources/purchases/client/requests/index.js +3 -1
  175. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.d.ts +34 -0
  176. package/dist/api/resources/purchases/types/DeferralsListPurchasesResponse.js +18 -0
  177. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.d.ts +5 -0
  178. package/dist/api/resources/purchases/types/DeferralsPostPurchasesResponse.js +3 -0
  179. package/dist/api/resources/purchases/types/InvoicesCreatePurchasesResponse.d.ts +2 -0
  180. package/dist/api/resources/purchases/types/InvoicesGetPurchasesResponse.d.ts +2 -0
  181. package/dist/api/resources/purchases/types/InvoicesRegisterPurchasesResponse.d.ts +2 -0
  182. package/dist/api/resources/purchases/types/InvoicesUpdatePurchasesResponse.d.ts +2 -0
  183. package/dist/api/resources/purchases/types/index.d.ts +2 -0
  184. package/dist/api/resources/purchases/types/index.js +2 -0
  185. package/dist/api/resources/reports/types/AdvanceReconciliationReportsResponse.d.ts +1 -0
  186. package/dist/api/resources/sales/client/requests/InvoicesIssueSalesRequest.d.ts +1 -0
  187. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +1 -0
  188. package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +1 -0
  189. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +1 -0
  190. package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +1 -0
  191. package/package.json +1 -1
@@ -11,6 +11,7 @@ export declare namespace ApiKeysListAccountResponse {
11
11
  lastUsedAt: string | null;
12
12
  expiresAt: string | null;
13
13
  replacedByKeyId: string | null;
14
+ createdByUserId: string | null;
14
15
  revokedAt: string | null;
15
16
  createdAt: string;
16
17
  }
@@ -10,6 +10,48 @@ export declare namespace AgreementsClient {
10
10
  export declare class AgreementsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AgreementsClient.Options>;
12
12
  constructor(options: AgreementsClient.Options);
13
+ /**
14
+ * @param {NordletApi.SettingsGetAgreementsRequest} request
15
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link NordletApi.BadRequestError}
18
+ * @throws {@link NordletApi.UnauthorizedError}
19
+ * @throws {@link NordletApi.PaymentRequiredError}
20
+ * @throws {@link NordletApi.ForbiddenError}
21
+ * @throws {@link NordletApi.NotFoundError}
22
+ * @throws {@link NordletApi.ConflictError}
23
+ * @throws {@link NordletApi.ContentTooLargeError}
24
+ * @throws {@link NordletApi.UnprocessableEntityError}
25
+ * @throws {@link NordletApi.TooManyRequestsError}
26
+ * @throws {@link NordletApi.InternalServerError}
27
+ *
28
+ * @example
29
+ * await client.agreements.settingsGet()
30
+ */
31
+ settingsGet(request?: NordletApi.SettingsGetAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAgreementsResponse>;
32
+ private __settingsGet;
33
+ /**
34
+ * @param {NordletApi.SettingsUpdateAgreementsRequest} request
35
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link NordletApi.BadRequestError}
38
+ * @throws {@link NordletApi.UnauthorizedError}
39
+ * @throws {@link NordletApi.PaymentRequiredError}
40
+ * @throws {@link NordletApi.ForbiddenError}
41
+ * @throws {@link NordletApi.NotFoundError}
42
+ * @throws {@link NordletApi.ConflictError}
43
+ * @throws {@link NordletApi.ContentTooLargeError}
44
+ * @throws {@link NordletApi.UnprocessableEntityError}
45
+ * @throws {@link NordletApi.TooManyRequestsError}
46
+ * @throws {@link NordletApi.InternalServerError}
47
+ *
48
+ * @example
49
+ * await client.agreements.settingsUpdate({
50
+ * autoBilling: true
51
+ * })
52
+ */
53
+ settingsUpdate(request: NordletApi.SettingsUpdateAgreementsRequest, requestOptions?: AgreementsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAgreementsResponse>;
54
+ private __settingsUpdate;
13
55
  /**
14
56
  * @param {NordletApi.TypesCreateAgreementsRequest} request
15
57
  * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,6 +47,164 @@ class AgreementsClient {
47
47
  constructor(options) {
48
48
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
49
  }
50
+ /**
51
+ * @param {NordletApi.SettingsGetAgreementsRequest} request
52
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link NordletApi.BadRequestError}
55
+ * @throws {@link NordletApi.UnauthorizedError}
56
+ * @throws {@link NordletApi.PaymentRequiredError}
57
+ * @throws {@link NordletApi.ForbiddenError}
58
+ * @throws {@link NordletApi.NotFoundError}
59
+ * @throws {@link NordletApi.ConflictError}
60
+ * @throws {@link NordletApi.ContentTooLargeError}
61
+ * @throws {@link NordletApi.UnprocessableEntityError}
62
+ * @throws {@link NordletApi.TooManyRequestsError}
63
+ * @throws {@link NordletApi.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.agreements.settingsGet()
67
+ */
68
+ settingsGet(request = {}, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
70
+ }
71
+ async __settingsGet(request = {}, requestOptions) {
72
+ const _authRequest = await this._options.authProvider.getAuthRequest();
73
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
74
+ const _response = await core.fetcher({
75
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
76
+ (await core.Supplier.get(this._options.environment)) ??
77
+ environments.NordletApiEnvironment.Production, "v1/agreements/settings/get"),
78
+ method: "POST",
79
+ headers: _headers,
80
+ contentType: "application/json",
81
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
82
+ requestType: "json",
83
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
84
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
85
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
86
+ abortSignal: requestOptions?.abortSignal,
87
+ fetchFn: this._options?.fetch,
88
+ logging: this._options.logging,
89
+ });
90
+ if (_response.ok) {
91
+ return {
92
+ data: _response.body,
93
+ rawResponse: _response.rawResponse,
94
+ };
95
+ }
96
+ if (_response.error.reason === "status-code") {
97
+ switch (_response.error.statusCode) {
98
+ case 400:
99
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
100
+ case 401:
101
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
102
+ case 402:
103
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
104
+ case 403:
105
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
106
+ case 404:
107
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
108
+ case 409:
109
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
110
+ case 413:
111
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
112
+ case 422:
113
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
114
+ case 429:
115
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
116
+ case 500:
117
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
118
+ default:
119
+ throw new errors.NordletApiError({
120
+ statusCode: _response.error.statusCode,
121
+ body: _response.error.body,
122
+ rawResponse: _response.rawResponse,
123
+ });
124
+ }
125
+ }
126
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/get");
127
+ }
128
+ /**
129
+ * @param {NordletApi.SettingsUpdateAgreementsRequest} request
130
+ * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link NordletApi.BadRequestError}
133
+ * @throws {@link NordletApi.UnauthorizedError}
134
+ * @throws {@link NordletApi.PaymentRequiredError}
135
+ * @throws {@link NordletApi.ForbiddenError}
136
+ * @throws {@link NordletApi.NotFoundError}
137
+ * @throws {@link NordletApi.ConflictError}
138
+ * @throws {@link NordletApi.ContentTooLargeError}
139
+ * @throws {@link NordletApi.UnprocessableEntityError}
140
+ * @throws {@link NordletApi.TooManyRequestsError}
141
+ * @throws {@link NordletApi.InternalServerError}
142
+ *
143
+ * @example
144
+ * await client.agreements.settingsUpdate({
145
+ * autoBilling: true
146
+ * })
147
+ */
148
+ settingsUpdate(request, requestOptions) {
149
+ return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
150
+ }
151
+ async __settingsUpdate(request, requestOptions) {
152
+ const _authRequest = await this._options.authProvider.getAuthRequest();
153
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
154
+ const _response = await core.fetcher({
155
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
156
+ (await core.Supplier.get(this._options.environment)) ??
157
+ environments.NordletApiEnvironment.Production, "v1/agreements/settings/update"),
158
+ method: "POST",
159
+ headers: _headers,
160
+ contentType: "application/json",
161
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
162
+ requestType: "json",
163
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
164
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
165
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
166
+ abortSignal: requestOptions?.abortSignal,
167
+ fetchFn: this._options?.fetch,
168
+ logging: this._options.logging,
169
+ });
170
+ if (_response.ok) {
171
+ return {
172
+ data: _response.body,
173
+ rawResponse: _response.rawResponse,
174
+ };
175
+ }
176
+ if (_response.error.reason === "status-code") {
177
+ switch (_response.error.statusCode) {
178
+ case 400:
179
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
180
+ case 401:
181
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
182
+ case 402:
183
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
184
+ case 403:
185
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
186
+ case 404:
187
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
188
+ case 409:
189
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
190
+ case 413:
191
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
192
+ case 422:
193
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
194
+ case 429:
195
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
196
+ case 500:
197
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
198
+ default:
199
+ throw new errors.NordletApiError({
200
+ statusCode: _response.error.statusCode,
201
+ body: _response.error.body,
202
+ rawResponse: _response.rawResponse,
203
+ });
204
+ }
205
+ }
206
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/agreements/settings/update");
207
+ }
50
208
  /**
51
209
  * @param {NordletApi.TypesCreateAgreementsRequest} request
52
210
  * @param {AgreementsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type SettingsGetAgreementsRequest = {};
@@ -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
+ * autoBilling: true
5
+ * }
6
+ */
7
+ export interface SettingsUpdateAgreementsRequest {
8
+ autoBilling: boolean;
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 });
@@ -8,5 +8,7 @@ export { AgreementsUpdateAgreementsRequest } from "./AgreementsUpdateAgreementsR
8
8
  export type { InsurancePoliciesCreateAgreementsRequest } from "./InsurancePoliciesCreateAgreementsRequest.js";
9
9
  export type { InsurancePoliciesDeleteAgreementsRequest } from "./InsurancePoliciesDeleteAgreementsRequest.js";
10
10
  export { InsurancePoliciesListAgreementsRequest } from "./InsurancePoliciesListAgreementsRequest.js";
11
+ export type { SettingsGetAgreementsRequest } from "./SettingsGetAgreementsRequest.js";
12
+ export type { SettingsUpdateAgreementsRequest } from "./SettingsUpdateAgreementsRequest.js";
11
13
  export type { TypesCreateAgreementsRequest } from "./TypesCreateAgreementsRequest.js";
12
14
  export { TypesListAgreementsRequest } from "./TypesListAgreementsRequest.js";
@@ -0,0 +1,3 @@
1
+ export interface SettingsGetAgreementsResponse {
2
+ autoBilling: boolean;
3
+ }
@@ -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,3 @@
1
+ export interface SettingsUpdateAgreementsResponse {
2
+ autoBilling: boolean;
3
+ }
@@ -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 });
@@ -8,5 +8,7 @@ export * from "./AgreementsUpdateAgreementsResponse.js";
8
8
  export * from "./InsurancePoliciesCreateAgreementsResponse.js";
9
9
  export * from "./InsurancePoliciesDeleteAgreementsResponse.js";
10
10
  export * from "./InsurancePoliciesListAgreementsResponse.js";
11
+ export * from "./SettingsGetAgreementsResponse.js";
12
+ export * from "./SettingsUpdateAgreementsResponse.js";
11
13
  export * from "./TypesCreateAgreementsResponse.js";
12
14
  export * from "./TypesListAgreementsResponse.js";
@@ -24,5 +24,7 @@ __exportStar(require("./AgreementsUpdateAgreementsResponse.js"), exports);
24
24
  __exportStar(require("./InsurancePoliciesCreateAgreementsResponse.js"), exports);
25
25
  __exportStar(require("./InsurancePoliciesDeleteAgreementsResponse.js"), exports);
26
26
  __exportStar(require("./InsurancePoliciesListAgreementsResponse.js"), exports);
27
+ __exportStar(require("./SettingsGetAgreementsResponse.js"), exports);
28
+ __exportStar(require("./SettingsUpdateAgreementsResponse.js"), exports);
27
29
  __exportStar(require("./TypesCreateAgreementsResponse.js"), exports);
28
30
  __exportStar(require("./TypesListAgreementsResponse.js"), exports);
@@ -10,6 +10,48 @@ export declare namespace AssetsClient {
10
10
  export declare class AssetsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AssetsClient.Options>;
12
12
  constructor(options: AssetsClient.Options);
13
+ /**
14
+ * @param {NordletApi.SettingsGetAssetsRequest} request
15
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @throws {@link NordletApi.BadRequestError}
18
+ * @throws {@link NordletApi.UnauthorizedError}
19
+ * @throws {@link NordletApi.PaymentRequiredError}
20
+ * @throws {@link NordletApi.ForbiddenError}
21
+ * @throws {@link NordletApi.NotFoundError}
22
+ * @throws {@link NordletApi.ConflictError}
23
+ * @throws {@link NordletApi.ContentTooLargeError}
24
+ * @throws {@link NordletApi.UnprocessableEntityError}
25
+ * @throws {@link NordletApi.TooManyRequestsError}
26
+ * @throws {@link NordletApi.InternalServerError}
27
+ *
28
+ * @example
29
+ * await client.assets.settingsGet()
30
+ */
31
+ settingsGet(request?: NordletApi.SettingsGetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsGetAssetsResponse>;
32
+ private __settingsGet;
33
+ /**
34
+ * @param {NordletApi.SettingsUpdateAssetsRequest} request
35
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link NordletApi.BadRequestError}
38
+ * @throws {@link NordletApi.UnauthorizedError}
39
+ * @throws {@link NordletApi.PaymentRequiredError}
40
+ * @throws {@link NordletApi.ForbiddenError}
41
+ * @throws {@link NordletApi.NotFoundError}
42
+ * @throws {@link NordletApi.ConflictError}
43
+ * @throws {@link NordletApi.ContentTooLargeError}
44
+ * @throws {@link NordletApi.UnprocessableEntityError}
45
+ * @throws {@link NordletApi.TooManyRequestsError}
46
+ * @throws {@link NordletApi.InternalServerError}
47
+ *
48
+ * @example
49
+ * await client.assets.settingsUpdate({
50
+ * autoDepreciation: true
51
+ * })
52
+ */
53
+ settingsUpdate(request: NordletApi.SettingsUpdateAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise<NordletApi.SettingsUpdateAssetsResponse>;
54
+ private __settingsUpdate;
13
55
  /**
14
56
  * @param {NordletApi.GroupsCreateAssetsRequest} request
15
57
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -47,6 +47,161 @@ class AssetsClient {
47
47
  constructor(options) {
48
48
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
49
49
  }
50
+ /**
51
+ * @param {NordletApi.SettingsGetAssetsRequest} request
52
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
53
+ *
54
+ * @throws {@link NordletApi.BadRequestError}
55
+ * @throws {@link NordletApi.UnauthorizedError}
56
+ * @throws {@link NordletApi.PaymentRequiredError}
57
+ * @throws {@link NordletApi.ForbiddenError}
58
+ * @throws {@link NordletApi.NotFoundError}
59
+ * @throws {@link NordletApi.ConflictError}
60
+ * @throws {@link NordletApi.ContentTooLargeError}
61
+ * @throws {@link NordletApi.UnprocessableEntityError}
62
+ * @throws {@link NordletApi.TooManyRequestsError}
63
+ * @throws {@link NordletApi.InternalServerError}
64
+ *
65
+ * @example
66
+ * await client.assets.settingsGet()
67
+ */
68
+ settingsGet(request = {}, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__settingsGet(request, requestOptions));
70
+ }
71
+ async __settingsGet(request = {}, requestOptions) {
72
+ const _authRequest = await this._options.authProvider.getAuthRequest();
73
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
74
+ const _response = await core.fetcher({
75
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
76
+ (await core.Supplier.get(this._options.environment)) ??
77
+ environments.NordletApiEnvironment.Production, "v1/assets/settings/get"),
78
+ method: "POST",
79
+ headers: _headers,
80
+ contentType: "application/json",
81
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
82
+ requestType: "json",
83
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
84
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
85
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
86
+ abortSignal: requestOptions?.abortSignal,
87
+ fetchFn: this._options?.fetch,
88
+ logging: this._options.logging,
89
+ });
90
+ if (_response.ok) {
91
+ return { data: _response.body, rawResponse: _response.rawResponse };
92
+ }
93
+ if (_response.error.reason === "status-code") {
94
+ switch (_response.error.statusCode) {
95
+ case 400:
96
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
97
+ case 401:
98
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
99
+ case 402:
100
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
101
+ case 403:
102
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
103
+ case 404:
104
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
105
+ case 409:
106
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
107
+ case 413:
108
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
109
+ case 422:
110
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
111
+ case 429:
112
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
113
+ case 500:
114
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
115
+ default:
116
+ throw new errors.NordletApiError({
117
+ statusCode: _response.error.statusCode,
118
+ body: _response.error.body,
119
+ rawResponse: _response.rawResponse,
120
+ });
121
+ }
122
+ }
123
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/get");
124
+ }
125
+ /**
126
+ * @param {NordletApi.SettingsUpdateAssetsRequest} request
127
+ * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
128
+ *
129
+ * @throws {@link NordletApi.BadRequestError}
130
+ * @throws {@link NordletApi.UnauthorizedError}
131
+ * @throws {@link NordletApi.PaymentRequiredError}
132
+ * @throws {@link NordletApi.ForbiddenError}
133
+ * @throws {@link NordletApi.NotFoundError}
134
+ * @throws {@link NordletApi.ConflictError}
135
+ * @throws {@link NordletApi.ContentTooLargeError}
136
+ * @throws {@link NordletApi.UnprocessableEntityError}
137
+ * @throws {@link NordletApi.TooManyRequestsError}
138
+ * @throws {@link NordletApi.InternalServerError}
139
+ *
140
+ * @example
141
+ * await client.assets.settingsUpdate({
142
+ * autoDepreciation: true
143
+ * })
144
+ */
145
+ settingsUpdate(request, requestOptions) {
146
+ return core.HttpResponsePromise.fromPromise(this.__settingsUpdate(request, requestOptions));
147
+ }
148
+ async __settingsUpdate(request, requestOptions) {
149
+ const _authRequest = await this._options.authProvider.getAuthRequest();
150
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
151
+ const _response = await core.fetcher({
152
+ url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
153
+ (await core.Supplier.get(this._options.environment)) ??
154
+ environments.NordletApiEnvironment.Production, "v1/assets/settings/update"),
155
+ method: "POST",
156
+ headers: _headers,
157
+ contentType: "application/json",
158
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
159
+ requestType: "json",
160
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
161
+ timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
162
+ maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
163
+ abortSignal: requestOptions?.abortSignal,
164
+ fetchFn: this._options?.fetch,
165
+ logging: this._options.logging,
166
+ });
167
+ if (_response.ok) {
168
+ return {
169
+ data: _response.body,
170
+ rawResponse: _response.rawResponse,
171
+ };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch (_response.error.statusCode) {
175
+ case 400:
176
+ throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
177
+ case 401:
178
+ throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
179
+ case 402:
180
+ throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
181
+ case 403:
182
+ throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
183
+ case 404:
184
+ throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
185
+ case 409:
186
+ throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
187
+ case 413:
188
+ throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
189
+ case 422:
190
+ throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
191
+ case 429:
192
+ throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
193
+ case 500:
194
+ throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
195
+ default:
196
+ throw new errors.NordletApiError({
197
+ statusCode: _response.error.statusCode,
198
+ body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
200
+ });
201
+ }
202
+ }
203
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/assets/settings/update");
204
+ }
50
205
  /**
51
206
  * @param {NordletApi.GroupsCreateAssetsRequest} request
52
207
  * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export type SettingsGetAssetsRequest = {};
@@ -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
+ * autoDepreciation: true
5
+ * }
6
+ */
7
+ export interface SettingsUpdateAssetsRequest {
8
+ autoDepreciation: boolean;
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 });
@@ -9,3 +9,5 @@ export type { DepreciationPostAssetsRequest } from "./DepreciationPostAssetsRequ
9
9
  export type { DepreciationPreviewAssetsRequest } from "./DepreciationPreviewAssetsRequest.js";
10
10
  export type { GroupsCreateAssetsRequest } from "./GroupsCreateAssetsRequest.js";
11
11
  export { GroupsListAssetsRequest } from "./GroupsListAssetsRequest.js";
12
+ export type { SettingsGetAssetsRequest } from "./SettingsGetAssetsRequest.js";
13
+ export type { SettingsUpdateAssetsRequest } from "./SettingsUpdateAssetsRequest.js";
@@ -0,0 +1,3 @@
1
+ export interface SettingsGetAssetsResponse {
2
+ autoDepreciation: boolean;
3
+ }
@@ -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,3 @@
1
+ export interface SettingsUpdateAssetsResponse {
2
+ autoDepreciation: boolean;
3
+ }
@@ -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 });
@@ -9,3 +9,5 @@ export * from "./DepreciationPostAssetsResponse.js";
9
9
  export * from "./DepreciationPreviewAssetsResponse.js";
10
10
  export * from "./GroupsCreateAssetsResponse.js";
11
11
  export * from "./GroupsListAssetsResponse.js";
12
+ export * from "./SettingsGetAssetsResponse.js";
13
+ export * from "./SettingsUpdateAssetsResponse.js";
@@ -25,3 +25,5 @@ __exportStar(require("./DepreciationPostAssetsResponse.js"), exports);
25
25
  __exportStar(require("./DepreciationPreviewAssetsResponse.js"), exports);
26
26
  __exportStar(require("./GroupsCreateAssetsResponse.js"), exports);
27
27
  __exportStar(require("./GroupsListAssetsResponse.js"), exports);
28
+ __exportStar(require("./SettingsGetAssetsResponse.js"), exports);
29
+ __exportStar(require("./SettingsUpdateAssetsResponse.js"), exports);
@@ -167,6 +167,33 @@ export declare class BankClient {
167
167
  */
168
168
  transactionsMatch(request: NordletApi.TransactionsMatchBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.TransactionsMatchBankResponse>;
169
169
  private __transactionsMatch;
170
+ /**
171
+ * @param {NordletApi.TransactionsMatchManyBankRequest} request
172
+ * @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
173
+ *
174
+ * @throws {@link NordletApi.BadRequestError}
175
+ * @throws {@link NordletApi.UnauthorizedError}
176
+ * @throws {@link NordletApi.PaymentRequiredError}
177
+ * @throws {@link NordletApi.ForbiddenError}
178
+ * @throws {@link NordletApi.NotFoundError}
179
+ * @throws {@link NordletApi.ConflictError}
180
+ * @throws {@link NordletApi.ContentTooLargeError}
181
+ * @throws {@link NordletApi.UnprocessableEntityError}
182
+ * @throws {@link NordletApi.TooManyRequestsError}
183
+ * @throws {@link NordletApi.InternalServerError}
184
+ *
185
+ * @example
186
+ * await client.bank.transactionsMatchMany({
187
+ * transactionId: "transactionId",
188
+ * allocations: [{
189
+ * documentType: "sale_invoice",
190
+ * documentId: "documentId",
191
+ * amount: "121.0000"
192
+ * }]
193
+ * })
194
+ */
195
+ transactionsMatchMany(request: NordletApi.TransactionsMatchManyBankRequest, requestOptions?: BankClient.RequestOptions): core.HttpResponsePromise<NordletApi.TransactionsMatchManyBankResponse>;
196
+ private __transactionsMatchMany;
170
197
  /**
171
198
  * Undo a match. A payment matched to an invoice, or a line posted by an import template, gets a reversing journal transaction dated date (default: today) and the invoice paid amount and payment status are restored; a line linked to a payment-provider settlement is only unlinked. The line returns to status new.
172
199
  *