public override int GetHashCode() { int hash = 1; if (id_ != null) { hash ^= Id.GetHashCode(); } if (MaskedPan.Length != 0) { hash ^= MaskedPan.GetHashCode(); } if (expirationDate_ != null) { hash ^= ExpirationDate.GetHashCode(); } if (CardHolderName.Length != 0) { hash ^= CardHolderName.GetHashCode(); } if (Brand != 0) { hash ^= Brand.GetHashCode(); } if (IsVirtualCard != false) { hash ^= IsVirtualCard.GetHashCode(); } if (virtualCardUnusedBalance_ != null) { hash ^= VirtualCardUnusedBalance.GetHashCode(); } if (virtualCardAvailableOn_ != null) { hash ^= VirtualCardAvailableOn.GetHashCode(); } if (virtualCardExpiresOn_ != null) { hash ^= VirtualCardExpiresOn.GetHashCode(); } if (CardType != 0) { hash ^= CardType.GetHashCode(); } return(hash); }
public void MergeFrom(CustomerPaymentCard other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null) { id_ = new global::HOLMS.Types.Money.Cards.CustomerPaymentCardIndicator(); } Id.MergeFrom(other.Id); } if (other.MaskedPan.Length != 0) { MaskedPan = other.MaskedPan; } if (other.expirationDate_ != null) { if (expirationDate_ == null) { expirationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } ExpirationDate.MergeFrom(other.ExpirationDate); } if (other.CardHolderName.Length != 0) { CardHolderName = other.CardHolderName; } if (other.Brand != 0) { Brand = other.Brand; } if (other.IsVirtualCard != false) { IsVirtualCard = other.IsVirtualCard; } if (other.virtualCardUnusedBalance_ != null) { if (virtualCardUnusedBalance_ == null) { virtualCardUnusedBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } VirtualCardUnusedBalance.MergeFrom(other.VirtualCardUnusedBalance); } if (other.virtualCardAvailableOn_ != null) { if (virtualCardAvailableOn_ == null) { virtualCardAvailableOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardAvailableOn.MergeFrom(other.VirtualCardAvailableOn); } if (other.virtualCardExpiresOn_ != null) { if (virtualCardExpiresOn_ == null) { virtualCardExpiresOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardExpiresOn.MergeFrom(other.VirtualCardExpiresOn); } if (other.CardType != 0) { CardType = other.CardType; } }