コード例 #1
0
        public virtual RecurringCharge UpdateRecurringCharge(string id, RecurringChargeOptions options)
        {
            var url      = string.Format("{0}/{1}", Urls.RecurringCharges, id);
            var response = Requestor.PutJson(url, ParameterBuilder.BuildJsonPostParameters(options), SecretKey);

            return(Mapper <RecurringCharge> .MapFromJson(response));
        }
コード例 #2
0
        public virtual RecurringCharge RecurringCharge(RecurringChargeOptions options)
        {
            var response = Requestor.PostJson(
                Urls.RecurringCharges,
                ParameterBuilder.BuildJsonPostParameters(options), SecretKey);

            return(Mapper <RecurringCharge> .MapFromJson(response));
        }