Пример #1
0
 public virtual IEnumerable <StripeCustomer> List(StripeCustomerListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeCustomer> .MapCollectionFromJson(
                Requestor.GetString(this.ApplyAllParameters(listOptions, Urls.Customers, true),
                                    SetupRequestOptions(requestOptions))
                ));
 }
Пример #2
0
 public virtual async Task <IEnumerable <StripeCustomer> > ListAsync(StripeCustomerListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeCustomer> .MapCollectionFromJson(
                await Requestor.GetStringAsync(this.ApplyAllParameters(listOptions, Urls.Customers, true),
                                               SetupRequestOptions(requestOptions),
                                               cancellationToken)
                ));
 }