Class PaymentInstrumentsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.PaymentInstrumentsApi
-
public class PaymentInstrumentsApi extends Service
-
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentsApi(Client client)
-
Method Summary
-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
PaymentInstrumentsApi
public PaymentInstrumentsApi(Client client)
-
-
Method Detail
-
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
-
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
-
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
-
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
-
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
-
-