Class DefaultSAPPartnerService

    • Constructor Detail

      • DefaultSAPPartnerService

        public DefaultSAPPartnerService()
    • Method Detail

      • getCurrentSapCustomerId

        public java.lang.String getCurrentSapCustomerId()
        Description copied from interface: SapPartnerService
        Retrieving sold-to
        Specified by:
        getCurrentSapCustomerId in interface SapPartnerService
        Returns:
        Technical SAP key of sold-to party connected to the current hybris user
      • getCurrentSapContactId

        public java.lang.String getCurrentSapContactId()
        Description copied from interface: SapPartnerService
        Retrieving contact person
        Specified by:
        getCurrentSapContactId in interface SapPartnerService
        Returns:
        Technical SAP key of contact person connected to the current hybris user
      • getHybrisAddressForSAPCustomerId

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

        public java.util.Collection<AddressModel> getAllowedDeliveryAddresses()
        Description copied from interface: SapPartnerService
        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
        Specified by:
        getAllowedDeliveryAddresses in interface SapPartnerService
        Returns:
        Possible delivery addresses
      • getB2BCustomerForSapContactId

        public B2BCustomerModel getB2BCustomerForSapContactId​(java.lang.String sapContactId)
        Description copied from interface: SapPartnerService
        Retrieving the hybris representation of a customer.
        Specified by:
        getB2BCustomerForSapContactId in interface SapPartnerService
        Parameters:
        sapContactId - Technical key of an SAP contact person
        Returns:
        Customer customer
      • setB2bCustomerService

        public void setB2bCustomerService​(B2BCustomerService b2bCustomerService)
      • setB2bUnitService

        public void setB2bUnitService​(B2BUnitService b2bUnitService)