1- from base import QuickbooksBaseObject , Ref , LinkedTxn , QuickbooksManagedObject , LinkedTxnMixin
1+ from base import QuickbooksBaseObject , Ref , LinkedTxn , QuickbooksManagedObject , LinkedTxnMixin , \
2+ QuickbooksTransactionEntity
23
34
45class CheckPayment (QuickbooksBaseObject ):
@@ -17,6 +18,18 @@ def __unicode__(self):
1718 return self .PrintStatus
1819
1920
21+ class BillPaymentCreditCard (QuickbooksBaseObject ):
22+ class_dict = {
23+ "CCAccountRef" : Ref
24+ }
25+
26+ qbo_object_name = "BillPaymentCreditCard"
27+
28+ def __init__ (self ):
29+ super (BillPaymentCreditCard , self ).__init__ ()
30+ self .CCAccountRef = None
31+
32+
2033class BillPaymentLine (QuickbooksBaseObject ):
2134 list_dict = {
2235 "LinkedTxn" : LinkedTxn
@@ -33,7 +46,7 @@ def __unicode__(self):
3346 return str (self .Amount )
3447
3548
36- class BillPayment (QuickbooksManagedObject , LinkedTxnMixin ):
49+ class BillPayment (QuickbooksManagedObject , QuickbooksTransactionEntity , LinkedTxnMixin ):
3750 """
3851 QBO definition: A BillPayment entity represents the financial transaction of payment of bills that the
3952 business owner receives from a vendor for goods or services purchased from the vendor. QuickBooks Online
@@ -47,7 +60,10 @@ class BillPayment(QuickbooksManagedObject, LinkedTxnMixin):
4760 class_dict = {
4861 "VendorRef" : Ref ,
4962 "CheckPayment" : CheckPayment ,
63+ "CreditCardPayment" : BillPaymentCreditCard ,
5064 "APAccountRef" : Ref ,
65+ "DepartmentRef" : Ref ,
66+
5167 }
5268
5369 list_dict = {
@@ -62,12 +78,16 @@ def __init__(self):
6278 self .TotalAmt = 0
6379 self .TxnDate = ""
6480 self .PrivateNote = ""
81+ self .DocNumber = ""
82+ self .ProcessBillPayment = False
6583
6684 self .VendorRef = None
6785 self .CheckPayment = None
6886 self .APAccountRef = None
87+ self .DepartmentRef = None
88+ self .CreditCardPayment = None
6989
7090 self .Line = []
7191
7292 def __unicode__ (self ):
73- return str (self .TotalAmt )
93+ return str (self .TotalAmt )
0 commit comments