public virtual StripeDeleted Delete(string customerId, string bankAccountId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(null, $"{Urls.BaseUrl}/customers/{customerId}/sources/{bankAccountId}"),
                    this.SetupRequestOptions(requestOptions))));
 }
예제 #2
0
 public virtual StripeDeleted DeleteEntity(string url, StripeRequestOptions requestOptions, StripeBaseOptions options = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(options, url),
                    this.SetupRequestOptions(requestOptions))));
 }
예제 #3
0
 public virtual void Delete(string customerId, string bankAccountId, StripeRequestOptions requestOptions = null)
 {
     Requestor.Delete(
         this.ApplyAllParameters(null, $"{Urls.BaseUrl}/customers/{customerId}/sources/{bankAccountId}"),
         SetupRequestOptions(requestOptions)
         );
 }
예제 #4
0
        public virtual StripeDeleted Delete(string customerOrRecipientId, string cardId, bool isRecipient = false, StripeRequestOptions requestOptions = null)
        {
            var url = this.SetupUrl(customerOrRecipientId, isRecipient, cardId);

            return(Mapper <StripeDeleted> .MapFromJson(
                       Requestor.Delete(url, this.SetupRequestOptions(requestOptions))));
        }
예제 #5
0
        public virtual void Delete(string customerId, string cardId)
        {
            var customerUrl = string.Format(Urls.Cards, customerId);
            var url         = string.Format("{0}/{1}", customerUrl, cardId);

            Requestor.Delete(url, ApiKey);
        }
예제 #6
0
 public virtual StripeDeleted Delete(string customerId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(
                    $"{Urls.Customers}/{WebUtility.UrlEncode(customerId)}",
                    this.SetupRequestOptions(requestOptions))));
 }
 public virtual StripeSubscription Cancel(string subscriptionId, StripeSubscriptionCancelOptions cancelOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeSubscription> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(cancelOptions, $"{Urls.Subscriptions}/{WebUtility.UrlEncode(subscriptionId)}", false),
                    this.SetupRequestOptions(requestOptions))));
 }
 public virtual StripeDeleted Delete(string planId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete($"{Urls.Plans}/{WebUtility.UrlEncode(planId)}",
                                 SetupRequestOptions(requestOptions))
                ));
 }
 public virtual StripeDeleted Delete(string accountId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(this.ApplyAllParameters(null, $"{Urls.BaseUrl}/accounts/{accountId}", false),
                                 SetupRequestOptions(requestOptions))
                ));
 }
예제 #10
0
 public virtual StripeDeleted Delete(string recipientId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete($"{Urls.Recipients}/{recipientId}",
                                 SetupRequestOptions(requestOptions))
                ));
 }
예제 #11
0
        public virtual StripeSource Detach(string customerId, string sourceId, StripeRequestOptions requestOptions = null)
        {
            var url = $"{Urls.BaseUrl}/customers/{customerId}/sources/{sourceId}";

            return(Mapper <StripeSource> .MapFromJson(
                       Requestor.Delete(url, this.SetupRequestOptions(requestOptions))));
        }
예제 #12
0
 protected T DeleteRequest <T>(string url, BaseOptions options, RequestOptions requestOptions)
 {
     return(Mapper <T> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(options, url),
                    this.SetupRequestOptions(requestOptions))));
 }
예제 #13
0
 public virtual StripeDeleted Delete(string couponId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete(
                    this.ApplyAllParameters(null, $"{Urls.Coupons}/{WebUtility.UrlEncode(couponId)}", false),
                    this.SetupRequestOptions(requestOptions))));
 }
 public virtual StripeDeleted Delete(string invoiceItemId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete($"{Urls.InvoiceItems}/{invoiceItemId}",
                                 SetupRequestOptions(requestOptions))
                ));
 }
예제 #15
0
 public virtual StripeDeleted Delete(string customerId, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeDeleted> .MapFromJson(
                Requestor.Delete($"{Urls.Customers}/{customerId}",
                                 SetupRequestOptions(requestOptions))
                ));
 }
