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
9 changes: 3 additions & 6 deletions hubspot/crm/line_items/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""
Line Items

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
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. # noqa: E501

The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
Expand Down Expand Up @@ -40,17 +40,14 @@
from hubspot.crm.line_items.models.batch_input_simple_public_object_id import BatchInputSimplePublicObjectId
from hubspot.crm.line_items.models.batch_read_input_simple_public_object_id import BatchReadInputSimplePublicObjectId
from hubspot.crm.line_items.models.batch_response_simple_public_object import BatchResponseSimplePublicObject
from hubspot.crm.line_items.models.batch_response_simple_public_object_with_errors import BatchResponseSimplePublicObjectWithErrors
from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object import BatchResponseSimplePublicUpsertObject
from hubspot.crm.line_items.models.batch_response_simple_public_upsert_object_with_errors import BatchResponseSimplePublicUpsertObjectWithErrors
from hubspot.crm.line_items.models.collection_response_associated_id import CollectionResponseAssociatedId
from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations_forward_paging import CollectionResponseSimplePublicObjectWithAssociationsForwardPaging
from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object_forward_paging import CollectionResponseWithTotalSimplePublicObjectForwardPaging
from hubspot.crm.line_items.models.collection_response_simple_public_object_with_associations import CollectionResponseSimplePublicObjectWithAssociations
from hubspot.crm.line_items.models.collection_response_with_total_simple_public_object import CollectionResponseWithTotalSimplePublicObject
from hubspot.crm.line_items.models.error import Error
from hubspot.crm.line_items.models.error_detail import ErrorDetail
from hubspot.crm.line_items.models.filter import Filter
from hubspot.crm.line_items.models.filter_group import FilterGroup
from hubspot.crm.line_items.models.forward_paging import ForwardPaging
from hubspot.crm.line_items.models.next_page import NextPage
from hubspot.crm.line_items.models.paging import Paging
from hubspot.crm.line_items.models.previous_page import PreviousPage
Expand Down
20 changes: 13 additions & 7 deletions hubspot/crm/line_items/api/basic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Line Items

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
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. # noqa: E501

The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
Expand Down Expand Up @@ -113,6 +113,8 @@ def archive_with_http_info(self, line_item_id, **kwargs): # noqa: E501
if self.api_client.client_side_validation and local_var_params.get("line_item_id") is None: # noqa: E501
raise ApiValueError("Missing the required parameter `line_item_id` when calling `archive`") # noqa: E501

if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501
raise ApiValueError("Invalid value for parameter `line_item_id` when calling `archive`, must conform to the pattern `/.+/`") # noqa: E501
collection_formats = {}

path_params = {}
Expand Down Expand Up @@ -260,7 +262,7 @@ def create_with_http_info(self, simple_public_object_input_for_create, **kwargs)
auth_settings = ["oauth2"] # noqa: E501

response_types_map = {
201: "SimplePublicObject",
200: "SimplePublicObject",
}

