nordlet 0.2.0 → 0.2.1
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/dist/Client.d.ts +12 -0
- package/dist/Client.js +56 -40
- 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/account/types/PostV1AccountMeResponse.d.ts +15 -0
- package/dist/api/resources/account/types/PostV1AccountMeResponse.js +8 -0
- package/dist/api/resources/bank/client/Client.d.ts +279 -0
- package/dist/api/resources/bank/client/Client.js +1080 -45
- package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.d.ts +18 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.d.ts +7 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.d.ts +11 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.d.ts +46 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.d.ts +22 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.js +11 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.d.ts +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.js +15 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.d.ts +46 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +14 -0
- package/dist/api/resources/bank/client/requests/index.js +9 -1
- package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.d.ts +12 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.d.ts +26 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.d.ts +45 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.js +18 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.d.ts +45 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.js +18 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.d.ts +40 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.js +24 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.d.ts +16 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.d.ts +47 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.js +26 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.js +20 -0
- package/dist/api/resources/bank/types/index.d.ts +14 -0
- package/dist/api/resources/bank/types/index.js +14 -0
- package/dist/api/resources/billing/client/Client.d.ts +110 -0
- package/dist/api/resources/billing/client/Client.js +418 -0
- package/dist/api/resources/billing/client/index.d.ts +1 -0
- package/dist/api/resources/billing/client/index.js +17 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.d.ts +5 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.d.ts +17 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.js +12 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.js +12 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.d.ts +7 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.d.ts +11 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +5 -0
- package/dist/api/resources/billing/client/requests/index.js +7 -0
- package/dist/api/resources/billing/exports.d.ts +2 -0
- package/dist/api/resources/billing/exports.js +21 -0
- package/dist/api/resources/billing/index.d.ts +2 -0
- package/dist/api/resources/billing/index.js +18 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.d.ts +50 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.js +17 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.d.ts +50 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.js +17 -0
- package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.d.ts +4 -0
- package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.js +3 -0
- package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.d.ts +28 -0
- package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.js +20 -0
- package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.d.ts +23 -0
- package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.js +19 -0
- package/dist/api/resources/billing/types/index.d.ts +5 -0
- package/dist/api/resources/billing/types/index.js +21 -0
- package/dist/api/resources/capture/client/Client.d.ts +136 -0
- package/dist/api/resources/capture/client/Client.js +498 -0
- package/dist/api/resources/capture/client/index.d.ts +1 -0
- package/dist/api/resources/capture/client/index.js +17 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.d.ts +47 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.d.ts +46 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.js +31 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.d.ts +14 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +6 -0
- package/dist/api/resources/capture/client/requests/index.js +5 -0
- package/dist/api/resources/capture/exports.d.ts +2 -0
- package/dist/api/resources/capture/exports.js +21 -0
- package/dist/api/resources/capture/index.d.ts +2 -0
- package/dist/api/resources/capture/index.js +18 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.d.ts +128 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.js +32 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.js +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.js +13 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.js +13 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.d.ts +71 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.js +19 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.js +13 -0
- package/dist/api/resources/capture/types/index.d.ts +6 -0
- package/dist/api/resources/capture/types/index.js +22 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.d.ts +7 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.js +5 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.d.ts +7 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.js +5 -0
- package/dist/api/resources/consolidation/client/Client.d.ts +111 -0
- package/dist/api/resources/consolidation/client/Client.js +381 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.d.ts +9 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.d.ts +9 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.d.ts +11 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.d.ts +13 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.d.ts +13 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/index.d.ts +5 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.d.ts +26 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.js +17 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.d.ts +18 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.d.ts +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.d.ts +7 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.d.ts +104 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.js +55 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationReportResponse.d.ts +63 -0
- package/dist/api/resources/consolidation/types/index.d.ts +5 -0
- package/dist/api/resources/consolidation/types/index.js +5 -0
- package/dist/api/resources/declarations/client/Client.d.ts +25 -0
- package/dist/api/resources/declarations/client/Client.js +79 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.d.ts +16 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.d.ts +24 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.js +3 -0
- package/dist/api/resources/declarations/types/index.d.ts +1 -0
- package/dist/api/resources/declarations/types/index.js +1 -0
- package/dist/api/resources/fleet/client/Client.d.ts +175 -0
- package/dist/api/resources/fleet/client/Client.js +645 -0
- package/dist/api/resources/fleet/client/index.d.ts +1 -0
- package/dist/api/resources/fleet/client/index.js +17 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.d.ts +17 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.d.ts +11 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.d.ts +46 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.js +31 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.d.ts +11 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.d.ts +33 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.js +15 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.d.ts +9 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.d.ts +46 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.js +31 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.d.ts +39 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.js +20 -0
- package/dist/api/resources/fleet/client/requests/index.d.ts +8 -0
- package/dist/api/resources/fleet/client/requests/index.js +11 -0
- package/dist/api/resources/fleet/exports.d.ts +2 -0
- package/dist/api/resources/fleet/exports.js +21 -0
- package/dist/api/resources/fleet/index.d.ts +2 -0
- package/dist/api/resources/fleet/index.js +18 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.d.ts +13 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.d.ts +13 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.d.ts +24 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.d.ts +21 -0
- package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.js +12 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.js +12 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.d.ts +45 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.js +18 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.js +12 -0
- package/dist/api/resources/fleet/types/index.d.ts +8 -0
- package/dist/api/resources/fleet/types/index.js +24 -0
- package/dist/api/resources/index.d.ts +12 -0
- package/dist/api/resources/index.js +13 -1
- package/dist/api/resources/inventory/client/Client.d.ts +214 -0
- package/dist/api/resources/inventory/client/Client.js +808 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.d.ts +23 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.js +11 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.d.ts +5 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.d.ts +15 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.d.ts +13 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockReceiveRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTakeRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTransferRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockWriteOffRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/index.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/index.js +9 -1
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.d.ts +26 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.js +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.d.ts +26 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.js +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.d.ts +28 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.js +17 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.d.ts +38 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.js +17 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.d.ts +20 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.d.ts +9 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.d.ts +18 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.d.ts +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.d.ts +22 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.d.ts +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryStockMovementsListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.d.ts +11 -0
- package/dist/api/resources/inventory/types/index.js +11 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerJournalTransactionsCreateRequest.d.ts +1 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.js +2 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsGetResponse.d.ts +1 -0
- package/dist/api/resources/partners/client/Client.d.ts +39 -0
- package/dist/api/resources/partners/client/Client.js +147 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.d.ts +46 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.js +31 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.d.ts +20 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.js +12 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/index.js +5 -1
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.d.ts +52 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.js +29 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.d.ts +41 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.js +23 -0
- package/dist/api/resources/partners/types/index.d.ts +2 -0
- package/dist/api/resources/partners/types/index.js +2 -0
- package/dist/api/resources/payroll/client/requests/PostV1PayrollRunsCreateRequest.d.ts +1 -0
- package/dist/api/resources/payroll/types/PostV1PayrollRunsCreateResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/PostV1PayrollRunsGetResponse.d.ts +1 -0
- package/dist/api/resources/production/client/Client.d.ts +285 -0
- package/dist/api/resources/production/client/Client.js +1077 -36
- package/dist/api/resources/production/client/requests/PostV1ProductionBomsCreateRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.d.ts +9 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.d.ts +14 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.d.ts +22 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.js +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCompleteRequest.d.ts +1 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCreateRequest.d.ts +1 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.d.ts +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.d.ts +12 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.d.ts +19 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.js +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.d.ts +32 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.d.ts +9 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.d.ts +15 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.d.ts +16 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/index.d.ts +14 -0
- package/dist/api/resources/production/client/requests/index.js +13 -1
- package/dist/api/resources/production/types/PostV1ProductionBomsCreateResponse.d.ts +2 -0
- package/dist/api/resources/production/types/PostV1ProductionBomsGetResponse.d.ts +2 -0
- package/dist/api/resources/production/types/PostV1ProductionBomsListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.d.ts +37 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.js +22 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCompleteResponse.d.ts +5 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.d.ts +43 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.js +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.d.ts +43 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.js +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersListResponse.d.ts +5 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.d.ts +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.js +12 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.d.ts +30 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.js +18 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.js +12 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.d.ts +24 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.d.ts +24 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.d.ts +12 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.d.ts +23 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.d.ts +12 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.js +3 -0
- package/dist/api/resources/production/types/index.d.ts +14 -0
- package/dist/api/resources/production/types/index.js +14 -0
- package/dist/api/resources/projects/client/Client.d.ts +210 -0
- package/dist/api/resources/projects/client/Client.js +785 -0
- package/dist/api/resources/projects/client/index.d.ts +1 -0
- package/dist/api/resources/projects/client/index.js +17 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.d.ts +13 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.d.ts +46 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.js +31 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.d.ts +27 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.js +11 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.d.ts +17 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.d.ts +46 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.js +31 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.d.ts +14 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.d.ts +21 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.js +12 -0
- package/dist/api/resources/projects/client/requests/index.d.ts +10 -0
- package/dist/api/resources/projects/client/requests/index.js +11 -0
- package/dist/api/resources/projects/exports.d.ts +2 -0
- package/dist/api/resources/projects/exports.js +21 -0
- package/dist/api/resources/projects/index.d.ts +2 -0
- package/dist/api/resources/projects/index.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.js +12 -0
- package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.js +12 -0
- package/dist/api/resources/projects/types/PostV1ProjectsListResponse.d.ts +29 -0
- package/dist/api/resources/projects/types/PostV1ProjectsListResponse.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.d.ts +30 -0
- package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.d.ts +8 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.d.ts +13 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.d.ts +24 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.d.ts +13 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.js +12 -0
- package/dist/api/resources/projects/types/index.d.ts +10 -0
- package/dist/api/resources/projects/types/index.js +26 -0
- package/dist/api/resources/purchases/client/Client.d.ts +283 -0
- package/dist/api/resources/purchases/client/Client.js +1039 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesCreateRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesUpdateRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.d.ts +39 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.d.ts +46 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.d.ts +37 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.d.ts +29 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.d.ts +46 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/index.d.ts +14 -0
- package/dist/api/resources/purchases/client/requests/index.js +5 -1
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesCreateResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesGetResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesListResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.d.ts +38 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.js +25 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesRegisterResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesUpdateResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.d.ts +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.d.ts +41 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.js +22 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.d.ts +23 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.d.ts +23 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.d.ts +20 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.js +3 -0
- package/dist/api/resources/purchases/types/index.d.ts +14 -0
- package/dist/api/resources/purchases/types/index.js +14 -0
- package/dist/api/resources/reference/client/Client.d.ts +40 -0
- package/dist/api/resources/reference/client/Client.js +148 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.d.ts +7 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.d.ts +5 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/index.d.ts +2 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.d.ts +34 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.js +23 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.d.ts +16 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.js +12 -0
- package/dist/api/resources/reference/types/index.d.ts +2 -0
- package/dist/api/resources/reference/types/index.js +2 -0
- package/dist/api/resources/sales/client/Client.d.ts +44 -0
- package/dist/api/resources/sales/client/Client.js +152 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +2 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.d.ts +8 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.d.ts +8 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/index.d.ts +2 -0
- package/dist/api/resources/sales/types/index.js +2 -0
- package/package.json +1 -1
|
@@ -643,6 +643,451 @@ class BankClient {
|
|
|
643
643
|
}
|
|
644
644
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/payments/export");
|
|
645
645
|
}
|
|
646
|
+
/**
|
|
647
|
+
* @param {NordletApi.PostV1BankMandatesCreateRequest} request
|
|
648
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
649
|
+
*
|
|
650
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
651
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
652
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
653
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
654
|
+
* @throws {@link NordletApi.ConflictError}
|
|
655
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
656
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
657
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
658
|
+
*
|
|
659
|
+
* @example
|
|
660
|
+
* await client.bank.postV1BankMandatesCreate({
|
|
661
|
+
* partnerId: "partnerId",
|
|
662
|
+
* iban: "iban",
|
|
663
|
+
* signatureDate: "signatureDate"
|
|
664
|
+
* })
|
|
665
|
+
*/
|
|
666
|
+
postV1BankMandatesCreate(request, requestOptions) {
|
|
667
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankMandatesCreate(request, requestOptions));
|
|
668
|
+
}
|
|
669
|
+
async __postV1BankMandatesCreate(request, requestOptions) {
|
|
670
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
671
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
672
|
+
const _response = await core.fetcher({
|
|
673
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
674
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
675
|
+
environments.NordletApiEnvironment.Production, "v1/bank/mandates/create"),
|
|
676
|
+
method: "POST",
|
|
677
|
+
headers: _headers,
|
|
678
|
+
contentType: "application/json",
|
|
679
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
680
|
+
requestType: "json",
|
|
681
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
682
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
683
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
684
|
+
abortSignal: requestOptions?.abortSignal,
|
|
685
|
+
fetchFn: this._options?.fetch,
|
|
686
|
+
logging: this._options.logging,
|
|
687
|
+
});
|
|
688
|
+
if (_response.ok) {
|
|
689
|
+
return {
|
|
690
|
+
data: _response.body,
|
|
691
|
+
rawResponse: _response.rawResponse,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
if (_response.error.reason === "status-code") {
|
|
695
|
+
switch (_response.error.statusCode) {
|
|
696
|
+
case 400:
|
|
697
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
698
|
+
case 401:
|
|
699
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
700
|
+
case 403:
|
|
701
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
702
|
+
case 404:
|
|
703
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
704
|
+
case 409:
|
|
705
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
706
|
+
case 422:
|
|
707
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
708
|
+
case 429:
|
|
709
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
710
|
+
case 500:
|
|
711
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
712
|
+
default:
|
|
713
|
+
throw new errors.NordletApiError({
|
|
714
|
+
statusCode: _response.error.statusCode,
|
|
715
|
+
body: _response.error.body,
|
|
716
|
+
rawResponse: _response.rawResponse,
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/mandates/create");
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* @param {NordletApi.PostV1BankMandatesUpdateRequest} request
|
|
724
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
725
|
+
*
|
|
726
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
727
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
728
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
729
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
730
|
+
* @throws {@link NordletApi.ConflictError}
|
|
731
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
732
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
733
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
734
|
+
*
|
|
735
|
+
* @example
|
|
736
|
+
* await client.bank.postV1BankMandatesUpdate({
|
|
737
|
+
* id: "id"
|
|
738
|
+
* })
|
|
739
|
+
*/
|
|
740
|
+
postV1BankMandatesUpdate(request, requestOptions) {
|
|
741
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankMandatesUpdate(request, requestOptions));
|
|
742
|
+
}
|
|
743
|
+
async __postV1BankMandatesUpdate(request, requestOptions) {
|
|
744
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
745
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
746
|
+
const _response = await core.fetcher({
|
|
747
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
748
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
749
|
+
environments.NordletApiEnvironment.Production, "v1/bank/mandates/update"),
|
|
750
|
+
method: "POST",
|
|
751
|
+
headers: _headers,
|
|
752
|
+
contentType: "application/json",
|
|
753
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
754
|
+
requestType: "json",
|
|
755
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
756
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
757
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
758
|
+
abortSignal: requestOptions?.abortSignal,
|
|
759
|
+
fetchFn: this._options?.fetch,
|
|
760
|
+
logging: this._options.logging,
|
|
761
|
+
});
|
|
762
|
+
if (_response.ok) {
|
|
763
|
+
return {
|
|
764
|
+
data: _response.body,
|
|
765
|
+
rawResponse: _response.rawResponse,
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
if (_response.error.reason === "status-code") {
|
|
769
|
+
switch (_response.error.statusCode) {
|
|
770
|
+
case 400:
|
|
771
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
772
|
+
case 401:
|
|
773
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
774
|
+
case 403:
|
|
775
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
776
|
+
case 404:
|
|
777
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
778
|
+
case 409:
|
|
779
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
780
|
+
case 422:
|
|
781
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
782
|
+
case 429:
|
|
783
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
784
|
+
case 500:
|
|
785
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
786
|
+
default:
|
|
787
|
+
throw new errors.NordletApiError({
|
|
788
|
+
statusCode: _response.error.statusCode,
|
|
789
|
+
body: _response.error.body,
|
|
790
|
+
rawResponse: _response.rawResponse,
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/mandates/update");
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* @param {NordletApi.PostV1BankMandatesCancelRequest} request
|
|
798
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
799
|
+
*
|
|
800
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
801
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
802
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
803
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
804
|
+
* @throws {@link NordletApi.ConflictError}
|
|
805
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
806
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
807
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
808
|
+
*
|
|
809
|
+
* @example
|
|
810
|
+
* await client.bank.postV1BankMandatesCancel({
|
|
811
|
+
* id: "id"
|
|
812
|
+
* })
|
|
813
|
+
*/
|
|
814
|
+
postV1BankMandatesCancel(request, requestOptions) {
|
|
815
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankMandatesCancel(request, requestOptions));
|
|
816
|
+
}
|
|
817
|
+
async __postV1BankMandatesCancel(request, requestOptions) {
|
|
818
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
819
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
820
|
+
const _response = await core.fetcher({
|
|
821
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
822
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
823
|
+
environments.NordletApiEnvironment.Production, "v1/bank/mandates/cancel"),
|
|
824
|
+
method: "POST",
|
|
825
|
+
headers: _headers,
|
|
826
|
+
contentType: "application/json",
|
|
827
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
828
|
+
requestType: "json",
|
|
829
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
830
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
831
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
832
|
+
abortSignal: requestOptions?.abortSignal,
|
|
833
|
+
fetchFn: this._options?.fetch,
|
|
834
|
+
logging: this._options.logging,
|
|
835
|
+
});
|
|
836
|
+
if (_response.ok) {
|
|
837
|
+
return {
|
|
838
|
+
data: _response.body,
|
|
839
|
+
rawResponse: _response.rawResponse,
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
if (_response.error.reason === "status-code") {
|
|
843
|
+
switch (_response.error.statusCode) {
|
|
844
|
+
case 400:
|
|
845
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
846
|
+
case 401:
|
|
847
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
848
|
+
case 403:
|
|
849
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
850
|
+
case 404:
|
|
851
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
852
|
+
case 409:
|
|
853
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
854
|
+
case 422:
|
|
855
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
856
|
+
case 429:
|
|
857
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
858
|
+
case 500:
|
|
859
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
860
|
+
default:
|
|
861
|
+
throw new errors.NordletApiError({
|
|
862
|
+
statusCode: _response.error.statusCode,
|
|
863
|
+
body: _response.error.body,
|
|
864
|
+
rawResponse: _response.rawResponse,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/mandates/cancel");
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* @param {NordletApi.PostV1BankMandatesGetRequest} request
|
|
872
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
873
|
+
*
|
|
874
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
875
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
876
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
877
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
878
|
+
* @throws {@link NordletApi.ConflictError}
|
|
879
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
880
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
881
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
882
|
+
*
|
|
883
|
+
* @example
|
|
884
|
+
* await client.bank.postV1BankMandatesGet({
|
|
885
|
+
* id: "id"
|
|
886
|
+
* })
|
|
887
|
+
*/
|
|
888
|
+
postV1BankMandatesGet(request, requestOptions) {
|
|
889
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankMandatesGet(request, requestOptions));
|
|
890
|
+
}
|
|
891
|
+
async __postV1BankMandatesGet(request, requestOptions) {
|
|
892
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
893
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
894
|
+
const _response = await core.fetcher({
|
|
895
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
896
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
897
|
+
environments.NordletApiEnvironment.Production, "v1/bank/mandates/get"),
|
|
898
|
+
method: "POST",
|
|
899
|
+
headers: _headers,
|
|
900
|
+
contentType: "application/json",
|
|
901
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
902
|
+
requestType: "json",
|
|
903
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
904
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
905
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
906
|
+
abortSignal: requestOptions?.abortSignal,
|
|
907
|
+
fetchFn: this._options?.fetch,
|
|
908
|
+
logging: this._options.logging,
|
|
909
|
+
});
|
|
910
|
+
if (_response.ok) {
|
|
911
|
+
return {
|
|
912
|
+
data: _response.body,
|
|
913
|
+
rawResponse: _response.rawResponse,
|
|
914
|
+
};
|
|
915
|
+
}
|
|
916
|
+
if (_response.error.reason === "status-code") {
|
|
917
|
+
switch (_response.error.statusCode) {
|
|
918
|
+
case 400:
|
|
919
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
920
|
+
case 401:
|
|
921
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
922
|
+
case 403:
|
|
923
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
924
|
+
case 404:
|
|
925
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
926
|
+
case 409:
|
|
927
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
928
|
+
case 422:
|
|
929
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
930
|
+
case 429:
|
|
931
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
932
|
+
case 500:
|
|
933
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
934
|
+
default:
|
|
935
|
+
throw new errors.NordletApiError({
|
|
936
|
+
statusCode: _response.error.statusCode,
|
|
937
|
+
body: _response.error.body,
|
|
938
|
+
rawResponse: _response.rawResponse,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/mandates/get");
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* @param {NordletApi.PostV1BankMandatesListRequest} request
|
|
946
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
947
|
+
*
|
|
948
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
949
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
950
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
951
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
952
|
+
* @throws {@link NordletApi.ConflictError}
|
|
953
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
954
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
955
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
956
|
+
*
|
|
957
|
+
* @example
|
|
958
|
+
* await client.bank.postV1BankMandatesList()
|
|
959
|
+
*/
|
|
960
|
+
postV1BankMandatesList(request = {}, requestOptions) {
|
|
961
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankMandatesList(request, requestOptions));
|
|
962
|
+
}
|
|
963
|
+
async __postV1BankMandatesList(request = {}, requestOptions) {
|
|
964
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
965
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
966
|
+
const _response = await core.fetcher({
|
|
967
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
968
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
969
|
+
environments.NordletApiEnvironment.Production, "v1/bank/mandates/list"),
|
|
970
|
+
method: "POST",
|
|
971
|
+
headers: _headers,
|
|
972
|
+
contentType: "application/json",
|
|
973
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
974
|
+
requestType: "json",
|
|
975
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
976
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
977
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
978
|
+
abortSignal: requestOptions?.abortSignal,
|
|
979
|
+
fetchFn: this._options?.fetch,
|
|
980
|
+
logging: this._options.logging,
|
|
981
|
+
});
|
|
982
|
+
if (_response.ok) {
|
|
983
|
+
return {
|
|
984
|
+
data: _response.body,
|
|
985
|
+
rawResponse: _response.rawResponse,
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
if (_response.error.reason === "status-code") {
|
|
989
|
+
switch (_response.error.statusCode) {
|
|
990
|
+
case 400:
|
|
991
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
992
|
+
case 401:
|
|
993
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
994
|
+
case 403:
|
|
995
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
996
|
+
case 404:
|
|
997
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
998
|
+
case 409:
|
|
999
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1000
|
+
case 422:
|
|
1001
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1002
|
+
case 429:
|
|
1003
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1004
|
+
case 500:
|
|
1005
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1006
|
+
default:
|
|
1007
|
+
throw new errors.NordletApiError({
|
|
1008
|
+
statusCode: _response.error.statusCode,
|
|
1009
|
+
body: _response.error.body,
|
|
1010
|
+
rawResponse: _response.rawResponse,
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/mandates/list");
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* @param {NordletApi.PostV1BankDirectDebitsExportRequest} request
|
|
1018
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1019
|
+
*
|
|
1020
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1021
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1022
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1023
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1024
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1025
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1026
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1027
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1028
|
+
*
|
|
1029
|
+
* @example
|
|
1030
|
+
* await client.bank.postV1BankDirectDebitsExport({
|
|
1031
|
+
* bankAccountId: "bankAccountId",
|
|
1032
|
+
* saleInvoiceIds: ["saleInvoiceIds"]
|
|
1033
|
+
* })
|
|
1034
|
+
*/
|
|
1035
|
+
postV1BankDirectDebitsExport(request, requestOptions) {
|
|
1036
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankDirectDebitsExport(request, requestOptions));
|
|
1037
|
+
}
|
|
1038
|
+
async __postV1BankDirectDebitsExport(request, requestOptions) {
|
|
1039
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1040
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1041
|
+
const _response = await core.fetcher({
|
|
1042
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1043
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1044
|
+
environments.NordletApiEnvironment.Production, "v1/bank/direct-debits/export"),
|
|
1045
|
+
method: "POST",
|
|
1046
|
+
headers: _headers,
|
|
1047
|
+
contentType: "application/json",
|
|
1048
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1049
|
+
requestType: "json",
|
|
1050
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1051
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1052
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1053
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1054
|
+
fetchFn: this._options?.fetch,
|
|
1055
|
+
logging: this._options.logging,
|
|
1056
|
+
});
|
|
1057
|
+
if (_response.ok) {
|
|
1058
|
+
return {
|
|
1059
|
+
data: _response.body,
|
|
1060
|
+
rawResponse: _response.rawResponse,
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
if (_response.error.reason === "status-code") {
|
|
1064
|
+
switch (_response.error.statusCode) {
|
|
1065
|
+
case 400:
|
|
1066
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1067
|
+
case 401:
|
|
1068
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1069
|
+
case 403:
|
|
1070
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1071
|
+
case 404:
|
|
1072
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1073
|
+
case 409:
|
|
1074
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1075
|
+
case 422:
|
|
1076
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1077
|
+
case 429:
|
|
1078
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1079
|
+
case 500:
|
|
1080
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1081
|
+
default:
|
|
1082
|
+
throw new errors.NordletApiError({
|
|
1083
|
+
statusCode: _response.error.statusCode,
|
|
1084
|
+
body: _response.error.body,
|
|
1085
|
+
rawResponse: _response.rawResponse,
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/direct-debits/export");
|
|
1090
|
+
}
|
|
646
1091
|
/**
|
|
647
1092
|
* @param {NordletApi.PostV1BankTransactionsSuggestMatchesRequest} request
|
|
648
1093
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -657,20 +1102,389 @@ class BankClient {
|
|
|
657
1102
|
* @throws {@link NordletApi.InternalServerError}
|
|
658
1103
|
*
|
|
659
1104
|
* @example
|
|
660
|
-
* await client.bank.postV1BankTransactionsSuggestMatches({
|
|
661
|
-
* transactionId: "transactionId"
|
|
1105
|
+
* await client.bank.postV1BankTransactionsSuggestMatches({
|
|
1106
|
+
* transactionId: "transactionId"
|
|
1107
|
+
* })
|
|
1108
|
+
*/
|
|
1109
|
+
postV1BankTransactionsSuggestMatches(request, requestOptions) {
|
|
1110
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankTransactionsSuggestMatches(request, requestOptions));
|
|
1111
|
+
}
|
|
1112
|
+
async __postV1BankTransactionsSuggestMatches(request, requestOptions) {
|
|
1113
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1114
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1115
|
+
const _response = await core.fetcher({
|
|
1116
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1117
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1118
|
+
environments.NordletApiEnvironment.Production, "v1/bank/transactions/suggest-matches"),
|
|
1119
|
+
method: "POST",
|
|
1120
|
+
headers: _headers,
|
|
1121
|
+
contentType: "application/json",
|
|
1122
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1123
|
+
requestType: "json",
|
|
1124
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1125
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1126
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1127
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1128
|
+
fetchFn: this._options?.fetch,
|
|
1129
|
+
logging: this._options.logging,
|
|
1130
|
+
});
|
|
1131
|
+
if (_response.ok) {
|
|
1132
|
+
return {
|
|
1133
|
+
data: _response.body,
|
|
1134
|
+
rawResponse: _response.rawResponse,
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
if (_response.error.reason === "status-code") {
|
|
1138
|
+
switch (_response.error.statusCode) {
|
|
1139
|
+
case 400:
|
|
1140
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1141
|
+
case 401:
|
|
1142
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1143
|
+
case 403:
|
|
1144
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1145
|
+
case 404:
|
|
1146
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1147
|
+
case 409:
|
|
1148
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1149
|
+
case 422:
|
|
1150
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1151
|
+
case 429:
|
|
1152
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1153
|
+
case 500:
|
|
1154
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1155
|
+
default:
|
|
1156
|
+
throw new errors.NordletApiError({
|
|
1157
|
+
statusCode: _response.error.statusCode,
|
|
1158
|
+
body: _response.error.body,
|
|
1159
|
+
rawResponse: _response.rawResponse,
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/transactions/suggest-matches");
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* @param {NordletApi.PostV1BankSettlementsImportRequest} request
|
|
1167
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1168
|
+
*
|
|
1169
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1170
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1171
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1172
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1173
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1174
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1175
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1176
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1177
|
+
*
|
|
1178
|
+
* @example
|
|
1179
|
+
* await client.bank.postV1BankSettlementsImport({
|
|
1180
|
+
* bankAccountId: "bankAccountId",
|
|
1181
|
+
* content: "content"
|
|
1182
|
+
* })
|
|
1183
|
+
*/
|
|
1184
|
+
postV1BankSettlementsImport(request, requestOptions) {
|
|
1185
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankSettlementsImport(request, requestOptions));
|
|
1186
|
+
}
|
|
1187
|
+
async __postV1BankSettlementsImport(request, requestOptions) {
|
|
1188
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1189
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1190
|
+
const _response = await core.fetcher({
|
|
1191
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1192
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1193
|
+
environments.NordletApiEnvironment.Production, "v1/bank/settlements/import"),
|
|
1194
|
+
method: "POST",
|
|
1195
|
+
headers: _headers,
|
|
1196
|
+
contentType: "application/json",
|
|
1197
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1198
|
+
requestType: "json",
|
|
1199
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1200
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1201
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1202
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1203
|
+
fetchFn: this._options?.fetch,
|
|
1204
|
+
logging: this._options.logging,
|
|
1205
|
+
});
|
|
1206
|
+
if (_response.ok) {
|
|
1207
|
+
return {
|
|
1208
|
+
data: _response.body,
|
|
1209
|
+
rawResponse: _response.rawResponse,
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
if (_response.error.reason === "status-code") {
|
|
1213
|
+
switch (_response.error.statusCode) {
|
|
1214
|
+
case 400:
|
|
1215
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1216
|
+
case 401:
|
|
1217
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1218
|
+
case 403:
|
|
1219
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1220
|
+
case 404:
|
|
1221
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1222
|
+
case 409:
|
|
1223
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1224
|
+
case 422:
|
|
1225
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1226
|
+
case 429:
|
|
1227
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1228
|
+
case 500:
|
|
1229
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1230
|
+
default:
|
|
1231
|
+
throw new errors.NordletApiError({
|
|
1232
|
+
statusCode: _response.error.statusCode,
|
|
1233
|
+
body: _response.error.body,
|
|
1234
|
+
rawResponse: _response.rawResponse,
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/settlements/import");
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* @param {NordletApi.PostV1BankSettlementsListRequest} request
|
|
1242
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1243
|
+
*
|
|
1244
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1245
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1246
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1247
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1248
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1249
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1250
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1251
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1252
|
+
*
|
|
1253
|
+
* @example
|
|
1254
|
+
* await client.bank.postV1BankSettlementsList()
|
|
1255
|
+
*/
|
|
1256
|
+
postV1BankSettlementsList(request = {}, requestOptions) {
|
|
1257
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankSettlementsList(request, requestOptions));
|
|
1258
|
+
}
|
|
1259
|
+
async __postV1BankSettlementsList(request = {}, requestOptions) {
|
|
1260
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1261
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1262
|
+
const _response = await core.fetcher({
|
|
1263
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1264
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1265
|
+
environments.NordletApiEnvironment.Production, "v1/bank/settlements/list"),
|
|
1266
|
+
method: "POST",
|
|
1267
|
+
headers: _headers,
|
|
1268
|
+
contentType: "application/json",
|
|
1269
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1270
|
+
requestType: "json",
|
|
1271
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1272
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1273
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1274
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1275
|
+
fetchFn: this._options?.fetch,
|
|
1276
|
+
logging: this._options.logging,
|
|
1277
|
+
});
|
|
1278
|
+
if (_response.ok) {
|
|
1279
|
+
return {
|
|
1280
|
+
data: _response.body,
|
|
1281
|
+
rawResponse: _response.rawResponse,
|
|
1282
|
+
};
|
|
1283
|
+
}
|
|
1284
|
+
if (_response.error.reason === "status-code") {
|
|
1285
|
+
switch (_response.error.statusCode) {
|
|
1286
|
+
case 400:
|
|
1287
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1288
|
+
case 401:
|
|
1289
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1290
|
+
case 403:
|
|
1291
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1292
|
+
case 404:
|
|
1293
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1294
|
+
case 409:
|
|
1295
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1296
|
+
case 422:
|
|
1297
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1298
|
+
case 429:
|
|
1299
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1300
|
+
case 500:
|
|
1301
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1302
|
+
default:
|
|
1303
|
+
throw new errors.NordletApiError({
|
|
1304
|
+
statusCode: _response.error.statusCode,
|
|
1305
|
+
body: _response.error.body,
|
|
1306
|
+
rawResponse: _response.rawResponse,
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/settlements/list");
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* @param {NordletApi.PostV1BankSettlementsGetRequest} request
|
|
1314
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1315
|
+
*
|
|
1316
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1317
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1318
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1319
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1320
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1321
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1322
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1323
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1324
|
+
*
|
|
1325
|
+
* @example
|
|
1326
|
+
* await client.bank.postV1BankSettlementsGet({
|
|
1327
|
+
* id: "id"
|
|
1328
|
+
* })
|
|
1329
|
+
*/
|
|
1330
|
+
postV1BankSettlementsGet(request, requestOptions) {
|
|
1331
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankSettlementsGet(request, requestOptions));
|
|
1332
|
+
}
|
|
1333
|
+
async __postV1BankSettlementsGet(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/bank/settlements/get"),
|
|
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/bank/settlements/get");
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* @param {NordletApi.PostV1BankSettlementsMatchRequest} request
|
|
1388
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1389
|
+
*
|
|
1390
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1391
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1392
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1393
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1394
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1395
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1396
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1397
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1398
|
+
*
|
|
1399
|
+
* @example
|
|
1400
|
+
* await client.bank.postV1BankSettlementsMatch({
|
|
1401
|
+
* lineId: "lineId"
|
|
1402
|
+
* })
|
|
1403
|
+
*/
|
|
1404
|
+
postV1BankSettlementsMatch(request, requestOptions) {
|
|
1405
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankSettlementsMatch(request, requestOptions));
|
|
1406
|
+
}
|
|
1407
|
+
async __postV1BankSettlementsMatch(request, requestOptions) {
|
|
1408
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1409
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1410
|
+
const _response = await core.fetcher({
|
|
1411
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1412
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1413
|
+
environments.NordletApiEnvironment.Production, "v1/bank/settlements/match"),
|
|
1414
|
+
method: "POST",
|
|
1415
|
+
headers: _headers,
|
|
1416
|
+
contentType: "application/json",
|
|
1417
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1418
|
+
requestType: "json",
|
|
1419
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1420
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1421
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1422
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1423
|
+
fetchFn: this._options?.fetch,
|
|
1424
|
+
logging: this._options.logging,
|
|
1425
|
+
});
|
|
1426
|
+
if (_response.ok) {
|
|
1427
|
+
return {
|
|
1428
|
+
data: _response.body,
|
|
1429
|
+
rawResponse: _response.rawResponse,
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
if (_response.error.reason === "status-code") {
|
|
1433
|
+
switch (_response.error.statusCode) {
|
|
1434
|
+
case 400:
|
|
1435
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1436
|
+
case 401:
|
|
1437
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1438
|
+
case 403:
|
|
1439
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1440
|
+
case 404:
|
|
1441
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1442
|
+
case 409:
|
|
1443
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1444
|
+
case 422:
|
|
1445
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1446
|
+
case 429:
|
|
1447
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1448
|
+
case 500:
|
|
1449
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1450
|
+
default:
|
|
1451
|
+
throw new errors.NordletApiError({
|
|
1452
|
+
statusCode: _response.error.statusCode,
|
|
1453
|
+
body: _response.error.body,
|
|
1454
|
+
rawResponse: _response.rawResponse,
|
|
1455
|
+
});
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/settlements/match");
|
|
1459
|
+
}
|
|
1460
|
+
/**
|
|
1461
|
+
* @param {NordletApi.PostV1BankSettlementsPostRequest} request
|
|
1462
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1463
|
+
*
|
|
1464
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1465
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1466
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1467
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1468
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1469
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1470
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1471
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1472
|
+
*
|
|
1473
|
+
* @example
|
|
1474
|
+
* await client.bank.postV1BankSettlementsPost({
|
|
1475
|
+
* id: "id"
|
|
662
1476
|
* })
|
|
663
1477
|
*/
|
|
664
|
-
|
|
665
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1478
|
+
postV1BankSettlementsPost(request, requestOptions) {
|
|
1479
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankSettlementsPost(request, requestOptions));
|
|
666
1480
|
}
|
|
667
|
-
async
|
|
1481
|
+
async __postV1BankSettlementsPost(request, requestOptions) {
|
|
668
1482
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
669
1483
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
670
1484
|
const _response = await core.fetcher({
|
|
671
1485
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
672
1486
|
(await core.Supplier.get(this._options.environment)) ??
|
|
673
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
1487
|
+
environments.NordletApiEnvironment.Production, "v1/bank/settlements/post"),
|
|
674
1488
|
method: "POST",
|
|
675
1489
|
headers: _headers,
|
|
676
1490
|
contentType: "application/json",
|
|
@@ -715,10 +1529,10 @@ class BankClient {
|
|
|
715
1529
|
});
|
|
716
1530
|
}
|
|
717
1531
|
}
|
|
718
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
1532
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/settlements/post");
|
|
719
1533
|
}
|
|
720
1534
|
/**
|
|
721
|
-
* @param {NordletApi.
|
|
1535
|
+
* @param {NordletApi.PostV1BankFeedsBanksListRequest} request
|
|
722
1536
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
723
1537
|
*
|
|
724
1538
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -731,21 +1545,93 @@ class BankClient {
|
|
|
731
1545
|
* @throws {@link NordletApi.InternalServerError}
|
|
732
1546
|
*
|
|
733
1547
|
* @example
|
|
734
|
-
* await client.bank.
|
|
735
|
-
|
|
736
|
-
|
|
1548
|
+
* await client.bank.listThePsd2BanksAspsPsAvailableToConnect()
|
|
1549
|
+
*/
|
|
1550
|
+
listThePsd2BanksAspsPsAvailableToConnect(request = {}, requestOptions) {
|
|
1551
|
+
return core.HttpResponsePromise.fromPromise(this.__listThePsd2BanksAspsPsAvailableToConnect(request, requestOptions));
|
|
1552
|
+
}
|
|
1553
|
+
async __listThePsd2BanksAspsPsAvailableToConnect(request = {}, requestOptions) {
|
|
1554
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1555
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1556
|
+
const _response = await core.fetcher({
|
|
1557
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1558
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1559
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/banks/list"),
|
|
1560
|
+
method: "POST",
|
|
1561
|
+
headers: _headers,
|
|
1562
|
+
contentType: "application/json",
|
|
1563
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1564
|
+
requestType: "json",
|
|
1565
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1566
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1567
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1568
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1569
|
+
fetchFn: this._options?.fetch,
|
|
1570
|
+
logging: this._options.logging,
|
|
1571
|
+
});
|
|
1572
|
+
if (_response.ok) {
|
|
1573
|
+
return {
|
|
1574
|
+
data: _response.body,
|
|
1575
|
+
rawResponse: _response.rawResponse,
|
|
1576
|
+
};
|
|
1577
|
+
}
|
|
1578
|
+
if (_response.error.reason === "status-code") {
|
|
1579
|
+
switch (_response.error.statusCode) {
|
|
1580
|
+
case 400:
|
|
1581
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1582
|
+
case 401:
|
|
1583
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1584
|
+
case 403:
|
|
1585
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1586
|
+
case 404:
|
|
1587
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1588
|
+
case 409:
|
|
1589
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1590
|
+
case 422:
|
|
1591
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1592
|
+
case 429:
|
|
1593
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1594
|
+
case 500:
|
|
1595
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1596
|
+
default:
|
|
1597
|
+
throw new errors.NordletApiError({
|
|
1598
|
+
statusCode: _response.error.statusCode,
|
|
1599
|
+
body: _response.error.body,
|
|
1600
|
+
rawResponse: _response.rawResponse,
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/banks/list");
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* @param {NordletApi.PostV1BankFeedsConnectionsStartRequest} request
|
|
1608
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1609
|
+
*
|
|
1610
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1611
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1612
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1613
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1614
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1615
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1616
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1617
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1618
|
+
*
|
|
1619
|
+
* @example
|
|
1620
|
+
* await client.bank.beginBankAuthorizationRedirectTheUserToTheReturnedUrl({
|
|
1621
|
+
* aspspName: "aspspName",
|
|
1622
|
+
* aspspCountry: "aspspCountry"
|
|
737
1623
|
* })
|
|
738
1624
|
*/
|
|
739
|
-
|
|
740
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1625
|
+
beginBankAuthorizationRedirectTheUserToTheReturnedUrl(request, requestOptions) {
|
|
1626
|
+
return core.HttpResponsePromise.fromPromise(this.__beginBankAuthorizationRedirectTheUserToTheReturnedUrl(request, requestOptions));
|
|
741
1627
|
}
|
|
742
|
-
async
|
|
1628
|
+
async __beginBankAuthorizationRedirectTheUserToTheReturnedUrl(request, requestOptions) {
|
|
743
1629
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
744
1630
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
745
1631
|
const _response = await core.fetcher({
|
|
746
1632
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
747
1633
|
(await core.Supplier.get(this._options.environment)) ??
|
|
748
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
1634
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/connections/start"),
|
|
749
1635
|
method: "POST",
|
|
750
1636
|
headers: _headers,
|
|
751
1637
|
contentType: "application/json",
|
|
@@ -790,10 +1676,10 @@ class BankClient {
|
|
|
790
1676
|
});
|
|
791
1677
|
}
|
|
792
1678
|
}
|
|
793
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
1679
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/connections/start");
|
|
794
1680
|
}
|
|
795
1681
|
/**
|
|
796
|
-
* @param {NordletApi.
|
|
1682
|
+
* @param {NordletApi.PostV1BankFeedsConnectionsCompleteRequest} request
|
|
797
1683
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
798
1684
|
*
|
|
799
1685
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -806,18 +1692,21 @@ class BankClient {
|
|
|
806
1692
|
* @throws {@link NordletApi.InternalServerError}
|
|
807
1693
|
*
|
|
808
1694
|
* @example
|
|
809
|
-
* await client.bank.
|
|
1695
|
+
* await client.bank.exchangeTheRedirectCodeForASessionAndStoreTheBankAccountsItExposes({
|
|
1696
|
+
* reference: "reference",
|
|
1697
|
+
* code: "code"
|
|
1698
|
+
* })
|
|
810
1699
|
*/
|
|
811
|
-
|
|
812
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1700
|
+
exchangeTheRedirectCodeForASessionAndStoreTheBankAccountsItExposes(request, requestOptions) {
|
|
1701
|
+
return core.HttpResponsePromise.fromPromise(this.__exchangeTheRedirectCodeForASessionAndStoreTheBankAccountsItExposes(request, requestOptions));
|
|
813
1702
|
}
|
|
814
|
-
async
|
|
1703
|
+
async __exchangeTheRedirectCodeForASessionAndStoreTheBankAccountsItExposes(request, requestOptions) {
|
|
815
1704
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
816
1705
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
817
1706
|
const _response = await core.fetcher({
|
|
818
1707
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
819
1708
|
(await core.Supplier.get(this._options.environment)) ??
|
|
820
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
1709
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/connections/complete"),
|
|
821
1710
|
method: "POST",
|
|
822
1711
|
headers: _headers,
|
|
823
1712
|
contentType: "application/json",
|
|
@@ -862,10 +1751,10 @@ class BankClient {
|
|
|
862
1751
|
});
|
|
863
1752
|
}
|
|
864
1753
|
}
|
|
865
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
1754
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/connections/complete");
|
|
866
1755
|
}
|
|
867
1756
|
/**
|
|
868
|
-
* @param {NordletApi.
|
|
1757
|
+
* @param {NordletApi.PostV1BankFeedsConnectionsGetRequest} request
|
|
869
1758
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
870
1759
|
*
|
|
871
1760
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -878,20 +1767,20 @@ class BankClient {
|
|
|
878
1767
|
* @throws {@link NordletApi.InternalServerError}
|
|
879
1768
|
*
|
|
880
1769
|
* @example
|
|
881
|
-
* await client.bank.
|
|
1770
|
+
* await client.bank.postV1BankFeedsConnectionsGet({
|
|
882
1771
|
* id: "id"
|
|
883
1772
|
* })
|
|
884
1773
|
*/
|
|
885
|
-
|
|
886
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1774
|
+
postV1BankFeedsConnectionsGet(request, requestOptions) {
|
|
1775
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankFeedsConnectionsGet(request, requestOptions));
|
|
887
1776
|
}
|
|
888
|
-
async
|
|
1777
|
+
async __postV1BankFeedsConnectionsGet(request, requestOptions) {
|
|
889
1778
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
890
1779
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
891
1780
|
const _response = await core.fetcher({
|
|
892
1781
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
893
1782
|
(await core.Supplier.get(this._options.environment)) ??
|
|
894
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
1783
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/connections/get"),
|
|
895
1784
|
method: "POST",
|
|
896
1785
|
headers: _headers,
|
|
897
1786
|
contentType: "application/json",
|
|
@@ -936,10 +1825,10 @@ class BankClient {
|
|
|
936
1825
|
});
|
|
937
1826
|
}
|
|
938
1827
|
}
|
|
939
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
1828
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/connections/get");
|
|
940
1829
|
}
|
|
941
1830
|
/**
|
|
942
|
-
* @param {NordletApi.
|
|
1831
|
+
* @param {NordletApi.PostV1BankFeedsConnectionsListRequest} request
|
|
943
1832
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
944
1833
|
*
|
|
945
1834
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -952,20 +1841,92 @@ class BankClient {
|
|
|
952
1841
|
* @throws {@link NordletApi.InternalServerError}
|
|
953
1842
|
*
|
|
954
1843
|
* @example
|
|
955
|
-
* await client.bank.
|
|
956
|
-
|
|
1844
|
+
* await client.bank.postV1BankFeedsConnectionsList()
|
|
1845
|
+
*/
|
|
1846
|
+
postV1BankFeedsConnectionsList(request = {}, requestOptions) {
|
|
1847
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1BankFeedsConnectionsList(request, requestOptions));
|
|
1848
|
+
}
|
|
1849
|
+
async __postV1BankFeedsConnectionsList(request = {}, requestOptions) {
|
|
1850
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1851
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1852
|
+
const _response = await core.fetcher({
|
|
1853
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1854
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1855
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/connections/list"),
|
|
1856
|
+
method: "POST",
|
|
1857
|
+
headers: _headers,
|
|
1858
|
+
contentType: "application/json",
|
|
1859
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1860
|
+
requestType: "json",
|
|
1861
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1862
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1863
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1864
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1865
|
+
fetchFn: this._options?.fetch,
|
|
1866
|
+
logging: this._options.logging,
|
|
1867
|
+
});
|
|
1868
|
+
if (_response.ok) {
|
|
1869
|
+
return {
|
|
1870
|
+
data: _response.body,
|
|
1871
|
+
rawResponse: _response.rawResponse,
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
if (_response.error.reason === "status-code") {
|
|
1875
|
+
switch (_response.error.statusCode) {
|
|
1876
|
+
case 400:
|
|
1877
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1878
|
+
case 401:
|
|
1879
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1880
|
+
case 403:
|
|
1881
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1882
|
+
case 404:
|
|
1883
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1884
|
+
case 409:
|
|
1885
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1886
|
+
case 422:
|
|
1887
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1888
|
+
case 429:
|
|
1889
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1890
|
+
case 500:
|
|
1891
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1892
|
+
default:
|
|
1893
|
+
throw new errors.NordletApiError({
|
|
1894
|
+
statusCode: _response.error.statusCode,
|
|
1895
|
+
body: _response.error.body,
|
|
1896
|
+
rawResponse: _response.rawResponse,
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/connections/list");
|
|
1901
|
+
}
|
|
1902
|
+
/**
|
|
1903
|
+
* @param {NordletApi.PostV1BankFeedsConnectionsDeleteRequest} request
|
|
1904
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1905
|
+
*
|
|
1906
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1907
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1908
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1909
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1910
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1911
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1912
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1913
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1914
|
+
*
|
|
1915
|
+
* @example
|
|
1916
|
+
* await client.bank.revokeTheConsentAtTheBankAndDropTheStoredConnection({
|
|
1917
|
+
* id: "id"
|
|
957
1918
|
* })
|
|
958
1919
|
*/
|
|
959
|
-
|
|
960
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1920
|
+
revokeTheConsentAtTheBankAndDropTheStoredConnection(request, requestOptions) {
|
|
1921
|
+
return core.HttpResponsePromise.fromPromise(this.__revokeTheConsentAtTheBankAndDropTheStoredConnection(request, requestOptions));
|
|
961
1922
|
}
|
|
962
|
-
async
|
|
1923
|
+
async __revokeTheConsentAtTheBankAndDropTheStoredConnection(request, requestOptions) {
|
|
963
1924
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
964
1925
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
965
1926
|
const _response = await core.fetcher({
|
|
966
1927
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
967
1928
|
(await core.Supplier.get(this._options.environment)) ??
|
|
968
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
1929
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/connections/delete"),
|
|
969
1930
|
method: "POST",
|
|
970
1931
|
headers: _headers,
|
|
971
1932
|
contentType: "application/json",
|
|
@@ -1010,10 +1971,10 @@ class BankClient {
|
|
|
1010
1971
|
});
|
|
1011
1972
|
}
|
|
1012
1973
|
}
|
|
1013
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
1974
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/connections/delete");
|
|
1014
1975
|
}
|
|
1015
1976
|
/**
|
|
1016
|
-
* @param {NordletApi.
|
|
1977
|
+
* @param {NordletApi.PostV1BankFeedsAccountsLinkRequest} request
|
|
1017
1978
|
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1018
1979
|
*
|
|
1019
1980
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -1026,20 +1987,20 @@ class BankClient {
|
|
|
1026
1987
|
* @throws {@link NordletApi.InternalServerError}
|
|
1027
1988
|
*
|
|
1028
1989
|
* @example
|
|
1029
|
-
* await client.bank.
|
|
1990
|
+
* await client.bank.pointABankFeedAccountAtALedgerBankAccountSoItsTransactionsCanBeSynced({
|
|
1030
1991
|
* id: "id"
|
|
1031
1992
|
* })
|
|
1032
1993
|
*/
|
|
1033
|
-
|
|
1034
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
1994
|
+
pointABankFeedAccountAtALedgerBankAccountSoItsTransactionsCanBeSynced(request, requestOptions) {
|
|
1995
|
+
return core.HttpResponsePromise.fromPromise(this.__pointABankFeedAccountAtALedgerBankAccountSoItsTransactionsCanBeSynced(request, requestOptions));
|
|
1035
1996
|
}
|
|
1036
|
-
async
|
|
1997
|
+
async __pointABankFeedAccountAtALedgerBankAccountSoItsTransactionsCanBeSynced(request, requestOptions) {
|
|
1037
1998
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1038
1999
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1039
2000
|
const _response = await core.fetcher({
|
|
1040
2001
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1041
2002
|
(await core.Supplier.get(this._options.environment)) ??
|
|
1042
|
-
environments.NordletApiEnvironment.Production, "v1/bank/
|
|
2003
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/accounts/link"),
|
|
1043
2004
|
method: "POST",
|
|
1044
2005
|
headers: _headers,
|
|
1045
2006
|
contentType: "application/json",
|
|
@@ -1084,7 +2045,81 @@ class BankClient {
|
|
|
1084
2045
|
});
|
|
1085
2046
|
}
|
|
1086
2047
|
}
|
|
1087
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/
|
|
2048
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/accounts/link");
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* @param {NordletApi.PostV1BankFeedsSyncRequest} request
|
|
2052
|
+
* @param {BankClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2053
|
+
*
|
|
2054
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
2055
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
2056
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
2057
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
2058
|
+
* @throws {@link NordletApi.ConflictError}
|
|
2059
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
2060
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
2061
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
2062
|
+
*
|
|
2063
|
+
* @example
|
|
2064
|
+
* await client.bank.pullNewTransactionsFromTheBankIntoTheLedgerEmitsBankFeedSynced({
|
|
2065
|
+
* connectionId: "connectionId"
|
|
2066
|
+
* })
|
|
2067
|
+
*/
|
|
2068
|
+
pullNewTransactionsFromTheBankIntoTheLedgerEmitsBankFeedSynced(request, requestOptions) {
|
|
2069
|
+
return core.HttpResponsePromise.fromPromise(this.__pullNewTransactionsFromTheBankIntoTheLedgerEmitsBankFeedSynced(request, requestOptions));
|
|
2070
|
+
}
|
|
2071
|
+
async __pullNewTransactionsFromTheBankIntoTheLedgerEmitsBankFeedSynced(request, requestOptions) {
|
|
2072
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
2073
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
2074
|
+
const _response = await core.fetcher({
|
|
2075
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
2076
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
2077
|
+
environments.NordletApiEnvironment.Production, "v1/bank/feeds/sync"),
|
|
2078
|
+
method: "POST",
|
|
2079
|
+
headers: _headers,
|
|
2080
|
+
contentType: "application/json",
|
|
2081
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
2082
|
+
requestType: "json",
|
|
2083
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
2084
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
2085
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
2086
|
+
abortSignal: requestOptions?.abortSignal,
|
|
2087
|
+
fetchFn: this._options?.fetch,
|
|
2088
|
+
logging: this._options.logging,
|
|
2089
|
+
});
|
|
2090
|
+
if (_response.ok) {
|
|
2091
|
+
return {
|
|
2092
|
+
data: _response.body,
|
|
2093
|
+
rawResponse: _response.rawResponse,
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
if (_response.error.reason === "status-code") {
|
|
2097
|
+
switch (_response.error.statusCode) {
|
|
2098
|
+
case 400:
|
|
2099
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
2100
|
+
case 401:
|
|
2101
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
2102
|
+
case 403:
|
|
2103
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
2104
|
+
case 404:
|
|
2105
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
2106
|
+
case 409:
|
|
2107
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
2108
|
+
case 422:
|
|
2109
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2110
|
+
case 429:
|
|
2111
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
2112
|
+
case 500:
|
|
2113
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
2114
|
+
default:
|
|
2115
|
+
throw new errors.NordletApiError({
|
|
2116
|
+
statusCode: _response.error.statusCode,
|
|
2117
|
+
body: _response.error.body,
|
|
2118
|
+
rawResponse: _response.rawResponse,
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/bank/feeds/sync");
|
|
1088
2123
|
}
|
|
1089
2124
|
}
|
|
1090
2125
|
exports.BankClient = BankClient;
|