Class DisputeManagementClient

java.lang.Object
com.worldline.acquiring.sdk.java.ApiResource
com.worldline.acquiring.sdk.java.v1.disputemanagement.DisputeManagementClient

public class DisputeManagementClient extends ApiResource
DisputeManagement client. Thread-safe.
  • Constructor Details

  • Method Details

    • searchDisputes

      public SearchDisputesResponse searchDisputes(SearchDisputesRequest body)
      Resource /dispute-management/v1/disputes/search - Search Disputes
      Parameters:
      body - SearchDisputesRequest
      Returns:
      SearchDisputesResponse
      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
    • searchDisputes

      public SearchDisputesResponse searchDisputes(SearchDisputesRequest body, CallContext context)
      Resource /dispute-management/v1/disputes/search - Search Disputes
      Parameters:
      body - SearchDisputesRequest
      context - CallContext
      Returns:
      SearchDisputesResponse
      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
    • getDispute

      public DisputeResponse getDispute(String disputeId, GetDisputeParams query)
      Resource /dispute-management/v1/disputes/{disputeId} - Retrieve Dispute
      Parameters:
      disputeId - String
      query - GetDisputeParams
      Returns:
      DisputeResponse
      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
    • getDispute

      public DisputeResponse getDispute(String disputeId, GetDisputeParams query, CallContext context)
      Resource /dispute-management/v1/disputes/{disputeId} - Retrieve Dispute
      Parameters:
      disputeId - String
      query - GetDisputeParams
      context - CallContext
      Returns:
      DisputeResponse
      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
    • acceptDisputeLiability

      public DisputeResponse acceptDisputeLiability(String disputeId, AcceptDisputeLiabilityRequest body)
      Resource /dispute-management/v1/disputes/{disputeId}/accept - Accept Liability
      Parameters:
      disputeId - String
      body - AcceptDisputeLiabilityRequest
      Returns:
      DisputeResponse
      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
    • acceptDisputeLiability

      public DisputeResponse acceptDisputeLiability(String disputeId, AcceptDisputeLiabilityRequest body, CallContext context)
      Resource /dispute-management/v1/disputes/{disputeId}/accept - Accept Liability
      Parameters:
      disputeId - String
      body - AcceptDisputeLiabilityRequest
      context - CallContext
      Returns:
      DisputeResponse
      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
    • submitEvidence

      public DisputeResponse submitEvidence(String disputeId, SubmitEvidenceRequest body)
      Resource /dispute-management/v1/disputes/{disputeId}/submit-evidence - Submit Evidence
      Parameters:
      disputeId - String
      body - SubmitEvidenceRequest
      Returns:
      DisputeResponse
      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
    • submitEvidence

      public DisputeResponse submitEvidence(String disputeId, SubmitEvidenceRequest body, CallContext context)
      Resource /dispute-management/v1/disputes/{disputeId}/submit-evidence - Submit Evidence
      Parameters:
      disputeId - String
      body - SubmitEvidenceRequest
      context - CallContext
      Returns:
      DisputeResponse
      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