Exemplo n.º 1
0
 /// <summary>
 /// Updates a shipping method.
 /// </summary>
 /// <param name="shippingMethod">Shipping method</param>
 /// <param name="actions">The list of update actions to apply to the shipping method.</param>
 /// <returns>ShippingMethod</returns>
 /// <see href="http://dev.commercetools.com/http-api-projects-shippingMethods.html#update-shippingmethod"/>
 public Task <Response <ShippingMethod> > UpdateShippingMethodAsync(ShippingMethod shippingMethod, List <UpdateAction> actions)
 {
     return(UpdateShippingMethodAsync(shippingMethod.Id, shippingMethod.Version, actions));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes a shipping method.
 /// </summary>
 /// <param name="shippingMethod">Shipping method</param>
 /// <returns>ShippingMethod</returns>
 /// <see href="http://dev.commercetools.com/http-api-projects-shippingMethods.html#delete-shippingmethod"/>
 public Task <Response <ShippingMethod> > DeleteShippingMethodAsync(ShippingMethod shippingMethod)
 {
     return(DeleteShippingMethodAsync(shippingMethod.Id, shippingMethod.Version));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Updates a shipping method.
 /// </summary>
 /// <param name="shippingMethod">Shipping method</param>
 /// <param name="action">The update action to apply to the shipping method.</param>
 /// <returns>ShippingMethod</returns>
 /// <see href="http://dev.commercetools.com/http-api-projects-shippingMethods.html#update-shippingmethod"/>
 public Task <Response <ShippingMethod> > UpdateShippingMethodAsync(ShippingMethod shippingMethod, UpdateAction action)
 {
     return(UpdateShippingMethodAsync(shippingMethod.Id, shippingMethod.Version, new List <UpdateAction> {
         action
     }));
 }