From 3c81bbd068d07b380fb09786598bbb9238e25bbb Mon Sep 17 00:00:00 2001 From: vvillait88 Date: Thu, 17 Sep 2026 23:04:16 -0400 Subject: [PATCH] American spelling in two comments serialize, in a code comment and a test comment; the receipt's fulfillment status values stay as the wire contract spells them. --- agentscore_commerce/challenge/body.py | 2 +- tests/test_checkout.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agentscore_commerce/challenge/body.py b/agentscore_commerce/challenge/body.py index 8513054..39fc338 100644 --- a/agentscore_commerce/challenge/body.py +++ b/agentscore_commerce/challenge/body.py @@ -102,7 +102,7 @@ def build_402_body( if agent_memory is not None: # AgentMemoryHint is a dataclass; merchants pass it directly via # first_encounter_agent_memory(...). Convert here so JSONResponse / - # json.dumps can serialise without per-merchant boilerplate. + # json.dumps can serialize without per-merchant boilerplate. body["agent_memory"] = ( asdict(agent_memory) if is_dataclass(agent_memory) and not isinstance(agent_memory, type) else agent_memory ) diff --git a/tests/test_checkout.py b/tests/test_checkout.py index 047072e..43f7ef8 100644 --- a/tests/test_checkout.py +++ b/tests/test_checkout.py @@ -331,7 +331,7 @@ class _Verified: async def settle_payment(self, _payload: Any, _requirement: Any) -> Any: # ProcessX402Settle treats a falsy success as a settle_failed phase via the - # exception raised by settle_result_to_json_bytes when it tries to serialise + # exception raised by settle_result_to_json_bytes when it tries to serialize # an empty dict, so we shape the response as a plain JSON-serializable dict. if not self.settle_success: raise RuntimeError("settle rejected")