public virtual StripeList <StripeExchangeRate> List(StripeExchangeRateListOptions listOptions = null, StripeRequestOptions requestOptions = null) { return(Mapper <StripeList <StripeExchangeRate> > .MapFromJson( Requestor.GetString( this.ApplyAllParameters(listOptions, $"{Urls.ExchangeRates}", true), this.SetupRequestOptions(requestOptions)))); }
public virtual async Task <StripeList <StripeExchangeRate> > ListAsync(StripeExchangeRateListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeList <StripeExchangeRate> > .MapFromJson( await Requestor.GetStringAsync( this.ApplyAllParameters(listOptions, $"{Urls.ExchangeRates}", true), this.SetupRequestOptions(requestOptions), cancellationToken).ConfigureAwait(false))); }
public StripeExchangeRateServiceTest() { this.service = new StripeExchangeRateService(); this.listOptions = new StripeExchangeRateListOptions() { Limit = 1, }; }