Updates the commerce shipment item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

@param commerceShipmentItem the commerce shipment item
@return the commerce shipment item that was updated
518147
@Override
	public com.liferay.commerce.model.CommerceShipmentItem updateCommerceShipmentItem(
		com.liferay.commerce.model.CommerceShipmentItem commerceShipmentItem) {
		return _commerceShipmentItemLocalService.updateCommerceShipmentItem(commerceShipmentItem);
	}
821747
@Override
	public com.liferay.commerce.model.CommerceShippingMethod createCommerceShippingMethod(
		long commerceShippingMethodId) {
		return _commerceShippingMethodLocalService.createCommerceShippingMethod(commerceShippingMethodId);
	}
160014
@Override
	public com.liferay.commerce.model.CommerceShippingMethod updateCommerceShippingMethod(
		com.liferay.commerce.model.CommerceShippingMethod commerceShippingMethod) {
		return _commerceShippingMethodLocalService.updateCommerceShippingMethod(commerceShippingMethod);
	}
80773
@Override
	public CommerceShippingMethod create(long commerceShippingMethodId) {
		CommerceShippingMethod commerceShippingMethod = new CommerceShippingMethodImpl();

		commerceShippingMethod.setNew(true);
		commerceShippingMethod.setPrimaryKey(commerceShippingMethodId);

		commerceShippingMethod.setCompanyId(companyProvider.getCompanyId());

		return commerceShippingMethod;
	}
127496
def update_shipment(self, resource_id, data):
        """"""
        return Shipments(self.client).on(self).update(resource_id, data)
1366294
public static com.liferay.commerce.model.CommerceOrderPayment addCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().addCommerceOrderPayment(commerceOrderPayment);
	}
711560
@Override
	public void clearCache(CommerceShipment commerceShipment) {
		entityCache.removeResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentImpl.class, commerceShipment.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
677895
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRel updateCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) {
		return commerceDiscountRelPersistence.update(commerceDiscountRel);
	}
1284231
public static com.liferay.commerce.shipping.engine.fixed.model.CommerceShippingFixedOptionRel addCommerceShippingFixedOptionRel(
		com.liferay.commerce.shipping.engine.fixed.model.CommerceShippingFixedOptionRel commerceShippingFixedOptionRel) {
		return getService()
				   .addCommerceShippingFixedOptionRel(commerceShippingFixedOptionRel);
	}
1052763
@Override
	public List<CommerceShipmentItem> findByCommerceShipment(
		long commerceShipmentId) {
		return findByCommerceShipment(commerceShipmentId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
476442
public function updateShipmentOrder($shipmentNumber) {
		if(is_array($shipmentNumber) || $this->countShipmentOrders() > 1) {
			$this->addError(__FUNCTION__ . ': Updating Shipments is a Single-Operation only!');

			return false;
		}

		switch($this->getMayor()) {
			case 1:
				$data = null;
				break;
			case 2:
			default:
				if($this->countShipmentOrders() < 1)
					$data = $this->createShipmentClass_v2_legacy($shipmentNumber);
				else
					$data = $this->createShipmentClass_v2($shipmentNumber);
		}

		$response = null;

		// Create Shipment
		try {
			$response = $this->sendUpdateRequest($data);
		} catch(Exception $e) {
			$this->addError($e->getMessage());

			return false;
		}

		if(is_soap_fault($response)) {
			$this->addError($response->faultstring);

			return false;
		} else
			return new Response($this->getVersion(), $response);
	}
1138203
@Override
	public int countByCommerceShippingMethodId(long commerceShippingMethodId) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCESHIPPINGMETHODID;

		Object[] finderArgs = new Object[] { commerceShippingMethodId };

		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

		if (count == null) {
			StringBundler query = new StringBundler(2);

			query.append(_SQL_COUNT_COMMERCESHIPPINGFIXEDOPTION_WHERE);

			query.append(_FINDER_COLUMN_COMMERCESHIPPINGMETHODID_COMMERCESHIPPINGMETHODID_2);

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(commerceShippingMethodId);

				count = (Long)q.uniqueResult();

				finderCache.putResult(finderPath, finderArgs, count);
			}
			catch (Exception e) {
				finderCache.removeResult(finderPath, finderArgs);

				throw processException(e);
			}
			finally {
				closeSession(session);
			}
		}

		return count.intValue();
	}
1316269
public static com.liferay.commerce.model.CommerceShipment deleteCommerceShipment(
		com.liferay.commerce.model.CommerceShipment commerceShipment) {
		return getService().deleteCommerceShipment(commerceShipment);
	}
735462
@Override
	@Transactional(enabled = false)
	public CommerceShipment createCommerceShipment(long commerceShipmentId) {
		return commerceShipmentPersistence.create(commerceShipmentId);
	}
330582
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceShipment addCommerceShipment(
		CommerceShipment commerceShipment) {
		commerceShipment.setNew(true);

		return commerceShipmentPersistence.update(commerceShipment);
	}
1238869
@Override
	public List<CommerceShipmentItem> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
998529
public static com.liferay.commerce.model.CommerceShipmentItem createCommerceShipmentItem(
		long commerceShipmentItemId) {
		return getService().createCommerceShipmentItem(commerceShipmentItemId);
	}