Пример #1
0
        public virtual Task <Discount> UpdateDiscountAsync(string discountId, DiscountOptions options)
        {
            var url = string.Format(Urls.Discount, discountId);

            return(_httpClient.PutObject <Discount>(url, options));
        }
Пример #2
0
 public virtual Task <Discount> PostDiscountAsync(DiscountOptions options)
 {
     return(_httpClient.PostObject <Discount>(Urls.Discounts, options));
 }