Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php
Строк: 53
<?php
namespace PayPalApi;
use PayPalCommonPayPalModel;
/**
* Class ShippingCost
*
* Shipping cost, as a percent or an amount.
*
* @package PayPalApi
*
* @property PayPalApiCurrency amount
* @property PayPalApiTax tax
*/
class ShippingCost extends PayPalModel
{
/**
* The shipping cost, as an amount. Valid range is from 0 to 999999.99.
*
* @param PayPalApiCurrency $amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* The shipping cost, as an amount. Valid range is from 0 to 999999.99.
*
* @return PayPalApiCurrency
*/
public function getAmount()
{
return $this->amount;
}
/**
* The tax percentage on the shipping amount.
*
* @param PayPalApiTax $tax
*
* @return $this
*/
public function setTax($tax)
{
$this->tax = $tax;
return $this;
}
/**
* The tax percentage on the shipping amount.
*
* @return PayPalApiTax
*/
public function getTax()
{
return $this->tax;
}
}