File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed 
packages/ui-extensions/src/surfaces/point-of-sale/types Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ --- 
2+ ' @shopify/ui-extensions ' minor 
3+ --- 
4+ 
5+ Added optional ` components `  field to ` LineItem `  interface with new ` LineItemComponent `  type to provide properties of product bundle components.
Original file line number Diff line number Diff line change 11import  { CountryCode }  from  './country-code' ; 
22import  { TaxLine }  from  './tax-line' ; 
3+ import  { Money }  from  './money' ; 
34
45export  interface  Cart  { 
56  /** 
@@ -53,6 +54,24 @@ export interface LineItem {
5354   * The currently selected selling plan for this line item. 
5455   */ 
5556  sellingPlan ?: SellingPlan ; 
57+   /** 
58+    * The components associated if LineItem represents a product bundle. 
59+    */ 
60+   components ?: LineItemComponent [ ] ; 
61+ } 
62+ 
63+ /** 
64+  * Product data for a single component in a line item bundle. Not including 
65+  * uuid because we do not want any chance of these components being mutated. 
66+  */ 
67+ export  interface  LineItemComponent  { 
68+   title : string ; 
69+   quantity : number ; 
70+   price : Money ; 
71+   taxable : boolean ; 
72+   taxLines : TaxLine [ ] ; 
73+   variantId ?: string ; 
74+   productId ?: string ; 
5675} 
5776
5877/** 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments