/// <summary> /// Add a special service to the SpecialServices IEnumerable /// </summary> /// <param name="s"></param> /// <returns></returns> virtual public ISpecialServices AddSpecialservices(ISpecialServices s) { return(ModelHelper.AddToEnumerable <ISpecialServices, SpecialServices>(s, () => SpecialServices, (x) => SpecialServices = x)); }
/// <summary> /// Add a page to existing list of pages. /// </summary> /// <param name="s"></param> virtual public void AddPage(IPage s) { ModelHelper.AddToEnumerable <IPage, Page>(s, () => Pages, (x) => Pages = x); }
/// <summary> /// Add a pickup count object to the PickupSummary IEnumerable /// </summary> /// <param name="p"></param> public void AddPickupCount(IPickupCount p) { ModelHelper.AddToEnumerable <IPickupCount, IPickupCount>(p, () => PickupSummary, (x) => PickupSummary = x); }
/// <summary> /// Add a surcharge /// </summary> /// <param name="surcharge"></param> public void AddSurcharge(ICarrierSurcharge surcharge) { ModelHelper.AddToEnumerable <ICarrierSurcharge, CarrierSurcharge>(surcharge, () => Surcharges, (x) => Surcharges = x); }
/// <summary> /// Add a doc tab. /// </summary> /// <param name="d"></param> /// <returns></returns> public IDocTab AddDocTab(IDocTab d) { return(ModelHelper.AddToEnumerable <IDocTab, DocTab>(d, () => DocTab, (x) => DocTab = x)); }
/// <summary> /// Adds the parcel tracking number to the end of the ParcelTrackingNumbersList /// </summary> /// <param name="t">T.</param> public void AddParcelTrackingNumber(string t) { ModelHelper.AddToEnumerable <string, string>(t, () => ParcelTrackingNumbers, (v) => ParcelTrackingNumbers = v); }
/// <summary> /// Method to allow clients of SpecialServices to add a parameter without knowing the implementation of the InputParameter /// collection. /// </summary> /// <param name="p"></param> virtual public void AddParameter(IParameter p) { ModelHelper.AddToEnumerable <IParameter, Parameter>(p, () => InputParameters, (x) => InputParameters = x); }
/// <summary> /// Adds the parameter to the end of the Parameters list. /// </summary> /// <returns>The parameter.</returns> /// <param name="p">P.</param> public IParameter AddParameter(IParameter p) { return(ModelHelper.AddToEnumerable <IParameter, Parameter>(p, () => Parameters, (v) => Parameters = v)); }
/// <summary> /// Adds the document to the end of the document list. Unless you are doing something exotic, dont call this. /// </summary> /// <returns>The document.</returns> /// <param name="d">D.</param> virtual public IDocument AddDocument(IDocument d) { return(ModelHelper.AddToEnumerable <IDocument, Document>(d, () => Documents, (v) => Documents = v)); }
/// <summary> /// Add an item to the Customs items enumerable. /// </summary> /// <param name="c"></param> /// <returns></returns> virtual public ICustomsItems AddCustomsItems(ICustomsItems c) { return(ModelHelper.AddToEnumerable <ICustomsItems, CustomsItems>(c, () => CustomsItems, (x) => CustomsItems = x)); }
/// <summary> /// Add option to the ShipmentOptions IEnumerable /// </summary> /// <param name="s"></param> /// <returns></returns> virtual public IShipmentOptions AddShipmentOptions(IShipmentOptions s) { return(ModelHelper.AddToEnumerable <IShipmentOptions, ShipmentOptions>(s, () => ShipmentOptions, (x) => ShipmentOptions = x)); }
/// <summary> /// Add Rates object to the Rates IEnumerable /// </summary> /// <param name="r"></param> /// <returns></returns> virtual public IRates AddRates(IRates r) { return(ModelHelper.AddToEnumerable <IRates, Rates>(r, () => Rates, (x) => Rates = x)); }