31 lines
571 B
TypeScript
31 lines
571 B
TypeScript
import { AvailableTranslation } from '@src/__components/components';
|
|
import { InputType, Field } from 'type-graphql';
|
|
|
|
@InputType()
|
|
export class CartEngineUpdateSchema {
|
|
@Field()
|
|
productId: string;
|
|
@Field()
|
|
newQuantity: number;
|
|
}
|
|
|
|
@InputType()
|
|
export class CartEngineUpdateOrDeleteSchema {
|
|
@Field()
|
|
lineId: string;
|
|
@Field()
|
|
newQuantity: number;
|
|
}
|
|
|
|
@InputType()
|
|
export class CartEngineAddPromoSchema {
|
|
@Field()
|
|
promoCode: string;
|
|
}
|
|
|
|
@InputType()
|
|
export class CartEngineAddCountryCodeSchema {
|
|
@Field()
|
|
countryCode: string;
|
|
}
|