feat: Surface card_brand and card_last4 on spend-request retrieve - #225
Merged
Conversation
The link-api PR (mint#2412595, LINK_AI_WALLET-365) added top-level `card_brand` and `card_last4` to the RetrieveSpendRequest response so integrators can identify a card for debugging without expanding the full `card` object via `include=card`. Add both fields to the SDK `SpendRequest` type and display them in the interactive `retrieve` view when the full card is not expanded. The SDK already passed these through to `--format json` output via its pass-through cast; this closes the typing and interactive-display gap. Docs (README, SKILL.md, CLAUDE.md) updated to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
jlau-stripe
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The link-api now has top-level
card_brandandcard_last4on the RetrieveSpendRequest response so integrators can identify a card for debugging without expanding the fullcardobject viainclude=card.Add both fields to the SDK
SpendRequesttype and display them in the interactiveretrieveview when the full card is not expanded. The SDK already passed these through to--format jsonoutput via its pass-through cast; this closes the typing and interactive-display gap.Committed-By-Agent: claude