Package com.adyen.service.checkout
Class PaymentLinksApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.checkout.PaymentLinksApi
-
public class PaymentLinksApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description PaymentLinksApi(Client client)Payment links constructor inpackage.PaymentLinksApi(Client client, String baseURL)Payment links constructor inpackage.
-
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
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
PaymentLinksApi
public PaymentLinksApi(Client client)
Payment links constructor inpackage.- Parameters:
client-Client(required)
-
-
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
-
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
-
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
-
-