PurchaseConfirmationEmailModel
Version: v2.0.0
Supporting model
A request/response or nested model — not a stored DynamoDB entity.
Overview
PurchaseConfirmationEmailModel model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
vehicle_purchase_id | str | ✅ | — | — |
email_to | List[str] | ❌ | — | — |
subject | str | ❌ | — | — |
body | str | ❌ | — | — |
send_user_copy | bool | ❌ | False | — |
sender_email | str | ❌ | — | — |
include_pdf_attachment | bool | ❌ | True | — |
tenant_accounts_email | str | ❌ | — | — |
tenant_business_name | str | ❌ | — | — |
form_link | str | ❌ | — | — |
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newvehiclePurchase/email/confirmation | — | src/email/purchase_send_confirmation_email.py |
| Event | EventBridge | VehiclePurchaseCreated | src/email/purchase_send_confirmation_email.py |
Change history
v2.0.0 · 2026-02-07 · Olaniyi Ajayi · 85b6d68d1
Refactor PurchaseConfirmationEmailModel and enhance email handling logic
- Field
bodytype changed: str → Optional[str] (breaking). - Field
bodybecame optional. - Field
email_totype changed: List[str] → Optional[List[str]] (breaking). - Field
email_tobecame optional. - Field
subjecttype changed: str → Optional[str] (breaking). - Field
subjectbecame optional.
v1.0.1 · 2026-01-26 · Olaniyi Ajayi · 753e4d95c
fix(email): Update PDF attachment handling in PurchaseConfirmationEmailModel
- Field
include_pdf_attachmentdefault changed: False → True.
v1.0.0 · 2026-01-24 · Olaniyi Ajayi · 19d2836bd
feat(email): Introduce PurchaseConfirmationEmailModel and update email handling
- Initial version.
Generated from
dismantly-backend/Microservices/Purchase/dependencies/models.py. Do not edit by hand.