readonly are snapshots supplied by the app; to change a model, use the methods on the editor or draft your extension receives.
Product models
ProductVariantPolicy is continue when the variant can be bought while out of stock. For metafield keys and value types, see ProductService.
ProductTag is a runtime global. The package exports its type only, so construct tags with new ProductTag(...) instead of importing it as a value.
Cart models
product and variant can be null when the product or variant no longer exists. subtotalAmount is the amount before taxes and cart-level discounts; totalAmount is the total the customer pays.
CartOperation is the native mutation object returned by CartOperations. Create it with the factory methods documented in Cart operations; do not construct it manually.
Collection model
metafields is spelled in lowercase, unlike Product.metaFields. It is {} when the collection’s metafields were not loaded.