@updraft-solutions/mcrit-sdk 0.18.4 → 0.18.6

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 = 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()
@@ -1281,8 +1292,11 @@ var billingProfileSchema = z4.object({
1281
1292
  fax: z4.string().nullable(),
1282
1293
  iso_country: z4.string().nullable(),
1283
1294
  vat_id: z4.string().nullable(),
1284
- // EN 16931 BT-10 — a public body's Leitweg-ID or any buyer-assigned routing code.
1295
+ // EN 16931 BT-10 — the Leitweg-ID of a public body (`is_public_body`,
1296
+ // validated with check digits, routes the invoice as XRechnung) or any
1297
+ // buyer-assigned free-text reference otherwise.
1285
1298
  buyer_reference: z4.string().nullable().optional(),
1299
+ is_public_body: z4.boolean().optional(),
1286
1300
  email: z4.string().nullable(),
1287
1301
  archived_at: z4.string().nullable(),
1288
1302
  source_billing_profile_id: z4.number().nullable(),
@@ -1399,6 +1413,13 @@ var invoiceSchema = z4.object({
1399
1413
  recipient_country: z4.string().nullable().optional(),
1400
1414
  recipient_vat_id: z4.string().nullable().optional(),
1401
1415
  recipient_buyer_reference: z4.string().nullable().optional(),
1416
+ recipient_is_public_body: z4.boolean().optional(),
1417
+ // XRechnung routing: true when the recipient was frozen as a public body
1418
+ // (the e-invoice is built as XRechnung); `xrechnung_missing` lists the
1419
+ // BR-DE fields that still block a draft's release, keyed by invoice column.
1420
+ is_xrechnung: z4.boolean().optional(),
1421
+ xrechnung_missing: z4.record(z4.string(), z4.string()).optional(),
1422
+ issuer_contact_name: z4.string().nullable().optional(),
1402
1423
  // Always computed by InvoiceResource (billingProfile email, else the
1403
1424
  // membership's user email) — used by InvoiceDialog today but was missing.
1404
1425
  recipient_email: z4.string().nullable().optional(),
@@ -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()
@@ -1281,8 +1292,11 @@ var billingProfileSchema = _zod.z.object({
1281
1292
  fax: _zod.z.string().nullable(),
1282
1293
  iso_country: _zod.z.string().nullable(),
1283
1294
  vat_id: _zod.z.string().nullable(),
1284
- // EN 16931 BT-10 — a public body's Leitweg-ID or any buyer-assigned routing code.
1295
+ // EN 16931 BT-10 — the Leitweg-ID of a public body (`is_public_body`,
1296
+ // validated with check digits, routes the invoice as XRechnung) or any
1297
+ // buyer-assigned free-text reference otherwise.
1285
1298
  buyer_reference: _zod.z.string().nullable().optional(),
1299
+ is_public_body: _zod.z.boolean().optional(),
1286
1300
  email: _zod.z.string().nullable(),
1287
1301
  archived_at: _zod.z.string().nullable(),
1288
1302
  source_billing_profile_id: _zod.z.number().nullable(),
@@ -1399,6 +1413,13 @@ var invoiceSchema = _zod.z.object({
1399
1413
  recipient_country: _zod.z.string().nullable().optional(),
1400
1414
  recipient_vat_id: _zod.z.string().nullable().optional(),
1401
1415
  recipient_buyer_reference: _zod.z.string().nullable().optional(),
1416
+ recipient_is_public_body: _zod.z.boolean().optional(),
1417
+ // XRechnung routing: true when the recipient was frozen as a public body
1418
+ // (the e-invoice is built as XRechnung); `xrechnung_missing` lists the
1419
+ // BR-DE fields that still block a draft's release, keyed by invoice column.
1420
+ is_xrechnung: _zod.z.boolean().optional(),
1421
+ xrechnung_missing: _zod.z.record(_zod.z.string(), _zod.z.string()).optional(),
1422
+ issuer_contact_name: _zod.z.string().nullable().optional(),
1402
1423
  // Always computed by InvoiceResource (billingProfile email, else the
1403
1424
  // membership's user email) — used by InvoiceDialog today but was missing.
1404
1425
  recipient_email: _zod.z.string().nullable().optional(),