PHP Class PayPal\Api\PaymentHistory

Inheritance: extends PayPal\Common\PPModel
Show file Open project: paypal/rest-api-sdk-php Class Usage Examples

Public Methods

Method Description
addPayment ( Payment $payment ) Append Payments to the list.
getCount ( ) : integer Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
getNextId ( ) : string Identifier of the next element to get the next range of results.
getPayments ( ) : Payment[] A list of Payment resources
removePayment ( Payment $payment ) Remove Payments from the list.
setCount ( integer $count ) Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
setNextId ( string $next_id ) Identifier of the next element to get the next range of results.
setPayments ( Payment[] $payments ) A list of Payment resources

Method Details

addPayment() public method

Append Payments to the list.
public addPayment ( Payment $payment )
$payment Payment

getCount() public method

Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
public getCount ( ) : integer
return integer

getNextId() public method

Identifier of the next element to get the next range of results.
public getNextId ( ) : string
return string

getPayments() public method

A list of Payment resources
public getPayments ( ) : Payment[]
return Payment[]

removePayment() public method

Remove Payments from the list.
public removePayment ( Payment $payment )
$payment Payment

setCount() public method

Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
public setCount ( integer $count )
$count integer

setNextId() public method

Identifier of the next element to get the next range of results.
public setNextId ( string $next_id )
$next_id string

setPayments() public method

A list of Payment resources
public setPayments ( Payment[] $payments )
$payments Payment[]