PHP Класс PayPal\Api\Item

An item being paid for.
Наследование: extends PayPal\Common\PayPalModel
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
addPostbackData ( PayPal\Api\NameValuePair $nameValuePair ) Append PostbackData to the list.
addSupplementaryData ( PayPal\Api\NameValuePair $nameValuePair ) Append SupplementaryData to the list.
getCategory ( ) : string Category type of the item.
getCurrency ( ) : string 3-letter currency code.
getDescription ( ) : string Description of the item. Only supported when the payment_method is set to paypal.
getHeight ( ) : PayPal\Api\Measurement Height of the item.
getLength ( ) : PayPal\Api\Measurement Length of the item.
getName ( ) : string Item name. 127 characters max.
getPostbackData ( ) : PayPal\Api\NameValuePair[] Set of optional data used for PayPal post-transaction notifications.
getPrice ( ) : string Item cost. 10 characters max.
getQuantity ( ) : string Number of a particular item. 10 characters max.
getSku ( ) : string Stock keeping unit corresponding (SKU) to item.
getSupplementaryData ( ) : PayPal\Api\NameValuePair[] Set of optional data used for PayPal risk determination.
getTax ( ) : string Tax of the item. Only supported when the payment_method is set to paypal.
getUrl ( ) : string URL linking to item information. Available to payer in transaction history.
getWeight ( ) : PayPal\Api\Measurement Weight of the item.
getWidth ( ) : PayPal\Api\Measurement Width of the item.
removePostbackData ( PayPal\Api\NameValuePair $nameValuePair ) Remove PostbackData from the list.
removeSupplementaryData ( PayPal\Api\NameValuePair $nameValuePair ) Remove SupplementaryData from the list.
setCategory ( string $category ) Category type of the item.
setCurrency ( string $currency ) 3-letter currency code.
setDescription ( string $description ) Description of the item. Only supported when the payment_method is set to paypal.
setHeight ( PayPal\Api\Measurement $height ) Height of the item.
setLength ( PayPal\Api\Measurement $length ) Length of the item.
setName ( string $name ) Item name. 127 characters max.
setPostbackData ( PayPal\Api\NameValuePair[] $postback_data ) Set of optional data used for PayPal post-transaction notifications.
setPrice ( string | double $price ) Item cost. 10 characters max.
setQuantity ( string $quantity ) Number of a particular item. 10 characters max.
setSku ( string $sku ) Stock keeping unit corresponding (SKU) to item.
setSupplementaryData ( PayPal\Api\NameValuePair[] $supplementary_data ) Set of optional data used for PayPal risk determination.
setTax ( string | double $tax ) Tax of the item. Only supported when the payment_method is set to paypal.
setUrl ( string $url ) URL linking to item information. Available to payer in transaction history.
setWeight ( PayPal\Api\Measurement $weight ) Weight of the item.
setWidth ( PayPal\Api\Measurement $width ) Width of the item.

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

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

Append PostbackData to the list.
Устаревший: Not publicly available
public addPostbackData ( PayPal\Api\NameValuePair $nameValuePair )
$nameValuePair PayPal\Api\NameValuePair

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

Append SupplementaryData to the list.
Устаревший: Not publicly available
public addSupplementaryData ( PayPal\Api\NameValuePair $nameValuePair )
$nameValuePair PayPal\Api\NameValuePair

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

Category type of the item.
Устаревший: Not publicly available
public getCategory ( ) : string
Результат string

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

3-letter currency code.
public getCurrency ( ) : string
Результат string

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

Description of the item. Only supported when the payment_method is set to paypal.
public getDescription ( ) : string
Результат string

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

Height of the item.
Устаревший: Not publicly available
public getHeight ( ) : PayPal\Api\Measurement
Результат PayPal\Api\Measurement

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

Length of the item.
Устаревший: Not publicly available
public getLength ( ) : PayPal\Api\Measurement
Результат PayPal\Api\Measurement

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

Item name. 127 characters max.
public getName ( ) : string
Результат string

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

Set of optional data used for PayPal post-transaction notifications.
Устаревший: Not publicly available
public getPostbackData ( ) : PayPal\Api\NameValuePair[]
Результат PayPal\Api\NameValuePair[]

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

Item cost. 10 characters max.
public getPrice ( ) : string
Результат string

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

Number of a particular item. 10 characters max.
public getQuantity ( ) : string
Результат string

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

Stock keeping unit corresponding (SKU) to item.
public getSku ( ) : string
Результат string

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

Set of optional data used for PayPal risk determination.
Устаревший: Not publicly available
public getSupplementaryData ( ) : PayPal\Api\NameValuePair[]
Результат PayPal\Api\NameValuePair[]

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

Tax of the item. Only supported when the payment_method is set to paypal.
public getTax ( ) : string
Результат string

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

URL linking to item information. Available to payer in transaction history.
public getUrl ( ) : string
Результат string

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

Weight of the item.
Устаревший: Not publicly available
public getWeight ( ) : PayPal\Api\Measurement
Результат PayPal\Api\Measurement

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

Width of the item.
Устаревший: Not publicly available
public getWidth ( ) : PayPal\Api\Measurement
Результат PayPal\Api\Measurement

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

Remove PostbackData from the list.
Устаревший: Not publicly available
public removePostbackData ( PayPal\Api\NameValuePair $nameValuePair )
$nameValuePair PayPal\Api\NameValuePair

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

Remove SupplementaryData from the list.
Устаревший: Not publicly available
public removeSupplementaryData ( PayPal\Api\NameValuePair $nameValuePair )
$nameValuePair PayPal\Api\NameValuePair

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

Valid Values: ["DIGITAL", "PHYSICAL"]
Устаревший: Not publicly available
public setCategory ( string $category )
$category string

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

3-letter currency code.
public setCurrency ( string $currency )
$currency string

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

Description of the item. Only supported when the payment_method is set to paypal.
public setDescription ( string $description )
$description string

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

Height of the item.
Устаревший: Not publicly available
public setHeight ( PayPal\Api\Measurement $height )
$height PayPal\Api\Measurement

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

Length of the item.
Устаревший: Not publicly available
public setLength ( PayPal\Api\Measurement $length )
$length PayPal\Api\Measurement

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

Item name. 127 characters max.
public setName ( string $name )
$name string

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

Set of optional data used for PayPal post-transaction notifications.
Устаревший: Not publicly available
public setPostbackData ( PayPal\Api\NameValuePair[] $postback_data )
$postback_data PayPal\Api\NameValuePair[]

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

Item cost. 10 characters max.
public setPrice ( string | double $price )
$price string | double

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

Number of a particular item. 10 characters max.
public setQuantity ( string $quantity )
$quantity string

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

Stock keeping unit corresponding (SKU) to item.
public setSku ( string $sku )
$sku string

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

Set of optional data used for PayPal risk determination.
Устаревший: Not publicly available
public setSupplementaryData ( PayPal\Api\NameValuePair[] $supplementary_data )
$supplementary_data PayPal\Api\NameValuePair[]

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

Tax of the item. Only supported when the payment_method is set to paypal.
public setTax ( string | double $tax )
$tax string | double

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

URL linking to item information. Available to payer in transaction history.
public setUrl ( string $url )
$url string

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

Weight of the item.
Устаревший: Not publicly available
public setWeight ( PayPal\Api\Measurement $weight )
$weight PayPal\Api\Measurement

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

Width of the item.
Устаревший: Not publicly available
public setWidth ( PayPal\Api\Measurement $width )
$width PayPal\Api\Measurement