Skip to content

Commit

Permalink
feat(api): api update (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 31, 2024
1 parent ed0f954 commit bd6a52e
Show file tree
Hide file tree
Showing 21 changed files with 933 additions and 511 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 121
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-03da125cb58a86ac3aee9d8452a8fbb439e1b6a25a1eb99d21c95cbbc7927c6b.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-fc8066fe5b78d6eff48c7676701baa90d621e34074ff7474fbc02f29d6963db8.yml
104 changes: 68 additions & 36 deletions src/conductor/resources/qbd/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,33 +291,49 @@ def update(
expense_lines: The bill's expense lines, each representing one line in this expense.
**IMPORTANT**: When updating a bill's expense lines, this array completely
REPLACES all existing expense lines for that bill. To retain any current expense
lines, include them in this array, even if they have not changed. Any expense
lines not included will be removed. To add a new expense line, include it with
its `id` set to `-1`. If you do not wish to modify the expense lines, you can
omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
expense lines for the bill with this array. To keep any existing expense
lines, you must include them in this array even if they have not changed.
**Any expense lines not included will be removed.**
2. To add a new expense line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any expense lines, omit this field entirely to
keep them unchanged.
item_line_groups: The bill's item group lines, each representing a predefined set of items bundled
together because they are commonly purchased together or grouped for faster
entry.
**IMPORTANT**: When updating a bill's item group lines, this array completely
REPLACES all existing item group lines for that bill. To retain any current item
group lines, include them in this array, even if they have not changed. Any item
group lines not included will be removed. To add a new item group line, include
it with its `id` set to `-1`. If you do not wish to modify the item group lines,
you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item group lines for the bill with this array. To keep any existing item
group lines, you must include them in this array even if they have not
changed. **Any item group lines not included will be removed.**
2. To add a new item group line, include it here with the `id` field set to
`-1`.
3. If you do not wish to modify any item group lines, omit this field entirely
to keep them unchanged.
item_lines: The bill's item lines, each representing the purchase of a specific item or
service.
**IMPORTANT**: When updating a bill's item lines, this array completely REPLACES
all existing item lines for that bill. To retain any current item lines, include
them in this array, even if they have not changed. Any item lines not included
will be removed. To add a new item line, include it with its `id` set to `-1`.
If you do not wish to modify the item lines, you can omit this field entirely to
keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item lines for the bill with this array. To keep any existing item lines, you
must include them in this array even if they have not changed. **Any item
lines not included will be removed.**
2. To add a new item line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any item lines, omit this field entirely to keep
them unchanged.
memo: A memo or note for this bill that appears in the Accounts-Payable register and
in reports that include this bill.
Expand Down Expand Up @@ -808,33 +824,49 @@ async def update(
expense_lines: The bill's expense lines, each representing one line in this expense.
**IMPORTANT**: When updating a bill's expense lines, this array completely
REPLACES all existing expense lines for that bill. To retain any current expense
lines, include them in this array, even if they have not changed. Any expense
lines not included will be removed. To add a new expense line, include it with
its `id` set to `-1`. If you do not wish to modify the expense lines, you can
omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
expense lines for the bill with this array. To keep any existing expense
lines, you must include them in this array even if they have not changed.
**Any expense lines not included will be removed.**
2. To add a new expense line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any expense lines, omit this field entirely to
keep them unchanged.
item_line_groups: The bill's item group lines, each representing a predefined set of items bundled
together because they are commonly purchased together or grouped for faster
entry.
**IMPORTANT**: When updating a bill's item group lines, this array completely
REPLACES all existing item group lines for that bill. To retain any current item
group lines, include them in this array, even if they have not changed. Any item
group lines not included will be removed. To add a new item group line, include
it with its `id` set to `-1`. If you do not wish to modify the item group lines,
you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item group lines for the bill with this array. To keep any existing item
group lines, you must include them in this array even if they have not
changed. **Any item group lines not included will be removed.**
2. To add a new item group line, include it here with the `id` field set to
`-1`.
3. If you do not wish to modify any item group lines, omit this field entirely
to keep them unchanged.
item_lines: The bill's item lines, each representing the purchase of a specific item or
service.
**IMPORTANT**: When updating a bill's item lines, this array completely REPLACES
all existing item lines for that bill. To retain any current item lines, include
them in this array, even if they have not changed. Any item lines not included
will be removed. To add a new item line, include it with its `id` set to `-1`.
If you do not wish to modify the item lines, you can omit this field entirely to
keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item lines for the bill with this array. To keep any existing item lines, you
must include them in this array even if they have not changed. **Any item
lines not included will be removed.**
2. To add a new item line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any item lines, omit this field entirely to keep
them unchanged.
memo: A memo or note for this bill that appears in the Accounts-Payable register and
in reports that include this bill.
Expand Down
104 changes: 68 additions & 36 deletions src/conductor/resources/qbd/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,17 @@ def update(
expense_lines: The check's expense lines, each representing one line in this expense.
**IMPORTANT**: When updating a check's expense lines, this array completely
REPLACES all existing expense lines for that check. To retain any current
expense lines, include them in this array, even if they have not changed. Any
expense lines not included will be removed. To add a new expense line, include
it with its `id` set to `-1`. If you do not wish to modify the expense lines,
you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
expense lines for the check with this array. To keep any existing expense
lines, you must include them in this array even if they have not changed.
**Any expense lines not included will be removed.**
2. To add a new expense line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any expense lines, omit this field entirely to
keep them unchanged.
is_queued_for_print: Indicates whether this check is included in the queue of documents for
QuickBooks to print.
Expand All @@ -298,22 +303,33 @@ def update(
bundled together because they are commonly purchased together or grouped for
faster entry.
**IMPORTANT**: When updating a check's item group lines, this array completely
REPLACES all existing item group lines for that check. To retain any current
item group lines, include them in this array, even if they have not changed. Any
item group lines not included will be removed. To add a new item group line,
include it with its `id` set to `-1`. If you do not wish to modify the item
group lines, you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item group lines for the check with this array. To keep any existing item
group lines, you must include them in this array even if they have not
changed. **Any item group lines not included will be removed.**
2. To add a new item group line, include it here with the `id` field set to
`-1`.
3. If you do not wish to modify any item group lines, omit this field entirely
to keep them unchanged.
item_lines: The check's item lines, each representing the purchase of a specific item or
service.
**IMPORTANT**: When updating a check's item lines, this array completely
REPLACES all existing item lines for that check. To retain any current item
lines, include them in this array, even if they have not changed. Any item lines
not included will be removed. To add a new item line, include it with its `id`
set to `-1`. If you do not wish to modify the item lines, you can omit this
field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item lines for the check with this array. To keep any existing item lines,
you must include them in this array even if they have not changed. **Any item
lines not included will be removed.**
2. To add a new item line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any item lines, omit this field entirely to keep
them unchanged.
memo: The memo that is printed on this check.
Expand Down Expand Up @@ -786,12 +802,17 @@ async def update(
expense_lines: The check's expense lines, each representing one line in this expense.
**IMPORTANT**: When updating a check's expense lines, this array completely
REPLACES all existing expense lines for that check. To retain any current
expense lines, include them in this array, even if they have not changed. Any
expense lines not included will be removed. To add a new expense line, include
it with its `id` set to `-1`. If you do not wish to modify the expense lines,
you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
expense lines for the check with this array. To keep any existing expense
lines, you must include them in this array even if they have not changed.
**Any expense lines not included will be removed.**
2. To add a new expense line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any expense lines, omit this field entirely to
keep them unchanged.
is_queued_for_print: Indicates whether this check is included in the queue of documents for
QuickBooks to print.
Expand All @@ -800,22 +821,33 @@ async def update(
bundled together because they are commonly purchased together or grouped for
faster entry.
**IMPORTANT**: When updating a check's item group lines, this array completely
REPLACES all existing item group lines for that check. To retain any current
item group lines, include them in this array, even if they have not changed. Any
item group lines not included will be removed. To add a new item group line,
include it with its `id` set to `-1`. If you do not wish to modify the item
group lines, you can omit this field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item group lines for the check with this array. To keep any existing item
group lines, you must include them in this array even if they have not
changed. **Any item group lines not included will be removed.**
2. To add a new item group line, include it here with the `id` field set to
`-1`.
3. If you do not wish to modify any item group lines, omit this field entirely
to keep them unchanged.
item_lines: The check's item lines, each representing the purchase of a specific item or
service.
**IMPORTANT**: When updating a check's item lines, this array completely
REPLACES all existing item lines for that check. To retain any current item
lines, include them in this array, even if they have not changed. Any item lines
not included will be removed. To add a new item line, include it with its `id`
set to `-1`. If you do not wish to modify the item lines, you can omit this
field entirely to keep them unchanged.
**IMPORTANT**:
1. Including this array in your update request will **REPLACE** all existing
item lines for the check with this array. To keep any existing item lines,
you must include them in this array even if they have not changed. **Any item
lines not included will be removed.**
2. To add a new item line, include it here with the `id` field set to `-1`.
3. If you do not wish to modify any item lines, omit this field entirely to keep
them unchanged.
memo: The memo that is printed on this check.
Expand Down
Loading

0 comments on commit bd6a52e

Please sign in to comment.