コード例 #1
0
 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))));
 }
コード例 #2
0
 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)));
 }
コード例 #3
0
        public StripeExchangeRateServiceTest()
        {
            this.service = new StripeExchangeRateService();

            this.listOptions = new StripeExchangeRateListOptions()
            {
                Limit = 1,
            };
        }