public virtual IEnumerable<StripeEvent> ListWithOptions(StripeEventSearchOptions searchOptions)
		{
			int count = 10;
            int offset = 0;

			return List(count, offset, searchOptions);
		}
예제 #2
0
		public virtual IEnumerable<StripeEvent> List(int limit = 10, StripeEventSearchOptions searchOptions = null)
		{
			var url = Urls.Events;
			url = ParameterBuilder.ApplyParameterToUrl(url, "limit", limit.ToString());
			url = ParameterBuilder.ApplyAllParameters(searchOptions, url);

			var response = Requestor.GetString(url, ApiKey);

			return Mapper<StripeEvent>.MapCollectionFromJson(response);
		}
		public virtual IEnumerable<StripeEvent> List(int count, int offset, StripeEventSearchOptions searchOptions)
		{
			var url = Urls.Events;
			url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString());
			url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString());
			url = ParameterBuilder.ApplyAllParameters(searchOptions, url);

			var response = Requestor.GetString(url, ApiKeyAppSettingName);

			return Mapper<StripeEvent>.MapCollectionFromJson(response);
		}
예제 #4
0
        public virtual IEnumerable <StripeEvent> List(int count = 10, int offset = 0, StripeEventSearchOptions searchOptions = null)
        {
            var url = Urls.Events;

            url = ParameterBuilder.ApplyParameterToUrl(url, "count", count.ToString());
            url = ParameterBuilder.ApplyParameterToUrl(url, "offset", offset.ToString());
            url = ParameterBuilder.ApplyAllParameters(searchOptions, url);

            var response = Requestor.GetString(url, ApiKey);

            return(Mapper <StripeEvent> .MapCollectionFromJson(response));
        }