Пример #1
0
 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))
                ));
 }
Пример #2
0
 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))
                ));
 }
Пример #3
0
 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))
     );
 }
Пример #4
0
 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)
                ));
 }
Пример #5
0
		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);
		}
Пример #6
0
        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);
        }
Пример #8
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);
		}
Пример #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;
 }