/// <summary> /// Method for comparing one coupon to another /// </summary> public int CompareTo(Coupon other) { return(AmountInCents.CompareTo(other.AmountInCents)); }
/// <summary> /// Method for comparing this Refund object to another (using AmountInCents) /// </summary> /// <param name="other">The other Refund object to compare against.</param> /// <returns>The result of the comparison</returns> public int CompareTo(Refund other) { return(AmountInCents.CompareTo(other.AmountInCents)); }
/// <summary> /// Compare this credit to another /// </summary> public int CompareTo(Credit other) { return(AmountInCents.CompareTo(other.AmountInCents)); }
/// <summary> /// Compare this instance to another (by AmountInCents) /// </summary> /// <param name="other">The other instance</param> /// <returns>The result of the comparison</returns> public int CompareTo(Charge other) { return(AmountInCents.CompareTo(other.AmountInCents)); }