EcoResProductService erProdSvc;
EcoResEcoResProduct EcoResProd;
EcoResEcoResProduct_Product_Master ProdMast;
EcoResEcoResProduct_Translation Transalation;
EcoResEcoResProduct_Identifier Identifiers;
EcoResEcoResProduct_ProductDimGroup prodDimGroup;
;
erProdSvc=EcoResProductService::construct();
EcoResProd=new EcoResEcoResProduct();
ProdMast=new EcoResEcoResProduct_Product_Master();
ProdMast.parmDisplayProductNumber("A3");
ProdMast.parmProductType(EcoResProductType::Item);
ProdMast.parmSearchName("A3 name");
Transalation=ProdMast.createTranslation().addNew();
Transalation.parmDescription("A3 name");
Transalation.parmLanguageId("ES-MX");
Transalation.parmName("A3 name");
Identifiers=ProdMast.createIdentifier().addNew();
Identifiers.parmProductNumber("A3");
prodDimGroup=ProdMast.createProductDimGroup().addNew();
prodDimGroup.parmProduct("A3");
prodDimGroup.parmProductDimensionGroup("Con-Dim");
ProdMast.parmVariantConfigurationTechnology(EcoResVariantConfigurationTechnologyType::PredefinedVariants);
EcoResProd.createProduct().add(ProdMast);
erProdSvc.create(EcoResProd);
No hay comentarios:
Publicar un comentario