public void MergeFrom(PaymentCardAuthorization other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorizationIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.authorizationAmount_ != null) { if (authorizationAmount_ == null) { authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AuthorizationAmount.MergeFrom(other.AuthorizationAmount); } if (other.Result != 0) { Result = other.Result; } if (other.EntryMethod != 0) { EntryMethod = other.EntryMethod; } if (other.HostReferenceNumber.Length != 0) { HostReferenceNumber = other.HostReferenceNumber; } if (other.ApprovalCode.Length != 0) { ApprovalCode = other.ApprovalCode; } if (other.ApplicationLabel.Length != 0) { ApplicationLabel = other.ApplicationLabel; } if (other.ApplicationCrypto.Length != 0) { ApplicationCrypto = other.ApplicationCrypto; } if (other.AID.Length != 0) { AID = other.AID; } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (merchantId_ != null) { hash ^= MerchantId.GetHashCode(); } if (capturedAmount_ != null) { hash ^= CapturedAmount.GetHashCode(); } if (HostReferenceNumber.Length != 0) { hash ^= HostReferenceNumber.GetHashCode(); } if (FolioBookingNumber.Length != 0) { hash ^= FolioBookingNumber.GetHashCode(); } if (paymentCard_ != null) { hash ^= PaymentCard.GetHashCode(); } if (AuthorizationApprovalCode.Length != 0) { hash ^= AuthorizationApprovalCode.GetHashCode(); } if (AuthorizationHostReferenceNumber.Length != 0) { hash ^= AuthorizationHostReferenceNumber.GetHashCode(); } if (authorizationAmount_ != null) { hash ^= AuthorizationAmount.GetHashCode(); } if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } if (sale_ != null) { hash ^= Sale.GetHashCode(); } if (SaleState != 0) { hash ^= SaleState.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (authorizationAmount_ != null) { hash ^= AuthorizationAmount.GetHashCode(); } if (Result != 0) { hash ^= Result.GetHashCode(); } if (EntryMethod != 0) { hash ^= EntryMethod.GetHashCode(); } if (HostReferenceNumber.Length != 0) { hash ^= HostReferenceNumber.GetHashCode(); } if (ApprovalCode.Length != 0) { hash ^= ApprovalCode.GetHashCode(); } if (ApplicationLabel.Length != 0) { hash ^= ApplicationLabel.GetHashCode(); } if (ApplicationCrypto.Length != 0) { hash ^= ApplicationCrypto.GetHashCode(); } if (AID.Length != 0) { hash ^= AID.GetHashCode(); } if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } return(hash); }
public void MergeFrom(PaymentCardSaleCapture other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleCaptureIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.merchantId_ != null) { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } MerchantId.MergeFrom(other.MerchantId); } if (other.capturedAmount_ != null) { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } CapturedAmount.MergeFrom(other.CapturedAmount); } if (other.HostReferenceNumber.Length != 0) { HostReferenceNumber = other.HostReferenceNumber; } if (other.FolioBookingNumber.Length != 0) { FolioBookingNumber = other.FolioBookingNumber; } if (other.paymentCard_ != null) { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } PaymentCard.MergeFrom(other.PaymentCard); } if (other.AuthorizationApprovalCode.Length != 0) { AuthorizationApprovalCode = other.AuthorizationApprovalCode; } if (other.AuthorizationHostReferenceNumber.Length != 0) { AuthorizationHostReferenceNumber = other.AuthorizationHostReferenceNumber; } if (other.authorizationAmount_ != null) { if (authorizationAmount_ == null) { authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AuthorizationAmount.MergeFrom(other.AuthorizationAmount); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.SaleState != 0) { SaleState = other.SaleState; } }