Class AuthorizedCardUsersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.AuthorizedCardUsersApi
-
public class AuthorizedCardUsersApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description AuthorizedCardUsersApi(Client client)Authorized card users constructor inpackage.AuthorizedCardUsersApi(Client client, String baseURL)Authorized card users constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers)Create authorized users for a card.voidcreateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions)Create authorized users for a card.voiddeleteAuthorisedCardUsers(String paymentInstrumentId)Delete the authorized users for a card.voiddeleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions)Delete the authorized users for a card.AuthorisedCardUsersgetAllAuthorisedCardUsers(String paymentInstrumentId)Get authorized users for a card.AuthorisedCardUsersgetAllAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions)Get authorized users for a card.voidupdateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers)Update the authorized users for a card.voidupdateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions)Update the authorized users for a card.-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
AuthorizedCardUsersApi
public AuthorizedCardUsersApi(Client client)
Authorized card users constructor inpackage.- Parameters:
client-Client(required)
-
AuthorizedCardUsersApi
public AuthorizedCardUsersApi(Client client, String baseURL)
Authorized card users constructor inpackage. Please use this constructor only if you would like to pass along your own url for routing or testing purposes. The latest API version is defined in this class as a constant.
-
-
Method Detail
-
createAuthorisedCardUsers
public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException
Create authorized users for a card.- Parameters:
paymentInstrumentId-String(required)authorisedCardUsers-AuthorisedCardUsers(required)- Throws:
ApiException- if fails to make API callIOException
-
createAuthorisedCardUsers
public void createAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException
Create authorized users for a card.- Parameters:
paymentInstrumentId-String(required)authorisedCardUsers-AuthorisedCardUsers(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
deleteAuthorisedCardUsers
public void deleteAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException
Delete the authorized users for a card.- Parameters:
paymentInstrumentId-String(required)- Throws:
ApiException- if fails to make API callIOException
-
deleteAuthorisedCardUsers
public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException
Delete the authorized users for a card.- Parameters:
paymentInstrumentId-String(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getAllAuthorisedCardUsers
public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId) throws ApiException, IOException
Get authorized users for a card.- Parameters:
paymentInstrumentId-String(required)- Returns:
AuthorisedCardUsers- Throws:
ApiException- if fails to make API callIOException
-
getAllAuthorisedCardUsers
public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId, RequestOptions requestOptions) throws ApiException, IOException
Get authorized users for a card.- Parameters:
paymentInstrumentId-String(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
AuthorisedCardUsers- Throws:
ApiException- if fails to make API callIOException
-
updateAuthorisedCardUsers
public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers) throws ApiException, IOException
Update the authorized users for a card.- Parameters:
paymentInstrumentId-String(required)authorisedCardUsers-AuthorisedCardUsers(required)- Throws:
ApiException- if fails to make API callIOException
-
updateAuthorisedCardUsers
public void updateAuthorisedCardUsers(String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers, RequestOptions requestOptions) throws ApiException, IOException
Update the authorized users for a card.- Parameters:
paymentInstrumentId-String(required)authorisedCardUsers-AuthorisedCardUsers(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
-