public void CopyTo(PricingInfo newObject) { base.CopyTo(newObject); newObject.IgnoreRepricingSettings = IgnoreRepricingSettings; newObject.PriceSpecifiedPassTypesOnly = PriceSpecifiedPassTypesOnly; newObject.DoNotSendVCInRequest = DoNotSendVCInRequest; newObject.RefererID = RefererID; newObject.ThreeDomainAgreementNumber = ThreeDomainAgreementNumber; newObject.IsMixerDisabled = IsMixerDisabled; if (RequestorTags != null) { newObject.RequestorTags = new TagList(RequestorTags.ToList()); } }
public AdditionalOperationsParameters DeepCopy() { var result = new AdditionalOperationsParameters(); result.CheckAvailabilityWithBookingRequest = CheckAvailabilityWithBookingRequest; result.UpdateCachedFareRules = UpdateCachedFareRules; result.ListFaresIfNoFamiliesDifined = ListFaresIfNoFamiliesDifined; result.Language = Language; if (PricingInfo != null) { result.PricingInfo = new PricingInfo(); PricingInfo.CopyTo(result.PricingInfo); } if (SelectedAncillaryServices != null) { result.SelectedAncillaryServices = new SelectedAncillaryServicesList(SelectedAncillaryServices.Select(svc => svc.DeepCopy())); } return(result); }