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

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

			return Mapper<StripeInvoiceItem>.MapCollectionFromJson(response);
		}
        public virtual IEnumerable <StripeInvoiceItem> List(StripeInvoiceItemListOptions listOptions = null)
        {
            var url = Urls.InvoiceItems;

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

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

            return(Mapper <StripeInvoiceItem> .MapCollectionFromJson(response));
        }
		public virtual IEnumerable<StripeInvoiceItem> List(StripeInvoiceItemListOptions listOptions = null)
		{
			var url = Urls.InvoiceItems;

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

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

			return Mapper.MapCollectionFromJson<StripeInvoiceItem>(response);
		}
        public virtual IEnumerable<StripeInvoiceLineItem> List(StripeInvoiceItemListOptions listOptions = null, StripeRequestOptions requestOptions = null)
        {
            requestOptions = SetupRequestOptions(requestOptions);

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

            var response = Requestor.Instance.GetString(url, requestOptions);

            return Mapper<StripeInvoiceLineItem>.MapCollectionFromJson(response);
        }
Esempio n. 9
0
        public virtual IEnumerable <StripeInvoiceItem> List(StripeInvoiceItemListOptions listOptions = null)
        {
            var url = Urls.InvoiceItems;

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

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

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