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(FolioCardSale other) { if (other == null) { return; } if (other.sale_ != null) { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } Sale.MergeFrom(other.Sale); } if (other.card_ != null) { if (card_ == null) { card_ = new global::HOLMS.Types.Folio.FolioGuestPaymentCard(); } Card.MergeFrom(other.Card); } if (other.Purpose != 0) { Purpose = other.Purpose; } if (other.SaleState != 0) { SaleState = other.SaleState; } if (other.openAuthorized_ != null) { if (openAuthorized_ == null) { openAuthorized_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } OpenAuthorized.MergeFrom(other.OpenAuthorized); } if (other.captured_ != null) { if (captured_ == null) { captured_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } Captured.MergeFrom(other.Captured); } if (other.EntryMethod != 0) { EntryMethod = other.EntryMethod; } if (other.authorizedAt_ != null) { if (authorizedAt_ == null) { authorizedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } AuthorizedAt.MergeFrom(other.AuthorizedAt); } if (other.capturedAt_ != null) { if (capturedAt_ == null) { capturedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CapturedAt.MergeFrom(other.CapturedAt); } if (other.ApplicationLabel.Length != 0) { ApplicationLabel = other.ApplicationLabel; } if (other.AID.Length != 0) { AID = other.AID; } if (other.ApplicationCrypto.Length != 0) { ApplicationCrypto = other.ApplicationCrypto; } if (other.ApprovalCode.Length != 0) { ApprovalCode = other.ApprovalCode; } if (other.receivedBy_ != null) { if (receivedBy_ == null) { receivedBy_ = new global::HOLMS.Types.IAM.StaffMemberIndicator(); } ReceivedBy.MergeFrom(other.ReceivedBy); } if (other.finalAuthorizedAmount_ != null) { if (finalAuthorizedAmount_ == null) { finalAuthorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } FinalAuthorizedAmount.MergeFrom(other.FinalAuthorizedAmount); } }