Class VocabularyOrderMetadataService
java.lang.Object
com.persequor.saga.modules.izkm.services.VocabularyOrderMetadataService
- All Implemented Interfaces:
IIzkmOrderMetadataService
-
Constructor Summary
ConstructorsConstructorDescriptionVocabularyOrderMetadataService
(com.persequor.extension.vocabulary.IVocabularyRepository vocabularyRepository, DefaultIzkmNamespaceConfig namespaceConfig) -
Method Summary
Modifier and TypeMethodDescriptionfillProductInfo
(String gtin, com.persequor.saga.modules.id.model.ExtraParams extraParams) fillProductionInfo
(String productionLineId, com.persequor.saga.modules.id.model.ExtraParams extraParams) getBrandCode
(com.persequor.event.Event event) Metadata to populate data/field in order for IZKM.getGtin
(com.persequor.event.Event event) getIzkmOrderMetadata
(com.persequor.saga.modules.id.issuer.CreateOrderRequest request, IzkmIssuerParameters parameters) Metadata to populate data/field in order for IZKM.getProductInfo
(com.persequor.event.Event event) Metadata to populate data/field in order for IZKM.getProductionLineId
(com.persequor.event.Event event) getProductionOrderId
(com.persequor.event.Event event) getProductType
(com.persequor.event.Event event)
-
Constructor Details
-
VocabularyOrderMetadataService
@Inject public VocabularyOrderMetadataService(com.persequor.extension.vocabulary.IVocabularyRepository vocabularyRepository, DefaultIzkmNamespaceConfig namespaceConfig)
-
-
Method Details
-
getIzkmOrderMetadata
public OrderData getIzkmOrderMetadata(com.persequor.saga.modules.id.issuer.CreateOrderRequest request, IzkmIssuerParameters parameters) Description copied from interface:IIzkmOrderMetadataService
Metadata to populate data/field in order for IZKM. Mandatory metadata keys that MUST be present in returned map:template-id
1-12mrp
6 digitsproduct-type
product-description
product-sku
factory-id
factory-country
- Specified by:
getIzkmOrderMetadata
in interfaceIIzkmOrderMetadataService
- Returns:
- metadata with mandatory keys present to populate IZKM order request
-
getProductType
- Specified by:
getProductType
in interfaceIIzkmOrderMetadataService
-
getBrandCode
Description copied from interface:IIzkmOrderMetadataService
Metadata to populate data/field in order for IZKM. Mandatory metadata keys that MUST be present in returned map:template-id
1-12mrp
6 digitsproduct-type
product-description
product-sku
- Specified by:
getBrandCode
in interfaceIIzkmOrderMetadataService
- Returns:
- metadata with mandatory keys present to populate IZKM order request
-
getProductInfo
Description copied from interface:IIzkmOrderMetadataService
Metadata to populate data/field in order for IZKM. Mandatory metadata keys that MUST be present in returned map:factory-id
factory-country
- Specified by:
getProductInfo
in interfaceIIzkmOrderMetadataService
- Returns:
- metadata with mandatory keys present to populate IZKM order request
-
getProductionLineId
- Specified by:
getProductionLineId
in interfaceIIzkmOrderMetadataService
-
getProductionOrderId
- Specified by:
getProductionOrderId
in interfaceIIzkmOrderMetadataService
-
fillProductInfo
public ProductData fillProductInfo(String gtin, com.persequor.saga.modules.id.model.ExtraParams extraParams) -
fillProductionInfo
public FactoryData fillProductionInfo(String productionLineId, com.persequor.saga.modules.id.model.ExtraParams extraParams) -
getGtin
-