RecurringInvoice.forClient constructor

RecurringInvoice.forClient(
  1. Client client, {
  2. required List<Product> products,
})

Create an invoice for a client

Implementation

factory RecurringInvoice.forClient(Client client,
    {required List<Product> products}) {
  return RecurringInvoice(
    clientId: client.id,
    lineItems: (products).map((product) => product.toLineItem).toList(),
  );
}