Inheritance: StripeListOptions
Ejemplo n.º 1
0
 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))));
 }
Ejemplo n.º 3
0
 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))
                ));
 }
Ejemplo n.º 4
0
 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)));
 }
Ejemplo n.º 6
0
		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);
		}
Ejemplo n.º 7
0
        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));
        }
Ejemplo n.º 8
0
		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);
		}
Ejemplo n.º 9
0
        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));
        }