Adds the commerce address restriction to the database. Also notifies the appropriate model listeners.

@param commerceAddressRestriction the commerce address restriction
@return the commerce address restriction that was added
5424
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAddressRestriction addCommerceAddressRestriction(
		CommerceAddressRestriction commerceAddressRestriction) {
		commerceAddressRestriction.setNew(true);

		return commerceAddressRestrictionPersistence.update(commerceAddressRestriction);
	}
677895
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscountRel updateCommerceDiscountRel(
		CommerceDiscountRel commerceDiscountRel) {
		return commerceDiscountRelPersistence.update(commerceDiscountRel);
	}
197652
@Override
	public void removeByC_R(long commerceOrderId, boolean restricted) {
		for (CommerceOrderNote commerceOrderNote : findByC_R(commerceOrderId,
				restricted, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceOrderNote);
		}
	}
510094
public static com.liferay.commerce.model.CommerceAddress updateCommerceAddress(
		com.liferay.commerce.model.CommerceAddress commerceAddress) {
		return getService().updateCommerceAddress(commerceAddress);
	}
341813
public static void addCommerceAccountUserRels(long commerceAccountId,
		long[] userIds, String[] emailAddresses, long[] roleIds,
		com.liferay.portal.kernel.service.ServiceContext serviceContext)
		throws com.liferay.portal.kernel.exception.PortalException {
		getService()
			.addCommerceAccountUserRels(commerceAccountId, userIds,
			emailAddresses, roleIds, serviceContext);
	}
960626
@Override
	public CommerceAddress create(long commerceAddressId) {
		CommerceAddress commerceAddress = new CommerceAddressImpl();

		commerceAddress.setNew(true);
		commerceAddress.setPrimaryKey(commerceAddressId);

		commerceAddress.setCompanyId(companyProvider.getCompanyId());

		return commerceAddress;
	}
1224409
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAccountUserRel addCommerceAccountUserRel(
		CommerceAccountUserRel commerceAccountUserRel) {
		commerceAccountUserRel.setNew(true);

		return commerceAccountUserRelPersistence.update(commerceAccountUserRel);
	}
579869
public PublicIpRequest sourceRestrictions(List<String> sourceRestrictions) {
        List<SourceRestriction> restrictions = new ArrayList<>(sourceRestrictions.size());
        sourceRestrictions.forEach(value -> restrictions.add(new SourceRestriction(value)));
        setSourceRestrictions(restrictions);
        return this;
    }
1119182
@Override
	public void removeByC_C(long classNameId, long classPK) {
		for (CommerceAddressRestriction commerceAddressRestriction : findByC_C(
				classNameId, classPK, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceAddressRestriction);
		}
	}
1203164
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrder addCommerceOrder(CommerceOrder commerceOrder) {
		commerceOrder.setNew(true);

		return commerceOrderPersistence.update(commerceOrder);
	}
1090633
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceAddress updateCommerceAddress(
		CommerceAddress commerceAddress) {
		return commerceAddressPersistence.update(commerceAddress);
	}
963213
@Override
	public CommerceAccount create(long commerceAccountId) {
		CommerceAccount commerceAccount = new CommerceAccountImpl();

		commerceAccount.setNew(true);
		commerceAccount.setPrimaryKey(commerceAccountId);

		commerceAccount.setCompanyId(companyProvider.getCompanyId());

		return commerceAccount;
	}
888794
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceAddressRestriction deleteCommerceAddressRestriction(
		CommerceAddressRestriction commerceAddressRestriction) {
		return commerceAddressRestrictionPersistence.remove(commerceAddressRestriction);
	}
63762
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceNotificationAttachment addCommerceNotificationAttachment(
		CommerceNotificationAttachment commerceNotificationAttachment) {
		commerceNotificationAttachment.setNew(true);

		return commerceNotificationAttachmentPersistence.update(commerceNotificationAttachment);
	}
204384
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommercePriceListAccountRel addCommercePriceListAccountRel(
		CommercePriceListAccountRel commercePriceListAccountRel) {
		commercePriceListAccountRel.setNew(true);

		return commercePriceListAccountRelPersistence.update(commercePriceListAccountRel);
	}
1370507
@Override
	public List<CommerceOrder> findByBillingAddressId(long billingAddressId) {
		return findByBillingAddressId(billingAddressId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
162090
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceDiscount addCommerceDiscount(
		CommerceDiscount commerceDiscount) {
		commerceDiscount.setNew(true);

		return commerceDiscountPersistence.update(commerceDiscount);
	}