Package com.braintreegateway
Class ReportGateway
- java.lang.Object
-
- com.braintreegateway.ReportGateway
-
public class ReportGateway extends Object
Provides methods to interact with reports. This class does not need to be instantiated directly. Instead, useBraintreeGateway.transaction()to get an instance of this class:BraintreeGateway gateway = new BraintreeGateway(...); gateway.report().transactionLevelFees(...)
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigurationprivate GraphQLClientgraphQLClientprivate Httphttpprivate static StringTRANSACTION_LEVEL_FEES_QUERY
-
Constructor Summary
Constructors Constructor Description ReportGateway(Http http, GraphQLClient graphQLClient, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<TransactionLevelFeeReport>transactionLevelFees(TransactionLevelFeeReportRequest request)Retrieves a Transaction-Level Fee Report.
-
-
-
Field Detail
-
http
private Http http
-
graphQLClient
private GraphQLClient graphQLClient
-
configuration
private Configuration configuration
-
TRANSACTION_LEVEL_FEES_QUERY
private static final String TRANSACTION_LEVEL_FEES_QUERY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportGateway
public ReportGateway(Http http, GraphQLClient graphQLClient, Configuration configuration)
-
-
Method Detail
-
transactionLevelFees
public Result<TransactionLevelFeeReport> transactionLevelFees(TransactionLevelFeeReportRequest request) throws IOException, ParseException
Retrieves a Transaction-Level Fee Report.- Parameters:
request- the request.- Returns:
- a
Result - Throws:
IOException- when data is malfornedParseException- when parsing fails
-
-