Exemple #1
0
        public BaseResponse <ListDiscountsResponse> ListDiscounts(ListDiscountsRequest request)
        {
            var method   = HttpMethod.Get;
            var endpoint = $"/subscriptions/{request.SubscriptionId}/discounts/";
            var query    = request.ToDictionary();

            return(this.HttpClientUtil.SendRequest <ListDiscountsResponse>(method, endpoint, null, query));
        }
        public BaseResponse <PagingResponse <GetDiscountResponse>, MundipaggErrorsResponse> ListDiscounts(ListDiscountsRequest request)
        {
            var method   = HttpMethod.Get;
            var endpoint = $"/subscriptions/{request.SubscriptionId}/discounts/";
            var query    = request.ToDictionary();

            return(this.SendRequest <PagingResponse <GetDiscountResponse> >(method, endpoint, null, query));
        }