public virtual StripeList <CountrySpec> List(CountrySpecListOptions listOptions = null, StripeRequestOptions requestOptions = null) { return(Mapper <StripeList <CountrySpec> > .MapFromJson( Requestor.GetString( this.ApplyAllParameters(listOptions, $"{Urls.CountrySpecs}", true), this.SetupRequestOptions(requestOptions)))); }
public virtual async Task <StripeList <CountrySpec> > ListAsync(CountrySpecListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeList <CountrySpec> > .MapFromJson( await Requestor.GetStringAsync( this.ApplyAllParameters(listOptions, $"{Urls.CountrySpecs}", true), this.SetupRequestOptions(requestOptions), cancellationToken).ConfigureAwait(false))); }
public CountrySpecServiceTest() { this.service = new CountrySpecService(); this.listOptions = new CountrySpecListOptions() { Limit = 1, }; }
public CountrySpecServiceTest(MockHttpClientFixture mockHttpClientFixture) : base(mockHttpClientFixture) { this.service = new CountrySpecService(); this.listOptions = new CountrySpecListOptions { Limit = 1, }; }
public CountrySpecServiceTest( StripeMockFixture stripeMockFixture, MockHttpClientFixture mockHttpClientFixture) : base(stripeMockFixture, mockHttpClientFixture) { this.service = new CountrySpecService(this.StripeClient); this.listOptions = new CountrySpecListOptions { Limit = 1, }; }
public virtual IAsyncEnumerable <CountrySpec> ListAutoPagingAsync(CountrySpecListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListEntitiesAutoPagingAsync(options, requestOptions, cancellationToken)); }
public virtual IEnumerable <CountrySpec> ListAutoPaging(CountrySpecListOptions options = null, RequestOptions requestOptions = null) { return(this.ListEntitiesAutoPaging(options, requestOptions)); }
public virtual Task <StripeList <CountrySpec> > ListAsync(CountrySpecListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.ListEntitiesAsync(options, requestOptions, cancellationToken)); }
public virtual StripeList <CountrySpec> List(CountrySpecListOptions options = null, RequestOptions requestOptions = null) { return(this.ListEntities(options, requestOptions)); }