Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 21, 2024
1 parent 1b59254 commit fa7c51a
Show file tree
Hide file tree
Showing 8 changed files with 287 additions and 109 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: 42
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-91a3811435d3ec91bbc8cfe5ffef5b6a865baa87067da7db1c5626522d92cf50.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-1bf468e2b46322a3858d795a35cf67460d02e2a8c9daec960ff81883305e251b.yml
5 changes: 1 addition & 4 deletions src/conductor/types/qbd/inventory_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,7 @@ class InventoryItem(BaseModel):
"""

income_account: Optional[IncomeAccount] = FieldInfo(alias="incomeAccount", default=None)
"""
The income account associated with this inventory item, used to track revenue
from sales.
"""
"""The inventory item's income account, used to track revenue from sales."""

is_active: bool = FieldInfo(alias="isActive")
"""Indicates whether this inventory item is active.
Expand Down
16 changes: 8 additions & 8 deletions src/conductor/types/qbd/non_inventory_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class NonInventoryItem(BaseModel):
"""
The fully-qualified unique name for this non-inventory item, formed by combining
the names of its parent objects with its own `name`, separated by colons. For
example, if a non-inventory item is under 'Office Supplies' and has the `name`
'Printer Ink Cartridge', its `fullName` would be 'Office Supplies:Printer Ink
example, if a non-inventory item is under 'Office-Supplies' and has the `name`
'Printer Ink Cartridge', its `fullName` would be 'Office-Supplies:Printer Ink
Cartridge'. Unlike `name`, `fullName` is guaranteed to be unique across all
non-inventory item objects.
"""
Expand All @@ -332,7 +332,7 @@ class NonInventoryItem(BaseModel):
Not guaranteed to be unique because it does not include the names of its parent
objects like `fullName` does. For example, two objects could both have the
`name` "Printer Ink Cartridge", but they could have unique `fullName` values,
such as "Office Supplies:Printer Ink Cartridge" and "Miscellaneous:Printer Ink
such as "Office-Supplies:Printer Ink Cartridge" and "Miscellaneous:Printer Ink
Cartridge".
"""

Expand All @@ -342,10 +342,10 @@ class NonInventoryItem(BaseModel):
parent: Optional[Parent] = None
"""The parent non-inventory item one level above this one in the hierarchy.
For example, if this non-inventory item has a `fullName` of "Office
Supplies:Printer Ink Cartridge", its parent has a `fullName` of "Office
Supplies". If this non-inventory item is at the top level, `parent` will be
`null`.
For example, if this non-inventory item has a `fullName` of
"Office-Supplies:Printer Ink Cartridge", its parent has a `fullName` of
"Office-Supplies". If this non-inventory item is at the top level, `parent` will
be `null`.
"""

