Esempio n. 1
0
 public virtual IEnumerable <StripeInvoiceLineItem> ListLineItems(string invoiceId, StripeInvoiceListLineItemsOptions listOptions = null, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeInvoiceLineItem> .MapCollectionFromJson(
                Requestor.GetString(this.ApplyAllParameters(listOptions, $"{Urls.Invoices}/{invoiceId}/lines", true),
                                    SetupRequestOptions(requestOptions))
                ));
 }
Esempio n. 2
0
 public virtual async Task <IEnumerable <StripeInvoiceLineItem> > ListLineItemsAsync(string invoiceId, StripeInvoiceListLineItemsOptions listOptions = null, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeInvoiceLineItem> .MapCollectionFromJson(
                await Requestor.GetStringAsync(
                    this.ApplyAllParameters(listOptions, $"{Urls.Invoices}/{invoiceId}/lines", true),
                    SetupRequestOptions(requestOptions),
                    cancellationToken)
                ));
 }