Skip to content

Commit

Permalink
fix(api): Updating Carts and Orders interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Aug 2, 2023
1 parent 4576bd4 commit 31bf050
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/api/types/carts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*
Expand Down
8 changes: 8 additions & 0 deletions packages/api/types/orders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit 31bf050

Please sign in to comment.