@timbro/invoices 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/admin.d.ts +2 -1
- package/dist/admin.d.ts.map +1 -1
- package/dist/admin.js +1 -0
- package/dist/certification-workbook.d.ts +9 -0
- package/dist/certification-workbook.d.ts.map +1 -0
- package/dist/certification-workbook.js +13 -0
- package/dist/fiscal-engine-runtime.manifest.json +117 -112
- package/dist/fiscal-engine-runtime.provenance.json +194 -189
- package/dist/generated/certification-api-contract.d.ts +430 -0
- package/dist/generated/certification-api-contract.d.ts.map +1 -0
- package/dist/generated/certification-api-contract.js +483 -0
- package/dist/generated/hosted/index.d.ts +3 -3
- package/dist/generated/hosted/index.d.ts.map +1 -1
- package/dist/generated/hosted/index.js +2 -2
- package/dist/generated/hosted/sdk.gen.d.ts +31 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +389 -1
- package/dist/generated/hosted/types.gen.d.ts +878 -36
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +6005 -192
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +766 -231
- package/dist/generated/hosted/zod.gen.d.ts +1622 -7
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +830 -215
- package/dist/generated/index.d.ts +3 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +2 -2
- package/dist/generated/invoice-api-contract.d.ts +1345 -105
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +1755 -163
- package/dist/generated/problem-catalog.d.ts.map +1 -1
- package/dist/generated/problem-catalog.js +2 -0
- package/dist/generated/sdk.gen.d.ts +5 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +109 -1
- package/dist/generated/types.gen.d.ts +534 -51
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +21272 -4130
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +230 -4
- package/dist/generated/zod.gen.d.ts +17458 -2747
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +2333 -1441
- package/dist/generated-operation-client.d.ts +2 -2
- package/dist/generated-operation-client.d.ts.map +1 -1
- package/dist/hosted-tenant.d.ts +9 -0
- package/dist/hosted-tenant.d.ts.map +1 -1
- package/dist/hosted-tenant.js +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +31 -3
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +73 -12
- package/dist/problem-contract.d.ts +2 -0
- package/dist/problem-contract.d.ts.map +1 -1
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/package.json +3 -3
|
@@ -102,6 +102,19 @@ export const zBuyerDeliveryTerminalResultCode = z.enum([
|
|
|
102
102
|
* Exporter classification retained as a caller declaration, not authority confirmation.
|
|
103
103
|
*/
|
|
104
104
|
export const zCertificateCustodySignatureAlgorithm = z.enum(["rsa_sha256"]);
|
|
105
|
+
export const zCertificationTestSetKind = z.enum(["ecf"]);
|
|
106
|
+
export const zCertificationTestSetObject = z.enum(["certification_test_set"]);
|
|
107
|
+
export const zCertificationTestSetRequirement = z.enum(["case_mapping_pending"]);
|
|
108
|
+
export const zCertificationWorksheetName = z.enum(["ECF", "RFCE"]);
|
|
109
|
+
export const zCertificationWorksheetSummary = z.object({
|
|
110
|
+
caseCount: z.int().gte(1).lte(1000),
|
|
111
|
+
name: zCertificationWorksheetName,
|
|
112
|
+
});
|
|
113
|
+
export const zCertificationTestSetReview = z.object({
|
|
114
|
+
requirements: z.array(zCertificationTestSetRequirement),
|
|
115
|
+
status: z.enum(["review_required"]),
|
|
116
|
+
worksheets: z.array(zCertificationWorksheetSummary),
|
|
117
|
+
});
|
|
105
118
|
/**
|
|
106
119
|
* The wire family a Collection page announces.
|
|
107
120
|
*/
|
|
@@ -506,7 +519,7 @@ export const zFiscalLifecycleResultCode = z.enum([
|
|
|
506
519
|
"fiscal_signing_retry_requested",
|
|
507
520
|
]);
|
|
508
521
|
/**
|
|
509
|
-
*
|
|
522
|
+
* Deterministic totals calculated for one fiscal line.
|
|
510
523
|
*/
|
|
511
524
|
export const zFiscalLineTotal = z.object({
|
|
512
525
|
net: z.string().regex(/^-?[0-9]+\.[0-9]{2}$/),
|
|
@@ -678,17 +691,27 @@ export const zHostedImportResponse = z.object({
|
|
|
678
691
|
object: z.string(),
|
|
679
692
|
signer_subject_serial_number: z.string(),
|
|
680
693
|
});
|
|
681
|
-
export const zHostedInvoiceCredentialEnvironment = z.enum([
|
|
694
|
+
export const zHostedInvoiceCredentialEnvironment = z.enum([
|
|
695
|
+
"sandbox",
|
|
696
|
+
"certification",
|
|
697
|
+
"production",
|
|
698
|
+
]);
|
|
682
699
|
export const zHostedInvoiceCredentialResponse = z.object({
|
|
683
700
|
credential: z.string(),
|
|
684
701
|
environment: zHostedInvoiceCredentialEnvironment,
|
|
685
702
|
object: z.string(),
|
|
686
703
|
source_connection_id: z.uuid(),
|
|
687
704
|
});
|
|
705
|
+
export const zHostedReceiverUrls = z.object({
|
|
706
|
+
base_url: z.string(),
|
|
707
|
+
commercial_approval_url: z.string(),
|
|
708
|
+
reception_url: z.string(),
|
|
709
|
+
});
|
|
688
710
|
export const zHostedTenantResource = z.object({
|
|
689
711
|
hosted_tenant_binding_id: z.uuid(),
|
|
690
712
|
legal_issuer_id: z.uuid(),
|
|
691
713
|
organization_id: z.uuid(),
|
|
714
|
+
receiver_urls: zHostedReceiverUrls,
|
|
692
715
|
source_connection_id: z.uuid(),
|
|
693
716
|
webhook_endpoint_id: z.uuid(),
|
|
694
717
|
webhook_signing_secret: z.string().nullable(),
|
|
@@ -743,6 +766,10 @@ export const zInvoiceBuyerIdentity = lenientUnion([
|
|
|
743
766
|
kind: z.enum(["anonymous"]),
|
|
744
767
|
}),
|
|
745
768
|
z.object({
|
|
769
|
+
deliveryPhone: z
|
|
770
|
+
.string()
|
|
771
|
+
.regex(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
|
|
772
|
+
.optional(),
|
|
746
773
|
kind: z.enum(["domestic"]),
|
|
747
774
|
legalName: z
|
|
748
775
|
.string()
|
|
@@ -752,6 +779,10 @@ export const zInvoiceBuyerIdentity = lenientUnion([
|
|
|
752
779
|
taxId: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
|
|
753
780
|
}),
|
|
754
781
|
z.object({
|
|
782
|
+
deliveryPhone: z
|
|
783
|
+
.string()
|
|
784
|
+
.regex(/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/)
|
|
785
|
+
.optional(),
|
|
755
786
|
foreignId: z
|
|
756
787
|
.string()
|
|
757
788
|
.refine((text) => Array.from(text).length >= 1)
|
|
@@ -936,6 +967,34 @@ export const zInvoiceLatestEvent = z.object({
|
|
|
936
967
|
occurredAt: z.iso.datetime(),
|
|
937
968
|
sequence: z.string().regex(/^[1-9][0-9]*$/),
|
|
938
969
|
});
|
|
970
|
+
export const zInvoiceLinePriceAdjustmentResource = lenientUnion([
|
|
971
|
+
z.object({
|
|
972
|
+
amount: z.string().regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/),
|
|
973
|
+
kind: z.enum(["fixed_amount"]),
|
|
974
|
+
}),
|
|
975
|
+
z.object({
|
|
976
|
+
kind: z.enum(["percentage"]),
|
|
977
|
+
percentage: z.string().regex(/^(?=[0-9.]*[1-9])[0-9]{1,3}(\.[0-9]{1,2})?$/),
|
|
978
|
+
}),
|
|
979
|
+
]);
|
|
980
|
+
export const zInvoiceLinePriceAdjustmentsResource = z.object({
|
|
981
|
+
discounts: z.array(zInvoiceLinePriceAdjustmentResource),
|
|
982
|
+
surcharges: z.array(zInvoiceLinePriceAdjustmentResource),
|
|
983
|
+
});
|
|
984
|
+
export const zInvoicePaymentAccountResource = z.object({
|
|
985
|
+
accountNumber: z
|
|
986
|
+
.string()
|
|
987
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
988
|
+
.refine((text) => Array.from(text).length <= 28)
|
|
989
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
990
|
+
.nullable(),
|
|
991
|
+
bankName: z
|
|
992
|
+
.string()
|
|
993
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
994
|
+
.refine((text) => Array.from(text).length <= 75)
|
|
995
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
996
|
+
.nullable(),
|
|
997
|
+
});
|
|
939
998
|
export const zInvoicePdfLayout = z.enum(["a4", "receipt80mm"]);
|
|
940
999
|
export const zInvoicePdfStage = z.enum([
|
|
941
1000
|
"awaitingSignedSource",
|
|
@@ -961,6 +1020,131 @@ export const zInvoiceReceiptAccess = z.object({
|
|
|
961
1020
|
});
|
|
962
1021
|
export const zInvoiceReceiptCurrency = z.enum(["DOP"]);
|
|
963
1022
|
export const zInvoiceReceiptStatus = z.enum(["accepted", "acceptedWithObservations"]);
|
|
1023
|
+
export const zInvoiceReferenceAttributionResource = lenientUnion([
|
|
1024
|
+
z.object({
|
|
1025
|
+
fiscalOperationId: z
|
|
1026
|
+
.string()
|
|
1027
|
+
.regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/),
|
|
1028
|
+
kind: z.enum(["internal_operation"]),
|
|
1029
|
+
}),
|
|
1030
|
+
z.object({
|
|
1031
|
+
environment: zFiscalEnvironment,
|
|
1032
|
+
issuerTaxId: z.string().regex(/^[0-9]{9}([0-9]{2})?$/),
|
|
1033
|
+
kind: z.enum(["external_document"]),
|
|
1034
|
+
sourceReference: z
|
|
1035
|
+
.string()
|
|
1036
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1037
|
+
.refine((text) => Array.from(text).length <= 250)
|
|
1038
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u),
|
|
1039
|
+
}),
|
|
1040
|
+
]);
|
|
1041
|
+
export const zInvoiceReferenceInformationResource = z.object({
|
|
1042
|
+
attribution: zInvoiceReferenceAttributionResource,
|
|
1043
|
+
fiscalNumber: z.string().regex(/^(B[0-9]{10}|E[0-9]{12}|[AP][0-9]{18})$/),
|
|
1044
|
+
issuedOn: z
|
|
1045
|
+
.string()
|
|
1046
|
+
.regex(/^(?:(?:31-(?:0?[13578]|1[02])|(?:29|30)-(?:0?[13-9]|1[0-2])|(?:0?[1-9]|1[0-9]|2[0-8])-(?:0?[1-9]|1[0-2]))-(?:19|20)[0-9]{2}|29-0?2-(?:(?:19|20)(?:0[48]|[2468][048]|[13579][26])|2000))$/),
|
|
1047
|
+
modificationCode: z.enum(["4", "5"]),
|
|
1048
|
+
});
|
|
1049
|
+
export const zInvoiceShipmentInformationResource = z.object({
|
|
1050
|
+
containerNumber: z
|
|
1051
|
+
.string()
|
|
1052
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1053
|
+
.refine((text) => Array.from(text).length <= 100)
|
|
1054
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1055
|
+
.nullable(),
|
|
1056
|
+
deliveryNoteNumber: z
|
|
1057
|
+
.string()
|
|
1058
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1059
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1060
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1061
|
+
.nullable(),
|
|
1062
|
+
driver: z
|
|
1063
|
+
.string()
|
|
1064
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1065
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1066
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1067
|
+
.nullable(),
|
|
1068
|
+
grossWeight: z
|
|
1069
|
+
.string()
|
|
1070
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1071
|
+
.nullable(),
|
|
1072
|
+
grossWeightUnit: z
|
|
1073
|
+
.string()
|
|
1074
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1075
|
+
.nullable(),
|
|
1076
|
+
netWeight: z
|
|
1077
|
+
.string()
|
|
1078
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1079
|
+
.nullable(),
|
|
1080
|
+
netWeightUnit: z
|
|
1081
|
+
.string()
|
|
1082
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1083
|
+
.nullable(),
|
|
1084
|
+
packageCount: z
|
|
1085
|
+
.string()
|
|
1086
|
+
.regex(/^[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1087
|
+
.nullable(),
|
|
1088
|
+
packageUnit: z
|
|
1089
|
+
.string()
|
|
1090
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1091
|
+
.nullable(),
|
|
1092
|
+
packageVolume: z
|
|
1093
|
+
.string()
|
|
1094
|
+
.regex(/^(?=[0-9.]*[1-9])[0-9]{1,16}(\.[0-9]{1,2})?$/)
|
|
1095
|
+
.nullable(),
|
|
1096
|
+
route: z
|
|
1097
|
+
.string()
|
|
1098
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1099
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1100
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1101
|
+
.nullable(),
|
|
1102
|
+
shipmentDate: z
|
|
1103
|
+
.string()
|
|
1104
|
+
.regex(/^(?:(?:31-(?:0?[13578]|1[02])|(?:29|30)-(?:0?[13-9]|1[0-2])|(?:0?[1-9]|1[0-9]|2[0-8])-(?:0?[1-9]|1[0-2]))-(?:19|20)[0-9]{2}|29-0?2-(?:(?:19|20)(?:0[48]|[2468][048]|[13579][26])|2000))$/)
|
|
1105
|
+
.nullable(),
|
|
1106
|
+
shipmentNumber: z
|
|
1107
|
+
.string()
|
|
1108
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1109
|
+
.refine((text) => Array.from(text).length <= 25)
|
|
1110
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1111
|
+
.nullable(),
|
|
1112
|
+
transportDocumentNumber: z
|
|
1113
|
+
.string()
|
|
1114
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1115
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1116
|
+
.regex(/^[0-9]+$/)
|
|
1117
|
+
.nullable(),
|
|
1118
|
+
transportZone: z
|
|
1119
|
+
.string()
|
|
1120
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1121
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1122
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1123
|
+
.nullable(),
|
|
1124
|
+
vehicleFiche: z
|
|
1125
|
+
.string()
|
|
1126
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1127
|
+
.refine((text) => Array.from(text).length <= 10)
|
|
1128
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1129
|
+
.nullable(),
|
|
1130
|
+
vehiclePlate: z
|
|
1131
|
+
.string()
|
|
1132
|
+
.refine((text) => Array.from(text).length >= 1)
|
|
1133
|
+
.refine((text) => Array.from(text).length <= 7)
|
|
1134
|
+
.regex(/^(?=.*[^\p{White_Space}])[\s\S]+$/u)
|
|
1135
|
+
.nullable(),
|
|
1136
|
+
volumeUnit: z
|
|
1137
|
+
.string()
|
|
1138
|
+
.regex(/^([1-9]|[1-5][0-9]|6[0-2])$/)
|
|
1139
|
+
.nullable(),
|
|
1140
|
+
});
|
|
1141
|
+
export const zInvoiceAdditionalInformationResource = z.object({
|
|
1142
|
+
referenceNumber: z
|
|
1143
|
+
.string()
|
|
1144
|
+
.refine((text) => Array.from(text).length <= 20)
|
|
1145
|
+
.nullable(),
|
|
1146
|
+
shipment: zInvoiceShipmentInformationResource.nullable(),
|
|
1147
|
+
});
|
|
964
1148
|
/**
|
|
965
1149
|
* The signature facts DGII requires on every printed e-CF, read from the signed document.
|
|
966
1150
|
*
|
|
@@ -2484,6 +2668,9 @@ export const zLegalIssuerPage = z.object({
|
|
|
2484
2668
|
export const zLegalIssuerResource = z.object({
|
|
2485
2669
|
legal_issuer: zLegalIssuer,
|
|
2486
2670
|
});
|
|
2671
|
+
/**
|
|
2672
|
+
* One fixed-amount or percentage discount or surcharge on a fiscal line.
|
|
2673
|
+
*/
|
|
2487
2674
|
export const zMembershipRole = z.enum(["administrator", "operator"]);
|
|
2488
2675
|
export const zAcceptedMembership = z.object({
|
|
2489
2676
|
organization_id: z.uuid(),
|
|
@@ -2623,7 +2810,7 @@ export const zOrganizationResource = z.object({
|
|
|
2623
2810
|
organization: zOrganizationIdentity,
|
|
2624
2811
|
});
|
|
2625
2812
|
/**
|
|
2626
|
-
*
|
|
2813
|
+
* Bank details that accompany an optional payment method table.
|
|
2627
2814
|
*/
|
|
2628
2815
|
export const zPrintedRepresentationA4ProfileVersion = z.enum(["a4.v1"]);
|
|
2629
2816
|
/**
|
|
@@ -2935,6 +3122,24 @@ export const zRequirementId = z.enum([
|
|
|
2935
3122
|
"first_fiscal_operation",
|
|
2936
3123
|
]);
|
|
2937
3124
|
export const zRequirementStatus = z.enum(["complete", "pending", "blocked", "action_required"]);
|
|
3125
|
+
export const zRetainedCertificationWorkbook = z.object({
|
|
3126
|
+
name: z.string(),
|
|
3127
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
3128
|
+
sizeBytes: z.int().gte(1).lte(3145728),
|
|
3129
|
+
});
|
|
3130
|
+
export const zCertificationTestSetResource = z.object({
|
|
3131
|
+
attemptReference: z.string(),
|
|
3132
|
+
createdAt: z.iso.datetime(),
|
|
3133
|
+
file: zRetainedCertificationWorkbook,
|
|
3134
|
+
generation: z.string().regex(/^[1-9][0-9]*$/),
|
|
3135
|
+
id: z.uuid(),
|
|
3136
|
+
kind: zCertificationTestSetKind,
|
|
3137
|
+
object: zCertificationTestSetObject,
|
|
3138
|
+
review: zCertificationTestSetReview,
|
|
3139
|
+
});
|
|
3140
|
+
export const zCurrentCertificationTestSet = z.object({
|
|
3141
|
+
current: zCertificationTestSetResource.nullable(),
|
|
3142
|
+
});
|
|
2938
3143
|
export const zSchemaValidationDiagnosticCode = z.enum([
|
|
2939
3144
|
"document_xml_unreadable",
|
|
2940
3145
|
"document_schema_rejected",
|
|
@@ -2947,6 +3152,9 @@ export const zSchemaValidationOutcome = z.enum(["succeeded", "failed"]);
|
|
|
2947
3152
|
* Stage at which a fiscal XML artifact was validated.
|
|
2948
3153
|
*/
|
|
2949
3154
|
export const zSchemaValidationStage = z.enum(["unsigned", "signed"]);
|
|
3155
|
+
/**
|
|
3156
|
+
* Typed shipping and transport facts admitted by the official `InformacionesAdicionales` area.
|
|
3157
|
+
*/
|
|
2950
3158
|
export const zSignedDocumentReadinessResource = lenientUnion([
|
|
2951
3159
|
z.object({
|
|
2952
3160
|
status: z.enum(["not_applicable"]),
|
|
@@ -3118,6 +3326,7 @@ export const zSourceFiscalOperationPage = z.object({
|
|
|
3118
3326
|
export const zSourceItemKind = z.enum(["good", "service"]);
|
|
3119
3327
|
export const zInvoiceItemResource = z.object({
|
|
3120
3328
|
additionalTaxCodes: z.array(z.string()),
|
|
3329
|
+
adjustments: zInvoiceLinePriceAdjustmentsResource.nullable(),
|
|
3121
3330
|
description: z.string(),
|
|
3122
3331
|
id: z.string(),
|
|
3123
3332
|
itemCodes: z.array(zInvoiceItemCodeResource),
|
|
@@ -3149,6 +3358,7 @@ export const zInvoicePaymentAllocation = z.object({
|
|
|
3149
3358
|
export const zInvoicePaymentTermsResource = lenientUnion([
|
|
3150
3359
|
z.object({
|
|
3151
3360
|
allocations: z.array(zInvoicePaymentAllocation).max(7),
|
|
3361
|
+
paymentAccount: zInvoicePaymentAccountResource.optional(),
|
|
3152
3362
|
type: z.enum(["immediate"]),
|
|
3153
3363
|
}),
|
|
3154
3364
|
z.object({
|
|
@@ -3184,6 +3394,7 @@ export const zInvoiceReceipt = z.object({
|
|
|
3184
3394
|
export const zInvoiceResource = lenientUnion([
|
|
3185
3395
|
z.object({
|
|
3186
3396
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3397
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3187
3398
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3188
3399
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3189
3400
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3202,6 +3413,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3202
3413
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3203
3414
|
originalInvoiceId: z.uuid().nullable(),
|
|
3204
3415
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3416
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3205
3417
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3206
3418
|
source: zInvoiceSource,
|
|
3207
3419
|
status: z.enum(["rejected"]),
|
|
@@ -3212,6 +3424,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3212
3424
|
}),
|
|
3213
3425
|
z.object({
|
|
3214
3426
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3427
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3215
3428
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3216
3429
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3217
3430
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3231,6 +3444,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3231
3444
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3232
3445
|
originalInvoiceId: z.uuid().nullable(),
|
|
3233
3446
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3447
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3234
3448
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3235
3449
|
source: zInvoiceSource,
|
|
3236
3450
|
stage: zInvoiceProcessingStage,
|
|
@@ -3242,6 +3456,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3242
3456
|
}),
|
|
3243
3457
|
z.object({
|
|
3244
3458
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3459
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3245
3460
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3246
3461
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3247
3462
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3261,6 +3476,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3261
3476
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3262
3477
|
originalInvoiceId: z.uuid().nullable(),
|
|
3263
3478
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3479
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3264
3480
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3265
3481
|
source: zInvoiceSource,
|
|
3266
3482
|
status: z.enum(["verifying"]),
|
|
@@ -3271,6 +3487,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3271
3487
|
}),
|
|
3272
3488
|
z.object({
|
|
3273
3489
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3490
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3274
3491
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3275
3492
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3276
3493
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3290,6 +3507,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3290
3507
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3291
3508
|
originalInvoiceId: z.uuid().nullable(),
|
|
3292
3509
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3510
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3293
3511
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3294
3512
|
source: zInvoiceSource,
|
|
3295
3513
|
status: z.enum(["accepted"]),
|
|
@@ -3300,6 +3518,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3300
3518
|
}),
|
|
3301
3519
|
z.object({
|
|
3302
3520
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3521
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3303
3522
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3304
3523
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3305
3524
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3319,6 +3538,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3319
3538
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3320
3539
|
originalInvoiceId: z.uuid().nullable(),
|
|
3321
3540
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3541
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3322
3542
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3323
3543
|
source: zInvoiceSource,
|
|
3324
3544
|
status: z.enum(["acceptedWithObservations"]),
|
|
@@ -3329,6 +3549,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3329
3549
|
}),
|
|
3330
3550
|
z.object({
|
|
3331
3551
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3552
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3332
3553
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3333
3554
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3334
3555
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3348,6 +3569,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3348
3569
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3349
3570
|
originalInvoiceId: z.uuid().nullable(),
|
|
3350
3571
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3572
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3351
3573
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3352
3574
|
source: zInvoiceSource,
|
|
3353
3575
|
status: z.enum(["authorityRejected"]),
|
|
@@ -3358,6 +3580,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3358
3580
|
}),
|
|
3359
3581
|
z.object({
|
|
3360
3582
|
acceptedAt: z.iso.datetime().nullable(),
|
|
3583
|
+
additionalInformation: zInvoiceAdditionalInformationResource.nullable(),
|
|
3361
3584
|
buyer: zInvoiceBuyerIdentity.nullable(),
|
|
3362
3585
|
buyerDeliveryReadiness: zInvoiceBuyerDeliveryReadiness,
|
|
3363
3586
|
corrections: z.array(zInvoiceCorrection),
|
|
@@ -3377,6 +3600,7 @@ export const zInvoiceResource = lenientUnion([
|
|
|
3377
3600
|
latestEvent: zInvoiceLatestEvent.nullable(),
|
|
3378
3601
|
originalInvoiceId: z.uuid().nullable(),
|
|
3379
3602
|
paymentTerms: zInvoicePaymentTermsResource.nullable(),
|
|
3603
|
+
referenceInformation: zInvoiceReferenceInformationResource.nullable(),
|
|
3380
3604
|
replacesInvoiceId: z.uuid().nullable(),
|
|
3381
3605
|
source: zInvoiceSource,
|
|
3382
3606
|
status: z.enum(["operatorRequired"]),
|
|
@@ -4171,7 +4395,7 @@ export const zTimingWork = z.object({
|
|
|
4171
4395
|
work_id: z.string().regex(/^[0-9a-f]{64}$/),
|
|
4172
4396
|
});
|
|
4173
4397
|
/**
|
|
4174
|
-
*
|
|
4398
|
+
* A Type 31 line with its profile-permitted line-level discounts and surcharges.
|
|
4175
4399
|
*/
|
|
4176
4400
|
export const zUserAccountIdentity = z.object({
|
|
4177
4401
|
created_at: z.iso.datetime(),
|
|
@@ -4939,6 +5163,8 @@ export const zWorkspaceFiscalOperationResource = z.object({
|
|
|
4939
5163
|
export const zCreateHostedTenantResponse = zHostedTenantResource;
|
|
4940
5164
|
export const zReleaseHostedTenantResponse = zReleasedHostedTenant;
|
|
4941
5165
|
export const zCreateHostedTenantWebhookSecretRotationResponse = zHostedWebhookSecretRotation;
|
|
5166
|
+
export const zUploadHostedCertificationTestSetResponse = zCertificationTestSetResource;
|
|
5167
|
+
export const zRetrieveHostedCertificationTestSetResponse = zCurrentCertificationTestSet;
|
|
4942
5168
|
export const zListHostedInvoicesResponse = zInvoicePage;
|
|
4943
5169
|
export const zCreateHostedInvoiceResponse = zInvoiceResource;
|
|
4944
5170
|
export const zPreviewHostedInvoiceResponse = zInvoicePreview;
|