Payout

Informations about a payout.

package

Default

Methods

Initialize the model.

__construct(string $currency) 

Arguments

$currency

string

Currency code

Add a new Transfer object to the list.

addTransfer(\Dotpay\Model\Transfer $transfer) : \Dotpay\Model\Payout

Arguments

$transfer

\Dotpay\Model\Transfer

A Transfer object

Response

\Dotpay\Model\Payout

Return a currency code.

getCurrency() : string

Response

string

Return a list of transfers to realize.

getTransfers() : array

Response

array

Set a currency code.

setCurrency(string $currency) : \Dotpay\Model\Payout
Throws
\Dotpay\Exception\BadParameter\CurrencyException

Thrown when the given currency code is incorrect

Arguments

$currency

string

Currency code

Response

\Dotpay\Model\Payout

Properties

Currency code

currency : string|null
var

Currency code

Type(s)

string|null

List of transfers to realize

transfers : array
var

List of transfers to realize

Type(s)

array