Skip to content

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

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).

  • NorbixApiClient.payments: typed createPaymentOrder (returns the ord_… id), getPaymentOrder(id:), getPaymentOrders(…) (page), startPaymentCheckout(…), with models PaymentOrder, PaymentOrderLine, PaymentOrderCheckout, PaymentOrderPage, PaymentCheckoutStart.
  • NorbixApiClientType gains payments (as earlier modules did). A custom conformer must add it; the major version is frozen, so this ships as a minor.
  • Reference DTOs regenerated from a private stack of the gateway branch.

Checks

  • swift build · swift test 402 passed (7 new)

🤖 Generated with Claude Code

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

Refreshed in update mode (x swift / x typescript) 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

client.payments (new NorbixApi PaymentsModule, typed like FilesModule):
- POST /{version}/payments/orders → the order id (ord_…; same body + same
  idempotencyKey → same id)
- GET /{version}/payments/orders/{Id} → PaymentOrder
- GET /{version}/payments/orders (buyerUserId, merchantReference, status,
  pageSize, startingAfter) → PaymentOrderPage
- POST /{version}/payments/orders/{Id}/checkout → PaymentCheckoutStart
  (checkout, reused, order)
Models: PaymentOrderLineInput, PaymentOrder, PaymentOrderLine,
PaymentOrderCheckout. Tests: verb, path, path param, body / query and the
decoded answer through the mock executor. docs/api/payments.md.

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

Copy link
Copy Markdown

🎉 This PR is included in version 1.21.0 🎉

The release is available on GitHub release

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