-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
20 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
import { TextByLang } from 'src/type'; | ||
import { GetCartDetailResponse } from './get-cart-detail-response.dto'; | ||
|
||
export class AddToCartResponse extends GeneralResponse { | ||
data: AddToCartResponseData; | ||
} | ||
|
||
interface AddToCartResponseData { | ||
customer_id: number; | ||
restaurant_id: number; | ||
restaurant_name: TextByLang[]; | ||
restaurant_logo_img: string; | ||
cart_info: FullCartItem[]; | ||
} | ||
|
||
interface FullCartItem { | ||
item_id: number; | ||
item_name: TextByLang[]; | ||
item_img: string; | ||
customer_id: number; | ||
sku_id: number; | ||
price: number; | ||
price_after_discount: number; | ||
unit: string; | ||
qty_ordered: number; | ||
advanced_taste_customization: string; | ||
basic_taste_customization: string; | ||
portion_customization: string; | ||
advanced_taste_customization_obj: string; | ||
basic_taste_customization_obj: string; | ||
notes: string; | ||
restaurant_id: number; | ||
packaging_info: CartPackagingInfo; | ||
} | ||
|
||
interface CartPackagingInfo { | ||
packaging_id: number; | ||
name: TextByLang[]; | ||
price: number; | ||
} | ||
export class AddToCartResponse extends GetCartDetailResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
import { TextByLang } from 'src/type'; | ||
import { GetCartDetailResponse } from './get-cart-detail-response.dto'; | ||
|
||
export class DeleteCartItemResponse extends GeneralResponse { | ||
data: Data; | ||
} | ||
interface Data { | ||
customer_id: number; | ||
restaurant_id: number; | ||
restaurant_name: TextByLang[]; | ||
restaurant_logo_img: string; | ||
cart_info: FullCartItem[]; | ||
} | ||
|
||
interface FullCartItem { | ||
item_id: number; | ||
item_name: TextByLang[]; | ||
item_img: string; | ||
customer_id: number; | ||
sku_id: number; | ||
price: number; | ||
price_after_discount: number; | ||
unit: string; | ||
qty_ordered: number; | ||
advanced_taste_customization: string; | ||
basic_taste_customization: string; | ||
portion_customization: string; | ||
advanced_taste_customization_obj: string; | ||
basic_taste_customization_obj: string; | ||
notes: string; | ||
restaurant_id: number; | ||
packaging_info: CartPackagingInfo; | ||
} | ||
|
||
interface CartPackagingInfo { | ||
packaging_id: number; | ||
name: TextByLang[]; | ||
price: number; | ||
} | ||
export class DeleteCartItemResponse extends GetCartDetailResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
import { TextByLang } from 'src/type'; | ||
import { GetCartDetailResponse } from './get-cart-detail-response.dto'; | ||
|
||
export class QuickAddToCartResponse extends GeneralResponse { | ||
data: QuickAddToCartResponseData; | ||
} | ||
|
||
interface QuickAddToCartResponseData { | ||
customer_id: number; | ||
restaurant_id: number; | ||
restaurant_name: TextByLang[]; | ||
restaurant_logo_img: string; | ||
cart_info: FullCartItem[]; | ||
} | ||
|
||
interface FullCartItem { | ||
item_id: number; | ||
item_name: TextByLang[]; | ||
item_img: string; | ||
customer_id: number; | ||
sku_id: number; | ||
price: number; | ||
price_after_discount: number; | ||
unit: string; | ||
qty_ordered: number; | ||
advanced_taste_customization: string; | ||
basic_taste_customization: string; | ||
portion_customization: string; | ||
advanced_taste_customization_obj: string; | ||
basic_taste_customization_obj: string; | ||
notes: string; | ||
restaurant_id: number; | ||
packaging_info: CartPackagingInfo; | ||
} | ||
|
||
interface CartPackagingInfo { | ||
packaging_id: number; | ||
name: TextByLang[]; | ||
price: number; | ||
} | ||
export class QuickAddToCartResponse extends GetCartDetailResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
import { TextByLang } from 'src/type'; | ||
import { GetCartDetailResponse } from './get-cart-detail-response.dto'; | ||
|
||
export class UpdateCartAdvancedResponse extends GeneralResponse { | ||
data: CartDetail; | ||
} | ||
|
||
interface CartDetail { | ||
customer_id: number; | ||
restaurant_id: number; | ||
restaurant_name: TextByLang[]; | ||
restaurant_logo_img: string; | ||
cart_info: FullCartItem[]; | ||
} | ||
|
||
interface FullCartItem { | ||
item_id: number; | ||
item_name: TextByLang[]; | ||
item_img: string; | ||
customer_id: number; | ||
sku_id: number; | ||
price: number; | ||
price_after_discount: number; | ||
unit: string; | ||
qty_ordered: number; | ||
advanced_taste_customization: string; | ||
basic_taste_customization: string; | ||
portion_customization: string; | ||
advanced_taste_customization_obj: string; | ||
basic_taste_customization_obj: string; | ||
notes: string; | ||
restaurant_id: number; | ||
packaging_info: CartPackagingInfo; | ||
} | ||
|
||
interface CartPackagingInfo { | ||
packaging_id: number; | ||
name: TextByLang[]; | ||
price: number; | ||
} | ||
export class UpdateCartAdvancedResponse extends GetCartDetailResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,3 @@ | ||
import { GeneralResponse } from 'src/dto/general-response.dto'; | ||
import { TextByLang } from 'src/type'; | ||
import { GetCartDetailResponse } from './get-cart-detail-response.dto'; | ||
|
||
export class UpdateCartBasicResponse extends GeneralResponse { | ||
data: CartDetail; | ||
} | ||
|
||
interface CartDetail { | ||
customer_id: number; | ||
restaurant_id: number; | ||
restaurant_name: TextByLang[]; | ||
restaurant_logo_img: string; | ||
cart_info: FullCartItem[]; | ||
} | ||
|
||
interface FullCartItem { | ||
item_id: number; | ||
item_name: TextByLang[]; | ||
item_img: string; | ||
customer_id: number; | ||
sku_id: number; | ||
price: number; | ||
price_after_discount: number; | ||
unit: string; | ||
qty_ordered: number; | ||
advanced_taste_customization: string; | ||
basic_taste_customization: string; | ||
portion_customization: string; | ||
advanced_taste_customization_obj: string; | ||
basic_taste_customization_obj: string; | ||
notes: string; | ||
restaurant_id: number; | ||
packaging_info: CartPackagingInfo; | ||
} | ||
|
||
interface CartPackagingInfo { | ||
packaging_id: number; | ||
name: TextByLang[]; | ||
price: number; | ||
} | ||
export class UpdateCartBasicResponse extends GetCartDetailResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters