Skip to content

Commit fdf06ba

Browse files
stainless-app[bot]DannyNemer
authored andcommitted
feat(api): api update
1 parent 0875ad3 commit fdf06ba

18 files changed

+125
-506
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 210
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-7cc90cf37807a4bfd32026e4f0be2eefd2336b0a6c8a4f8573fe6f45d8bc43f7.yml
3-
openapi_spec_hash: 9edaf184bdd1c8f89c5d5ebbe6ec4099
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/conductor%2Fconductor-8eae009f6ef99d8504a277fba24d58005f67423e324b51f9eca2666256bc3867.yml
3+
openapi_spec_hash: ddb729e9d74ff0d161036002f75ee3e8
44
config_hash: f2e62d5a2eb26f531fb04910fa91b24a

src/conductor/types/qbd/bill.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,36 +1079,13 @@ class LinkedTransaction(BaseModel):
10791079
transaction_date: date = FieldInfo(alias="transactionDate")
10801080
"""The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD)."""
10811081

1082-
transaction_type: Literal[
1083-
"ar_refund_credit_card",
1084-
"bill",
1085-
"bill_payment_check",
1086-
"bill_payment_credit_card",
1087-
"build_assembly",
1088-
"charge",
1089-
"check",
1090-
"credit_card_charge",
1091-
"credit_card_credit",
1092-
"credit_memo",
1093-
"deposit",
1094-
"estimate",
1095-
"inventory_adjustment",
1096-
"invoice",
1097-
"item_receipt",
1098-
"journal_entry",
1099-
"liability_adjustment",
1100-
"paycheck",
1101-
"payroll_liability_check",
1102-
"purchase_order",
1103-
"receive_payment",
1104-
"sales_order",
1105-
"sales_receipt",
1106-
"sales_tax_payment_check",
1107-
"transfer",
1108-
"vendor_credit",
1109-
"ytd_adjustment",
1110-
] = FieldInfo(alias="transactionType")
1111-
"""The type of transaction for this linked transaction."""
1082+
transaction_type: str = FieldInfo(alias="transactionType")
1083+
"""The type of transaction for this linked transaction.
1084+
1085+
The output for this field is a raw string, not an enum, because in rare cases
1086+
QuickBooks Desktop may return a value outside its own schema, which we pass
1087+
through unchanged.
1088+
"""
11121089

11131090

11141091
class PayablesAccount(BaseModel):

src/conductor/types/qbd/bill_check_payment.py

Lines changed: 14 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -126,36 +126,13 @@ class AppliedToTransactionLinkedTransaction(BaseModel):
126126
transaction_date: date = FieldInfo(alias="transactionDate")
127127
"""The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD)."""
128128

129-
transaction_type: Literal[
130-
"ar_refund_credit_card",
131-
"bill",
132-
"bill_payment_check",
133-
"bill_payment_credit_card",
134-
"build_assembly",
135-
"charge",
136-
"check",
137-
"credit_card_charge",
138-
"credit_card_credit",
139-
"credit_memo",
140-
"deposit",
141-
"estimate",
142-
"inventory_adjustment",
143-
"invoice",
144-
"item_receipt",
145-
"journal_entry",
146-
"liability_adjustment",
147-
"paycheck",
148-
"payroll_liability_check",
149-
"purchase_order",
150-
"receive_payment",
151-
"sales_order",
152-
"sales_receipt",
153-
"sales_tax_payment_check",
154-
"transfer",
155-
"vendor_credit",
156-
"ytd_adjustment",
157-
] = FieldInfo(alias="transactionType")
158-
"""The type of transaction for this linked transaction."""
129+
transaction_type: str = FieldInfo(alias="transactionType")
130+
"""The type of transaction for this linked transaction.
131+
132+
The output for this field is a raw string, not an enum, because in rare cases
133+
QuickBooks Desktop may return a value outside its own schema, which we pass
134+
through unchanged.
135+
"""
159136

160137

161138
class AppliedToTransaction(BaseModel):
@@ -207,36 +184,13 @@ class AppliedToTransaction(BaseModel):
207184
transaction_id: str = FieldInfo(alias="transactionId")
208185
"""The ID of the receivable transaction to which this payment is applied."""
209186

210-
transaction_type: Literal[
211-
"ar_refund_credit_card",
212-
"bill",
213-
"bill_payment_check",
214-
"bill_payment_credit_card",
215-
"build_assembly",
216-
"charge",
217-
"check",
218-
"credit_card_charge",
219-
"credit_card_credit",
220-
"credit_memo",
221-
"deposit",
222-
"estimate",
223-
"inventory_adjustment",
224-
"invoice",
225-
"item_receipt",
226-
"journal_entry",
227-
"liability_adjustment",
228-
"paycheck",
229-
"payroll_liability_check",
230-
"purchase_order",
231-
"receive_payment",
232-
"sales_order",
233-
"sales_receipt",
234-
"sales_tax_payment_check",
235-
"transfer",
236-
"vendor_credit",
237-
"ytd_adjustment",
238-
] = FieldInfo(alias="transactionType")
239-
"""The type of transaction for this receivable transaction."""
187+
transaction_type: str = FieldInfo(alias="transactionType")
188+
"""The type of transaction for this receivable transaction.
189+
190+
The output for this field is a raw string, not an enum, because in rare cases
191+
QuickBooks Desktop may return a value outside its own schema, which we pass
192+
through unchanged.
193+
"""
240194

