public virtual IAsyncEnumerable <Source> ListAutoPagingAsync(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListRequestAutoPagingAsync <Source>($"/v1/customers/{customerId}/sources", options ?? new SourceListOptions(), requestOptions, cancellationToken)); }
public virtual IEnumerable <Source> ListAutoPaging(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null) { return(this.ListRequestAutoPaging <Source>($"/v1/customers/{customerId}/sources", options ?? new SourceListOptions(), requestOptions)); }
public virtual Task <StripeList <Source> > ListAsync(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.RequestAsync <StripeList <Source> >(HttpMethod.Get, $"/v1/customers/{customerId}/sources", options ?? new SourceListOptions(), requestOptions, cancellationToken)); }
public virtual StripeList <Source> List(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null) { return(this.Request <StripeList <Source> >(HttpMethod.Get, $"/v1/customers/{customerId}/sources", options ?? new SourceListOptions(), requestOptions)); }
public virtual Task <StripeList <Source> > ListAsync(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(this.GetRequestAsync <StripeList <Source> >($"{Urls.BaseUrl}/customers/{customerId}/sources", options, requestOptions, true, cancellationToken)); }
public virtual StripeList <Source> List(string customerId, SourceListOptions options = null, RequestOptions requestOptions = null) { return(this.GetRequest <StripeList <Source> >($"{Urls.BaseUrl}/customers/{customerId}/sources", options, requestOptions, true)); }