feat(pay): optional name/imageUrl on paymentLinks.create; expose on PaymentLink (2.1.0) - #33
Merged
Merged
Conversation
…aymentLink (2.1.0) Adds optional `name` and `imageUrl` to CreatePaymentLinkParams and exposes them (nullable) on the PaymentLink response type. Purely additive — the server already accepts `name` and defaults it from `description` when omitted, so this is a non-breaking SDK change. Changeset marks it minor (2.0.0 -> 2.1.0) for @agentaos/pay. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merged
PancheI
pushed a commit
that referenced
this pull request
Aug 12, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @agentaos/pay@2.1.0 ### Minor Changes - [#33](#33) [`defbc16`](defbc16) Thanks [@PancheI](https://github.com/PancheI)! - Add optional `name` (and `imageUrl`) to `paymentLinks.create`, and expose `name`/`imageUrl` on the `PaymentLink` type. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
What
Adds an optional
name(andimageUrl) topaymentLinks.create, and exposesname/imageUrlon thePaymentLinkread type.Why
A payment link only shows as a product in the AgentaOS dashboard when it has a
name— but the SDK'sCreatePaymentLinkParamshad nonamefield, so SDK-created catalogs were invisible/unmanageable in the merchant's own dashboard. This lets integrators set a proper product title.Non-breaking
name/imageUrlare optional additions — existingpaymentLinks.create(...)calls compile and behave unchanged. The paired server change defaultsnamefromdescriptionwhen omitted, so links always surface even without setting it. Changeset marks this a minor (@agentaos/pay2.0.0 → 2.1.0).Changes
packages/pay/src/types.ts—name?/imageUrl?onCreatePaymentLinkParams;name/imageUrlonPaymentLink.README.md—paymentLinks.createexample + response table updated.name/imageUrl(and omits when unset); response camelizesimage_url→imageUrl. 105/105 pass; typecheck/build/lint clean..changeset/paymentlink-name.md(minor).Pairs with platform PR that defaults
name ← descriptionserver-side. Release (publish2.1.0) is via the changesets "Version Packages" flow after merge.🤖 Generated with Claude Code