241195

242196
class BankAccount(BaseModel):

src/conductor/types/qbd/bill_credit_card_payment.py

Lines changed: 14 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -87,36 +87,13 @@ class AppliedToTransactionLinkedTransaction(BaseModel):
8787
transaction_date: date = FieldInfo(alias="transactionDate")
8888
"""The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD)."""
8989

90-
transaction_type: Literal[
91-
"ar_refund_credit_card",
92-
"bill",
93-
"bill_payment_check",
94-
"bill_payment_credit_card",
95-
"build_assembly",
96-
"charge",
97-
"check",
98-
"credit_card_charge",
99-
"credit_card_credit",
100-
"credit_memo",
101-
"deposit",
102-
"estimate",
103-
"inventory_adjustment",
104-
"invoice",
105-
"item_receipt",
106-
"journal_entry",
107-
"liability_adjustment",
108-
"paycheck",
109-
"payroll_liability_check",
110-
"purchase_order",
111-
"receive_payment",
112-
"sales_order",
113-
"sales_receipt",
114-
"sales_tax_payment_check",
115-
"transfer",
116-
"vendor_credit",
117-
"ytd_adjustment",
118-
] = FieldInfo(alias="transactionType")
119-
"""The type of transaction for this linked transaction."""
90+
transaction_type: str = FieldInfo(alias="transactionType")
91+
"""The type of transaction for this linked transaction.
92+
93+
The output for this field is a raw string, not an enum, because in rare cases
94+
QuickBooks Desktop may return a value outside its own schema, which we pass
95+
through unchanged.
96+
"""
12097

12198

12299
class AppliedToTransaction(BaseModel):
@@ -168,36 +145,13 @@ class AppliedToTransaction(BaseModel):
168145
transaction_id: str = FieldInfo(alias="transactionId")
169146
"""The ID of the receivable transaction to which this payment is applied."""
170147

171-
transaction_type: Literal[
172-
"ar_refund_credit_card",
173-
"bill",
174-
"bill_payment_check",
175-
"bill_payment_credit_card",
176-
"build_assembly",
177-
"charge",
178-
"check",
179-
"credit_card_charge",
180-
"credit_card_credit",
181-
"credit_memo",
182-
"deposit",
183-
"estimate",
184-
"inventory_adjustment",
185-
"invoice",
186-
"item_receipt",
187-
"journal_entry",
188-
"liability_adjustment",
189-
"paycheck",
190-
"payroll_liability_check",
191-
"purchase_order",
192-
"receive_payment",
193-
"sales_order",
194-
"sales_receipt",
195-
"sales_tax_payment_check",
196-
"transfer",
197-
"vendor_credit",
198-
"ytd_adjustment",
199-
] = FieldInfo(alias="transactionType")
200-
"""The type of transaction for this receivable transaction."""
148+
transaction_type: str = FieldInfo(alias="transactionType")
149+
"""The type of transaction for this receivable transaction.
150+
151+
The output for this field is a raw string, not an enum, because in rare cases
152+
QuickBooks Desktop may return a value outside its own schema, which we pass
153+
through unchanged.
154+
"""
201155

202156

203157
class CreditCardAccount(BaseModel):

src/conductor/types/qbd/check.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,36 +1132,13 @@ class LinkedTransaction(BaseModel):
11321132
transaction_date: date = FieldInfo(alias="transactionDate")
11331133
"""The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD)."""
11341134

1135-
transaction_type: Literal[
1136-
"ar_refund_credit_card",
1137-
"bill",
1138-
"bill_payment_check",
1139-
"bill_payment_credit_card",
1140-
"build_assembly",
1141-
"charge",
1142-
"check",
1143-
"credit_card_charge",
1144-
"credit_card_credit",
1145-
"credit_memo",
1146-
"deposit",
1147-
"estimate",
1148-
"inventory_adjustment",
1149-
"invoice",
1150-
"item_receipt",
1151-
"journal_entry",
1152-
"liability_adjustment",
1153-
"paycheck",
1154-
"payroll_liability_check",
1155-
"purchase_order",
1156-
"receive_payment",
1157-
"sales_order",
1158-
"sales_receipt",
1159-
"sales_tax_payment_check",
1160-
"transfer",
1161-
"vendor_credit",
1162-
"ytd_adjustment",
1163-
] = FieldInfo(alias="transactionType")
1164-
"""The type of transaction for this linked transaction."""
1135+
transaction_type: str = FieldInfo(alias="transactionType")
1136+
"""The type of transaction for this linked transaction.
1137+
1138+
The output for this field is a raw string, not an enum, because in rare cases
1139+
QuickBooks Desktop may return a value outside its own schema, which we pass
1140+
through unchanged.
1141+
"""
11651142

