Skip to content

feat(pay): optional name/imageUrl on paymentLinks.create; expose on PaymentLink (2.1.0) - #33

Merged
PancheI merged 1 commit into
mainfrom
feat/paymentlink-name-field
Aug 12, 2026
Merged

feat(pay): optional name/imageUrl on paymentLinks.create; expose on PaymentLink (2.1.0)#33
PancheI merged 1 commit into
mainfrom
feat/paymentlink-name-field

Conversation

@PancheI

@PancheI PancheI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

What

Adds an optional name (and imageUrl) to paymentLinks.create, and exposes name/imageUrl on the PaymentLink read type.

Why

A payment link only shows as a product in the AgentaOS dashboard when it has a name — but the SDK's CreatePaymentLinkParams had no name field, so SDK-created catalogs were invisible/unmanageable in the merchant's own dashboard. This lets integrators set a proper product title.

Non-breaking

name/imageUrl are optional additions — existing paymentLinks.create(...) calls compile and behave unchanged. The paired server change defaults name from description when omitted, so links always surface even without setting it. Changeset marks this a minor (@agentaos/pay 2.0.0 → 2.1.0).

Changes

  • packages/pay/src/types.tsname?/imageUrl? on CreatePaymentLinkParams; name/imageUrl on PaymentLink.
  • README.mdpaymentLinks.create example + response table updated.
  • Tests: request-body forwards name/imageUrl (and omits when unset); response camelizes image_urlimageUrl. 105/105 pass; typecheck/build/lint clean.
  • .changeset/paymentlink-name.md (minor).

Pairs with platform PR that defaults name ← description server-side. Release (publish 2.1.0) is via the changesets "Version Packages" flow after merge.

🤖 Generated with Claude Code

…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>
@PancheI
PancheI merged commit defbc16 into main Aug 12, 2026
1 check passed
@PancheI
PancheI deleted the feat/paymentlink-name-field branch August 12, 2026 15:49
@github-actions github-actions Bot mentioned this pull request Aug 12, 2026
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>
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