Skip to content

Commit 4699bb3

Browse files
vvillait88claude
andcommitted
docs(README): promote example imports to top-level where re-exported
- Quick-start: RailSpec types + validate_shipping_against_policy via top-level - Payment helpers section: extract_payment_signer via top-level Remaining /payment + /identity.policy imports are submodule-only helpers (build_payment_directive, networks, build_x402_accepts_for_402, etc.). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 19a59c5 commit 4699bb3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ async def purchase(request: Request, assess=Depends(get_agentscore_data)):
8484
from fastapi import FastAPI, Request
8585
from agentscore_commerce import (
8686
Checkout, CheckoutGateConfig, DiscoveryProbeConfig, PricingResult, pricing_result,
87+
SolanaMppRailSpec, StripeRailSpec, TempoRailSpec, X402BaseRailSpec,
88+
validate_shipping_against_policy,
8789
)
8890
from agentscore_commerce.discovery import default_a2a_services
89-
from agentscore_commerce.identity.policy import validate_shipping_against_policy
90-
from agentscore_commerce.payment import TempoRailSpec, X402BaseRailSpec, SolanaMppRailSpec, StripeRailSpec
9191

9292
app = FastAPI()
9393

@@ -161,11 +161,11 @@ The 402 body Checkout emits auto-attaches `identity_mode` + `required_signer` +
161161
## Payment helpers
162162

163163
```python
164+
from agentscore_commerce import extract_payment_signer
164165
from agentscore_commerce.payment import (
165166
BuildPaymentDirectiveInput,
166167
PaymentDirectiveInput,
167168
build_payment_directive,
168-
extract_payment_signer,
169169
networks,
170170
payment_directive,
171171
www_authenticate_header,

0 commit comments

Comments
 (0)