Class BraintreeResponse

java.lang.Object
com.broadleafcommerce.braintree.domain.BraintreeResponse

public class BraintreeResponse extends Object
This is summary object for all necessary responses for the current transaction types: - Authorize - Capture - AuthorizeAndCapture - Reverse - Refund More details: Payments Response description
  • Constructor Details

    • BraintreeResponse

      public BraintreeResponse()
  • Method Details

    • setExtensions

      public void setExtensions(BraintreeResponse.Extensions extensions)
      The API response MUST contain an extensions object. This object contains at least a requestId entry that is unique to the request and useful to Braintree Support should you need help debugging a request.
    • setData

      public void setData(BraintreeResponse.Data data)
      A successful query MUST return a JSON object with a data key whose value is a JSON object with the data you requested. Each key in the data object will exactly match those specified in the query.
    • setErrors

      public void setErrors(List<BraintreeResponse.Error> errors)
      Unlike a conventional REST API, GraphQL APIs do not rely on HTTP status codes to signal request outcomes. Our GraphQL API always return a JSON body with the 200 status code, even when there are errors. If an error occurred, the response body MUST include a top-level errors array that describes the error or errors
    • getExtensions

      public BraintreeResponse.Extensions getExtensions()
      The API response MUST contain an extensions object. This object contains at least a requestId entry that is unique to the request and useful to Braintree Support should you need help debugging a request.
    • getData

      public BraintreeResponse.Data getData()
      A successful query MUST return a JSON object with a data key whose value is a JSON object with the data you requested. Each key in the data object will exactly match those specified in the query.
    • getErrors

      public List<BraintreeResponse.Error> getErrors()
      Unlike a conventional REST API, GraphQL APIs do not rely on HTTP status codes to signal request outcomes. Our GraphQL API always return a JSON body with the 200 status code, even when there are errors. If an error occurred, the response body MUST include a top-level errors array that describes the error or errors