Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void GetShipMethodsAsync(GetShipMethodsRequest GetShipMethodsRequest) {
     this.GetShipMethodsAsync(GetShipMethodsRequest, null);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
        private List <ShipMethodResponse> GetShipMethodsFromApi(GetShipMethodsRequest request)
        {
            var response = Api.GetShipMethods(request);

            return(response.ShipMethods.ToList());
        }