Beispiel #1
0
 public virtual IAsyncEnumerable <PaymentMethod> ListPaymentMethodsAutoPagingAsync(string id, CustomerListPaymentMethodsOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListRequestAutoPagingAsync <PaymentMethod>($"{this.InstanceUrl(id)}/payment_methods", options, requestOptions, cancellationToken));
 }
Beispiel #2
0
 public virtual Task <StripeList <PaymentMethod> > ListPaymentMethodsAsync(string id, CustomerListPaymentMethodsOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.RequestAsync <StripeList <PaymentMethod> >(HttpMethod.Get, $"{this.InstanceUrl(id)}/payment_methods", options, requestOptions, cancellationToken));
 }
Beispiel #3
0
 public virtual IEnumerable <PaymentMethod> ListPaymentMethodsAutoPaging(string id, CustomerListPaymentMethodsOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListRequestAutoPaging <PaymentMethod>($"{this.InstanceUrl(id)}/payment_methods", options, requestOptions));
 }
Beispiel #4
0
 public virtual StripeList <PaymentMethod> ListPaymentMethods(string id, CustomerListPaymentMethodsOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.Request <StripeList <PaymentMethod> >(HttpMethod.Get, $"{this.InstanceUrl(id)}/payment_methods", options, requestOptions));
 }