public virtual IEnumerable<StripeEvent> List(StripeEventListOptions listOptions = null, StripeRequestOptions requestOptions = null) { return Mapper<StripeEvent>.MapCollectionFromJson( Requestor.GetString(this.ApplyAllParameters(listOptions, Urls.Events, true), SetupRequestOptions(requestOptions)) ); }
public virtual StripeList <StripeEvent> List(StripeEventListOptions listOptions = null, StripeRequestOptions requestOptions = null) { return(Mapper <StripeList <StripeEvent> > .MapFromJson( Requestor.GetString( this.ApplyAllParameters(listOptions, Urls.Events, true), this.SetupRequestOptions(requestOptions)))); }
public virtual async Task <IEnumerable <StripeEvent> > ListAsync(StripeEventListOptions listOptions = null, StripeRequestOptions requestOptions = null) { return(Mapper <StripeEvent> .MapCollectionFromJson( await Requestor.GetStringAsync(this.ApplyAllParameters(listOptions, Urls.Events, true), SetupRequestOptions(requestOptions)) )); }
public virtual async Task<IEnumerable<StripeEvent>> ListAsync(StripeEventListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return Mapper<StripeEvent>.MapCollectionFromJson( await Requestor.GetStringAsync(this.ApplyAllParameters(listOptions, Urls.Events, true), SetupRequestOptions(requestOptions), cancellationToken) ); }
public virtual async Task <StripeList <StripeEvent> > ListAsync(StripeEventListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(Mapper <StripeList <StripeEvent> > .MapFromJson( await Requestor.GetStringAsync( this.ApplyAllParameters(listOptions, Urls.Events, true), this.SetupRequestOptions(requestOptions), cancellationToken).ConfigureAwait(false))); }
public virtual IEnumerable<StripeEvent> List(StripeEventListOptions listOptions = null) { var url = Urls.Events; url = this.ApplyAllParameters(listOptions, url, true); var response = Requestor.GetString(url, ApiKey); return Mapper<StripeEvent>.MapCollectionFromJson(response); }
public virtual IEnumerable <StripeEvent> List(StripeEventListOptions listOptions = null) { var url = Urls.Events; url = this.ApplyAllParameters(listOptions, url, true); var response = Requestor.GetString(url, ApiKey); return(Mapper <StripeEvent> .MapCollectionFromJson(response)); }
public virtual IEnumerable<StripeEvent> List(StripeEventListOptions listOptions = null) { var url = Urls.Events; if (listOptions != null) url = ParameterBuilder.ApplyAllParameters(listOptions, url); var response = Requestor.GetString(url, ApiKey); return Mapper.MapCollectionFromJson<StripeEvent>(response); }
public virtual IEnumerable <StripeEvent> List(StripeEventListOptions listOptions = null) { var url = Urls.Events; if (listOptions != null) { url = ParameterBuilder.ApplyAllParameters(listOptions, url); } var response = Requestor.GetString(url, ApiKey); return(Mapper.MapCollectionFromJson <StripeEvent>(response)); }