code: public Invoice finalizeInvoice() throws StripeException {
      return finalizeInvoice((Map<String, Object>) null, (RequestOptions) null);
    }
docs: Stripe automatically finalizes drafts before sending and attempting payment on invoices.
  However, if you’d like to finalize a draft invoice manually, you can do so using this method.