Department name of the customer. Represents the organizational department the customer belongs to.
if (CheckoutItem.Customer.DepartmentName === "Procurement") {
console("Procurement department checkout - apply bulk pricing");
}
Customer's email address.
console("Customer email: " + CheckoutItem.Customer.Email);
if (CheckoutItem.Customer.Email.endsWith(".edu")) {
console("Educational customer - apply academic pricing");
}
Customer's first name.
console("Customer first name: " + CheckoutItem.Customer.FirstName);
Customer's last name.
console("Customer last name: " + CheckoutItem.Customer.LastName);
Array of customer role system names. Contains all roles assigned to the customer for role-based pricing logic.
console("Customer roles: " + CheckoutItem.Customer.Roles.join(", "));
if (CheckoutItem.Customer.Roles.includes("VIP")) {
console("VIP customer checkout");
}
Generated using TypeDoc
Represents customer information during checkout. Provides access to customer details that are relevant during the checkout process including personal information, roles, and organizational details.