Skip to content

feat(payments): payment order and checkout hooks - #61

Merged
Domantas merged 2 commits into
mainfrom
feat/payments-orders
Oct 19, 2026
Merged

Domantas merged 2 commits into
mainfrom
feat/payments-orders

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

What

Payment orders and checkout (gateway campaign audit/payments-checkout, item sdk-all; same surface as @norbix.ai/ts v4.29.0).

  • Hooks: useCreatePaymentOrderMutation, useGetPaymentOrderQuery, useGetPaymentOrdersQuery, useStartPaymentCheckoutMutation over api.payments; tag PaymentOrders (create invalidates the list, checkout invalidates the list and that order).
  • Depends on @norbix.ai/ts ^4.29.0 (peer >=4.29.0).

Only additions, no public method changed.

Checks

  • npm test 387 passed · npm run typecheck · npm run lint · npm run build
  • format:check already failed on main in 21 files before this change (not touched here)

🤖 Generated with Claude Code

Domantas and others added 2 commits October 19, 2026 14:30
The payment order hooks wrap api.payments, which the core SDK ships from
4.29.0: devDependency ^4.29.0, peer floor >=4.29.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
useCreatePaymentOrderMutation, useGetPaymentOrderQuery,
useGetPaymentOrdersQuery and useStartPaymentCheckoutMutation, 1:1 with the
core SDK 4.29.0 api.payments. New cache tag PaymentOrders: the lists are
PaymentOrders/LIST (invalidated by create and checkout), one order is
PaymentOrders/<id> (invalidated by checkout).

Tests: each hook reaches its SDK method with the caller args, its kind and
cache tags, and it survives the flat buildEndpoints spread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🚀 Release preview

Next version on merge to main: none

semantic-release dry-run output
[11:38:29 AM] [semantic-release] › ℹ  Running semantic-release version 25.0.9
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[11:38:29 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[11:38:31 AM] [semantic-release] › ℹ  This test run was triggered on the branch refs/pull/61/merge, while semantic-release is configured to only publish from main, therefore a new version won’t be published.

If next_version is none, your commits don't trigger a release. Use feat: for minor (breaking changes too, until launch), fix: / perf: for patch.

@Domantas
Domantas merged commit 2affd4e into main Oct 19, 2026
7 checks passed
@Domantas
Domantas deleted the feat/payments-orders branch October 19, 2026 11:39
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant