Repository navigation
feat(payments): payment orders, checkout and order events - #57
Merged
Merged
Conversation
…heckout a2d8be8d0 Refreshed in update mode (x <file>) against a private gateway stack on the campaign head; BaseUrl put back to the usual localhost values. 42 Api and 51 Hub types added, none removed: payment orders + checkout (CreatePaymentOrderRequest, PaymentOrderDto, PaymentOrderEventDto, …), MontonioPaymentIntegrationRequest, CodeFunctionDataDto.order, notification inbox, trigger definition, user import. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der.* trigger data.order is the order event (PaymentOrderEvent: order_event_id — the de-duplication key —, event, from_/to, reason, order, payment). as_payment() keeps returning the callback that changed the order; PaymentFact gains order_id. A non-order event asked for as_payment_order() raises NorbixFunctionEventError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… order + payment ids on event.metadata
payments.order.paid / partially_refunded / refunded / reversed / expired join
the catalog and NorbixWebhookEvents.Payments. The handler gets the
PaymentOrderEvent view; integration_id and the provider ids are lifted from
data.payment, and metadata.order = { id, order_event_id, status }
(WebhookOrderRef) — order_event_id is the de-duplication key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… async) create_payment_order, get_payment_order, get_payment_orders and start_payment_checkout (gateway campaign audit/payments-checkout). Also on the flat NorbixApi client. Tests: route, verb, path id, body and query per method, and the four routes through httpx on the async client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Payment orders and checkout (gateway campaign
audit/payments-checkout, item sdk-all; same surface as @norbix.ai/ts v4.29.0).api.payments(sync + async):create_payment_order,get_payment_order(id),get_payment_orders,start_payment_checkout(id).payments.order.*events; payload is the order event;event.metadata.order(id, order_event_id — the de-duplication key — and status), payment ids lifted fromdata.payment.FunctionEvent.as_payment_order()fordata.order;PaymentFact.order_id;as_payment()unchanged.Only additions, no public method changed.
Checks
uv run pytest1133 passed · ruff clean · mypy clean🤖 Generated with Claude Code