zplCore.comzplCore.com

ComplianceRulePack

public sealed class ComplianceRulePack

A versioned set of rules for one target (a standard, a carrier, a retailer). The built-in packs check public specifications as a pre-check: a clean result means no rule found a problem, not that a label is certified or will be accepted. Custom packs: new ComplianceRulePack("acme", "ACME labels", "2026-10", rules).

Constructors

SignatureDescription
# ComplianceRulePack(string id, string name, string version, IEnumerable<ComplianceRule> rules, string? description = default)

Properties

PropertyTypeDescription
static AmazonFba { get; }ComplianceRulePackAmazon FBA unit (FNSKU), box and pallet labels.
static BuiltIn { get; }IReadOnlyList<ComplianceRulePack>All built-in packs.
Description { get; }string
static DhlPaket { get; }ComplianceRulePackDHL Paket Germany basics (public Parcel DE Shipping API).
static FedEx { get; }ComplianceRulePackFedEx basics (public Ship API documentation).
static Gs1LogisticLabel { get; }ComplianceRulePackGS1 logistic label: SSCC in GS1-128, symbol specification table 5, HRI and label layout.
Id { get; }stringShort id used on the command line, e.g. "gs1-logistic".
Name { get; }string
static Rfid { get; }ComplianceRulePackRFID: EPC per GS1 TDS 2.3, EPC consistent with the printed barcodes, ZPL RFID command usage.
Rules { get; }IReadOnlyList<ComplianceRule>
static Sunrise2027 { get; }ComplianceRulePackSunrise 2027: GTIN in GS1 DataMatrix or QR Code / Data Matrix with GS1 Digital Link URI next to EAN/UPC.
static Udi { get; }ComplianceRulePackMedical device UDI with GS1 AIs (FDA 21 CFR 801/830, EU MDR Annex VI).
static Ups { get; }ComplianceRulePackUPS: MaxiCode structured carrier message, 1Z tracking number, 4 × 6 / 4 × 8 in.
Version { get; }stringState of the sources the rules follow, e.g. "2026-10".

Methods

Method SignatureReturnsDescription
static # Find(string id)ComplianceRulePackA built-in pack by id ("gs1-logistic", "sunrise", "amazon-fba", "ups", "udi", "fedex", "dhl-paket", "rfid"; also some aliases), or null.
static # From(CompliancePacks packs)IReadOnlyList<ComplianceRulePack>The built-in packs selected by packs.
# ToString()string
# With(params ComplianceRule[] rules)ComplianceRulePackThis pack plus rules.
# Without(params string[] ruleIds)ComplianceRulePackThis pack without the rules with these ids.