feat: add customer details fields to Purchase model and request, implement checkout process with cart clearing

This commit is contained in:
2026-07-03 16:48:31 -03:00
parent 6d066beea3
commit 057e6757dc
8 changed files with 242 additions and 40 deletions

View File

@@ -36,6 +36,10 @@ class PurchaseResource extends JsonResource
'status' => $this->status,
'payment_status' => $this->payment_status,
'payment_method' => $this->payment_method,
'dni' => $this->dni,
'telefono' => $this->telefono,
'nombre_apellido' => $this->nombre_apellido,
'email' => $this->email,
'items' => PurchaseItemResource::collection($items),
'subtotal' => $this->formatMoney($subtotal),
'total' => $this->formatMoney($total),