Skip to content
Merged
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
124 changes: 76 additions & 48 deletions codegen/Crm/Associations/Api/BatchApi.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions codegen/Crm/Associations/Model/AssociatedId.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function getId()
/**
* Sets id
*
* @param string $id The ID for the association type.
* @param string $id The unique ID that identifies an object.
*
* @return self
*/
Expand All @@ -343,7 +343,7 @@ public function getType()
/**
* Sets type
*
* @param string $type The type of association.
* @param string $type The type of associations.
*
* @return self
*/
Expand Down
68 changes: 0 additions & 68 deletions codegen/Crm/Associations/Model/BatchResponsePublicAssociation.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ class BatchResponsePublicAssociation implements ModelInterface, ArrayAccess, \Js
*/
protected static $openAPITypes = [
'completed_at' => '\DateTime',
'errors' => '\HubSpot\Client\Crm\Associations\Model\StandardError[]',
'links' => 'array<string,string>',
'num_errors' => 'int',
'requested_at' => '\DateTime',
'results' => '\HubSpot\Client\Crm\Associations\Model\PublicAssociation[]',
'started_at' => '\DateTime',
Expand All @@ -76,9 +74,7 @@ class BatchResponsePublicAssociation implements ModelInterface, ArrayAccess, \Js
*/
protected static $openAPIFormats = [
'completed_at' => 'date-time',
'errors' => null,
'links' => null,
'num_errors' => 'int32',
'requested_at' => 'date-time',
'results' => null,
'started_at' => 'date-time',
Expand All @@ -92,9 +88,7 @@ class BatchResponsePublicAssociation implements ModelInterface, ArrayAccess, \Js
*/
protected static array $openAPINullables = [
'completed_at' => false,
'errors' => false,
'links' => false,
'num_errors' => false,
'requested_at' => false,
'results' => false,
'started_at' => false,
Expand Down Expand Up @@ -188,9 +182,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'completed_at' => 'completedAt',
'errors' => 'errors',
'links' => 'links',
'num_errors' => 'numErrors',
'requested_at' => 'requestedAt',
'results' => 'results',
'started_at' => 'startedAt',
Expand All @@ -204,9 +196,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'completed_at' => 'setCompletedAt',
'errors' => 'setErrors',
'links' => 'setLinks',
'num_errors' => 'setNumErrors',
'requested_at' => 'setRequestedAt',
'results' => 'setResults',
'started_at' => 'setStartedAt',
Expand All @@ -220,9 +210,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'completed_at' => 'getCompletedAt',
'errors' => 'getErrors',
'links' => 'getLinks',
'num_errors' => 'getNumErrors',
'requested_at' => 'getRequestedAt',
'results' => 'getResults',
'started_at' => 'getStartedAt',
Expand Down Expand Up @@ -306,9 +294,7 @@ public function getStatusAllowableValues()
public function __construct(?array $data = null)
{
$this->setIfExists('completed_at', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
$this->setIfExists('links', $data ?? [], null);
$this->setIfExists('num_errors', $data ?? [], null);
$this->setIfExists('requested_at', $data ?? [], null);
$this->setIfExists('results', $data ?? [], null);
$this->setIfExists('started_at', $data ?? [], null);
Expand Down Expand Up @@ -405,33 +391,6 @@ public function setCompletedAt($completed_at)
return $this;
}

/**
* Gets errors
*
* @return \HubSpot\Client\Crm\Associations\Model\StandardError[]|null
*/
public function getErrors()
{
return $this->container['errors'];
}

/**
* Sets errors
*
* @param \HubSpot\Client\Crm\Associations\Model\StandardError[]|null $errors errors
*
* @return self
*/
public function setErrors($errors)
{
if (is_null($errors)) {
throw new \InvalidArgumentException('non-nullable errors cannot be null');
}
$this->container['errors'] = $errors;

return $this;
}

/**
* Gets links
*
Expand Down Expand Up @@ -459,33 +418,6 @@ public function setLinks($links)
return $this;
}

/**
* Gets num_errors
*
* @return int|null
*/
public function getNumErrors()
{
return $this->container['num_errors'];
}

/**
* Sets num_errors
*
* @param int|null $num_errors The number of errors encountered during the batch operation.
*
* @return self
*/
public function setNumErrors($num_errors)
{
if (is_null($num_errors)) {
throw new \InvalidArgumentException('non-nullable num_errors cannot be null');
}
$this->container['num_errors'] = $num_errors;

return $this;
}

/**
* Gets requested_at
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ class BatchResponsePublicAssociationMulti implements ModelInterface, ArrayAccess
*/
protected static $openAPITypes = [
'completed_at' => '\DateTime',
'errors' => '\HubSpot\Client\Crm\Associations\Model\StandardError[]',
'links' => 'array<string,string>',
'num_errors' => 'int',
'requested_at' => '\DateTime',
'results' => '\HubSpot\Client\Crm\Associations\Model\PublicAssociationMulti[]',
'started_at' => '\DateTime',
Expand All @@ -76,9 +74,7 @@ class BatchResponsePublicAssociationMulti implements ModelInterface, ArrayAccess
*/
protected static $openAPIFormats = [
'completed_at' => 'date-time',
'errors' => null,
'links' => null,
'num_errors' => 'int32',
'requested_at' => 'date-time',
'results' => null,
'started_at' => 'date-time',
Expand All @@ -92,9 +88,7 @@ class BatchResponsePublicAssociationMulti implements ModelInterface, ArrayAccess
*/
protected static array $openAPINullables = [
'completed_at' => false,
'errors' => false,
'links' => false,
'num_errors' => false,
'requested_at' => false,
'results' => false,
'started_at' => false,
Expand Down Expand Up @@ -188,9 +182,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $attributeMap = [
'completed_at' => 'completedAt',
'errors' => 'errors',
'links' => 'links',
'num_errors' => 'numErrors',
'requested_at' => 'requestedAt',
'results' => 'results',
'started_at' => 'startedAt',
Expand All @@ -204,9 +196,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $setters = [
'completed_at' => 'setCompletedAt',
'errors' => 'setErrors',
'links' => 'setLinks',
'num_errors' => 'setNumErrors',
'requested_at' => 'setRequestedAt',
'results' => 'setResults',
'started_at' => 'setStartedAt',
Expand All @@ -220,9 +210,7 @@ public function isNullableSetToNull(string $property): bool
*/
protected static $getters = [
'completed_at' => 'getCompletedAt',
'errors' => 'getErrors',
'links' => 'getLinks',
'num_errors' => 'getNumErrors',
'requested_at' => 'getRequestedAt',
'results' => 'getResults',
'started_at' => 'getStartedAt',
Expand Down Expand Up @@ -306,9 +294,7 @@ public function getStatusAllowableValues()
public function __construct(?array $data = null)
{
$this->setIfExists('completed_at', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
$this->setIfExists('links', $data ?? [], null);
$this->setIfExists('num_errors', $data ?? [], null);
$this->setIfExists('requested_at', $data ?? [], null);
$this->setIfExists('results', $data ?? [], null);
$this->setIfExists('started_at', $data ?? [], null);
Expand Down Expand Up @@ -405,33 +391,6 @@ public function setCompletedAt($completed_at)
return $this;
}

/**
* Gets errors
*
* @return \HubSpot\Client\Crm\Associations\Model\StandardError[]|null
*/
public function getErrors()
{
return $this->container['errors'];
}

/**
* Sets errors
*
* @param \HubSpot\Client\Crm\Associations\Model\StandardError[]|null $errors errors
*
* @return self
*/
public function setErrors($errors)
{
if (is_null($errors)) {
throw new \InvalidArgumentException('non-nullable errors cannot be null');
}
$this->container['errors'] = $errors;

return $this;
}

/**
* Gets links
*
Expand Down Expand Up @@ -459,33 +418,6 @@ public function setLinks($links)
return $this;
}

/**
* Gets num_errors
*
* @return int|null
*/
public function getNumErrors()
{
return $this->container['num_errors'];
}

/**
* Sets num_errors
*
* @param int|null $num_errors The number of errors encountered during the batch operation.
*
* @return self
*/
public function setNumErrors($num_errors)
{
if (is_null($num_errors)) {
throw new \InvalidArgumentException('non-nullable num_errors cannot be null');
}
$this->container['num_errors'] = $num_errors;

return $this;
}

/**
* Gets requested_at
*
Expand Down
Loading
Loading