Informations about an operation.
| package |
Default |
|---|
__construct(string $type, string $number)
stringAn identifier of a type of the operation
stringA number of the operation
createFromData(\Dotpay\Provider\OperationProviderInterface $provider) : \Dotpay\Model\Operation
\Dotpay\Provider\OperationProviderInterfaceProvider which contains data from shop application
\Dotpay\Model\Operation
getAccountId() : integer|null
integer|null
getAmount() : float|null
float|null
getCommissionAmount() : float|null
It's presented as a negative amount.
float|null
getControl() : mixed
mixed
getCurrency() : string
string
getDateTime() : \DateTime|null
\DateTime|null
getDescription() : string
string
getNumber() : string
string
getOrderId() : integer
integer
getOriginalAmount() : float|null
float|null
getOriginalCurrency() : string
string
getPayer() : \Dotpay\Model\Payer|null
getPaymentMethod() : \Dotpay\Model\PaymentMethod|null
getStatus() : string
string
getType() : string
string
getUrl() : string
string
getWithdrawalAmount() : float|null
float|null
isCompleted() : boolean
boolean
setAccountId(integer $accountId) : \Dotpay\Model\Operation
| Throws |
|
|---|
integerAn account id of a seller
\Dotpay\Model\Operation
setAmount(float $amount) : \Dotpay\Model\Operation
| Throws |
|
|---|
floatA transaction amount
\Dotpay\Model\Operation
setCommissionAmount(float $commissionAmount) : \Dotpay\Model\Operation
| Throws |
|
|---|
floatAn amount of a Dotpay commission
\Dotpay\Model\Operation
setCompleted(boolean $completed) : \Dotpay\Model\Operation
booleanA flag if operation is marked as completed in Seller panel
\Dotpay\Model\Operation
setControl(mixed $control) : \Dotpay\Model\Operation
mixedA value which was given during making a payment
\Dotpay\Model\Operation
setCurrency(string $currency) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringA code of a transaction currency
\Dotpay\Model\Operation
setDateTime(\DateTime $dateTime) : \Dotpay\Model\Operation
\DateTimeA date and a time of the last change status of the operation
\Dotpay\Model\Operation
setDescription(string $description) : \Dotpay\Model\Operation
setNumber(string $number) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringA number of the operation
\Dotpay\Model\Operation
setOriginalAmount(float $originalAmount) : \Dotpay\Model\Operation
| Throws |
|
|---|
floatAn original amount which was sent from a shop
\Dotpay\Model\Operation
setOriginalCurrency(string $originalCurrency) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringA code of an original currency which was sent from a shop
\Dotpay\Model\Operation
setPayer(\Dotpay\Model\Payer $payer) : \Dotpay\Model\Operation
setPaymentMethod(\Dotpay\Model\PaymentMethod $paymentMethod) : \Dotpay\Model\Operation
setStatus(string $status) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringA status identifier of the operation
\Dotpay\Model\Operation
setType(string $type) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringAn identifier of a type of the operation
\Dotpay\Model\Operation
setUrl(string $url) : \Dotpay\Model\Operation
| Throws |
|
|---|
stringAn Url where are located details about the operation
\Dotpay\Model\Operation
setWithdrawalAmount(float $withdrawalAmount) : \Dotpay\Model\Operation
| Throws |
|
|---|
floatA withdrawal amount
\Dotpay\Model\Operation
STATUS_NEW
STATUS_PROCESSING
STATUS_COMPLETE
STATUS_REJECTED
TYPE_PAYMENT
TYPE_REFUND
TYPE_PAYOUT
url : string
| var |
An Url where are located details about the operation |
|---|
string
number : string
| var |
A number of the operation |
|---|
string
type : string
| var |
An identifier of a type of the operation |
|---|
string
status : string
| var |
A status identifier of the operation |
|---|
string
amount : float|null
| var |
A transaction amount |
|---|
float|null
currency : string
| var |
A code of a transaction currency |
|---|
string
withdrawalAmount : float|null
| var |
A withdrawal amount |
|---|
float|null
commissionAmount : float|null
| var |
An amount of a Dotpay commission. It's presented as a negative amount |
|---|
float|null
completed : boolean
| var |
A flag if operation is marked as completed in Seller panel |
|---|
boolean
originalAmount : float|null
| var |
An original amount which was sent from a shop |
|---|
float|null
originalCurrency : string
| var |
A code of an original currency which was sent from a shop |
|---|
string
dateTime : \DateTime|null
| var |
A date and a time of the last change status of the operation |
|---|
\DateTime|null
control : mixed
| var |
A value which was given during making a payment |
|---|
mixed
description : string
| var |
A description of the operation |
|---|
string
accountId : integer|null
| var |
An account id of a seller |
|---|
integer|null
payer : \Dotpay\Model\Payer|null
paymentMethod : \Dotpay\Model\PaymentMethod|null
types : array
| var |
List of all possible operation types |
|---|
array
statuses : array
| var |
List of all possible statuses of operation |
|---|
array