Skip to content

feat(payments): payment orders and checkout - #44

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

Domantas merged 3 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).

  • NorbixApi.payments: createPaymentOrder, getPaymentOrder, getPaymentOrders, startPaymentCheckout.
  • Webhooks: payments.order.paid / .partially_refunded / .refunded / .reversed / .expired in the catalog and NorbixWebhookEvents; metadata.order (id, orderEventId — the de-duplication key — and status); payment ids lifted from data.payment.
  • Reference DTOs regenerated from a private stack of the gateway branch (payment orders, PaymentOrderEventDto, Montonio).

Checks

  • dart analyze no issues · dart test 448 passed (8 new)

🤖 Generated with Claude Code

Domantas and others added 3 commits October 19, 2026 14:28
…heckout a2d8be8d0 (payment orders, Montonio)

Refreshed in update mode (x dart) against a private gateway stack on the
campaign head; header BaseUrl put back to the usual localhost value.

- payment orders + checkout: CreatePaymentOrderRequest, GetPaymentOrderRequest,
  GetPaymentOrdersRequest, StartPaymentCheckoutRequest and their DTOs
- PaymentOrderEventDto / PaymentEventDto (payments.order.* webhooks)
- MontonioPaymentIntegrationRequest / Dto
- other gateway additions (notification inbox, trigger definition, user import)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tOrder, getPaymentOrder, getPaymentOrders, startPaymentCheckout

api.payments (new PaymentsResource on NorbixApi), written in the generated
resource style (the generator is no longer in the repo):
- POST /{version}/payments/orders → { id } (ord_…; same body + same
  idempotencyKey → same id)
- GET /{version}/payments/orders/{id} → { item }
- GET /{version}/payments/orders (buyerUserId, merchantReference, status) → { list }
- POST /{version}/payments/orders/{id}/checkout → { checkout, reused, order }

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efunded, reversed, expired

The payload is the order event (PaymentOrderEventDto map: orderEventId, event,
from, to, reason, order, payment). integrationId and the provider ids are
lifted from data.payment onto metadata, and the new metadata.order carries
{ id, orderEventId, status }; orderEventId is the de-duplication key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit bac195d into main Oct 19, 2026
6 checks passed
@Domantas
Domantas deleted the feat/payments-orders branch October 19, 2026 11:49
@github-actions

Copy link
Copy Markdown

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