Class PaymentInstrumentGroupsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.PaymentInstrumentGroupsApi
-
public class PaymentInstrumentGroupsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentGroupsApi(Client client)Payment instrument groups constructor inpackage.PaymentInstrumentGroupsApi(Client client, String baseURL)Payment instrument groups constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInstrumentGroupcreatePaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo)Create a payment instrument groupPaymentInstrumentGroupcreatePaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions)Create a payment instrument groupTransactionRulesResponsegetAllTransactionRulesForPaymentInstrumentGroup(String id)Get all transaction rules for a payment instrument groupTransactionRulesResponsegetAllTransactionRulesForPaymentInstrumentGroup(String id, RequestOptions requestOptions)Get all transaction rules for a payment instrument groupPaymentInstrumentGroupgetPaymentInstrumentGroup(String id)Get a payment instrument groupPaymentInstrumentGroupgetPaymentInstrumentGroup(String id, RequestOptions requestOptions)Get a payment instrument group-
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
-
PaymentInstrumentGroupsApi
public PaymentInstrumentGroupsApi(Client client)
Payment instrument groups constructor inpackage.- Parameters:
client-Client(required)
-
PaymentInstrumentGroupsApi
public PaymentInstrumentGroupsApi(Client client, String baseURL)
Payment instrument groups 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
-
createPaymentInstrumentGroup
public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo) throws ApiException, IOException
Create a payment instrument group- Parameters:
paymentInstrumentGroupInfo-PaymentInstrumentGroupInfo(required)- Returns:
PaymentInstrumentGroup- Throws:
ApiException- if fails to make API callIOException
-
createPaymentInstrumentGroup
public PaymentInstrumentGroup createPaymentInstrumentGroup(PaymentInstrumentGroupInfo paymentInstrumentGroupInfo, RequestOptions requestOptions) throws ApiException, IOException
Create a payment instrument group- Parameters:
paymentInstrumentGroupInfo-PaymentInstrumentGroupInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrumentGroup- Throws:
ApiException- if fails to make API callIOException
-
getAllTransactionRulesForPaymentInstrumentGroup
public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id) throws ApiException, IOException
Get all transaction rules for a payment instrument group- Parameters:
id-StringThe unique identifier of the payment instrument group. (required)- Returns:
TransactionRulesResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllTransactionRulesForPaymentInstrumentGroup
public TransactionRulesResponse getAllTransactionRulesForPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException
Get all transaction rules for a payment instrument group- Parameters:
id-StringThe unique identifier of the payment instrument group. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
TransactionRulesResponse- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrumentGroup
public PaymentInstrumentGroup getPaymentInstrumentGroup(String id) throws ApiException, IOException
Get a payment instrument group- Parameters:
id-StringThe unique identifier of the payment instrument group. (required)- Returns:
PaymentInstrumentGroup- Throws:
ApiException- if fails to make API callIOException
-
getPaymentInstrumentGroup
public PaymentInstrumentGroup getPaymentInstrumentGroup(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a payment instrument group- Parameters:
id-StringThe unique identifier of the payment instrument group. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentInstrumentGroup- Throws:
ApiException- if fails to make API callIOException
-
-