Skip to content

Commit

Permalink
CommunicationPreferences and Conversations Visitor Identification: Co…
Browse files Browse the repository at this point in the history
…degen.
  • Loading branch information
ksvirkou-hubspot committed Feb 14, 2024
1 parent 5384af7 commit 83a17ba
Show file tree
Hide file tree
Showing 9 changed files with 621 additions and 621 deletions.
174 changes: 87 additions & 87 deletions codegen/CommunicationPreferences/Model/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'message' => 'string',
'correlation_id' => 'string',
'category' => 'string',
'sub_category' => 'string',
'errors' => '\HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]',
'context' => 'array<string,string[]>',
'links' => 'array<string,string>'
'correlation_id' => 'string',
'links' => 'array<string,string>',
'message' => 'string',
'category' => 'string',
'errors' => '\HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]'
];

/**
Expand All @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'message' => null,
'correlation_id' => 'uuid',
'category' => null,
'sub_category' => null,
'errors' => null,
'context' => null,
'links' => null
'correlation_id' => 'uuid',
'links' => null,
'message' => null,
'category' => null,
'errors' => null
];

/**
Expand Down Expand Up @@ -110,13 +110,13 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $attributeMap = [
'message' => 'message',
'correlation_id' => 'correlationId',
'category' => 'category',
'sub_category' => 'subCategory',
'errors' => 'errors',
'context' => 'context',
'links' => 'links'
'correlation_id' => 'correlationId',
'links' => 'links',
'message' => 'message',
'category' => 'category',
'errors' => 'errors'
];

/**
Expand All @@ -125,13 +125,13 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $setters = [
'message' => 'setMessage',
'correlation_id' => 'setCorrelationId',
'category' => 'setCategory',
'sub_category' => 'setSubCategory',
'errors' => 'setErrors',
'context' => 'setContext',
'links' => 'setLinks'
'correlation_id' => 'setCorrelationId',
'links' => 'setLinks',
'message' => 'setMessage',
'category' => 'setCategory',
'errors' => 'setErrors'
];

/**
Expand All @@ -140,13 +140,13 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $getters = [
'message' => 'getMessage',
'correlation_id' => 'getCorrelationId',
'category' => 'getCategory',
'sub_category' => 'getSubCategory',
'errors' => 'getErrors',
'context' => 'getContext',
'links' => 'getLinks'
'correlation_id' => 'getCorrelationId',
'links' => 'getLinks',
'message' => 'getMessage',
'category' => 'getCategory',
'errors' => 'getErrors'
];

/**
Expand Down Expand Up @@ -206,13 +206,13 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->container['message'] = $data['message'] ?? null;
$this->container['correlation_id'] = $data['correlation_id'] ?? null;
$this->container['category'] = $data['category'] ?? null;
$this->container['sub_category'] = $data['sub_category'] ?? null;
$this->container['errors'] = $data['errors'] ?? null;
$this->container['context'] = $data['context'] ?? null;
$this->container['correlation_id'] = $data['correlation_id'] ?? null;
$this->container['links'] = $data['links'] ?? null;
$this->container['message'] = $data['message'] ?? null;
$this->container['category'] = $data['category'] ?? null;
$this->container['errors'] = $data['errors'] ?? null;
}

/**
Expand All @@ -224,12 +224,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['message'] === null) {
$invalidProperties[] = "'message' can't be null";
}
if ($this->container['correlation_id'] === null) {
$invalidProperties[] = "'correlation_id' can't be null";
}
if ($this->container['message'] === null) {
$invalidProperties[] = "'message' can't be null";
}
if ($this->container['category'] === null) {
$invalidProperties[] = "'category' can't be null";
}
Expand All @@ -249,169 +249,169 @@ public function valid()


/**
* Gets message
* Gets sub_category
*
* @return string
* @return string|null
*/
public function getMessage()
public function getSubCategory()
{
return $this->container['message'];
return $this->container['sub_category'];
}

/**
* Sets message
* Sets sub_category
*
* @param string $message A human readable message describing the error along with remediation steps where appropriate
* @param string|null $sub_category A specific category that contains more specific detail about the error
*
* @return self
*/
public function setMessage($message)
public function setSubCategory($sub_category)
{
$this->container['message'] = $message;
$this->container['sub_category'] = $sub_category;

return $this;
}

/**
* Gets correlation_id
* Gets context
*
* @return string
* @return array<string,string[]>|null
*/
public function getCorrelationId()
public function getContext()
{
return $this->container['correlation_id'];
return $this->container['context'];
}

/**
* Sets correlation_id
* Sets context
*
* @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets
* @param array<string,string[]>|null $context Context about the error condition
*
* @return self
*/
public function setCorrelationId($correlation_id)
public function setContext($context)
{
$this->container['correlation_id'] = $correlation_id;
$this->container['context'] = $context;

return $this;
}

/**
* Gets category
* Gets correlation_id
*
* @return string
*/
public function getCategory()
public function getCorrelationId()
{
return $this->container['category'];
return $this->container['correlation_id'];
}

/**
* Sets category
* Sets correlation_id
*
* @param string $category The error category
* @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets
*
* @return self
*/
public function setCategory($category)
public function setCorrelationId($correlation_id)
{
$this->container['category'] = $category;
$this->container['correlation_id'] = $correlation_id;

return $this;
}

/**
* Gets sub_category
* Gets links
*
* @return string|null
* @return array<string,string>|null
*/
public function getSubCategory()
public function getLinks()
{
return $this->container['sub_category'];
return $this->container['links'];
}

/**
* Sets sub_category
* Sets links
*
* @param string|null $sub_category A specific category that contains more specific detail about the error
* @param array<string,string>|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps
*
* @return self
*/
public function setSubCategory($sub_category)
public function setLinks($links)
{
$this->container['sub_category'] = $sub_category;
$this->container['links'] = $links;

return $this;
}

/**
* Gets errors
* Gets message
*
* @return \HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]|null
* @return string
*/
public function getErrors()
public function getMessage()
{
return $this->container['errors'];
return $this->container['message'];
}

/**
* Sets errors
* Sets message
*
* @param \HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]|null $errors further information about the error
* @param string $message A human readable message describing the error along with remediation steps where appropriate
*
* @return self
*/
public function setErrors($errors)
public function setMessage($message)
{
$this->container['errors'] = $errors;
$this->container['message'] = $message;

return $this;
}

/**
* Gets context
* Gets category
*
* @return array<string,string[]>|null
* @return string
*/
public function getContext()
public function getCategory()
{
return $this->container['context'];
return $this->container['category'];
}

/**
* Sets context
* Sets category
*
* @param array<string,string[]>|null $context Context about the error condition
* @param string $category The error category
*
* @return self
*/
public function setContext($context)
public function setCategory($category)
{
$this->container['context'] = $context;
$this->container['category'] = $category;

return $this;
}

/**
* Gets links
* Gets errors
*
* @return array<string,string>|null
* @return \HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]|null
*/
public function getLinks()
public function getErrors()
{
return $this->container['links'];
return $this->container['errors'];
}

/**
* Sets links
* Sets errors
*
* @param array<string,string>|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps
* @param \HubSpot\Client\CommunicationPreferences\Model\ErrorDetail[]|null $errors further information about the error
*
* @return self
*/
public function setLinks($links)
public function setErrors($errors)
{
$this->container['links'] = $links;
$this->container['errors'] = $errors;

return $this;
}
Expand Down
Loading

0 comments on commit 83a17ba

Please sign in to comment.