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