Class DefaultB2BPartnerContributor
java.lang.Object
de.hybris.platform.sap.orderexchange.outbound.impl.DefaultPartnerContributor
de.hybris.platform.sap.orderexchangeb2b.outbound.impl.DefaultB2BPartnerContributor
- All Implemented Interfaces:
RawItemContributor<OrderModel>
Partner contributor for B2B orders to be replicated to SAP ERP system. Considers partner roles soldTo (AG), contact
(AP), billTo (RE) and shipTo (WE)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AddressModeladdressForPartnerRole(OrderModel order, PartnerRoles partnerRole) protected StringcontactFromOrder(OrderModel order) createAddressRow(OrderModel order, PartnerRoles partnerRole, String addressNumber) createB2BRows(OrderModel order) createPartnerRow(OrderModel order, PartnerRoles partnerRole, String partnerId) createRows(OrderModel order) de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> protected booleanisB2BOrder(OrderModel orderModel) protected voidmapAddressData(OrderModel order, AddressModel address, Map<String, Object> row) voidsetB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) protected StringsoldToFromOrder(OrderModel order) Methods inherited from class de.hybris.platform.sap.orderexchange.outbound.impl.DefaultPartnerContributor
getB2CCustomerHelper, getBatchIdAttributes, getColumns, getShipToAddressNumber, getSoldToAddressNumber, mapAddressData, setB2CCustomerHelper, setBatchIdAttributes
-
Constructor Details
-
DefaultB2BPartnerContributor
public DefaultB2BPartnerContributor()
-
-
Method Details
-
createRows
- Specified by:
createRowsin interfaceRawItemContributor<OrderModel>- Overrides:
createRowsin classDefaultPartnerContributor- Parameters:
order- The item model from which parts of the CSV string shall be created- Returns:
- Name / value pairs. The names must correspond to the column names as returned in
RawItemContributor.getColumns(). Each list entry corresponds to one line of the CSV string
-
createB2BRows
-
contactFromOrder
-
soldToFromOrder
-
createPartnerRow
protected Map<String,Object> createPartnerRow(OrderModel order, PartnerRoles partnerRole, String partnerId) -
createAddressRow
protected Map<String,Object> createAddressRow(OrderModel order, PartnerRoles partnerRole, String addressNumber) -
addressForPartnerRole
-
mapAddressData
-
isB2BOrder
-
getB2bUnitService
public de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService() -
setB2bUnitService
public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService)
-