Caches the commerce order payment in the entity cache if it is enabled.

@param commerceOrderPayment the commerce order payment
762664
@Override
	public void cacheResult(CommerceOrderPayment commerceOrderPayment) {
		entityCache.putResult(CommerceOrderPaymentModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderPaymentImpl.class,
			commerceOrderPayment.getPrimaryKey(), commerceOrderPayment);

		commerceOrderPayment.resetOriginalValues();
	}
784322
@Override
	public void cacheResult(
		CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) {
		entityCache.putResult(CommercePaymentMethodGroupRelModelImpl.ENTITY_CACHE_ENABLED,
			CommercePaymentMethodGroupRelImpl.class,
			commercePaymentMethodGroupRel.getPrimaryKey(),
			commercePaymentMethodGroupRel);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
			new Object[] {
				commercePaymentMethodGroupRel.getGroupId(),
				commercePaymentMethodGroupRel.getEngineKey()
			}, commercePaymentMethodGroupRel);

		commercePaymentMethodGroupRel.resetOriginalValues();
	}
1203176
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceOrderItemImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
168878
@Override
	public void cacheResult(CommerceShipment commerceShipment) {
		entityCache.putResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentImpl.class, commerceShipment.getPrimaryKey(),
			commerceShipment);

		commerceShipment.resetOriginalValues();
	}
52163
public static com.liferay.commerce.model.CommerceOrderPayment updateCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().updateCommerceOrderPayment(commerceOrderPayment);
	}
1089708
@Override
	public void cacheResult(CommerceOrderItem commerceOrderItem) {
		entityCache.putResult(CommerceOrderItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderItemImpl.class, commerceOrderItem.getPrimaryKey(),
			commerceOrderItem);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commerceOrderItem.getCompanyId(),
				commerceOrderItem.getExternalReferenceCode()
			}, commerceOrderItem);

		commerceOrderItem.resetOriginalValues();
	}
440965
@Override
	public CommerceOrderPayment create(long commerceOrderPaymentId) {
		CommerceOrderPayment commerceOrderPayment = new CommerceOrderPaymentImpl();

		commerceOrderPayment.setNew(true);
		commerceOrderPayment.setPrimaryKey(commerceOrderPaymentId);

		commerceOrderPayment.setCompanyId(companyProvider.getCompanyId());

		return commerceOrderPayment;
	}
18042
@Override
	public void clearCache(CommerceOrderItem commerceOrderItem) {
		entityCache.removeResult(CommerceOrderItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderItemImpl.class, commerceOrderItem.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CommerceOrderItemModelImpl)commerceOrderItem,
			true);
	}
95013
@Override
	public void clearCache(
		CommerceShippingFixedOption commerceShippingFixedOption) {
		entityCache.removeResult(CommerceShippingFixedOptionModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShippingFixedOptionImpl.class,
			commerceShippingFixedOption.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1366294
public static com.liferay.commerce.model.CommerceOrderPayment addCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().addCommerceOrderPayment(commerceOrderPayment);
	}
66553
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceOrderPayment updateCommerceOrderPayment(
		CommerceOrderPayment commerceOrderPayment) {
		return commerceOrderPaymentPersistence.update(commerceOrderPayment);
	}
137019
public function addPayment(\OxidEsales\PayPalModule\Model\OrderPayment $payment)
    {
        $paymentList = $this->getPaymentList();
        $paymentList->addPayment($payment);
        $this->setPaymentList(null);
    }
1251433
@Override
	public void clearCache(CommerceTaxFixedRate commerceTaxFixedRate) {
		entityCache.removeResult(CommerceTaxFixedRateModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTaxFixedRateImpl.class, commerceTaxFixedRate.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CommerceTaxFixedRateModelImpl)commerceTaxFixedRate,
			true);
	}
1111401
@Override
	public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
		for (CommerceCurrency commerceCurrency : commerceCurrencies) {
			if (entityCache.getResult(
						CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
						CommerceCurrencyImpl.class,
						commerceCurrency.getPrimaryKey()) == null) {
				cacheResult(commerceCurrency);
			}
			else {
				commerceCurrency.resetOriginalValues();
			}
		}
	}
211768
@Override
	public void cacheResult(CommerceTaxFixedRate commerceTaxFixedRate) {
		entityCache.putResult(CommerceTaxFixedRateModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTaxFixedRateImpl.class,
			commerceTaxFixedRate.getPrimaryKey(), commerceTaxFixedRate);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_C,
			new Object[] {
				commerceTaxFixedRate.getCPTaxCategoryId(),
				commerceTaxFixedRate.getCommerceTaxMethodId()
			}, commerceTaxFixedRate);

		commerceTaxFixedRate.resetOriginalValues();
	}
481382
@Override
	public void cacheResult(List<CommerceTaxFixedRate> commerceTaxFixedRates) {
		for (CommerceTaxFixedRate commerceTaxFixedRate : commerceTaxFixedRates) {
			if (entityCache.getResult(
						CommerceTaxFixedRateModelImpl.ENTITY_CACHE_ENABLED,
						CommerceTaxFixedRateImpl.class,
						commerceTaxFixedRate.getPrimaryKey()) == null) {
				cacheResult(commerceTaxFixedRate);
			}
			else {
				commerceTaxFixedRate.resetOriginalValues();
			}
		}
	}
75537
public static com.liferay.commerce.model.CommerceOrderPayment deleteCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return getService().deleteCommerceOrderPayment(commerceOrderPayment);
	}