Skip to content

feat: type the Google loyalty mapping on template designs - #12

Merged
alexpate merged 2 commits into
mainfrom
feat/google-loyalty-design
Oct 9, 2026
Merged

alexpate merged 2 commits into
mainfrom
feat/google-loyalty-design

Conversation

@alexpate

@alexpate alexpate commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds design.google to TemplateDesign, derived from the platform's OpenAPI spec (new exported type TemplateDesignGoogle). Also exports TemplateLocation, which TemplateDesign.locations already used but which could not be imported by name:

  • loyaltyPoints / secondaryLoyaltyPoints: { fieldKey, label }, a template field shown as the Google Wallet loyalty balance
  • accountNameFieldKey: the field Google shows as the card holder's name

Spec re-synced from platform main (ab50a03); openapi.json is byte-identical to the platform's. README and a minor changeset included.

Why

The API now accepts design.google (live in production), and SDK users need the type to send it.

Testing

Type test for the new shape (valid mapping, and a non-string label is rejected). lint, type-check, test, build, attw, publint, generate:check and test:ecosystem all pass.

Compatibility

Additive: one optional property and two newly exported types. Existing exports are unchanged and the compat suite passes. The platform side is already deployed.

@alexpate
alexpate marked this pull request as ready for review October 8, 2026 21:00
@alexpate alexpate mentioned this pull request Oct 9, 2026
@alexpate
alexpate merged commit 7ae07b8 into main Oct 9, 2026
6 checks passed
@alexpate alexpate mentioned this pull request Oct 9, 2026
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