Stripe.CountrySpecService.ListAsync C# (CSharp) Method

ListAsync() public method

public ListAsync ( StripeListOptions listOptions = null, Stripe.StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task>
listOptions StripeListOptions
requestOptions Stripe.StripeRequestOptions
cancellationToken System.Threading.CancellationToken
return Task>
        public virtual async Task<IEnumerable<CountrySpec>> ListAsync(StripeListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            return Mapper<CountrySpec>.MapCollectionFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(listOptions, $"{Urls.CountrySpecs}", true),
                    SetupRequestOptions(requestOptions),
                    cancellationToken
                )
            );
        }
    }