nordlet 0.3.9 → 0.3.11
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/bank/client/requests/AccountsCreateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsCreateBankRequest.js +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.d.ts +8 -0
- package/dist/api/resources/bank/client/requests/AccountsUpdateBankRequest.js +8 -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 +2 -2
- package/dist/api/resources/bank/client/requests/index.js +5 -1
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsCreateBankResponse.js +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsListBankResponse.js +14 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.d.ts +8 -0
- package/dist/api/resources/bank/types/AccountsUpdateBankResponse.js +8 -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/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/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 +26 -0
- package/dist/api/resources/sales/client/Client.js +84 -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 +1 -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 +1 -0
- package/dist/api/resources/sales/types/index.js +1 -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,93 @@
|
|
|
1
|
+
export interface UpdatePlatformSellersResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
kind: UpdatePlatformSellersResponse.Kind;
|
|
4
|
+
name: string;
|
|
5
|
+
partnerId: string | null;
|
|
6
|
+
firstName: string | null;
|
|
7
|
+
middleName: string | null;
|
|
8
|
+
lastName: string | null;
|
|
9
|
+
entityName: string | null;
|
|
10
|
+
taxResidences: UpdatePlatformSellersResponse.TaxResidences.Item[];
|
|
11
|
+
vatCode: string | null;
|
|
12
|
+
businessRegistrationNumber: string | null;
|
|
13
|
+
address: UpdatePlatformSellersResponse.Address;
|
|
14
|
+
birthDate: string | null;
|
|
15
|
+
birthCity: string | null;
|
|
16
|
+
birthCountryCode: string | null;
|
|
17
|
+
iban: string | null;
|
|
18
|
+
accountHolderName: string | null;
|
|
19
|
+
governmentEntity: boolean;
|
|
20
|
+
listedEntity: boolean;
|
|
21
|
+
permanentEstablishments: string[];
|
|
22
|
+
createdAt: string;
|
|
23
|
+
activities: UpdatePlatformSellersResponse.Activities.Item[];
|
|
24
|
+
}
|
|
25
|
+
export declare namespace UpdatePlatformSellersResponse {
|
|
26
|
+
const Kind: {
|
|
27
|
+
readonly Individual: "individual";
|
|
28
|
+
readonly Entity: "entity";
|
|
29
|
+
};
|
|
30
|
+
type Kind = (typeof Kind)[keyof typeof Kind];
|
|
31
|
+
type TaxResidences = TaxResidences.Item[];
|
|
32
|
+
namespace TaxResidences {
|
|
33
|
+
interface Item {
|
|
34
|
+
countryCode: string;
|
|
35
|
+
tin: string | null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
interface Address {
|
|
39
|
+
countryCode: string;
|
|
40
|
+
street?: (string | null) | undefined;
|
|
41
|
+
buildingIdentifier?: (string | null) | undefined;
|
|
42
|
+
postCode?: (string | null) | undefined;
|
|
43
|
+
city?: (string | null) | undefined;
|
|
44
|
+
free?: (string | null) | undefined;
|
|
45
|
+
}
|
|
46
|
+
type Activities = Activities.Item[];
|
|
47
|
+
namespace Activities {
|
|
48
|
+
interface Item {
|
|
49
|
+
year: number;
|
|
50
|
+
activity: Item.Activity;
|
|
51
|
+
propertyAddress?: (Item.PropertyAddress | null) | undefined;
|
|
52
|
+
landRegistrationNumber?: (string | null) | undefined;
|
|
53
|
+
propertyType?: (Item.PropertyType | null) | undefined;
|
|
54
|
+
otherPropertyType?: (string | null) | undefined;
|
|
55
|
+
rentedDays?: (number | null) | undefined;
|
|
56
|
+
consideration: string[];
|
|
57
|
+
fees: string[];
|
|
58
|
+
taxes: string[];
|
|
59
|
+
numberOfActivities: number[];
|
|
60
|
+
id: string;
|
|
61
|
+
}
|
|
62
|
+
namespace Item {
|
|
63
|
+
const Activity: {
|
|
64
|
+
readonly ImmovableProperty: "immovable_property";
|
|
65
|
+
readonly PersonalServices: "personal_services";
|
|
66
|
+
readonly SaleOfGoods: "sale_of_goods";
|
|
67
|
+
readonly TransportationRental: "transportation_rental";
|
|
68
|
+
};
|
|
69
|
+
type Activity = (typeof Activity)[keyof typeof Activity];
|
|
70
|
+
interface PropertyAddress {
|
|
71
|
+
countryCode: string;
|
|
72
|
+
street?: (string | null) | undefined;
|
|
73
|
+
buildingIdentifier?: (string | null) | undefined;
|
|
74
|
+
postCode?: (string | null) | undefined;
|
|
75
|
+
city?: (string | null) | undefined;
|
|
76
|
+
free?: (string | null) | undefined;
|
|
77
|
+
}
|
|
78
|
+
const PropertyType: {
|
|
79
|
+
readonly Dpi901: "DPI901";
|
|
80
|
+
readonly Dpi902: "DPI902";
|
|
81
|
+
readonly Dpi903: "DPI903";
|
|
82
|
+
readonly Dpi904: "DPI904";
|
|
83
|
+
readonly Dpi905: "DPI905";
|
|
84
|
+
readonly Dpi906: "DPI906";
|
|
85
|
+
readonly Dpi907: "DPI907";
|
|
86
|
+
readonly Dpi908: "DPI908";
|
|
87
|
+
readonly Dpi909: "DPI909";
|
|
88
|
+
readonly Dpi910: "DPI910";
|
|
89
|
+
};
|
|
90
|
+
type PropertyType = (typeof PropertyType)[keyof typeof PropertyType];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -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.UpdatePlatformSellersResponse = void 0;
|
|
5
|
+
var UpdatePlatformSellersResponse;
|
|
6
|
+
(function (UpdatePlatformSellersResponse) {
|
|
7
|
+
UpdatePlatformSellersResponse.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 = UpdatePlatformSellersResponse.Activities || (UpdatePlatformSellersResponse.Activities = {}));
|
|
35
|
+
})(UpdatePlatformSellersResponse || (exports.UpdatePlatformSellersResponse = UpdatePlatformSellersResponse = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./CreatePlatformSellersResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./DeletePlatformSellersResponse.js"), exports);
|
|
19
|
+
__exportStar(require("./GetPlatformSellersResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ListPlatformSellersResponse.js"), exports);
|
|
21
|
+
__exportStar(require("./UpdatePlatformSellersResponse.js"), exports);
|
|
@@ -13,6 +13,12 @@ export interface VatResolveReferenceRequest {
|
|
|
13
13
|
actingAsMarketplace?: boolean;
|
|
14
14
|
sellerEstablishedInEu?: boolean;
|
|
15
15
|
importedConsignmentValueEur?: string;
|
|
16
|
+
serviceKind?: VatResolveReferenceRequest.ServiceKind;
|
|
17
|
+
serviceCountryCode?: string;
|
|
18
|
+
underlyingSupplierGaveVatNumber?: boolean;
|
|
19
|
+
underlyingSupplierChargesVat?: boolean;
|
|
20
|
+
goodsKind?: VatResolveReferenceRequest.GoodsKind;
|
|
21
|
+
goodsLocationCountryCode?: string;
|
|
16
22
|
}
|
|
17
23
|
export declare namespace VatResolveReferenceRequest {
|
|
18
24
|
const SupplyType: {
|
|
@@ -21,4 +27,14 @@ export declare namespace VatResolveReferenceRequest {
|
|
|
21
27
|
readonly Digital: "digital";
|
|
22
28
|
};
|
|
23
29
|
type SupplyType = (typeof SupplyType)[keyof typeof SupplyType];
|
|
30
|
+
const ServiceKind: {
|
|
31
|
+
readonly ShortTermAccommodation: "short_term_accommodation";
|
|
32
|
+
readonly PassengerRoadTransport: "passenger_road_transport";
|
|
33
|
+
};
|
|
34
|
+
type ServiceKind = (typeof ServiceKind)[keyof typeof ServiceKind];
|
|
35
|
+
const GoodsKind: {
|
|
36
|
+
readonly Installed: "installed";
|
|
37
|
+
readonly EnergyNetwork: "energy_network";
|
|
38
|
+
};
|
|
39
|
+
type GoodsKind = (typeof GoodsKind)[keyof typeof GoodsKind];
|
|
24
40
|
}
|
|
@@ -9,4 +9,12 @@ var VatResolveReferenceRequest;
|
|
|
9
9
|
Services: "services",
|
|
10
10
|
Digital: "digital",
|
|
11
11
|
};
|
|
12
|
+
VatResolveReferenceRequest.ServiceKind = {
|
|
13
|
+
ShortTermAccommodation: "short_term_accommodation",
|
|
14
|
+
PassengerRoadTransport: "passenger_road_transport",
|
|
15
|
+
};
|
|
16
|
+
VatResolveReferenceRequest.GoodsKind = {
|
|
17
|
+
Installed: "installed",
|
|
18
|
+
EnergyNetwork: "energy_network",
|
|
19
|
+
};
|
|
12
20
|
})(VatResolveReferenceRequest || (exports.VatResolveReferenceRequest = VatResolveReferenceRequest = {}));
|
|
@@ -122,6 +122,8 @@ export declare class SalesClient {
|
|
|
122
122
|
invoicesPeppolXml(request: NordletApi.InvoicesPeppolXmlSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolXmlSalesResponse>;
|
|
123
123
|
private __invoicesPeppolXml;
|
|
124
124
|
/**
|
|
125
|
+
* Send an issued invoice or credit note to the customer over Peppol through the company's own access point (Settings → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is refused with 422 and the document can only be downloaded with `sales/invoices/peppol-xml`. `status` is `pending` until the receiving access point confirms, then `delivered`; `failed` and `rejected` come with `detail`, and the invoice can then be sent again. Later changes arrive through the access point's webhook and are announced as `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` and `sale_invoice.peppol_failed`.
|
|
126
|
+
*
|
|
125
127
|
* @param {NordletApi.InvoicesPeppolSendSalesRequest} request
|
|
126
128
|
* @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
129
|
*
|
|
@@ -143,6 +145,30 @@ export declare class SalesClient {
|
|
|
143
145
|
*/
|
|
144
146
|
invoicesPeppolSend(request: NordletApi.InvoicesPeppolSendSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolSendSalesResponse>;
|
|
145
147
|
private __invoicesPeppolSend;
|
|
148
|
+
/**
|
|
149
|
+
* Ask the company's Peppol access point what happened to an invoice sent with `sales/invoices/peppol-send`, and store the answer: `pending`, `delivered` (the receiving access point confirmed it), `rejected` (the receiver refused it, see `detail`) or `failed` (it could not be delivered, see `detail`). The access point's webhook updates the same fields without this call. Storecove has no call for the status of a sent document, so for a Storecove access point this answers 422 and the status comes only from its webhook.
|
|
150
|
+
*
|
|
151
|
+
* @param {NordletApi.InvoicesPeppolStatusSalesRequest} request
|
|
152
|
+
* @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
154
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
155
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
156
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
157
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
158
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
159
|
+
* @throws {@link NordletApi.ConflictError}
|
|
160
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
161
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
162
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
163
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* await client.sales.invoicesPeppolStatus({
|
|
167
|
+
* id: "id"
|
|
168
|
+
* })
|
|
169
|
+
*/
|
|
170
|
+
invoicesPeppolStatus(request: NordletApi.InvoicesPeppolStatusSalesRequest, requestOptions?: SalesClient.RequestOptions): core.HttpResponsePromise<NordletApi.InvoicesPeppolStatusSalesResponse>;
|
|
171
|
+
private __invoicesPeppolStatus;
|
|
146
172
|
/**
|
|
147
173
|
* Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
|
|
148
174
|
*
|
|
@@ -440,6 +440,8 @@ class SalesClient {
|
|
|
440
440
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-xml");
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
|
+
* Send an issued invoice or credit note to the customer over Peppol through the company's own access point (Settings → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is refused with 422 and the document can only be downloaded with `sales/invoices/peppol-xml`. `status` is `pending` until the receiving access point confirms, then `delivered`; `failed` and `rejected` come with `detail`, and the invoice can then be sent again. Later changes arrive through the access point's webhook and are announced as `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` and `sale_invoice.peppol_failed`.
|
|
444
|
+
*
|
|
443
445
|
* @param {NordletApi.InvoicesPeppolSendSalesRequest} request
|
|
444
446
|
* @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
445
447
|
*
|
|
@@ -519,6 +521,88 @@ class SalesClient {
|
|
|
519
521
|
}
|
|
520
522
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-send");
|
|
521
523
|
}
|
|
524
|
+
/**
|
|
525
|
+
* Ask the company's Peppol access point what happened to an invoice sent with `sales/invoices/peppol-send`, and store the answer: `pending`, `delivered` (the receiving access point confirmed it), `rejected` (the receiver refused it, see `detail`) or `failed` (it could not be delivered, see `detail`). The access point's webhook updates the same fields without this call. Storecove has no call for the status of a sent document, so for a Storecove access point this answers 422 and the status comes only from its webhook.
|
|
526
|
+
*
|
|
527
|
+
* @param {NordletApi.InvoicesPeppolStatusSalesRequest} request
|
|
528
|
+
* @param {SalesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
529
|
+
*
|
|
530
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
531
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
532
|
+
* @throws {@link NordletApi.PaymentRequiredError}
|
|
533
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
534
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
535
|
+
* @throws {@link NordletApi.ConflictError}
|
|
536
|
+
* @throws {@link NordletApi.ContentTooLargeError}
|
|
537
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
538
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
539
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
540
|
+
*
|
|
541
|
+
* @example
|
|
542
|
+
* await client.sales.invoicesPeppolStatus({
|
|
543
|
+
* id: "id"
|
|
544
|
+
* })
|
|
545
|
+
*/
|
|
546
|
+
invoicesPeppolStatus(request, requestOptions) {
|
|
547
|
+
return core.HttpResponsePromise.fromPromise(this.__invoicesPeppolStatus(request, requestOptions));
|
|
548
|
+
}
|
|
549
|
+
async __invoicesPeppolStatus(request, requestOptions) {
|
|
550
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
551
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
552
|
+
const _response = await core.fetcher({
|
|
553
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
554
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
555
|
+
environments.NordletApiEnvironment.Production, "v1/sales/invoices/peppol-status"),
|
|
556
|
+
method: "POST",
|
|
557
|
+
headers: _headers,
|
|
558
|
+
contentType: "application/json",
|
|
559
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
560
|
+
requestType: "json",
|
|
561
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
562
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
563
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
564
|
+
abortSignal: requestOptions?.abortSignal,
|
|
565
|
+
fetchFn: this._options?.fetch,
|
|
566
|
+
logging: this._options.logging,
|
|
567
|
+
});
|
|
568
|
+
if (_response.ok) {
|
|
569
|
+
return {
|
|
570
|
+
data: _response.body,
|
|
571
|
+
rawResponse: _response.rawResponse,
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
if (_response.error.reason === "status-code") {
|
|
575
|
+
switch (_response.error.statusCode) {
|
|
576
|
+
case 400:
|
|
577
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
578
|
+
case 401:
|
|
579
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
580
|
+
case 402:
|
|
581
|
+
throw new NordletApi.PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
582
|
+
case 403:
|
|
583
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
584
|
+
case 404:
|
|
585
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
586
|
+
case 409:
|
|
587
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
588
|
+
case 413:
|
|
589
|
+
throw new NordletApi.ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
590
|
+
case 422:
|
|
591
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
592
|
+
case 429:
|
|
593
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
594
|
+
case 500:
|
|
595
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
596
|
+
default:
|
|
597
|
+
throw new errors.NordletApiError({
|
|
598
|
+
statusCode: _response.error.statusCode,
|
|
599
|
+
body: _response.error.body,
|
|
600
|
+
rawResponse: _response.rawResponse,
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/sales/invoices/peppol-status");
|
|
605
|
+
}
|
|
522
606
|
/**
|
|
523
607
|
* Render an issued invoice as the national e-invoicing payload for the company country: FatturaPA (IT), KSeF FA(3) (PL) or UBL CIUS-RO (RO). Review the warnings - data the invoice does not carry is flagged, never invented.
|
|
524
608
|
*
|
|
@@ -9,4 +9,6 @@ export interface InvoicesApplyAdvanceSalesRequest {
|
|
|
9
9
|
advanceId: string;
|
|
10
10
|
invoiceId: string;
|
|
11
11
|
date?: string;
|
|
12
|
+
/** Gross amount of the advance to apply; defaults to the unapplied advance or the unpaid balance of the invoice, whichever is smaller */
|
|
13
|
+
amount?: string;
|
|
12
14
|
}
|
|
@@ -20,6 +20,7 @@ export type { InvoicesPaymentSettingsGetSalesRequest } from "./InvoicesPaymentSe
|
|
|
20
20
|
export type { InvoicesPaymentSettingsUpdateSalesRequest } from "./InvoicesPaymentSettingsUpdateSalesRequest.js";
|
|
21
21
|
export { InvoicesPdfSalesRequest } from "./InvoicesPdfSalesRequest.js";
|
|
22
22
|
export type { InvoicesPeppolSendSalesRequest } from "./InvoicesPeppolSendSalesRequest.js";
|
|
23
|
+
export type { InvoicesPeppolStatusSalesRequest } from "./InvoicesPeppolStatusSalesRequest.js";
|
|
23
24
|
export type { InvoicesPeppolXmlSalesRequest } from "./InvoicesPeppolXmlSalesRequest.js";
|
|
24
25
|
export { InvoicesSendSalesRequest } from "./InvoicesSendSalesRequest.js";
|
|
25
26
|
export type { InvoicesUnlockSalesRequest } from "./InvoicesUnlockSalesRequest.js";
|
|
@@ -50,8 +50,15 @@ export interface InvoicesApplyAdvanceSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesApplyAdvanceSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesApplyAdvanceSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -50,8 +50,15 @@ export interface InvoicesCreateSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesCreateSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesCreateSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -50,8 +50,15 @@ export interface InvoicesGetSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesGetSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesGetSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -50,8 +50,15 @@ export interface InvoicesIssueSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesIssueSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesIssueSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -62,6 +62,11 @@ export declare namespace InvoicesListSalesResponse {
|
|
|
62
62
|
einvoiceDetail: string | null;
|
|
63
63
|
einvoiceSentAt: string | null;
|
|
64
64
|
einvoiceCheckedAt: string | null;
|
|
65
|
+
peppolMessageId: string | null;
|
|
66
|
+
peppolStatus: string | null;
|
|
67
|
+
peppolDetail: string | null;
|
|
68
|
+
peppolSentAt: string | null;
|
|
69
|
+
peppolCheckedAt: string | null;
|
|
65
70
|
createdAt: string;
|
|
66
71
|
updatedAt: string;
|
|
67
72
|
partnerName: string | null;
|
|
@@ -50,8 +50,15 @@ export interface InvoicesLockSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesLockSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesLockSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -2,5 +2,16 @@ export interface InvoicesPeppolSendSalesResponse {
|
|
|
2
2
|
sent: boolean;
|
|
3
3
|
messageId: string;
|
|
4
4
|
receiverId: string;
|
|
5
|
+
status: InvoicesPeppolSendSalesResponse.Status;
|
|
6
|
+
detail: string | null;
|
|
5
7
|
fileId: string | null;
|
|
6
8
|
}
|
|
9
|
+
export declare namespace InvoicesPeppolSendSalesResponse {
|
|
10
|
+
const Status: {
|
|
11
|
+
readonly Pending: "pending";
|
|
12
|
+
readonly Delivered: "delivered";
|
|
13
|
+
readonly Rejected: "rejected";
|
|
14
|
+
readonly Failed: "failed";
|
|
15
|
+
};
|
|
16
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
17
|
+
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InvoicesPeppolSendSalesResponse = void 0;
|
|
5
|
+
var InvoicesPeppolSendSalesResponse;
|
|
6
|
+
(function (InvoicesPeppolSendSalesResponse) {
|
|
7
|
+
InvoicesPeppolSendSalesResponse.Status = {
|
|
8
|
+
Pending: "pending",
|
|
9
|
+
Delivered: "delivered",
|
|
10
|
+
Rejected: "rejected",
|
|
11
|
+
Failed: "failed",
|
|
12
|
+
};
|
|
13
|
+
})(InvoicesPeppolSendSalesResponse || (exports.InvoicesPeppolSendSalesResponse = InvoicesPeppolSendSalesResponse = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface InvoicesPeppolStatusSalesResponse {
|
|
2
|
+
messageId: string;
|
|
3
|
+
status: InvoicesPeppolStatusSalesResponse.Status;
|
|
4
|
+
detail: string | null;
|
|
5
|
+
checkedAt: string;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace InvoicesPeppolStatusSalesResponse {
|
|
8
|
+
const Status: {
|
|
9
|
+
readonly Pending: "pending";
|
|
10
|
+
readonly Delivered: "delivered";
|
|
11
|
+
readonly Rejected: "rejected";
|
|
12
|
+
readonly Failed: "failed";
|
|
13
|
+
};
|
|
14
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InvoicesPeppolStatusSalesResponse = void 0;
|
|
5
|
+
var InvoicesPeppolStatusSalesResponse;
|
|
6
|
+
(function (InvoicesPeppolStatusSalesResponse) {
|
|
7
|
+
InvoicesPeppolStatusSalesResponse.Status = {
|
|
8
|
+
Pending: "pending",
|
|
9
|
+
Delivered: "delivered",
|
|
10
|
+
Rejected: "rejected",
|
|
11
|
+
Failed: "failed",
|
|
12
|
+
};
|
|
13
|
+
})(InvoicesPeppolStatusSalesResponse || (exports.InvoicesPeppolStatusSalesResponse = InvoicesPeppolStatusSalesResponse = {}));
|
|
@@ -50,8 +50,15 @@ export interface InvoicesUnlockSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesUnlockSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesUnlockSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -50,8 +50,15 @@ export interface InvoicesUpdateSalesResponse {
|
|
|
50
50
|
einvoiceDetail: string | null;
|
|
51
51
|
einvoiceSentAt: string | null;
|
|
52
52
|
einvoiceCheckedAt: string | null;
|
|
53
|
+
peppolMessageId: string | null;
|
|
54
|
+
peppolStatus: string | null;
|
|
55
|
+
peppolDetail: string | null;
|
|
56
|
+
peppolSentAt: string | null;
|
|
57
|
+
peppolCheckedAt: string | null;
|
|
53
58
|
createdAt: string;
|
|
54
59
|
updatedAt: string;
|
|
60
|
+
/** Gross amount of an advance invoice applied to final invoices so far; null on other documents */
|
|
61
|
+
advanceAppliedAmount: string | null;
|
|
55
62
|
lines: InvoicesUpdateSalesResponse.Lines.Item[];
|
|
56
63
|
vatEvidence: InvoicesUpdateSalesResponse.VatEvidence | null;
|
|
57
64
|
}
|
|
@@ -20,6 +20,7 @@ export * from "./InvoicesPaymentSettingsGetSalesResponse.js";
|
|
|
20
20
|
export * from "./InvoicesPaymentSettingsUpdateSalesResponse.js";
|
|
21
21
|
export * from "./InvoicesPdfSalesResponse.js";
|
|
22
22
|
export * from "./InvoicesPeppolSendSalesResponse.js";
|
|
23
|
+
export * from "./InvoicesPeppolStatusSalesResponse.js";
|
|
23
24
|
export * from "./InvoicesPeppolXmlSalesResponse.js";
|
|
24
25
|
export * from "./InvoicesSendSalesResponse.js";
|
|
25
26
|
export * from "./InvoicesUnlockSalesResponse.js";
|
|
@@ -36,6 +36,7 @@ __exportStar(require("./InvoicesPaymentSettingsGetSalesResponse.js"), exports);
|
|
|
36
36
|
__exportStar(require("./InvoicesPaymentSettingsUpdateSalesResponse.js"), exports);
|
|
37
37
|
__exportStar(require("./InvoicesPdfSalesResponse.js"), exports);
|
|
38
38
|
__exportStar(require("./InvoicesPeppolSendSalesResponse.js"), exports);
|
|
39
|
+
__exportStar(require("./InvoicesPeppolStatusSalesResponse.js"), exports);
|
|
39
40
|
__exportStar(require("./InvoicesPeppolXmlSalesResponse.js"), exports);
|
|
40
41
|
__exportStar(require("./InvoicesSendSalesResponse.js"), exports);
|
|
41
42
|
__exportStar(require("./InvoicesUnlockSalesResponse.js"), exports);
|
|
@@ -17,6 +17,7 @@ export declare namespace SubscriptionsCreateWebhooksRequest {
|
|
|
17
17
|
const Item: {
|
|
18
18
|
readonly AgreementInvoiceGenerated: "agreement.invoice_generated";
|
|
19
19
|
readonly BankFeedSynced: "bank_feed.synced";
|
|
20
|
+
readonly DocumentCapturePeppolReceived: "document_capture.peppol_received";
|
|
20
21
|
readonly FilingFailed: "filing.failed";
|
|
21
22
|
readonly FilingRejected: "filing.rejected";
|
|
22
23
|
readonly GoodsReceiptPosted: "goods_receipt.posted";
|
|
@@ -44,6 +45,9 @@ export declare namespace SubscriptionsCreateWebhooksRequest {
|
|
|
44
45
|
readonly SaleInvoiceEinvoiceSent: "sale_invoice.einvoice_sent";
|
|
45
46
|
readonly SaleInvoiceIssued: "sale_invoice.issued";
|
|
46
47
|
readonly SaleInvoicePaid: "sale_invoice.paid";
|
|
48
|
+
readonly SaleInvoicePeppolDelivered: "sale_invoice.peppol_delivered";
|
|
49
|
+
readonly SaleInvoicePeppolFailed: "sale_invoice.peppol_failed";
|
|
50
|
+
readonly SaleInvoicePeppolRejected: "sale_invoice.peppol_rejected";
|
|
47
51
|
readonly SaleInvoicePeppolSent: "sale_invoice.peppol_sent";
|
|
48
52
|
readonly SaleInvoiceSent: "sale_invoice.sent";
|
|
49
53
|
readonly SalesOrderCreated: "sales_order.created";
|
|
@@ -10,6 +10,7 @@ var SubscriptionsCreateWebhooksRequest;
|
|
|
10
10
|
Events.Item = {
|
|
11
11
|
AgreementInvoiceGenerated: "agreement.invoice_generated",
|
|
12
12
|
BankFeedSynced: "bank_feed.synced",
|
|
13
|
+
DocumentCapturePeppolReceived: "document_capture.peppol_received",
|
|
13
14
|
FilingFailed: "filing.failed",
|
|
14
15
|
FilingRejected: "filing.rejected",
|
|
15
16
|
GoodsReceiptPosted: "goods_receipt.posted",
|
|
@@ -37,6 +38,9 @@ var SubscriptionsCreateWebhooksRequest;
|
|
|
37
38
|
SaleInvoiceEinvoiceSent: "sale_invoice.einvoice_sent",
|
|
38
39
|
SaleInvoiceIssued: "sale_invoice.issued",
|
|
39
40
|
SaleInvoicePaid: "sale_invoice.paid",
|
|
41
|
+
SaleInvoicePeppolDelivered: "sale_invoice.peppol_delivered",
|
|
42
|
+
SaleInvoicePeppolFailed: "sale_invoice.peppol_failed",
|
|
43
|
+
SaleInvoicePeppolRejected: "sale_invoice.peppol_rejected",
|
|
40
44
|
SaleInvoicePeppolSent: "sale_invoice.peppol_sent",
|
|
41
45
|
SaleInvoiceSent: "sale_invoice.sent",
|
|
42
46
|
SalesOrderCreated: "sales_order.created",
|