mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: implement getOrder on legacy
This commit is contained in:
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user