Skip to content

Commit

Permalink
Codegen: Communication Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Oct 24, 2024
1 parent 7e9bdc9 commit d7bf7b1
Show file tree
Hide file tree
Showing 14 changed files with 62 additions and 32 deletions.
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Api/DefinitionApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Api/StatusApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Model/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Model/ErrorDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/Model/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,7 +35,6 @@
* PublicSubscriptionStatus Class Doc Comment
*
* @category Class
* @description The status of a subscription for a contact.
* @package HubSpot\Client\CommunicationPreferences
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,7 +35,6 @@
* PublicSubscriptionStatusesResponse Class Doc Comment
*
* @category Class
* @description A collection of subscription statuses for a contact.
* @package HubSpot\Client\CommunicationPreferences
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,7 +35,6 @@
* PublicUpdateSubscriptionStatusRequest Class Doc Comment
*
* @category Class
* @description A request to change the status of a contact's subscription.
* @package HubSpot\Client\CommunicationPreferences
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
38 changes: 36 additions & 2 deletions codegen/CommunicationPreferences/Model/SubscriptionDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down Expand Up @@ -66,6 +66,7 @@ class SubscriptionDefinition implements ModelInterface, ArrayAccess, \JsonSerial
'description' => 'string',
'id' => 'string',
'is_active' => 'bool',
'business_unit_id' => 'int',
'updated_at' => '\DateTime'
];

Expand All @@ -86,6 +87,7 @@ class SubscriptionDefinition implements ModelInterface, ArrayAccess, \JsonSerial
'description' => null,
'id' => null,
'is_active' => null,
'business_unit_id' => 'int64',
'updated_at' => 'date-time'
];

Expand All @@ -104,6 +106,7 @@ class SubscriptionDefinition implements ModelInterface, ArrayAccess, \JsonSerial
'description' => false,
'id' => false,
'is_active' => false,
'business_unit_id' => false,
'updated_at' => false
];

Expand Down Expand Up @@ -202,6 +205,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'description',
'id' => 'id',
'is_active' => 'isActive',
'business_unit_id' => 'businessUnitId',
'updated_at' => 'updatedAt'
];

Expand All @@ -220,6 +224,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'setDescription',
'id' => 'setId',
'is_active' => 'setIsActive',
'business_unit_id' => 'setBusinessUnitId',
'updated_at' => 'setUpdatedAt'
];

Expand All @@ -238,6 +243,7 @@ public function isNullableSetToNull(string $property): bool
'description' => 'getDescription',
'id' => 'getId',
'is_active' => 'getIsActive',
'business_unit_id' => 'getBusinessUnitId',
'updated_at' => 'getUpdatedAt'
];

Expand Down Expand Up @@ -307,6 +313,7 @@ public function __construct(array $data = null)
$this->setIfExists('description', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('is_active', $data ?? [], null);
$this->setIfExists('business_unit_id', $data ?? [], null);
$this->setIfExists('updated_at', $data ?? [], null);
}

Expand Down Expand Up @@ -619,6 +626,33 @@ public function setIsActive($is_active)
return $this;
}

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

/**
* Sets business_unit_id
*
* @param int|null $business_unit_id business_unit_id
*
* @return self
*/
public function setBusinessUnitId($business_unit_id)
{
if (is_null($business_unit_id)) {
throw new \InvalidArgumentException('non-nullable business_unit_id cannot be null');
}
$this->container['business_unit_id'] = $business_unit_id;

return $this;
}

/**
* Gets updated_at
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,7 +35,6 @@
* SubscriptionDefinitionsResponse Class Doc Comment
*
* @category Class
* @description A collection of subscription definitions for the portal.
* @package HubSpot\Client\CommunicationPreferences
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down
4 changes: 2 additions & 2 deletions codegen/CommunicationPreferences/ObjectSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/

/**
* Subscriptions
* Communication Preferences Subscriptions
*
* Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down

0 comments on commit d7bf7b1

Please sign in to comment.