11661143

11671144
class Payee(BaseModel):

src/conductor/types/qbd/credit_memo.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -968,36 +968,13 @@ class LinkedTransaction(BaseModel):
968968
transaction_date: date = FieldInfo(alias="transactionDate")
969969
"""The date of this linked transaction, in ISO 8601 format (YYYY-MM-DD)."""
970970

971-
transaction_type: Literal[
972-
"ar_refund_credit_card",
973-
"bill",
974-
"bill_payment_check",
975-
"bill_payment_credit_card",
976-
"build_assembly",
977-
"charge",
978-
"check",
979-
"credit_card_charge",
980-
"credit_card_credit",
981-
"credit_memo",
982-
"deposit",
983-
"estimate",
984-
"inventory_adjustment",
985-
"invoice",
986-
"item_receipt",
987-
"journal_entry",
988-
"liability_adjustment",
989-
"paycheck",
990-
"payroll_liability_check",
991-
"purchase_order",
992-
"receive_payment",
993-
"sales_order",
994-
"sales_receipt",
995-
"sales_tax_payment_check",
996-
"transfer",
997-
"vendor_credit",
998-
"ytd_adjustment",
999-
] = FieldInfo(alias="transactionType")
1000-
"""The type of transaction for this linked transaction."""
971+
transaction_type: str = FieldInfo(alias="transactionType")
972+
"""The type of transaction for this linked transaction.
973+
974+
The output for this field is a raw string, not an enum, because in rare cases
975+
QuickBooks Desktop may return a value outside its own schema, which we pass
976+
through unchanged.
977+
"""
1001978

1002979

1003980
class ReceivablesAccount(BaseModel):

src/conductor/types/qbd/employee.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,16 @@ class Address(BaseModel):
6565
"""The postal code or ZIP code of the employee address."""
6666

6767
state: Optional[str] = None
68-
"""The state, county, province, or region name of the employee address.
69-
70-
**NOTE:** This `state` field is an enum when creating or updating an employee,
71-
but a plain string when returning an employee. On input, QuickBooks Desktop
72-
rejects any non-standard state values for employee addresses; hence, we must use
73-
an enum for the input. However, when returning an employee address, we have seen
74-
QuickBooks return non-standard state values (like 'ON') that do not conform to
75-
the enum; hence, we use a plain string on return to support unexpected values.
68+
"""The U.S.
69+
70+
state of the employee address. QuickBooks requires this field to be a U.S. state
71+
abbreviation (e.g., "CA" for California). See enum for all possible values.
72+
73+
**NOTE:** This `state` field stays enum-constrained when creating or updating an
74+
employee because QuickBooks Desktop rejects non-standard values on input. In
75+
responses, though, we've seen QuickBooks return values outside its own enum
76+
(like 'ON'), so Conductor surfaces the raw QuickBooks string unchanged instead
77+
of enforcing the enum.
7678
"""
7779

7880

src/conductor/types/qbd/employee_create_params.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,6 @@ class Address(TypedDict, total=False):
362362
363363
state of the employee address. QuickBooks requires this field to be a U.S. state
364364
abbreviation (e.g., "CA" for California). See enum for all possible values.
365-
366-
**NOTE:** This `state` field is an enum when creating or updating an employee,
367-
but a plain string when returning an employee. On input, QuickBooks Desktop
368-
rejects any non-standard state values for employee addresses; hence, we must use
369-
an enum for the input. However, when returning an employee address, we have seen
370-
QuickBooks return non-standard state values (like 'ON') that do not conform to
371-
the enum; hence, we use a plain string on return to support unexpected values.
372365
"""
373366

374367

src/conductor/types/qbd/employee_update_params.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,6 @@ class Address(TypedDict, total=False):
354354
355355
state of the employee address. QuickBooks requires this field to be a U.S. state
356356
abbreviation (e.g., "CA" for California). See enum for all possible values.
357-
358-
**NOTE:** This `state` field is an enum when creating or updating an employee,
359-
but a plain string when returning an employee. On input, QuickBooks Desktop
360-
rejects any non-standard state values for employee addresses; hence, we must use
361-
an enum for the input. However, when returning an employee address, we have seen
362-
QuickBooks return non-standard state values (like 'ON') that do not conform to
363-
the enum; hence, we use a plain string on return to support unexpected values.
364357
"""
365358

366359

0 commit comments

Comments
 (0)