@wisemen/wise-invoicing-web 0.19.0 → 1.0.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/ApprovalReminderSettingsViewDataProvider-DyrHExKn.js +962 -0
- package/dist/{BillingDocumentDetailViewDataProvider-BZCFhsjA.js → BillingDocumentDetailViewDataProvider-kFzqhrxW.js} +1632 -1619
- package/dist/{BillingDocumentPdf-DMTwOlzG.js → BillingDocumentPdf-Dp6HSypy.js} +10 -10
- package/dist/{DunningCaseSendDialog-DfMYo2LV.js → DunningCaseSendDialog-1S6OD9wd.js} +36 -36
- package/dist/{InvoiceApprovalOutOfSyncIndicator-BjlBhzNg.js → InvoiceApprovalOutOfSyncIndicator-DaM5hQVT.js} +16 -13
- package/dist/{InvoiceApprovalOverviewView-BH5rJgk6.js → InvoiceApprovalOverviewView-DM_LiO19.js} +237 -237
- package/dist/{InvoiceApprovalStatusBadge-CaVSCtI0.js → InvoiceApprovalStatusBadge-mbYHYU3x.js} +6 -6
- package/dist/{InvoicePdfView-DRqX3P-X.js → InvoicePdfView-YbDJpTIA.js} +2 -2
- package/dist/{InvoicePublicProFormaPdfViewDataProvider-Dz2jGWVg.js → InvoicePublicProFormaPdfViewDataProvider-BgAhcvB6.js} +3 -3
- package/dist/InvoiceRejectDialogDataProvider-yegAlkDB.js +410 -0
- package/dist/{InvoiceStatusBadge-BI41yxpr.js → InvoiceStatusBadge-Bo5PDjEy.js} +23 -23
- package/dist/{InvoicingFileUploadProvider-rU9APFrt.js → InvoicingFileUploadProvider-DVh22OUB.js} +2 -2
- package/dist/{IssuerSettingsViewDataProvider-nNg0lR7Y.js → IssuerSettingsViewDataProvider-BgSFemZr.js} +66 -66
- package/dist/{PeppolSettingsViewDataProvider-CFelH70Q.js → PeppolSettingsViewDataProvider-_Bx0xx9e.js} +3 -3
- package/dist/ReminderTemplatesPanel-DxmfU2xK.js +103 -0
- package/dist/{api.util-sW4gNny-.js → api.util-lGbimoKL.js} +814 -667
- package/dist/billingDocumentDetail.transformer-C5-zjIhL.js +319 -0
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.d.ts +12 -7
- package/dist/client/types.gen.d.ts +396 -94
- package/dist/client/zod.gen.d.ts +3003 -401
- package/dist/{creditNoteDetail.query-C4DvgGFR.js → creditNoteDetail.query-CqJeWeRV.js} +25 -25
- package/dist/{customFieldDefinitionIndex.query-BBqxMfvT.js → customFieldDefinitionIndex.query-Co7hoMow.js} +75 -66
- package/dist/{deliveryReason.util-KBh3q_-P.js → deliveryReason.util-ny1rA7Sm.js} +6 -6
- package/dist/{dist-47-1LAzT.js → dist-CrNFh-CR.js} +59 -59
- package/dist/{dist-B33lNwLw.js → dist-DmVrfBOT.js} +149 -79
- package/dist/{documentTitle.composable-Dl8Cm3v3.js → documentTitle.composable-aTEYXgaZ.js} +37 -35
- package/dist/html.util-vG4ow95N.js +52 -0
- package/dist/{i18n.lib-DckceEsg.js → i18n.lib-B1H9r0km.js} +198 -26
- package/dist/index.d.ts +184 -12
- package/dist/index.js +1990 -1829
- package/dist/{invoice.service-v9uIoFgR.js → invoice.service-D9ubyWPb.js} +224 -181
- package/dist/invoiceApproval.service-BtDIOHIo.js +182 -0
- package/dist/{invoiceApprovalStatus.util-CB5pi_hm.js → invoiceApprovalStatus.util-Bqq_bILG.js} +29 -29
- package/dist/{invoiceCustomer.service-Bl4vN_U5.js → invoiceCustomer.service-D0AtVrLg.js} +6 -6
- package/dist/{invoiceDetail.query-MElhxTMM.js → invoiceDetail.query-BNL6MkvC.js} +1 -1
- package/dist/{invoicingConfig.composable-D-hxnEnh.js → invoicingConfig.composable-DEF0lzNP.js} +2 -2
- package/dist/{issuerSettings.query-CR7EtvNm.js → issuerSettings.query-Cu-I6OAg.js} +30 -30
- package/dist/libs/i18n.lib.d.ts +184 -12
- package/dist/locales/en-US.json.d.ts +99 -13
- package/dist/locales/nl-BE.json.d.ts +99 -13
- package/dist/models/billing-document/billingDocumentDetail.model.d.ts +2 -2
- package/dist/models/file-reference/fileReference.transformer.d.ts +3 -0
- package/dist/modules/invoice/api/mutations/invoiceApprovalUpdate.mutation.d.ts +16 -0
- package/dist/modules/invoice/api/mutations/invoiceApproveApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceBulkSendApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceRejectApproval.mutation.d.ts +2 -2
- package/dist/modules/invoice/api/mutations/invoiceSetApprovalMode.mutation.d.ts +7 -0
- package/dist/modules/invoice/api/services/invoice.service.d.ts +7 -5
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.model.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalMode.transformer.d.ts +6 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalModeForm.model.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalNote.model.d.ts +2 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdate.transformer.d.ts +7 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprovalUpdateForm.model.d.ts +13 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApprove.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceApproveForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/approval/invoiceReject.transformer.d.ts +3 -0
- package/dist/modules/invoice/models/invoice/approval/invoiceRejectForm.model.d.ts +2 -2
- package/dist/modules/invoice/models/invoice/detail/invoiceDetail.model.d.ts +7 -1
- package/dist/modules/invoice/models/invoice/index/invoiceIndexQueryParams.model.d.ts +1 -0
- package/dist/modules/invoice/models/invoice/invoiceStatus.util.d.ts +1 -0
- package/dist/modules/invoice/use-cases/detail/components/InvoiceApprovalBanner.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/composables/invoiceDetailHeaderActions.composable.d.ts +2 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalModeDialog.vue.d.ts +13 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApprovalUpdateDialog.vue.d.ts +16 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceApproveDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialog.vue.d.ts +4 -0
- package/dist/modules/invoice/use-cases/detail/dialogs/InvoiceRejectDialogDataProvider.vue.d.ts +13 -0
- package/dist/modules/invoice-approval/actions/invoiceApprovalSendRequest.action.d.ts +1 -1
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseCreate.mutation.d.ts +7 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseDelete.mutation.d.ts +4 -0
- package/dist/modules/invoice-approval/api/mutations/approvalFollowUpPauseUpdate.mutation.d.ts +10 -0
- package/dist/modules/invoice-approval/api/mutations/approvalMailTemplateUpdate.mutation.d.ts +14 -0
- package/dist/modules/invoice-approval/api/mutations/approvalReminderConfigUpdate.mutation.d.ts +14 -1
- package/dist/modules/invoice-approval/api/queries/approvalFollowUpPauseIndex.query.d.ts +2 -0
- package/dist/modules/invoice-approval/api/queries/approvalReminderConfig.query.d.ts +1 -1
- package/dist/modules/invoice-approval/api/query-keys/invoiceApproval.queryKeys.d.ts +9 -2
- package/dist/modules/invoice-approval/api/services/invoiceApproval.service.d.ts +10 -2
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPause.transformer.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalFollowUpPauseForm.model.d.ts +11 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.d.ts +6 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplate.transformer.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/approvalMailTemplateForm.model.d.ts +18 -0
- package/dist/modules/invoice-approval/models/approvalReminderConfigForm.model.d.ts +15 -2
- package/dist/modules/invoice-approval/models/approvalSettingsForm.model.d.ts +39 -0
- package/dist/modules/invoice-approval/models/approvalSettingsForm.spec.d.ts +1 -0
- package/dist/modules/invoice-approval/models/invoiceApprovalIndex.model.d.ts +2 -1
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseList.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPauseRow.vue.d.ts +20 -0
- package/dist/modules/invoice-approval/use-cases/settings/components/ApprovalFollowUpPausesPanel.vue.d.ts +7 -0
- package/dist/modules/invoice-approval/use-cases/settings/composables/approvalFollowUpPauseDialogs.composable.d.ts +8 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseDeleteDialog.vue.d.ts +11 -0
- package/dist/modules/invoice-approval/use-cases/settings/dialogs/ApprovalFollowUpPauseFormDialog.vue.d.ts +14 -0
- package/dist/modules/invoice-approval/use-cases/settings/views/ApprovalReminderSettingsView.vue.d.ts +2 -1
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.d.ts +41 -0
- package/dist/modules/invoice-approval/utils/approvalFollowUpPausePeriod.util.spec.d.ts +1 -0
- package/dist/{reminderConfig.query-DJmhJp6W.js → reminderConfig.query-DHMHVOeX.js} +67 -114
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/ApprovalReminderSettingsViewDataProvider-C1cI6KQq.js +0 -147
- package/dist/InvoiceRejectDialog-_5i8eFuk.js +0 -361
- package/dist/billingDocumentDetail.transformer-Ifa6tWtE.js +0 -310
- package/dist/invoiceApproval.service-DXIKgCI_.js +0 -72
- package/dist/modules/invoice/api/mutations/invoiceMarkAsPriorApprovalRequired.mutation.d.ts +0 -4
- package/dist/modules/invoice/api/mutations/invoiceUnmarkAsPriorApprovalRequired.mutation.d.ts +0 -4
|
@@ -22,6 +22,7 @@ export declare enum Permission {
|
|
|
22
22
|
INVOICE_APPROVAL_REJECT = "invoice-approval.reject",
|
|
23
23
|
INVOICE_APPROVAL_RESTART = "invoice-approval.restart",
|
|
24
24
|
INVOICE_APPROVAL_SEND = "invoice-approval.send",
|
|
25
|
+
INVOICE_APPROVAL_UPDATE = "invoice-approval.update",
|
|
25
26
|
INVOICE_CREATE = "invoice.create",
|
|
26
27
|
INVOICE_DELETE = "invoice.delete",
|
|
27
28
|
INVOICE_READ = "invoice.read",
|
|
@@ -439,6 +440,8 @@ export declare enum DomainEventType {
|
|
|
439
440
|
INVOICE_APPROVAL_REJECTED = "invoice-approval.rejected",
|
|
440
441
|
INVOICE_APPROVAL_SENT = "invoice-approval.sent",
|
|
441
442
|
INVOICE_APPROVAL_SUPERSEDED = "invoice-approval.superseded",
|
|
443
|
+
INVOICE_APPROVAL_UPDATED = "invoice-approval.updated",
|
|
444
|
+
INVOICE_APPROVAL_MODE_CHANGED = "invoice.approval-mode-changed",
|
|
442
445
|
INVOICE_ATTACHMENTS_UPDATED = "invoice.attachments.updated",
|
|
443
446
|
INVOICE_CREATED = "invoice.created",
|
|
444
447
|
INVOICE_DELETED = "invoice.deleted",
|
|
@@ -487,6 +490,10 @@ export declare enum DomainEventType {
|
|
|
487
490
|
RECIPIENT_DEFAULT_SET = "recipient.default-set",
|
|
488
491
|
RECIPIENT_DELETED = "recipient.deleted",
|
|
489
492
|
APPROVAL_REMINDER_CONFIG_UPDATED = "approval-reminder-config.updated",
|
|
493
|
+
APPROVAL_MAIL_TEMPLATE_UPDATED = "approval-mail-template.updated",
|
|
494
|
+
APPROVAL_FOLLOW_UP_PAUSE_CREATED = "approval-follow-up-pause.created",
|
|
495
|
+
APPROVAL_FOLLOW_UP_PAUSE_UPDATED = "approval-follow-up-pause.updated",
|
|
496
|
+
APPROVAL_FOLLOW_UP_PAUSE_DELETED = "approval-follow-up-pause.deleted",
|
|
490
497
|
REMINDER_CONFIG_UPDATED = "reminder-config.updated",
|
|
491
498
|
DUNNING_CASE_SYNCED = "dunning-case.synced",
|
|
492
499
|
DUNNING_CASE_CLOSED = "dunning-case.closed",
|
|
@@ -1111,6 +1118,10 @@ export type AddressCommand = {
|
|
|
1111
1118
|
unit: string | null;
|
|
1112
1119
|
coordinates: CoordinatesCommand | null;
|
|
1113
1120
|
};
|
|
1121
|
+
export declare enum ApprovalMode {
|
|
1122
|
+
PRO_FORMA = "pro_forma",
|
|
1123
|
+
FINALIZED = "finalized"
|
|
1124
|
+
}
|
|
1114
1125
|
export type CreateCustomerCommand = {
|
|
1115
1126
|
name: string;
|
|
1116
1127
|
address: AddressCommand | null;
|
|
@@ -1119,7 +1130,7 @@ export type CreateCustomerCommand = {
|
|
|
1119
1130
|
vatNumber: string | null;
|
|
1120
1131
|
type: CustomerType;
|
|
1121
1132
|
locale: Locale;
|
|
1122
|
-
|
|
1133
|
+
approvalMode?: ApprovalMode | null;
|
|
1123
1134
|
approvalEmail: string | null;
|
|
1124
1135
|
reference?: string | null;
|
|
1125
1136
|
};
|
|
@@ -1197,7 +1208,7 @@ export type ViewCustomerDetailResponse = {
|
|
|
1197
1208
|
currency: Currency;
|
|
1198
1209
|
isDeactivated: boolean;
|
|
1199
1210
|
defaultPaymentTerm: DurationDto;
|
|
1200
|
-
|
|
1211
|
+
approvalMode: ApprovalMode | null;
|
|
1201
1212
|
approvalEmail: string | null;
|
|
1202
1213
|
contacts: CustomerContactsResponse;
|
|
1203
1214
|
reference: string | null;
|
|
@@ -1263,7 +1274,7 @@ export type UpdateCustomerCommand = {
|
|
|
1263
1274
|
*/
|
|
1264
1275
|
currency: Currency;
|
|
1265
1276
|
defaultPaymentTerm?: DurationDto;
|
|
1266
|
-
|
|
1277
|
+
approvalMode?: ApprovalMode | null;
|
|
1267
1278
|
approvalEmail: string | null;
|
|
1268
1279
|
reference?: string | null;
|
|
1269
1280
|
};
|
|
@@ -1642,6 +1653,7 @@ export type ViewPublicInvoiceDetailGroupResponse = {
|
|
|
1642
1653
|
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
|
|
1643
1654
|
lines: Array<ViewPublicInvoiceDetailLineResponse>;
|
|
1644
1655
|
groups: Array<ViewPublicInvoiceDetailGroupResponse>;
|
|
1656
|
+
grossTotal: MonetaryDto;
|
|
1645
1657
|
};
|
|
1646
1658
|
export type ViewPublicInvoiceDetailVatSummaryResponse = {
|
|
1647
1659
|
vatRate: VatRate;
|
|
@@ -1781,7 +1793,7 @@ export type UpdateInvoiceLinesCommand = {
|
|
|
1781
1793
|
};
|
|
1782
1794
|
export type CreateInvoiceCommand = {
|
|
1783
1795
|
customerUuid: string;
|
|
1784
|
-
|
|
1796
|
+
approvalMode?: ApprovalMode | null;
|
|
1785
1797
|
isExternallyCreated?: boolean;
|
|
1786
1798
|
contactOverride?: InvoiceContactOverrideCommand;
|
|
1787
1799
|
/**
|
|
@@ -1871,6 +1883,7 @@ export type ViewInvoiceDetailGroupResponse = {
|
|
|
1871
1883
|
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
|
|
1872
1884
|
lines: Array<ViewInvoiceDetailLineResponse>;
|
|
1873
1885
|
groups: Array<ViewInvoiceDetailGroupResponse>;
|
|
1886
|
+
grossTotal: MonetaryDto;
|
|
1874
1887
|
};
|
|
1875
1888
|
export type ViewInvoiceDetailVatSummaryResponse = {
|
|
1876
1889
|
vatRate: VatRate;
|
|
@@ -1952,14 +1965,21 @@ export declare enum ApprovalReminderLevel {
|
|
|
1952
1965
|
}
|
|
1953
1966
|
export type ViewInvoiceDetailApprovalResponse = {
|
|
1954
1967
|
uuid: string;
|
|
1968
|
+
mode: ApprovalMode;
|
|
1955
1969
|
sentAt: string | null;
|
|
1956
1970
|
status: InvoiceApprovalStatus;
|
|
1957
1971
|
answeredAt: string | null;
|
|
1958
|
-
|
|
1972
|
+
/**
|
|
1973
|
+
* The issuer's own notes, never shown to the customer
|
|
1974
|
+
*/
|
|
1975
|
+
internalNote: string | null;
|
|
1976
|
+
/**
|
|
1977
|
+
* What the customer said about the request
|
|
1978
|
+
*/
|
|
1979
|
+
externalNote: string | null;
|
|
1959
1980
|
proFormaFile: FileResponse | null;
|
|
1960
|
-
|
|
1981
|
+
files: Array<FileResponse>;
|
|
1961
1982
|
isActive: boolean;
|
|
1962
|
-
remarks: string | null;
|
|
1963
1983
|
rejectionReason: InvoiceApprovalRejectionReason | null;
|
|
1964
1984
|
level: ApprovalReminderLevel | null;
|
|
1965
1985
|
reminderSentAt: string | null;
|
|
@@ -2006,8 +2026,10 @@ export type ViewInvoiceDetailResponse = {
|
|
|
2006
2026
|
totalDiscountAmount: MonetaryDto | null;
|
|
2007
2027
|
globalDiscount: DiscountDto | null;
|
|
2008
2028
|
attachments: Array<FileResponse>;
|
|
2009
|
-
|
|
2010
|
-
|
|
2029
|
+
/**
|
|
2030
|
+
* The files of the active approval
|
|
2031
|
+
*/
|
|
2032
|
+
approvalFiles: Array<FileResponse>;
|
|
2011
2033
|
creditNotes: Array<ViewInvoiceDetailRelatedInvoiceResponse>;
|
|
2012
2034
|
originalInvoice: ViewInvoiceDetailRelatedInvoiceResponse | null;
|
|
2013
2035
|
preparedBy: ViewInvoiceDetailPreparerResponse;
|
|
@@ -2034,7 +2056,7 @@ export type ViewInvoiceDetailResponse = {
|
|
|
2034
2056
|
isOverdue: boolean;
|
|
2035
2057
|
reminders: Array<ViewInvoiceDetailReminderResponse>;
|
|
2036
2058
|
reminderConfigs: Array<ViewInvoiceDetailReminderConfigResponse>;
|
|
2037
|
-
|
|
2059
|
+
approvalMode: ApprovalMode | null;
|
|
2038
2060
|
approval: Array<ViewInvoiceDetailApprovalResponse>;
|
|
2039
2061
|
hasChangesSinceApprovalSent: boolean;
|
|
2040
2062
|
isEditable: boolean;
|
|
@@ -2135,6 +2157,7 @@ export type ViewInvoiceIndexFilterQuery = {
|
|
|
2135
2157
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2136
2158
|
isApprovalCancelled?: boolean;
|
|
2137
2159
|
isExternallyCreated?: boolean;
|
|
2160
|
+
poNumber?: string;
|
|
2138
2161
|
};
|
|
2139
2162
|
export type InvoiceIndexCustomerResponse = {
|
|
2140
2163
|
uuid: string;
|
|
@@ -2168,7 +2191,7 @@ export type InvoiceIndexResponse = {
|
|
|
2168
2191
|
isOverdue: boolean;
|
|
2169
2192
|
deliveryStatus: InvoiceDeliveryStatus;
|
|
2170
2193
|
customFields: Array<TextCustomFieldValueDto | TextArrayCustomFieldValueDto | NumberCustomFieldValueDto | BooleanCustomFieldValueDto | DateCustomFieldValueDto | TimestampCustomFieldValueDto | SingleSelectCustomFieldValueDto | MultiSelectCustomFieldValueDto | MonetaryCustomFieldValueDto | ReferenceCustomFieldValueDto>;
|
|
2171
|
-
|
|
2194
|
+
approvalMode: ApprovalMode | null;
|
|
2172
2195
|
hasChangesSinceApprovalSent: boolean;
|
|
2173
2196
|
approval: InvoiceIndexApprovalResponse | null;
|
|
2174
2197
|
};
|
|
@@ -2255,6 +2278,14 @@ export type FileUnconfirmedError = {
|
|
|
2255
2278
|
export type UpdateInvoiceAttachmentsCommand = {
|
|
2256
2279
|
fileUuids: Array<string>;
|
|
2257
2280
|
};
|
|
2281
|
+
export type CustomerHasNoApprovalEmailError = {
|
|
2282
|
+
/**
|
|
2283
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
2284
|
+
*/
|
|
2285
|
+
detail?: string;
|
|
2286
|
+
status: '409';
|
|
2287
|
+
code: 'customer_has_no_approval_email';
|
|
2288
|
+
};
|
|
2258
2289
|
export type InvoiceSequenceCounterNotFoundError = {
|
|
2259
2290
|
/**
|
|
2260
2291
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -2485,13 +2516,16 @@ export type DuplicateInvoiceResponse = {
|
|
|
2485
2516
|
export type CopyCreditNoteToInvoiceResponse = {
|
|
2486
2517
|
uuid: string;
|
|
2487
2518
|
};
|
|
2488
|
-
export type
|
|
2519
|
+
export type ApprovalModeChangeWithActiveApprovalError = {
|
|
2489
2520
|
/**
|
|
2490
2521
|
* a human-readable explanation specific to this occurrence of the problem
|
|
2491
2522
|
*/
|
|
2492
2523
|
detail?: string;
|
|
2493
2524
|
status: '409';
|
|
2494
|
-
code: '
|
|
2525
|
+
code: 'approval_mode_change_with_active_approval';
|
|
2526
|
+
};
|
|
2527
|
+
export type SetInvoiceApprovalModeCommand = {
|
|
2528
|
+
approvalMode: ApprovalMode | null;
|
|
2495
2529
|
};
|
|
2496
2530
|
export type InvoiceNotFinalizedError = {
|
|
2497
2531
|
/**
|
|
@@ -2526,6 +2560,7 @@ export type PreviewBulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2526
2560
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2527
2561
|
isApprovalCancelled?: boolean;
|
|
2528
2562
|
isExternallyCreated?: boolean;
|
|
2563
|
+
poNumber?: string;
|
|
2529
2564
|
};
|
|
2530
2565
|
export type BulkActionMeta = {
|
|
2531
2566
|
total: number;
|
|
@@ -2575,6 +2610,7 @@ export type BulkMarkInvoiceAsReadyFilterQuery = {
|
|
|
2575
2610
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2576
2611
|
isApprovalCancelled?: boolean;
|
|
2577
2612
|
isExternallyCreated?: boolean;
|
|
2613
|
+
poNumber?: string;
|
|
2578
2614
|
};
|
|
2579
2615
|
export type BulkMarkInvoiceAsReadyResponse = {
|
|
2580
2616
|
meta: BulkActionMeta;
|
|
@@ -2605,6 +2641,7 @@ export type PreviewBulkFinalizeInvoiceFilterQuery = {
|
|
|
2605
2641
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2606
2642
|
isApprovalCancelled?: boolean;
|
|
2607
2643
|
isExternallyCreated?: boolean;
|
|
2644
|
+
poNumber?: string;
|
|
2608
2645
|
};
|
|
2609
2646
|
export type PreviewBulkFinalizeInvoiceResponse = {
|
|
2610
2647
|
meta: BulkActionMeta;
|
|
@@ -2630,6 +2667,7 @@ export type BulkFinalizeInvoiceFilterQuery = {
|
|
|
2630
2667
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2631
2668
|
isApprovalCancelled?: boolean;
|
|
2632
2669
|
isExternallyCreated?: boolean;
|
|
2670
|
+
poNumber?: string;
|
|
2633
2671
|
};
|
|
2634
2672
|
export type BulkFinalizeInvoiceResponse = {
|
|
2635
2673
|
meta: BulkActionMeta;
|
|
@@ -2652,6 +2690,7 @@ export type PreviewBulkDeleteInvoiceFilterQuery = {
|
|
|
2652
2690
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2653
2691
|
isApprovalCancelled?: boolean;
|
|
2654
2692
|
isExternallyCreated?: boolean;
|
|
2693
|
+
poNumber?: string;
|
|
2655
2694
|
};
|
|
2656
2695
|
export type PreviewBulkDeleteInvoiceResponse = {
|
|
2657
2696
|
meta: BulkActionMeta;
|
|
@@ -2674,6 +2713,7 @@ export type BulkDeleteInvoiceFilterQuery = {
|
|
|
2674
2713
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
2675
2714
|
isApprovalCancelled?: boolean;
|
|
2676
2715
|
isExternallyCreated?: boolean;
|
|
2716
|
+
poNumber?: string;
|
|
2677
2717
|
};
|
|
2678
2718
|
export type BulkDeleteInvoiceResponse = {
|
|
2679
2719
|
meta: BulkActionMeta;
|
|
@@ -2710,6 +2750,7 @@ export declare enum ActivityType {
|
|
|
2710
2750
|
INVOICE_MARKED_AS_READY = "invoice-marked-as-ready",
|
|
2711
2751
|
INVOICE_MARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-marked-as-prior-approval-required",
|
|
2712
2752
|
INVOICE_UNMARKED_AS_PRIOR_APPROVAL_REQUIRED = "invoice-unmarked-as-prior-approval-required",
|
|
2753
|
+
INVOICE_APPROVAL_MODE_CHANGED = "invoice-approval-mode-changed",
|
|
2713
2754
|
INVOICE_MARKED_AS_PAID = "invoice-marked-as-paid",
|
|
2714
2755
|
INVOICE_PAYMENT_CREATED = "invoice-payment-created",
|
|
2715
2756
|
INVOICE_PAYMENT_DELETED = "invoice-payment-deleted",
|
|
@@ -2719,6 +2760,7 @@ export declare enum ActivityType {
|
|
|
2719
2760
|
INVOICE_APPROVAL_CANCELLED = "invoice-approval-cancelled",
|
|
2720
2761
|
INVOICE_APPROVAL_EXPIRED = "invoice-approval-expired",
|
|
2721
2762
|
INVOICE_APPROVAL_REMINDER_SENT = "invoice-approval-reminder-sent",
|
|
2763
|
+
INVOICE_APPROVAL_UPDATED = "invoice-approval-updated",
|
|
2722
2764
|
INVOICE_FINALIZATION_BLOCKED = "invoice-finalization-blocked",
|
|
2723
2765
|
DUNNING_CASE_REMINDER_SENT = "dunning-case-reminder-sent",
|
|
2724
2766
|
CREDIT_NOTE_CREATED = "credit-note-created",
|
|
@@ -3194,6 +3236,14 @@ export type ViewPublicDunningCaseReminderResponse = {
|
|
|
3194
3236
|
outstandingInvoices: Array<ViewPublicDunningCaseReminderOutstandingInvoiceResponse>;
|
|
3195
3237
|
totalFee: MonetaryDto;
|
|
3196
3238
|
};
|
|
3239
|
+
export type ApprovalRequestedOnFinalizationError = {
|
|
3240
|
+
/**
|
|
3241
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3242
|
+
*/
|
|
3243
|
+
detail?: string;
|
|
3244
|
+
status: '409';
|
|
3245
|
+
code: 'approval_requested_on_finalization';
|
|
3246
|
+
};
|
|
3197
3247
|
export type ApprovalRequiresEditableInvoiceError = {
|
|
3198
3248
|
/**
|
|
3199
3249
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -3226,15 +3276,7 @@ export type ApprovalAlreadySentError = {
|
|
|
3226
3276
|
status: '409';
|
|
3227
3277
|
code: 'approval_already_sent_error';
|
|
3228
3278
|
};
|
|
3229
|
-
export type
|
|
3230
|
-
/**
|
|
3231
|
-
* a human-readable explanation specific to this occurrence of the problem
|
|
3232
|
-
*/
|
|
3233
|
-
detail?: string;
|
|
3234
|
-
status: '409';
|
|
3235
|
-
code: 'customer_has_no_approval_email';
|
|
3236
|
-
};
|
|
3237
|
-
export type PreviewBulkSendInvoiceApprovalFilterQuery = {
|
|
3279
|
+
export type PreviewBulkSendProFormaApprovalFilterQuery = {
|
|
3238
3280
|
statuses?: Array<InvoiceStatus>;
|
|
3239
3281
|
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
3240
3282
|
customerUuids?: Array<string>;
|
|
@@ -3251,12 +3293,13 @@ export type PreviewBulkSendInvoiceApprovalFilterQuery = {
|
|
|
3251
3293
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
3252
3294
|
isApprovalCancelled?: boolean;
|
|
3253
3295
|
isExternallyCreated?: boolean;
|
|
3296
|
+
poNumber?: string;
|
|
3254
3297
|
};
|
|
3255
|
-
export type
|
|
3298
|
+
export type PreviewBulkSendProFormaApprovalResponse = {
|
|
3256
3299
|
meta: BulkActionMeta;
|
|
3257
3300
|
skipped: Array<BulkActionSkippedItem>;
|
|
3258
3301
|
};
|
|
3259
|
-
export type
|
|
3302
|
+
export type BulkSendProFormaApprovalFilterQuery = {
|
|
3260
3303
|
statuses?: Array<InvoiceStatus>;
|
|
3261
3304
|
lifecycleStatuses?: Array<InvoiceLifecycleStatus>;
|
|
3262
3305
|
customerUuids?: Array<string>;
|
|
@@ -3273,8 +3316,9 @@ export type BulkSendInvoiceApprovalFilterQuery = {
|
|
|
3273
3316
|
approvalStatuses?: Array<ApprovalDisplayStatus>;
|
|
3274
3317
|
isApprovalCancelled?: boolean;
|
|
3275
3318
|
isExternallyCreated?: boolean;
|
|
3319
|
+
poNumber?: string;
|
|
3276
3320
|
};
|
|
3277
|
-
export type
|
|
3321
|
+
export type BulkSendProFormaApprovalResponse = {
|
|
3278
3322
|
meta: BulkActionMeta;
|
|
3279
3323
|
skipped: Array<BulkActionSkippedItem>;
|
|
3280
3324
|
};
|
|
@@ -3303,8 +3347,11 @@ export type MissingInvoiceApprovalFileError = {
|
|
|
3303
3347
|
code: 'missing_invoice_approval_file';
|
|
3304
3348
|
};
|
|
3305
3349
|
export type ApproveInvoiceApprovalCommand = {
|
|
3350
|
+
/**
|
|
3351
|
+
* Replaces the files of the approval
|
|
3352
|
+
*/
|
|
3306
3353
|
fileUuids?: Array<string>;
|
|
3307
|
-
|
|
3354
|
+
internalNote?: string | null;
|
|
3308
3355
|
};
|
|
3309
3356
|
export type MissingRejectionRemarksError = {
|
|
3310
3357
|
/**
|
|
@@ -3315,8 +3362,11 @@ export type MissingRejectionRemarksError = {
|
|
|
3315
3362
|
code: 'missing_rejection_remarks';
|
|
3316
3363
|
};
|
|
3317
3364
|
export type RejectInvoiceApprovalCommand = {
|
|
3318
|
-
|
|
3365
|
+
internalNote?: string | null;
|
|
3319
3366
|
reason: InvoiceApprovalRejectionReason;
|
|
3367
|
+
/**
|
|
3368
|
+
* Replaces the files of the approval
|
|
3369
|
+
*/
|
|
3320
3370
|
fileUuids?: Array<string>;
|
|
3321
3371
|
};
|
|
3322
3372
|
export type InvoiceApprovalAlreadyCancelledError = {
|
|
@@ -3327,6 +3377,14 @@ export type InvoiceApprovalAlreadyCancelledError = {
|
|
|
3327
3377
|
status: '409';
|
|
3328
3378
|
code: 'invoice_approval_already_cancelled';
|
|
3329
3379
|
};
|
|
3380
|
+
export type InvoiceApprovalNotActiveError = {
|
|
3381
|
+
/**
|
|
3382
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3383
|
+
*/
|
|
3384
|
+
detail?: string;
|
|
3385
|
+
status: '409';
|
|
3386
|
+
code: 'invoice_approval_not_active';
|
|
3387
|
+
};
|
|
3330
3388
|
export type InvalidCancelableInvoiceApprovalStatusError = {
|
|
3331
3389
|
/**
|
|
3332
3390
|
* a human-readable explanation specific to this occurrence of the problem
|
|
@@ -3351,8 +3409,19 @@ export type ApprovalRestartRequiresActiveApprovalError = {
|
|
|
3351
3409
|
status: '409';
|
|
3352
3410
|
code: 'approval_restart_requires_active_approval';
|
|
3353
3411
|
};
|
|
3412
|
+
export type UpdateInvoiceApprovalCommand = {
|
|
3413
|
+
/**
|
|
3414
|
+
* The issuer's own notes, never shown to the customer
|
|
3415
|
+
*/
|
|
3416
|
+
internalNote: string | null;
|
|
3417
|
+
/**
|
|
3418
|
+
* Replaces the files of the approval
|
|
3419
|
+
*/
|
|
3420
|
+
fileUuids: Array<string>;
|
|
3421
|
+
};
|
|
3354
3422
|
export type ViewInvoiceApprovalIndexFilterQuery = {
|
|
3355
3423
|
status?: InvoiceApprovalStatus;
|
|
3424
|
+
mode?: ApprovalMode;
|
|
3356
3425
|
invoiceUuid?: string;
|
|
3357
3426
|
customerUuid?: string;
|
|
3358
3427
|
level?: ApprovalReminderLevel;
|
|
@@ -3382,17 +3451,30 @@ export type ViewInvoiceApprovalIndexRecipientResponse = {
|
|
|
3382
3451
|
export type ViewInvoiceApprovalIndexItemResponse = {
|
|
3383
3452
|
uuid: string;
|
|
3384
3453
|
createdAt: string;
|
|
3454
|
+
mode: ApprovalMode;
|
|
3385
3455
|
status: InvoiceApprovalStatus;
|
|
3386
3456
|
sentAt: string | 'infinity' | '-infinity' | null;
|
|
3387
3457
|
answeredAt: string | 'infinity' | '-infinity' | null;
|
|
3388
3458
|
nextReminderOn: string | 'infinity' | '-infinity' | null;
|
|
3389
3459
|
expiresOn: string | 'infinity' | '-infinity' | null;
|
|
3390
|
-
|
|
3460
|
+
internalNote: string | null;
|
|
3461
|
+
externalNote: string | null;
|
|
3391
3462
|
rejectionReason: InvoiceApprovalRejectionReason | null;
|
|
3392
3463
|
level: ApprovalReminderLevel | null;
|
|
3393
3464
|
lastReminderSentAt: string | 'infinity' | '-infinity' | null;
|
|
3465
|
+
/**
|
|
3466
|
+
* Of the approved document: the pro forma or the finalized invoice
|
|
3467
|
+
*/
|
|
3468
|
+
netAmount: MonetaryDto;
|
|
3469
|
+
/**
|
|
3470
|
+
* Of the approved document: the pro forma or the finalized invoice
|
|
3471
|
+
*/
|
|
3472
|
+
grossAmount: MonetaryDto;
|
|
3394
3473
|
invoice: ViewInvoiceApprovalIndexInvoiceResponse;
|
|
3395
|
-
|
|
3474
|
+
/**
|
|
3475
|
+
* Null for finalized approvals, which approve the invoice itself
|
|
3476
|
+
*/
|
|
3477
|
+
proForma: ViewInvoiceApprovalIndexProFormaResponse | null;
|
|
3396
3478
|
customer: ViewInvoiceApprovalIndexCustomerResponse;
|
|
3397
3479
|
recipient: ViewInvoiceApprovalIndexRecipientResponse;
|
|
3398
3480
|
};
|
|
@@ -3504,6 +3586,10 @@ export type ViewApprovalReminderConfigItemResponse = {
|
|
|
3504
3586
|
};
|
|
3505
3587
|
export type ViewApprovalReminderConfigResponse = {
|
|
3506
3588
|
items: Array<ViewApprovalReminderConfigItemResponse>;
|
|
3589
|
+
/**
|
|
3590
|
+
* The mail that requests the approval
|
|
3591
|
+
*/
|
|
3592
|
+
approvalMailTemplate: MailTemplateResponse;
|
|
3507
3593
|
};
|
|
3508
3594
|
export type ApprovalReminderConfigNotChronologicalError = {
|
|
3509
3595
|
/**
|
|
@@ -3538,6 +3624,91 @@ export type ApprovalReminderConfigCommand = {
|
|
|
3538
3624
|
export type UpdateApprovalReminderConfigCommand = {
|
|
3539
3625
|
reminders: Array<ApprovalReminderConfigCommand>;
|
|
3540
3626
|
};
|
|
3627
|
+
export type UpdateApprovalMailTemplateCommand = {
|
|
3628
|
+
subject: LocalizedStringDto;
|
|
3629
|
+
/**
|
|
3630
|
+
* HTML of the body
|
|
3631
|
+
*/
|
|
3632
|
+
body: LocalizedStringDto;
|
|
3633
|
+
};
|
|
3634
|
+
export type ViewApprovalFollowUpPauseIndexFilterQuery = {
|
|
3635
|
+
/**
|
|
3636
|
+
* True for pauses that ended before today, false for current and future pauses
|
|
3637
|
+
*/
|
|
3638
|
+
isPast?: boolean;
|
|
3639
|
+
};
|
|
3640
|
+
export type DateRangeResponse = {
|
|
3641
|
+
startDate: string | 'infinity' | '-infinity';
|
|
3642
|
+
endDate: string | 'infinity' | '-infinity';
|
|
3643
|
+
};
|
|
3644
|
+
export type ViewApprovalFollowUpPauseIndexItemResponse = {
|
|
3645
|
+
uuid: string;
|
|
3646
|
+
name: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* Both the start and the end date are paused
|
|
3649
|
+
*/
|
|
3650
|
+
period: DateRangeResponse;
|
|
3651
|
+
};
|
|
3652
|
+
export type ViewApprovalFollowUpPauseIndexResponse = {
|
|
3653
|
+
items: Array<ViewApprovalFollowUpPauseIndexItemResponse>;
|
|
3654
|
+
};
|
|
3655
|
+
export type ApprovalFollowUpPauseOverlapError = {
|
|
3656
|
+
/**
|
|
3657
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3658
|
+
*/
|
|
3659
|
+
detail?: string;
|
|
3660
|
+
status: '409';
|
|
3661
|
+
code: 'approval_follow_up_pause_overlap';
|
|
3662
|
+
};
|
|
3663
|
+
export type ApprovalFollowUpPausePeriodInPastError = {
|
|
3664
|
+
/**
|
|
3665
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3666
|
+
*/
|
|
3667
|
+
detail?: string;
|
|
3668
|
+
status: '400';
|
|
3669
|
+
code: 'approval_follow_up_pause_period_in_past';
|
|
3670
|
+
};
|
|
3671
|
+
export type CreateApprovalFollowUpPauseCommand = {
|
|
3672
|
+
name: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* Both the start and the end date are paused
|
|
3675
|
+
*/
|
|
3676
|
+
period: DateRangeDto;
|
|
3677
|
+
};
|
|
3678
|
+
export type CreateApprovalFollowUpPauseResponse = {
|
|
3679
|
+
uuid: string;
|
|
3680
|
+
};
|
|
3681
|
+
export type ApprovalFollowUpPauseNotFoundError = {
|
|
3682
|
+
/**
|
|
3683
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3684
|
+
*/
|
|
3685
|
+
detail?: string;
|
|
3686
|
+
status: '404';
|
|
3687
|
+
code: 'approval_follow_up_pause_not_found';
|
|
3688
|
+
};
|
|
3689
|
+
export type ApprovalFollowUpPausePastError = {
|
|
3690
|
+
/**
|
|
3691
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3692
|
+
*/
|
|
3693
|
+
detail?: string;
|
|
3694
|
+
status: '409';
|
|
3695
|
+
code: 'approval_follow_up_pause_past';
|
|
3696
|
+
};
|
|
3697
|
+
export type ApprovalFollowUpPauseStartedError = {
|
|
3698
|
+
/**
|
|
3699
|
+
* a human-readable explanation specific to this occurrence of the problem
|
|
3700
|
+
*/
|
|
3701
|
+
detail?: string;
|
|
3702
|
+
status: '409';
|
|
3703
|
+
code: 'approval_follow_up_pause_started';
|
|
3704
|
+
};
|
|
3705
|
+
export type UpdateApprovalFollowUpPauseCommand = {
|
|
3706
|
+
name: string;
|
|
3707
|
+
/**
|
|
3708
|
+
* Both the start and the end date are paused
|
|
3709
|
+
*/
|
|
3710
|
+
period: DateRangeDto;
|
|
3711
|
+
};
|
|
3541
3712
|
export declare enum PeppolProvider {
|
|
3542
3713
|
SOLUZ = "soluz"
|
|
3543
3714
|
}
|
|
@@ -5422,7 +5593,7 @@ export type FinalizeInvoiceV1Errors = {
|
|
|
5422
5593
|
};
|
|
5423
5594
|
409: {
|
|
5424
5595
|
traceId?: string | null;
|
|
5425
|
-
errors?: Array<InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
|
|
5596
|
+
errors?: Array<InvoiceNotStandardError | CustomerHasNoApprovalEmailError | InvoiceHasNoLinesError | InvoiceAlreadyFinalizedError | InvoiceFinalizationRequiresApprovalError | InvoiceIssuedOnBeforeLastIssuedError | InvoiceIssuedOnInClosedPeriodError>;
|
|
5426
5597
|
};
|
|
5427
5598
|
500: {
|
|
5428
5599
|
traceId?: string | null;
|
|
@@ -5650,60 +5821,33 @@ export type MarkInvoiceAsDraftV1Responses = {
|
|
|
5650
5821
|
204: void;
|
|
5651
5822
|
};
|
|
5652
5823
|
export type MarkInvoiceAsDraftV1Response = MarkInvoiceAsDraftV1Responses[keyof MarkInvoiceAsDraftV1Responses];
|
|
5653
|
-
export type
|
|
5654
|
-
body
|
|
5655
|
-
path: {
|
|
5656
|
-
uuid: string;
|
|
5657
|
-
};
|
|
5658
|
-
query?: never;
|
|
5659
|
-
url: '/api/v1/invoices/{uuid}/mark-as-prior-approval-required';
|
|
5660
|
-
};
|
|
5661
|
-
export type MarkInvoiceAsPriorApprovalRequiredV1Errors = {
|
|
5662
|
-
404: {
|
|
5663
|
-
traceId?: string | null;
|
|
5664
|
-
errors?: Array<InvoiceNotFoundError>;
|
|
5665
|
-
};
|
|
5666
|
-
409: {
|
|
5667
|
-
traceId?: string | null;
|
|
5668
|
-
errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError>;
|
|
5669
|
-
};
|
|
5670
|
-
500: {
|
|
5671
|
-
traceId?: string | null;
|
|
5672
|
-
errors?: Array<InternalServerApiError>;
|
|
5673
|
-
};
|
|
5674
|
-
};
|
|
5675
|
-
export type MarkInvoiceAsPriorApprovalRequiredV1Error = MarkInvoiceAsPriorApprovalRequiredV1Errors[keyof MarkInvoiceAsPriorApprovalRequiredV1Errors];
|
|
5676
|
-
export type MarkInvoiceAsPriorApprovalRequiredV1Responses = {
|
|
5677
|
-
204: void;
|
|
5678
|
-
};
|
|
5679
|
-
export type MarkInvoiceAsPriorApprovalRequiredV1Response = MarkInvoiceAsPriorApprovalRequiredV1Responses[keyof MarkInvoiceAsPriorApprovalRequiredV1Responses];
|
|
5680
|
-
export type UnmarkInvoiceAsPriorApprovalRequiredV1Data = {
|
|
5681
|
-
body?: never;
|
|
5824
|
+
export type SetInvoiceApprovalModeV1Data = {
|
|
5825
|
+
body: SetInvoiceApprovalModeCommand;
|
|
5682
5826
|
path: {
|
|
5683
5827
|
uuid: string;
|
|
5684
5828
|
};
|
|
5685
5829
|
query?: never;
|
|
5686
|
-
url: '/api/v1/invoices/{uuid}/
|
|
5830
|
+
url: '/api/v1/invoices/{uuid}/approval-mode';
|
|
5687
5831
|
};
|
|
5688
|
-
export type
|
|
5832
|
+
export type SetInvoiceApprovalModeV1Errors = {
|
|
5689
5833
|
404: {
|
|
5690
5834
|
traceId?: string | null;
|
|
5691
5835
|
errors?: Array<InvoiceNotFoundError>;
|
|
5692
5836
|
};
|
|
5693
5837
|
409: {
|
|
5694
5838
|
traceId?: string | null;
|
|
5695
|
-
errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError |
|
|
5839
|
+
errors?: Array<InvoiceNotStandardError | InvoiceNotEditableError | ApprovalModeChangeWithActiveApprovalError>;
|
|
5696
5840
|
};
|
|
5697
5841
|
500: {
|
|
5698
5842
|
traceId?: string | null;
|
|
5699
5843
|
errors?: Array<InternalServerApiError>;
|
|
5700
5844
|
};
|
|
5701
5845
|
};
|
|
5702
|
-
export type
|
|
5703
|
-
export type
|
|
5846
|
+
export type SetInvoiceApprovalModeV1Error = SetInvoiceApprovalModeV1Errors[keyof SetInvoiceApprovalModeV1Errors];
|
|
5847
|
+
export type SetInvoiceApprovalModeV1Responses = {
|
|
5704
5848
|
204: void;
|
|
5705
5849
|
};
|
|
5706
|
-
export type
|
|
5850
|
+
export type SetInvoiceApprovalModeV1Response = SetInvoiceApprovalModeV1Responses[keyof SetInvoiceApprovalModeV1Responses];
|
|
5707
5851
|
export type MarkInvoiceAsDisputedV1Data = {
|
|
5708
5852
|
body?: never;
|
|
5709
5853
|
path: {
|
|
@@ -6245,69 +6389,69 @@ export type ViewPublicDunningCaseReminderV1Responses = {
|
|
|
6245
6389
|
200: ViewPublicDunningCaseReminderResponse;
|
|
6246
6390
|
};
|
|
6247
6391
|
export type ViewPublicDunningCaseReminderV1Response = ViewPublicDunningCaseReminderV1Responses[keyof ViewPublicDunningCaseReminderV1Responses];
|
|
6248
|
-
export type
|
|
6392
|
+
export type SendProFormaApprovalV1Data = {
|
|
6249
6393
|
body?: never;
|
|
6250
6394
|
path: {
|
|
6251
6395
|
uuid: string;
|
|
6252
6396
|
};
|
|
6253
6397
|
query?: never;
|
|
6254
|
-
url: '/api/v1/invoices/{uuid}/send-approval';
|
|
6398
|
+
url: '/api/v1/invoices/{uuid}/send-pro-forma-approval';
|
|
6255
6399
|
};
|
|
6256
|
-
export type
|
|
6400
|
+
export type SendProFormaApprovalV1Errors = {
|
|
6257
6401
|
404: {
|
|
6258
6402
|
traceId?: string | null;
|
|
6259
6403
|
errors?: Array<InvoiceNotFoundError>;
|
|
6260
6404
|
};
|
|
6261
6405
|
409: {
|
|
6262
6406
|
traceId?: string | null;
|
|
6263
|
-
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoApprovalEmailError>;
|
|
6407
|
+
errors?: Array<ApprovalRequestedOnFinalizationError | ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalAlreadySentError | CustomerHasNoApprovalEmailError>;
|
|
6264
6408
|
};
|
|
6265
6409
|
500: {
|
|
6266
6410
|
traceId?: string | null;
|
|
6267
6411
|
errors?: Array<InternalServerApiError>;
|
|
6268
6412
|
};
|
|
6269
6413
|
};
|
|
6270
|
-
export type
|
|
6271
|
-
export type
|
|
6414
|
+
export type SendProFormaApprovalV1Error = SendProFormaApprovalV1Errors[keyof SendProFormaApprovalV1Errors];
|
|
6415
|
+
export type PreviewBulkSendProFormaApprovalV1Data = {
|
|
6272
6416
|
body?: never;
|
|
6273
6417
|
path?: never;
|
|
6274
6418
|
query?: {
|
|
6275
|
-
filter?:
|
|
6419
|
+
filter?: PreviewBulkSendProFormaApprovalFilterQuery;
|
|
6276
6420
|
search?: string;
|
|
6277
6421
|
};
|
|
6278
|
-
url: '/api/v1/invoices/send-approval/preview';
|
|
6422
|
+
url: '/api/v1/invoices/send-pro-forma-approval/preview';
|
|
6279
6423
|
};
|
|
6280
|
-
export type
|
|
6424
|
+
export type PreviewBulkSendProFormaApprovalV1Errors = {
|
|
6281
6425
|
500: {
|
|
6282
6426
|
traceId?: string | null;
|
|
6283
6427
|
errors?: Array<InternalServerApiError>;
|
|
6284
6428
|
};
|
|
6285
6429
|
};
|
|
6286
|
-
export type
|
|
6287
|
-
export type
|
|
6288
|
-
200:
|
|
6430
|
+
export type PreviewBulkSendProFormaApprovalV1Error = PreviewBulkSendProFormaApprovalV1Errors[keyof PreviewBulkSendProFormaApprovalV1Errors];
|
|
6431
|
+
export type PreviewBulkSendProFormaApprovalV1Responses = {
|
|
6432
|
+
200: PreviewBulkSendProFormaApprovalResponse;
|
|
6289
6433
|
};
|
|
6290
|
-
export type
|
|
6291
|
-
export type
|
|
6434
|
+
export type PreviewBulkSendProFormaApprovalV1Response = PreviewBulkSendProFormaApprovalV1Responses[keyof PreviewBulkSendProFormaApprovalV1Responses];
|
|
6435
|
+
export type BulkSendProFormaApprovalV1Data = {
|
|
6292
6436
|
body?: never;
|
|
6293
6437
|
path?: never;
|
|
6294
6438
|
query?: {
|
|
6295
|
-
filter?:
|
|
6439
|
+
filter?: BulkSendProFormaApprovalFilterQuery;
|
|
6296
6440
|
search?: string;
|
|
6297
6441
|
};
|
|
6298
|
-
url: '/api/v1/invoices/send-approval';
|
|
6442
|
+
url: '/api/v1/invoices/send-pro-forma-approval';
|
|
6299
6443
|
};
|
|
6300
|
-
export type
|
|
6444
|
+
export type BulkSendProFormaApprovalV1Errors = {
|
|
6301
6445
|
500: {
|
|
6302
6446
|
traceId?: string | null;
|
|
6303
6447
|
errors?: Array<InternalServerApiError>;
|
|
6304
6448
|
};
|
|
6305
6449
|
};
|
|
6306
|
-
export type
|
|
6307
|
-
export type
|
|
6308
|
-
200:
|
|
6450
|
+
export type BulkSendProFormaApprovalV1Error = BulkSendProFormaApprovalV1Errors[keyof BulkSendProFormaApprovalV1Errors];
|
|
6451
|
+
export type BulkSendProFormaApprovalV1Responses = {
|
|
6452
|
+
200: BulkSendProFormaApprovalResponse;
|
|
6309
6453
|
};
|
|
6310
|
-
export type
|
|
6454
|
+
export type BulkSendProFormaApprovalV1Response = BulkSendProFormaApprovalV1Responses[keyof BulkSendProFormaApprovalV1Responses];
|
|
6311
6455
|
export type ApproveInvoiceApprovalV1Data = {
|
|
6312
6456
|
body: ApproveInvoiceApprovalCommand;
|
|
6313
6457
|
path: {
|
|
@@ -6327,7 +6471,7 @@ export type ApproveInvoiceApprovalV1Errors = {
|
|
|
6327
6471
|
};
|
|
6328
6472
|
409: {
|
|
6329
6473
|
traceId?: string | null;
|
|
6330
|
-
errors?: Array<InvalidInvoiceApprovalTransitionError>;
|
|
6474
|
+
errors?: Array<InvalidInvoiceApprovalTransitionError | FileUnconfirmedError>;
|
|
6331
6475
|
};
|
|
6332
6476
|
500: {
|
|
6333
6477
|
traceId?: string | null;
|
|
@@ -6358,7 +6502,7 @@ export type RejectInvoiceApprovalV1Errors = {
|
|
|
6358
6502
|
};
|
|
6359
6503
|
409: {
|
|
6360
6504
|
traceId?: string | null;
|
|
6361
|
-
errors?: Array<InvalidInvoiceApprovalTransitionError>;
|
|
6505
|
+
errors?: Array<InvalidInvoiceApprovalTransitionError | FileUnconfirmedError>;
|
|
6362
6506
|
};
|
|
6363
6507
|
500: {
|
|
6364
6508
|
traceId?: string | null;
|
|
@@ -6385,7 +6529,7 @@ export type CancelInvoiceApprovalV1Errors = {
|
|
|
6385
6529
|
};
|
|
6386
6530
|
409: {
|
|
6387
6531
|
traceId?: string | null;
|
|
6388
|
-
errors?: Array<InvoiceApprovalAlreadyCancelledError | InvalidCancelableInvoiceApprovalStatusError | CancelInvoiceApprovalOfFinalizedInvoiceError>;
|
|
6532
|
+
errors?: Array<InvoiceApprovalAlreadyCancelledError | InvoiceApprovalNotActiveError | InvalidCancelableInvoiceApprovalStatusError | CancelInvoiceApprovalOfFinalizedInvoiceError>;
|
|
6389
6533
|
};
|
|
6390
6534
|
500: {
|
|
6391
6535
|
traceId?: string | null;
|
|
@@ -6397,29 +6541,60 @@ export type CancelInvoiceApprovalV1Responses = {
|
|
|
6397
6541
|
204: void;
|
|
6398
6542
|
};
|
|
6399
6543
|
export type CancelInvoiceApprovalV1Response = CancelInvoiceApprovalV1Responses[keyof CancelInvoiceApprovalV1Responses];
|
|
6400
|
-
export type
|
|
6544
|
+
export type RestartProFormaApprovalV1Data = {
|
|
6401
6545
|
body?: never;
|
|
6402
6546
|
path: {
|
|
6403
6547
|
uuid: string;
|
|
6404
6548
|
};
|
|
6405
6549
|
query?: never;
|
|
6406
|
-
url: '/api/v1/invoices/{uuid}/restart-approval';
|
|
6550
|
+
url: '/api/v1/invoices/{uuid}/restart-pro-forma-approval';
|
|
6407
6551
|
};
|
|
6408
|
-
export type
|
|
6552
|
+
export type RestartProFormaApprovalV1Errors = {
|
|
6409
6553
|
404: {
|
|
6410
6554
|
traceId?: string | null;
|
|
6411
6555
|
errors?: Array<InvoiceNotFoundError>;
|
|
6412
6556
|
};
|
|
6413
6557
|
409: {
|
|
6414
6558
|
traceId?: string | null;
|
|
6415
|
-
errors?: Array<ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError | CustomerHasNoApprovalEmailError>;
|
|
6559
|
+
errors?: Array<ApprovalRequestedOnFinalizationError | ApprovalRequiresEditableInvoiceError | ApprovalRequiresCustomerPriorApprovalError | ApprovalRequiresStandardInvoiceError | ApprovalRestartRequiresActiveApprovalError | CustomerHasNoApprovalEmailError>;
|
|
6560
|
+
};
|
|
6561
|
+
500: {
|
|
6562
|
+
traceId?: string | null;
|
|
6563
|
+
errors?: Array<InternalServerApiError>;
|
|
6564
|
+
};
|
|
6565
|
+
};
|
|
6566
|
+
export type RestartProFormaApprovalV1Error = RestartProFormaApprovalV1Errors[keyof RestartProFormaApprovalV1Errors];
|
|
6567
|
+
export type UpdateInvoiceApprovalV1Data = {
|
|
6568
|
+
body: UpdateInvoiceApprovalCommand;
|
|
6569
|
+
path: {
|
|
6570
|
+
uuid: string;
|
|
6571
|
+
};
|
|
6572
|
+
query?: never;
|
|
6573
|
+
url: '/api/v1/invoice-approvals/{uuid}';
|
|
6574
|
+
};
|
|
6575
|
+
export type UpdateInvoiceApprovalV1Errors = {
|
|
6576
|
+
400: {
|
|
6577
|
+
traceId?: string | null;
|
|
6578
|
+
errors?: Array<MissingInvoiceApprovalFileError>;
|
|
6579
|
+
};
|
|
6580
|
+
404: {
|
|
6581
|
+
traceId?: string | null;
|
|
6582
|
+
errors?: Array<InvoiceApprovalNotFoundError | FileNotFoundError>;
|
|
6583
|
+
};
|
|
6584
|
+
409: {
|
|
6585
|
+
traceId?: string | null;
|
|
6586
|
+
errors?: Array<InvoiceApprovalNotActiveError | FileUnconfirmedError>;
|
|
6416
6587
|
};
|
|
6417
6588
|
500: {
|
|
6418
6589
|
traceId?: string | null;
|
|
6419
6590
|
errors?: Array<InternalServerApiError>;
|
|
6420
6591
|
};
|
|
6421
6592
|
};
|
|
6422
|
-
export type
|
|
6593
|
+
export type UpdateInvoiceApprovalV1Error = UpdateInvoiceApprovalV1Errors[keyof UpdateInvoiceApprovalV1Errors];
|
|
6594
|
+
export type UpdateInvoiceApprovalV1Responses = {
|
|
6595
|
+
204: void;
|
|
6596
|
+
};
|
|
6597
|
+
export type UpdateInvoiceApprovalV1Response = UpdateInvoiceApprovalV1Responses[keyof UpdateInvoiceApprovalV1Responses];
|
|
6423
6598
|
export type ViewInvoiceApprovalIndexV1Data = {
|
|
6424
6599
|
body?: never;
|
|
6425
6600
|
path?: never;
|
|
@@ -6509,6 +6684,133 @@ export type UpdateApprovalReminderConfigV1Responses = {
|
|
|
6509
6684
|
204: void;
|
|
6510
6685
|
};
|
|
6511
6686
|
export type UpdateApprovalReminderConfigV1Response = UpdateApprovalReminderConfigV1Responses[keyof UpdateApprovalReminderConfigV1Responses];
|
|
6687
|
+
export type UpdateApprovalMailTemplateV1Data = {
|
|
6688
|
+
body: UpdateApprovalMailTemplateCommand;
|
|
6689
|
+
path?: never;
|
|
6690
|
+
query?: never;
|
|
6691
|
+
url: '/api/v1/issuers/approval-mail-template';
|
|
6692
|
+
};
|
|
6693
|
+
export type UpdateApprovalMailTemplateV1Errors = {
|
|
6694
|
+
404: {
|
|
6695
|
+
traceId?: string | null;
|
|
6696
|
+
errors?: Array<IssuerNotFoundError>;
|
|
6697
|
+
};
|
|
6698
|
+
500: {
|
|
6699
|
+
traceId?: string | null;
|
|
6700
|
+
errors?: Array<InternalServerApiError>;
|
|
6701
|
+
};
|
|
6702
|
+
};
|
|
6703
|
+
export type UpdateApprovalMailTemplateV1Error = UpdateApprovalMailTemplateV1Errors[keyof UpdateApprovalMailTemplateV1Errors];
|
|
6704
|
+
export type UpdateApprovalMailTemplateV1Responses = {
|
|
6705
|
+
204: void;
|
|
6706
|
+
};
|
|
6707
|
+
export type UpdateApprovalMailTemplateV1Response = UpdateApprovalMailTemplateV1Responses[keyof UpdateApprovalMailTemplateV1Responses];
|
|
6708
|
+
export type ViewApprovalFollowUpPauseIndexV1Data = {
|
|
6709
|
+
body?: never;
|
|
6710
|
+
path?: never;
|
|
6711
|
+
query?: {
|
|
6712
|
+
filter?: ViewApprovalFollowUpPauseIndexFilterQuery;
|
|
6713
|
+
};
|
|
6714
|
+
url: '/api/v1/issuers/approval-follow-up-pauses';
|
|
6715
|
+
};
|
|
6716
|
+
export type ViewApprovalFollowUpPauseIndexV1Errors = {
|
|
6717
|
+
500: {
|
|
6718
|
+
traceId?: string | null;
|
|
6719
|
+
errors?: Array<InternalServerApiError>;
|
|
6720
|
+
};
|
|
6721
|
+
};
|
|
6722
|
+
export type ViewApprovalFollowUpPauseIndexV1Error = ViewApprovalFollowUpPauseIndexV1Errors[keyof ViewApprovalFollowUpPauseIndexV1Errors];
|
|
6723
|
+
export type ViewApprovalFollowUpPauseIndexV1Responses = {
|
|
6724
|
+
200: ViewApprovalFollowUpPauseIndexResponse;
|
|
6725
|
+
};
|
|
6726
|
+
export type ViewApprovalFollowUpPauseIndexV1Response = ViewApprovalFollowUpPauseIndexV1Responses[keyof ViewApprovalFollowUpPauseIndexV1Responses];
|
|
6727
|
+
export type CreateApprovalFollowUpPauseV1Data = {
|
|
6728
|
+
body: CreateApprovalFollowUpPauseCommand;
|
|
6729
|
+
path?: never;
|
|
6730
|
+
query?: never;
|
|
6731
|
+
url: '/api/v1/issuers/approval-follow-up-pauses';
|
|
6732
|
+
};
|
|
6733
|
+
export type CreateApprovalFollowUpPauseV1Errors = {
|
|
6734
|
+
400: {
|
|
6735
|
+
traceId?: string | null;
|
|
6736
|
+
errors?: Array<ApprovalFollowUpPausePeriodInPastError>;
|
|
6737
|
+
};
|
|
6738
|
+
404: {
|
|
6739
|
+
traceId?: string | null;
|
|
6740
|
+
errors?: Array<IssuerNotFoundError>;
|
|
6741
|
+
};
|
|
6742
|
+
409: {
|
|
6743
|
+
traceId?: string | null;
|
|
6744
|
+
errors?: Array<ApprovalFollowUpPauseOverlapError>;
|
|
6745
|
+
};
|
|
6746
|
+
500: {
|
|
6747
|
+
traceId?: string | null;
|
|
6748
|
+
errors?: Array<InternalServerApiError>;
|
|
6749
|
+
};
|
|
6750
|
+
};
|
|
6751
|
+
export type CreateApprovalFollowUpPauseV1Error = CreateApprovalFollowUpPauseV1Errors[keyof CreateApprovalFollowUpPauseV1Errors];
|
|
6752
|
+
export type CreateApprovalFollowUpPauseV1Responses = {
|
|
6753
|
+
201: CreateApprovalFollowUpPauseResponse;
|
|
6754
|
+
};
|
|
6755
|
+
export type CreateApprovalFollowUpPauseV1Response = CreateApprovalFollowUpPauseV1Responses[keyof CreateApprovalFollowUpPauseV1Responses];
|
|
6756
|
+
export type DeleteApprovalFollowUpPauseV1Data = {
|
|
6757
|
+
body?: never;
|
|
6758
|
+
path: {
|
|
6759
|
+
uuid: string;
|
|
6760
|
+
};
|
|
6761
|
+
query?: never;
|
|
6762
|
+
url: '/api/v1/issuers/approval-follow-up-pauses/{uuid}';
|
|
6763
|
+
};
|
|
6764
|
+
export type DeleteApprovalFollowUpPauseV1Errors = {
|
|
6765
|
+
404: {
|
|
6766
|
+
traceId?: string | null;
|
|
6767
|
+
errors?: Array<ApprovalFollowUpPauseNotFoundError>;
|
|
6768
|
+
};
|
|
6769
|
+
409: {
|
|
6770
|
+
traceId?: string | null;
|
|
6771
|
+
errors?: Array<ApprovalFollowUpPausePastError | ApprovalFollowUpPauseStartedError>;
|
|
6772
|
+
};
|
|
6773
|
+
500: {
|
|
6774
|
+
traceId?: string | null;
|
|
6775
|
+
errors?: Array<InternalServerApiError>;
|
|
6776
|
+
};
|
|
6777
|
+
};
|
|
6778
|
+
export type DeleteApprovalFollowUpPauseV1Error = DeleteApprovalFollowUpPauseV1Errors[keyof DeleteApprovalFollowUpPauseV1Errors];
|
|
6779
|
+
export type DeleteApprovalFollowUpPauseV1Responses = {
|
|
6780
|
+
204: void;
|
|
6781
|
+
};
|
|
6782
|
+
export type DeleteApprovalFollowUpPauseV1Response = DeleteApprovalFollowUpPauseV1Responses[keyof DeleteApprovalFollowUpPauseV1Responses];
|
|
6783
|
+
export type UpdateApprovalFollowUpPauseV1Data = {
|
|
6784
|
+
body: UpdateApprovalFollowUpPauseCommand;
|
|
6785
|
+
path: {
|
|
6786
|
+
uuid: string;
|
|
6787
|
+
};
|
|
6788
|
+
query?: never;
|
|
6789
|
+
url: '/api/v1/issuers/approval-follow-up-pauses/{uuid}';
|
|
6790
|
+
};
|
|
6791
|
+
export type UpdateApprovalFollowUpPauseV1Errors = {
|
|
6792
|
+
400: {
|
|
6793
|
+
traceId?: string | null;
|
|
6794
|
+
errors?: Array<ApprovalFollowUpPausePeriodInPastError>;
|
|
6795
|
+
};
|
|
6796
|
+
404: {
|
|
6797
|
+
traceId?: string | null;
|
|
6798
|
+
errors?: Array<ApprovalFollowUpPauseNotFoundError>;
|
|
6799
|
+
};
|
|
6800
|
+
409: {
|
|
6801
|
+
traceId?: string | null;
|
|
6802
|
+
errors?: Array<ApprovalFollowUpPauseOverlapError | ApprovalFollowUpPausePastError | ApprovalFollowUpPauseStartedError>;
|
|
6803
|
+
};
|
|
6804
|
+
500: {
|
|
6805
|
+
traceId?: string | null;
|
|
6806
|
+
errors?: Array<InternalServerApiError>;
|
|
6807
|
+
};
|
|
6808
|
+
};
|
|
6809
|
+
export type UpdateApprovalFollowUpPauseV1Error = UpdateApprovalFollowUpPauseV1Errors[keyof UpdateApprovalFollowUpPauseV1Errors];
|
|
6810
|
+
export type UpdateApprovalFollowUpPauseV1Responses = {
|
|
6811
|
+
204: void;
|
|
6812
|
+
};
|
|
6813
|
+
export type UpdateApprovalFollowUpPauseV1Response = UpdateApprovalFollowUpPauseV1Responses[keyof UpdateApprovalFollowUpPauseV1Responses];
|
|
6512
6814
|
export type ViewPeppolConnectionV1Data = {
|
|
6513
6815
|
body?: never;
|
|
6514
6816
|
path?: never;
|