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 void MergeFrom(ClosedMerchantBatch other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.ClosedMerchantBatchIndicator(); } 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.MerchantName.Length != 0) { MerchantName = other.MerchantName; } if (other.Result != 0) { Result = other.Result; } if (other.ProcessorBatchId != 0) { ProcessorBatchId = other.ProcessorBatchId; } if (other.TransactionCount != 0) { TransactionCount = other.TransactionCount; } if (other.totalAmount_ != null) { if (totalAmount_ == null) { totalAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } TotalAmount.MergeFrom(other.TotalAmount); } if (other.createdAt_ != null) { if (createdAt_ == null) { createdAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } captures_.Add(other.captures_); refunds_.Add(other.refunds_); }
public void MergeFrom(CardTerminal other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.CardTerminalIndicator(); } 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.stationId_ != null) { if (stationId_ == null) { stationId_ = new global::HOLMS.Types.IAM.ClientInstance(); } StationId.MergeFrom(other.StationId); } if (other.Name.Length != 0) { Name = other.Name; } if (other.IpAddress.Length != 0) { IpAddress = other.IpAddress; } if (other.Port != 0) { Port = other.Port; } }
public void MergeFrom(PaymentCardSale other) { if (other == null) { return; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } 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.paymentCard_ != null) { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } PaymentCard.MergeFrom(other.PaymentCard); } if (other.authorizedAmount_ != null) { if (authorizedAmount_ == null) { authorizedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } AuthorizedAmount.MergeFrom(other.AuthorizedAmount); } 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.EntryMethod != 0) { EntryMethod = other.EntryMethod; } if (other.authorization_ != null) { if (authorization_ == null) { authorization_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardAuthorization(); } Authorization.MergeFrom(other.Authorization); } if (other.State != 0) { State = other.State; } increases_.Add(other.increases_); reversals_.Add(other.reversals_); captures_.Add(other.captures_); voids_.Add(other.voids_); }
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; } }