java.lang.Object
com.worldline.acquiring.sdk.java.ApiResource
com.worldline.acquiring.sdk.java.v1.acquirer.merchant.cardrefunds.CardRefundsClient

public class CardRefundsClient extends ApiResource
CardRefunds client. Thread-safe.
  • Constructor Details

  • Method Details

    • processStandaloneRefund

      public ApiRefundResponse processStandaloneRefund(ApiRefundRequest body)
      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

      public ApiRefundResponse processStandaloneRefund(ApiRefundRequest body, CallContext context)
      Resource /processing/v1/{acquirerId}/{merchantId}/refunds - Create standalone card refund
      Parameters:
      body - ApiRefundRequest
      context - 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

      public ApiRefundResource getRefund(String refundId, GetRefundParams query)
      Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refund
      Parameters:
      refundId - String
      query - 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

      public ApiRefundResource getRefund(String refundId, GetRefundParams query, CallContext context)
      Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId} - Retrieve card refund
      Parameters:
      refundId - String
      query - GetRefundParams
      context - 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

      public ApiActionResponseForRefund captureRefund(String refundId, ApiCaptureRequestForRefund body)
      Resource /processing/v1/{acquirerId}/{merchantId}/refunds/{refundId}/captures - Capture refund
      Parameters:
      refundId - String
      body - 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 - String
      body - ApiCaptureRequestForRefund
      context - 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 - String
      body - 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 - String
      body - ApiRefundReversalRequest
      context - 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