Skip to content

Commit 1f2a11e

Browse files
authored
docs: add TSDocs for 4c52349
1 parent 4c52349 commit 1f2a11e

File tree

1 file changed

+39
-0
lines changed
  • packages/modules/cart/src/models

1 file changed

+39
-0
lines changed

packages/modules/cart/src/models/cart.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,57 @@ const Cart = model
140140
* @since 2.13.7
141141
*/
142142
original_tax_total: model.bigNumber().computed(),
143+
/**
144+
* The total amount of the cart after discounts.
145+
*/
143146
total: model.bigNumber().computed(),
147+
/**
148+
* The subtotal amount of the cart after discounts.
149+
*/
144150
subtotal: model.bigNumber().computed(),
151+
/**
152+
* The tax total amount of the cart.
153+
*/
145154
tax_total: model.bigNumber().computed(),
155+
/**
156+
* The total discount amount applied to the cart.
157+
*/
146158
discount_total: model.bigNumber().computed(),
159+
/**
160+
* The total tax amount on discounts applied to the cart.
161+
*/
147162
discount_tax_total: model.bigNumber().computed(),
163+
/**
164+
* The total gift card amount applied to the cart.
165+
*/
148166
gift_card_total: model.bigNumber().computed(),
167+
/**
168+
* The total tax amount on gift cards applied to the cart.
169+
*/
149170
gift_card_tax_total: model.bigNumber().computed(),
171+
/**
172+
* The total shipping amount for the cart.
173+
*/
150174
shipping_total: model.bigNumber().computed(),
175+
/**
176+
* The shipping subtotal amount for the cart.
177+
*/
151178
shipping_subtotal: model.bigNumber().computed(),
179+
/**
180+
* The total tax amount on shipping for the cart.
181+
*/
152182
shipping_tax_total: model.bigNumber().computed(),
183+
/**
184+
* The original total shipping amount for the cart before discounts.
185+
*/
153186
original_shipping_total: model.bigNumber().computed(),
187+
/**
188+
* The original shipping subtotal amount for the cart before discounts.
189+
*/
154190
original_shipping_subtotal: model.bigNumber().computed(),
191+
/**
192+
* The original total tax amount on shipping for the cart before discounts.
193+
*/
155194
original_shipping_tax_total: model.bigNumber().computed(),
156195
})
157196
.cascades({

0 commit comments

Comments
 (0)