Interface SapPartnerService
- All Known Implementing Classes:
DefaultSAPPartnerService,EmptySapPartnerService
public interface SapPartnerService
Allows to access customer and contact information in the context of SAP synchronous order management.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieving delivery addresses belonging to the current session customer.getB2BCustomerForSapContactId(String sapContactId) Retrieving the hybris representation of a customer.Retrieving contact personRetrieving sold-togetHybrisAddressForSAPCustomerId(String sapCustomerId) Retrieving hybris address for an SAP customer (who can act as sold-to or ship-to party in the system)
-
Method Details
-
getCurrentSapCustomerId
String getCurrentSapCustomerId()Retrieving sold-to- Returns:
- Technical SAP key of sold-to party connected to the current hybris user
-
getCurrentSapContactId
String getCurrentSapContactId()Retrieving contact person- Returns:
- Technical SAP key of contact person connected to the current hybris user
-
getHybrisAddressForSAPCustomerId
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
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
Retrieving the hybris representation of a customer.- Parameters:
sapContactId- Technical key of an SAP contact person- Returns:
- Customer customer
-