Shopping types refer to data types representing different aspects of the customer's online shopping experience, the stage of the purchase process, shopping cart details, and specific items in the shopping cart.
This summary provides an overview of the shopping-related types:
|Cart||An e-commerce shopping cart.|
|Cart stage||An enumeration of stages in the shopping process.|
|Cart item||A single item in a shopping cart.|
This type represents a customer's shopping cart in an e-commerce application. It contains several properties that provide information about the state of the cart, such as the total cost, the stage of the purchase process, and details about the products.
These are the available properties:
The current stage of the shopping process. For example, "browsing" or "checkout."
The list of items in the cart in the order they were added.
The currency in which the monetary values are expressed in the shopping cart.
The total shipping price for the items in the shopping cart, including any handling fees. If not specified, it indicates that the shipping price is not yet calculated.
The coupon code applied to the purchase for a discount. For example, "SUMMER20".
The total discount applied to the purchase, as an absolute value. For example, 20.00 for a $20 discount.
The additional costs associated with the purchase as a map of key-value pairs. The key is the name of the cost, and the value is the amount of the cost.
The tax amount added to the purchase as a map of key-value pairs. The key is the tax name, and the value is the tax amount.
The total cost of the items before any additional charges or discounts are applied. If not specified, it indicates that the subtotal is not yet calculated.
The total revenue or grand total associated with the transaction. It includes shipping, tax, and any other adjustment. If the cart is empty, the total is $0.
The time when the cart was last updated. Updates refer to any interaction with the shopping cart, such as adding or removing items, changing quantities, or applying discounts.
If the cart is empty, the last update is always the current time.
This type is an enumeration of stages in the shopping process.
These are the possible values and what they represent:
|browsing||The user is browsing the store, but the cart is still empty.|
|shopping||The user has added items to the cart.|
|checkout||The user has started the checkout process.|
This type represents a single item in a shopping cart. It includes product details such as price, quantity, total cost, and order-specific information like applied coupons and discounts.
These are the available properties:
The order in which the item was added to the cart, starting at 0.
The unique identifier of the product. For example, "1234" or "a9b2745f".
The name of the product. For example, "Running shoes" or "Smartphone".
The merchant's internal identifier for a product. For example, "CS-987-BLACK".
The category of the product. For example, "Shoes" or "Electronics".
The brand of the product. For example, "Nike" or "Apple".
The variation of the product, such as color or size. For example, "Red" for a red shirt or "XL" for an extra-large shirt.
The price of the product as displayed to the user. It usually refers to the price after any discounts are applied.
The original price of a product, also known as list price or full price. It usually refers to the price before any discounts are applied.
The URL of the product page.
The URL of the product image.
The number of units of this item in the cart, as a positive integer.
The price of a single unit of this item.
The coupon code applied specifically to this item for a discount. For example, "SUMMER20".
Any discounts applied to this item, as an absolute value. For example, 10.00 for a $10 discount.
The total cost for this item, including any discounts and any other adjustment. It is usually the quantity multiplied by the price minus any discounts.