return self.api_client.call_api(
Expand Down Expand Up @@ -382,6 +384,8 @@ def get_by_id_with_http_info(self, line_item_id, **kwargs): # noqa: E501
if self.api_client.client_side_validation and local_var_params.get("line_item_id") is None: # noqa: E501
raise ApiValueError("Missing the required parameter `line_item_id` when calling `get_by_id`") # noqa: E501

if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501
raise ApiValueError("Invalid value for parameter `line_item_id` when calling `get_by_id`, must conform to the pattern `/.+/`") # noqa: E501
collection_formats = {}

path_params = {}
Expand Down Expand Up @@ -454,7 +458,7 @@ def get_page(self, **kwargs): # noqa: E501
:type after: str
:param properties: A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
:type properties: list[str]
:param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
:param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of line items that can be read by a single request.
:type properties_with_history: list[str]
:param associations: A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
:type associations: list[str]
Expand All @@ -473,7 +477,7 @@ def get_page(self, **kwargs): # noqa: E501
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: CollectionResponseSimplePublicObjectWithAssociationsForwardPaging
:rtype: CollectionResponseSimplePublicObjectWithAssociations
"""
kwargs["_return_http_data_only"] = True
return self.get_page_with_http_info(**kwargs) # noqa: E501
Expand All @@ -494,7 +498,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501
:type after: str
:param properties: A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored.
:type properties: list[str]
:param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request.
:param properties_with_history: A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of line items that can be read by a single request.
:type properties_with_history: list[str]
:param associations: A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored.
:type associations: list[str]
Expand All @@ -521,7 +525,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501
:return: Returns the result object.
If the method is called asynchronously,
returns the request thread.
:rtype: tuple(CollectionResponseSimplePublicObjectWithAssociationsForwardPaging, status_code(int), headers(HTTPHeaderDict))
:rtype: tuple(CollectionResponseSimplePublicObjectWithAssociations, status_code(int), headers(HTTPHeaderDict))
"""

local_var_params = locals()
Expand Down Expand Up @@ -569,7 +573,7 @@ def get_page_with_http_info(self, **kwargs): # noqa: E501
auth_settings = ["oauth2"] # noqa: E501

response_types_map = {
200: "CollectionResponseSimplePublicObjectWithAssociationsForwardPaging",
200: "CollectionResponseSimplePublicObjectWithAssociations",
}

return self.api_client.call_api(
Expand Down Expand Up @@ -682,6 +686,8 @@ def update_with_http_info(self, line_item_id, simple_public_object_input, **kwar
if self.api_client.client_side_validation and local_var_params.get("simple_public_object_input") is None: # noqa: E501
raise ApiValueError("Missing the required parameter `simple_public_object_input` when calling `update`") # noqa: E501

if self.api_client.client_side_validation and "line_item_id" in local_var_params and not re.search(r".+", local_var_params["line_item_id"]): # noqa: E501
raise ApiValueError("Invalid value for parameter `line_item_id` when calling `update`, must conform to the pattern `/.+/`") # noqa: E501
collection_formats = {}

path_params = {}
Expand Down
14 changes: 8 additions & 6 deletions hubspot/crm/line_items/api/batch_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Line Items

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
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. # noqa: E501

The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
Expand Down Expand Up @@ -36,6 +36,7 @@ def __init__(self, api_client=None):
def archive(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501
"""Archive a batch of line items by ID # noqa: E501

Archive multiple line items simultaneously by specifying their IDs in the request body. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -65,6 +66,7 @@ def archive(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501
def archive_with_http_info(self, batch_input_simple_public_object_id, **kwargs): # noqa: E501
"""Archive a batch of line items by ID # noqa: E501

Archive multiple line items simultaneously by specifying their IDs in the request body. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -160,6 +162,7 @@ def archive_with_http_info(self, batch_input_simple_public_object_id, **kwargs):
def create(self, batch_input_simple_public_object_batch_input_for_create, **kwargs): # noqa: E501
"""Create a batch of line items # noqa: E501

Create multiple line items in a single request by providing the necessary properties and associations for each item. This endpoint allows for efficient batch processing of line items, returning the created objects with their unique identifiers. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -189,6 +192,7 @@ def create(self, batch_input_simple_public_object_batch_input_for_create, **kwar
def create_with_http_info(self, batch_input_simple_public_object_batch_input_for_create, **kwargs): # noqa: E501
"""Create a batch of line items # noqa: E501

Create multiple line items in a single request by providing the necessary properties and associations for each item. This endpoint allows for efficient batch processing of line items, returning the created objects with their unique identifiers. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -261,8 +265,7 @@ def create_with_http_info(self, batch_input_simple_public_object_batch_input_for
auth_settings = ["oauth2"] # noqa: E501

response_types_map = {
201: "BatchResponseSimplePublicObject",
207: "BatchResponseSimplePublicObjectWithErrors",
200: "BatchResponseSimplePublicObject",
}

return self.api_client.call_api(
Expand Down Expand Up @@ -397,7 +400,6 @@ def read_with_http_info(self, batch_read_input_simple_public_object_id, **kwargs

response_types_map = {
200: "BatchResponseSimplePublicObject",
207: "BatchResponseSimplePublicObjectWithErrors",
}

return self.api_client.call_api(
Expand All @@ -422,6 +424,7 @@ def read_with_http_info(self, batch_read_input_simple_public_object_id, **kwargs
def update(self, batch_input_simple_public_object_batch_input, **kwargs): # noqa: E501
"""Update a batch of line items by internal ID, or unique property values # noqa: E501

Update multiple line items using their internal IDs or unique property values. This endpoint allows for batch processing of updates, ensuring efficient modification of line item records in bulk. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -451,6 +454,7 @@ def update(self, batch_input_simple_public_object_batch_input, **kwargs): # noq
def update_with_http_info(self, batch_input_simple_public_object_batch_input, **kwargs): # noqa: E501
"""Update a batch of line items by internal ID, or unique property values # noqa: E501

Update multiple line items using their internal IDs or unique property values. This endpoint allows for batch processing of updates, ensuring efficient modification of line item records in bulk. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down Expand Up @@ -524,7 +528,6 @@ def update_with_http_info(self, batch_input_simple_public_object_batch_input, **

response_types_map = {
200: "BatchResponseSimplePublicObject",
207: "BatchResponseSimplePublicObjectWithErrors",
}

return self.api_client.call_api(
Expand Down Expand Up @@ -653,7 +656,6 @@ def upsert_with_http_info(self, batch_input_simple_public_object_batch_input_ups

response_types_map = {
200: "BatchResponseSimplePublicUpsertObject",
207: "BatchResponseSimplePublicUpsertObjectWithErrors",
}

return self.api_client.call_api(
Expand Down
Loading