Repository navigation
feat(payments): payment orders and checkout - #102
Merged
Merged
Conversation
…ckout a2d8be8d0 `python3 scripts/sync-types.py --api http://localhost:51949 --hub http://localhost:51948` against a private gateway stack of the campaign branch. The build source-generates the new methods. No type, property or route disappeared. - Api: payment orders + checkout (CreatePaymentOrderAsync, GetPaymentOrderAsync, GetPaymentOrdersAsync, StartPaymentCheckoutAsync) with PaymentOrderDto, PaymentOrderLineDto, PaymentOrderCheckoutDto, PaymentOrderLineInput - Hub: MontonioPaymentIntegrationRequest / Dto, PaymentOrderEventDto, PaymentEventDto, CodeFunctionDataDto.Order (the payments.order.* slot) - other gateway changes on the same head: notification inbox, trigger definition, user import, AI context, more payment provider requests, unique indexes, warnings - the Api host now exports the JsonSchemaFieldDto subclasses (gateway ticket C22), so the hand-kept block is gone - UpdateAuthorizationSettings.AllowGuestUsers is now bool? (gateway change) - coverage / endpoint snapshots updated to the new contract (additions, plus the driver's 8-property cap moving which fields are sampled) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tOrder for payments.order.* functions
- Api `Payments` module (source-generated from the regenerated DTOs):
CreatePaymentOrderAsync (POST /payments/orders, same body + same
idempotency key = same ord_ id), GetPaymentOrderAsync, GetPaymentOrdersAsync
(buyerUserId / merchantReference / status filters), StartPaymentCheckoutAsync
(POST /payments/orders/{Id}/checkout); one request test per method
- CodeFunctionEvent.AsPaymentOrder(): the data.order slot of a payments.order.*
event (PaymentOrderEventDto, OrderEventId is the de-duplication key) with the
same wrong-source error as the other views; AsPayment() keeps returning the callback
- Hub: a test that SavePaymentsIntegrationAsync sends the Montonio shape
- README: Api payments row, Montonio in the Hub payments row, AsPaymentOrder in
the cloud function views, a "Payment orders and checkout" section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🚀 Release previewNext version on merge to semantic-release dry-run output
|
|
🎉 This PR is included in version 3.25.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
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).Payments.CreatePaymentOrderAsync,GetPaymentOrderAsync,GetPaymentOrdersAsync,StartPaymentCheckoutAsync.scripts/sync-types.py --api … --hub …): payment-order DTOs,PaymentOrderEventDto, Montonio (PaymentGatewayPlatform.Montonio, request + DTO),CodeFunctionDataDto.Order.CodeFunctionEvent.AsPaymentOrder()readsdata.order(OrderEventIdis the de-duplication key);AsPayment()unchanged.AsPaymentOrder(), a 'Payment orders and checkout' section.Note: the regeneration also carries base gateway changes.
UpdateAuthorizationSettings.AllowGuestUsersis nowbool?(withAllowAnyoneToSignUp,AllowEmailRegistration,InviteOnly), and the field-kind typegen anchors moved fromInternalsTypeGentoSharedTypeGen. Code that only sets those values still compiles. The major version is frozen, so this ships as a minor.Checks
dotnet build -warnaserrorclean ·dotnet test: Coexistence 2 · Norbix.Sdk.Tests 100 · Norbix.Hub.Tests 258 — 0 failed (new: 4 Verify request tests,AsPaymentOrder+ wrong-source, Montonio save body)🤖 Generated with Claude Code