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)); }
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)); }
public virtual IEnumerable <PaymentMethod> ListPaymentMethodsAutoPaging(string id, CustomerListPaymentMethodsOptions options = null, RequestOptions requestOptions = null) { return(this.ListRequestAutoPaging <PaymentMethod>($"{this.InstanceUrl(id)}/payment_methods", options, requestOptions)); }
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)); }