PHP Класс PayPal\Api\InvoiceItem

Information about a single line item.
Наследование: extends PayPal\Common\PayPalModel
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getDate ( ) : string The date when the item or service was provided. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
getDescription ( ) : string Description of the item. 1000 characters max.
getDiscount ( ) : Cost The item discount, as a percent or an amount value.
getImageUrl ( ) : string The image URL. Maximum length is 4000 characters.
getName ( ) : string Name of the item. 200 characters max.
getQuantity ( ) : string Quantity of the item. Range of -10000 to 10000.
getTax ( ) : Tax Tax associated with the item.
getUnitOfMeasure ( ) : string The unit of measure of the item being invoiced.
getUnitPrice ( ) : PayPal\Api\Currency Unit price of the item. Range of -1,000,000 to 1,000,000.
setDate ( string $date ) The date when the item or service was provided. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
setDescription ( string $description ) Description of the item. 1000 characters max.
setDiscount ( Cost $discount ) The item discount, as a percent or an amount value.
setImageUrl ( string $image_url ) The image URL. Maximum length is 4000 characters.
setName ( string $name ) Name of the item. 200 characters max.
setQuantity ( string | double $quantity ) Quantity of the item. Range of -10000 to 10000.
setTax ( Tax $tax ) Tax associated with the item.
setUnitOfMeasure ( string $unit_of_measure ) The unit of measure of the item being invoiced.
setUnitPrice ( PayPal\Api\Currency $unit_price ) Unit price of the item. Range of -1,000,000 to 1,000,000.

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

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

The date when the item or service was provided. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
public getDate ( ) : string
Результат string

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

Description of the item. 1000 characters max.
public getDescription ( ) : string
Результат string

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

The item discount, as a percent or an amount value.
public getDiscount ( ) : Cost
Результат Cost

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

The image URL. Maximum length is 4000 characters.
Устаревший: Not publicly available
public getImageUrl ( ) : string
Результат string

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

Name of the item. 200 characters max.
public getName ( ) : string
Результат string

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

Quantity of the item. Range of -10000 to 10000.
public getQuantity ( ) : string
Результат string

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

Tax associated with the item.
public getTax ( ) : Tax
Результат Tax

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

The unit of measure of the item being invoiced.
public getUnitOfMeasure ( ) : string
Результат string

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

Unit price of the item. Range of -1,000,000 to 1,000,000.
public getUnitPrice ( ) : PayPal\Api\Currency
Результат PayPal\Api\Currency

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

The date when the item or service was provided. The date format is *yyyy*-*MM*-*dd* *z* as defined in Internet Date/Time Format.
public setDate ( string $date )
$date string

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

Description of the item. 1000 characters max.
public setDescription ( string $description )
$description string

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

The item discount, as a percent or an amount value.
public setDiscount ( Cost $discount )
$discount Cost

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

The image URL. Maximum length is 4000 characters.
Устаревший: Not publicly available
public setImageUrl ( string $image_url )
$image_url string

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

Name of the item. 200 characters max.
public setName ( string $name )
$name string

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

Quantity of the item. Range of -10000 to 10000.
public setQuantity ( string | double $quantity )
$quantity string | double

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

Tax associated with the item.
public setTax ( Tax $tax )
$tax Tax

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

Valid Values: ["QUANTITY", "HOURS", "AMOUNT"]
public setUnitOfMeasure ( string $unit_of_measure )
$unit_of_measure string

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

Unit price of the item. Range of -1,000,000 to 1,000,000.
public setUnitPrice ( PayPal\Api\Currency $unit_price )
$unit_price PayPal\Api\Currency