@updraft-solutions/mcrit-sdk 0.18.5 → 0.18.7

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.
@@ -1292,8 +1292,13 @@ var billingProfileSchema = z4.object({
1292
1292
  fax: z4.string().nullable(),
1293
1293
  iso_country: z4.string().nullable(),
1294
1294
  vat_id: z4.string().nullable(),
1295
- // 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.
1296
1298
  buyer_reference: z4.string().nullable().optional(),
1299
+ is_public_body: z4.boolean().optional(),
1300
+ // EN 16931 BT-19 — the buyer's cost centre (accounting reference).
1301
+ cost_centre: z4.string().nullable().optional(),
1297
1302
  email: z4.string().nullable(),
1298
1303
  archived_at: z4.string().nullable(),
1299
1304
  source_billing_profile_id: z4.number().nullable(),
@@ -1410,9 +1415,11 @@ var invoiceSchema = z4.object({
1410
1415
  recipient_country: z4.string().nullable().optional(),
1411
1416
  recipient_vat_id: z4.string().nullable().optional(),
1412
1417
  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.
1418
+ recipient_is_public_body: z4.boolean().optional(),
1419
+ recipient_cost_centre: z4.string().nullable().optional(),
1420
+ // XRechnung routing: true when the recipient was frozen as a public body
1421
+ // (the e-invoice is built as XRechnung); `xrechnung_missing` lists the
1422
+ // BR-DE fields that still block a draft's release, keyed by invoice column.
1416
1423
  is_xrechnung: z4.boolean().optional(),
1417
1424
  xrechnung_missing: z4.record(z4.string(), z4.string()).optional(),
1418
1425
  issuer_contact_name: z4.string().nullable().optional(),
@@ -1292,8 +1292,13 @@ var billingProfileSchema = _zod.z.object({
1292
1292
  fax: _zod.z.string().nullable(),
1293
1293
  iso_country: _zod.z.string().nullable(),
1294
1294
  vat_id: _zod.z.string().nullable(),
1295
- // 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.
1296
1298
  buyer_reference: _zod.z.string().nullable().optional(),
1299
+ is_public_body: _zod.z.boolean().optional(),
1300
+ // EN 16931 BT-19 — the buyer's cost centre (accounting reference).
1301
+ cost_centre: _zod.z.string().nullable().optional(),
1297
1302
  email: _zod.z.string().nullable(),
1298
1303
  archived_at: _zod.z.string().nullable(),
1299
1304
  source_billing_profile_id: _zod.z.number().nullable(),
@@ -1410,9 +1415,11 @@ var invoiceSchema = _zod.z.object({
1410
1415
  recipient_country: _zod.z.string().nullable().optional(),
1411
1416
  recipient_vat_id: _zod.z.string().nullable().optional(),
1412
1417
  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.
1418
+ recipient_is_public_body: _zod.z.boolean().optional(),
1419
+ recipient_cost_centre: _zod.z.string().nullable().optional(),
1420
+ // XRechnung routing: true when the recipient was frozen as a public body
1421
+ // (the e-invoice is built as XRechnung); `xrechnung_missing` lists the
1422
+ // BR-DE fields that still block a draft's release, keyed by invoice column.
1416
1423
  is_xrechnung: _zod.z.boolean().optional(),
1417
1424
  xrechnung_missing: _zod.z.record(_zod.z.string(), _zod.z.string()).optional(),
1418
1425
  issuer_contact_name: _zod.z.string().nullable().optional(),