Ejemplo n.º 1
0
 /// <summary>
 /// Method for comparing one coupon to another
 /// </summary>
 public int CompareTo(Coupon other)
 {
     return(AmountInCents.CompareTo(other.AmountInCents));
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Compare this credit to another
 /// </summary>
 public int CompareTo(Credit other)
 {
     return(AmountInCents.CompareTo(other.AmountInCents));
 }
Ejemplo n.º 4
0
 /// <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));
 }