From 31bf05021d51c08c215b8eb60998fbedbfd61519 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Wed, 2 Aug 2023 12:58:35 -0300 Subject: [PATCH] fix(api): Updating Carts and Orders interfaces --- packages/api/types/carts.d.ts | 8 ++++++++ packages/api/types/orders.d.ts | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/packages/api/types/carts.d.ts b/packages/api/types/carts.d.ts index af6eb18e3..2284d4626 100644 --- a/packages/api/types/carts.d.ts +++ b/packages/api/types/carts.d.ts @@ -102,6 +102,10 @@ export interface Carts { * Product or variation full name, or other label for this cart item */ name?: string; + /** + * Product slug to complete page URL + */ + slug?: string; /** * Product or variation picture for this cart item */ @@ -241,6 +245,10 @@ export interface Carts { * Final item price including additions due to customizations (auto-calculated) */ final_price?: number; + /** + * Item's original price for comparison, without discounts + */ + base_price?: number; /** * Flags to associate additional info * diff --git a/packages/api/types/orders.d.ts b/packages/api/types/orders.d.ts index e8407dc0e..23379b4a2 100644 --- a/packages/api/types/orders.d.ts +++ b/packages/api/types/orders.d.ts @@ -1171,6 +1171,10 @@ export interface Orders { * Product or variation full name, or other label for this cart item */ name?: string; + /** + * Product slug to complete page URL + */ + slug?: string; /** * Product or variation picture for this cart item */ @@ -1294,6 +1298,10 @@ export interface Orders { * Final item price including additions due to customizations and gift wrap */ final_price?: number; + /** + * Item's original price for comparison, without discounts + */ + base_price?: number; /** * Flags to associate additional info *