Skip to content

Commit

Permalink
feat(api): api update (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 17, 2024
1 parent b9c82e8 commit b19f258
Show file tree
Hide file tree
Showing 13 changed files with 3,192 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 50
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-d4fb92aaf77acf523483ecc97b1443118b5be5f095d1d91a8cc6028197048283.yml
configured_endpoints: 53
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-cf989f0c24e47b06658f8eb4f0c7c3f7c7d20a17d5f85ac5679f76e8c3ecad9c.yml
14 changes: 14 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,17 @@ Methods:
- <code title="post /quickbooks-desktop/vendors">client.qbd.vendors.<a href="./src/conductor/resources/qbd/vendors.py">create</a>(\*\*<a href="src/conductor/types/qbd/vendor_create_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_vendor.py">QbdVendor</a></code>
- <code title="get /quickbooks-desktop/vendors/{id}">client.qbd.vendors.<a href="./src/conductor/resources/qbd/vendors.py">retrieve</a>(id) -> <a href="./src/conductor/types/qbd/qbd_vendor.py">QbdVendor</a></code>
- <code title="get /quickbooks-desktop/vendors">client.qbd.vendors.<a href="./src/conductor/resources/qbd/vendors.py">list</a>(\*\*<a href="src/conductor/types/qbd/vendor_list_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_vendor.py">SyncCursorPage[QbdVendor]</a></code>

## CreditCardCredits

Types:

```python
from conductor.types.qbd import CreditCardCredit
```

Methods:

- <code title="post /quickbooks-desktop/credit-card-credits">client.qbd.credit_card_credits.<a href="./src/conductor/resources/qbd/credit_card_credits.py">create</a>(\*\*<a href="src/conductor/types/qbd/credit_card_credit_create_params.py">params</a>) -> <a href="./src/conductor/types/qbd/credit_card_credit.py">CreditCardCredit</a></code>
- <code title="get /quickbooks-desktop/credit-card-credits/{id}">client.qbd.credit_card_credits.<a href="./src/conductor/resources/qbd/credit_card_credits.py">retrieve</a>(id) -> <a href="./src/conductor/types/qbd/credit_card_credit.py">CreditCardCredit</a></code>
- <code title="get /quickbooks-desktop/credit-card-credits">client.qbd.credit_card_credits.<a href="./src/conductor/resources/qbd/credit_card_credits.py">list</a>(\*\*<a href="src/conductor/types/qbd/credit_card_credit_list_params.py">params</a>) -> <a href="./src/conductor/types/qbd/credit_card_credit.py">SyncCursorPage[CreditCardCredit]</a></code>
14 changes: 14 additions & 0 deletions src/conductor/resources/qbd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@
CreditCardChargesResourceWithStreamingResponse,
AsyncCreditCardChargesResourceWithStreamingResponse,
)
from .credit_card_credits import (
CreditCardCreditsResource,
AsyncCreditCardCreditsResource,
CreditCardCreditsResourceWithRawResponse,
AsyncCreditCardCreditsResourceWithRawResponse,
CreditCardCreditsResourceWithStreamingResponse,
AsyncCreditCardCreditsResourceWithStreamingResponse,
)
from .non_inventory_items import (
NonInventoryItemsResource,
AsyncNonInventoryItemsResource,
Expand Down Expand Up @@ -206,6 +214,12 @@
"AsyncVendorsResourceWithRawResponse",
"VendorsResourceWithStreamingResponse",
"AsyncVendorsResourceWithStreamingResponse",
"CreditCardCreditsResource",
"AsyncCreditCardCreditsResource",
"CreditCardCreditsResourceWithRawResponse",
"AsyncCreditCardCreditsResourceWithRawResponse",
"CreditCardCreditsResourceWithStreamingResponse",
"AsyncCreditCardCreditsResourceWithStreamingResponse",
"QbdResource",
"AsyncQbdResource",
"QbdResourceWithRawResponse",
Expand Down
700 changes: 700 additions & 0 deletions src/conductor/resources/qbd/credit_card_credits.py

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions src/conductor/resources/qbd/invoices.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@ def create(
will return an error.
invoice_line_groups: The invoice's line item groups. Each group represents a predefined set of
related items, enabling organized presentation of multiple items within the
invoice.
related items.
invoice_lines: The invoice's invoice lines, each representing a single product or service sold.
Expand Down Expand Up @@ -567,8 +566,7 @@ async def create(
will return an error.
invoice_line_groups: The invoice's line item groups. Each group represents a predefined set of
related items, enabling organized presentation of multiple items within the
invoice.
related items.
invoice_lines: The invoice's invoice lines, each representing a single product or service sold.
Expand Down
32 changes: 32 additions & 0 deletions src/conductor/resources/qbd/qbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@
CreditCardChargesResourceWithStreamingResponse,
AsyncCreditCardChargesResourceWithStreamingResponse,
)
from .credit_card_credits import (
CreditCardCreditsResource,
AsyncCreditCardCreditsResource,
CreditCardCreditsResourceWithRawResponse,
AsyncCreditCardCreditsResourceWithRawResponse,
CreditCardCreditsResourceWithStreamingResponse,
AsyncCreditCardCreditsResourceWithStreamingResponse,
)
from .non_inventory_items import (
NonInventoryItemsResource,
AsyncNonInventoryItemsResource,
Expand Down Expand Up @@ -177,6 +185,10 @@ def standard_terms(self) -> StandardTermsResource:
def vendors(self) -> VendorsResource:
return VendorsResource(self._client)

@cached_property
def credit_card_credits(self) -> CreditCardCreditsResource:
return CreditCardCreditsResource(self._client)

@cached_property
def with_raw_response(self) -> QbdResourceWithRawResponse:
"""
Expand Down Expand Up @@ -254,6 +266,10 @@ def standard_terms(self) -> AsyncStandardTermsResource:
def vendors(self) -> AsyncVendorsResource:
return AsyncVendorsResource(self._client)

@cached_property
def credit_card_credits(self) -> AsyncCreditCardCreditsResource:
return AsyncCreditCardCreditsResource(self._client)

@cached_property
def with_raw_response(self) -> AsyncQbdResourceWithRawResponse:
"""
Expand Down Expand Up @@ -334,6 +350,10 @@ def standard_terms(self) -> StandardTermsResourceWithRawResponse:
def vendors(self) -> VendorsResourceWithRawResponse:
return VendorsResourceWithRawResponse(self._qbd.vendors)

@cached_property
def credit_card_credits(self) -> CreditCardCreditsResourceWithRawResponse:
return CreditCardCreditsResourceWithRawResponse(self._qbd.credit_card_credits)


class AsyncQbdResourceWithRawResponse:
def __init__(self, qbd: AsyncQbdResource) -> None:
Expand Down Expand Up @@ -395,6 +415,10 @@ def standard_terms(self) -> AsyncStandardTermsResourceWithRawResponse:
def vendors(self) -> AsyncVendorsResourceWithRawResponse:
return AsyncVendorsResourceWithRawResponse(self._qbd.vendors)

@cached_property
def credit_card_credits(self) -> AsyncCreditCardCreditsResourceWithRawResponse:
return AsyncCreditCardCreditsResourceWithRawResponse(self._qbd.credit_card_credits)


class QbdResourceWithStreamingResponse:
def __init__(self, qbd: QbdResource) -> None:
Expand Down Expand Up @@ -456,6 +480,10 @@ def standard_terms(self) -> StandardTermsResourceWithStreamingResponse:
def vendors(self) -> VendorsResourceWithStreamingResponse:
return VendorsResourceWithStreamingResponse(self._qbd.vendors)

@cached_property
def credit_card_credits(self) -> CreditCardCreditsResourceWithStreamingResponse:
return CreditCardCreditsResourceWithStreamingResponse(self._qbd.credit_card_credits)


class AsyncQbdResourceWithStreamingResponse:
def __init__(self, qbd: AsyncQbdResource) -> None:
Expand Down Expand Up @@ -516,3 +544,7 @@ def standard_terms(self) -> AsyncStandardTermsResourceWithStreamingResponse:
@cached_property
def vendors(self) -> AsyncVendorsResourceWithStreamingResponse:
return AsyncVendorsResourceWithStreamingResponse(self._qbd.vendors)

@cached_property
def credit_card_credits(self) -> AsyncCreditCardCreditsResourceWithStreamingResponse:
return AsyncCreditCardCreditsResourceWithStreamingResponse(self._qbd.credit_card_credits)
3 changes: 3 additions & 0 deletions src/conductor/types/qbd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .class_list_params import ClassListParams as ClassListParams
from .qbd_standard_term import QbdStandardTerm as QbdStandardTerm
from .bill_create_params import BillCreateParams as BillCreateParams
from .credit_card_credit import CreditCardCredit as CreditCardCredit
from .non_inventory_item import NonInventoryItem as NonInventoryItem
from .qbd_sales_tax_item import QbdSalesTaxItem as QbdSalesTaxItem
from .vendor_list_params import VendorListParams as VendorListParams
Expand Down Expand Up @@ -44,8 +45,10 @@
from .sales_tax_code_list_response import SalesTaxCodeListResponse as SalesTaxCodeListResponse
from .sales_tax_item_create_params import SalesTaxItemCreateParams as SalesTaxItemCreateParams
from .credit_card_charge_list_params import CreditCardChargeListParams as CreditCardChargeListParams
from .credit_card_credit_list_params import CreditCardCreditListParams as CreditCardCreditListParams
from .date_driven_term_create_params import DateDrivenTermCreateParams as DateDrivenTermCreateParams
from .date_driven_term_list_response import DateDrivenTermListResponse as DateDrivenTermListResponse
from .non_inventory_item_list_params import NonInventoryItemListParams as NonInventoryItemListParams
from .credit_card_charge_create_params import CreditCardChargeCreateParams as CreditCardChargeCreateParams
from .credit_card_credit_create_params import CreditCardCreditCreateParams as CreditCardCreditCreateParams
from .non_inventory_item_create_params import NonInventoryItemCreateParams as NonInventoryItemCreateParams
Loading

0 comments on commit b19f258

Please sign in to comment.