PHP 클래스 PayPal\Api\Item

An item being paid for.
상속: extends PayPal\Common\PayPalModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
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