Class Request.RequestDetails

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.forwarding.Request.RequestDetails
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Request

public static class Request.RequestDetails extends StripeObject
Details about the request forwarded to the destination endpoint.
  • Constructor Details

    • RequestDetails

      public RequestDetails()
  • Method Details

    • getBody

      public String getBody()
      The body payload to send to the destination endpoint.
    • getHeaders

      public List<Request.RequestDetails.Header> getHeaders()
      The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.
    • getHttpMethod

      public String getHttpMethod()
      The HTTP method used to call the destination endpoint.

      Equal to POST.

    • setBody

      public void setBody(String body)
      The body payload to send to the destination endpoint.
    • setHeaders

      public void setHeaders(List<Request.RequestDetails.Header> headers)
      The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.
    • setHttpMethod

      public void setHttpMethod(String httpMethod)
      The HTTP method used to call the destination endpoint.

      Equal to POST.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object