Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions a2a/docs/01-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ The diagram illustrates the separation between:

### Key Methods

| Method | Line | Called By | Purpose |
| ------------------- | ---- | ------------------------------ | ------------------------------------- |
| `search_products()` | 100 | `search_shopping_catalog` tool | Keyword search in catalog |
| `add_to_checkout()` | 186 | `add_to_checkout` tool | Create/update checkout session |
| `get_checkout()` | 244 | `get_checkout` tool | Retrieve current checkout state |
| `start_payment()` | 463 | `start_payment` tool | Validate checkout for payment |
| `place_order()` | 498 | `complete_checkout` tool | Finalize order, generate confirmation |
| Method | Called By | Purpose |
| ------------------- | ------------------------------ | ------------------------------------- |
| `search_products()` | `search_shopping_catalog` tool | Keyword search in catalog |
| `add_to_checkout()` | `add_to_checkout` tool | Create/update checkout session |
| `get_checkout()` | `get_checkout` tool | Retrieve current checkout state |
| `start_payment()` | `start_payment` tool | Validate checkout for payment |
| `place_order()` | `complete_checkout` tool | Finalize order, generate confirmation |

### Replacing with Real Backend

Expand Down
4 changes: 2 additions & 2 deletions a2a/docs/04-commerce-flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _recalculate_checkout(self, checkout: Checkout) -> None:
### Fulfillment Options

```python
# store.py:525 - _get_fulfillment_options()
# store.py - _get_fulfillment_options()
[
FulfillmentOptionResponse(
id="standard",
Expand Down Expand Up @@ -192,7 +192,7 @@ def _recalculate_checkout(self, checkout: Checkout) -> None:

## OrderConfirmation

Created in `place_order()` when checkout completes (store.py:498):
Created in `place_order()` when checkout completes (`store.py`):

```python
checkout.status = "completed"
Expand Down
4 changes: 2 additions & 2 deletions a2a/docs/06-extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_tax_rate(self, address: PostalAddress) -> float:

### Add Minimum Order

**File**: `store.py` - `start_payment()` method (line 463)
**File**: `store.py` - `start_payment()` method

```python
def start_payment(self, checkout_id: str) -> Checkout | str:
Expand All @@ -78,7 +78,7 @@ def start_payment(self, checkout_id: str) -> Checkout | str:

### Custom Shipping Options

**File**: `store.py` - `_get_fulfillment_options()` method (line 525)
**File**: `store.py` - `_get_fulfillment_options()` method

```python
def _get_fulfillment_options(self, address: PostalAddress) -> list:
Expand Down
Loading