Menu

## SupportedTransactionCurrency
in package

SupportedTransactionCurrency.php : 21

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

author

  BitPay Integrations integrations@bitpay.com

license

  http://www.opensource.org/licenses/mit-license.php MIT

see
  https://bitpay.readme.io/reference/invoices

  REST API Invoices

### Table of Contents

#### Properties

$enabled : bool|null
$reason : string|null

#### 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

SupportedTransactionCurrency.php : 23
`protected bool|null $enabled = null`

#### $reason

SupportedTransactionCurrency.php : 24
`protected string|null $reason = null`

### Methods

#### __construct()

SupportedTransactionCurrency.php : 29

SupportedTransactionCurrency constructor.

`public __construct() : mixed`

#### getEnabled()

SupportedTransactionCurrency.php : 48

Sets enabled.

`public getEnabled() : bool|null`

##### Return values

bool|null

#### getReason()

SupportedTransactionCurrency.php : 68

Sets reason.

`public getReason() : string|null`

##### Return values

string|null

#### setEnabled()

SupportedTransactionCurrency.php : 38

Gets enabled.

`public setEnabled(bool $enabled) : void`

##### Parameters

$enabled : bool

  is enabled

#### setReason()

SupportedTransactionCurrency.php : 58

Gets reason.

`public setReason(string $reason) : void`

##### Parameters

$reason : string

  the reason

#### toArray()

SupportedTransactionCurrency.php : 78

Return array with enabled and reason value.

`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

## Search results