Ejemplo n.º 1
0
 public async Task <BringShipmentResponse> GetShipmentPrices(BringShipmentRequest request) => await GetResponse("price.json", request);
Ejemplo n.º 2
0
 public async Task <BringShipmentResponse> GetAllShipmentInfo(BringShipmentRequest request) => await GetResponse("all.json", request);
Ejemplo n.º 3
0
        private static async Task <BringShipmentResponse> GetResponse(string relativeUrl, BringShipmentRequest request)
        {
            var response = await ApiHelper.GetAsync(ShippingGuideBaseUrl + relativeUrl, request);

            return(JsonConvert.DeserializeObject <BringShipmentResponse>(response));
        }
Ejemplo n.º 4
0
 public async Task <BringShipmentResponse> GetEstimatedDeliveryTime(BringShipmentRequest request) => await GetResponse("expectedDelivery.json", request);