@Immutable @LevelUpApi(contract=PUBLIC) public final class PaymentMethodRequestFactory extends AbstractRequestFactory
Constructor and Description |
---|
PaymentMethodRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildGetPaymentMethodRequest()
Builds a request to retrieve the current user's payment method.
|
getAccessTokenRetriever, getContext
public PaymentMethodRequestFactory(Context context, AccessTokenRetriever retriever)
context
- the Application context.retriever
- the AccessTokenRetriever
to get the User
's AccessToken
.@AccessTokenRequired @RequiresPermission(value="manage_user_payment_methods") public AbstractRequest buildGetPaymentMethodRequest()
LevelUpStatus.ERROR_NOT_FOUND
.