From 47528b8f9adc1bbcc9fa8546e706773bde3e53da Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:37:38 +0000 Subject: [PATCH 1/3] feat(api): api update (#88) --- .stats.yml | 4 +- api.md | 1 - .../resources/integration_connections.py | 83 ------------------- .../test_integration_connections.py | 78 +---------------- 4 files changed, 3 insertions(+), 163 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1e447fcf..ead2693a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ -configured_endpoints: 51 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-3a917b8686955f6fde9d822081ba7df42bed37826f0bf2c83fedad0a47721b91.yml +configured_endpoints: 50 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-c4dc3dacc6c38337f94611473ca8829d77ff6a4e57a980c697fa01486143e6b8.yml diff --git a/api.md b/api.md index 105d05fd..d7cf8b3a 100644 --- a/api.md +++ b/api.md @@ -42,7 +42,6 @@ from conductor.types import IntegrationConnection, IntegrationConnectionListResp Methods: -- client.integration_connections.retrieve(id) -> IntegrationConnection - client.integration_connections.list() -> IntegrationConnectionListResponse # Qbd diff --git a/src/conductor/resources/integration_connections.py b/src/conductor/resources/integration_connections.py index 7f49fa96..7929c530 100644 --- a/src/conductor/resources/integration_connections.py +++ b/src/conductor/resources/integration_connections.py @@ -14,7 +14,6 @@ async_to_streamed_response_wrapper, ) from .._base_client import make_request_options -from ..types.integration_connection import IntegrationConnection from ..types.integration_connection_list_response import IntegrationConnectionListResponse __all__ = ["IntegrationConnectionsResource", "AsyncIntegrationConnectionsResource"] @@ -40,41 +39,6 @@ def with_streaming_response(self) -> IntegrationConnectionsResourceWithStreaming """ return IntegrationConnectionsResourceWithStreamingResponse(self) - def retrieve( - self, - id: str, - *, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> IntegrationConnection: - """ - Retrieves an IntegrationConnection object. - - Args: - id: The ID of the IntegrationConnection to retrieve. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not id: - raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") - return self._get( - f"/integration-connections/{id}", - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=IntegrationConnection, - ) - def list( self, *, @@ -115,41 +79,6 @@ def with_streaming_response(self) -> AsyncIntegrationConnectionsResourceWithStre """ return AsyncIntegrationConnectionsResourceWithStreamingResponse(self) - async def retrieve( - self, - id: str, - *, - # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. - # The extra values given here take precedence over values defined on the client or passed to this method. - extra_headers: Headers | None = None, - extra_query: Query | None = None, - extra_body: Body | None = None, - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, - ) -> IntegrationConnection: - """ - Retrieves an IntegrationConnection object. - - Args: - id: The ID of the IntegrationConnection to retrieve. - - extra_headers: Send extra headers - - extra_query: Add additional query parameters to the request - - extra_body: Add additional JSON properties to the request - - timeout: Override the client-level default timeout for this request, in seconds - """ - if not id: - raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") - return await self._get( - f"/integration-connections/{id}", - options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout - ), - cast_to=IntegrationConnection, - ) - async def list( self, *, @@ -174,9 +103,6 @@ class IntegrationConnectionsResourceWithRawResponse: def __init__(self, integration_connections: IntegrationConnectionsResource) -> None: self._integration_connections = integration_connections - self.retrieve = to_raw_response_wrapper( - integration_connections.retrieve, - ) self.list = to_raw_response_wrapper( integration_connections.list, ) @@ -186,9 +112,6 @@ class AsyncIntegrationConnectionsResourceWithRawResponse: def __init__(self, integration_connections: AsyncIntegrationConnectionsResource) -> None: self._integration_connections = integration_connections - self.retrieve = async_to_raw_response_wrapper( - integration_connections.retrieve, - ) self.list = async_to_raw_response_wrapper( integration_connections.list, ) @@ -198,9 +121,6 @@ class IntegrationConnectionsResourceWithStreamingResponse: def __init__(self, integration_connections: IntegrationConnectionsResource) -> None: self._integration_connections = integration_connections - self.retrieve = to_streamed_response_wrapper( - integration_connections.retrieve, - ) self.list = to_streamed_response_wrapper( integration_connections.list, ) @@ -210,9 +130,6 @@ class AsyncIntegrationConnectionsResourceWithStreamingResponse: def __init__(self, integration_connections: AsyncIntegrationConnectionsResource) -> None: self._integration_connections = integration_connections - self.retrieve = async_to_streamed_response_wrapper( - integration_connections.retrieve, - ) self.list = async_to_streamed_response_wrapper( integration_connections.list, ) diff --git a/tests/api_resources/test_integration_connections.py b/tests/api_resources/test_integration_connections.py index 95a55e7e..030a385e 100644 --- a/tests/api_resources/test_integration_connections.py +++ b/tests/api_resources/test_integration_connections.py @@ -9,7 +9,7 @@ from conductor import Conductor, AsyncConductor from tests.utils import assert_matches_type -from conductor.types import IntegrationConnection, IntegrationConnectionListResponse +from conductor.types import IntegrationConnectionListResponse base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") @@ -17,44 +17,6 @@ class TestIntegrationConnections: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @parametrize - def test_method_retrieve(self, client: Conductor) -> None: - integration_connection = client.integration_connections.retrieve( - "int_conn_1234567abcdefg", - ) - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - @parametrize - def test_raw_response_retrieve(self, client: Conductor) -> None: - response = client.integration_connections.with_raw_response.retrieve( - "int_conn_1234567abcdefg", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - integration_connection = response.parse() - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - @parametrize - def test_streaming_response_retrieve(self, client: Conductor) -> None: - with client.integration_connections.with_streaming_response.retrieve( - "int_conn_1234567abcdefg", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - integration_connection = response.parse() - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @parametrize - def test_path_params_retrieve(self, client: Conductor) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): - client.integration_connections.with_raw_response.retrieve( - "", - ) - @parametrize def test_method_list(self, client: Conductor) -> None: integration_connection = client.integration_connections.list() @@ -84,44 +46,6 @@ def test_streaming_response_list(self, client: Conductor) -> None: class TestAsyncIntegrationConnections: parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"]) - @parametrize - async def test_method_retrieve(self, async_client: AsyncConductor) -> None: - integration_connection = await async_client.integration_connections.retrieve( - "int_conn_1234567abcdefg", - ) - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - @parametrize - async def test_raw_response_retrieve(self, async_client: AsyncConductor) -> None: - response = await async_client.integration_connections.with_raw_response.retrieve( - "int_conn_1234567abcdefg", - ) - - assert response.is_closed is True - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - integration_connection = await response.parse() - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - @parametrize - async def test_streaming_response_retrieve(self, async_client: AsyncConductor) -> None: - async with async_client.integration_connections.with_streaming_response.retrieve( - "int_conn_1234567abcdefg", - ) as response: - assert not response.is_closed - assert response.http_request.headers.get("X-Stainless-Lang") == "python" - - integration_connection = await response.parse() - assert_matches_type(IntegrationConnection, integration_connection, path=["response"]) - - assert cast(Any, response.is_closed) is True - - @parametrize - async def test_path_params_retrieve(self, async_client: AsyncConductor) -> None: - with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): - await async_client.integration_connections.with_raw_response.retrieve( - "", - ) - @parametrize async def test_method_list(self, async_client: AsyncConductor) -> None: integration_connection = await async_client.integration_connections.list() From 041768ffbfa1c651672714522c3f1fc9b3b41acd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:45:15 +0000 Subject: [PATCH 2/3] feat(api): api update (#90) --- .stats.yml | 2 +- src/conductor/types/qbd/inventory_item.py | 19 +++- src/conductor/types/qbd/non_inventory_item.py | 19 +++- src/conductor/types/qbd/qbd_account.py | 19 +++- src/conductor/types/qbd/qbd_bill.py | 95 ++++++++++++++++++- .../types/qbd/qbd_credit_card_charge.py | 95 ++++++++++++++++++- src/conductor/types/qbd/qbd_customer.py | 19 +++- src/conductor/types/qbd/qbd_invoice.py | 76 ++++++++++++++- src/conductor/types/qbd/qbd_sales_tax_item.py | 19 +++- src/conductor/types/qbd/qbd_vendor.py | 19 +++- src/conductor/types/qbd/service_item.py | 19 +++- 11 files changed, 379 insertions(+), 22 deletions(-) diff --git a/.stats.yml b/.stats.yml index ead2693a..11dad4d6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 50 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-c4dc3dacc6c38337f94611473ca8829d77ff6a4e57a980c697fa01486143e6b8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-41bb351091016f69a8934b404d2a2e432c4c76744d6323dfd2575fde06ab1a9b.yml diff --git a/src/conductor/types/qbd/inventory_item.py b/src/conductor/types/qbd/inventory_item.py index 2d30e22a..f64f5c9c 100644 --- a/src/conductor/types/qbd/inventory_item.py +++ b/src/conductor/types/qbd/inventory_item.py @@ -72,8 +72,21 @@ class CogsAccount(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -85,9 +98,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class IncomeAccount(BaseModel): diff --git a/src/conductor/types/qbd/non_inventory_item.py b/src/conductor/types/qbd/non_inventory_item.py index 118d1f90..26fcced4 100644 --- a/src/conductor/types/qbd/non_inventory_item.py +++ b/src/conductor/types/qbd/non_inventory_item.py @@ -42,8 +42,21 @@ class Class(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -55,9 +68,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class Parent(BaseModel): diff --git a/src/conductor/types/qbd/qbd_account.py b/src/conductor/types/qbd/qbd_account.py index e0fb5b9c..dcbf557f 100644 --- a/src/conductor/types/qbd/qbd_account.py +++ b/src/conductor/types/qbd/qbd_account.py @@ -28,8 +28,21 @@ class Currency(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -41,9 +54,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class Parent(BaseModel): diff --git a/src/conductor/types/qbd/qbd_bill.py b/src/conductor/types/qbd/qbd_bill.py index 93270d50..f4290654 100644 --- a/src/conductor/types/qbd/qbd_bill.py +++ b/src/conductor/types/qbd/qbd_bill.py @@ -86,8 +86,21 @@ class Currency(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -99,9 +112,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ExpenseLineAccount(BaseModel): @@ -138,8 +155,21 @@ class ExpenseLineClass(BaseModel): class ExpenseLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -151,9 +181,13 @@ class ExpenseLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ExpenseLinePayee(BaseModel): @@ -277,8 +311,21 @@ class ExpenseLine(BaseModel): class ItemGroupLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -290,9 +337,13 @@ class ItemGroupLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemGroupLineItemGroup(BaseModel): @@ -345,8 +396,21 @@ class ItemGroupLineItemLineCustomer(BaseModel): class ItemGroupLineItemLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -358,9 +422,13 @@ class ItemGroupLineItemLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemGroupLineItemLineInventorySite(BaseModel): @@ -709,8 +777,21 @@ class ItemLineCustomer(BaseModel): class ItemLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -722,9 +803,13 @@ class ItemLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemLineInventorySite(BaseModel): diff --git a/src/conductor/types/qbd/qbd_credit_card_charge.py b/src/conductor/types/qbd/qbd_credit_card_charge.py index 233b81af..590b5cc4 100644 --- a/src/conductor/types/qbd/qbd_credit_card_charge.py +++ b/src/conductor/types/qbd/qbd_credit_card_charge.py @@ -83,8 +83,21 @@ class Currency(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -96,9 +109,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ExpenseLineAccount(BaseModel): @@ -135,8 +152,21 @@ class ExpenseLineClass(BaseModel): class ExpenseLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -148,9 +178,13 @@ class ExpenseLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ExpenseLinePayee(BaseModel): @@ -274,8 +308,21 @@ class ExpenseLine(BaseModel): class ItemGroupLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -287,9 +334,13 @@ class ItemGroupLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemGroupLineItemGroup(BaseModel): @@ -342,8 +393,21 @@ class ItemGroupLineItemLineCustomer(BaseModel): class ItemGroupLineItemLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -355,9 +419,13 @@ class ItemGroupLineItemLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemGroupLineItemLineInventorySite(BaseModel): @@ -706,8 +774,21 @@ class ItemLineCustomer(BaseModel): class ItemLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -719,9 +800,13 @@ class ItemLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemLineInventorySite(BaseModel): diff --git a/src/conductor/types/qbd/qbd_customer.py b/src/conductor/types/qbd/qbd_customer.py index 652a5c4d..1d29e3df 100644 --- a/src/conductor/types/qbd/qbd_customer.py +++ b/src/conductor/types/qbd/qbd_customer.py @@ -259,8 +259,21 @@ class CustomerType(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -272,9 +285,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class ItemSalesTax(BaseModel): diff --git a/src/conductor/types/qbd/qbd_invoice.py b/src/conductor/types/qbd/qbd_invoice.py index 7f284614..219f1f6d 100644 --- a/src/conductor/types/qbd/qbd_invoice.py +++ b/src/conductor/types/qbd/qbd_invoice.py @@ -165,8 +165,21 @@ class CustomerMessage(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -178,9 +191,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class DocumentTemplate(BaseModel): @@ -201,8 +218,21 @@ class DocumentTemplate(BaseModel): class InvoiceLineGroupCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -214,9 +244,13 @@ class InvoiceLineGroupCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class InvoiceLineGroupInvoiceLineClass(BaseModel): @@ -237,8 +271,21 @@ class InvoiceLineGroupInvoiceLineClass(BaseModel): class InvoiceLineGroupInvoiceLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -250,9 +297,13 @@ class InvoiceLineGroupInvoiceLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class InvoiceLineGroupInvoiceLineInventorySite(BaseModel): @@ -605,8 +656,21 @@ class InvoiceLineClass(BaseModel): class InvoiceLineCustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -618,9 +682,13 @@ class InvoiceLineCustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class InvoiceLineInventorySite(BaseModel): diff --git a/src/conductor/types/qbd/qbd_sales_tax_item.py b/src/conductor/types/qbd/qbd_sales_tax_item.py index 79dc1fcd..9f77af4d 100644 --- a/src/conductor/types/qbd/qbd_sales_tax_item.py +++ b/src/conductor/types/qbd/qbd_sales_tax_item.py @@ -28,8 +28,21 @@ class Class(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -41,9 +54,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class SalesTaxReturnLine(BaseModel): diff --git a/src/conductor/types/qbd/qbd_vendor.py b/src/conductor/types/qbd/qbd_vendor.py index 90dea0ee..8087d93f 100644 --- a/src/conductor/types/qbd/qbd_vendor.py +++ b/src/conductor/types/qbd/qbd_vendor.py @@ -194,8 +194,21 @@ class CustomContactField(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -207,9 +220,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class PrefillAccount(BaseModel): diff --git a/src/conductor/types/qbd/service_item.py b/src/conductor/types/qbd/service_item.py index 7487c4e1..43581063 100644 --- a/src/conductor/types/qbd/service_item.py +++ b/src/conductor/types/qbd/service_item.py @@ -42,8 +42,21 @@ class Class(BaseModel): class CustomField(BaseModel): name: str + """The name of the custom field, unique for the specified `ownerId`. + + For public custom fields, this name is visible as a label in the QuickBooks UI. + """ owner_id: Optional[str] = FieldInfo(alias="ownerId", default=None) + """ + The identifier of the owner of the custom field, which QuickBooks internally + calls a "data extension". For public custom fields visible in the UI, such as + those added by the QuickBooks user, this is always "0". For private custom + fields that are only visible to the application that created them, this is a + valid GUID identifying the owning application. Internally, Conductor always + fetches all public custom fields (those with an `ownerId` of "0") for all + objects. + """ type: Literal[ "amount_type", @@ -55,9 +68,13 @@ class CustomField(BaseModel): "string_1024_type", "string_255_type", ] - """The custom field's data type, which corresponds to a QuickBooks data type.""" + """The data type of the custom field.""" value: str + """The value of the custom field. + + The maximum length depends on the field's data type. + """ class Parent(BaseModel): From 4341b2baad47639ae50e7ba449a14ac29e90d9fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:45:31 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.10 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/conductor/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 46b9b6b2..3b005e52 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.9" + ".": "0.1.0-alpha.10" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a6ec79b..e21657bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.10 (2024-10-16) + +Full Changelog: [v0.1.0-alpha.9...v0.1.0-alpha.10](https://github.com/conductor-is/conductor-python/compare/v0.1.0-alpha.9...v0.1.0-alpha.10) + +### Features + +* **api:** api update ([#88](https://github.com/conductor-is/conductor-python/issues/88)) ([47528b8](https://github.com/conductor-is/conductor-python/commit/47528b8f9adc1bbcc9fa8546e706773bde3e53da)) +* **api:** api update ([#90](https://github.com/conductor-is/conductor-python/issues/90)) ([041768f](https://github.com/conductor-is/conductor-python/commit/041768ffbfa1c651672714522c3f1fc9b3b41acd)) + ## 0.1.0-alpha.9 (2024-10-15) Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/conductor-is/conductor-python/compare/v0.1.0-alpha.8...v0.1.0-alpha.9) diff --git a/pyproject.toml b/pyproject.toml index 54af221a..6bf0acd0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "conductor-py" -version = "0.1.0-alpha.9" +version = "0.1.0-alpha.10" description = "The official Python library for the conductor API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/conductor/_version.py b/src/conductor/_version.py index 0f2857a2..6e0aab6a 100644 --- a/src/conductor/_version.py +++ b/src/conductor/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "conductor" -__version__ = "0.1.0-alpha.9" # x-release-please-version +__version__ = "0.1.0-alpha.10" # x-release-please-version