zplCore.comzplCore.com

Gs1MigrationResult

public sealed class Gs1MigrationResult

Result of ZplGs1Migration.Migrate.

Properties

PropertyTypeDescription
Changed { get; }bool
Dpi { get; }int
Labels { get; }IReadOnlyList<Gs1LabelMigration>
MigratedZpl { get; }stringThe ZPL with the added 2D carriers (equal to Gs1MigrationResult.OriginalZpl when nothing was added).
OriginalZpl { get; }string
Success { get; }boolEvery label with a GTIN carrier now has a 2D carrier (added or already present) and the sunrise pre-check of the migrated ZPL has no errors (see Gs1MigrationResult.SunriseCheck).
SunriseCheck { get; }ComplianceReportThe "sunrise" compliance pre-check (ZPL3201–ZPL3213) run on Gs1MigrationResult.MigratedZpl. For labels whose only GTIN carrier is GS1-128 or ITF-14 (not scanned at retail POS), ZPL3209 "linear barcode missing" is expected and does not count against Gs1MigrationResult.Success; it stays in the report.
SunriseErrors { get; }IReadOnlyList<ComplianceFinding>Errors of Gs1MigrationResult.SunriseCheck that count: findings on labels with a GTIN carrier (labels without one are not retail items and stay unchanged), except ZPL3209 on labels whose GTIN carrier is not scanned at retail POS.
Warnings { get; }IReadOnlyList<string>Input-wide warnings (no label found …).

Fields & Constants

FieldTypeDescription
const Disclaimer = "GS1 2D migration assistant (pre-chec…"stringWording used in every output: an assistant and pre-check, not a certification.

Methods

Method SignatureReturnsDescription
static # StatusName(Gs1LabelMigrationStatus s)stringDisplay name of a status ("migrated", "no GTIN carrier" …).
# ToJson(bool indented = true)stringJSON report (labels, inserted ZPL, URI, placement in dots and mm, the sunrise check findings).
# ToString()string
# ToText(string? fileName = default)stringHuman-readable report.