public override int GetHashCode() { int hashCode = 801909259; if (IdempotencyKey != null) { hashCode += IdempotencyKey.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (PlanId != null) { hashCode += PlanId.GetHashCode(); } if (CustomerId != null) { hashCode += CustomerId.GetHashCode(); } if (StartDate != null) { hashCode += StartDate.GetHashCode(); } if (CanceledDate != null) { hashCode += CanceledDate.GetHashCode(); } if (TaxPercentage != null) { hashCode += TaxPercentage.GetHashCode(); } if (PriceOverrideMoney != null) { hashCode += PriceOverrideMoney.GetHashCode(); } if (CardId != null) { hashCode += CardId.GetHashCode(); } if (Timezone != null) { hashCode += Timezone.GetHashCode(); } return(hashCode); }
public override int GetHashCode() { unchecked { var hashCode = (Product != null ? Product.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Quantity.GetHashCode(); hashCode = (hashCode * 397) ^ Rate.GetHashCode(); hashCode = (hashCode * 397) ^ TaxPercentage.GetHashCode(); hashCode = (hashCode * 397) ^ DiscountPercentage.GetHashCode(); hashCode = (hashCode * 397) ^ Total.GetHashCode(); hashCode = (hashCode * 397) ^ Subtotal.GetHashCode(); hashCode = (hashCode * 397) ^ Tax.GetHashCode(); hashCode = (hashCode * 397) ^ LineIdx; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (InvoiceId != null ? InvoiceId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ InvoiceNumber; hashCode = (hashCode * 397) ^ (InvoiceNumberAsString != null ? InvoiceNumberAsString.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Total.GetHashCode(); hashCode = (hashCode * 397) ^ Subtotal.GetHashCode(); hashCode = (hashCode * 397) ^ Tax.GetHashCode(); hashCode = (hashCode * 397) ^ TaxPercentage.GetHashCode(); hashCode = (hashCode * 397) ^ InvoiceDate.GetHashCode(); hashCode = (hashCode * 397) ^ (ContractName != null ? ContractName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PeriodStartDate.GetHashCode(); hashCode = (hashCode * 397) ^ PeriodEndDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Currency != null ? Currency.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (From != null ? From.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (To != null ? To.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (LineItems?.Sum(x => x.GetHashCode()) ?? 0); return(hashCode); } }
public override int GetHashCode() { int hashCode = -1265150766; if (Id != null) { hashCode += Id.GetHashCode(); } if (LocationId != null) { hashCode += LocationId.GetHashCode(); } if (PlanId != null) { hashCode += PlanId.GetHashCode(); } if (CustomerId != null) { hashCode += CustomerId.GetHashCode(); } if (StartDate != null) { hashCode += StartDate.GetHashCode(); } if (CanceledDate != null) { hashCode += CanceledDate.GetHashCode(); } if (Status != null) { hashCode += Status.GetHashCode(); } if (TaxPercentage != null) { hashCode += TaxPercentage.GetHashCode(); } if (InvoiceIds != null) { hashCode += InvoiceIds.GetHashCode(); } if (PriceOverrideMoney != null) { hashCode += PriceOverrideMoney.GetHashCode(); } if (Version != null) { hashCode += Version.GetHashCode(); } if (CreatedAt != null) { hashCode += CreatedAt.GetHashCode(); } if (CardId != null) { hashCode += CardId.GetHashCode(); } if (PaidUntilDate != null) { hashCode += PaidUntilDate.GetHashCode(); } if (Timezone != null) { hashCode += Timezone.GetHashCode(); } return(hashCode); }