Stripe.CountrySpecService.GetAsync C# (CSharp) Method

GetAsync() public method

public GetAsync ( string country, Stripe.StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
country string
requestOptions Stripe.StripeRequestOptions
cancellationToken System.Threading.CancellationToken
return Task
        public virtual async Task<CountrySpec> GetAsync(string country, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            return Mapper<CountrySpec>.MapFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(null, $"{Urls.CountrySpecs}/{country}"),
                    SetupRequestOptions(requestOptions),
                    cancellationToken
                )
            );
        }