Package com.braintreegateway
Class ClientTokenRequest
- java.lang.Object
-
- com.braintreegateway.Request
-
- com.braintreegateway.ClientTokenRequest
-
public class ClientTokenRequest extends Request
Provides a fluent interface to build up requests for client tokens, which are used to authenticate requests clients make directly on behalf of merchants
-
-
Field Summary
Fields Modifier and Type Field Description private StringcustomerIdprivate static intDEFAULT_VERSIONprivate ArrayList<String>domainsprivate StringmerchantAccountIdprivate ClientTokenOptionsRequestoptionsRequestprivate intversion
-
Constructor Summary
Constructors Constructor Description ClientTokenRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestBuilderbuildRequest(String root)ClientTokenRequestcustomerId(String customerId)ClientTokenRequestdomains(ArrayList<String> domains)StringgetCustomerId()StringgetMerchantAccountId()ClientTokenOptionsRequestgetOptions()ClientTokenRequestmerchantAccountId(String merchantAccountId)ClientTokenRequestoptions(ClientTokenOptionsRequest optionsRequest)StringtoXML()ClientTokenRequestversion(int version)-
Methods inherited from class com.braintreegateway.Request
buildXMLElement, buildXMLElement, getKind, toGraphQLVariables, toQueryString, toQueryString
-
-
-
-
Field Detail
-
DEFAULT_VERSION
private static final int DEFAULT_VERSION
- See Also:
- Constant Field Values
-
customerId
private String customerId
-
merchantAccountId
private String merchantAccountId
-
optionsRequest
private ClientTokenOptionsRequest optionsRequest
-
version
private int version
-
-
Method Detail
-
getCustomerId
public String getCustomerId()
-
getMerchantAccountId
public String getMerchantAccountId()
-
getOptions
public ClientTokenOptionsRequest getOptions()
-
customerId
public ClientTokenRequest customerId(String customerId)
-
domains
public ClientTokenRequest domains(ArrayList<String> domains)
-
merchantAccountId
public ClientTokenRequest merchantAccountId(String merchantAccountId)
-
options
public ClientTokenRequest options(ClientTokenOptionsRequest optionsRequest)
-
version
public ClientTokenRequest version(int version)
-
buildRequest
protected RequestBuilder buildRequest(String root)
-
-