11from six import python_2_unicode_compatible
2+
3+ from quickbooks .objects import CreditCardPayment
24from .base import Ref , CustomField , QuickbooksManagedObject , \
3- LinkedTxnMixin , QuickbooksTransactionEntity , LinkedTxn , Address , EmailAddress
5+ LinkedTxnMixin , QuickbooksTransactionEntity , LinkedTxn , Address , EmailAddress , QuickbooksBaseObject , CustomerMemo
46from .tax import TxnTaxDetail
57from .detailline import DetailLine
68from ..mixins import DeleteMixin
79
810
11+ @python_2_unicode_compatible
12+ class RefundReceiptCheckPayment (QuickbooksBaseObject ):
13+ qbo_object_name = "CheckPayment"
14+
15+ def __init__ (self ):
16+ super (RefundReceiptCheckPayment , self ).__init__ ()
17+ self .CheckNum = ""
18+ self .Status = ""
19+ self .NameOnAcct = ""
20+ self .AcctNum = ""
21+ self .BankName = ""
22+
23+ def __str__ (self ):
24+ return self .CheckNum
25+
26+
927@python_2_unicode_compatible
1028class RefundReceipt (DeleteMixin , QuickbooksManagedObject , QuickbooksTransactionEntity , LinkedTxnMixin ):
1129 """
@@ -22,6 +40,9 @@ class RefundReceipt(DeleteMixin, QuickbooksManagedObject, QuickbooksTransactionE
2240 "ClassRef" : Ref ,
2341 "BillEmail" : EmailAddress ,
2442 "PaymentMethodRef" : Ref ,
43+ "CheckPayment" : RefundReceiptCheckPayment ,
44+ "CreditCardPayment" : CreditCardPayment ,
45+ "CustomerMemo" : CustomerMemo ,
2546 }
2647
2748 list_dict = {
@@ -41,17 +62,16 @@ def __init__(self):
4162 self .DocNumber = ""
4263 self .TotalAmt = 0
4364 self .ApplyTaxAfterDiscount = False
44- self .PrintStatus = ""
65+ self .PrintStatus = "NotSet "
4566 self .Balance = 0
4667 self .PaymentRefNum = ""
4768 self .TxnDate = ""
4869 self .ExchangeRate = 1
4970 self .PrivateNote = ""
50- self . CustomerMemo = ""
71+
5172 self .PaymentRefNum = ""
5273 self .PaymentType = ""
53- self .CheckPayment = ""
54- self .CreditCardPayment = ""
74+
5575 self .TxnSource = None
5676 self .GlobalTaxCalculation = "TaxExcluded"
5777
@@ -65,6 +85,9 @@ def __init__(self):
6585 self .ClassRef = None
6686 self .BillEmail = None
6787 self .PaymentMethodRef = None
88+ self .CheckPayment = None
89+ self .CreditCardPayment = None
90+ self .CustomerMemo = None
6891
6992 self .CustomField = []
7093 self .Line = []
0 commit comments