Class BraintreeResponse
java.lang.Object
com.broadleafcommerce.braintree.domain.BraintreeResponse
This is summary object for all necessary responses for the current transaction types: - Authorize
- Capture - AuthorizeAndCapture - Reverse - Refund More details:
Payments Response
description
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A monetary amount with currency.static class
static class
static class
static class
Object wrapper for each transaction type (payment method)static class
static class
static class
static class
static class
Top-level field representing a payment method.static class
A refund of a charge on a payment method, representing an attempt to send money from a previous transaction back to the customer.static class
static class
static class
static class
static class
Status event in the lifecycle of a payment.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()
A successful query MUST return a JSON object with a data key whose value is a JSON object with the data you requested.Unlike a conventional REST API, GraphQL APIs do not rely on HTTP status codes to signal request outcomes.The API response MUST contain an extensions object.void
A successful query MUST return a JSON object with a data key whose value is a JSON object with the data you requested.void
setErrors
(List<BraintreeResponse.Error> errors) Unlike a conventional REST API, GraphQL APIs do not rely on HTTP status codes to signal request outcomes.void
setExtensions
(BraintreeResponse.Extensions extensions) The API response MUST contain an extensions object.
-
Constructor Details
-
BraintreeResponse
public BraintreeResponse()
-
-
Method Details
-
setExtensions
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
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
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
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
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
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
-