public async Task <StripeList <Card> > GetCardListAsync(string customerId) { var service = new Stripe.CardService(); var options = new Stripe.CardListOptions { Limit = 3, }; return(await service.ListAsync(customerId, options)); }
public virtual IEnumerable <Card> ListAutoPaging(string parentId, CardListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntitiesAutoPaging(parentId, options ?? new CardListOptions(), requestOptions)); }
public virtual IAsyncEnumerable <Card> ListAutoPagingAsync(string parentId, CardListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListNestedEntitiesAutoPagingAsync(parentId, options ?? new CardListOptions(), requestOptions, cancellationToken)); }
public virtual Task <StripeList <Card> > ListAsync(string parentId, CardListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListNestedEntitiesAsync(parentId, options ?? new CardListOptions(), requestOptions, cancellationToken)); }
public virtual StripeList <Card> List(string parentId, CardListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntities(parentId, options ?? new CardListOptions(), requestOptions)); }
public virtual IEnumerable <Card> ListAutoPaging(string customerId, CardListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntitiesAutoPaging(customerId, options, requestOptions)); }
public virtual Task <StripeList <Card> > ListAsync(string customerId, CardListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(this.ListNestedEntitiesAsync(customerId, options, requestOptions, cancellationToken)); }
public virtual StripeList <Card> List(string customerId, CardListOptions options = null, RequestOptions requestOptions = null) { return(this.ListNestedEntities(customerId, options, requestOptions)); }