Class TransferInstrumentsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.legalentitymanagement.TransferInstrumentsApi
-
public class TransferInstrumentsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description TransferInstrumentsApi(Client client)Transfer instruments constructor inpackage.TransferInstrumentsApi(Client client, String baseURL)Transfer instruments constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferInstrumentcreateTransferInstrument(TransferInstrumentInfo transferInstrumentInfo)Create a transfer instrumentTransferInstrumentcreateTransferInstrument(TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions)Create a transfer instrumentvoiddeleteTransferInstrument(String id)Delete a transfer instrumentvoiddeleteTransferInstrument(String id, RequestOptions requestOptions)Delete a transfer instrumentTransferInstrumentgetTransferInstrument(String id)Get a transfer instrumentTransferInstrumentgetTransferInstrument(String id, RequestOptions requestOptions)Get a transfer instrumentTransferInstrumentupdateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo)Update a transfer instrumentTransferInstrumentupdateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions)Update a transfer instrument-
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
-
TransferInstrumentsApi
public TransferInstrumentsApi(Client client)
Transfer instruments constructor inpackage.- Parameters:
client-Client(required)
-
TransferInstrumentsApi
public TransferInstrumentsApi(Client client, String baseURL)
Transfer instruments 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
-
createTransferInstrument
public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException
Create a transfer instrument- Parameters:
transferInstrumentInfo-TransferInstrumentInfo(required)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
createTransferInstrument
public TransferInstrument createTransferInstrument(TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException
Create a transfer instrument- Parameters:
transferInstrumentInfo-TransferInstrumentInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
deleteTransferInstrument
public void deleteTransferInstrument(String id) throws ApiException, IOException
Delete a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument to be deleted. (required)- Throws:
ApiException- if fails to make API callIOException
-
deleteTransferInstrument
public void deleteTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException
Delete a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument to be deleted. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getTransferInstrument
public TransferInstrument getTransferInstrument(String id) throws ApiException, IOException
Get a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument. (required)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
getTransferInstrument
public TransferInstrument getTransferInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
updateTransferInstrument
public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo) throws ApiException, IOException
Update a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument. (required)transferInstrumentInfo-TransferInstrumentInfo(required)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
updateTransferInstrument
public TransferInstrument updateTransferInstrument(String id, TransferInstrumentInfo transferInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException
Update a transfer instrument- Parameters:
id-StringThe unique identifier of the transfer instrument. (required)transferInstrumentInfo-TransferInstrumentInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransferInstrument- Throws:
ApiException- if fails to make API callIOException
-
-