Interface SapPartnerService

  • All Known Implementing Classes:
    DefaultSAPPartnerService

    public interface SapPartnerService
    Allows to access customer and contact information in the context of SAP synchronous order management.
    • Method Detail

      • getCurrentSapCustomerId

        java.lang.String getCurrentSapCustomerId()
        Retrieving sold-to
        Returns:
        Technical SAP key of sold-to party connected to the current hybris user
      • getCurrentSapContactId

        java.lang.String getCurrentSapContactId()
        Retrieving contact person
        Returns:
        Technical SAP key of contact person connected to the current hybris user
      • getHybrisAddressForSAPCustomerId

        AddressModel getHybrisAddressForSAPCustomerId​(java.lang.String sapCustomerId)
        Retrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)
        Parameters:
        sapCustomerId - Technical key of SAP customer
        Returns:
        hybris representation of the customer's address
      • getAllowedDeliveryAddresses

        java.util.Collection<AddressModel> getAllowedDeliveryAddresses()
        Retrieving delivery addresses belonging to the current session customer. These addresses correspond to ship-to parties assigned to the current customer in the SAP back end
        Returns:
        Possible delivery addresses
      • getB2BCustomerForSapContactId

        CustomerModel getB2BCustomerForSapContactId​(java.lang.String sapContactId)
        Retrieving the hybris representation of a customer.
        Parameters:
        sapContactId - Technical key of an SAP contact person
        Returns:
        Customer customer