code: public PaymentIntent capture() throws StripeException {
      return capture((Map<String, Object>) null, (RequestOptions) null);
    }
docs: Capture the funds of an existing uncaptured PaymentIntent when its status is <code>
  requires_capture</code>.
  
  <p>Uncaptured PaymentIntents will be canceled exactly seven days after they are created.
  
  <p>Read the <a
  href="/docs/payments/payment-intents/creating-payment-intents#separate-auth-capture">expanded
  documentation</a> to learn more about separate authorization and capture.