feat: implement getOrder on legacy

This commit is contained in:
Adhiraj Singh
2022-03-06 10:56:29 +05:30
parent 49038a94f2
commit 8a52eeb310
2 changed files with 59 additions and 1 deletions

View File

@@ -36,4 +36,24 @@ export type Product = ProductBase & {
imageUrls: { [_: string]: string }
reviewStatus: { [_: string]: string }
availability: ProductAvailability
}
export type OrderPrice = {
currency: string
total: number
}
export type OrderProduct = {
id: string
imageUrl: string
name: string
quantity: number
currency: string
price: number
}
export type OrderDetails = {
price: OrderPrice
products: OrderProduct[]
}