nordlet 0.1.2 → 0.2.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.
- package/README.md +60 -0
- package/dist/api/resources/account/client/requests/PostV1AccountCompaniesCreateRequest.d.ts +1 -0
- package/dist/api/resources/account/client/requests/PostV1AccountCompaniesUpdateRequest.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountCompaniesProfileResponse.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountCompaniesUpdateResponse.d.ts +1 -0
- package/dist/api/resources/agreements/client/Client.d.ts +38 -0
- package/dist/api/resources/agreements/client/Client.js +146 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsBillingRunRequest.d.ts +7 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsBillingRunRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsCreateRequest.d.ts +8 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsCreateRequest.js +5 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsGenerateInvoiceRequest.d.ts +10 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsGenerateInvoiceRequest.js +3 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsUpdateRequest.d.ts +7 -0
- package/dist/api/resources/agreements/client/requests/PostV1AgreementsAgreementsUpdateRequest.js +5 -0
- package/dist/api/resources/agreements/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsBillingRunResponse.d.ts +23 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsBillingRunResponse.js +3 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsCreateResponse.d.ts +8 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsCreateResponse.js +5 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGenerateInvoiceResponse.d.ts +6 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGenerateInvoiceResponse.js +3 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGetResponse.d.ts +8 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsGetResponse.js +5 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsListResponse.d.ts +7 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsListResponse.js +5 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsUpdateResponse.d.ts +8 -0
- package/dist/api/resources/agreements/types/PostV1AgreementsAgreementsUpdateResponse.js +5 -0
- package/dist/api/resources/agreements/types/index.d.ts +2 -0
- package/dist/api/resources/agreements/types/index.js +2 -0
- package/dist/api/resources/declarations/client/Client.d.ts +133 -0
- package/dist/api/resources/declarations/client/Client.js +511 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuDistanceSalesThresholdGetRequest.d.ts +7 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuDistanceSalesThresholdGetRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeCrossBorderReportComputeRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeCrossBorderReportComputeRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeThresholdGetRequest.d.ts +7 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeThresholdGetRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeThresholdsListRequest.d.ts +5 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuSmeThresholdsListRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuUnionTurnoverGetRequest.d.ts +7 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuUnionTurnoverGetRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuVatReturnComputeRequest.d.ts +14 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuVatReturnComputeRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuVatReturnPacksListRequest.d.ts +5 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsEuVatReturnPacksListRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +7 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuDistanceSalesThresholdGetResponse.d.ts +21 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuDistanceSalesThresholdGetResponse.js +3 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuIossComputeResponse.d.ts +18 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuOssComputeResponse.d.ts +18 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeCrossBorderReportComputeResponse.d.ts +20 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeCrossBorderReportComputeResponse.js +3 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeThresholdGetResponse.d.ts +67 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeThresholdGetResponse.js +22 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeThresholdsListResponse.d.ts +34 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuSmeThresholdsListResponse.js +3 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuUnionTurnoverGetResponse.d.ts +29 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuUnionTurnoverGetResponse.js +13 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuVatReturnComputeResponse.d.ts +28 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuVatReturnComputeResponse.js +12 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuVatReturnPacksListResponse.d.ts +23 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsEuVatReturnPacksListResponse.js +18 -0
- package/dist/api/resources/declarations/types/index.d.ts +7 -0
- package/dist/api/resources/declarations/types/index.js +7 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.d.ts +3 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.js +3 -0
- package/dist/api/resources/reference/client/Client.d.ts +28 -0
- package/dist/api/resources/reference/client/Client.js +82 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSetOverridesRequest.d.ts +32 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSetOverridesRequest.js +19 -0
- package/dist/api/resources/reference/client/requests/index.d.ts +1 -0
- package/dist/api/resources/reference/client/requests/index.js +3 -1
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesListResponse.d.ts +7 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesListResponse.js +4 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSetOverridesResponse.d.ts +29 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSetOverridesResponse.js +23 -0
- package/dist/api/resources/reference/types/PostV1ReferenceVatResolveResponse.d.ts +1 -0
- package/dist/api/resources/reference/types/PostV1ReferenceVatResolveResponse.js +1 -0
- package/dist/api/resources/reference/types/index.d.ts +1 -0
- package/dist/api/resources/reference/types/index.js +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +173 -0
- package/dist/api/resources/sales/client/Client.js +659 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +27 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.js +16 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.d.ts +27 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.js +16 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionComputeRequest.d.ts +7 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionComputeRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionModifyRequest.d.ts +29 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionModifyRequest.js +11 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionProgressRequest.d.ts +12 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionProgressRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionRunRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionRunRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionRunsListRequest.d.ts +46 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionRunsListRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionSchedulesListRequest.d.ts +46 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionSchedulesListRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionSummaryRequest.d.ts +7 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRecognitionSummaryRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRefundLiabilityListRequest.d.ts +46 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRefundLiabilityListRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRefundLiabilityTrueUpRequest.d.ts +12 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesRefundLiabilityTrueUpRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/index.js +9 -1
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +26 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +26 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +26 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +26 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesListResponse.d.ts +2 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesListResponse.js +1 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +26 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.js +13 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionComputeResponse.d.ts +20 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionComputeResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionModifyResponse.d.ts +16 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionModifyResponse.js +11 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionProgressResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionProgressResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionRunResponse.d.ts +19 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionRunResponse.js +15 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionRunsListResponse.d.ts +31 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionRunsListResponse.js +21 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionSchedulesListResponse.d.ts +40 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionSchedulesListResponse.js +24 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionSummaryResponse.d.ts +35 -0
- package/dist/api/resources/sales/types/PostV1SalesRecognitionSummaryResponse.js +19 -0
- package/dist/api/resources/sales/types/PostV1SalesRefundLiabilityListResponse.d.ts +22 -0
- package/dist/api/resources/sales/types/PostV1SalesRefundLiabilityListResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesRefundLiabilityTrueUpResponse.d.ts +8 -0
- package/dist/api/resources/sales/types/PostV1SalesRefundLiabilityTrueUpResponse.js +3 -0
- package/dist/api/resources/sales/types/index.d.ts +9 -0
- package/dist/api/resources/sales/types/index.js +9 -0
- package/package.json +1 -1
|
@@ -241,6 +241,139 @@ export declare class DeclarationsClient {
|
|
|
241
241
|
*/
|
|
242
242
|
postV1DeclarationsEuIossCompute(request: NordletApi.PostV1DeclarationsEuIossComputeRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuIossComputeResponse>;
|
|
243
243
|
private __postV1DeclarationsEuIossCompute;
|
|
244
|
+
/**
|
|
245
|
+
* @param {NordletApi.PostV1DeclarationsEuDistanceSalesThresholdGetRequest} request
|
|
246
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
247
|
+
*
|
|
248
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
249
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
250
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
251
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
252
|
+
* @throws {@link NordletApi.ConflictError}
|
|
253
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
254
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
255
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* await client.declarations.postV1DeclarationsEuDistanceSalesThresholdGet()
|
|
259
|
+
*/
|
|
260
|
+
postV1DeclarationsEuDistanceSalesThresholdGet(request?: NordletApi.PostV1DeclarationsEuDistanceSalesThresholdGetRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuDistanceSalesThresholdGetResponse>;
|
|
261
|
+
private __postV1DeclarationsEuDistanceSalesThresholdGet;
|
|
262
|
+
/**
|
|
263
|
+
* @param {NordletApi.PostV1DeclarationsEuUnionTurnoverGetRequest} request
|
|
264
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
|
+
*
|
|
266
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
267
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
268
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
269
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
270
|
+
* @throws {@link NordletApi.ConflictError}
|
|
271
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
272
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
273
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* await client.declarations.postV1DeclarationsEuUnionTurnoverGet()
|
|
277
|
+
*/
|
|
278
|
+
postV1DeclarationsEuUnionTurnoverGet(request?: NordletApi.PostV1DeclarationsEuUnionTurnoverGetRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuUnionTurnoverGetResponse>;
|
|
279
|
+
private __postV1DeclarationsEuUnionTurnoverGet;
|
|
280
|
+
/**
|
|
281
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeCrossBorderReportComputeRequest} request
|
|
282
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
283
|
+
*
|
|
284
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
285
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
286
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
287
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
288
|
+
* @throws {@link NordletApi.ConflictError}
|
|
289
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
290
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
291
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* await client.declarations.postV1DeclarationsEuSmeCrossBorderReportCompute({
|
|
295
|
+
* year: 1000000,
|
|
296
|
+
* quarter: 1000000
|
|
297
|
+
* })
|
|
298
|
+
*/
|
|
299
|
+
postV1DeclarationsEuSmeCrossBorderReportCompute(request: NordletApi.PostV1DeclarationsEuSmeCrossBorderReportComputeRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuSmeCrossBorderReportComputeResponse>;
|
|
300
|
+
private __postV1DeclarationsEuSmeCrossBorderReportCompute;
|
|
301
|
+
/**
|
|
302
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeThresholdsListRequest} request
|
|
303
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
|
+
*
|
|
305
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
306
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
307
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
308
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
309
|
+
* @throws {@link NordletApi.ConflictError}
|
|
310
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
311
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
312
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* await client.declarations.postV1DeclarationsEuSmeThresholdsList()
|
|
316
|
+
*/
|
|
317
|
+
postV1DeclarationsEuSmeThresholdsList(request?: NordletApi.PostV1DeclarationsEuSmeThresholdsListRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuSmeThresholdsListResponse>;
|
|
318
|
+
private __postV1DeclarationsEuSmeThresholdsList;
|
|
319
|
+
/**
|
|
320
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeThresholdGetRequest} request
|
|
321
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
322
|
+
*
|
|
323
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
324
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
325
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
326
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
327
|
+
* @throws {@link NordletApi.ConflictError}
|
|
328
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
329
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
330
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
331
|
+
*
|
|
332
|
+
* @example
|
|
333
|
+
* await client.declarations.postV1DeclarationsEuSmeThresholdGet()
|
|
334
|
+
*/
|
|
335
|
+
postV1DeclarationsEuSmeThresholdGet(request?: NordletApi.PostV1DeclarationsEuSmeThresholdGetRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuSmeThresholdGetResponse>;
|
|
336
|
+
private __postV1DeclarationsEuSmeThresholdGet;
|
|
337
|
+
/**
|
|
338
|
+
* @param {NordletApi.PostV1DeclarationsEuVatReturnPacksListRequest} request
|
|
339
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
|
+
*
|
|
341
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
342
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
343
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
344
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
345
|
+
* @throws {@link NordletApi.ConflictError}
|
|
346
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
347
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
348
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* await client.declarations.postV1DeclarationsEuVatReturnPacksList()
|
|
352
|
+
*/
|
|
353
|
+
postV1DeclarationsEuVatReturnPacksList(request?: NordletApi.PostV1DeclarationsEuVatReturnPacksListRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuVatReturnPacksListResponse>;
|
|
354
|
+
private __postV1DeclarationsEuVatReturnPacksList;
|
|
355
|
+
/**
|
|
356
|
+
* @param {NordletApi.PostV1DeclarationsEuVatReturnComputeRequest} request
|
|
357
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
358
|
+
*
|
|
359
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
360
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
361
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
362
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
363
|
+
* @throws {@link NordletApi.ConflictError}
|
|
364
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
365
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
366
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
367
|
+
*
|
|
368
|
+
* @example
|
|
369
|
+
* await client.declarations.postV1DeclarationsEuVatReturnCompute({
|
|
370
|
+
* countryCode: "countryCode",
|
|
371
|
+
* year: 1000000,
|
|
372
|
+
* month: 1000000
|
|
373
|
+
* })
|
|
374
|
+
*/
|
|
375
|
+
postV1DeclarationsEuVatReturnCompute(request: NordletApi.PostV1DeclarationsEuVatReturnComputeRequest, requestOptions?: DeclarationsClient.RequestOptions): core.HttpResponsePromise<NordletApi.PostV1DeclarationsEuVatReturnComputeResponse>;
|
|
376
|
+
private __postV1DeclarationsEuVatReturnCompute;
|
|
244
377
|
/**
|
|
245
378
|
* @param {NordletApi.PostV1DeclarationsConfigsListRequest} request
|
|
246
379
|
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -872,6 +872,517 @@ class DeclarationsClient {
|
|
|
872
872
|
}
|
|
873
873
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/ioss/compute");
|
|
874
874
|
}
|
|
875
|
+
/**
|
|
876
|
+
* @param {NordletApi.PostV1DeclarationsEuDistanceSalesThresholdGetRequest} request
|
|
877
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
878
|
+
*
|
|
879
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
880
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
881
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
882
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
883
|
+
* @throws {@link NordletApi.ConflictError}
|
|
884
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
885
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
886
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
887
|
+
*
|
|
888
|
+
* @example
|
|
889
|
+
* await client.declarations.postV1DeclarationsEuDistanceSalesThresholdGet()
|
|
890
|
+
*/
|
|
891
|
+
postV1DeclarationsEuDistanceSalesThresholdGet(request = {}, requestOptions) {
|
|
892
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuDistanceSalesThresholdGet(request, requestOptions));
|
|
893
|
+
}
|
|
894
|
+
async __postV1DeclarationsEuDistanceSalesThresholdGet(request = {}, requestOptions) {
|
|
895
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
896
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
897
|
+
const _response = await core.fetcher({
|
|
898
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
899
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
900
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/distance-sales-threshold/get"),
|
|
901
|
+
method: "POST",
|
|
902
|
+
headers: _headers,
|
|
903
|
+
contentType: "application/json",
|
|
904
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
905
|
+
requestType: "json",
|
|
906
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
907
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
908
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
909
|
+
abortSignal: requestOptions?.abortSignal,
|
|
910
|
+
fetchFn: this._options?.fetch,
|
|
911
|
+
logging: this._options.logging,
|
|
912
|
+
});
|
|
913
|
+
if (_response.ok) {
|
|
914
|
+
return {
|
|
915
|
+
data: _response.body,
|
|
916
|
+
rawResponse: _response.rawResponse,
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
if (_response.error.reason === "status-code") {
|
|
920
|
+
switch (_response.error.statusCode) {
|
|
921
|
+
case 400:
|
|
922
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
923
|
+
case 401:
|
|
924
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
925
|
+
case 403:
|
|
926
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
927
|
+
case 404:
|
|
928
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
929
|
+
case 409:
|
|
930
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
931
|
+
case 422:
|
|
932
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
933
|
+
case 429:
|
|
934
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
935
|
+
case 500:
|
|
936
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
937
|
+
default:
|
|
938
|
+
throw new errors.NordletApiError({
|
|
939
|
+
statusCode: _response.error.statusCode,
|
|
940
|
+
body: _response.error.body,
|
|
941
|
+
rawResponse: _response.rawResponse,
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/distance-sales-threshold/get");
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* @param {NordletApi.PostV1DeclarationsEuUnionTurnoverGetRequest} request
|
|
949
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
950
|
+
*
|
|
951
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
952
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
953
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
954
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
955
|
+
* @throws {@link NordletApi.ConflictError}
|
|
956
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
957
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
958
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
959
|
+
*
|
|
960
|
+
* @example
|
|
961
|
+
* await client.declarations.postV1DeclarationsEuUnionTurnoverGet()
|
|
962
|
+
*/
|
|
963
|
+
postV1DeclarationsEuUnionTurnoverGet(request = {}, requestOptions) {
|
|
964
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuUnionTurnoverGet(request, requestOptions));
|
|
965
|
+
}
|
|
966
|
+
async __postV1DeclarationsEuUnionTurnoverGet(request = {}, requestOptions) {
|
|
967
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
968
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
969
|
+
const _response = await core.fetcher({
|
|
970
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
971
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
972
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/union-turnover/get"),
|
|
973
|
+
method: "POST",
|
|
974
|
+
headers: _headers,
|
|
975
|
+
contentType: "application/json",
|
|
976
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
977
|
+
requestType: "json",
|
|
978
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
979
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
980
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
981
|
+
abortSignal: requestOptions?.abortSignal,
|
|
982
|
+
fetchFn: this._options?.fetch,
|
|
983
|
+
logging: this._options.logging,
|
|
984
|
+
});
|
|
985
|
+
if (_response.ok) {
|
|
986
|
+
return {
|
|
987
|
+
data: _response.body,
|
|
988
|
+
rawResponse: _response.rawResponse,
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
if (_response.error.reason === "status-code") {
|
|
992
|
+
switch (_response.error.statusCode) {
|
|
993
|
+
case 400:
|
|
994
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
995
|
+
case 401:
|
|
996
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
997
|
+
case 403:
|
|
998
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
999
|
+
case 404:
|
|
1000
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1001
|
+
case 409:
|
|
1002
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1003
|
+
case 422:
|
|
1004
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1005
|
+
case 429:
|
|
1006
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1007
|
+
case 500:
|
|
1008
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1009
|
+
default:
|
|
1010
|
+
throw new errors.NordletApiError({
|
|
1011
|
+
statusCode: _response.error.statusCode,
|
|
1012
|
+
body: _response.error.body,
|
|
1013
|
+
rawResponse: _response.rawResponse,
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/union-turnover/get");
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeCrossBorderReportComputeRequest} request
|
|
1021
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1022
|
+
*
|
|
1023
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1024
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1025
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1026
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1027
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1028
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1029
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1030
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1031
|
+
*
|
|
1032
|
+
* @example
|
|
1033
|
+
* await client.declarations.postV1DeclarationsEuSmeCrossBorderReportCompute({
|
|
1034
|
+
* year: 1000000,
|
|
1035
|
+
* quarter: 1000000
|
|
1036
|
+
* })
|
|
1037
|
+
*/
|
|
1038
|
+
postV1DeclarationsEuSmeCrossBorderReportCompute(request, requestOptions) {
|
|
1039
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuSmeCrossBorderReportCompute(request, requestOptions));
|
|
1040
|
+
}
|
|
1041
|
+
async __postV1DeclarationsEuSmeCrossBorderReportCompute(request, requestOptions) {
|
|
1042
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1043
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1044
|
+
const _response = await core.fetcher({
|
|
1045
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1046
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1047
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/sme-cross-border-report/compute"),
|
|
1048
|
+
method: "POST",
|
|
1049
|
+
headers: _headers,
|
|
1050
|
+
contentType: "application/json",
|
|
1051
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1052
|
+
requestType: "json",
|
|
1053
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1054
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1055
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1056
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1057
|
+
fetchFn: this._options?.fetch,
|
|
1058
|
+
logging: this._options.logging,
|
|
1059
|
+
});
|
|
1060
|
+
if (_response.ok) {
|
|
1061
|
+
return {
|
|
1062
|
+
data: _response.body,
|
|
1063
|
+
rawResponse: _response.rawResponse,
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
if (_response.error.reason === "status-code") {
|
|
1067
|
+
switch (_response.error.statusCode) {
|
|
1068
|
+
case 400:
|
|
1069
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1070
|
+
case 401:
|
|
1071
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1072
|
+
case 403:
|
|
1073
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1074
|
+
case 404:
|
|
1075
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1076
|
+
case 409:
|
|
1077
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1078
|
+
case 422:
|
|
1079
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1080
|
+
case 429:
|
|
1081
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1082
|
+
case 500:
|
|
1083
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1084
|
+
default:
|
|
1085
|
+
throw new errors.NordletApiError({
|
|
1086
|
+
statusCode: _response.error.statusCode,
|
|
1087
|
+
body: _response.error.body,
|
|
1088
|
+
rawResponse: _response.rawResponse,
|
|
1089
|
+
});
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/sme-cross-border-report/compute");
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeThresholdsListRequest} request
|
|
1096
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1097
|
+
*
|
|
1098
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1099
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1100
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1101
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1102
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1103
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1104
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1105
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1106
|
+
*
|
|
1107
|
+
* @example
|
|
1108
|
+
* await client.declarations.postV1DeclarationsEuSmeThresholdsList()
|
|
1109
|
+
*/
|
|
1110
|
+
postV1DeclarationsEuSmeThresholdsList(request = {}, requestOptions) {
|
|
1111
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuSmeThresholdsList(request, requestOptions));
|
|
1112
|
+
}
|
|
1113
|
+
async __postV1DeclarationsEuSmeThresholdsList(request = {}, requestOptions) {
|
|
1114
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1115
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1116
|
+
const _response = await core.fetcher({
|
|
1117
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1118
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1119
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/sme-thresholds/list"),
|
|
1120
|
+
method: "POST",
|
|
1121
|
+
headers: _headers,
|
|
1122
|
+
contentType: "application/json",
|
|
1123
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1124
|
+
requestType: "json",
|
|
1125
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1126
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1127
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1128
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1129
|
+
fetchFn: this._options?.fetch,
|
|
1130
|
+
logging: this._options.logging,
|
|
1131
|
+
});
|
|
1132
|
+
if (_response.ok) {
|
|
1133
|
+
return {
|
|
1134
|
+
data: _response.body,
|
|
1135
|
+
rawResponse: _response.rawResponse,
|
|
1136
|
+
};
|
|
1137
|
+
}
|
|
1138
|
+
if (_response.error.reason === "status-code") {
|
|
1139
|
+
switch (_response.error.statusCode) {
|
|
1140
|
+
case 400:
|
|
1141
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1142
|
+
case 401:
|
|
1143
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1144
|
+
case 403:
|
|
1145
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1146
|
+
case 404:
|
|
1147
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1148
|
+
case 409:
|
|
1149
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1150
|
+
case 422:
|
|
1151
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1152
|
+
case 429:
|
|
1153
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1154
|
+
case 500:
|
|
1155
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1156
|
+
default:
|
|
1157
|
+
throw new errors.NordletApiError({
|
|
1158
|
+
statusCode: _response.error.statusCode,
|
|
1159
|
+
body: _response.error.body,
|
|
1160
|
+
rawResponse: _response.rawResponse,
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/sme-thresholds/list");
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* @param {NordletApi.PostV1DeclarationsEuSmeThresholdGetRequest} request
|
|
1168
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1169
|
+
*
|
|
1170
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1171
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1172
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1173
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1174
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1175
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1176
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1177
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1178
|
+
*
|
|
1179
|
+
* @example
|
|
1180
|
+
* await client.declarations.postV1DeclarationsEuSmeThresholdGet()
|
|
1181
|
+
*/
|
|
1182
|
+
postV1DeclarationsEuSmeThresholdGet(request = {}, requestOptions) {
|
|
1183
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuSmeThresholdGet(request, requestOptions));
|
|
1184
|
+
}
|
|
1185
|
+
async __postV1DeclarationsEuSmeThresholdGet(request = {}, requestOptions) {
|
|
1186
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1187
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1188
|
+
const _response = await core.fetcher({
|
|
1189
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1190
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1191
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/sme-threshold/get"),
|
|
1192
|
+
method: "POST",
|
|
1193
|
+
headers: _headers,
|
|
1194
|
+
contentType: "application/json",
|
|
1195
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1196
|
+
requestType: "json",
|
|
1197
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1198
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1199
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1200
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1201
|
+
fetchFn: this._options?.fetch,
|
|
1202
|
+
logging: this._options.logging,
|
|
1203
|
+
});
|
|
1204
|
+
if (_response.ok) {
|
|
1205
|
+
return {
|
|
1206
|
+
data: _response.body,
|
|
1207
|
+
rawResponse: _response.rawResponse,
|
|
1208
|
+
};
|
|
1209
|
+
}
|
|
1210
|
+
if (_response.error.reason === "status-code") {
|
|
1211
|
+
switch (_response.error.statusCode) {
|
|
1212
|
+
case 400:
|
|
1213
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1214
|
+
case 401:
|
|
1215
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1216
|
+
case 403:
|
|
1217
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1218
|
+
case 404:
|
|
1219
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1220
|
+
case 409:
|
|
1221
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1222
|
+
case 422:
|
|
1223
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1224
|
+
case 429:
|
|
1225
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1226
|
+
case 500:
|
|
1227
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1228
|
+
default:
|
|
1229
|
+
throw new errors.NordletApiError({
|
|
1230
|
+
statusCode: _response.error.statusCode,
|
|
1231
|
+
body: _response.error.body,
|
|
1232
|
+
rawResponse: _response.rawResponse,
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/sme-threshold/get");
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* @param {NordletApi.PostV1DeclarationsEuVatReturnPacksListRequest} request
|
|
1240
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1241
|
+
*
|
|
1242
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1243
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1244
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1245
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1246
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1247
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1248
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1249
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1250
|
+
*
|
|
1251
|
+
* @example
|
|
1252
|
+
* await client.declarations.postV1DeclarationsEuVatReturnPacksList()
|
|
1253
|
+
*/
|
|
1254
|
+
postV1DeclarationsEuVatReturnPacksList(request = {}, requestOptions) {
|
|
1255
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuVatReturnPacksList(request, requestOptions));
|
|
1256
|
+
}
|
|
1257
|
+
async __postV1DeclarationsEuVatReturnPacksList(request = {}, requestOptions) {
|
|
1258
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1259
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1260
|
+
const _response = await core.fetcher({
|
|
1261
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1262
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1263
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/vat-return/packs/list"),
|
|
1264
|
+
method: "POST",
|
|
1265
|
+
headers: _headers,
|
|
1266
|
+
contentType: "application/json",
|
|
1267
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1268
|
+
requestType: "json",
|
|
1269
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1270
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1271
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1272
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1273
|
+
fetchFn: this._options?.fetch,
|
|
1274
|
+
logging: this._options.logging,
|
|
1275
|
+
});
|
|
1276
|
+
if (_response.ok) {
|
|
1277
|
+
return {
|
|
1278
|
+
data: _response.body,
|
|
1279
|
+
rawResponse: _response.rawResponse,
|
|
1280
|
+
};
|
|
1281
|
+
}
|
|
1282
|
+
if (_response.error.reason === "status-code") {
|
|
1283
|
+
switch (_response.error.statusCode) {
|
|
1284
|
+
case 400:
|
|
1285
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1286
|
+
case 401:
|
|
1287
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1288
|
+
case 403:
|
|
1289
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1290
|
+
case 404:
|
|
1291
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1292
|
+
case 409:
|
|
1293
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1294
|
+
case 422:
|
|
1295
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1296
|
+
case 429:
|
|
1297
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1298
|
+
case 500:
|
|
1299
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1300
|
+
default:
|
|
1301
|
+
throw new errors.NordletApiError({
|
|
1302
|
+
statusCode: _response.error.statusCode,
|
|
1303
|
+
body: _response.error.body,
|
|
1304
|
+
rawResponse: _response.rawResponse,
|
|
1305
|
+
});
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/vat-return/packs/list");
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* @param {NordletApi.PostV1DeclarationsEuVatReturnComputeRequest} request
|
|
1312
|
+
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1313
|
+
*
|
|
1314
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1315
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1316
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1317
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1318
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1319
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1320
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1321
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1322
|
+
*
|
|
1323
|
+
* @example
|
|
1324
|
+
* await client.declarations.postV1DeclarationsEuVatReturnCompute({
|
|
1325
|
+
* countryCode: "countryCode",
|
|
1326
|
+
* year: 1000000,
|
|
1327
|
+
* month: 1000000
|
|
1328
|
+
* })
|
|
1329
|
+
*/
|
|
1330
|
+
postV1DeclarationsEuVatReturnCompute(request, requestOptions) {
|
|
1331
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1DeclarationsEuVatReturnCompute(request, requestOptions));
|
|
1332
|
+
}
|
|
1333
|
+
async __postV1DeclarationsEuVatReturnCompute(request, requestOptions) {
|
|
1334
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1335
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1336
|
+
const _response = await core.fetcher({
|
|
1337
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1338
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1339
|
+
environments.NordletApiEnvironment.Production, "v1/declarations/eu/vat-return/compute"),
|
|
1340
|
+
method: "POST",
|
|
1341
|
+
headers: _headers,
|
|
1342
|
+
contentType: "application/json",
|
|
1343
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1344
|
+
requestType: "json",
|
|
1345
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1346
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1347
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1348
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1349
|
+
fetchFn: this._options?.fetch,
|
|
1350
|
+
logging: this._options.logging,
|
|
1351
|
+
});
|
|
1352
|
+
if (_response.ok) {
|
|
1353
|
+
return {
|
|
1354
|
+
data: _response.body,
|
|
1355
|
+
rawResponse: _response.rawResponse,
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
if (_response.error.reason === "status-code") {
|
|
1359
|
+
switch (_response.error.statusCode) {
|
|
1360
|
+
case 400:
|
|
1361
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1362
|
+
case 401:
|
|
1363
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1364
|
+
case 403:
|
|
1365
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1366
|
+
case 404:
|
|
1367
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1368
|
+
case 409:
|
|
1369
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1370
|
+
case 422:
|
|
1371
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1372
|
+
case 429:
|
|
1373
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1374
|
+
case 500:
|
|
1375
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1376
|
+
default:
|
|
1377
|
+
throw new errors.NordletApiError({
|
|
1378
|
+
statusCode: _response.error.statusCode,
|
|
1379
|
+
body: _response.error.body,
|
|
1380
|
+
rawResponse: _response.rawResponse,
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/declarations/eu/vat-return/compute");
|
|
1385
|
+
}
|
|
875
1386
|
/**
|
|
876
1387
|
* @param {NordletApi.PostV1DeclarationsConfigsListRequest} request
|
|
877
1388
|
* @param {DeclarationsClient.RequestOptions} requestOptions - Request-specific configuration.
|