Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
611ac354-b83d-44d0-a142-42aef9ad9b18
5af0f055-58bb-4809-9d3f-bebabdbb2695
54 changes: 52 additions & 2 deletions lib/Model/AccountUniversalActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class AccountUniversalActivity implements ModelInterface, ArrayAccess, \JsonSeri
protected static $openAPITypes = [
'id' => 'string',
'symbol' => '\SnapTrade\Model\AccountUniversalActivitySymbol',
'currency_universal_symbol' => '\SnapTrade\Model\AccountUniversalActivityCurrencyUniversalSymbol',
'option_symbol' => '\SnapTrade\Model\AccountUniversalActivityOptionSymbol',
'price' => 'float',
'units' => 'float',
Expand All @@ -79,6 +80,7 @@ class AccountUniversalActivity implements ModelInterface, ArrayAccess, \JsonSeri
protected static $openAPIFormats = [
'id' => null,
'symbol' => null,
'currency_universal_symbol' => null,
'option_symbol' => null,
'price' => null,
'units' => null,
Expand All @@ -103,11 +105,12 @@ class AccountUniversalActivity implements ModelInterface, ArrayAccess, \JsonSeri
protected static array $openAPINullables = [
'id' => false,
'symbol' => true,
'currency_universal_symbol' => true,
'option_symbol' => true,
'price' => false,
'units' => false,
'amount' => true,
'currency' => false,
'currency' => true,
'type' => false,
'option_type' => false,
'description' => false,
Expand Down Expand Up @@ -207,6 +210,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'id' => 'id',
'symbol' => 'symbol',
'currency_universal_symbol' => 'currency_universal_symbol',
'option_symbol' => 'option_symbol',
'price' => 'price',
'units' => 'units',
Expand All @@ -231,6 +235,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'id' => 'setId',
'symbol' => 'setSymbol',
'currency_universal_symbol' => 'setCurrencyUniversalSymbol',
'option_symbol' => 'setOptionSymbol',
'price' => 'setPrice',
'units' => 'setUnits',
Expand All @@ -255,6 +260,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'id' => 'getId',
'symbol' => 'getSymbol',
'currency_universal_symbol' => 'getCurrencyUniversalSymbol',
'option_symbol' => 'getOptionSymbol',
'price' => 'getPrice',
'units' => 'getUnits',
Expand Down Expand Up @@ -330,6 +336,7 @@ public function __construct(array $data = null)
{
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('symbol', $data ?? [], null);
$this->setIfExists('currency_universal_symbol', $data ?? [], null);
$this->setIfExists('option_symbol', $data ?? [], null);
$this->setIfExists('price', $data ?? [], null);
$this->setIfExists('units', $data ?? [], null);
Expand Down Expand Up @@ -453,6 +460,42 @@ public function setSymbol($symbol)
return $this;
}

/**
* Gets currency_universal_symbol
*
* @return \SnapTrade\Model\AccountUniversalActivityCurrencyUniversalSymbol|null
*/
public function getCurrencyUniversalSymbol()
{
return $this->container['currency_universal_symbol'];
}

/**
* Sets currency_universal_symbol
*
* @param \SnapTrade\Model\AccountUniversalActivityCurrencyUniversalSymbol|null $currency_universal_symbol currency_universal_symbol
*
* @return self
*/
public function setCurrencyUniversalSymbol($currency_universal_symbol)
{

if (is_null($currency_universal_symbol)) {
array_push($this->openAPINullablesSetToNull, 'currency_universal_symbol');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('currency_universal_symbol', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['currency_universal_symbol'] = $currency_universal_symbol;

return $this;
}

/**
* Gets option_symbol
*
Expand Down Expand Up @@ -604,7 +647,14 @@ public function setCurrency($currency)
{

if (is_null($currency)) {
throw new \InvalidArgumentException('non-nullable currency cannot be null');
array_push($this->openAPINullablesSetToNull, 'currency');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('currency', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}

$this->container['currency'] = $currency;
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AccountUniversalActivityCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* AccountUniversalActivityCurrency Class Doc Comment
*
* @category Class
* @description The currency in which the transaction `price` and `amount` is denominated.
* @description The currency in which the transaction `price`, `amount`, and `fee` are denominated. This is `null` when those values are denominated in `currency_universal_symbol`.
* @package SnapTrade
* @implements \ArrayAccess<string, mixed>
*/
Expand Down
Loading