From 78970573a84656eb523a9e13706c53fcbd582636 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Wed, 5 Aug 2026 08:49:52 -0300 Subject: [PATCH] feat: add type property to Product and CatalogItemDetail interfaces; include event_id in PurchaseSummaryResponse and PurchaseDetailResponse --- src/app/core/services/catalog/catalog.interface.ts | 5 +++++ src/app/core/services/checkout.service.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/app/core/services/catalog/catalog.interface.ts b/src/app/core/services/catalog/catalog.interface.ts index 21097ba..d2c93b7 100644 --- a/src/app/core/services/catalog/catalog.interface.ts +++ b/src/app/core/services/catalog/catalog.interface.ts @@ -1,7 +1,10 @@ import { ApiPaginatedResponse } from '../api-paginated-response.interface'; +export type CatalogItemType = 'product' | 'bundle'; + export interface Product { id: number; + type: CatalogItemType; category_id: number; brand_id: number | null; slug: string; @@ -60,6 +63,7 @@ export interface SelectedCatalogItemVariant extends CatalogItemVariant { export interface CatalogItemDetail { id: number; + type: CatalogItemType; purpose?: 'product' | 'entry'; category_id: number | null; brand_id: number | null; @@ -92,6 +96,7 @@ export interface CatalogFeaturedItemVariant { export interface CatalogFeaturedItem { id: number; + type: CatalogItemType; nombre: string; descripcion?: string | null; precio: number | string; diff --git a/src/app/core/services/checkout.service.ts b/src/app/core/services/checkout.service.ts index 9d7d996..1666bd7 100644 --- a/src/app/core/services/checkout.service.ts +++ b/src/app/core/services/checkout.service.ts @@ -29,6 +29,7 @@ export interface PurchaseStatusResponse { export interface PurchaseSummaryResponse extends PurchaseStatusResponse { id: number; + event_id: number | null; created_at: string | null; total: string; } @@ -58,6 +59,7 @@ export interface PurchaseDetailResponse extends PurchaseStatusResponse { id: number; cart_id: number | null; tenant_codigo: string; + event_id: number | null; user_id: number; created_at: string | null; payment_method: string | null;