Package com.adyen.service.management
Class PaymentMethodsMerchantLevel
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.ApiKeyAuthenticatedService
-
- com.adyen.service.management.PaymentMethodsMerchantLevel
-
public class PaymentMethodsMerchantLevel extends ApiKeyAuthenticatedService
-
-
Constructor Summary
Constructors Constructor Description PaymentMethodsMerchantLevel(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo)Add an Apple Pay domainPaymentMethodResponsegetAllPaymentMethods(String merchantId, Map<String,String> queryParams)Get all payment methodsApplePayInfogetApplePayDomains(String merchantId, String paymentMethodId)Get Apple Pay domainsPaymentMethodgetPaymentMethodDetails(String merchantId, String paymentMethodId)Get payment method detailsPaymentMethodrequestPaymentMethod(String merchantId, PaymentMethodSetupInfo paymentMethodSetupInfo)Request a payment methodPaymentMethodupdatePaymentMethod(String merchantId, String paymentMethodId, UpdatePaymentMethodInfo updatePaymentMethodInfo)Update a payment method-
Methods inherited from class com.adyen.Service
getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
PaymentMethodsMerchantLevel
public PaymentMethodsMerchantLevel(Client client)
-
-
Method Detail
-
getAllPaymentMethods
public PaymentMethodResponse getAllPaymentMethods(String merchantId, Map<String,String> queryParams) throws ApiException, IOException
Get all payment methods- Parameters:
merchantId- The unique identifier of the merchant account. (required)queryParams- (optional) storeId: The unique identifier of the store for which to return the payment methods. (optional) businessLineId: The unique identifier of the Business Line for which to return the payment methods. (optional) pageSize: The number of items to have on a page, maximum 100. The default is 10 items on a page. (optional) pageNumber: The number of the page to fetch. (optional)- Returns:
- PaymentMethodResponse
- 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- The unique identifier of the merchant account. (required)paymentMethodId- The unique identifier of the payment method. (required)- Returns:
- PaymentMethod
- 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- The unique identifier of the merchant account. (required)paymentMethodId- The unique identifier of the payment method. (required)- Returns:
- ApplePayInfo
- 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- The unique identifier of the merchant account. (required)paymentMethodId- The unique identifier of the payment method. (required)updatePaymentMethodInfo- (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- The unique identifier of the merchant account. (required)paymentMethodSetupInfo- (optional)- Returns:
- PaymentMethod
- Throws:
ApiException- if fails to make API callIOException
-
addApplePayDomain
public void addApplePayDomain(String merchantId, String paymentMethodId, ApplePayInfo applePayInfo) throws ApiException, IOException
Add an Apple Pay domain- Parameters:
merchantId- The unique identifier of the merchant account. (required)paymentMethodId- The unique identifier of the payment method. (required)applePayInfo- (optional)- Throws:
ApiException- if fails to make API callIOException
-
-