/// <summary> /// If false, the object underlying the interface is not valid. If true, the object may or may not be valid. /// </summary> /// <param name="customs"></param> /// <returns></returns> public static bool IsValid(this ICustoms customs) { if (!customs.CustomsInfo.IsValid()) { return(false); } if (customs.CustomsItems == null) { return(true); } int count = 0; foreach (var i in customs.CustomsItems) { count++; if (!i.IsValid()) { return(false); } } return(count <= 30); }
/// <summary> /// ONLY FOR: international, APO/FPO/DPO, territories/possessions, and FAS shipments. Customs related information. /// </summary> /// <param name="c"></param> /// <returns></returns> public ShipmentFluent <T> Customs(ICustoms c) { _shipment.Customs = c; return(this); }