Package com.adyen.service.management
Class PaymentMethodsMerchantLevelApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.management.PaymentMethodsMerchantLevelApi
-
public class PaymentMethodsMerchantLevelApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description PaymentMethodsMerchantLevelApi(Client client)Payment methods - merchant level constructor inpackage.PaymentMethodsMerchantLevelApi(Client client, String baseURL)Payment methods - merchant level constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo)Add an Apple Pay domainvoidaddApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo, RequestOptions requestOptions)Add an Apple Pay domainPaymentMethodResponsegetAllPaymentMethods(String merchantId)Get all payment methodsPaymentMethodResponsegetAllPaymentMethods(String merchantId, String storeId, String businessLineId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions)Get all payment methodsApplePayInfogetApplePayDomains(String merchantId, String paymentMethodId)Get Apple Pay domainsApplePayInfogetApplePayDomains(String merchantId, String paymentMethodId, RequestOptions requestOptions)Get Apple Pay domainsPaymentMethodgetPaymentMethodDetails(String merchantId, String paymentMethodId)Get payment method detailsPaymentMethodgetPaymentMethodDetails(String merchantId, String paymentMethodId, RequestOptions requestOptions)Get payment method detailsPaymentMethodrequestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo)Request a payment methodPaymentMethodrequestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo, RequestOptions requestOptions)Request a payment methodPaymentMethodupdatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo)Update a payment methodPaymentMethodupdatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo, RequestOptions requestOptions)Update a payment method-
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
-
PaymentMethodsMerchantLevelApi
public PaymentMethodsMerchantLevelApi(Client client)
Payment methods - merchant level constructor inpackage.- Parameters:
client-Client(required)
-
PaymentMethodsMerchantLevelApi
public PaymentMethodsMerchantLevelApi(Client client, String baseURL)
Payment methods - merchant level 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
-
addApplePayDomain
public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) throws ApiException, IOException
Add an Apple Pay domain- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)applePayInfo-ApplePayInfo(required)- Throws:
ApiException- if fails to make API callIOException
-
addApplePayDomain
public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo, RequestOptions requestOptions) throws ApiException, IOException
Add an Apple Pay domain- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)applePayInfo-ApplePayInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Throws:
ApiException- if fails to make API callIOException
-
getAllPaymentMethods
public PaymentMethodResponse getAllPaymentMethods(String merchantId) throws ApiException, IOException
Get all payment methods- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)- Returns:
PaymentMethodResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllPaymentMethods
public PaymentMethodResponse getAllPaymentMethods(String merchantId, String storeId, String businessLineId, Integer pageSize, Integer pageNumber, RequestOptions requestOptions) throws ApiException, IOException
Get all payment methods- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)storeId-StringQuery: The unique identifier of the store for which to return the payment methods. (optional)businessLineId-StringQuery: The unique identifier of the Business Line for which to return the payment methods. (optional)pageSize-IntegerQuery: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional)pageNumber-IntegerQuery: The number of the page to fetch. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentMethodResponse- Throws:
ApiException- if fails to make API callIOException
-
getApplePayDomains
public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId) throws ApiException, IOException
Get Apple Pay domains- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)- Returns:
ApplePayInfo- Throws:
ApiException- if fails to make API callIOException
-
getApplePayDomains
public ApplePayInfo getApplePayDomains(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException
Get Apple Pay domains- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ApplePayInfo- Throws:
ApiException- if fails to make API callIOException
-
getPaymentMethodDetails
public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId) throws ApiException, IOException
Get payment method details- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
getPaymentMethodDetails
public PaymentMethod getPaymentMethodDetails(String merchantId, String paymentMethodId, RequestOptions requestOptions) throws ApiException, IOException
Get payment method details- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
requestPaymentMethod
public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo) throws ApiException, IOException
Request a payment method- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodSetupInfo-PaymentMethodSetupInfo(required)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
requestPaymentMethod
public PaymentMethod requestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo, RequestOptions requestOptions) throws ApiException, IOException
Request a payment method- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodSetupInfo-PaymentMethodSetupInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentMethod
public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo) throws ApiException, IOException
Update a payment method- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)updatePaymentMethodInfo-UpdatePaymentMethodInfo(required)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentMethod
public PaymentMethod updatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo, RequestOptions requestOptions) throws ApiException, IOException
Update a payment method- Parameters:
merchantId-StringThe unique identifier of the merchant account. (required)paymentMethodId-StringThe unique identifier of the payment method. (required)updatePaymentMethodInfo-UpdatePaymentMethodInfo(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentMethod- Throws:
ApiException- if fails to make API callIOException
-
-