@@ -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
12299class 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
203157class CreditCardAccount (BaseModel ):
0 commit comments