@zhiguang-gastrofy/capi
Version:
comany apis, including Northfork api and Gastrofy api
24 lines (22 loc) • 483 B
text/typescript
export class Product {
id: number;
external_id: string;
name: string;
image_url: string;
brand: string;
price: number;
size: number;
size_unit_name: string;
mid?: number;
is_active: boolean;
}
export class RecipeProduct extends Product {
common: boolean;
shared: boolean;
quantity: number;
amount: number; // the actual amount in cart
strategy: string;
substitute_identifier: string;
substitute_products_amount: number;
unit_of_order: string;
}