Class CardRefundsClient
java.lang.Object
com.worldline.acquiring.sdk.java.ApiResource
com.worldline.acquiring.sdk.java.v1.acquirer.merchant.cardrefunds.CardRefundsClient
CardRefunds client. Thread-safe.
-
Field Summary
Fields inherited from class com.worldline.acquiring.sdk.java.ApiResource
communicator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaptureRefund(String refundId, ApiCaptureRequestForRefund body) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/captures - Capture refundcaptureRefund(String refundId, ApiCaptureRequestForRefund body, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/captures - Capture refundgetRefund(String refundId, GetRefundParams query) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refundgetRefund(String refundId, GetRefundParams query, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refundResource /processing/v1/{acquirerId}/{merchantId}/refunds - Create standalone card refundprocessStandaloneRefund(ApiRefundRequest body, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds - Create standalone card refundreverseRefundAuthorization(String refundId, ApiRefundReversalRequest body) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/authorization-reversals - Reverse refund authorizationreverseRefundAuthorization(String refundId, ApiRefundReversalRequest body, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/authorization-reversals - Reverse refund authorizationMethods inherited from class com.worldline.acquiring.sdk.java.ApiResource
instantiateUri
-
Constructor Details
-
CardRefundsClient
-
-
Method Details
-
processStandaloneRefund
Resource /processing/v1/{acquirerId}/{merchantId}/refunds - Create standalone card refund- Parameters:
body- ApiRefundRequest- Returns:
- ApiRefundResponse
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
processStandaloneRefund
Resource /processing/v1/{acquirerId}/{merchantId}/refunds - Create standalone card refund- Parameters:
body- ApiRefundRequestcontext- CallContext- Returns:
- ApiRefundResponse
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
getRefund
Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refund- Parameters:
refundId- Stringquery- GetRefundParams- Returns:
- ApiRefundResource
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
getRefund
Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refund- Parameters:
refundId- Stringquery- GetRefundParamscontext- CallContext- Returns:
- ApiRefundResource
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
captureRefund
Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/captures - Capture refund- Parameters:
refundId- Stringbody- ApiCaptureRequestForRefund- Returns:
- ApiActionResponseForRefund
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
captureRefund
public ApiActionResponseForRefund captureRefund(String refundId, ApiCaptureRequestForRefund body, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/captures - Capture refund- Parameters:
refundId- Stringbody- ApiCaptureRequestForRefundcontext- CallContext- Returns:
- ApiActionResponseForRefund
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
reverseRefundAuthorization
public ApiActionResponseForRefund reverseRefundAuthorization(String refundId, ApiRefundReversalRequest body) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/authorization-reversals - Reverse refund authorization- Parameters:
refundId- Stringbody- ApiRefundReversalRequest- Returns:
- ApiActionResponseForRefund
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-
reverseRefundAuthorization
public ApiActionResponseForRefund reverseRefundAuthorization(String refundId, ApiRefundReversalRequest body, CallContext context) Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/authorization-reversals - Reverse refund authorization- Parameters:
refundId- Stringbody- ApiRefundReversalRequestcontext- CallContext- Returns:
- ApiActionResponseForRefund
- Throws:
ValidationException- if the request was not correct and couldn't be processed (HTTP status code 400)AuthorizationException- if the request was not allowed (HTTP status code 403)ReferenceException- if an object was attempted to be referenced that doesn't exist or has been removed, or there was a conflict (HTTP status code 404, 409 or 410)PlatformException- if something went wrong at the Worldline Acquiring platform, the Worldline Acquiring platform was unable to process a message from a downstream partner/acquirer, or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)ApiException- if the Worldline Acquiring platform returned any other error
-