public RecurlyList <CouponRedemption> GetRedemptions()
        {
            var coupons    = new CouponRedemptionList();
            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                                                            UrlPrefix + Uri.EscapeUriString(Uuid) + "/redemptions/",
                                                            coupons.ReadXmlList);

            return(statusCode == HttpStatusCode.NotFound ? null : coupons);
        }
Пример #2
0
        public RecurlyList <CouponRedemption> GetRedemptions()
        {
            var coupons    = new CouponRedemptionList();
            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                                                            memberUrl() + "/redemptions/",
                                                            coupons.ReadXmlList);

            return(statusCode == HttpStatusCode.NotFound ? null : coupons);
        }
Пример #3
0
        /// <summary>
        /// Returns all active coupon redemptions on this account
        /// </summary>
        /// <returns></returns>
        public RecurlyList <CouponRedemption> GetActiveRedemptions()
        {
            var redemptions = new CouponRedemptionList();

            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                                                            UrlPrefix + Uri.EscapeDataString(AccountCode) + "/redemptions",
                                                            redemptions.ReadXmlList);

            return(statusCode == HttpStatusCode.NotFound ? null : redemptions);
        }