Package com.braintreegateway
Class ExchangeRateQuoteGateway
- java.lang.Object
-
- com.braintreegateway.ExchangeRateQuoteGateway
-
public class ExchangeRateQuoteGateway extends Object
Provides methods to request currency conversion rate for a specific currency pair from PayPal Pricing
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigurationprivate static StringEXCHANGE_RATE_QUOTE_MUTATIONprivate GraphQLClientgraphQLClientprivate Httphttp
-
Constructor Summary
Constructors Constructor Description ExchangeRateQuoteGateway(Http http, GraphQLClient graphQLClient, Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Result<ExchangeRateQuotePayload>generate(ExchangeRateQuoteRequest request)Generate Exchange Rate Quote.
-
-
-
Field Detail
-
http
private Http http
-
graphQLClient
private GraphQLClient graphQLClient
-
configuration
private Configuration configuration
-
EXCHANGE_RATE_QUOTE_MUTATION
private static final String EXCHANGE_RATE_QUOTE_MUTATION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExchangeRateQuoteGateway
public ExchangeRateQuoteGateway(Http http, GraphQLClient graphQLClient, Configuration configuration)
-
-
Method Detail
-
generate
public Result<ExchangeRateQuotePayload> generate(ExchangeRateQuoteRequest request)
Generate Exchange Rate Quote.- Parameters:
request- the ExchangeRateQuoteRequest.- Returns:
- a
Result
-
-