feat: add validity_time_id to ProductAttributeOption and enhance TicketResponse with validity_times and validity_groups
This commit is contained in:
@@ -18,6 +18,7 @@ export interface Product {
|
||||
|
||||
export interface ProductAttributeOption {
|
||||
id: number;
|
||||
validity_time_id?: number | null;
|
||||
value: string;
|
||||
label: string;
|
||||
sort_order: number;
|
||||
|
||||
@@ -3,6 +3,16 @@ import { firstValueFrom } from 'rxjs';
|
||||
|
||||
import { BaseApiService } from '../../../../../../core/services/base-api.service';
|
||||
import { TenantService } from '../../../../../../core/services/tenant.service';
|
||||
import { ValidityTime } from '../../../../../../core/services/validity-time.interface';
|
||||
|
||||
export interface TicketValidityGroupResponse {
|
||||
id: number;
|
||||
validity_times: ValidityTime[];
|
||||
starts_at: string | null;
|
||||
expires_at: string | null;
|
||||
is_valid: boolean;
|
||||
is_expired: boolean;
|
||||
}
|
||||
|
||||
export interface TicketResponse {
|
||||
id: number;
|
||||
@@ -12,6 +22,8 @@ export interface TicketResponse {
|
||||
description: string | null;
|
||||
source_catalog_item_id: number | null;
|
||||
source_variant_id: number | null;
|
||||
validity_times?: ValidityTime[];
|
||||
validity_groups?: TicketValidityGroupResponse[];
|
||||
starts_at: string | null;
|
||||
expires_at: string | null;
|
||||
used_at: string | null;
|
||||
|
||||
Reference in New Issue
Block a user