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
47 changes: 28 additions & 19 deletions codegen/Crm/LineItems/Api/BasicApi.php

Large diffs are not rendered by default.

162 changes: 11 additions & 151 deletions codegen/Crm/LineItems/Api/BatchApi.php

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions codegen/Crm/LineItems/Api/SearchApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down Expand Up @@ -125,14 +125,14 @@ public function getConfig()
/**
* Operation doSearch
*
* Search for line items
* Search for line items using specified criteria.
*
* @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
* @throws \HubSpot\Client\Crm\LineItems\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging|\HubSpot\Client\Crm\LineItems\Model\Error
* @return \HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject|\HubSpot\Client\Crm\LineItems\Model\Error
*/
public function doSearch($public_object_search_request, string $contentType = self::contentTypes['doSearch'][0])
{
Expand All @@ -143,14 +143,14 @@ public function doSearch($public_object_search_request, string $contentType = se
/**
* Operation doSearchWithHttpInfo
*
* Search for line items
* Search for line items using specified criteria.
*
* @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
*
* @throws \HubSpot\Client\Crm\LineItems\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging|\HubSpot\Client\Crm\LineItems\Model\Error, HTTP status code, HTTP response headers (array of strings)
* @return array of \HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject|\HubSpot\Client\Crm\LineItems\Model\Error, HTTP status code, HTTP response headers (array of strings)
*/
public function doSearchWithHttpInfo($public_object_search_request, string $contentType = self::contentTypes['doSearch'][0])
{
Expand Down Expand Up @@ -181,11 +181,11 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont

switch($statusCode) {
case 200:
if ('\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging' === '\SplFileObject') {
if ('\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging' !== 'string') {
if ('\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -203,7 +203,7 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
}

return [
ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging', []),
ObjectSerializer::deserialize($content, '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand Down Expand Up @@ -249,7 +249,7 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
);
}

$returnType = '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging';
$returnType = '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -282,7 +282,7 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging',
'\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand All @@ -303,7 +303,7 @@ public function doSearchWithHttpInfo($public_object_search_request, string $cont
/**
* Operation doSearchAsync
*
* Search for line items
* Search for line items using specified criteria.
*
* @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
Expand All @@ -324,7 +324,7 @@ function ($response) {
/**
* Operation doSearchAsyncWithHttpInfo
*
* Search for line items
* Search for line items using specified criteria.
*
* @param \HubSpot\Client\Crm\LineItems\Model\PublicObjectSearchRequest $public_object_search_request (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['doSearch'] to see the possible values for this operation
Expand All @@ -334,7 +334,7 @@ function ($response) {
*/
public function doSearchAsyncWithHttpInfo($public_object_search_request, string $contentType = self::contentTypes['doSearch'][0])
{
$returnType = '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObjectForwardPaging';
$returnType = '\HubSpot\Client\Crm\LineItems\Model\CollectionResponseWithTotalSimplePublicObject';
$request = $this->doSearchRequest($public_object_search_request, $contentType);

return $this->client
Expand Down
2 changes: 1 addition & 1 deletion codegen/Crm/LineItems/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion codegen/Crm/LineItems/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion codegen/Crm/LineItems/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
7 changes: 4 additions & 3 deletions codegen/Crm/LineItems/Model/AssociatedId.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,6 +35,7 @@
* AssociatedId Class Doc Comment
*
* @category Class
* @description Contains the id and type of an association
* @package HubSpot\Client\Crm\LineItems
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down Expand Up @@ -315,7 +316,7 @@ public function getId()
/**
* Sets id
*
* @param string $id id
* @param string $id The ID for the association type.
*
* @return self
*/
Expand All @@ -342,7 +343,7 @@ public function getType()
/**
* Sets type
*
* @param string $type type
* @param string $type The type of association.
*
* @return self
*/
Expand Down
11 changes: 6 additions & 5 deletions codegen/Crm/LineItems/Model/AssociationSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand All @@ -35,6 +35,7 @@
* AssociationSpec Class Doc Comment
*
* @category Class
* @description Defines the type, direction, and details of the relationship between two CRM objects.
* @package HubSpot\Client\Crm\LineItems
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
Expand Down Expand Up @@ -235,8 +236,8 @@ public function getModelName()
}

public const ASSOCIATION_CATEGORY_HUBSPOT_DEFINED = 'HUBSPOT_DEFINED';
public const ASSOCIATION_CATEGORY_USER_DEFINED = 'USER_DEFINED';
public const ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED = 'INTEGRATOR_DEFINED';
public const ASSOCIATION_CATEGORY_USER_DEFINED = 'USER_DEFINED';

/**
* Gets allowable values of the enum
Expand All @@ -247,8 +248,8 @@ public function getAssociationCategoryAllowableValues()
{
return [
self::ASSOCIATION_CATEGORY_HUBSPOT_DEFINED,
self::ASSOCIATION_CATEGORY_USER_DEFINED,
self::ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED,
self::ASSOCIATION_CATEGORY_USER_DEFINED,
];
}

Expand Down Expand Up @@ -341,7 +342,7 @@ public function getAssociationCategory()
/**
* Sets association_category
*
* @param string $association_category association_category
* @param string $association_category The category of the association, such as \"HUBSPOT_DEFINED\".
*
* @return self
*/
Expand Down Expand Up @@ -378,7 +379,7 @@ public function getAssociationTypeId()
/**
* Sets association_type_id
*
* @param int $association_type_id association_type_id
* @param int $association_type_id The ID representing the specific type of association.
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* Line Items
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported Object Types This API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https://developers.hubspot.com/docs/methods/crm-properties/crm-properties-overview). |Object Type |Properties returned by default | |--|--| | `companies` | `name`, `domain` | | `contacts` | `firstname`, `lastname`, `email` | | `deals` | `dealname`, `amount`, `closedate`, `pipeline`, `dealstage` | | `products` | `name`, `description`, `price` | | `tickets` | `content`, `hs_pipeline`, `hs_pipeline_stage`, `hs_ticket_category`, `hs_ticket_priority`, `subject` | Find a list of all properties for an object type using the [CRM Object Properties](https://developers.hubspot.com/docs/methods/crm-properties/get-properties) API. e.g. `GET https://api.hubapi.com/properties/v2/companies/properties`. Change the properties returned in the response using the `properties` array in the request body.
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
Expand Down
Loading