public class RefundsClient extends ApiResource
clientMetaInfo, communicator| Constructor and Description | 
|---|
RefundsClient(ApiResource parent,
             Map<String,String> pathContext)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
approve(String refundId,
       ApproveRefundRequest body)
Resource /{merchantId}/refunds/{refundId}/approve
 - Approve refund 
 | 
void | 
approve(String refundId,
       ApproveRefundRequest body,
       CallContext context)
Resource /{merchantId}/refunds/{refundId}/approve
 - Approve refund 
 | 
void | 
cancel(String refundId)
Resource /{merchantId}/refunds/{refundId}/cancel
 - Cancel refund 
 | 
void | 
cancel(String refundId,
      CallContext context)
Resource /{merchantId}/refunds/{refundId}/cancel
 - Cancel refund 
 | 
void | 
cancelapproval(String refundId)
Resource /{merchantId}/refunds/{refundId}/cancelapproval
 - Undo approve refund 
 | 
void | 
cancelapproval(String refundId,
              CallContext context)
Resource /{merchantId}/refunds/{refundId}/cancelapproval
 - Undo approve refund 
 | 
FindRefundsResponse | 
find(FindRefundsParams query)
Resource /{merchantId}/refunds
 - Find refunds 
 | 
FindRefundsResponse | 
find(FindRefundsParams query,
    CallContext context)
Resource /{merchantId}/refunds
 - Find refunds 
 | 
RefundResponse | 
get(String refundId)
Resource /{merchantId}/refunds/{refundId}
 - Get refund 
 | 
RefundResponse | 
get(String refundId,
   CallContext context)
Resource /{merchantId}/refunds/{refundId}
 - Get refund 
 | 
getClientHeaders, instantiateUripublic RefundsClient(ApiResource parent, Map<String,String> pathContext)
public FindRefundsResponse find(FindRefundsParams query)
query - FindRefundsParamsValidationException - 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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic FindRefundsResponse find(FindRefundsParams query, CallContext context)
query - FindRefundsParamscontext - CallContextIdempotenceException - if an idempotent request caused a conflict (HTTP status code 409)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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic RefundResponse get(String refundId)
refundId - StringValidationException - 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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic RefundResponse get(String refundId, CallContext context)
refundId - Stringcontext - CallContextIdempotenceException - if an idempotent request caused a conflict (HTTP status code 409)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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void approve(String refundId, ApproveRefundRequest body)
refundId - Stringbody - ApproveRefundRequestValidationException - 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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void approve(String refundId, ApproveRefundRequest body, CallContext context)
refundId - Stringbody - ApproveRefundRequestcontext - CallContextIdempotenceException - if an idempotent request caused a conflict (HTTP status code 409)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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void cancel(String refundId)
refundId - StringValidationException - 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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void cancel(String refundId, CallContext context)
refundId - Stringcontext - CallContextIdempotenceException - if an idempotent request caused a conflict (HTTP status code 409)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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void cancelapproval(String refundId)
refundId - StringValidationException - 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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorpublic void cancelapproval(String refundId, CallContext context)
refundId - Stringcontext - CallContextIdempotenceException - if an idempotent request caused a conflict (HTTP status code 409)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 Global Collect platform,
            the Worldline Global Collect 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 Global Collect platform returned any other errorCopyright © 2025 Worldline Global Collect. All rights reserved.