Add ShopifySovereignBridge class for biometric fit metadata injection#122
Draft
Add ShopifySovereignBridge class for biometric fit metadata injection#122
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…cs integration Agent-Logs-Url: https://github.com/Tryonme-com/tryonyou-app/sessions/77e3e547-1475-49b9-b86c-afe1f54a05bf Co-authored-by: LVT-ENG <214667862+LVT-ENG@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add sync process for Robert metrics to Shopify
Add ShopifySovereignBridge class for biometric fit metadata injection
Apr 7, 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.
Implements
ShopifySovereignBridge— a class that injects Robert biometric fit metrics into Shopify draft orders to reduce returns, and syncs inventory changes from the Armario Solidario.Changes
api/shopify_bridge.pyShopifySovereignBridge.__init__(api_key, shop_url)— constructsapi_baseand auth headers; API version viaSHOPIFY_ADMIN_API_VERSIONenv var, defaults to2026-04sync_robert_to_shopify(look_id, engine_metrics)— POSTs a draft order to Shopify Admin API withRobert_Fit_ScoreandBiometric_Validationline item properties; returns invoice URL on success, graceful fallback string on failureupdate_inventory_physics(fabric_key, stock_change)— logs stock sync for Armario Solidario removalsUses
urllib.request(consistent with existing module) rather thanrequests.tests/test_shopify_bridge.py15 new unittest cases covering init, payload structure, network error handling, missing fields, and inventory sync.