Interface PunchOutCredentialService

All Known Implementing Classes:
DefaultPunchOutCredentialService

public interface PunchOutCredentialService
Service to manage entity PunchOutCredentialModel.
  • Method Details

    • getPunchOutCredential

      PunchOutCredentialModel getPunchOutCredential(String domain, String identity)
      Get an PunchOutCredentialModel based on the domain and identity.
      Parameters:
      domain - The domain of this identity (e.g.: DUNS).
      identity - The value of the identity.
      Returns:
      The PunchOutCredentialModel or null, if it cannot be found.
    • getCustomerForCredential

      B2BCustomerModel getCustomerForCredential(Credential credential)
      Get the first valid B2BCustomerModel that is mapped for one of the pair domain and identity contained in the credential and validate the shared secret.
      Parameters:
      credential - The credential that contains domain and identity.
      Returns:
      The B2BCustomerModel or null, if the credential is not mapped for any customer.
    • getCustomerForCredentialNoAuth

      B2BCustomerModel getCustomerForCredentialNoAuth(Credential credential)
      Get the first valid B2BCustomerModel that is mapped for one of the pair domain and identity contained in the credential without validating the shared secret.
      Parameters:
      credential - The credential that contains domain and identity.
      Returns:
      The B2BCustomerModel or null, if the credential is not mapped for any customer.
    • getExpiredPunchOutCredentials

      List<PunchOutCredentialModel> getExpiredPunchOutCredentials()
      Get the expired credentials that shared secret has not changed for configured days.
      Returns:
      A bundle of PunchOutCredentialModel or empty list, if there is not any expired credentials.