Package com.adyen.service.checkout
Class PaymentLinksApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.checkout.PaymentLinksApi
-
public class PaymentLinksApi extends Service
-
-
Constructor Summary
Constructors Constructor Description PaymentLinksApi(Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentLinkResponsegetPaymentLink(String linkId)Get a payment linkPaymentLinkResponsegetPaymentLink(String linkId, RequestOptions requestOptions)Get a payment linkPaymentLinkResponsepaymentLinks(PaymentLinkRequest paymentLinkRequest)Create a payment linkPaymentLinkResponsepaymentLinks(PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions)Create a payment linkPaymentLinkResponseupdatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest)Update the status of a payment linkPaymentLinkResponseupdatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest, RequestOptions requestOptions)Update the status of a payment link-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Constructor Detail
-
PaymentLinksApi
public PaymentLinksApi(Client client)
-
-
Method Detail
-
getPaymentLink
public PaymentLinkResponse getPaymentLink(String linkId) throws ApiException, IOException
Get a payment link- Parameters:
linkId-StringUnique identifier of the payment link. (required)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
getPaymentLink
public PaymentLinkResponse getPaymentLink(String linkId, RequestOptions requestOptions) throws ApiException, IOException
Get a payment link- Parameters:
linkId-StringUnique identifier of the payment link. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentLink
public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest) throws ApiException, IOException
Update the status of a payment link- Parameters:
linkId-StringUnique identifier of the payment link. (required)updatePaymentLinkRequest-UpdatePaymentLinkRequest(required)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
updatePaymentLink
public PaymentLinkResponse updatePaymentLink(String linkId, UpdatePaymentLinkRequest updatePaymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException
Update the status of a payment link- Parameters:
linkId-StringUnique identifier of the payment link. (required)updatePaymentLinkRequest-UpdatePaymentLinkRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
paymentLinks
public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest) throws ApiException, IOException
Create a payment link- Parameters:
paymentLinkRequest-PaymentLinkRequest(required)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
paymentLinks
public PaymentLinkResponse paymentLinks(PaymentLinkRequest paymentLinkRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a payment link- Parameters:
paymentLinkRequest-PaymentLinkRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaymentLinkResponse- Throws:
ApiException- if fails to make API callIOException
-
-