Interface PunchOutCredentialService

    • Method Detail

      • getPunchOutCredential

        PunchOutCredentialModel getPunchOutCredential​(java.lang.String domain,
                                                      java.lang.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.