Skip to content

feat(google): per-object images via images.googleObject - #81

Merged
alexpate merged 1 commit into
mainfrom
feat/object-images
Oct 6, 2026
Merged

alexpate merged 1 commit into
mainfrom
feat/object-images

Conversation

@alexpate

@alexpate alexpate commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Adds images.googleObject for setting Google images on a single pass object without touching the class:

  • heroImage (any type), logo (generic only — throws elsewhere), imageModules (rendered as imageModulesData)
  • each is { url } | null; omitted = default render, null = clear/fall back
  • HTTPS URLs only; class output is unchanged with or without object images

Needed for per-pass images in the platform (variant strips, member photos). Minor changeset included.

Merge after #80: both add a README section in the same spot (keep both, field table first).

Add a typed way to set Google images on the object (one pass) without
touching the class, for per-pass images:

- heroImage: object heroImage, overriding the class hero
- logo: genericObject logo (generic only; other styles throw
  E_GOOGLE_RENDER since their objects have no logo)
- imageModules: object imageModulesData

Each field is three-state: omitted keeps the default, a value sets it,
null clears it (falls back to the renderer's default for that object
field, else emits null for REST PATCH). Applied after the per-style
renderer and before applyRaw.google. Apple output is unchanged.

Field names per the v1 REST reference:
https://developers.google.com/wallet/reference/rest/v1/genericobject
https://developers.google.com/wallet/reference/rest/v1/loyaltyobject
https://developers.google.com/wallet/reference/rest/v1/offerobject
https://developers.google.com/wallet/reference/rest/v1/eventticketobject
https://developers.google.com/wallet/reference/rest/v1/ImageModuleData
@alexpate
alexpate force-pushed the feat/object-images branch from 9d792cb to cc68053 Compare October 6, 2026 14:16
@alexpate
alexpate merged commit aa60997 into main Oct 6, 2026
6 checks passed
@alexpate
alexpate deleted the feat/object-images branch October 6, 2026 14:17
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