Skip to content

Commit

Permalink
feat(api): api update (#96)
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 0a12b66 commit 8aaa8b4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 44 deletions.
28 changes: 14 additions & 14 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,20 @@ Methods:
- <code title="get /quickbooks-desktop/credit-card-charges/{id}">client.qbd.credit_card_charges.<a href="./src/conductor/resources/qbd/credit_card_charges.py">retrieve</a>(id) -> <a href="./src/conductor/types/qbd/qbd_credit_card_charge.py">QbdCreditCardCharge</a></code>
- <code title="get /quickbooks-desktop/credit-card-charges">client.qbd.credit_card_charges.<a href="./src/conductor/resources/qbd/credit_card_charges.py">list</a>(\*\*<a href="src/conductor/types/qbd/credit_card_charge_list_params.py">params</a>) -> <a href="./src/conductor/types/qbd/qbd_credit_card_charge.py">SyncCursorPage[QbdCreditCardCharge]</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>

## Customers

Types:
Expand Down Expand Up @@ -241,17 +255,3 @@ 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>
12 changes: 6 additions & 6 deletions src/conductor/resources/qbd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@
"AsyncCreditCardChargesResourceWithRawResponse",
"CreditCardChargesResourceWithStreamingResponse",
"AsyncCreditCardChargesResourceWithStreamingResponse",
"CreditCardCreditsResource",
"AsyncCreditCardCreditsResource",
"CreditCardCreditsResourceWithRawResponse",
"AsyncCreditCardCreditsResourceWithRawResponse",
"CreditCardCreditsResourceWithStreamingResponse",
"AsyncCreditCardCreditsResourceWithStreamingResponse",
"CustomersResource",
"AsyncCustomersResource",
"CustomersResourceWithRawResponse",
Expand Down Expand Up @@ -214,12 +220,6 @@
"AsyncVendorsResourceWithRawResponse",
"VendorsResourceWithStreamingResponse",
"AsyncVendorsResourceWithStreamingResponse",
"CreditCardCreditsResource",
"AsyncCreditCardCreditsResource",
"CreditCardCreditsResourceWithRawResponse",
"AsyncCreditCardCreditsResourceWithRawResponse",
"CreditCardCreditsResourceWithStreamingResponse",
"AsyncCreditCardCreditsResourceWithStreamingResponse",
"QbdResource",
"AsyncQbdResource",
"QbdResourceWithRawResponse",
Expand Down
48 changes: 24 additions & 24 deletions src/conductor/resources/qbd/qbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def classes(self) -> ClassesResource:
def credit_card_charges(self) -> CreditCardChargesResource:
return CreditCardChargesResource(self._client)

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

@cached_property
def customers(self) -> CustomersResource:
return CustomersResource(self._client)
Expand Down Expand Up @@ -185,10 +189,6 @@ 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 @@ -226,6 +226,10 @@ def classes(self) -> AsyncClassesResource:
def credit_card_charges(self) -> AsyncCreditCardChargesResource:
return AsyncCreditCardChargesResource(self._client)

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

@cached_property
def customers(self) -> AsyncCustomersResource:
return AsyncCustomersResource(self._client)
Expand Down Expand Up @@ -266,10 +270,6 @@ 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 @@ -310,6 +310,10 @@ def classes(self) -> ClassesResourceWithRawResponse:
def credit_card_charges(self) -> CreditCardChargesResourceWithRawResponse:
return CreditCardChargesResourceWithRawResponse(self._qbd.credit_card_charges)

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

@cached_property
def customers(self) -> CustomersResourceWithRawResponse:
return CustomersResourceWithRawResponse(self._qbd.customers)
Expand Down Expand Up @@ -350,10 +354,6 @@ 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 All @@ -375,6 +375,10 @@ def classes(self) -> AsyncClassesResourceWithRawResponse:
def credit_card_charges(self) -> AsyncCreditCardChargesResourceWithRawResponse:
return AsyncCreditCardChargesResourceWithRawResponse(self._qbd.credit_card_charges)

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

@cached_property
def customers(self) -> AsyncCustomersResourceWithRawResponse:
return AsyncCustomersResourceWithRawResponse(self._qbd.customers)
Expand Down Expand Up @@ -415,10 +419,6 @@ 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 All @@ -440,6 +440,10 @@ def classes(self) -> ClassesResourceWithStreamingResponse:
def credit_card_charges(self) -> CreditCardChargesResourceWithStreamingResponse:
return CreditCardChargesResourceWithStreamingResponse(self._qbd.credit_card_charges)

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

@cached_property
def customers(self) -> CustomersResourceWithStreamingResponse:
return CustomersResourceWithStreamingResponse(self._qbd.customers)
Expand Down Expand Up @@ -480,10 +484,6 @@ 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 All @@ -505,6 +505,10 @@ def classes(self) -> AsyncClassesResourceWithStreamingResponse:
def credit_card_charges(self) -> AsyncCreditCardChargesResourceWithStreamingResponse:
return AsyncCreditCardChargesResourceWithStreamingResponse(self._qbd.credit_card_charges)

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

@cached_property
def customers(self) -> AsyncCustomersResourceWithStreamingResponse:
return AsyncCustomersResourceWithStreamingResponse(self._qbd.customers)
Expand Down Expand Up @@ -544,7 +548,3 @@ 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)

0 comments on commit 8aaa8b4

Please sign in to comment.