public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleCaptureIndicator(); } input.ReadMessage(entityId_); break; } case 18: { if (merchantId_ == null) { merchantId_ = new global::HOLMS.Types.Money.Cards.CardMerchantIndicator(); } input.ReadMessage(merchantId_); break; } case 26: { if (capturedAmount_ == null) { capturedAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(capturedAmount_); break; } case 42: { HostReferenceNumber = input.ReadString(); break; } case 50: { FolioBookingNumber = input.ReadString(); break; } case 58: { if (paymentCard_ == null) { paymentCard_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCard(); } input.ReadMessage(paymentCard_); break; } case 66: { AuthorizationApprovalCode = input.ReadString(); break; } case 74: { AuthorizationHostReferenceNumber = input.ReadString(); break; } case 82: { if (authorizationAmount_ == null) { authorizationAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } input.ReadMessage(authorizationAmount_); break; } case 90: { if (postedAt_ == null) { postedAt_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(postedAt_); break; } case 98: { if (sale_ == null) { sale_ = new global::HOLMS.Types.Money.Cards.Transactions.PaymentCardSaleIndicator(); } input.ReadMessage(sale_); break; } case 104: { saleState_ = (global::HOLMS.Types.Money.Cards.Transactions.CardSaleState)input.ReadEnum(); break; } } } }
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; } }