Class StripeResponseStream

java.lang.Object
com.stripe.net.StripeResponseStream

public class StripeResponseStream extends Object
  • Constructor Details

    • StripeResponseStream

      public StripeResponseStream(int code, HttpHeaders headers, InputStream body)
      Initializes a new instance of the StripeResponseStream class.
      Parameters:
      code - the HTTP status code of the response
      headers - the HTTP headers of the response
      body - streaming body response
      Throws:
      NullPointerException - if headers or body is null
  • Method Details

    • code

      public final int code()
    • headers

      public final HttpHeaders headers()
    • body

      public final InputStream body()
    • date

      public Instant date()
      Gets the date of the request, as returned by Stripe.
      Returns:
      the date of the request, as returned by Stripe
    • idempotencyKey

      public String idempotencyKey()
      Gets the idempotency key of the request, as returned by Stripe.
      Returns:
      the idempotency key of the request, as returned by Stripe
    • requestId

      public String requestId()
      Gets the ID of the request, as returned by Stripe.
      Returns:
      the ID of the request, as returned by Stripe