fix: Update UCP conformance repo to UCP 2026-01-23 version#28
Open
cusell-google wants to merge 5 commits intoUniversal-Commerce-Protocol:mainfrom
Open
fix: Update UCP conformance repo to UCP 2026-01-23 version#28cusell-google wants to merge 5 commits intoUniversal-Commerce-Protocol:mainfrom
cusell-google wants to merge 5 commits intoUniversal-Commerce-Protocol:mainfrom
Conversation
Refactors SDK imports that unnecessarily aliased Payment. Restores proper checkout ap2 update payload formatting that natively merges the mandate object context. Test Report: - ALL 59 Integration Tests Passing - Exit Code: 0
…rapping logic and missing fields.
wry-ry
approved these changes
Mar 28, 2026
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.
Overview
This PR updates the local simulation server and test harness payload definitions in the
conformancerepository to align seamlessly with the Universal Commerce Protocol 2026-01-23 SDK release.A substantial set of data modeling upgrades forced test payloads to drift out-of-sync with the Python SDK, resulting in 422 validations and 500 runtime tracebacks during testing. This pull request resolves all errors while migrating tests directly to the updated data patterns structure.
Detailed Changes
checkout_service.pyupdates to expect and handle a nativeFulfillmentUpdateRequest. The usage of staticFulfillmentobjects during fulfillment adjustments has been entirely replaced, which resolves widespread 422Unprocessable Entityvalidation failures."line_item_123"). Because the server now uses robust dynamic UUID generation for created lines, these strict lookups crashed. Tests acrossfulfillment_test.pywere adjusted to extract and pass generated line items appropriately.models.pyrepresentations and update workflows to safely parse and reconstruct models namedFulfillmentGroupandFulfillmentOptionmatching directly with UCP 01-23. Replaced deprecated paths that referencedFulfillmentGroupResponse, repairingNameErrorexceptions gracefully.t['type'],total['amount']). Due to how data parsing is currently evaluated via Pydantic model parsing into properties vs.model_extra, assertions scattered entirely acrossorder_test.py,validation_test.py, andfulfillment_test.pywere corrected to target the accurate instance accesses.ap2authentication extension object to correctly inherit from base objects instead of nesting via legacy wrapping wrappers (the oldmandatecontext payloads). Comments have been fully adjusted to explain why flattened objects replaceap2_datarequirements.from ucp_sdk... import Payment as Payment).Test Results
Locally executed using
uv runon Python 3.13 against the background Merchant Server simulation environment.Includes commits ae7b4b8... and prior.