@updraft-solutions/mcrit-sdk 0.18.4 → 0.18.5

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.
@@ -127,6 +127,17 @@ var companySchema = _zod.z.object({
127
127
  // details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
128
128
  // come from the super-admin AdminCompanyResource.
129
129
  tax_number: _zod.z.string().nullable().optional(),
130
+ // Seller contact for e-invoices (EN 16931 BG-6, mandatory in XRechnung):
131
+ // the stored overrides and the resolved values after the company
132
+ // name/phone/email fallbacks. Fenced behind company.view like `vat`.
133
+ billing_contact_name: _zod.z.string().nullable().optional(),
134
+ billing_contact_phone: _zod.z.string().nullable().optional(),
135
+ billing_contact_email: _zod.z.string().nullable().optional(),
136
+ seller_contact: _zod.z.object({
137
+ name: _zod.z.string().nullable(),
138
+ phone: _zod.z.string().nullable(),
139
+ email: _zod.z.string().nullable()
140
+ }).optional(),
130
141
  vat_exemption_code: _zod.z.string().nullable().optional(),
131
142
  vat_exemption_text: _zod.z.string().nullable().optional(),
132
143
  vat_exemption_codes: _zod.z.array(_zod.z.string()).optional()
@@ -1399,6 +1410,12 @@ var invoiceSchema = _zod.z.object({
1399
1410
  recipient_country: _zod.z.string().nullable().optional(),
1400
1411
  recipient_vat_id: _zod.z.string().nullable().optional(),
1401
1412
  recipient_buyer_reference: _zod.z.string().nullable().optional(),
1413
+ // XRechnung routing: true when the buyer reference is a Leitweg-ID (the
1414
+ // e-invoice is built as XRechnung); `xrechnung_missing` lists the BR-DE
1415
+ // fields that still block a draft's release, keyed by invoice column.
1416
+ is_xrechnung: _zod.z.boolean().optional(),
1417
+ xrechnung_missing: _zod.z.record(_zod.z.string(), _zod.z.string()).optional(),
1418
+ issuer_contact_name: _zod.z.string().nullable().optional(),
1402
1419
  // Always computed by InvoiceResource (billingProfile email, else the
1403
1420
  // membership's user email) — used by InvoiceDialog today but was missing.
1404
1421
  recipient_email: _zod.z.string().nullable().optional(),
@@ -127,6 +127,17 @@ var companySchema = z.object({
127
127
  // details (like `vat`); the VAT-exemption fields + `vat_exemption_codes`
128
128
  // come from the super-admin AdminCompanyResource.
129
129
  tax_number: z.string().nullable().optional(),
130
+ // Seller contact for e-invoices (EN 16931 BG-6, mandatory in XRechnung):
131
+ // the stored overrides and the resolved values after the company
132
+ // name/phone/email fallbacks. Fenced behind company.view like `vat`.
133
+ billing_contact_name: z.string().nullable().optional(),
134
+ billing_contact_phone: z.string().nullable().optional(),
135
+ billing_contact_email: z.string().nullable().optional(),
136
+ seller_contact: z.object({
137
+ name: z.string().nullable(),
138
+ phone: z.string().nullable(),
139
+ email: z.string().nullable()
140
+ }).optional(),
130
141
  vat_exemption_code: z.string().nullable().optional(),
131
142
  vat_exemption_text: z.string().nullable().optional(),
132
143
  vat_exemption_codes: z.array(z.string()).optional()
@@ -1399,6 +1410,12 @@ var invoiceSchema = z4.object({
1399
1410
  recipient_country: z4.string().nullable().optional(),
1400
1411
  recipient_vat_id: z4.string().nullable().optional(),
1401
1412
  recipient_buyer_reference: z4.string().nullable().optional(),
1413
+ // XRechnung routing: true when the buyer reference is a Leitweg-ID (the
1414
+ // e-invoice is built as XRechnung); `xrechnung_missing` lists the BR-DE
1415
+ // fields that still block a draft's release, keyed by invoice column.
1416
+ is_xrechnung: z4.boolean().optional(),
1417
+ xrechnung_missing: z4.record(z4.string(), z4.string()).optional(),
1418
+ issuer_contact_name: z4.string().nullable().optional(),
1402
1419
  // Always computed by InvoiceResource (billingProfile email, else the
1403
1420
  // membership's user email) — used by InvoiceDialog today but was missing.
1404
1421
  recipient_email: z4.string().nullable().optional(),