sales_and_purchase_details: Optional[SalesAndPurchaseDetails] = FieldInfo(
Expand Down Expand Up @@ -380,7 +380,7 @@ class NonInventoryItem(BaseModel):
A top-level non-inventory item has a `sublevel` of 0; each subsequent sublevel
increases this number by 1. For example, a non-inventory item with a `fullName`
of "Office Supplies:Printer Ink Cartridge" would have a `sublevel` of 1.
of "Office-Supplies:Printer Ink Cartridge" would have a `sublevel` of 1.
"""

unit_of_measure_set: Optional[UnitOfMeasureSet] = FieldInfo(alias="unitOfMeasureSet", default=None)
Expand Down
17 changes: 7 additions & 10 deletions src/conductor/types/qbd/qbd_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ class QbdAccount(BaseModel):
"""
The fully-qualified unique name for this account, formed by combining the names
of its parent objects with its own `name`, separated by colons. For example, if
an account is under 'Corporate' and has the `name` 'Accounts Payable', its
`fullName` would be 'Corporate:Accounts Payable'. Unlike `name`, `fullName` is
an account is under 'Corporate' and has the `name` 'Accounts-Payable', its
`fullName` would be 'Corporate:Accounts-Payable'. Unlike `name`, `fullName` is
guaranteed to be unique across all account objects.
"""

Expand All @@ -197,8 +197,8 @@ class QbdAccount(BaseModel):
Not guaranteed to be unique because it does not include the names of its parent
objects like `fullName` does. For example, two objects could both have the
`name` "Accounts Payable", but they could have unique `fullName` values, such as
"Corporate:Accounts Payable" and "Finance:Accounts Payable".
`name` "Accounts-Payable", but they could have unique `fullName` values, such as
"Corporate:Accounts-Payable" and "Finance:Accounts-Payable".
"""

object_type: Literal["qbd_account"] = FieldInfo(alias="objectType")
Expand All @@ -207,7 +207,7 @@ class QbdAccount(BaseModel):
parent: Optional[Parent] = None
"""The parent account one level above this one in the hierarchy.
For example, if this account has a `fullName` of "Corporate:Accounts Payable",
For example, if this account has a `fullName` of "Corporate:Accounts-Payable",
its parent has a `fullName` of "Corporate". If this account is at the top level,
`parent` will be `null`.
"""
Expand Down Expand Up @@ -255,14 +255,11 @@ class QbdAccount(BaseModel):
A top-level account has a `sublevel` of 0; each subsequent sublevel increases
this number by 1. For example, a account with a `fullName` of
"Corporate:Accounts Payable" would have a `sublevel` of 1.
"Corporate:Accounts-Payable" would have a `sublevel` of 1.
"""

tax_line_details: Optional[TaxLineDetails] = FieldInfo(alias="taxLineDetails", default=None)
"""
The tax line information associated with this account, used for tax reporting
purposes.
"""
"""The account's tax line details, used for tax reporting purposes."""

total_balance: Optional[str] = FieldInfo(alias="totalBalance", default=None)
"""
Expand Down
56 changes: 36 additions & 20 deletions src/conductor/types/qbd/qbd_bill.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,48 +212,64 @@ class ExpenseLineSalesTaxCode(BaseModel):

class ExpenseLine(BaseModel):
id: str
"""
The QuickBooks-assigned identifier for this transaction line, unique across all
transaction lines.
"""The unique identifier assigned by QuickBooks for this expense line.
This ID is unique among all transaction line types.
"""

account: Optional[ExpenseLineAccount] = None
"""
For expense lines, this typically refers to the expense account being debited
(increased). The corresponding credit would usually be to a liability account
(e.g., Accounts Payable) or an asset account (e.g., Cash), depending on the
transaction type.
"""

amount: Optional[str] = None
"""The monetary amount for this expense line, represented as a decimal string."""

billable_status: Optional[Literal["billable", "has_been_billed", "not_billable"]] = FieldInfo(
alias="billableStatus", default=None
)
"""The billable status of this line item."""
"""The billing status of this expense line."""

class_: Optional[ExpenseLineClass] = FieldInfo(alias="class", default=None)
"""The class associated with this object.
Classes can be used to categorize objects or transactions by department,
location, or other meaningful segments.
"""
The expense line's class, used for categorization (e.g., by department,
location, or type of work).
"""

customer: Optional[ExpenseLineCustomer] = None
"""
For expense lines, if `account` refers to an Accounts Payable (A/P) account,
`customer` refers to the expense's vendor (not the customer). If `account`
refers to any other type of account, `customer` refers to the expense's customer
(not the vendor).
"""

custom_fields: List[ExpenseLineCustomField] = FieldInfo(alias="customFields")
"""The custom fields added by the user to QuickBooks object as a data extension.
These fields are not part of the standard QuickBooks object.
"""
The custom fields added by the user to this expense line object as a data
extension. These fields are not part of the standard QuickBooks object.
"""

memo: Optional[str] = None
"""A memo or note for this expense line, as entered by the user."""

