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));
        }
Beispiel #2
0
 public virtual IEnumerable <Card> ListAutoPaging(string parentId, CardListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntitiesAutoPaging(parentId, options ?? new CardListOptions(), requestOptions));
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 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));
 }
Beispiel #5
0
 public virtual StripeList <Card> List(string parentId, CardListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntities(parentId, options ?? new CardListOptions(), requestOptions));
 }
Beispiel #6
0
 public virtual IEnumerable <Card> ListAutoPaging(string customerId, CardListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntitiesAutoPaging(customerId, options, requestOptions));
 }
Beispiel #7
0
 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));
 }
Beispiel #8
0
 public virtual StripeList <Card> List(string customerId, CardListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntities(customerId, options, requestOptions));
 }