public virtual StripeList <CustomerBankAccount> List(string customerId, BankAccountListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeList <CustomerBankAccount> > .MapFromJson(
                Requestor.GetString(
                    this.ApplyAllParameters(listOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts", true),
                    this.SetupRequestOptions(requestOptions))));
 }
Example #2
0
 public virtual IEnumerable <BankAccount> ListAutoPaging(string customerId, BankAccountListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntitiesAutoPaging(customerId, options ?? new BankAccountListOptions(), requestOptions));
 }
Example #3
0
 public virtual Task <StripeList <BankAccount> > ListAsync(string customerId, BankAccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(this.ListNestedEntitiesAsync(customerId, options ?? new BankAccountListOptions(), requestOptions, cancellationToken));
 }
Example #4
0
 public virtual StripeList <BankAccount> List(string customerId, BankAccountListOptions options = null, RequestOptions requestOptions = null)
 {
     return(this.ListNestedEntities(customerId, options ?? new BankAccountListOptions(), requestOptions));
 }
 public virtual async Task <StripeList <CustomerBankAccount> > ListAsync(string customerId, BankAccountListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeList <CustomerBankAccount> > .MapFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(listOptions, $"{Urls.BaseUrl}/customers/{customerId}/bank_accounts", true),
                    this.SetupRequestOptions(requestOptions),
                    cancellationToken).ConfigureAwait(false)));
 }
 public virtual IAsyncEnumerable <BankAccount> ListAutoPagingAsync(string customerId, BankAccountListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default)
 {
     return(this.ListNestedEntitiesAutoPagingAsync(customerId, options ?? new BankAccountListOptions(), requestOptions, cancellationToken));
 }