PHP Класс PayPal\Api\ItemList

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

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

Метод Описание
addItem ( Item $item ) Append Items to the list.
getItems ( ) : Item[] List of items.
getShippingAddress ( ) : ShippingAddress Shipping address.
getShippingMethod ( ) : string Shipping method used for this payment like USPSParcel etc.
getShippingPhoneNumber ( ) : string Allows merchant's to share payer’s contact number with PayPal for the current payment. Final contact number of payer associated with the transaction might be same as shipping_phone_number or different based on Payer’s action on PayPal. The phone number must be represented in its canonical international format, as defined by the E.164 numbering plan
removeItem ( Item $item ) Remove Items from the list.
setItems ( Item[] $items ) List of items.
setShippingAddress ( ShippingAddress $shipping_address ) Shipping address.
setShippingMethod ( string $shipping_method ) Shipping method used for this payment like USPSParcel etc.
setShippingPhoneNumber ( string $shipping_phone_number ) Allows merchant's to share payer’s contact number with PayPal for the current payment. Final contact number of payer associated with the transaction might be same as shipping_phone_number or different based on Payer’s action on PayPal. The phone number must be represented in its canonical international format, as defined by the E.164 numbering plan

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

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

Append Items to the list.
public addItem ( Item $item )
$item Item

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

List of items.
public getItems ( ) : Item[]
Результат Item[]

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

Shipping address.
public getShippingAddress ( ) : ShippingAddress
Результат ShippingAddress

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

Shipping method used for this payment like USPSParcel etc.
public getShippingMethod ( ) : string
Результат string

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

Allows merchant's to share payer’s contact number with PayPal for the current payment. Final contact number of payer associated with the transaction might be same as shipping_phone_number or different based on Payer’s action on PayPal. The phone number must be represented in its canonical international format, as defined by the E.164 numbering plan
public getShippingPhoneNumber ( ) : string
Результат string

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

Remove Items from the list.
public removeItem ( Item $item )
$item Item

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

List of items.
public setItems ( Item[] $items )
$items Item[]

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

Shipping address.
public setShippingAddress ( ShippingAddress $shipping_address )
$shipping_address ShippingAddress

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

Shipping method used for this payment like USPSParcel etc.
public setShippingMethod ( string $shipping_method )
$shipping_method string

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

Allows merchant's to share payer’s contact number with PayPal for the current payment. Final contact number of payer associated with the transaction might be same as shipping_phone_number or different based on Payer’s action on PayPal. The phone number must be represented in its canonical international format, as defined by the E.164 numbering plan
public setShippingPhoneNumber ( string $shipping_phone_number )
$shipping_phone_number string