public virtual async Task <IEnumerable <StripeCharge> > ListAsync(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeCharge> .MapCollectionFromJson(
                await Requestor.GetStringAsync(this.ApplyAllParameters(listOptions, Urls.Charges, true),
                                               SetupRequestOptions(requestOptions))
                ));
 }
 public virtual StripeList <StripeCharge> List(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeList <StripeCharge> > .MapFromJson(
                Requestor.GetString(this.ApplyAllParameters(listOptions, Urls.Charges, true),
                                    SetupRequestOptions(requestOptions))
                ));
 }
 public virtual IEnumerable<StripeCharge> List(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return Mapper<StripeCharge>.MapCollectionFromJson(
         Requestor.GetString(this.ApplyAllParameters(listOptions, Urls.Charges, true),
         SetupRequestOptions(requestOptions))
     );
 }
 public virtual async Task <StripeList <StripeCharge> > ListAsync(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeList <StripeCharge> > .MapFromJson(
                await Requestor.GetStringAsync(this.ApplyAllParameters(listOptions, Urls.Charges, true),
                                               SetupRequestOptions(requestOptions),
                                               cancellationToken)
                ));
 }
		public virtual IEnumerable<StripeCharge> List(StripeChargeListOptions listOptions = null)
		{
			var url = Urls.Charges;
			url = this.ApplyAllParameters(listOptions, url, true);

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

			return Mapper<StripeCharge>.MapCollectionFromJson(response);
		}
        public virtual IEnumerable <StripeCharge> List(StripeChargeListOptions listOptions = null)
        {
            var url = Urls.Charges;

            url = this.ApplyAllParameters(listOptions, url, true);

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

            return(Mapper <StripeCharge> .MapCollectionFromJson(response));
        }
        public virtual async Task<IEnumerable<StripeCharge>> ListAsync(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

            var url = Urls.Charges;
            url = this.ApplyAllParameters(listOptions, url, true);

            var response = await Requestor.GetStringAsync(url, requestOptions);

            return Mapper<StripeCharge>.MapCollectionFromJson(response);
        }
		public virtual IEnumerable<StripeCharge> List(StripeChargeListOptions listOptions = null)
		{
			var url = Urls.Charges;

			if (listOptions != null)
				url = ParameterBuilder.ApplyAllParameters(listOptions, url);

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

			return Mapper.MapCollectionFromJson<StripeCharge>(response);
		}
Exemple #9
0
        public virtual IEnumerable <StripeCharge> List(StripeChargeListOptions listOptions = null)
        {
            var url = Urls.Charges;

            if (listOptions != null)
            {
                url = ParameterBuilder.ApplyAllParameters(listOptions, url);
            }

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

            return(Mapper.MapCollectionFromJson <StripeCharge>(response));
        }
 public virtual IEnumerable<StripeCharge> List(StripeChargeListOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return ListAsync(listOptions, requestOptions).Result;
 }