forked from routablehq/python-quickbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefundreceipt.py
More file actions
97 lines (80 loc) · 2.69 KB
/
Copy pathrefundreceipt.py
File metadata and controls
97 lines (80 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
from six import python_2_unicode_compatible
from quickbooks.objects import CreditCardPayment
from .base import Ref, CustomField, QuickbooksManagedObject, \
LinkedTxnMixin, QuickbooksTransactionEntity, LinkedTxn, Address, EmailAddress, QuickbooksBaseObject, CustomerMemo
from .tax import TxnTaxDetail
from .detailline import DetailLine
from ..mixins import DeleteMixin
@python_2_unicode_compatible
class RefundReceiptCheckPayment(QuickbooksBaseObject):
qbo_object_name = "CheckPayment"
def __init__(self):
super(RefundReceiptCheckPayment, self).__init__()
self.CheckNum = ""
self.Status = ""
self.NameOnAcct = ""
self.AcctNum = ""
self.BankName = ""
def __str__(self):
return self.CheckNum
@python_2_unicode_compatible
class RefundReceipt(DeleteMixin, QuickbooksManagedObject, QuickbooksTransactionEntity, LinkedTxnMixin):
"""
QBO definition: RefundReceipt represents a refund to the customer for a product or service that was given.
"""
class_dict = {
"DepartmentRef": Ref,
"CurrencyRef": Ref,
"TxnTaxDetail": TxnTaxDetail,
"DepositToAccountRef": Ref,
"CustomerRef": Ref,
"BillAddr": Address,
"ShipAddr": Address,
"ClassRef": Ref,
"BillEmail": EmailAddress,
"PaymentMethodRef": Ref,
"CheckPayment": RefundReceiptCheckPayment,
"CreditCardPayment": CreditCardPayment,
"CustomerMemo": CustomerMemo,
}
list_dict = {
"CustomField": CustomField,
"Line": DetailLine,
"LinkedTxn": LinkedTxn
}
detail_dict = {
}
qbo_object_name = "RefundReceipt"
def __init__(self):
super(RefundReceipt, self).__init__()
self.DocNumber = ""
self.TotalAmt = 0
self.ApplyTaxAfterDiscount = False
self.PrintStatus = "NotSet"
self.Balance = 0
self.PaymentRefNum = ""
self.TxnDate = ""
self.ExchangeRate = 1
self.PrivateNote = ""
self.PaymentRefNum = ""
self.PaymentType = ""
self.TxnSource = None
self.GlobalTaxCalculation = "TaxExcluded"
self.DepartmentRef = None
self.CurrencyRef = None
self.TxnTaxDetail = None
self.DepositToAccountRef = None
self.CustomerRef = None
self.BillAddr = None
self.ShipAddr = None
self.ClassRef = None
self.BillEmail = None
self.PaymentMethodRef = None
self.CheckPayment = None
self.CreditCardPayment = None
self.CustomerMemo = None
self.CustomField = []
self.Line = []
self.LinkedTxn = []
def __str__(self):
return str(self.TotalAmt)