/// <summary> /// Initializes the specified renderings. /// </summary> /// <param name="renderings">The renderings.</param> /// <param name="confirmationId">The confirmation identifier.</param> /// <param name="order">The order.</param> public void Initialize(Rendering renderings, string confirmationId, CommerceOrder order) { base.Initialize(renderings); this.ConfirmationId = confirmationId; this.OrderStatus = StorefrontManager.GetOrderStatusName(order.Status); }
/// <summary> /// Initializes a new instance of the <see cref="OrderHeaderItemBaseJsonResult"/> class. /// </summary> /// <param name="header">The order header.</param> public OrderHeaderItemBaseJsonResult(OrderHeader header) { this.ExternalId = header.ExternalId; this.Status = StorefrontManager.GetOrderStatusName(header.Status); this.LastModified = ((CommerceOrderHeader)header).LastModified.ToDisplayedDate(); this.DetailsUrl = string.Concat(StorefrontManager.StorefrontUri("/accountmanagement/myorder"), "?id=", header.ExternalId); this.OrderId = header.ExternalId; }