feat(POS-005): completed feature

This commit is contained in:
chattie
2026-08-22 13:36:26 +02:00
parent 955c25d77b
commit 915fbe0ba9
12 changed files with 294 additions and 22 deletions

View File

@@ -0,0 +1,12 @@
# POS-005 — Architect
## Feature
POS API Phase 1: product search + payment methods.
## Objetivo
Endpoints: GET /pos/products/search, /pos/products/by-ean/:ean, /pos/products/by-sku/:sku. Admin: GET/POST/PATCH /pos/admin/payment-methods.
## Diseño
- Product search: JOIN catalog_product_variants + catalog_products + inventory_stock + pricing_variant_prices + categories + brands
- Payment methods: direct CRUD on pos_payment_methods table
- Auth: requireAnyRole for product routes; requireRole admin for payment method admin