Erro encontrado em StockKeepingUnitInsertUpdate
o estranho é que é o mesmo erro que encontrei em ProductInsertUpdate
a mesma tag - Name.
Alguem?
try
d := TXSDecimal.Create;
d.DecimalString := '1.350';
ser:= GetIService(false,'',HTTPRIO1);
objProduto := StockKeepingUnitInsertUpdate.Create;
objProduto.stockKeepingUnitVO := StockKeepingUnitDTO2.Create;
with objProduto.stockKeepingUnitVO do begin
//<tem:stockKeepingUnitVO>
//<!--int, CommercialConditionId = Condição Comercial de SKU -->
CommercialConditionId := 1; //</vtex:CommercialConditionId>
//<!--decimal, cubagem = peso cubico -->
// CubicWeight:=1.780; //</vtex:CubicWeight>
//<!--decimal, altura com embalagem e metros-->
// Height:=1.800; //</vtex:Height>
//<!--int, opcional, identificador da sku no ERP caso int-->
Id :=00123456; //</vtex:Id>
//<!--bool, se não atender requisitos de ativação(imagem, preço, estoque, espec., outros reqs obrig.), não será ativado-->
IsActive := true; //</vtex:IsActive>
//<!--bool, disponibilidade -->
IsAvaiable := true; //</vtex:IsAvaiable>
//<!--bool, é um KIT? -->
IsKit:=false; //</vtex:IsKit>
//<!--decimal, comprimento com embalagem em metros -->
// Length:=1.52; //</vtex:Length>
//<!--decimal, ** ler obs -->
// ListPrice:=150.00; //</vtex:ListPrice>
//<!--number, prefixo do estoque (id estoque = 1_1, mandar 1) -->
ModalId:=1; //</vtex:ModalId>
//<!--string, opicional, tipo de carga, necessita configuração de transportadora especial quando preenchido -->
ModalType:='Vidro'; //</vtex:ModalType>
//<!--string, nome da SKU -->
Name:='"Vaso Artesanal de Barro Vermelho Escuro"';// </vtex:Name>
//<!--decimal, preço, "POR", opcional **ler obs-->
Price:=d; //</vtex:Price>
//<!--int, identificador do produto pai da SKU -->
ProductId:=31018369; //</vtex:ProductId>
//<!--decimal, peso real em kilos -->
RealHeight:=d;//</vtex:RealHeight>
//<!--decimal, altural real em metros -->
RealLength:=d; //</vtex:RealLength>
//<!--decimal, peso real em kilos -->
RealWeightKg:=d;//</vtex:RealWeightKg>
//<!--decimal, comprimento real em metros -->
RealWidth:=d;//</vtex:RealWidth>
//<!--string, identificador da SKU no ERP -->
RefId:='00123456'; //</vtex:RefId>
//<!--number, opcional, numero de pontos dessa SKU -->
RewardValue:=d;//</vtex:RewardValue>
//<!--lista de string, EANs do produto -->
//StockKeepingUnitEans
// StockKeepingUnitEanDTO
// Ean:='0123456789123';
// StockKeepingUnitEanDTO>
//StockKeepingUnitEans>
//<!--int, unidade de multipliçao para venda -->
UnitMultiplier:=d;//</vtex:UnitMultiplier>
//<!--decimal, peso em kilos-->
WeightKg:=d; //</vtex:WeightKg>
//<!--decimal, largura com embalagem em metros -->
Width:=d; //</vtex:Width>
//</tem:stockKeepingUnitVO>
end;