@Immutable @LevelUpApi(contract=PUBLIC) public final class PaymentTokenRequestFactory extends AbstractRequestFactory
AbstractRequest
's to interact with
PaymentToken
s on the web service.Constructor and Description |
---|
PaymentTokenRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildGetPaymentTokenRequest() |
getAccessTokenRetriever, getContext
public PaymentTokenRequestFactory(Context context, AccessTokenRetriever retriever)
context
- the Application context.retriever
- the implementation of AccessTokenRetriever
to use to get the
User
's
AccessToken
.@AccessTokenRequired @LevelUpApi(contract=PUBLIC) @RequiresPermission(value="read_qr_code") public AbstractRequest buildGetPaymentTokenRequest()
AbstractRequest
to use to get the currently logged in
User
's
PaymentToken
.