@timbro/invoices 0.12.0 → 0.14.0-next.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 +27 -1
- package/dist/admin.d.ts +1 -0
- 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 +121 -116
- package/dist/fiscal-engine-runtime.provenance.json +198 -193
- 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 +13 -1
- package/dist/generated/hosted/sdk.gen.d.ts.map +1 -1
- package/dist/generated/hosted/sdk.gen.js +165 -1
- package/dist/generated/hosted/types.gen.d.ts +308 -6
- package/dist/generated/hosted/types.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.d.ts +322 -20
- package/dist/generated/hosted/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod-response.gen.js +113 -5
- package/dist/generated/hosted/zod.gen.d.ts +221 -5
- package/dist/generated/hosted/zod.gen.d.ts.map +1 -1
- package/dist/generated/hosted/zod.gen.js +133 -5
- 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 +1346 -106
- package/dist/generated/invoice-api-contract.d.ts.map +1 -1
- package/dist/generated/invoice-api-contract.js +1756 -164
- 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 +544 -55
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.d.ts +20971 -3786
- package/dist/generated/zod-response.gen.d.ts.map +1 -1
- package/dist/generated/zod-response.gen.js +228 -6
- package/dist/generated/zod.gen.d.ts +17521 -2762
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +2328 -1438
- package/dist/generated-operation-client.d.ts +2 -2
- package/dist/generated-operation-client.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.d.ts +11 -2
- package/dist/invoice-hosted-controls.d.ts.map +1 -1
- package/dist/invoice-hosted-controls.js +26 -1
- package/dist/problem-contract.d.ts +3 -1
- package/dist/problem-contract.d.ts.map +1 -1
- package/dist/timbro_fiscal_engine_bg.wasm +0 -0
- package/package.json +2 -2
|
@@ -1702,6 +1702,11 @@ export declare const invoiceApiContract: {
|
|
|
1702
1702
|
readonly title: "DomesticBuyer";
|
|
1703
1703
|
readonly required: readonly ["taxId", "legalName", "kind"];
|
|
1704
1704
|
readonly properties: {
|
|
1705
|
+
readonly deliveryPhone: {
|
|
1706
|
+
readonly type: "string";
|
|
1707
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
1708
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
1709
|
+
};
|
|
1705
1710
|
readonly kind: {
|
|
1706
1711
|
readonly type: "string";
|
|
1707
1712
|
readonly enum: readonly ["domestic"];
|
|
@@ -1725,6 +1730,11 @@ export declare const invoiceApiContract: {
|
|
|
1725
1730
|
readonly title: "ForeignBuyer";
|
|
1726
1731
|
readonly required: readonly ["foreignId", "legalName", "kind"];
|
|
1727
1732
|
readonly properties: {
|
|
1733
|
+
readonly deliveryPhone: {
|
|
1734
|
+
readonly type: "string";
|
|
1735
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
1736
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
1737
|
+
};
|
|
1728
1738
|
readonly foreignId: {
|
|
1729
1739
|
readonly type: "string";
|
|
1730
1740
|
readonly maxLength: 20;
|
|
@@ -2062,7 +2072,7 @@ export declare const invoiceApiContract: {
|
|
|
2062
2072
|
};
|
|
2063
2073
|
readonly InvoiceItemResource: {
|
|
2064
2074
|
readonly type: "object";
|
|
2065
|
-
readonly required: readonly ["id", "description", "quantity", "unit", "kind", "unitPrice", "tax", "legalTip", "itemCodes", "additionalTaxCodes", "withholding"];
|
|
2075
|
+
readonly required: readonly ["id", "description", "quantity", "unit", "kind", "unitPrice", "tax", "legalTip", "itemCodes", "additionalTaxCodes", "adjustments", "withholding"];
|
|
2066
2076
|
readonly properties: {
|
|
2067
2077
|
readonly additionalTaxCodes: {
|
|
2068
2078
|
readonly type: "array";
|
|
@@ -2070,6 +2080,13 @@ export declare const invoiceApiContract: {
|
|
|
2070
2080
|
readonly type: "string";
|
|
2071
2081
|
};
|
|
2072
2082
|
};
|
|
2083
|
+
readonly adjustments: {
|
|
2084
|
+
readonly oneOf: readonly [{
|
|
2085
|
+
readonly type: "null";
|
|
2086
|
+
}, {
|
|
2087
|
+
readonly $ref: "#/components/schemas/InvoiceLinePriceAdjustmentsResource";
|
|
2088
|
+
}];
|
|
2089
|
+
};
|
|
2073
2090
|
readonly description: {
|
|
2074
2091
|
readonly type: "string";
|
|
2075
2092
|
};
|
|
@@ -2115,6 +2132,61 @@ export declare const invoiceApiContract: {
|
|
|
2115
2132
|
};
|
|
2116
2133
|
readonly additionalProperties: false;
|
|
2117
2134
|
};
|
|
2135
|
+
readonly InvoiceLinePriceAdjustmentsResource: {
|
|
2136
|
+
readonly type: "object";
|
|
2137
|
+
readonly required: readonly ["discounts", "surcharges"];
|
|
2138
|
+
readonly properties: {
|
|
2139
|
+
readonly discounts: {
|
|
2140
|
+
readonly type: "array";
|
|
2141
|
+
readonly items: {
|
|
2142
|
+
readonly $ref: "#/components/schemas/InvoiceLinePriceAdjustmentResource";
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
readonly surcharges: {
|
|
2146
|
+
readonly type: "array";
|
|
2147
|
+
readonly items: {
|
|
2148
|
+
readonly $ref: "#/components/schemas/InvoiceLinePriceAdjustmentResource";
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
readonly additionalProperties: false;
|
|
2153
|
+
};
|
|
2154
|
+
readonly InvoiceLinePriceAdjustmentResource: {
|
|
2155
|
+
readonly oneOf: readonly [{
|
|
2156
|
+
readonly type: "object";
|
|
2157
|
+
readonly required: readonly ["amount", "kind"];
|
|
2158
|
+
readonly properties: {
|
|
2159
|
+
readonly amount: {
|
|
2160
|
+
readonly type: "string";
|
|
2161
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
2162
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
2163
|
+
};
|
|
2164
|
+
readonly kind: {
|
|
2165
|
+
readonly type: "string";
|
|
2166
|
+
readonly enum: readonly ["fixed_amount"];
|
|
2167
|
+
};
|
|
2168
|
+
};
|
|
2169
|
+
readonly additionalProperties: false;
|
|
2170
|
+
}, {
|
|
2171
|
+
readonly type: "object";
|
|
2172
|
+
readonly required: readonly ["percentage", "kind"];
|
|
2173
|
+
readonly properties: {
|
|
2174
|
+
readonly kind: {
|
|
2175
|
+
readonly type: "string";
|
|
2176
|
+
readonly enum: readonly ["percentage"];
|
|
2177
|
+
};
|
|
2178
|
+
readonly percentage: {
|
|
2179
|
+
readonly type: "string";
|
|
2180
|
+
readonly pattern: "^(?=[0-9.]*[1-9])[0-9]{1,3}(\\.[0-9]{1,2})?$";
|
|
2181
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
readonly additionalProperties: false;
|
|
2185
|
+
}];
|
|
2186
|
+
readonly discriminator: {
|
|
2187
|
+
readonly propertyName: "kind";
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2118
2190
|
readonly InvoiceItemCodeResource: {
|
|
2119
2191
|
readonly type: "object";
|
|
2120
2192
|
readonly required: readonly ["typeCode", "code"];
|
|
@@ -2268,6 +2340,9 @@ export declare const invoiceApiContract: {
|
|
|
2268
2340
|
};
|
|
2269
2341
|
readonly maxItems: 7;
|
|
2270
2342
|
};
|
|
2343
|
+
readonly paymentAccount: {
|
|
2344
|
+
readonly $ref: "#/components/schemas/InvoicePaymentAccountResource";
|
|
2345
|
+
};
|
|
2271
2346
|
readonly type: {
|
|
2272
2347
|
readonly type: "string";
|
|
2273
2348
|
readonly enum: readonly ["immediate"];
|
|
@@ -2327,6 +2402,35 @@ export declare const invoiceApiContract: {
|
|
|
2327
2402
|
readonly description: "Named payment methods whose official codes are owned by fiscal-document.";
|
|
2328
2403
|
readonly enum: readonly ["cash", "bank_transfer", "card", "credit_sale", "gift_certificate", "barter", "credit_note", "other"];
|
|
2329
2404
|
};
|
|
2405
|
+
readonly InvoicePaymentAccountResource: {
|
|
2406
|
+
readonly type: "object";
|
|
2407
|
+
readonly required: readonly ["accountNumber", "bankName"];
|
|
2408
|
+
readonly properties: {
|
|
2409
|
+
readonly accountNumber: {
|
|
2410
|
+
readonly oneOf: readonly [{
|
|
2411
|
+
readonly type: "null";
|
|
2412
|
+
}, {
|
|
2413
|
+
readonly type: "string";
|
|
2414
|
+
readonly maxLength: 28;
|
|
2415
|
+
readonly minLength: 1;
|
|
2416
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
2417
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
2418
|
+
}];
|
|
2419
|
+
};
|
|
2420
|
+
readonly bankName: {
|
|
2421
|
+
readonly oneOf: readonly [{
|
|
2422
|
+
readonly type: "null";
|
|
2423
|
+
}, {
|
|
2424
|
+
readonly type: "string";
|
|
2425
|
+
readonly maxLength: 75;
|
|
2426
|
+
readonly minLength: 1;
|
|
2427
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
2428
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
2429
|
+
}];
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
readonly additionalProperties: false;
|
|
2433
|
+
};
|
|
2330
2434
|
readonly InvoiceSource: {
|
|
2331
2435
|
readonly type: "object";
|
|
2332
2436
|
readonly required: readonly ["id", "version", "contentSha256"];
|
|
@@ -2500,7 +2604,7 @@ export declare const invoiceApiContract: {
|
|
|
2500
2604
|
readonly IssuanceBlocker: {
|
|
2501
2605
|
readonly type: "string";
|
|
2502
2606
|
readonly description: "One stable reason the authoritative rules refuse to issue.";
|
|
2503
|
-
readonly enum: readonly ["invalid_request", "unsupported_protocol", "unsupported_rules_version", "invalid_resolved_facts", "numbering_verifier_missing", "numbering_mode_not_enabled", "document_type_not_recognized", "authorization_missing", "authorization_not_observed_on_effective_date", "authorization_suspended", "authorization_cancelled", "authorization_superseded", "authorization_exhausted", "authorization_conflicting", "authorization_document_type_mismatch", "
|
|
2607
|
+
readonly enum: readonly ["invalid_request", "unsupported_protocol", "unsupported_rules_version", "invalid_resolved_facts", "numbering_verifier_missing", "numbering_mode_not_enabled", "document_type_not_recognized", "authorization_missing", "authorization_not_observed_on_effective_date", "authorization_suspended", "authorization_cancelled", "authorization_superseded", "authorization_exhausted", "authorization_conflicting", "authorization_document_type_mismatch", "sequence_rejected_by_dgii", "authorization_expired", "authorization_range_overlap", "fiscal_number_capacity_exhausted", "invalid_fiscal_number", "fiscal_number_outside_authorized_range", "fiscal_number_before_verified_floor", "sequence_expiration_mismatch"];
|
|
2504
2608
|
};
|
|
2505
2609
|
readonly FiscalAdmissionProblem: {
|
|
2506
2610
|
readonly type: "object";
|
|
@@ -2552,12 +2656,19 @@ export declare const invoiceApiContract: {
|
|
|
2552
2656
|
readonly InvoiceResource: {
|
|
2553
2657
|
readonly oneOf: readonly [{
|
|
2554
2658
|
readonly type: "object";
|
|
2555
|
-
readonly required: readonly ["status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2659
|
+
readonly required: readonly ["status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2556
2660
|
readonly properties: {
|
|
2557
2661
|
readonly acceptedAt: {
|
|
2558
2662
|
readonly type: readonly ["string", "null"];
|
|
2559
2663
|
readonly format: "date-time";
|
|
2560
2664
|
};
|
|
2665
|
+
readonly additionalInformation: {
|
|
2666
|
+
readonly oneOf: readonly [{
|
|
2667
|
+
readonly type: "null";
|
|
2668
|
+
}, {
|
|
2669
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
2670
|
+
}];
|
|
2671
|
+
};
|
|
2561
2672
|
readonly buyer: {
|
|
2562
2673
|
readonly oneOf: readonly [{
|
|
2563
2674
|
readonly type: "null";
|
|
@@ -2652,6 +2763,13 @@ export declare const invoiceApiContract: {
|
|
|
2652
2763
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
2653
2764
|
}];
|
|
2654
2765
|
};
|
|
2766
|
+
readonly referenceInformation: {
|
|
2767
|
+
readonly oneOf: readonly [{
|
|
2768
|
+
readonly type: "null";
|
|
2769
|
+
}, {
|
|
2770
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
2771
|
+
}];
|
|
2772
|
+
};
|
|
2655
2773
|
readonly replacesInvoiceId: {
|
|
2656
2774
|
readonly type: readonly ["string", "null"];
|
|
2657
2775
|
readonly format: "uuid";
|
|
@@ -2689,12 +2807,19 @@ export declare const invoiceApiContract: {
|
|
|
2689
2807
|
readonly additionalProperties: false;
|
|
2690
2808
|
}, {
|
|
2691
2809
|
readonly type: "object";
|
|
2692
|
-
readonly required: readonly ["stage", "fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2810
|
+
readonly required: readonly ["stage", "fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2693
2811
|
readonly properties: {
|
|
2694
2812
|
readonly acceptedAt: {
|
|
2695
2813
|
readonly type: readonly ["string", "null"];
|
|
2696
2814
|
readonly format: "date-time";
|
|
2697
2815
|
};
|
|
2816
|
+
readonly additionalInformation: {
|
|
2817
|
+
readonly oneOf: readonly [{
|
|
2818
|
+
readonly type: "null";
|
|
2819
|
+
}, {
|
|
2820
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
2821
|
+
}];
|
|
2822
|
+
};
|
|
2698
2823
|
readonly buyer: {
|
|
2699
2824
|
readonly oneOf: readonly [{
|
|
2700
2825
|
readonly type: "null";
|
|
@@ -2792,6 +2917,13 @@ export declare const invoiceApiContract: {
|
|
|
2792
2917
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
2793
2918
|
}];
|
|
2794
2919
|
};
|
|
2920
|
+
readonly referenceInformation: {
|
|
2921
|
+
readonly oneOf: readonly [{
|
|
2922
|
+
readonly type: "null";
|
|
2923
|
+
}, {
|
|
2924
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
2925
|
+
}];
|
|
2926
|
+
};
|
|
2795
2927
|
readonly replacesInvoiceId: {
|
|
2796
2928
|
readonly type: readonly ["string", "null"];
|
|
2797
2929
|
readonly format: "uuid";
|
|
@@ -2832,12 +2964,19 @@ export declare const invoiceApiContract: {
|
|
|
2832
2964
|
readonly additionalProperties: false;
|
|
2833
2965
|
}, {
|
|
2834
2966
|
readonly type: "object";
|
|
2835
|
-
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2967
|
+
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2836
2968
|
readonly properties: {
|
|
2837
2969
|
readonly acceptedAt: {
|
|
2838
2970
|
readonly type: readonly ["string", "null"];
|
|
2839
2971
|
readonly format: "date-time";
|
|
2840
2972
|
};
|
|
2973
|
+
readonly additionalInformation: {
|
|
2974
|
+
readonly oneOf: readonly [{
|
|
2975
|
+
readonly type: "null";
|
|
2976
|
+
}, {
|
|
2977
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
2978
|
+
}];
|
|
2979
|
+
};
|
|
2841
2980
|
readonly buyer: {
|
|
2842
2981
|
readonly oneOf: readonly [{
|
|
2843
2982
|
readonly type: "null";
|
|
@@ -2935,6 +3074,13 @@ export declare const invoiceApiContract: {
|
|
|
2935
3074
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
2936
3075
|
}];
|
|
2937
3076
|
};
|
|
3077
|
+
readonly referenceInformation: {
|
|
3078
|
+
readonly oneOf: readonly [{
|
|
3079
|
+
readonly type: "null";
|
|
3080
|
+
}, {
|
|
3081
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
3082
|
+
}];
|
|
3083
|
+
};
|
|
2938
3084
|
readonly replacesInvoiceId: {
|
|
2939
3085
|
readonly type: readonly ["string", "null"];
|
|
2940
3086
|
readonly format: "uuid";
|
|
@@ -2972,12 +3118,19 @@ export declare const invoiceApiContract: {
|
|
|
2972
3118
|
readonly additionalProperties: false;
|
|
2973
3119
|
}, {
|
|
2974
3120
|
readonly type: "object";
|
|
2975
|
-
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3121
|
+
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
2976
3122
|
readonly properties: {
|
|
2977
3123
|
readonly acceptedAt: {
|
|
2978
3124
|
readonly type: readonly ["string", "null"];
|
|
2979
3125
|
readonly format: "date-time";
|
|
2980
3126
|
};
|
|
3127
|
+
readonly additionalInformation: {
|
|
3128
|
+
readonly oneOf: readonly [{
|
|
3129
|
+
readonly type: "null";
|
|
3130
|
+
}, {
|
|
3131
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
3132
|
+
}];
|
|
3133
|
+
};
|
|
2981
3134
|
readonly buyer: {
|
|
2982
3135
|
readonly oneOf: readonly [{
|
|
2983
3136
|
readonly type: "null";
|
|
@@ -3075,6 +3228,13 @@ export declare const invoiceApiContract: {
|
|
|
3075
3228
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
3076
3229
|
}];
|
|
3077
3230
|
};
|
|
3231
|
+
readonly referenceInformation: {
|
|
3232
|
+
readonly oneOf: readonly [{
|
|
3233
|
+
readonly type: "null";
|
|
3234
|
+
}, {
|
|
3235
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
3236
|
+
}];
|
|
3237
|
+
};
|
|
3078
3238
|
readonly replacesInvoiceId: {
|
|
3079
3239
|
readonly type: readonly ["string", "null"];
|
|
3080
3240
|
readonly format: "uuid";
|
|
@@ -3112,12 +3272,19 @@ export declare const invoiceApiContract: {
|
|
|
3112
3272
|
readonly additionalProperties: false;
|
|
3113
3273
|
}, {
|
|
3114
3274
|
readonly type: "object";
|
|
3115
|
-
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3275
|
+
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3116
3276
|
readonly properties: {
|
|
3117
3277
|
readonly acceptedAt: {
|
|
3118
3278
|
readonly type: readonly ["string", "null"];
|
|
3119
3279
|
readonly format: "date-time";
|
|
3120
3280
|
};
|
|
3281
|
+
readonly additionalInformation: {
|
|
3282
|
+
readonly oneOf: readonly [{
|
|
3283
|
+
readonly type: "null";
|
|
3284
|
+
}, {
|
|
3285
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
3286
|
+
}];
|
|
3287
|
+
};
|
|
3121
3288
|
readonly buyer: {
|
|
3122
3289
|
readonly oneOf: readonly [{
|
|
3123
3290
|
readonly type: "null";
|
|
@@ -3215,6 +3382,13 @@ export declare const invoiceApiContract: {
|
|
|
3215
3382
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
3216
3383
|
}];
|
|
3217
3384
|
};
|
|
3385
|
+
readonly referenceInformation: {
|
|
3386
|
+
readonly oneOf: readonly [{
|
|
3387
|
+
readonly type: "null";
|
|
3388
|
+
}, {
|
|
3389
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
3390
|
+
}];
|
|
3391
|
+
};
|
|
3218
3392
|
readonly replacesInvoiceId: {
|
|
3219
3393
|
readonly type: readonly ["string", "null"];
|
|
3220
3394
|
readonly format: "uuid";
|
|
@@ -3252,12 +3426,19 @@ export declare const invoiceApiContract: {
|
|
|
3252
3426
|
readonly additionalProperties: false;
|
|
3253
3427
|
}, {
|
|
3254
3428
|
readonly type: "object";
|
|
3255
|
-
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3429
|
+
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3256
3430
|
readonly properties: {
|
|
3257
3431
|
readonly acceptedAt: {
|
|
3258
3432
|
readonly type: readonly ["string", "null"];
|
|
3259
3433
|
readonly format: "date-time";
|
|
3260
3434
|
};
|
|
3435
|
+
readonly additionalInformation: {
|
|
3436
|
+
readonly oneOf: readonly [{
|
|
3437
|
+
readonly type: "null";
|
|
3438
|
+
}, {
|
|
3439
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
3440
|
+
}];
|
|
3441
|
+
};
|
|
3261
3442
|
readonly buyer: {
|
|
3262
3443
|
readonly oneOf: readonly [{
|
|
3263
3444
|
readonly type: "null";
|
|
@@ -3355,6 +3536,13 @@ export declare const invoiceApiContract: {
|
|
|
3355
3536
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
3356
3537
|
}];
|
|
3357
3538
|
};
|
|
3539
|
+
readonly referenceInformation: {
|
|
3540
|
+
readonly oneOf: readonly [{
|
|
3541
|
+
readonly type: "null";
|
|
3542
|
+
}, {
|
|
3543
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
3544
|
+
}];
|
|
3545
|
+
};
|
|
3358
3546
|
readonly replacesInvoiceId: {
|
|
3359
3547
|
readonly type: readonly ["string", "null"];
|
|
3360
3548
|
readonly format: "uuid";
|
|
@@ -3392,12 +3580,19 @@ export declare const invoiceApiContract: {
|
|
|
3392
3580
|
readonly additionalProperties: false;
|
|
3393
3581
|
}, {
|
|
3394
3582
|
readonly type: "object";
|
|
3395
|
-
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3583
|
+
readonly required: readonly ["fiscalIdentity", "status", "id", "originalInvoiceId", "replacesInvoiceId", "invoiceReference", "type", "environment", "issuerTaxId", "currency", "buyer", "governmentEligibility", "items", "supplier", "foreignPayment", "foreignCurrency", "paymentTerms", "referenceInformation", "additionalInformation", "source", "totals", "corrections", "files", "buyerDeliveryReadiness", "diagnostics", "acceptedAt", "latestEvent", "createdAt", "updatedAt"];
|
|
3396
3584
|
readonly properties: {
|
|
3397
3585
|
readonly acceptedAt: {
|
|
3398
3586
|
readonly type: readonly ["string", "null"];
|
|
3399
3587
|
readonly format: "date-time";
|
|
3400
3588
|
};
|
|
3589
|
+
readonly additionalInformation: {
|
|
3590
|
+
readonly oneOf: readonly [{
|
|
3591
|
+
readonly type: "null";
|
|
3592
|
+
}, {
|
|
3593
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformationResource";
|
|
3594
|
+
}];
|
|
3595
|
+
};
|
|
3401
3596
|
readonly buyer: {
|
|
3402
3597
|
readonly oneOf: readonly [{
|
|
3403
3598
|
readonly type: "null";
|
|
@@ -3495,6 +3690,13 @@ export declare const invoiceApiContract: {
|
|
|
3495
3690
|
readonly $ref: "#/components/schemas/InvoicePaymentTermsResource";
|
|
3496
3691
|
}];
|
|
3497
3692
|
};
|
|
3693
|
+
readonly referenceInformation: {
|
|
3694
|
+
readonly oneOf: readonly [{
|
|
3695
|
+
readonly type: "null";
|
|
3696
|
+
}, {
|
|
3697
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformationResource";
|
|
3698
|
+
}];
|
|
3699
|
+
};
|
|
3498
3700
|
readonly replacesInvoiceId: {
|
|
3499
3701
|
readonly type: readonly ["string", "null"];
|
|
3500
3702
|
readonly format: "uuid";
|
|
@@ -3535,111 +3737,316 @@ export declare const invoiceApiContract: {
|
|
|
3535
3737
|
readonly propertyName: "status";
|
|
3536
3738
|
};
|
|
3537
3739
|
};
|
|
3538
|
-
readonly
|
|
3539
|
-
readonly oneOf: readonly [{
|
|
3540
|
-
readonly type: "object";
|
|
3541
|
-
readonly title: "NotApplicableReadiness";
|
|
3542
|
-
readonly required: readonly ["status"];
|
|
3543
|
-
readonly properties: {
|
|
3544
|
-
readonly status: {
|
|
3545
|
-
readonly type: "string";
|
|
3546
|
-
readonly enum: readonly ["notApplicable"];
|
|
3547
|
-
};
|
|
3548
|
-
};
|
|
3549
|
-
readonly additionalProperties: false;
|
|
3550
|
-
}, {
|
|
3551
|
-
readonly type: "object";
|
|
3552
|
-
readonly required: readonly ["authorityRoute", "status"];
|
|
3553
|
-
readonly properties: {
|
|
3554
|
-
readonly authorityRoute: {
|
|
3555
|
-
readonly $ref: "#/components/schemas/FiscalAuthorityRoute";
|
|
3556
|
-
};
|
|
3557
|
-
readonly status: {
|
|
3558
|
-
readonly type: "string";
|
|
3559
|
-
readonly enum: readonly ["pending"];
|
|
3560
|
-
};
|
|
3561
|
-
};
|
|
3562
|
-
readonly additionalProperties: false;
|
|
3563
|
-
}, {
|
|
3564
|
-
readonly type: "object";
|
|
3565
|
-
readonly required: readonly ["authorityRoute", "readyAt", "status"];
|
|
3566
|
-
readonly properties: {
|
|
3567
|
-
readonly authorityRoute: {
|
|
3568
|
-
readonly $ref: "#/components/schemas/FiscalAuthorityRoute";
|
|
3569
|
-
};
|
|
3570
|
-
readonly readyAt: {
|
|
3571
|
-
readonly type: "string";
|
|
3572
|
-
readonly format: "date-time";
|
|
3573
|
-
};
|
|
3574
|
-
readonly status: {
|
|
3575
|
-
readonly type: "string";
|
|
3576
|
-
readonly enum: readonly ["ready"];
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
readonly additionalProperties: false;
|
|
3580
|
-
}, {
|
|
3581
|
-
readonly type: "object";
|
|
3582
|
-
readonly required: readonly ["terminalResultCode", "status"];
|
|
3583
|
-
readonly properties: {
|
|
3584
|
-
readonly status: {
|
|
3585
|
-
readonly type: "string";
|
|
3586
|
-
readonly enum: readonly ["unavailable"];
|
|
3587
|
-
};
|
|
3588
|
-
readonly terminalResultCode: {
|
|
3589
|
-
readonly $ref: "#/components/schemas/BuyerDeliveryTerminalResultCode";
|
|
3590
|
-
};
|
|
3591
|
-
};
|
|
3592
|
-
readonly additionalProperties: false;
|
|
3593
|
-
}];
|
|
3594
|
-
readonly description: "Whether the buyer may receive the e-CF: `ready` once DGII received it and answered `Aceptado`\nor `Aceptado Condicional`, never at signing or submission alone.";
|
|
3595
|
-
readonly discriminator: {
|
|
3596
|
-
readonly propertyName: "status";
|
|
3597
|
-
};
|
|
3598
|
-
};
|
|
3599
|
-
readonly FiscalAuthorityRoute: {
|
|
3600
|
-
readonly type: "string";
|
|
3601
|
-
readonly description: "DGII authority protocol selected by the Rust decision core from admitted fiscal facts.";
|
|
3602
|
-
readonly enum: readonly ["complete_ecf_reception", "consumer_summary_reception"];
|
|
3603
|
-
};
|
|
3604
|
-
readonly BuyerDeliveryTerminalResultCode: {
|
|
3605
|
-
readonly type: "string";
|
|
3606
|
-
readonly description: "Terminal lifecycle outcomes that can make buyer delivery permanently unavailable.";
|
|
3607
|
-
readonly enum: readonly ["authority_status_accepted", "authority_status_accepted_with_findings", "authority_status_rejected", "authority_submission_rejected", "consumer_summary_accepted", "consumer_summary_accepted_with_findings", "consumer_summary_rejected"];
|
|
3608
|
-
};
|
|
3609
|
-
readonly InvoiceCorrection: {
|
|
3740
|
+
readonly InvoiceAdditionalInformationResource: {
|
|
3610
3741
|
readonly type: "object";
|
|
3611
|
-
readonly required: readonly ["
|
|
3742
|
+
readonly required: readonly ["referenceNumber", "shipment"];
|
|
3612
3743
|
readonly properties: {
|
|
3613
|
-
readonly
|
|
3614
|
-
readonly
|
|
3615
|
-
|
|
3616
|
-
readonly createdAt: {
|
|
3617
|
-
readonly type: "string";
|
|
3618
|
-
readonly format: "date-time";
|
|
3619
|
-
};
|
|
3620
|
-
readonly modificationCode: {
|
|
3621
|
-
readonly type: "string";
|
|
3622
|
-
};
|
|
3623
|
-
readonly reason: {
|
|
3624
|
-
readonly type: "string";
|
|
3744
|
+
readonly referenceNumber: {
|
|
3745
|
+
readonly type: readonly ["string", "null"];
|
|
3746
|
+
readonly maxLength: 20;
|
|
3625
3747
|
};
|
|
3626
|
-
readonly
|
|
3627
|
-
readonly
|
|
3748
|
+
readonly shipment: {
|
|
3749
|
+
readonly oneOf: readonly [{
|
|
3750
|
+
readonly type: "null";
|
|
3751
|
+
}, {
|
|
3752
|
+
readonly $ref: "#/components/schemas/InvoiceShipmentInformationResource";
|
|
3753
|
+
}];
|
|
3628
3754
|
};
|
|
3629
3755
|
};
|
|
3630
3756
|
readonly additionalProperties: false;
|
|
3631
3757
|
};
|
|
3632
|
-
readonly
|
|
3758
|
+
readonly InvoiceShipmentInformationResource: {
|
|
3633
3759
|
readonly type: "object";
|
|
3634
|
-
readonly required: readonly ["
|
|
3760
|
+
readonly required: readonly ["shipmentDate", "shipmentNumber", "containerNumber", "grossWeight", "netWeight", "grossWeightUnit", "netWeightUnit", "packageCount", "packageUnit", "packageVolume", "volumeUnit", "driver", "transportDocumentNumber", "vehicleFiche", "vehiclePlate", "route", "transportZone", "deliveryNoteNumber"];
|
|
3635
3761
|
readonly properties: {
|
|
3636
|
-
readonly
|
|
3637
|
-
readonly
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3762
|
+
readonly containerNumber: {
|
|
3763
|
+
readonly oneOf: readonly [{
|
|
3764
|
+
readonly type: "null";
|
|
3765
|
+
}, {
|
|
3766
|
+
readonly type: "string";
|
|
3767
|
+
readonly maxLength: 100;
|
|
3768
|
+
readonly minLength: 1;
|
|
3769
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3770
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3771
|
+
}];
|
|
3641
3772
|
};
|
|
3642
|
-
readonly
|
|
3773
|
+
readonly deliveryNoteNumber: {
|
|
3774
|
+
readonly oneOf: readonly [{
|
|
3775
|
+
readonly type: "null";
|
|
3776
|
+
}, {
|
|
3777
|
+
readonly type: "string";
|
|
3778
|
+
readonly maxLength: 20;
|
|
3779
|
+
readonly minLength: 1;
|
|
3780
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3781
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3782
|
+
}];
|
|
3783
|
+
};
|
|
3784
|
+
readonly driver: {
|
|
3785
|
+
readonly oneOf: readonly [{
|
|
3786
|
+
readonly type: "null";
|
|
3787
|
+
}, {
|
|
3788
|
+
readonly type: "string";
|
|
3789
|
+
readonly maxLength: 20;
|
|
3790
|
+
readonly minLength: 1;
|
|
3791
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3792
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3793
|
+
}];
|
|
3794
|
+
};
|
|
3795
|
+
readonly grossWeight: {
|
|
3796
|
+
readonly oneOf: readonly [{
|
|
3797
|
+
readonly type: "null";
|
|
3798
|
+
}, {
|
|
3799
|
+
readonly type: "string";
|
|
3800
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
3801
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3802
|
+
}];
|
|
3803
|
+
};
|
|
3804
|
+
readonly grossWeightUnit: {
|
|
3805
|
+
readonly oneOf: readonly [{
|
|
3806
|
+
readonly type: "null";
|
|
3807
|
+
}, {
|
|
3808
|
+
readonly type: "string";
|
|
3809
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
3810
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3811
|
+
}];
|
|
3812
|
+
};
|
|
3813
|
+
readonly netWeight: {
|
|
3814
|
+
readonly oneOf: readonly [{
|
|
3815
|
+
readonly type: "null";
|
|
3816
|
+
}, {
|
|
3817
|
+
readonly type: "string";
|
|
3818
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
3819
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3820
|
+
}];
|
|
3821
|
+
};
|
|
3822
|
+
readonly netWeightUnit: {
|
|
3823
|
+
readonly oneOf: readonly [{
|
|
3824
|
+
readonly type: "null";
|
|
3825
|
+
}, {
|
|
3826
|
+
readonly type: "string";
|
|
3827
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
3828
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3829
|
+
}];
|
|
3830
|
+
};
|
|
3831
|
+
readonly packageCount: {
|
|
3832
|
+
readonly oneOf: readonly [{
|
|
3833
|
+
readonly type: "null";
|
|
3834
|
+
}, {
|
|
3835
|
+
readonly type: "string";
|
|
3836
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
3837
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3838
|
+
}];
|
|
3839
|
+
};
|
|
3840
|
+
readonly packageUnit: {
|
|
3841
|
+
readonly oneOf: readonly [{
|
|
3842
|
+
readonly type: "null";
|
|
3843
|
+
}, {
|
|
3844
|
+
readonly type: "string";
|
|
3845
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
3846
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3847
|
+
}];
|
|
3848
|
+
};
|
|
3849
|
+
readonly packageVolume: {
|
|
3850
|
+
readonly oneOf: readonly [{
|
|
3851
|
+
readonly type: "null";
|
|
3852
|
+
}, {
|
|
3853
|
+
readonly type: "string";
|
|
3854
|
+
readonly pattern: "^(?=[0-9.]*[1-9])[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
3855
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3856
|
+
}];
|
|
3857
|
+
};
|
|
3858
|
+
readonly route: {
|
|
3859
|
+
readonly oneOf: readonly [{
|
|
3860
|
+
readonly type: "null";
|
|
3861
|
+
}, {
|
|
3862
|
+
readonly type: "string";
|
|
3863
|
+
readonly maxLength: 20;
|
|
3864
|
+
readonly minLength: 1;
|
|
3865
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3866
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3867
|
+
}];
|
|
3868
|
+
};
|
|
3869
|
+
readonly shipmentDate: {
|
|
3870
|
+
readonly oneOf: readonly [{
|
|
3871
|
+
readonly type: "null";
|
|
3872
|
+
}, {
|
|
3873
|
+
readonly type: "string";
|
|
3874
|
+
readonly pattern: "^(?:(?: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))$";
|
|
3875
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3876
|
+
}];
|
|
3877
|
+
};
|
|
3878
|
+
readonly shipmentNumber: {
|
|
3879
|
+
readonly oneOf: readonly [{
|
|
3880
|
+
readonly type: "null";
|
|
3881
|
+
}, {
|
|
3882
|
+
readonly type: "string";
|
|
3883
|
+
readonly maxLength: 25;
|
|
3884
|
+
readonly minLength: 1;
|
|
3885
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3886
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3887
|
+
}];
|
|
3888
|
+
};
|
|
3889
|
+
readonly transportDocumentNumber: {
|
|
3890
|
+
readonly oneOf: readonly [{
|
|
3891
|
+
readonly type: "null";
|
|
3892
|
+
}, {
|
|
3893
|
+
readonly type: "string";
|
|
3894
|
+
readonly maxLength: 20;
|
|
3895
|
+
readonly minLength: 1;
|
|
3896
|
+
readonly pattern: "^[0-9]+$";
|
|
3897
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3898
|
+
}];
|
|
3899
|
+
};
|
|
3900
|
+
readonly transportZone: {
|
|
3901
|
+
readonly oneOf: readonly [{
|
|
3902
|
+
readonly type: "null";
|
|
3903
|
+
}, {
|
|
3904
|
+
readonly type: "string";
|
|
3905
|
+
readonly maxLength: 20;
|
|
3906
|
+
readonly minLength: 1;
|
|
3907
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3908
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3909
|
+
}];
|
|
3910
|
+
};
|
|
3911
|
+
readonly vehicleFiche: {
|
|
3912
|
+
readonly oneOf: readonly [{
|
|
3913
|
+
readonly type: "null";
|
|
3914
|
+
}, {
|
|
3915
|
+
readonly type: "string";
|
|
3916
|
+
readonly maxLength: 10;
|
|
3917
|
+
readonly minLength: 1;
|
|
3918
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3919
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3920
|
+
}];
|
|
3921
|
+
};
|
|
3922
|
+
readonly vehiclePlate: {
|
|
3923
|
+
readonly oneOf: readonly [{
|
|
3924
|
+
readonly type: "null";
|
|
3925
|
+
}, {
|
|
3926
|
+
readonly type: "string";
|
|
3927
|
+
readonly maxLength: 7;
|
|
3928
|
+
readonly minLength: 1;
|
|
3929
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
3930
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
3931
|
+
}];
|
|
3932
|
+
};
|
|
3933
|
+
readonly volumeUnit: {
|
|
3934
|
+
readonly oneOf: readonly [{
|
|
3935
|
+
readonly type: "null";
|
|
3936
|
+
}, {
|
|
3937
|
+
readonly type: "string";
|
|
3938
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
3939
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
3940
|
+
}];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
readonly additionalProperties: false;
|
|
3944
|
+
};
|
|
3945
|
+
readonly InvoiceBuyerDeliveryReadiness: {
|
|
3946
|
+
readonly oneOf: readonly [{
|
|
3947
|
+
readonly type: "object";
|
|
3948
|
+
readonly title: "NotApplicableReadiness";
|
|
3949
|
+
readonly required: readonly ["status"];
|
|
3950
|
+
readonly properties: {
|
|
3951
|
+
readonly status: {
|
|
3952
|
+
readonly type: "string";
|
|
3953
|
+
readonly enum: readonly ["notApplicable"];
|
|
3954
|
+
};
|
|
3955
|
+
};
|
|
3956
|
+
readonly additionalProperties: false;
|
|
3957
|
+
}, {
|
|
3958
|
+
readonly type: "object";
|
|
3959
|
+
readonly required: readonly ["authorityRoute", "status"];
|
|
3960
|
+
readonly properties: {
|
|
3961
|
+
readonly authorityRoute: {
|
|
3962
|
+
readonly $ref: "#/components/schemas/FiscalAuthorityRoute";
|
|
3963
|
+
};
|
|
3964
|
+
readonly status: {
|
|
3965
|
+
readonly type: "string";
|
|
3966
|
+
readonly enum: readonly ["pending"];
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
readonly additionalProperties: false;
|
|
3970
|
+
}, {
|
|
3971
|
+
readonly type: "object";
|
|
3972
|
+
readonly required: readonly ["authorityRoute", "readyAt", "status"];
|
|
3973
|
+
readonly properties: {
|
|
3974
|
+
readonly authorityRoute: {
|
|
3975
|
+
readonly $ref: "#/components/schemas/FiscalAuthorityRoute";
|
|
3976
|
+
};
|
|
3977
|
+
readonly readyAt: {
|
|
3978
|
+
readonly type: "string";
|
|
3979
|
+
readonly format: "date-time";
|
|
3980
|
+
};
|
|
3981
|
+
readonly status: {
|
|
3982
|
+
readonly type: "string";
|
|
3983
|
+
readonly enum: readonly ["ready"];
|
|
3984
|
+
};
|
|
3985
|
+
};
|
|
3986
|
+
readonly additionalProperties: false;
|
|
3987
|
+
}, {
|
|
3988
|
+
readonly type: "object";
|
|
3989
|
+
readonly required: readonly ["terminalResultCode", "status"];
|
|
3990
|
+
readonly properties: {
|
|
3991
|
+
readonly status: {
|
|
3992
|
+
readonly type: "string";
|
|
3993
|
+
readonly enum: readonly ["unavailable"];
|
|
3994
|
+
};
|
|
3995
|
+
readonly terminalResultCode: {
|
|
3996
|
+
readonly $ref: "#/components/schemas/BuyerDeliveryTerminalResultCode";
|
|
3997
|
+
};
|
|
3998
|
+
};
|
|
3999
|
+
readonly additionalProperties: false;
|
|
4000
|
+
}];
|
|
4001
|
+
readonly description: "Whether the buyer may receive the e-CF: `ready` once DGII received it and answered `Aceptado`\nor `Aceptado Condicional`, never at signing or submission alone.";
|
|
4002
|
+
readonly discriminator: {
|
|
4003
|
+
readonly propertyName: "status";
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
4006
|
+
readonly FiscalAuthorityRoute: {
|
|
4007
|
+
readonly type: "string";
|
|
4008
|
+
readonly description: "DGII authority protocol selected by the Rust decision core from admitted fiscal facts.";
|
|
4009
|
+
readonly enum: readonly ["complete_ecf_reception", "consumer_summary_reception"];
|
|
4010
|
+
};
|
|
4011
|
+
readonly BuyerDeliveryTerminalResultCode: {
|
|
4012
|
+
readonly type: "string";
|
|
4013
|
+
readonly description: "Terminal lifecycle outcomes that can make buyer delivery permanently unavailable.";
|
|
4014
|
+
readonly enum: readonly ["authority_status_accepted", "authority_status_accepted_with_findings", "authority_status_rejected", "authority_submission_rejected", "consumer_summary_accepted", "consumer_summary_accepted_with_findings", "consumer_summary_rejected"];
|
|
4015
|
+
};
|
|
4016
|
+
readonly InvoiceCorrection: {
|
|
4017
|
+
readonly type: "object";
|
|
4018
|
+
readonly required: readonly ["relationshipKind", "affectedDocument", "modificationCode", "reason", "createdAt"];
|
|
4019
|
+
readonly properties: {
|
|
4020
|
+
readonly affectedDocument: {
|
|
4021
|
+
readonly $ref: "#/components/schemas/InvoiceAffectedFiscalDocument";
|
|
4022
|
+
};
|
|
4023
|
+
readonly createdAt: {
|
|
4024
|
+
readonly type: "string";
|
|
4025
|
+
readonly format: "date-time";
|
|
4026
|
+
};
|
|
4027
|
+
readonly modificationCode: {
|
|
4028
|
+
readonly type: "string";
|
|
4029
|
+
};
|
|
4030
|
+
readonly reason: {
|
|
4031
|
+
readonly type: "string";
|
|
4032
|
+
};
|
|
4033
|
+
readonly relationshipKind: {
|
|
4034
|
+
readonly $ref: "#/components/schemas/FiscalDocumentRelationshipKind";
|
|
4035
|
+
};
|
|
4036
|
+
};
|
|
4037
|
+
readonly additionalProperties: false;
|
|
4038
|
+
};
|
|
4039
|
+
readonly InvoiceAffectedFiscalDocument: {
|
|
4040
|
+
readonly type: "object";
|
|
4041
|
+
readonly required: readonly ["attribution", "environment", "issuerTaxId", "fiscalNumber", "issuedOn"];
|
|
4042
|
+
readonly properties: {
|
|
4043
|
+
readonly attribution: {
|
|
4044
|
+
readonly $ref: "#/components/schemas/InvoiceAffectedDocumentAttribution";
|
|
4045
|
+
};
|
|
4046
|
+
readonly environment: {
|
|
4047
|
+
readonly $ref: "#/components/schemas/FiscalEnvironment";
|
|
4048
|
+
};
|
|
4049
|
+
readonly fiscalNumber: {
|
|
3643
4050
|
readonly type: "string";
|
|
3644
4051
|
};
|
|
3645
4052
|
readonly issuedOn: {
|
|
@@ -3795,6 +4202,78 @@ export declare const invoiceApiContract: {
|
|
|
3795
4202
|
};
|
|
3796
4203
|
readonly additionalProperties: false;
|
|
3797
4204
|
};
|
|
4205
|
+
readonly InvoiceReferenceInformationResource: {
|
|
4206
|
+
readonly type: "object";
|
|
4207
|
+
readonly required: readonly ["attribution", "fiscalNumber", "issuedOn", "modificationCode"];
|
|
4208
|
+
readonly properties: {
|
|
4209
|
+
readonly attribution: {
|
|
4210
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceAttributionResource";
|
|
4211
|
+
};
|
|
4212
|
+
readonly fiscalNumber: {
|
|
4213
|
+
readonly type: "string";
|
|
4214
|
+
readonly pattern: "^(B[0-9]{10}|E[0-9]{12}|[AP][0-9]{18})$";
|
|
4215
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
4216
|
+
};
|
|
4217
|
+
readonly issuedOn: {
|
|
4218
|
+
readonly type: "string";
|
|
4219
|
+
readonly pattern: "^(?:(?: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))$";
|
|
4220
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
4221
|
+
};
|
|
4222
|
+
readonly modificationCode: {
|
|
4223
|
+
readonly type: "string";
|
|
4224
|
+
readonly enum: readonly ["4", "5"];
|
|
4225
|
+
readonly "x-timbro-submission-validation": readonly ["enum"];
|
|
4226
|
+
};
|
|
4227
|
+
};
|
|
4228
|
+
readonly additionalProperties: false;
|
|
4229
|
+
};
|
|
4230
|
+
readonly InvoiceReferenceAttributionResource: {
|
|
4231
|
+
readonly oneOf: readonly [{
|
|
4232
|
+
readonly type: "object";
|
|
4233
|
+
readonly title: "InternalOperationReference";
|
|
4234
|
+
readonly required: readonly ["fiscalOperationId", "kind"];
|
|
4235
|
+
readonly properties: {
|
|
4236
|
+
readonly fiscalOperationId: {
|
|
4237
|
+
readonly type: "string";
|
|
4238
|
+
readonly pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
|
|
4239
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
4240
|
+
};
|
|
4241
|
+
readonly kind: {
|
|
4242
|
+
readonly type: "string";
|
|
4243
|
+
readonly enum: readonly ["internal_operation"];
|
|
4244
|
+
};
|
|
4245
|
+
};
|
|
4246
|
+
readonly additionalProperties: false;
|
|
4247
|
+
}, {
|
|
4248
|
+
readonly type: "object";
|
|
4249
|
+
readonly required: readonly ["issuerTaxId", "environment", "sourceReference", "kind"];
|
|
4250
|
+
readonly properties: {
|
|
4251
|
+
readonly environment: {
|
|
4252
|
+
readonly $ref: "#/components/schemas/FiscalEnvironment";
|
|
4253
|
+
};
|
|
4254
|
+
readonly issuerTaxId: {
|
|
4255
|
+
readonly type: "string";
|
|
4256
|
+
readonly pattern: "^[0-9]{9}([0-9]{2})?$";
|
|
4257
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
4258
|
+
};
|
|
4259
|
+
readonly kind: {
|
|
4260
|
+
readonly type: "string";
|
|
4261
|
+
readonly enum: readonly ["external_document"];
|
|
4262
|
+
};
|
|
4263
|
+
readonly sourceReference: {
|
|
4264
|
+
readonly type: "string";
|
|
4265
|
+
readonly maxLength: 250;
|
|
4266
|
+
readonly minLength: 1;
|
|
4267
|
+
readonly pattern: "^(?=.*[^\\p{White_Space}])[\\s\\S]+$";
|
|
4268
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
4271
|
+
readonly additionalProperties: false;
|
|
4272
|
+
}];
|
|
4273
|
+
readonly discriminator: {
|
|
4274
|
+
readonly propertyName: "kind";
|
|
4275
|
+
};
|
|
4276
|
+
};
|
|
3798
4277
|
readonly InvoiceProcessingStage: {
|
|
3799
4278
|
readonly type: "string";
|
|
3800
4279
|
readonly enum: readonly ["admitted", "signed", "consumerSummarySigned", "submitted", "authorityProcessing"];
|
|
@@ -3809,6 +4288,13 @@ export declare const invoiceApiContract: {
|
|
|
3809
4288
|
readonly type: "object";
|
|
3810
4289
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "items", "buyer", "type"];
|
|
3811
4290
|
readonly properties: {
|
|
4291
|
+
readonly additionalInformation: {
|
|
4292
|
+
readonly oneOf: readonly [{
|
|
4293
|
+
readonly type: "null";
|
|
4294
|
+
}, {
|
|
4295
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
4296
|
+
}];
|
|
4297
|
+
};
|
|
3812
4298
|
readonly buyer: {
|
|
3813
4299
|
readonly $ref: "#/components/schemas/InvoiceBuyer";
|
|
3814
4300
|
};
|
|
@@ -3867,6 +4353,13 @@ export declare const invoiceApiContract: {
|
|
|
3867
4353
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
3868
4354
|
}];
|
|
3869
4355
|
};
|
|
4356
|
+
readonly referenceInformation: {
|
|
4357
|
+
readonly oneOf: readonly [{
|
|
4358
|
+
readonly type: "null";
|
|
4359
|
+
}, {
|
|
4360
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4361
|
+
}];
|
|
4362
|
+
};
|
|
3870
4363
|
readonly source: {
|
|
3871
4364
|
readonly oneOf: readonly [{
|
|
3872
4365
|
readonly type: "null";
|
|
@@ -3884,6 +4377,13 @@ export declare const invoiceApiContract: {
|
|
|
3884
4377
|
readonly type: "object";
|
|
3885
4378
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "items", "type"];
|
|
3886
4379
|
readonly properties: {
|
|
4380
|
+
readonly additionalInformation: {
|
|
4381
|
+
readonly oneOf: readonly [{
|
|
4382
|
+
readonly type: "null";
|
|
4383
|
+
}, {
|
|
4384
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
4385
|
+
}];
|
|
4386
|
+
};
|
|
3887
4387
|
readonly buyer: {
|
|
3888
4388
|
readonly oneOf: readonly [{
|
|
3889
4389
|
readonly type: "null";
|
|
@@ -3946,6 +4446,13 @@ export declare const invoiceApiContract: {
|
|
|
3946
4446
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
3947
4447
|
}];
|
|
3948
4448
|
};
|
|
4449
|
+
readonly referenceInformation: {
|
|
4450
|
+
readonly oneOf: readonly [{
|
|
4451
|
+
readonly type: "null";
|
|
4452
|
+
}, {
|
|
4453
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4454
|
+
}];
|
|
4455
|
+
};
|
|
3949
4456
|
readonly source: {
|
|
3950
4457
|
readonly oneOf: readonly [{
|
|
3951
4458
|
readonly type: "null";
|
|
@@ -3963,6 +4470,13 @@ export declare const invoiceApiContract: {
|
|
|
3963
4470
|
readonly type: "object";
|
|
3964
4471
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "supplier", "items", "type"];
|
|
3965
4472
|
readonly properties: {
|
|
4473
|
+
readonly additionalInformation: {
|
|
4474
|
+
readonly oneOf: readonly [{
|
|
4475
|
+
readonly type: "null";
|
|
4476
|
+
}, {
|
|
4477
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
4478
|
+
}];
|
|
4479
|
+
};
|
|
3966
4480
|
readonly currency: {
|
|
3967
4481
|
readonly type: "string";
|
|
3968
4482
|
readonly enum: readonly ["DOP"];
|
|
@@ -4009,6 +4523,13 @@ export declare const invoiceApiContract: {
|
|
|
4009
4523
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4010
4524
|
}];
|
|
4011
4525
|
};
|
|
4526
|
+
readonly referenceInformation: {
|
|
4527
|
+
readonly oneOf: readonly [{
|
|
4528
|
+
readonly type: "null";
|
|
4529
|
+
}, {
|
|
4530
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4531
|
+
}];
|
|
4532
|
+
};
|
|
4012
4533
|
readonly source: {
|
|
4013
4534
|
readonly oneOf: readonly [{
|
|
4014
4535
|
readonly type: "null";
|
|
@@ -4108,6 +4629,13 @@ export declare const invoiceApiContract: {
|
|
|
4108
4629
|
readonly type: "object";
|
|
4109
4630
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "buyer", "governmentEligibility", "items", "type"];
|
|
4110
4631
|
readonly properties: {
|
|
4632
|
+
readonly additionalInformation: {
|
|
4633
|
+
readonly oneOf: readonly [{
|
|
4634
|
+
readonly type: "null";
|
|
4635
|
+
}, {
|
|
4636
|
+
readonly $ref: "#/components/schemas/InvoiceGovernmentAdditionalInformation";
|
|
4637
|
+
}];
|
|
4638
|
+
};
|
|
4111
4639
|
readonly buyer: {
|
|
4112
4640
|
readonly type: "object";
|
|
4113
4641
|
readonly required: readonly ["taxId", "legalName"];
|
|
@@ -4144,6 +4672,15 @@ export declare const invoiceApiContract: {
|
|
|
4144
4672
|
readonly pattern: "^(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}$";
|
|
4145
4673
|
}];
|
|
4146
4674
|
};
|
|
4675
|
+
readonly deliveryPhone: {
|
|
4676
|
+
readonly oneOf: readonly [{
|
|
4677
|
+
readonly type: "null";
|
|
4678
|
+
}, {
|
|
4679
|
+
readonly type: "string";
|
|
4680
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
4681
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
4682
|
+
}];
|
|
4683
|
+
};
|
|
4147
4684
|
readonly email: {
|
|
4148
4685
|
readonly oneOf: readonly [{
|
|
4149
4686
|
readonly type: "null";
|
|
@@ -4279,6 +4816,13 @@ export declare const invoiceApiContract: {
|
|
|
4279
4816
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4280
4817
|
}];
|
|
4281
4818
|
};
|
|
4819
|
+
readonly referenceInformation: {
|
|
4820
|
+
readonly oneOf: readonly [{
|
|
4821
|
+
readonly type: "null";
|
|
4822
|
+
}, {
|
|
4823
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4824
|
+
}];
|
|
4825
|
+
};
|
|
4282
4826
|
readonly source: {
|
|
4283
4827
|
readonly oneOf: readonly [{
|
|
4284
4828
|
readonly type: "null";
|
|
@@ -4353,6 +4897,13 @@ export declare const invoiceApiContract: {
|
|
|
4353
4897
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4354
4898
|
}];
|
|
4355
4899
|
};
|
|
4900
|
+
readonly referenceInformation: {
|
|
4901
|
+
readonly oneOf: readonly [{
|
|
4902
|
+
readonly type: "null";
|
|
4903
|
+
}, {
|
|
4904
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4905
|
+
}];
|
|
4906
|
+
};
|
|
4356
4907
|
readonly source: {
|
|
4357
4908
|
readonly oneOf: readonly [{
|
|
4358
4909
|
readonly type: "null";
|
|
@@ -4430,6 +4981,13 @@ export declare const invoiceApiContract: {
|
|
|
4430
4981
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4431
4982
|
}];
|
|
4432
4983
|
};
|
|
4984
|
+
readonly referenceInformation: {
|
|
4985
|
+
readonly oneOf: readonly [{
|
|
4986
|
+
readonly type: "null";
|
|
4987
|
+
}, {
|
|
4988
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
4989
|
+
}];
|
|
4990
|
+
};
|
|
4433
4991
|
readonly source: {
|
|
4434
4992
|
readonly oneOf: readonly [{
|
|
4435
4993
|
readonly type: "null";
|
|
@@ -4450,6 +5008,13 @@ export declare const invoiceApiContract: {
|
|
|
4450
5008
|
readonly type: "object";
|
|
4451
5009
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "buyer", "eligibility", "items", "type"];
|
|
4452
5010
|
readonly properties: {
|
|
5011
|
+
readonly additionalInformation: {
|
|
5012
|
+
readonly oneOf: readonly [{
|
|
5013
|
+
readonly type: "null";
|
|
5014
|
+
}, {
|
|
5015
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
5016
|
+
}];
|
|
5017
|
+
};
|
|
4453
5018
|
readonly buyer: {
|
|
4454
5019
|
readonly $ref: "#/components/schemas/InvoiceSpecialRegimeBuyer";
|
|
4455
5020
|
};
|
|
@@ -4518,6 +5083,13 @@ export declare const invoiceApiContract: {
|
|
|
4518
5083
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4519
5084
|
}];
|
|
4520
5085
|
};
|
|
5086
|
+
readonly referenceInformation: {
|
|
5087
|
+
readonly oneOf: readonly [{
|
|
5088
|
+
readonly type: "null";
|
|
5089
|
+
}, {
|
|
5090
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
5091
|
+
}];
|
|
5092
|
+
};
|
|
4521
5093
|
readonly source: {
|
|
4522
5094
|
readonly oneOf: readonly [{
|
|
4523
5095
|
readonly type: "null";
|
|
@@ -4535,6 +5107,13 @@ export declare const invoiceApiContract: {
|
|
|
4535
5107
|
readonly type: "object";
|
|
4536
5108
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "buyer", "eligibility", "items", "type"];
|
|
4537
5109
|
readonly properties: {
|
|
5110
|
+
readonly additionalInformation: {
|
|
5111
|
+
readonly oneOf: readonly [{
|
|
5112
|
+
readonly type: "null";
|
|
5113
|
+
}, {
|
|
5114
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
5115
|
+
}];
|
|
5116
|
+
};
|
|
4538
5117
|
readonly buyer: {
|
|
4539
5118
|
readonly $ref: "#/components/schemas/InvoiceExportBuyer";
|
|
4540
5119
|
};
|
|
@@ -4603,6 +5182,13 @@ export declare const invoiceApiContract: {
|
|
|
4603
5182
|
readonly $ref: "#/components/schemas/InvoicePdfLayout";
|
|
4604
5183
|
}];
|
|
4605
5184
|
};
|
|
5185
|
+
readonly referenceInformation: {
|
|
5186
|
+
readonly oneOf: readonly [{
|
|
5187
|
+
readonly type: "null";
|
|
5188
|
+
}, {
|
|
5189
|
+
readonly $ref: "#/components/schemas/InvoiceReferenceInformation";
|
|
5190
|
+
}];
|
|
5191
|
+
};
|
|
4606
5192
|
readonly source: {
|
|
4607
5193
|
readonly oneOf: readonly [{
|
|
4608
5194
|
readonly type: "null";
|
|
@@ -4620,6 +5206,13 @@ export declare const invoiceApiContract: {
|
|
|
4620
5206
|
readonly type: "object";
|
|
4621
5207
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "items", "originalInvoiceId", "modificationCode", "reason", "type"];
|
|
4622
5208
|
readonly properties: {
|
|
5209
|
+
readonly additionalInformation: {
|
|
5210
|
+
readonly oneOf: readonly [{
|
|
5211
|
+
readonly type: "null";
|
|
5212
|
+
}, {
|
|
5213
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
5214
|
+
}];
|
|
5215
|
+
};
|
|
4623
5216
|
readonly currency: {
|
|
4624
5217
|
readonly type: "string";
|
|
4625
5218
|
readonly enum: readonly ["DOP"];
|
|
@@ -4706,6 +5299,13 @@ export declare const invoiceApiContract: {
|
|
|
4706
5299
|
readonly type: "object";
|
|
4707
5300
|
readonly required: readonly ["invoiceReference", "currency", "paymentTerms", "items", "originalInvoiceId", "modificationCode", "reason", "type"];
|
|
4708
5301
|
readonly properties: {
|
|
5302
|
+
readonly additionalInformation: {
|
|
5303
|
+
readonly oneOf: readonly [{
|
|
5304
|
+
readonly type: "null";
|
|
5305
|
+
}, {
|
|
5306
|
+
readonly $ref: "#/components/schemas/InvoiceAdditionalInformation";
|
|
5307
|
+
}];
|
|
5308
|
+
};
|
|
4709
5309
|
readonly currency: {
|
|
4710
5310
|
readonly type: "string";
|
|
4711
5311
|
readonly enum: readonly ["DOP"];
|
|
@@ -4793,6 +5393,210 @@ export declare const invoiceApiContract: {
|
|
|
4793
5393
|
readonly propertyName: "type";
|
|
4794
5394
|
};
|
|
4795
5395
|
};
|
|
5396
|
+
readonly InvoiceAdditionalInformation: {
|
|
5397
|
+
readonly type: "object";
|
|
5398
|
+
readonly properties: {
|
|
5399
|
+
readonly referenceNumber: {
|
|
5400
|
+
readonly oneOf: readonly [{
|
|
5401
|
+
readonly type: "null";
|
|
5402
|
+
}, {
|
|
5403
|
+
readonly type: "string";
|
|
5404
|
+
readonly maxLength: 20;
|
|
5405
|
+
readonly minLength: 1;
|
|
5406
|
+
readonly pattern: "^[0-9]+$";
|
|
5407
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5408
|
+
}];
|
|
5409
|
+
};
|
|
5410
|
+
readonly shipment: {
|
|
5411
|
+
readonly type: "object";
|
|
5412
|
+
readonly properties: {
|
|
5413
|
+
readonly containerNumber: {
|
|
5414
|
+
readonly oneOf: readonly [{
|
|
5415
|
+
readonly type: "null";
|
|
5416
|
+
}, {
|
|
5417
|
+
readonly type: "string";
|
|
5418
|
+
readonly maxLength: 100;
|
|
5419
|
+
readonly minLength: 1;
|
|
5420
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5421
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5422
|
+
}];
|
|
5423
|
+
};
|
|
5424
|
+
readonly deliveryNoteNumber: {
|
|
5425
|
+
readonly oneOf: readonly [{
|
|
5426
|
+
readonly type: "null";
|
|
5427
|
+
}, {
|
|
5428
|
+
readonly type: "string";
|
|
5429
|
+
readonly maxLength: 20;
|
|
5430
|
+
readonly minLength: 1;
|
|
5431
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5432
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5433
|
+
}];
|
|
5434
|
+
};
|
|
5435
|
+
readonly driver: {
|
|
5436
|
+
readonly oneOf: readonly [{
|
|
5437
|
+
readonly type: "null";
|
|
5438
|
+
}, {
|
|
5439
|
+
readonly type: "string";
|
|
5440
|
+
readonly maxLength: 20;
|
|
5441
|
+
readonly minLength: 1;
|
|
5442
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5443
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5444
|
+
}];
|
|
5445
|
+
};
|
|
5446
|
+
readonly grossWeight: {
|
|
5447
|
+
readonly oneOf: readonly [{
|
|
5448
|
+
readonly type: "null";
|
|
5449
|
+
}, {
|
|
5450
|
+
readonly type: "string";
|
|
5451
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
5452
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5453
|
+
}];
|
|
5454
|
+
};
|
|
5455
|
+
readonly grossWeightUnit: {
|
|
5456
|
+
readonly oneOf: readonly [{
|
|
5457
|
+
readonly type: "null";
|
|
5458
|
+
}, {
|
|
5459
|
+
readonly type: "string";
|
|
5460
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
5461
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5462
|
+
}];
|
|
5463
|
+
};
|
|
5464
|
+
readonly netWeight: {
|
|
5465
|
+
readonly oneOf: readonly [{
|
|
5466
|
+
readonly type: "null";
|
|
5467
|
+
}, {
|
|
5468
|
+
readonly type: "string";
|
|
5469
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
5470
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5471
|
+
}];
|
|
5472
|
+
};
|
|
5473
|
+
readonly netWeightUnit: {
|
|
5474
|
+
readonly oneOf: readonly [{
|
|
5475
|
+
readonly type: "null";
|
|
5476
|
+
}, {
|
|
5477
|
+
readonly type: "string";
|
|
5478
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
5479
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5480
|
+
}];
|
|
5481
|
+
};
|
|
5482
|
+
readonly packageCount: {
|
|
5483
|
+
readonly oneOf: readonly [{
|
|
5484
|
+
readonly type: "null";
|
|
5485
|
+
}, {
|
|
5486
|
+
readonly type: "string";
|
|
5487
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
5488
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5489
|
+
}];
|
|
5490
|
+
};
|
|
5491
|
+
readonly packageUnit: {
|
|
5492
|
+
readonly oneOf: readonly [{
|
|
5493
|
+
readonly type: "null";
|
|
5494
|
+
}, {
|
|
5495
|
+
readonly type: "string";
|
|
5496
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
5497
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5498
|
+
}];
|
|
5499
|
+
};
|
|
5500
|
+
readonly packageVolume: {
|
|
5501
|
+
readonly oneOf: readonly [{
|
|
5502
|
+
readonly type: "null";
|
|
5503
|
+
}, {
|
|
5504
|
+
readonly type: "string";
|
|
5505
|
+
readonly pattern: "^(?=[0-9.]*[1-9])[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
5506
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5507
|
+
}];
|
|
5508
|
+
};
|
|
5509
|
+
readonly route: {
|
|
5510
|
+
readonly oneOf: readonly [{
|
|
5511
|
+
readonly type: "null";
|
|
5512
|
+
}, {
|
|
5513
|
+
readonly type: "string";
|
|
5514
|
+
readonly maxLength: 20;
|
|
5515
|
+
readonly minLength: 1;
|
|
5516
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5517
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5518
|
+
}];
|
|
5519
|
+
};
|
|
5520
|
+
readonly shipmentDate: {
|
|
5521
|
+
readonly oneOf: readonly [{
|
|
5522
|
+
readonly type: "null";
|
|
5523
|
+
}, {
|
|
5524
|
+
readonly type: "string";
|
|
5525
|
+
readonly format: "date";
|
|
5526
|
+
readonly description: "A calendar date in the public API's ISO 8601 date form.";
|
|
5527
|
+
readonly pattern: "^(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}$";
|
|
5528
|
+
}];
|
|
5529
|
+
};
|
|
5530
|
+
readonly shipmentNumber: {
|
|
5531
|
+
readonly oneOf: readonly [{
|
|
5532
|
+
readonly type: "null";
|
|
5533
|
+
}, {
|
|
5534
|
+
readonly type: "string";
|
|
5535
|
+
readonly maxLength: 25;
|
|
5536
|
+
readonly minLength: 1;
|
|
5537
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5538
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5539
|
+
}];
|
|
5540
|
+
};
|
|
5541
|
+
readonly transportDocumentNumber: {
|
|
5542
|
+
readonly oneOf: readonly [{
|
|
5543
|
+
readonly type: "null";
|
|
5544
|
+
}, {
|
|
5545
|
+
readonly type: "string";
|
|
5546
|
+
readonly maxLength: 20;
|
|
5547
|
+
readonly minLength: 1;
|
|
5548
|
+
readonly pattern: "^[0-9]+$";
|
|
5549
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5550
|
+
}];
|
|
5551
|
+
};
|
|
5552
|
+
readonly transportZone: {
|
|
5553
|
+
readonly oneOf: readonly [{
|
|
5554
|
+
readonly type: "null";
|
|
5555
|
+
}, {
|
|
5556
|
+
readonly type: "string";
|
|
5557
|
+
readonly maxLength: 20;
|
|
5558
|
+
readonly minLength: 1;
|
|
5559
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5560
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5561
|
+
}];
|
|
5562
|
+
};
|
|
5563
|
+
readonly vehicleFiche: {
|
|
5564
|
+
readonly oneOf: readonly [{
|
|
5565
|
+
readonly type: "null";
|
|
5566
|
+
}, {
|
|
5567
|
+
readonly type: "string";
|
|
5568
|
+
readonly maxLength: 10;
|
|
5569
|
+
readonly minLength: 1;
|
|
5570
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5571
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5572
|
+
}];
|
|
5573
|
+
};
|
|
5574
|
+
readonly vehiclePlate: {
|
|
5575
|
+
readonly oneOf: readonly [{
|
|
5576
|
+
readonly type: "null";
|
|
5577
|
+
}, {
|
|
5578
|
+
readonly type: "string";
|
|
5579
|
+
readonly maxLength: 7;
|
|
5580
|
+
readonly minLength: 1;
|
|
5581
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5582
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5583
|
+
}];
|
|
5584
|
+
};
|
|
5585
|
+
readonly volumeUnit: {
|
|
5586
|
+
readonly oneOf: readonly [{
|
|
5587
|
+
readonly type: "null";
|
|
5588
|
+
}, {
|
|
5589
|
+
readonly type: "string";
|
|
5590
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
5591
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5592
|
+
}];
|
|
5593
|
+
};
|
|
5594
|
+
};
|
|
5595
|
+
readonly additionalProperties: false;
|
|
5596
|
+
};
|
|
5597
|
+
};
|
|
5598
|
+
readonly additionalProperties: false;
|
|
5599
|
+
};
|
|
4796
5600
|
readonly InvoiceBuyer: {
|
|
4797
5601
|
readonly type: "object";
|
|
4798
5602
|
readonly required: readonly ["taxId", "legalName"];
|
|
@@ -4808,6 +5612,15 @@ export declare const invoiceApiContract: {
|
|
|
4808
5612
|
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
4809
5613
|
}];
|
|
4810
5614
|
};
|
|
5615
|
+
readonly deliveryPhone: {
|
|
5616
|
+
readonly oneOf: readonly [{
|
|
5617
|
+
readonly type: "null";
|
|
5618
|
+
}, {
|
|
5619
|
+
readonly type: "string";
|
|
5620
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
5621
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5622
|
+
}];
|
|
5623
|
+
};
|
|
4811
5624
|
readonly email: {
|
|
4812
5625
|
readonly oneOf: readonly [{
|
|
4813
5626
|
readonly type: "null";
|
|
@@ -4864,6 +5677,13 @@ export declare const invoiceApiContract: {
|
|
|
4864
5677
|
readonly type: "object";
|
|
4865
5678
|
readonly required: readonly ["description", "quantity", "unit", "kind", "unitPrice", "tax"];
|
|
4866
5679
|
readonly properties: {
|
|
5680
|
+
readonly adjustments: {
|
|
5681
|
+
readonly oneOf: readonly [{
|
|
5682
|
+
readonly type: "null";
|
|
5683
|
+
}, {
|
|
5684
|
+
readonly $ref: "#/components/schemas/LinePriceAdjustments";
|
|
5685
|
+
}];
|
|
5686
|
+
};
|
|
4867
5687
|
readonly description: {
|
|
4868
5688
|
readonly type: "string";
|
|
4869
5689
|
readonly maxLength: 80;
|
|
@@ -4920,6 +5740,65 @@ export declare const invoiceApiContract: {
|
|
|
4920
5740
|
};
|
|
4921
5741
|
readonly additionalProperties: false;
|
|
4922
5742
|
};
|
|
5743
|
+
readonly LinePriceAdjustments: {
|
|
5744
|
+
readonly type: "object";
|
|
5745
|
+
readonly description: "Line-level discounts and surcharges, kept separate from document-level adjustments.";
|
|
5746
|
+
readonly properties: {
|
|
5747
|
+
readonly discounts: {
|
|
5748
|
+
readonly type: "array";
|
|
5749
|
+
readonly items: {
|
|
5750
|
+
readonly $ref: "#/components/schemas/LinePriceAdjustment";
|
|
5751
|
+
};
|
|
5752
|
+
readonly maxItems: 12;
|
|
5753
|
+
readonly minItems: 0;
|
|
5754
|
+
readonly "x-timbro-submission-validation": readonly ["minItems", "maxItems"];
|
|
5755
|
+
};
|
|
5756
|
+
readonly surcharges: {
|
|
5757
|
+
readonly type: "array";
|
|
5758
|
+
readonly items: {
|
|
5759
|
+
readonly $ref: "#/components/schemas/LinePriceAdjustment";
|
|
5760
|
+
};
|
|
5761
|
+
readonly maxItems: 12;
|
|
5762
|
+
readonly minItems: 0;
|
|
5763
|
+
readonly "x-timbro-submission-validation": readonly ["minItems", "maxItems"];
|
|
5764
|
+
};
|
|
5765
|
+
};
|
|
5766
|
+
readonly additionalProperties: false;
|
|
5767
|
+
};
|
|
5768
|
+
readonly LinePriceAdjustment: {
|
|
5769
|
+
readonly oneOf: readonly [{
|
|
5770
|
+
readonly type: "object";
|
|
5771
|
+
readonly required: readonly ["amount", "kind"];
|
|
5772
|
+
readonly properties: {
|
|
5773
|
+
readonly amount: {
|
|
5774
|
+
readonly type: "string";
|
|
5775
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
5776
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5777
|
+
};
|
|
5778
|
+
readonly kind: {
|
|
5779
|
+
readonly type: "string";
|
|
5780
|
+
readonly enum: readonly ["fixed_amount"];
|
|
5781
|
+
};
|
|
5782
|
+
};
|
|
5783
|
+
readonly additionalProperties: false;
|
|
5784
|
+
}, {
|
|
5785
|
+
readonly type: "object";
|
|
5786
|
+
readonly required: readonly ["percentage", "kind"];
|
|
5787
|
+
readonly properties: {
|
|
5788
|
+
readonly kind: {
|
|
5789
|
+
readonly type: "string";
|
|
5790
|
+
readonly enum: readonly ["percentage"];
|
|
5791
|
+
};
|
|
5792
|
+
readonly percentage: {
|
|
5793
|
+
readonly type: "string";
|
|
5794
|
+
readonly pattern: "^(?=[0-9.]*[1-9])[0-9]{1,3}(\\.[0-9]{1,2})?$";
|
|
5795
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5796
|
+
};
|
|
5797
|
+
};
|
|
5798
|
+
readonly additionalProperties: false;
|
|
5799
|
+
}];
|
|
5800
|
+
readonly description: "One fixed-amount or percentage discount or surcharge on a fiscal line.";
|
|
5801
|
+
};
|
|
4923
5802
|
readonly InvoiceItemCode: {
|
|
4924
5803
|
readonly type: "object";
|
|
4925
5804
|
readonly required: readonly ["typeCode", "code"];
|
|
@@ -4978,6 +5857,34 @@ export declare const invoiceApiContract: {
|
|
|
4978
5857
|
readonly "x-timbro-submission-validation": readonly ["minItems", "maxItems"];
|
|
4979
5858
|
}];
|
|
4980
5859
|
};
|
|
5860
|
+
readonly paymentAccount: {
|
|
5861
|
+
readonly type: "object";
|
|
5862
|
+
readonly properties: {
|
|
5863
|
+
readonly accountNumber: {
|
|
5864
|
+
readonly oneOf: readonly [{
|
|
5865
|
+
readonly type: "null";
|
|
5866
|
+
}, {
|
|
5867
|
+
readonly type: "string";
|
|
5868
|
+
readonly maxLength: 28;
|
|
5869
|
+
readonly minLength: 1;
|
|
5870
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5871
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5872
|
+
}];
|
|
5873
|
+
};
|
|
5874
|
+
readonly bankName: {
|
|
5875
|
+
readonly oneOf: readonly [{
|
|
5876
|
+
readonly type: "null";
|
|
5877
|
+
}, {
|
|
5878
|
+
readonly type: "string";
|
|
5879
|
+
readonly maxLength: 75;
|
|
5880
|
+
readonly minLength: 1;
|
|
5881
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5882
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5883
|
+
}];
|
|
5884
|
+
};
|
|
5885
|
+
};
|
|
5886
|
+
readonly additionalProperties: false;
|
|
5887
|
+
};
|
|
4981
5888
|
readonly type: {
|
|
4982
5889
|
readonly type: "string";
|
|
4983
5890
|
readonly enum: readonly ["immediate"];
|
|
@@ -5017,6 +5924,76 @@ export declare const invoiceApiContract: {
|
|
|
5017
5924
|
readonly propertyName: "type";
|
|
5018
5925
|
};
|
|
5019
5926
|
};
|
|
5927
|
+
readonly InvoiceReferenceInformation: {
|
|
5928
|
+
readonly type: "object";
|
|
5929
|
+
readonly required: readonly ["attribution", "fiscalNumber", "issuedOn", "modificationCode"];
|
|
5930
|
+
readonly properties: {
|
|
5931
|
+
readonly attribution: {
|
|
5932
|
+
readonly oneOf: readonly [{
|
|
5933
|
+
readonly type: "object";
|
|
5934
|
+
readonly title: "InternalOperationReference";
|
|
5935
|
+
readonly required: readonly ["fiscalOperationId", "kind"];
|
|
5936
|
+
readonly properties: {
|
|
5937
|
+
readonly fiscalOperationId: {
|
|
5938
|
+
readonly type: "string";
|
|
5939
|
+
readonly pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
|
|
5940
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5941
|
+
};
|
|
5942
|
+
readonly kind: {
|
|
5943
|
+
readonly type: "string";
|
|
5944
|
+
readonly enum: readonly ["internal_operation"];
|
|
5945
|
+
};
|
|
5946
|
+
};
|
|
5947
|
+
readonly additionalProperties: false;
|
|
5948
|
+
}, {
|
|
5949
|
+
readonly type: "object";
|
|
5950
|
+
readonly required: readonly ["issuerTaxId", "environment", "sourceReference", "kind"];
|
|
5951
|
+
readonly properties: {
|
|
5952
|
+
readonly environment: {
|
|
5953
|
+
readonly $ref: "#/components/schemas/FiscalEnvironment";
|
|
5954
|
+
};
|
|
5955
|
+
readonly issuerTaxId: {
|
|
5956
|
+
readonly type: "string";
|
|
5957
|
+
readonly pattern: "^[0-9]{9}([0-9]{2})?$";
|
|
5958
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5959
|
+
};
|
|
5960
|
+
readonly kind: {
|
|
5961
|
+
readonly type: "string";
|
|
5962
|
+
readonly enum: readonly ["external_document"];
|
|
5963
|
+
};
|
|
5964
|
+
readonly sourceReference: {
|
|
5965
|
+
readonly type: "string";
|
|
5966
|
+
readonly maxLength: 250;
|
|
5967
|
+
readonly minLength: 1;
|
|
5968
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
5969
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
5970
|
+
};
|
|
5971
|
+
};
|
|
5972
|
+
readonly additionalProperties: false;
|
|
5973
|
+
}];
|
|
5974
|
+
readonly discriminator: {
|
|
5975
|
+
readonly propertyName: "kind";
|
|
5976
|
+
};
|
|
5977
|
+
};
|
|
5978
|
+
readonly fiscalNumber: {
|
|
5979
|
+
readonly type: "string";
|
|
5980
|
+
readonly pattern: "^(B[0-9]{10}|E[0-9]{12}|[AP][0-9]{18})$";
|
|
5981
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
5982
|
+
};
|
|
5983
|
+
readonly issuedOn: {
|
|
5984
|
+
readonly type: "string";
|
|
5985
|
+
readonly format: "date";
|
|
5986
|
+
readonly description: "A calendar date in the public API's ISO 8601 date form.";
|
|
5987
|
+
readonly pattern: "^(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}$";
|
|
5988
|
+
};
|
|
5989
|
+
readonly modificationCode: {
|
|
5990
|
+
readonly type: "string";
|
|
5991
|
+
readonly enum: readonly ["4", "5"];
|
|
5992
|
+
readonly "x-timbro-submission-validation": readonly ["enum"];
|
|
5993
|
+
};
|
|
5994
|
+
};
|
|
5995
|
+
readonly additionalProperties: false;
|
|
5996
|
+
};
|
|
5020
5997
|
readonly InvoiceSourceInput: {
|
|
5021
5998
|
readonly type: "object";
|
|
5022
5999
|
readonly required: readonly ["id", "version"];
|
|
@@ -5042,9 +6019,18 @@ export declare const invoiceApiContract: {
|
|
|
5042
6019
|
readonly InvoiceConsumerBuyer: {
|
|
5043
6020
|
readonly oneOf: readonly [{
|
|
5044
6021
|
readonly type: "object";
|
|
5045
|
-
readonly title: "
|
|
6022
|
+
readonly title: "DomesticInvoiceBuyer";
|
|
5046
6023
|
readonly required: readonly ["taxId", "legalName", "kind"];
|
|
5047
6024
|
readonly properties: {
|
|
6025
|
+
readonly deliveryPhone: {
|
|
6026
|
+
readonly oneOf: readonly [{
|
|
6027
|
+
readonly type: "null";
|
|
6028
|
+
}, {
|
|
6029
|
+
readonly type: "string";
|
|
6030
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
6031
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6032
|
+
}];
|
|
6033
|
+
};
|
|
5048
6034
|
readonly kind: {
|
|
5049
6035
|
readonly type: "string";
|
|
5050
6036
|
readonly enum: readonly ["domestic"];
|
|
@@ -5068,6 +6054,15 @@ export declare const invoiceApiContract: {
|
|
|
5068
6054
|
readonly title: "ForeignBuyer";
|
|
5069
6055
|
readonly required: readonly ["foreignId", "legalName", "kind"];
|
|
5070
6056
|
readonly properties: {
|
|
6057
|
+
readonly deliveryPhone: {
|
|
6058
|
+
readonly oneOf: readonly [{
|
|
6059
|
+
readonly type: "null";
|
|
6060
|
+
}, {
|
|
6061
|
+
readonly type: "string";
|
|
6062
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
6063
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6064
|
+
}];
|
|
6065
|
+
};
|
|
5071
6066
|
readonly foreignId: {
|
|
5072
6067
|
readonly type: "string";
|
|
5073
6068
|
readonly maxLength: 20;
|
|
@@ -5097,6 +6092,13 @@ export declare const invoiceApiContract: {
|
|
|
5097
6092
|
readonly type: "object";
|
|
5098
6093
|
readonly required: readonly ["description", "quantity", "unit", "kind", "unitPrice", "tax"];
|
|
5099
6094
|
readonly properties: {
|
|
6095
|
+
readonly adjustments: {
|
|
6096
|
+
readonly oneOf: readonly [{
|
|
6097
|
+
readonly type: "null";
|
|
6098
|
+
}, {
|
|
6099
|
+
readonly $ref: "#/components/schemas/LinePriceAdjustments";
|
|
6100
|
+
}];
|
|
6101
|
+
};
|
|
5100
6102
|
readonly description: {
|
|
5101
6103
|
readonly type: "string";
|
|
5102
6104
|
readonly maxLength: 80;
|
|
@@ -5229,6 +6231,210 @@ export declare const invoiceApiContract: {
|
|
|
5229
6231
|
};
|
|
5230
6232
|
readonly additionalProperties: false;
|
|
5231
6233
|
};
|
|
6234
|
+
readonly InvoiceGovernmentAdditionalInformation: {
|
|
6235
|
+
readonly type: "object";
|
|
6236
|
+
readonly properties: {
|
|
6237
|
+
readonly referenceNumber: {
|
|
6238
|
+
readonly oneOf: readonly [{
|
|
6239
|
+
readonly type: "null";
|
|
6240
|
+
}, {
|
|
6241
|
+
readonly type: "string";
|
|
6242
|
+
readonly maxLength: 20;
|
|
6243
|
+
readonly minLength: 1;
|
|
6244
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6245
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6246
|
+
}];
|
|
6247
|
+
};
|
|
6248
|
+
readonly shipment: {
|
|
6249
|
+
readonly type: "object";
|
|
6250
|
+
readonly properties: {
|
|
6251
|
+
readonly containerNumber: {
|
|
6252
|
+
readonly oneOf: readonly [{
|
|
6253
|
+
readonly type: "null";
|
|
6254
|
+
}, {
|
|
6255
|
+
readonly type: "string";
|
|
6256
|
+
readonly maxLength: 100;
|
|
6257
|
+
readonly minLength: 1;
|
|
6258
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6259
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6260
|
+
}];
|
|
6261
|
+
};
|
|
6262
|
+
readonly deliveryNoteNumber: {
|
|
6263
|
+
readonly oneOf: readonly [{
|
|
6264
|
+
readonly type: "null";
|
|
6265
|
+
}, {
|
|
6266
|
+
readonly type: "string";
|
|
6267
|
+
readonly maxLength: 20;
|
|
6268
|
+
readonly minLength: 1;
|
|
6269
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6270
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6271
|
+
}];
|
|
6272
|
+
};
|
|
6273
|
+
readonly driver: {
|
|
6274
|
+
readonly oneOf: readonly [{
|
|
6275
|
+
readonly type: "null";
|
|
6276
|
+
}, {
|
|
6277
|
+
readonly type: "string";
|
|
6278
|
+
readonly maxLength: 20;
|
|
6279
|
+
readonly minLength: 1;
|
|
6280
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6281
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6282
|
+
}];
|
|
6283
|
+
};
|
|
6284
|
+
readonly grossWeight: {
|
|
6285
|
+
readonly oneOf: readonly [{
|
|
6286
|
+
readonly type: "null";
|
|
6287
|
+
}, {
|
|
6288
|
+
readonly type: "string";
|
|
6289
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
6290
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6291
|
+
}];
|
|
6292
|
+
};
|
|
6293
|
+
readonly grossWeightUnit: {
|
|
6294
|
+
readonly oneOf: readonly [{
|
|
6295
|
+
readonly type: "null";
|
|
6296
|
+
}, {
|
|
6297
|
+
readonly type: "string";
|
|
6298
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
6299
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6300
|
+
}];
|
|
6301
|
+
};
|
|
6302
|
+
readonly netWeight: {
|
|
6303
|
+
readonly oneOf: readonly [{
|
|
6304
|
+
readonly type: "null";
|
|
6305
|
+
}, {
|
|
6306
|
+
readonly type: "string";
|
|
6307
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
6308
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6309
|
+
}];
|
|
6310
|
+
};
|
|
6311
|
+
readonly netWeightUnit: {
|
|
6312
|
+
readonly oneOf: readonly [{
|
|
6313
|
+
readonly type: "null";
|
|
6314
|
+
}, {
|
|
6315
|
+
readonly type: "string";
|
|
6316
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
6317
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6318
|
+
}];
|
|
6319
|
+
};
|
|
6320
|
+
readonly packageCount: {
|
|
6321
|
+
readonly oneOf: readonly [{
|
|
6322
|
+
readonly type: "null";
|
|
6323
|
+
}, {
|
|
6324
|
+
readonly type: "string";
|
|
6325
|
+
readonly pattern: "^[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
6326
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6327
|
+
}];
|
|
6328
|
+
};
|
|
6329
|
+
readonly packageUnit: {
|
|
6330
|
+
readonly oneOf: readonly [{
|
|
6331
|
+
readonly type: "null";
|
|
6332
|
+
}, {
|
|
6333
|
+
readonly type: "string";
|
|
6334
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
6335
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6336
|
+
}];
|
|
6337
|
+
};
|
|
6338
|
+
readonly packageVolume: {
|
|
6339
|
+
readonly oneOf: readonly [{
|
|
6340
|
+
readonly type: "null";
|
|
6341
|
+
}, {
|
|
6342
|
+
readonly type: "string";
|
|
6343
|
+
readonly pattern: "^(?=[0-9.]*[1-9])[0-9]{1,16}(\\.[0-9]{1,2})?$";
|
|
6344
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6345
|
+
}];
|
|
6346
|
+
};
|
|
6347
|
+
readonly route: {
|
|
6348
|
+
readonly oneOf: readonly [{
|
|
6349
|
+
readonly type: "null";
|
|
6350
|
+
}, {
|
|
6351
|
+
readonly type: "string";
|
|
6352
|
+
readonly maxLength: 20;
|
|
6353
|
+
readonly minLength: 1;
|
|
6354
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6355
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6356
|
+
}];
|
|
6357
|
+
};
|
|
6358
|
+
readonly shipmentDate: {
|
|
6359
|
+
readonly oneOf: readonly [{
|
|
6360
|
+
readonly type: "null";
|
|
6361
|
+
}, {
|
|
6362
|
+
readonly type: "string";
|
|
6363
|
+
readonly format: "date";
|
|
6364
|
+
readonly description: "A calendar date in the public API's ISO 8601 date form.";
|
|
6365
|
+
readonly pattern: "^(19|20)[0-9]{2}-[0-9]{2}-[0-9]{2}$";
|
|
6366
|
+
}];
|
|
6367
|
+
};
|
|
6368
|
+
readonly shipmentNumber: {
|
|
6369
|
+
readonly oneOf: readonly [{
|
|
6370
|
+
readonly type: "null";
|
|
6371
|
+
}, {
|
|
6372
|
+
readonly type: "string";
|
|
6373
|
+
readonly maxLength: 25;
|
|
6374
|
+
readonly minLength: 1;
|
|
6375
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6376
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6377
|
+
}];
|
|
6378
|
+
};
|
|
6379
|
+
readonly transportDocumentNumber: {
|
|
6380
|
+
readonly oneOf: readonly [{
|
|
6381
|
+
readonly type: "null";
|
|
6382
|
+
}, {
|
|
6383
|
+
readonly type: "string";
|
|
6384
|
+
readonly maxLength: 20;
|
|
6385
|
+
readonly minLength: 1;
|
|
6386
|
+
readonly pattern: "^[0-9]+$";
|
|
6387
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6388
|
+
}];
|
|
6389
|
+
};
|
|
6390
|
+
readonly transportZone: {
|
|
6391
|
+
readonly oneOf: readonly [{
|
|
6392
|
+
readonly type: "null";
|
|
6393
|
+
}, {
|
|
6394
|
+
readonly type: "string";
|
|
6395
|
+
readonly maxLength: 20;
|
|
6396
|
+
readonly minLength: 1;
|
|
6397
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6398
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6399
|
+
}];
|
|
6400
|
+
};
|
|
6401
|
+
readonly vehicleFiche: {
|
|
6402
|
+
readonly oneOf: readonly [{
|
|
6403
|
+
readonly type: "null";
|
|
6404
|
+
}, {
|
|
6405
|
+
readonly type: "string";
|
|
6406
|
+
readonly maxLength: 10;
|
|
6407
|
+
readonly minLength: 1;
|
|
6408
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6409
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6410
|
+
}];
|
|
6411
|
+
};
|
|
6412
|
+
readonly vehiclePlate: {
|
|
6413
|
+
readonly oneOf: readonly [{
|
|
6414
|
+
readonly type: "null";
|
|
6415
|
+
}, {
|
|
6416
|
+
readonly type: "string";
|
|
6417
|
+
readonly maxLength: 7;
|
|
6418
|
+
readonly minLength: 1;
|
|
6419
|
+
readonly pattern: "^[^\\p{White_Space}](?:[\\s\\S]*[^\\p{White_Space}])?$";
|
|
6420
|
+
readonly "x-timbro-submission-validation": readonly ["minLength", "maxLength", "pattern"];
|
|
6421
|
+
}];
|
|
6422
|
+
};
|
|
6423
|
+
readonly volumeUnit: {
|
|
6424
|
+
readonly oneOf: readonly [{
|
|
6425
|
+
readonly type: "null";
|
|
6426
|
+
}, {
|
|
6427
|
+
readonly type: "string";
|
|
6428
|
+
readonly pattern: "^([1-9]|[1-5][0-9]|6[0-2])$";
|
|
6429
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6430
|
+
}];
|
|
6431
|
+
};
|
|
6432
|
+
};
|
|
6433
|
+
readonly additionalProperties: false;
|
|
6434
|
+
};
|
|
6435
|
+
};
|
|
6436
|
+
readonly additionalProperties: false;
|
|
6437
|
+
};
|
|
5232
6438
|
readonly InvoiceGovernmentItem: {
|
|
5233
6439
|
readonly type: "object";
|
|
5234
6440
|
readonly required: readonly ["description", "quantity", "unit", "kind", "unitPrice", "tax"];
|
|
@@ -5472,9 +6678,18 @@ export declare const invoiceApiContract: {
|
|
|
5472
6678
|
readonly InvoiceSpecialRegimeBuyer: {
|
|
5473
6679
|
readonly oneOf: readonly [{
|
|
5474
6680
|
readonly type: "object";
|
|
5475
|
-
readonly title: "
|
|
6681
|
+
readonly title: "DomesticInvoiceBuyer";
|
|
5476
6682
|
readonly required: readonly ["taxId", "legalName", "kind"];
|
|
5477
6683
|
readonly properties: {
|
|
6684
|
+
readonly deliveryPhone: {
|
|
6685
|
+
readonly oneOf: readonly [{
|
|
6686
|
+
readonly type: "null";
|
|
6687
|
+
}, {
|
|
6688
|
+
readonly type: "string";
|
|
6689
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
6690
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6691
|
+
}];
|
|
6692
|
+
};
|
|
5478
6693
|
readonly kind: {
|
|
5479
6694
|
readonly type: "string";
|
|
5480
6695
|
readonly enum: readonly ["domestic"];
|
|
@@ -5497,6 +6712,15 @@ export declare const invoiceApiContract: {
|
|
|
5497
6712
|
readonly type: "object";
|
|
5498
6713
|
readonly required: readonly ["foreignId", "legalName", "kind"];
|
|
5499
6714
|
readonly properties: {
|
|
6715
|
+
readonly deliveryPhone: {
|
|
6716
|
+
readonly oneOf: readonly [{
|
|
6717
|
+
readonly type: "null";
|
|
6718
|
+
}, {
|
|
6719
|
+
readonly type: "string";
|
|
6720
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
6721
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6722
|
+
}];
|
|
6723
|
+
};
|
|
5500
6724
|
readonly foreignId: {
|
|
5501
6725
|
readonly type: "string";
|
|
5502
6726
|
readonly maxLength: 20;
|
|
@@ -5651,6 +6875,15 @@ export declare const invoiceApiContract: {
|
|
|
5651
6875
|
readonly title: "ForeignBuyer";
|
|
5652
6876
|
readonly required: readonly ["foreignId", "legalName", "kind"];
|
|
5653
6877
|
readonly properties: {
|
|
6878
|
+
readonly deliveryPhone: {
|
|
6879
|
+
readonly oneOf: readonly [{
|
|
6880
|
+
readonly type: "null";
|
|
6881
|
+
}, {
|
|
6882
|
+
readonly type: "string";
|
|
6883
|
+
readonly pattern: "^[0-9]{3}-[0-9]{3}-[0-9]{4}$";
|
|
6884
|
+
readonly "x-timbro-submission-validation": readonly ["pattern"];
|
|
6885
|
+
}];
|
|
6886
|
+
};
|
|
5654
6887
|
readonly foreignId: {
|
|
5655
6888
|
readonly type: "string";
|
|
5656
6889
|
readonly maxLength: 20;
|
|
@@ -5718,6 +6951,13 @@ export declare const invoiceApiContract: {
|
|
|
5718
6951
|
readonly type: "object";
|
|
5719
6952
|
readonly required: readonly ["description", "quantity", "unit", "kind", "unitPrice"];
|
|
5720
6953
|
readonly properties: {
|
|
6954
|
+
readonly adjustments: {
|
|
6955
|
+
readonly oneOf: readonly [{
|
|
6956
|
+
readonly type: "null";
|
|
6957
|
+
}, {
|
|
6958
|
+
readonly $ref: "#/components/schemas/LinePriceAdjustments";
|
|
6959
|
+
}];
|
|
6960
|
+
};
|
|
5721
6961
|
readonly description: {
|
|
5722
6962
|
readonly type: "string";
|
|
5723
6963
|
readonly maxLength: 80;
|