예제 #16
0
        public virtual void Delete(string customerId, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.Customers, customerId);

            Requestor.Delete(url, requestOptions);
        }
        public virtual void DeleteDiscount(string customerId, string subscriptionId, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format(Urls.Subscriptions + "/{1}/discount", customerId, subscriptionId);

            Requestor.Delete(url, requestOptions);
        }
예제 #18
0
        public virtual void Delete(string customerOrRecipientId, string cardId, bool isRecipient = false, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = SetupUrl(customerOrRecipientId, isRecipient, cardId);

            Requestor.Delete(url, requestOptions);
        }
예제 #19
0
        public virtual void Delete(string couponId)
        {
            var url = string.Format("{0}/{1}", Urls.Coupons, couponId);

            url = this.ApplyAllParameters(null, url, false);

            Requestor.Delete(url, ApiKey);
        }
예제 #20
0
        public virtual void Delete(string recipientId, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);

            Requestor.Delete(url, requestOptions);
        }
예제 #21
0
        public virtual void Delete(string invoiceItemId, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.InvoiceItems, invoiceItemId);

            Requestor.Delete(url, requestOptions);
        }
예제 #22
0
        public virtual StripeSubscription Cancel(string subscriptionId, bool cancelAtPeriodEnd = false, StripeRequestOptions requestOptions = null)
        {
            var url = string.Format(Urls.Subscriptions + "/{0}", subscriptionId);

            url = ParameterBuilder.ApplyParameterToUrl(url, "at_period_end", cancelAtPeriodEnd.ToString());

            return(Mapper <StripeSubscription> .MapFromJson(
                       Requestor.Delete(url, this.SetupRequestOptions(requestOptions))));
        }
        public virtual void Delete(string couponId, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = string.Format("{0}/{1}", Urls.Coupons, couponId);

            url = this.ApplyAllParameters(null, url, false);

            Requestor.Delete(url, requestOptions);
        }
        public StripeSubscriptionItem Delete(string subscriptionItemId, StripeSubscriptionItemDeleteOptions deleteOptions = null, StripeRequestOptions requestOptions = null)
        {
            var url = Urls.SubscriptionItems + "/" + subscriptionItemId;

            url = this.ApplyAllParameters(deleteOptions, url, false);

            return(Mapper <StripeSubscriptionItem> .MapFromJson(
                       Requestor.Delete(url, SetupRequestOptions(requestOptions))
                       ));
        }
        public virtual StripeSubscription Cancel(string customerId, string subscriptionId, bool cancelAtPeriodEnd = false)
        {
            var url = string.Format(Urls.Subscriptions + "/{1}", customerId, subscriptionId);

            url = ParameterBuilder.ApplyParameterToUrl(url, "at_period_end", cancelAtPeriodEnd.ToString());

            var response = Requestor.Delete(url, ApiKey);

            return(Mapper.MapFromJson <StripeSubscription>(response));
        }
        public virtual StripeSubscription CancelSubscription(string customerId, bool cancelAtPeriodEnd = false)
        {
            var url = string.Format("{0}/{1}/subscription", Urls.Customers, customerId);

            url = ParameterBuilder.ApplyParameterToUrl(url, "at_period_end", cancelAtPeriodEnd.ToString());

            var response = Requestor.Delete(url);

            return(Mapper <StripeSubscription> .MapFromJson(response));
        }
예제 #27
0
 public virtual void Delete(string invoiceItemId, StripeRequestOptions requestOptions = null)
 {
     Requestor.Delete($"{Urls.InvoiceItems}/{invoiceItemId}",
                      SetupRequestOptions(requestOptions));
 }
예제 #28
0
        public virtual void Delete(string planId)
        {
            var url = string.Format("{0}/{1}", Urls.Plans, planId);

            Requestor.Delete(url, ApiKey);
        }
예제 #29
0
 public virtual void Delete(string planId, StripeRequestOptions requestOptions = null)
 {
     Requestor.Delete($"{Urls.Plans}/{planId}",
                      SetupRequestOptions(requestOptions));
 }
예제 #30
0
        public virtual void Delete(string recipientId)
        {
            var url = string.Format("{0}/{1}", Urls.Recipients, recipientId);

            Requestor.Delete(url, ApiKey);
        }