public void MergeFrom(NotPresentPaymentCard other) { if (other == null) { return; } if (other.CardNumber.Length != 0) { CardNumber = other.CardNumber; } if (other.Cvc.Length != 0) { Cvc = other.Cvc; } if (other.ExpiryMonth != 0) { ExpiryMonth = other.ExpiryMonth; } if (other.FourDigitExpiryYear != 0) { FourDigitExpiryYear = other.FourDigitExpiryYear; } if (other.Zipcode.Length != 0) { Zipcode = other.Zipcode; } if (other.CardholderName.Length != 0) { CardholderName = other.CardholderName; } if (other.IsVirtualCard != false) { IsVirtualCard = other.IsVirtualCard; } if (other.virtualCardLimit_ != null) { if (virtualCardLimit_ == null) { virtualCardLimit_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } VirtualCardLimit.MergeFrom(other.VirtualCardLimit); } if (other.virtualCardAvailableOn_ != null) { if (virtualCardAvailableOn_ == null) { virtualCardAvailableOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardAvailableOn.MergeFrom(other.VirtualCardAvailableOn); } if (other.virtualCardExpiresOn_ != null) { if (virtualCardExpiresOn_ == null) { virtualCardExpiresOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardExpiresOn.MergeFrom(other.VirtualCardExpiresOn); } }
public void MergeFrom(GuestPaymentCard other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null) { id_ = new global::HOLMS.Types.Money.Cards.GuestPaymentCardIndicator(); } Id.MergeFrom(other.Id); } if (other.MaskedPan.Length != 0) { MaskedPan = other.MaskedPan; } if (other.expirationDate_ != null) { if (expirationDate_ == null) { expirationDate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } ExpirationDate.MergeFrom(other.ExpirationDate); } if (other.CardHolderName.Length != 0) { CardHolderName = other.CardHolderName; } if (other.Brand != 0) { Brand = other.Brand; } if (other.IsVirtualCard != false) { IsVirtualCard = other.IsVirtualCard; } if (other.virtualCardUnusedBalance_ != null) { if (virtualCardUnusedBalance_ == null) { virtualCardUnusedBalance_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } VirtualCardUnusedBalance.MergeFrom(other.VirtualCardUnusedBalance); } if (other.virtualCardAvailableOn_ != null) { if (virtualCardAvailableOn_ == null) { virtualCardAvailableOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardAvailableOn.MergeFrom(other.VirtualCardAvailableOn); } if (other.virtualCardExpiresOn_ != null) { if (virtualCardExpiresOn_ == null) { virtualCardExpiresOn_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } VirtualCardExpiresOn.MergeFrom(other.VirtualCardExpiresOn); } }