Skip to content

feat(payments): payment orders, checkout and order events - #98

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 for @norbix.ai/ts (gateway campaign audit/payments-checkout, item typegen + sdk-ts).

  • api.payments.createPaymentOrder, getPaymentOrder, getPaymentOrders, startPaymentCheckout (generated from the gateway).
  • Montonio and seven other provider save requests are now typed for hub.payments.savePaymentsIntegration.
  • Webhooks: payments.order.paid, .partially_refunded, .refunded, .reversed, .expired are typed as PaymentOrderEventDto. event.metadata.order holds { id, orderEventId, status }; orderEventId is the de-duplication key.
  • Code functions: asPaymentOrder() reads data.order, and asPayment() still reads the callback.
  • The regenerated types also pick up base routes the SDK had missed: the notification inbox (Api + Hub), trigger definition, pre-execute-code test, updateAiServiceUser. Only additions; no public method changed or was removed.

Checks

  • npx vitest run 1068 passed · npm run lint · prettier --check · npm run typecheck · npm run build · typecheck:dist
  • Built package run against a private stack of the gateway branch: Montonio integration saved, order created (same body → same order), read one + list, checkout refused with a typed NorbixValidationError (return URL origin not allowed).

🤖 Generated with Claude Code

Domantas and others added 2 commits October 19, 2026 13:57
…rated types

Regenerated api2 / hub2 types and endpoint modules from the gateway
campaign audit/payments-checkout (merged with refactoringV2):
api.payments.createPaymentOrder, getPaymentOrder, getPaymentOrders,
startPaymentCheckout; Montonio and the seven other provider save
requests; PaymentOrderEventDto; PaymentFactDto.orderId; plus the base
routes the SDK had not picked up (notification inbox on Api and Hub,
trigger definition, pre-execute-code test, updateAiServiceUser).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…for Code functions

Five order events (paid, partially_refunded, refunded, reversed, expired)
carry PaymentOrderEventDto; event.metadata.order holds the order id, its
status and orderEventId (the de-duplication key). Code functions read
data.order with asPaymentOrder(); asPayment() stays the callback.

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
[10:59:41 AM] [semantic-release] › ℹ  Running semantic-release version 25.0.9
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[10:59:42 AM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[10:59:43 AM] [semantic-release] › ℹ  This test run was triggered on the branch refs/pull/98/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 2ead246 into main Oct 19, 2026
8 checks passed
@Domantas
Domantas deleted the feat/payments-orders branch October 19, 2026 11:01
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 4.29.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