Class PaymentInstrumentsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.PaymentInstrumentsApi
-
public class PaymentInstrumentsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentsApi(Client client)Payment instruments constructor inpackage.PaymentInstrumentsApi(Client client, String baseURL)Payment instruments constructor inpackage.
-
Method Summary
-
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
-
PaymentInstrumentsApi
public PaymentInstrumentsApi(Client client)
Payment instruments constructor inpackage.- Parameters:
client-Client(required)
-
PaymentInstrumentsApi
public PaymentInstrumentsApi(Client client, String baseURL)
Payment 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
-
createPaymentInstrument
public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo) throws ApiException, IOException
Create a payment instrument- Parameters:
paymentInstrumentInfo-PaymentInstrumentInfo(required)- Returns:
PaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
createPaymentInstrument
public PaymentInstrument createPaymentInstrument(PaymentInstrumentInfo paymentInstrumentInfo, RequestOptions requestOptions) throws ApiException, IOException
Create a payment instrument- Parameters:
paymentInstrumentInfo-PaymentInstrumentInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
getAllTransactionRulesForPaymentInstrument
public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id) throws ApiException, IOException
Get all transaction rules for a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)- Returns:
TransactionRulesResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllTransactionRulesForPaymentInstrument
public TransactionRulesResponse getAllTransactionRulesForPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException
Get all transaction rules for a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransactionRulesResponse- Throws:
ApiException- if fails to make API callIOException
-
getPanOfPaymentInstrument
public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id) throws ApiException, IOException
Get the PAN of a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)- Returns:
PaymentInstrumentRevealInfo- Throws:
ApiException- if fails to make API callIOException
-
getPanOfPaymentInstrument
public PaymentInstrumentRevealInfo getPanOfPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException
Get the PAN of a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrumentRevealInfo- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrument
public PaymentInstrument getPaymentInstrument(String id) throws ApiException, IOException
Get a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)- Returns:
PaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrument
public PaymentInstrument getPaymentInstrument(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
listNetworkTokens
public ListNetworkTokensResponse listNetworkTokens(String id) throws ApiException, IOException
List network tokens- Parameters:
id-StringThe unique identifier of the payment instrument. (required)- Returns:
ListNetworkTokensResponse- Throws:
ApiException- if fails to make API callIOException
-
listNetworkTokens
public ListNetworkTokensResponse listNetworkTokens(String id, RequestOptions requestOptions) throws ApiException, IOException
List network tokens- Parameters:
id-StringThe unique identifier of the payment instrument. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ListNetworkTokensResponse- Throws:
ApiException- if fails to make API callIOException
-
revealDataOfPaymentInstrument
public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest) throws ApiException, IOException
Reveal the data of a payment instrument- Parameters:
paymentInstrumentRevealRequest-PaymentInstrumentRevealRequest(required)- Returns:
PaymentInstrumentRevealResponse- Throws:
ApiException- if fails to make API callIOException
-
revealDataOfPaymentInstrument
public PaymentInstrumentRevealResponse revealDataOfPaymentInstrument(PaymentInstrumentRevealRequest paymentInstrumentRevealRequest, RequestOptions requestOptions) throws ApiException, IOException
Reveal the data of a payment instrument- Parameters:
paymentInstrumentRevealRequest-PaymentInstrumentRevealRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrumentRevealResponse- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentInstrument
public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest) throws ApiException, IOException
Update a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)paymentInstrumentUpdateRequest-PaymentInstrumentUpdateRequest(required)- Returns:
UpdatePaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentInstrument
public UpdatePaymentInstrument updatePaymentInstrument(String id, PaymentInstrumentUpdateRequest paymentInstrumentUpdateRequest, RequestOptions requestOptions) throws ApiException, IOException
Update a payment instrument- Parameters:
id-StringThe unique identifier of the payment instrument. (required)paymentInstrumentUpdateRequest-PaymentInstrumentUpdateRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
UpdatePaymentInstrument- Throws:
ApiException- if fails to make API callIOException
-
-