SupportedTransactionCurrency
in package
Class SupportedTransactionCurrency The currency that may be used to pay this invoice. The values are objects with an "enabled" boolean and option.
An extra "reason" parameter is added in the object if a cryptocurrency is disabled on a specific invoice.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- SupportedTransactionCurrency constructor.
- getEnabled() : bool|null
- Sets enabled.
- getReason() : string|null
- Sets reason.
- setEnabled() : void
- Gets enabled.
- setReason() : void
- Gets reason.
- toArray() : array<string|int, mixed>
- Return array with enabled and reason value.
Properties
$enabled
protected
bool|null
$enabled
= null
$reason
protected
string|null
$reason
= null
Methods
__construct()
SupportedTransactionCurrency constructor.
public
__construct() : mixed
getEnabled()
Sets enabled.
public
getEnabled() : bool|null
Return values
bool|nullgetReason()
Sets reason.
public
getReason() : string|null
Return values
string|nullsetEnabled()
Gets enabled.
public
setEnabled(bool $enabled) : void
Parameters
- $enabled : bool
-
is enabled
setReason()
Gets reason.
public
setReason(string $reason) : void
Parameters
- $reason : string
-
the reason
toArray()
Return array with enabled and reason value.
public
toArray() : array<string|int, mixed>