Skip to content

Add UsMd section (Maryland, Section ID 24)#99

Closed
chuff wants to merge 2 commits into
IABTechLab:masterfrom
chuff:add-md
Closed

Add UsMd section (Maryland, Section ID 24)#99
chuff wants to merge 2 commits into
IABTechLab:masterfrom
chuff:add-md

Conversation

@chuff
Copy link
Copy Markdown
Contributor

@chuff chuff commented Jun 6, 2026

Summary

Implements the Maryland section per the GPP US-States/MD spec, registered as Section ID 24 (client-side API prefix usmd).

  • Adds UsMd section, UsMdField constants, UsMdCoreSegment, UsMdGpcSegment following the existing UsMn pattern.
  • Registers the section in Sections.java and GppModel.java (encode/decode dispatch + getUsMdSection() accessor).
  • Per the Maryland spec, the core subsection has 9 fields and omits SensitiveDataProcessing and KnownChildSensitiveDataConsents. The single MspaMode field replaces MspaOptOutOptionMode + MspaServiceProviderMode, and MspaVersion is the first field.

Test plan

  • Added UsMdTest covering encode default, encode all fields, validation rejection, GPC-segment exclusion, round-trip decode, and garbage input
  • Updated GppModelTest.testEncodeDefaultAll and testDecodeDefaultsAll to include UsMd
  • mvn test on iabgpp-encoder: 370 passing

Chad added 2 commits June 5, 2026 15:29
Implements the Maryland Online Data Privacy Act section per the
GPP spec, following the existing UsMn pattern. Core + GPC segments,
9 core fields (MspaVersion, MspaCoveredTransaction, MspaMode,
ProcessingNotice, SaleOptOutNotice, TargetedAdvertisingOptOutNotice,
SaleOptOut, TargetedAdvertisingOptOut, AdditionalDataProcessingConsent),
no SensitiveDataProcessing / KnownChildSensitiveDataConsents per spec.
@chuff chuff closed this Jun 6, 2026
@chuff chuff deleted the add-md branch June 7, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant