code: public static com.liferay.commerce.model.CPDefinitionInventory updateCPDefinitionInventory(
  		com.liferay.commerce.model.CPDefinitionInventory cpDefinitionInventory) {
  		return getService().updateCPDefinitionInventory(cpDefinitionInventory);
  	}
docs: Updates the cp definition inventory in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
  
  @param cpDefinitionInventory the cp definition inventory
  @return the cp definition inventory that was updated