I am creating some mock lineitems to the mock order object.
lineItem = new LineItem();
lineItem.setName(pItem.getTitle());
lineItem.setPrice((long) (pItem.getPrice() * 100));
lineItem.setUnitQty(pItem.getQuantity());
Log.d("demo1","quantity is "+lineItem.getUnitQty()); // get the correct amount
orderConnector.addCustomLineItem(order.getId(), lineItem, false);
Log.d("demo1", "quantity is " + lineItem.getUnitQty()); // get a null
As soon as I save the lineitem into order with orderConnector then the unit quantity seems to vanish. Could someone help me?
Thank you!