/// <summary>
 /// Updates a Discount Code.
 /// </summary>
 /// <param name="discountCode">DiscountCode</param>
 /// <param name="action">The update action to be performed on the discount code.</param>
 /// <returns>DiscountCode</returns>
 /// <see href="https://dev.commercetools.com/http-api-projects-discountCodes.html#update-discountcode"/>
 public Task <Response <DiscountCode> > UpdateDiscountCodeAsync(DiscountCode discountCode, UpdateAction action)
 {
     return(UpdateDiscountCodeAsync(discountCode.Id, discountCode.Version, new List <UpdateAction> {
         action
     }));
 }
 /// <summary>
 /// Updates a Discount Code.
 /// </summary>
 /// <param name="discountCode">DiscountCode</param>
 /// <param name="actions">The list of update actions to be performed on the cart discount.</param>
 /// <returns>DiscountCode</returns>
 /// <see href="https://dev.commercetools.com/http-api-projects-discountCodes.html#update-discountcode"/>
 public Task <Response <DiscountCode> > UpdateDiscountCodeAsync(DiscountCode discountCode, List <UpdateAction> actions)
 {
     return(UpdateDiscountCodeAsync(discountCode.Id, discountCode.Version, actions));
 }
 /// <summary>
 /// Removes a Discount Code.
 /// </summary>
 /// <param name="discountCode">DiscountCode</param>
 /// <returns>DiscountCode</returns>
 /// <see href="https://dev.commercetools.com/http-api-projects-discountCodes.html#delete-discountcode"/>
 public Task <Response <DiscountCode> > DeleteDiscountCodeAsync(DiscountCode discountCode)
 {
     return(DeleteDiscountCodeAsync(discountCode.Id, discountCode.Version));
 }