fix(types): cart item totals optional (#13509)

Totals are not returned by default, so they should be marked as optional
This commit is contained in:
William Bouchard
2025-09-15 09:28:34 -04:00
committed by GitHub
parent 040fbf3220
commit 2a29c6f82c
2 changed files with 16 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/types": patch
---
fix(types): cart item totals optional

View File

@@ -574,57 +574,57 @@ export interface BaseCartLineItemTotals {
/**
* The original total of the cart line item.
*/
original_total: number
original_total?: number
/**
* The original subtotal of the cart line item.
*/
original_subtotal: number
original_subtotal?: number
/**
* The original tax total of the cart line item.
*/
original_tax_total: number
original_tax_total?: number
/**
* The item total of the cart line item.
*/
item_total: number
item_total?: number
/**
* The item subtotal of the cart line item.
*/
item_subtotal: number
item_subtotal?: number
/**
* The item tax total of the cart line item.
*/
item_tax_total: number
item_tax_total?: number
/**
* The total of the cart line item.
*/
total: number
total?: number
/**
* The subtotal of the cart line item.
*/
subtotal: number
subtotal?: number
/**
* The tax total of the cart line item.
*/
tax_total: number
tax_total?: number
/**
* The discount total of the cart line item.
*/
discount_total: number
discount_total?: number
/**
* The discount tax total of the cart line item.
*/
discount_tax_total: number
discount_tax_total?: number
}
/**