PHP Класс PayPal\Api\PayoutItem

A sender-created definition of a payout to a single recipient.
Наследование: extends PayPal\Common\PayPalResourceModel
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
cancel ( string $payoutItemId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PayoutItemDetails Cancels the unclaimed payment using the items id passed in the request URI. If an unclaimed item is not claimed within 30 days, the funds will be automatically returned to the sender. This call can be used to cancel the unclaimed item prior to the automatic 30-day return.
get ( string $payoutItemId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PayoutItemDetails Obtain the status of a payout item by passing the item ID to the request URI.
getAmount ( ) : PayPal\Api\Currency The amount of money to pay the receiver.
getNote ( ) : string Optional. A sender-specified note for notifications. Value is any string value.
getReceiver ( ) : string The receiver of the payment. Corresponds to the recipient_type value in the request.
getRecipientType ( ) : string The type of ID that identifies the payment receiver. Value is:
    EMAIL. Unencrypted email. Value is a string of up to 127 single-byte characters.
  • PHONE. Unencrypted phone number.
    Note: The PayPal sandbox does not support the PHONE recipient type.
  • PAYPAL_ID. Encrypted PayPal account number.
If the sender_batch_header includes the recipient_type attribute, any payout item without its own recipient_type attribute uses the recipient_type value from sender_batch_header. If the sender_batch_header omits the recipient_type attribute, each payout item must include its own recipient_type value.
getSenderItemId ( ) : string A sender-specified ID number. Tracks the batch payout in an accounting system.
setAmount ( PayPal\Api\Currency $amount ) The amount of money to pay the receiver.
setNote ( string $note ) Optional. A sender-specified note for notifications. Value is any string value.
setReceiver ( string $receiver ) The receiver of the payment. Corresponds to the recipient_type value in the request.
setRecipientType ( string $recipient_type ) The type of ID that identifies the payment receiver. Value is:
    EMAIL. Unencrypted email. Value is a string of up to 127 single-byte characters.
  • PHONE. Unencrypted phone number.
    Note: The PayPal sandbox does not support the PHONE recipient type.
  • PAYPAL_ID. Encrypted PayPal account number.
If the sender_batch_header includes the recipient_type attribute, any payout item without its own recipient_type attribute uses the recipient_type value from sender_batch_header. If the sender_batch_header omits the recipient_type attribute, each payout item must include its own recipient_type value.
setSenderItemId ( string $sender_item_id ) A sender-specified ID number. Tracks the batch payout in an accounting system.

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

cancel() публичный статический Метод

Cancels the unclaimed payment using the items id passed in the request URI. If an unclaimed item is not claimed within 30 days, the funds will be automatically returned to the sender. This call can be used to cancel the unclaimed item prior to the automatic 30-day return.
public static cancel ( string $payoutItemId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PayoutItemDetails
$payoutItemId string
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
Результат PayoutItemDetails

get() публичный статический Метод

Obtain the status of a payout item by passing the item ID to the request URI.
public static get ( string $payoutItemId, ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : PayoutItemDetails
$payoutItemId string
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPal\Transport\PayPalRestCall is the Rest Call Service that is used to make rest calls
Результат PayoutItemDetails

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

The amount of money to pay the receiver.
public getAmount ( ) : PayPal\Api\Currency
Результат PayPal\Api\Currency

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

Optional. A sender-specified note for notifications. Value is any string value.
public getNote ( ) : string
Результат string

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

The receiver of the payment. Corresponds to the recipient_type value in the request.
public getReceiver ( ) : string
Результат string

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

The type of ID that identifies the payment receiver. Value is:
    EMAIL. Unencrypted email. Value is a string of up to 127 single-byte characters.
  • PHONE. Unencrypted phone number.
    Note: The PayPal sandbox does not support the PHONE recipient type.
  • PAYPAL_ID. Encrypted PayPal account number.
If the sender_batch_header includes the recipient_type attribute, any payout item without its own recipient_type attribute uses the recipient_type value from sender_batch_header. If the sender_batch_header omits the recipient_type attribute, each payout item must include its own recipient_type value.
public getRecipientType ( ) : string
Результат string

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

A sender-specified ID number. Tracks the batch payout in an accounting system.
public getSenderItemId ( ) : string
Результат string

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

The amount of money to pay the receiver.
public setAmount ( PayPal\Api\Currency $amount )
$amount PayPal\Api\Currency

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

Optional. A sender-specified note for notifications. Value is any string value.
public setNote ( string $note )
$note string

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

The receiver of the payment. Corresponds to the recipient_type value in the request.
public setReceiver ( string $receiver )
$receiver string

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

The type of ID that identifies the payment receiver. Value is:
    EMAIL. Unencrypted email. Value is a string of up to 127 single-byte characters.
  • PHONE. Unencrypted phone number.
    Note: The PayPal sandbox does not support the PHONE recipient type.
  • PAYPAL_ID. Encrypted PayPal account number.
If the sender_batch_header includes the recipient_type attribute, any payout item without its own recipient_type attribute uses the recipient_type value from sender_batch_header. If the sender_batch_header omits the recipient_type attribute, each payout item must include its own recipient_type value.
public setRecipientType ( string $recipient_type )
$recipient_type string

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

A sender-specified ID number. Tracks the batch payout in an accounting system.
public setSenderItemId ( string $sender_item_id )
$sender_item_id string