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 {
|
export interface ProductAttributeOption {
|
||||||
id: number;
|
id: number;
|
||||||
|
validity_time_id?: number | null;
|
||||||
value: string;
|
value: string;
|
||||||
label: string;
|
label: string;
|
||||||
sort_order: number;
|
sort_order: number;
|
||||||
|
|||||||
@@ -3,6 +3,16 @@ import { firstValueFrom } from 'rxjs';
|
|||||||
|
|
||||||
import { BaseApiService } from '../../../../../../core/services/base-api.service';
|
import { BaseApiService } from '../../../../../../core/services/base-api.service';
|
||||||
import { TenantService } from '../../../../../../core/services/tenant.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 {
|
export interface TicketResponse {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -12,6 +22,8 @@ export interface TicketResponse {
|
|||||||
description: string | null;
|
description: string | null;
|
||||||
source_catalog_item_id: number | null;
|
source_catalog_item_id: number | null;
|
||||||
source_variant_id: number | null;
|
source_variant_id: number | null;
|
||||||
|
validity_times?: ValidityTime[];
|
||||||
|
validity_groups?: TicketValidityGroupResponse[];
|
||||||
starts_at: string | null;
|
starts_at: string | null;
|
||||||
expires_at: string | null;
|
expires_at: string | null;
|
||||||
used_at: string | null;
|
used_at: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user