public override int GetHashCode() { int hash = 1; if (card_ != null) { hash ^= Card.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (amount_ != null) { hash ^= Amount.GetHashCode(); } if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } if (receivedBy_ != null) { hash ^= ReceivedBy.GetHashCode(); } if (refund_ != null) { hash ^= Refund.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } if (amount_ != null) { hash ^= Amount.GetHashCode(); } if (Narration.Length != 0) { hash ^= Narration.GetHashCode(); } if (PaymentType != 0) { hash ^= PaymentType.GetHashCode(); } if (IsCancellable != false) { hash ^= IsCancellable.GetHashCode(); } if (sale_ != null) { hash ^= Sale.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (amount_ != null) { hash ^= Amount.GetHashCode(); } if (IsCanceled != false) { hash ^= IsCanceled.GetHashCode(); } if (PaymentType != 0) { hash ^= PaymentType.GetHashCode(); } if (receivedBy_ != null) { hash ^= ReceivedBy.GetHashCode(); } if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } return(hash); }
public void MergeFrom(PaymentCardRefund other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } 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.refundedAmount_ != null) { if (refundedAmount_ == null) { refundedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } RefundedAmount.MergeFrom(other.RefundedAmount); } 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.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.State != 0) { State = other.State; } }
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 void MergeFrom(FolioCardRefund other) { if (other == null) { return; } if (other.card_ != null) { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } Card.MergeFrom(other.Card); } if (other.State != 0) { State = other.State; } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.receivedBy_ != null) { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } ReceivedBy.MergeFrom(other.ReceivedBy); } if (other.refund_ != null) { if (refund_ == null) { refund_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardRefundIndicator(); } Refund.MergeFrom(other.Refund); } }
public void MergeFrom(FolioCheckCashPayment other) { if (other == null) { return; } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.IsCanceled != false) { IsCanceled = other.IsCanceled; } if (other.PaymentType != 0) { PaymentType = other.PaymentType; } if (other.receivedBy_ != null) { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } ReceivedBy.MergeFrom(other.ReceivedBy); } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Folio.FolioCheckCashPaymentIndicator(); } EntityId.MergeFrom(other.EntityId); } }
public void MergeFrom(PostedPayment other) { if (other == null) { return; } if (other.postedAt_ != null) { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PostedAt.MergeFrom(other.PostedAt); } if (other.amount_ != null) { if (amount_ == null) { amount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Amount.MergeFrom(other.Amount); } if (other.Narration.Length != 0) { Narration = other.Narration; } if (other.PaymentType != 0) { PaymentType = other.PaymentType; } if (other.IsCancellable != false) { IsCancellable = other.IsCancellable; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } }
public override int GetHashCode() { int hash = 1; if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (merchantId_ != null) { hash ^= MerchantId.GetHashCode(); } if (refundedAmount_ != null) { hash ^= RefundedAmount.GetHashCode(); } if (HostReferenceNumber.Length != 0) { hash ^= HostReferenceNumber.GetHashCode(); } if (FolioBookingNumber.Length != 0) { hash ^= FolioBookingNumber.GetHashCode(); } if (paymentCard_ != null) { hash ^= PaymentCard.GetHashCode(); } if (postedAt_ != null) { hash ^= PostedAt.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } return(hash); }
protected bool Equals(PullRequestComment other) { return(PullRequestId == other.PullRequestId && CommentId == other.CommentId && PostedAt.Equals(other.PostedAt) && Author == other.Author && Text == other.Text); }
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; } }