PHP Класс PayPal\Api\Cost

Наследование: extends PayPal\Common\PPModel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getAmount ( ) : PayPal\Api\Currency The cost, as an amount. Valid range is from 0 to 1,000,000.
getPercent ( ) : string Cost in percent. Range of 0 to 100.
setAmount ( PayPal\Api\Currency $amount ) The cost, as an amount. Valid range is from 0 to 1,000,000.
setPercent ( string $percent ) Cost in percent. Range of 0 to 100.

Описание методов

getAmount() публичный Метод

The cost, as an amount. Valid range is from 0 to 1,000,000.
public getAmount ( ) : PayPal\Api\Currency
Результат PayPal\Api\Currency

getPercent() публичный Метод

Cost in percent. Range of 0 to 100.
public getPercent ( ) : string
Результат string

setAmount() публичный Метод

The cost, as an amount. Valid range is from 0 to 1,000,000.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

setPercent() публичный Метод

Cost in percent. Range of 0 to 100.
public setPercent ( string $percent )
$percent string