nordlet 0.3.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Client.d.ts +6 -0
- package/dist/Client.js +28 -20
- package/dist/api/resources/account/types/MeAccountResponse.d.ts +3 -0
- package/dist/api/resources/bank/client/Client.d.ts +65 -0
- package/dist/api/resources/bank/client/Client.js +236 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +9 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +9 -0
- package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/SecuritiesGetBankRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/SecuritiesImportBankRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.d.ts +48 -0
- package/dist/api/resources/bank/client/requests/SecuritiesListBankRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsMatchManyBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.d.ts +1 -0
- package/dist/api/resources/bank/client/requests/TransactionsRecordBankRequest.js +1 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +5 -2
- package/dist/api/resources/bank/client/requests/index.js +7 -1
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +9 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.js +15 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +9 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +9 -0
- package/dist/api/resources/bank/types/SecuritiesGetBankResponse.d.ts +50 -0
- package/dist/api/resources/bank/types/SecuritiesGetBankResponse.js +17 -0
- package/dist/api/resources/bank/types/SecuritiesImportBankResponse.d.ts +14 -0
- package/dist/api/resources/bank/types/SecuritiesImportBankResponse.js +3 -0
- package/dist/api/resources/bank/types/SecuritiesListBankResponse.d.ts +28 -0
- package/dist/api/resources/bank/types/SecuritiesListBankResponse.js +3 -0
- package/dist/api/resources/bank/types/SettlementsCommissionBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsGetBankResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/SettlementsImportBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsLinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsListBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/SettlementsMatchBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsPostBankResponse.d.ts +4 -0
- package/dist/api/resources/bank/types/SettlementsUnlinkBankResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.d.ts +1 -0
- package/dist/api/resources/bank/types/TransactionsSuggestMatchesBankResponse.js +1 -0
- package/dist/api/resources/bank/types/index.d.ts +3 -0
- package/dist/api/resources/bank/types/index.js +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +131 -0
- package/dist/api/resources/billing/client/Client.js +479 -0
- package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.d.ts +16 -0
- package/dist/api/resources/billing/client/requests/AccountSetAccountTypeBillingRequest.js +11 -0
- package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.d.ts +11 -0
- package/dist/api/resources/billing/client/requests/AccountSetAutoTopUpBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/AccountSetOverdraftCapBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/FlatRateConfirmBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/FlatRateCreateBillingRequest.js +17 -0
- package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.d.ts +9 -0
- package/dist/api/resources/billing/client/requests/TopupConfirmBillingRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.d.ts +6 -0
- package/dist/api/resources/billing/client/requests/TopupCreateBillingRequest.js +4 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +6 -0
- package/dist/api/resources/billing/client/requests/index.js +5 -1
- package/dist/api/resources/billing/types/AccountGetBillingResponse.d.ts +18 -2
- package/dist/api/resources/billing/types/AccountGetBillingResponse.js +4 -0
- package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetAccountTypeBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetAutoTopUpBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/AccountSetOverdraftCapBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.d.ts +18 -2
- package/dist/api/resources/billing/types/AccountSetPlanBillingResponse.js +4 -0
- package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/FlatRateConfirmBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.d.ts +4 -0
- package/dist/api/resources/billing/types/FlatRateCreateBillingResponse.js +3 -0
- package/dist/api/resources/billing/types/TopupConfirmBillingResponse.d.ts +70 -0
- package/dist/api/resources/billing/types/TopupConfirmBillingResponse.js +21 -0
- package/dist/api/resources/billing/types/UsageListBillingResponse.d.ts +1 -0
- package/dist/api/resources/billing/types/UsageListBillingResponse.js +1 -0
- package/dist/api/resources/billing/types/index.d.ts +6 -0
- package/dist/api/resources/billing/types/index.js +6 -0
- package/dist/api/resources/capture/client/Client.d.ts +2 -0
- package/dist/api/resources/capture/client/Client.js +2 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.d.ts +29 -0
- package/dist/api/resources/capture/client/requests/DocumentsConfirmCaptureRequest.js +8 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +1 -1
- package/dist/api/resources/capture/client/requests/index.js +3 -1
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.d.ts +93 -0
- package/dist/api/resources/capture/types/DocumentsConfirmCaptureResponse.js +23 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsExtractCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsGetCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsListCaptureResponse.js +7 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.d.ts +21 -0
- package/dist/api/resources/capture/types/DocumentsUploadCaptureResponse.js +7 -0
- package/dist/api/resources/declarations/client/Client.d.ts +93 -1
- package/dist/api/resources/declarations/client/Client.js +325 -1
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7PreviewDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.d.ts +9 -0
- package/dist/api/resources/declarations/client/requests/EuDac7XmlDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuDigitalReportingListDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.d.ts +11 -0
- package/dist/api/resources/declarations/client/requests/EuOwnGoodsTransfersComputeDeclarationsRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.d.ts +25 -0
- package/dist/api/resources/declarations/types/EuDac7PreviewDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.d.ts +6 -0
- package/dist/api/resources/declarations/types/EuDac7XmlDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.d.ts +67 -0
- package/dist/api/resources/declarations/types/EuDigitalReportingListDeclarationsResponse.js +27 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.d.ts +38 -0
- package/dist/api/resources/declarations/types/EuOwnGoodsTransfersComputeDeclarationsResponse.js +3 -0
- package/dist/api/resources/declarations/types/index.d.ts +4 -0
- package/dist/api/resources/declarations/types/index.js +4 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/inventory/client/Client.d.ts +22 -0
- package/dist/api/resources/inventory/client/Client.js +80 -0
- package/dist/api/resources/inventory/client/requests/WarehousesCreateInventoryRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/WarehousesUpdateInventoryRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/LandedCostsGetInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesCreateInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesListInventoryResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.d.ts +8 -0
- package/dist/api/resources/inventory/types/WarehousesUpdateInventoryResponse.js +3 -0
- package/dist/api/resources/inventory/types/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.js +1 -0
- package/dist/api/resources/ledger/client/requests/JournalTransactionsCreateLedgerRequest.d.ts +1 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.d.ts +8 -0
- package/dist/api/resources/ledger/client/requests/PostingRulesUpdateLedgerRequest.js +8 -0
- package/dist/api/resources/partners/client/requests/CreatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/client/requests/FindOrCreatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/client/requests/UpdatePartnersRequest.d.ts +0 -2
- package/dist/api/resources/partners/types/CreatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/FindOrCreatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/GetPartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +0 -2
- package/dist/api/resources/partners/types/UpdatePartnersResponse.d.ts +0 -2
- package/dist/api/resources/payroll/types/RunsApprovePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsCreatePayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsGetPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsListPayrollResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/RunsReversePayrollResponse.d.ts +1 -0
- package/dist/api/resources/peppol/client/Client.d.ts +58 -0
- package/dist/api/resources/peppol/client/Client.js +207 -0
- package/dist/api/resources/peppol/client/index.d.ts +1 -0
- package/dist/api/resources/peppol/client/index.js +17 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.d.ts +8 -0
- package/dist/api/resources/peppol/client/requests/ParticipantsLookupPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.d.ts +12 -0
- package/dist/api/resources/peppol/client/requests/WebhooksPeppolRequest.js +3 -0
- package/dist/api/resources/peppol/client/requests/index.d.ts +2 -0
- package/dist/api/resources/peppol/client/requests/index.js +2 -0
- package/dist/api/resources/peppol/exports.d.ts +2 -0
- package/dist/api/resources/peppol/exports.js +21 -0
- package/dist/api/resources/peppol/index.d.ts +2 -0
- package/dist/api/resources/peppol/index.js +18 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.d.ts +9 -0
- package/dist/api/resources/peppol/types/ParticipantsLookupPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.d.ts +6 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolRequestProvider.js +9 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.d.ts +3 -0
- package/dist/api/resources/peppol/types/WebhooksPeppolResponse.js +3 -0
- package/dist/api/resources/peppol/types/index.d.ts +3 -0
- package/dist/api/resources/peppol/types/index.js +19 -0
- package/dist/api/resources/platformSellers/client/Client.d.ts +130 -0
- package/dist/api/resources/platformSellers/client/Client.js +458 -0
- package/dist/api/resources/platformSellers/client/index.d.ts +1 -0
- package/dist/api/resources/platformSellers/client/index.js +17 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.d.ts +98 -0
- package/dist/api/resources/platformSellers/client/requests/CreatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/DeletePlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.d.ts +9 -0
- package/dist/api/resources/platformSellers/client/requests/GetPlatformSellersRequest.js +3 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.d.ts +48 -0
- package/dist/api/resources/platformSellers/client/requests/ListPlatformSellersRequest.js +31 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.d.ts +100 -0
- package/dist/api/resources/platformSellers/client/requests/UpdatePlatformSellersRequest.js +35 -0
- package/dist/api/resources/platformSellers/client/requests/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/client/requests/index.js +9 -0
- package/dist/api/resources/platformSellers/exports.d.ts +2 -0
- package/dist/api/resources/platformSellers/exports.js +21 -0
- package/dist/api/resources/platformSellers/index.d.ts +2 -0
- package/dist/api/resources/platformSellers/index.js +18 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/CreatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.d.ts +4 -0
- package/dist/api/resources/platformSellers/types/DeletePlatformSellersResponse.js +3 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/GetPlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.d.ts +59 -0
- package/dist/api/resources/platformSellers/types/ListPlatformSellersResponse.js +17 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.d.ts +93 -0
- package/dist/api/resources/platformSellers/types/UpdatePlatformSellersResponse.js +35 -0
- package/dist/api/resources/platformSellers/types/index.d.ts +5 -0
- package/dist/api/resources/platformSellers/types/index.js +21 -0
- package/dist/api/resources/purchases/client/requests/InvoicesRegisterPurchasesRequest.d.ts +1 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.d.ts +16 -0
- package/dist/api/resources/reference/client/requests/VatResolveReferenceRequest.js +8 -0
- package/dist/api/resources/reports/types/OnlineSalesReportsResponse.d.ts +1 -0
- package/dist/api/resources/sales/client/Client.d.ts +134 -0
- package/dist/api/resources/sales/client/Client.js +482 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.d.ts +70 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesCreateSalesRequest.js +27 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesDeleteSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesGetSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.d.ts +48 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesListSalesRequest.js +31 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.d.ts +71 -0
- package/dist/api/resources/sales/client/requests/InvoiceTemplatesUpdateSalesRequest.js +27 -0
- package/dist/api/resources/sales/client/requests/InvoicesApplyAdvanceSalesRequest.d.ts +2 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/InvoicesPeppolStatusSalesRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +6 -0
- package/dist/api/resources/sales/client/requests/index.js +7 -1
- package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesCreateSalesResponse.js +16 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.d.ts +3 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesDeleteSalesResponse.js +3 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesGetSalesResponse.js +16 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.d.ts +69 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesListSalesResponse.js +22 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.d.ts +55 -0
- package/dist/api/resources/sales/types/InvoiceTemplatesUpdateSalesResponse.js +16 -0
- package/dist/api/resources/sales/types/InvoicesApplyAdvanceSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesCreateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesGetSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesIssueSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesListSalesResponse.d.ts +5 -0
- package/dist/api/resources/sales/types/InvoicesLockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.d.ts +11 -0
- package/dist/api/resources/sales/types/InvoicesPeppolSendSalesResponse.js +10 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.d.ts +15 -0
- package/dist/api/resources/sales/types/InvoicesPeppolStatusSalesResponse.js +13 -0
- package/dist/api/resources/sales/types/InvoicesUnlockSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/InvoicesUpdateSalesResponse.d.ts +7 -0
- package/dist/api/resources/sales/types/index.d.ts +6 -0
- package/dist/api/resources/sales/types/index.js +6 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsCreateWebhooksRequest.js +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.d.ts +4 -0
- package/dist/api/resources/webhooks/client/requests/SubscriptionsUpdateWebhooksRequest.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PlatformSellersClient = void 0;
|
|
38
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
+
const requestBody_js_1 = require("../../../../core/requestBody.js");
|
|
42
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
43
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
44
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
45
|
+
const NordletApi = __importStar(require("../../../index.js"));
|
|
46
|
+
class PlatformSellersClient {
|
|
47
|
+
constructor(options) {
|
|
48
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Individuals and entities that sell goods, rent out property or transport, or perform personal services through the platform the company operates. The yearly DAC7 report is built from them.
|
|
52
|
+
*
|
|
53
|
+
* @param {NordletApi.ListPlatformSellersRequest} request
|
|
54
|
+
* @param {PlatformSellersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
57
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
58
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
59
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
60
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
61
|
+
* @throws {@link NordletApi.ConflictError}
|
|
62
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
63
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
64
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
65
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* await client.platformSellers.list()
|
|
69
|
+
*/
|
|
70
|
+
list(request = {}, requestOptions) {
|
|
71
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
72
|
+
}
|
|
73
|
+
async __list(request = {}, requestOptions) {
|
|
74
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
75
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
76
|
+
const _response = await core.fetcher({
|
|
77
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
78
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
79
|
+
environments.NordletApiEnvironment.Production, "v1/platform-sellers/list"),
|
|
80
|
+
method: "POST",
|
|
81
|
+
headers: _headers,
|
|
82
|
+
contentType: "application/json",
|
|
83
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
84
|
+
requestType: "json",
|
|
85
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
86
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
87
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
88
|
+
abortSignal: requestOptions?.abortSignal,
|
|
89
|
+
fetchFn: this._options?.fetch,
|
|
90
|
+
logging: this._options.logging,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (_response.error.reason === "status-code") {
|
|
99
|
+
switch (_response.error.statusCode) {
|
|
100
|
+
case 400:
|
|
101
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
102
|
+
case 401:
|
|
103
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 402:
|
|
105
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
106
|
+
case 403:
|
|
107
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 404:
|
|
109
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
110
|
+
case 409:
|
|
111
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
112
|
+
case 413:
|
|
113
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
114
|
+
case 422:
|
|
115
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
|
+
case 429:
|
|
117
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 500:
|
|
119
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
120
|
+
default:
|
|
121
|
+
throw new errors.NordletApiError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/platform-sellers/list");
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* @param {NordletApi.GetPlatformSellersRequest} request
|
|
132
|
+
* @param {PlatformSellersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
135
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
136
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
137
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
138
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
139
|
+
* @throws {@link NordletApi.ConflictError}
|
|
140
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
141
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
142
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
143
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* await client.platformSellers.get({
|
|
147
|
+
* id: "id"
|
|
148
|
+
* })
|
|
149
|
+
*/
|
|
150
|
+
get(request, requestOptions) {
|
|
151
|
+
return core.HttpResponsePromise.fromPromise(this.__get(request, requestOptions));
|
|
152
|
+
}
|
|
153
|
+
async __get(request, requestOptions) {
|
|
154
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
155
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
156
|
+
const _response = await core.fetcher({
|
|
157
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
158
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
159
|
+
environments.NordletApiEnvironment.Production, "v1/platform-sellers/get"),
|
|
160
|
+
method: "POST",
|
|
161
|
+
headers: _headers,
|
|
162
|
+
contentType: "application/json",
|
|
163
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
164
|
+
requestType: "json",
|
|
165
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
166
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
167
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
168
|
+
abortSignal: requestOptions?.abortSignal,
|
|
169
|
+
fetchFn: this._options?.fetch,
|
|
170
|
+
logging: this._options.logging,
|
|
171
|
+
});
|
|
172
|
+
if (_response.ok) {
|
|
173
|
+
return {
|
|
174
|
+
data: _response.body,
|
|
175
|
+
rawResponse: _response.rawResponse,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
if (_response.error.reason === "status-code") {
|
|
179
|
+
switch (_response.error.statusCode) {
|
|
180
|
+
case 400:
|
|
181
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
182
|
+
case 401:
|
|
183
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 402:
|
|
185
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
186
|
+
case 403:
|
|
187
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
188
|
+
case 404:
|
|
189
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 409:
|
|
191
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
192
|
+
case 413:
|
|
193
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 422:
|
|
195
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
196
|
+
case 429:
|
|
197
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
198
|
+
case 500:
|
|
199
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
200
|
+
default:
|
|
201
|
+
throw new errors.NordletApiError({
|
|
202
|
+
statusCode: _response.error.statusCode,
|
|
203
|
+
body: _response.error.body,
|
|
204
|
+
rawResponse: _response.rawResponse,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/platform-sellers/get");
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @param {NordletApi.CreatePlatformSellersRequest} request
|
|
212
|
+
* @param {PlatformSellersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
213
|
+
*
|
|
214
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
215
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
216
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
217
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
218
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
219
|
+
* @throws {@link NordletApi.ConflictError}
|
|
220
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
221
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
222
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
223
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
224
|
+
*
|
|
225
|
+
* @example
|
|
226
|
+
* await client.platformSellers.create({
|
|
227
|
+
* kind: "individual",
|
|
228
|
+
* address: {
|
|
229
|
+
* countryCode: "countryCode"
|
|
230
|
+
* }
|
|
231
|
+
* })
|
|
232
|
+
*/
|
|
233
|
+
create(request, requestOptions) {
|
|
234
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
235
|
+
}
|
|
236
|
+
async __create(request, requestOptions) {
|
|
237
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
238
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
239
|
+
const _response = await core.fetcher({
|
|
240
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
241
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
242
|
+
environments.NordletApiEnvironment.Production, "v1/platform-sellers/create"),
|
|
243
|
+
method: "POST",
|
|
244
|
+
headers: _headers,
|
|
245
|
+
contentType: "application/json",
|
|
246
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
247
|
+
requestType: "json",
|
|
248
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
249
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
250
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
251
|
+
abortSignal: requestOptions?.abortSignal,
|
|
252
|
+
fetchFn: this._options?.fetch,
|
|
253
|
+
logging: this._options.logging,
|
|
254
|
+
});
|
|
255
|
+
if (_response.ok) {
|
|
256
|
+
return {
|
|
257
|
+
data: _response.body,
|
|
258
|
+
rawResponse: _response.rawResponse,
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
if (_response.error.reason === "status-code") {
|
|
262
|
+
switch (_response.error.statusCode) {
|
|
263
|
+
case 400:
|
|
264
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
265
|
+
case 401:
|
|
266
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
267
|
+
case 402:
|
|
268
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
269
|
+
case 403:
|
|
270
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
271
|
+
case 404:
|
|
272
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
273
|
+
case 409:
|
|
274
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
275
|
+
case 413:
|
|
276
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
277
|
+
case 422:
|
|
278
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
279
|
+
case 429:
|
|
280
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
281
|
+
case 500:
|
|
282
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
283
|
+
default:
|
|
284
|
+
throw new errors.NordletApiError({
|
|
285
|
+
statusCode: _response.error.statusCode,
|
|
286
|
+
body: _response.error.body,
|
|
287
|
+
rawResponse: _response.rawResponse,
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/platform-sellers/create");
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @param {NordletApi.UpdatePlatformSellersRequest} request
|
|
295
|
+
* @param {PlatformSellersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
296
|
+
*
|
|
297
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
298
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
299
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
300
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
301
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
302
|
+
* @throws {@link NordletApi.ConflictError}
|
|
303
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
304
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
305
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
306
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* await client.platformSellers.update({
|
|
310
|
+
* id: "id",
|
|
311
|
+
* kind: "individual",
|
|
312
|
+
* address: {
|
|
313
|
+
* countryCode: "countryCode"
|
|
314
|
+
* }
|
|
315
|
+
* })
|
|
316
|
+
*/
|
|
317
|
+
update(request, requestOptions) {
|
|
318
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
319
|
+
}
|
|
320
|
+
async __update(request, requestOptions) {
|
|
321
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
322
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
323
|
+
const _response = await core.fetcher({
|
|
324
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
325
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
326
|
+
environments.NordletApiEnvironment.Production, "v1/platform-sellers/update"),
|
|
327
|
+
method: "POST",
|
|
328
|
+
headers: _headers,
|
|
329
|
+
contentType: "application/json",
|
|
330
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
331
|
+
requestType: "json",
|
|
332
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
333
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
334
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
335
|
+
abortSignal: requestOptions?.abortSignal,
|
|
336
|
+
fetchFn: this._options?.fetch,
|
|
337
|
+
logging: this._options.logging,
|
|
338
|
+
});
|
|
339
|
+
if (_response.ok) {
|
|
340
|
+
return {
|
|
341
|
+
data: _response.body,
|
|
342
|
+
rawResponse: _response.rawResponse,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
if (_response.error.reason === "status-code") {
|
|
346
|
+
switch (_response.error.statusCode) {
|
|
347
|
+
case 400:
|
|
348
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
349
|
+
case 401:
|
|
350
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
351
|
+
case 402:
|
|
352
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
353
|
+
case 403:
|
|
354
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
355
|
+
case 404:
|
|
356
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
357
|
+
case 409:
|
|
358
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
359
|
+
case 413:
|
|
360
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
361
|
+
case 422:
|
|
362
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
363
|
+
case 429:
|
|
364
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
365
|
+
case 500:
|
|
366
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
367
|
+
default:
|
|
368
|
+
throw new errors.NordletApiError({
|
|
369
|
+
statusCode: _response.error.statusCode,
|
|
370
|
+
body: _response.error.body,
|
|
371
|
+
rawResponse: _response.rawResponse,
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/platform-sellers/update");
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* @param {NordletApi.DeletePlatformSellersRequest} request
|
|
379
|
+
* @param {PlatformSellersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
380
|
+
*
|
|
381
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
382
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
383
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
384
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
385
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
386
|
+
* @throws {@link NordletApi.ConflictError}
|
|
387
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
388
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
389
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
390
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
391
|
+
*
|
|
392
|
+
* @example
|
|
393
|
+
* await client.platformSellers.delete({
|
|
394
|
+
* id: "id"
|
|
395
|
+
* })
|
|
396
|
+
*/
|
|
397
|
+
delete(request, requestOptions) {
|
|
398
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
399
|
+
}
|
|
400
|
+
async __delete(request, requestOptions) {
|
|
401
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
402
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
403
|
+
const _response = await core.fetcher({
|
|
404
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
405
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
406
|
+
environments.NordletApiEnvironment.Production, "v1/platform-sellers/delete"),
|
|
407
|
+
method: "POST",
|
|
408
|
+
headers: _headers,
|
|
409
|
+
contentType: "application/json",
|
|
410
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
411
|
+
requestType: "json",
|
|
412
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
413
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
414
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
415
|
+
abortSignal: requestOptions?.abortSignal,
|
|
416
|
+
fetchFn: this._options?.fetch,
|
|
417
|
+
logging: this._options.logging,
|
|
418
|
+
});
|
|
419
|
+
if (_response.ok) {
|
|
420
|
+
return {
|
|
421
|
+
data: _response.body,
|
|
422
|
+
rawResponse: _response.rawResponse,
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
if (_response.error.reason === "status-code") {
|
|
426
|
+
switch (_response.error.statusCode) {
|
|
427
|
+
case 400:
|
|
428
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
429
|
+
case 401:
|
|
430
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
431
|
+
case 402:
|
|
432
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
433
|
+
case 403:
|
|
434
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
435
|
+
case 404:
|
|
436
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
437
|
+
case 409:
|
|
438
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
439
|
+
case 413:
|
|
440
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
441
|
+
case 422:
|
|
442
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
443
|
+
case 429:
|
|
444
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
445
|
+
case 500:
|
|
446
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
447
|
+
default:
|
|
448
|
+
throw new errors.NordletApiError({
|
|
449
|
+
statusCode: _response.error.statusCode,
|
|
450
|
+
body: _response.error.body,
|
|
451
|
+
rawResponse: _response.rawResponse,
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/platform-sellers/delete");
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
exports.PlatformSellersClient = PlatformSellersClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* kind: "individual",
|
|
5
|
+
* address: {
|
|
6
|
+
* countryCode: "countryCode"
|
|
7
|
+
* }
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface CreatePlatformSellersRequest {
|
|
11
|
+
kind: CreatePlatformSellersRequest.Kind;
|
|
12
|
+
partnerId?: string | null;
|
|
13
|
+
firstName?: string | null;
|
|
14
|
+
middleName?: string | null;
|
|
15
|
+
lastName?: string | null;
|
|
16
|
+
entityName?: string | null;
|
|
17
|
+
taxResidences?: CreatePlatformSellersRequest.TaxResidences.Item[];
|
|
18
|
+
vatCode?: string | null;
|
|
19
|
+
businessRegistrationNumber?: string | null;
|
|
20
|
+
address: CreatePlatformSellersRequest.Address;
|
|
21
|
+
birthDate?: string | null;
|
|
22
|
+
birthCity?: string | null;
|
|
23
|
+
birthCountryCode?: string | null;
|
|
24
|
+
iban?: string | null;
|
|
25
|
+
accountHolderName?: string | null;
|
|
26
|
+
governmentEntity?: boolean;
|
|
27
|
+
listedEntity?: boolean;
|
|
28
|
+
permanentEstablishments?: string[];
|
|
29
|
+
activities?: CreatePlatformSellersRequest.Activities.Item[];
|
|
30
|
+
}
|
|
31
|
+
export declare namespace CreatePlatformSellersRequest {
|
|
32
|
+
const Kind: {
|
|
33
|
+
readonly Individual: "individual";
|
|
34
|
+
readonly Entity: "entity";
|
|
35
|
+
};
|
|
36
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
37
|
+
type TaxResidences = TaxResidences.Item[];
|
|
38
|
+
namespace TaxResidences {
|
|
39
|
+
interface Item {
|
|
40
|
+
countryCode: string;
|
|
41
|
+
tin?: (string | null) | undefined;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
interface Address {
|
|
45
|
+
countryCode: string;
|
|
46
|
+
street?: (string | null) | undefined;
|
|
47
|
+
buildingIdentifier?: (string | null) | undefined;
|
|
48
|
+
postCode?: (string | null) | undefined;
|
|
49
|
+
city?: (string | null) | undefined;
|
|
50
|
+
free?: (string | null) | undefined;
|
|
51
|
+
}
|
|
52
|
+
type Activities = Activities.Item[];
|
|
53
|
+
namespace Activities {
|
|
54
|
+
interface Item {
|
|
55
|
+
year: number;
|
|
56
|
+
activity: Item.Activity;
|
|
57
|
+
propertyAddress?: (Item.PropertyAddress | null) | undefined;
|
|
58
|
+
landRegistrationNumber?: (string | null) | undefined;
|
|
59
|
+
propertyType?: (Item.PropertyType | null) | undefined;
|
|
60
|
+
otherPropertyType?: (string | null) | undefined;
|
|
61
|
+
rentedDays?: (number | null) | undefined;
|
|
62
|
+
consideration: string[];
|
|
63
|
+
fees: string[];
|
|
64
|
+
taxes: string[];
|
|
65
|
+
numberOfActivities: number[];
|
|
66
|
+
}
|
|
67
|
+
namespace Item {
|
|
68
|
+
const Activity: {
|
|
69
|
+
readonly ImmovableProperty: "immovable_property";
|
|
70
|
+
readonly PersonalServices: "personal_services";
|
|
71
|
+
readonly SaleOfGoods: "sale_of_goods";
|
|
72
|
+
readonly TransportationRental: "transportation_rental";
|
|
73
|
+
};
|
|
74
|
+
type Activity = (typeof Activity)[keyof typeof Activity];
|
|
75
|
+
interface PropertyAddress {
|
|
76
|
+
countryCode: string;
|
|
77
|
+
street?: (string | null) | undefined;
|
|
78
|
+
buildingIdentifier?: (string | null) | undefined;
|
|
79
|
+
postCode?: (string | null) | undefined;
|
|
80
|
+
city?: (string | null) | undefined;
|
|
81
|
+
free?: (string | null) | undefined;
|
|
82
|
+
}
|
|
83
|
+
const PropertyType: {
|
|
84
|
+
readonly Dpi901: "DPI901";
|
|
85
|
+
readonly Dpi902: "DPI902";
|
|
86
|
+
readonly Dpi903: "DPI903";
|
|
87
|
+
readonly Dpi904: "DPI904";
|
|
88
|
+
readonly Dpi905: "DPI905";
|
|
89
|
+
readonly Dpi906: "DPI906";
|
|
90
|
+
readonly Dpi907: "DPI907";
|
|
91
|
+
readonly Dpi908: "DPI908";
|
|
92
|
+
readonly Dpi909: "DPI909";
|
|
93
|
+
readonly Dpi910: "DPI910";
|
|
94
|
+
};
|
|
95
|
+
type PropertyType = (typeof PropertyType)[keyof typeof PropertyType];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreatePlatformSellersRequest = void 0;
|
|
5
|
+
var CreatePlatformSellersRequest;
|
|
6
|
+
(function (CreatePlatformSellersRequest) {
|
|
7
|
+
CreatePlatformSellersRequest.Kind = {
|
|
8
|
+
Individual: "individual",
|
|
9
|
+
Entity: "entity",
|
|
10
|
+
};
|
|
11
|
+
let Activities;
|
|
12
|
+
(function (Activities) {
|
|
13
|
+
let Item;
|
|
14
|
+
(function (Item) {
|
|
15
|
+
Item.Activity = {
|
|
16
|
+
ImmovableProperty: "immovable_property",
|
|
17
|
+
PersonalServices: "personal_services",
|
|
18
|
+
SaleOfGoods: "sale_of_goods",
|
|
19
|
+
TransportationRental: "transportation_rental",
|
|
20
|
+
};
|
|
21
|
+
Item.PropertyType = {
|
|
22
|
+
Dpi901: "DPI901",
|
|
23
|
+
Dpi902: "DPI902",
|
|
24
|
+
Dpi903: "DPI903",
|
|
25
|
+
Dpi904: "DPI904",
|
|
26
|
+
Dpi905: "DPI905",
|
|
27
|
+
Dpi906: "DPI906",
|
|
28
|
+
Dpi907: "DPI907",
|
|
29
|
+
Dpi908: "DPI908",
|
|
30
|
+
Dpi909: "DPI909",
|
|
31
|
+
Dpi910: "DPI910",
|
|
32
|
+
};
|
|
33
|
+
})(Item = Activities.Item || (Activities.Item = {}));
|
|
34
|
+
})(Activities = CreatePlatformSellersRequest.Activities || (CreatePlatformSellersRequest.Activities = {}));
|
|
35
|
+
})(CreatePlatformSellersRequest || (exports.CreatePlatformSellersRequest = CreatePlatformSellersRequest = {}));
|