public static List <ShipMethodResponse> GetShipMethodsFromApi(GetShipMethodsRequest request) { var Api = Exigo.WebService(); var response = Api.GetShipMethods(request); var shippingMethods = response.ShipMethods.ToList(); shippingMethods.ForEach(s => { s.Price = s.ShippingAmount; s.ShipMethodDescription = s.Description; }); return(shippingMethods.ToList()); }
/// <remarks/> public void GetShipMethodsAsync(GetShipMethodsRequest GetShipMethodsRequest) { this.GetShipMethodsAsync(GetShipMethodsRequest, null); }
/// <remarks/> public void GetShipMethodsAsync(GetShipMethodsRequest GetShipMethodsRequest, object userState) { if ((this.GetShipMethodsOperationCompleted == null)) { this.GetShipMethodsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetShipMethodsOperationCompleted); } this.InvokeAsync("GetShipMethods", new object[] { GetShipMethodsRequest}, this.GetShipMethodsOperationCompleted, userState); }
private List <ShipMethodResponse> GetShipMethodsFromApi(GetShipMethodsRequest request) { var response = Api.GetShipMethods(request); return(response.ShipMethods.ToList()); }