/// <summary> /// To check, does the order log contain the order matching. /// </summary> /// <param name="item">Order log item.</param> /// <returns><see langword="true" />, if the order log contains order matching, otherwise, <see langword="false" />.</returns> public static bool IsMatched(this OrderLogItem item) { return(item.ToMessage().IsOrderLogMatched()); }
/// <summary> /// To check, does the order log contain the order registration. /// </summary> /// <param name="item">Order log item.</param> /// <returns><see langword="true" />, if the order log contains the order registration, otherwise, <see langword="false" />.</returns> public static bool IsRegistered(this OrderLogItem item) { return(item.ToMessage().IsOrderLogRegistered()); }
/// <summary> /// To check, does the order log contain the cancelled order. /// </summary> /// <param name="item">Order log item.</param> /// <returns><see langword="true" />, if the order log contain the cancelled order, otherwise, <see langword="false" />.</returns> public static bool IsCanceled(this OrderLogItem item) { return(item.ToMessage().IsOrderLogCanceled()); }
/// <summary> /// To get the reason for cancelling order in orders log. /// </summary> /// <param name="item">Order log item.</param> /// <returns>The reason for order cancelling in order log.</returns> public static OrderLogCancelReasons GetCancelReason(this OrderLogItem item) { return(item.ToMessage().GetOrderLogCancelReason()); }