Skip to content

Add UsKy section (Kentucky, Section ID 26)#101

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

Add UsKy section (Kentucky, Section ID 26)#101
chuff wants to merge 2 commits into
IABTechLab:masterfrom
chuff:add-ky

Conversation

@chuff
Copy link
Copy Markdown
Contributor

@chuff chuff commented Jun 6, 2026

Summary

Implements the Kentucky section per the GPP US-States/KY spec, registered as Section ID 26 (client-side API prefix usky).

  • Adds UsKy section, UsKyField constants, UsKyCoreSegment, UsKyGpcSegment following the existing UsMn pattern.
  • Registers the section in Sections.java and GppModel.java (encode/decode dispatch + getUsKySection() accessor).
  • Core subsection has 11 fields including SensitiveDataProcessing (N-Bitfield(2,8)) and KnownChildSensitiveDataConsents. The single MspaMode field replaces MspaOptOutOptionMode + MspaServiceProviderMode, and MspaVersion is the first field.

Test plan

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

@chuff chuff closed this Jun 6, 2026
@chuff chuff deleted the add-ky 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