sales_representative: Optional[ExpenseLineSalesRepresentative] = FieldInfo(
alias="salesRepresentative", default=None
)
"""The expense's sales representative."""
"""The expense line's sales representative.
sales_tax_code: Optional[ExpenseLineSalesTaxCode] = FieldInfo(alias="salesTaxCode", default=None)
"""The sales tax code, indicating whether related items are taxable or non-taxable.
Sales representatives can be employees, vendors, or other names in QuickBooks.
"""

Two default codes are 'Non' (non-taxable) and 'Tax' (taxable). If QuickBooks is
not set up to charge sales tax, it will assign the default non-taxable code to
all sales.
sales_tax_code: Optional[ExpenseLineSalesTaxCode] = FieldInfo(alias="salesTaxCode", default=None)
"""
The sales tax code associated with this expense line, indicating whether it is
taxable or non-taxable. Default codes include 'NON' (non-taxable) and 'TAX'
(taxable). If QuickBooks is not set up to charge sales tax, it will assign the
default non-taxable code to all sales.
"""


Expand Down Expand Up @@ -921,8 +937,8 @@ class QbdBill(BaseModel):

accounts_payable_account: Optional[AccountsPayableAccount] = FieldInfo(alias="accountsPayableAccount", default=None)
"""
The accounts payable account to which this bill is assigned, used to track the
amount owed. If not specified, the default accounts payable account in
The Accounts Payable account to which this bill is assigned, used to track the
amount owed. If not specified, the default Accounts Payable account in
QuickBooks is used.
"""

Expand Down Expand Up @@ -1015,7 +1031,7 @@ class QbdBill(BaseModel):
memo: Optional[str] = None
"""A memo or note for this bill, as entered by the user.
Appears in the accounts payable register and relevant reports.
Appears in the Accounts Payable register and relevant reports.
"""

object_type: Literal["qbd_bill"] = FieldInfo(alias="objectType")
Expand Down
50 changes: 33 additions & 17 deletions src/conductor/types/qbd/qbd_credit_card_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,48 +209,64 @@ class ExpenseLineSalesTaxCode(BaseModel):

class ExpenseLine(BaseModel):
id: str
"""
The QuickBooks-assigned identifier for this transaction line, unique across all
transaction lines.
"""The unique identifier assigned by QuickBooks for this expense line.
This ID is unique among all transaction line types.
"""

account: Optional[ExpenseLineAccount] = None
"""
For expense lines, this typically refers to the expense account being debited
(increased). The corresponding credit would usually be to a liability account
(e.g., Accounts Payable) or an asset account (e.g., Cash), depending on the
transaction type.
"""

amount: Optional[str] = None
"""The monetary amount for this expense line, represented as a decimal string."""

billable_status: Optional[Literal["billable", "has_been_billed", "not_billable"]] = FieldInfo(
alias="billableStatus", default=None
)
"""The billable status of this line item."""
"""The billing status of this expense line."""

class_: Optional[ExpenseLineClass] = FieldInfo(alias="class", default=None)
"""The class associated with this object.
Classes can be used to categorize objects or transactions by department,
location, or other meaningful segments.
"""
The expense line's class, used for categorization (e.g., by department,
location, or type of work).
"""

customer: Optional[ExpenseLineCustomer] = None
"""
For expense lines, if `account` refers to an Accounts Payable (A/P) account,
`customer` refers to the expense's vendor (not the customer). If `account`
refers to any other type of account, `customer` refers to the expense's customer
(not the vendor).
"""

custom_fields: List[ExpenseLineCustomField] = FieldInfo(alias="customFields")
"""The custom fields added by the user to QuickBooks object as a data extension.
These fields are not part of the standard QuickBooks object.
"""
The custom fields added by the user to this expense line object as a data
extension. These fields are not part of the standard QuickBooks object.
"""

memo: Optional[str] = None
"""A memo or note for this expense line, as entered by the user."""

sales_representative: Optional[ExpenseLineSalesRepresentative] = FieldInfo(
alias="salesRepresentative", default=None
)
"""The expense's sales representative."""
"""The expense line's sales representative.
sales_tax_code: Optional[ExpenseLineSalesTaxCode] = FieldInfo(alias="salesTaxCode", default=None)
"""The sales tax code, indicating whether related items are taxable or non-taxable.
Sales representatives can be employees, vendors, or other names in QuickBooks.
"""

Two default codes are 'Non' (non-taxable) and 'Tax' (taxable). If QuickBooks is
not set up to charge sales tax, it will assign the default non-taxable code to
all sales.
sales_tax_code: Optional[ExpenseLineSalesTaxCode] = FieldInfo(alias="salesTaxCode", default=None)
"""
The sales tax code associated with this expense line, indicating whether it is
taxable or non-taxable. Default codes include 'NON' (non-taxable) and 'TAX'
(taxable). If QuickBooks is not set up to charge sales tax, it will assign the
default non-taxable code to all sales.
"""


Expand Down
Loading

0 comments on commit fa7c51a

Please sign in to comment.