feat: add type property to Product and CatalogItemDetail interfaces; include event_id in PurchaseSummaryResponse and PurchaseDetailResponse
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
import { ApiPaginatedResponse } from '../api-paginated-response.interface';
|
import { ApiPaginatedResponse } from '../api-paginated-response.interface';
|
||||||
|
|
||||||
|
export type CatalogItemType = 'product' | 'bundle';
|
||||||
|
|
||||||
export interface Product {
|
export interface Product {
|
||||||
id: number;
|
id: number;
|
||||||
|
type: CatalogItemType;
|
||||||
category_id: number;
|
category_id: number;
|
||||||
brand_id: number | null;
|
brand_id: number | null;
|
||||||
slug: string;
|
slug: string;
|
||||||
@@ -60,6 +63,7 @@ export interface SelectedCatalogItemVariant extends CatalogItemVariant {
|
|||||||
|
|
||||||
export interface CatalogItemDetail {
|
export interface CatalogItemDetail {
|
||||||
id: number;
|
id: number;
|
||||||
|
type: CatalogItemType;
|
||||||
purpose?: 'product' | 'entry';
|
purpose?: 'product' | 'entry';
|
||||||
category_id: number | null;
|
category_id: number | null;
|
||||||
brand_id: number | null;
|
brand_id: number | null;
|
||||||
@@ -92,6 +96,7 @@ export interface CatalogFeaturedItemVariant {
|
|||||||
|
|
||||||
export interface CatalogFeaturedItem {
|
export interface CatalogFeaturedItem {
|
||||||
id: number;
|
id: number;
|
||||||
|
type: CatalogItemType;
|
||||||
nombre: string;
|
nombre: string;
|
||||||
descripcion?: string | null;
|
descripcion?: string | null;
|
||||||
precio: number | string;
|
precio: number | string;
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export interface PurchaseStatusResponse {
|
|||||||
|
|
||||||
export interface PurchaseSummaryResponse extends PurchaseStatusResponse {
|
export interface PurchaseSummaryResponse extends PurchaseStatusResponse {
|
||||||
id: number;
|
id: number;
|
||||||
|
event_id: number | null;
|
||||||
created_at: string | null;
|
created_at: string | null;
|
||||||
total: string;
|
total: string;
|
||||||
}
|
}
|
||||||
@@ -58,6 +59,7 @@ export interface PurchaseDetailResponse extends PurchaseStatusResponse {
|
|||||||
id: number;
|
id: number;
|
||||||
cart_id: number | null;
|
cart_id: number | null;
|
||||||
tenant_codigo: string;
|
tenant_codigo: string;
|
||||||
|
event_id: number | null;
|
||||||
user_id: number;
|
user_id: number;
|
||||||
created_at: string | null;
|
created_at: string | null;
|
||||||
payment_method: string | null;
|
payment_method: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user