*
Sets the shipping cost for this payment request
@param float $shippingCost
765501
public function setShippingCost($shippingCost)
    {
        $param = $shippingCost;
        if ($this->shipping == null) {
            $this->shipping = new PagSeguroShipping();
        }

        $this->shipping->setCost($param);
    }
565543
public void setCommerceShippingFixedOptionService(
		com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionService commerceShippingFixedOptionService) {
		this.commerceShippingFixedOptionService = commerceShippingFixedOptionService;
	}
130190
protected function setShippingDiscount($data)
    {
        if (isset($data['shipping_discount'])) {
            if ($data['shipping_discount'] > 0) {
                $data['shipping_discount'] *= -1;
            }

            $this->post = $this->post->merge([
                'PAYMENTREQUEST_0_SHIPDISCAMT' => $data['shipping_discount'],
                'PAYMENTREQUEST_0_AMT'         => round($data['total'] + $data['shipping_discount'], 2),
            ]);
        }
    }
9959
protected function RecalculateShipping()
    {
        $this->dCostShipping = 0;

        // validate shipping group - reset if not valid
        if (null !== $this->GetActiveShippingGroup()) {
            if (false === $this->SetActiveShippingGroup($this->GetActiveShippingGroup())) {
                $this->SetActiveShippingGroup(null);
            }
        }

        // if the basket contains a voucher that is set to free_shipping, then we keep costs to zero
        if (is_null($this->GetActiveVouchers()) || !$this->GetActiveVouchers()->HasFreeShippingVoucher()) {
            if (!is_null($this->GetActiveShippingGroup())) {
                $this->dCostShipping = $this->GetActiveShippingGroup()->GetShippingCostsForBasket();
            }
        }
    }
1029781
public function setShippingAmount($value)
    {
        $this->data->amount->subtotals->shipping = (float) $value;

        return $this;
    }
1028033
func (s *OfferingTransaction) SetCost(v *MonetaryAmount) *OfferingTransaction {
	s.Cost = v
	return s
}
404080
public void setCommerceShippingFixedOptionLocalService(
		com.liferay.commerce.shipping.engine.fixed.service.CommerceShippingFixedOptionLocalService commerceShippingFixedOptionLocalService) {
		this.commerceShippingFixedOptionLocalService = commerceShippingFixedOptionLocalService;
	}
235263
public function setShippingDiscount($shippingDiscount)
    {
        NumericValidator::validate($shippingDiscount, "Shipping Discount");
        $shippingDiscount = Formatter::formatToPrice($shippingDiscount);
        $this->shippingDiscount = $shippingDiscount;
        return $this;
    }
1043790
protected function setInvoiceSource($invoiceSource)
    {
        parent::setInvoiceSource($invoiceSource);
        switch ($this->invoiceSource->getType()) {
            case Source::Order:
                $this->order = $this->invoiceSource->getSource();
                break;
            case Source::CreditNote:
                $this->creditSlip = $this->invoiceSource->getSource();
                $this->order = $this->invoiceSource->getOrder()->getSource();
                break;
        }
    }
869911
protected function _process( $stmts )
	{
		$this->_msg( 'Renameing shipping to costs in catalog index price table', 0 );

		if( $this->_schema->tableExists( 'mshop_catalog_index_price' ) === true
			&& $this->_schema->columnExists( 'mshop_catalog_index_price', 'shipping' ) === true )
		{
			$this->_execute( $stmts );
			$this->_status( 'done' );
		}
		else
		{
			$this->_status( 'OK' );
		}
	}
619736
public function setShipping($shipping)
    {
        NumericValidator::validate($shipping, "Shipping");
        $shipping = Formatter::formatToPrice($shipping);
        $this->shipping = $shipping;
        return $this;
    }
210283
public void setCommercePriceEntryLocalService(
		com.liferay.commerce.price.list.service.CommercePriceEntryLocalService commercePriceEntryLocalService) {
		this.commercePriceEntryLocalService = commercePriceEntryLocalService;
	}
769029
protected function _setOrderStatus($status)
    {
        $paymentTypeObject = $this->getPaymentType();
        $paymentType = $paymentTypeObject ? $paymentTypeObject->getFieldData('oxpaymentsid') : null;
        if ($paymentType != 'oxidpaypal' || $status != self::OEPAYPAL_TRANSACTION_STATUS_OK) {
            parent::_setOrderStatus($status);
        }
    }
1243375
public function setCosts( $price )
	{
		if ( $price == $this->getCosts() ) { return; }

		$this->_checkPrice( $price );

		$this->_values['costs'] = $this->_formatNumber( $price );
		$this->setModified();
	}
642000
public function setUntil($ts) {
		if ($ts instanceof DateTime) {
			$dt = $ts;
		} else if (is_int($ts)) {
			$dt = new DateTime('@' . $ts);
		} else {
			$dt = new DateTime($ts);
		}
		$this->until = $dt->format('Ymd\THisO');
		$this->rrule['until'] = $this->until;
	}
40048
protected function setPaymentProviderAndMethod(QuoteTransfer $quoteTransfer, $paymentSelection)
    {
        $quoteTransfer->getPayment()
            ->setPaymentProvider(static::PAYMENT_PROVIDER)
            ->setPaymentMethod(static::$payonePaymentMethodMapper[$paymentSelection]);
    }
659252
protected function SetShipToBillingAddress($sShipToBillingAddress)
    {
        $bAllowChange = true;
        if ('1' == $sShipToBillingAddress) {
            if (TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING == $this->AddressUsedAsPrimaryAddress()) {
                if ('1' == $this->GetShippingAddressData('is_dhl_packstation')) {
                    $bAllowChange = false;
                    $oMsgManager = TCMSMessageManager::GetInstance();
                    $oMsgManager->AddMessage(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING, 'PkgShopDhlPackstation-ERROR-BILLING-MAY-NOT-BE-PACKSTATION');
                }
            }
        }
        if ($bAllowChange) {
            parent::SetShipToBillingAddress($sShipToBillingAddress);
        }
    }