Skip to content

Add multiCategoryOptions to GetAttributesAttributes #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
37 changes: 32 additions & 5 deletions lib/Model/GetAttributesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
'category' => 'string',
'type' => 'string',
'enumeration' => '\Brevo\Client\Model\GetAttributesEnumeration[]',
'calculatedValue' => 'string'
'calculatedValue' => 'string',
'multiCategoryOptions' => 'string[]'
];

/**
Expand All @@ -74,7 +75,8 @@ class GetAttributesAttributes implements ModelInterface, ArrayAccess
'category' => null,
'type' => null,
'enumeration' => null,
'calculatedValue' => null
'calculatedValue' => null,
'multiCategoryOptions' => null
];

/**
Expand Down Expand Up @@ -108,7 +110,8 @@ public static function swaggerFormats()
'category' => 'category',
'type' => 'type',
'enumeration' => 'enumeration',
'calculatedValue' => 'calculatedValue'
'calculatedValue' => 'calculatedValue',
'multiCategoryOptions' => 'multiCategoryOptions'
];

/**
Expand All @@ -121,7 +124,8 @@ public static function swaggerFormats()
'category' => 'setCategory',
'type' => 'setType',
'enumeration' => 'setEnumeration',
'calculatedValue' => 'setCalculatedValue'
'calculatedValue' => 'setCalculatedValue',
'multiCategoryOptions' => 'setMultiCategoryOptions'
];

/**
Expand All @@ -134,7 +138,8 @@ public static function swaggerFormats()
'category' => 'getCategory',
'type' => 'getType',
'enumeration' => 'getEnumeration',
'calculatedValue' => 'getCalculatedValue'
'calculatedValue' => 'getCalculatedValue',
'multiCategoryOptions' => 'getMultiCategoryOptions'
];

/**
Expand Down Expand Up @@ -188,6 +193,7 @@ public function getModelName()
const TYPE_FLOAT = 'float';
const TYPE_ID = 'id';
const TYPE_BOOLEAN = 'boolean';
const TYPE_MULTIPLE_CHOICE = 'multiple-choice';



Expand Down Expand Up @@ -220,6 +226,7 @@ public function getTypeAllowableValues()
self::TYPE_FLOAT,
self::TYPE_ID,
self::TYPE_BOOLEAN,
self::MULTIPLE_CHOICE
];
}

Expand All @@ -244,6 +251,7 @@ public function __construct(array $data = null)
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['enumeration'] = isset($data['enumeration']) ? $data['enumeration'] : null;
$this->container['calculatedValue'] = isset($data['calculatedValue']) ? $data['calculatedValue'] : null;
$this->container['multiCategoryOptions'] = isset($data['multiCategoryOptions']) ? $data['multiCategoryOptions'] : null;
}

/**
Expand Down Expand Up @@ -316,6 +324,25 @@ public function setName($name)
return $this;
}

public function getMultiCategoryOptions()
{
return $this->container['multiCategoryOptions'];
}

/**
* Sets name
*
* @param string $name Name of the attribute
*
* @return $this
*/
public function setMultiCategoryOptions($name)
{
$this->container['multiCategoryOptions'] = $name;

return $this;
}

/**
* Gets category
*
Expand Down