import { Attr } from 'ts-framework' import { TripDomainResponseDTO } from './trip' export class CreateTripProductDTO { @Attr({ type: String }) productId: string @Attr({ type: String }) name: string @Attr({ type: Boolean, optional: true }) shouldDispatch?: boolean @Attr({ type: String, optional: true }) integrationId?: string @Attr({ type: String, optional: true }) pricingId?: string } export class TripProviderProductResponseDTO { @Attr({ type: String }) id: string @Attr({ type: String, optional: true }) pricingId?: string @Attr({ type: String }) productId: string @Attr({ type: String }) name: string @Attr({ type: TripDomainResponseDTO }) trip: TripDomainResponseDTO } export class TripAvailableProductDTO { @Attr({ type: String }) id: string @Attr({ type: String }) name: string @Attr({ type: Number }) price: number @Attr({ type: String, optional: true }) pricingId?: string @Attr({ type: String, optional: true }) serviceId: string @Attr({ type: Number, optional: true }) fare?: number @Attr({ type: Number, optional: true }) eta?: number @Attr({ type: Number, optional: true }) seats?: number @Attr({ type: Boolean }) serviceMembershipRequired: boolean @Attr({ type: Boolean }) riderHasMembership: boolean @Attr({ type: Boolean }) unavailable: boolean @Attr({ type: String }) unavailableReason: string }