forked from markciecior/ConnectPyse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpense_entry.py
28 lines (24 loc) · 1.08 KB
/
expense_entry.py
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
from ..cw_model import CWModel
class ExpenseEntry(CWModel):
def __init__(self, json_dict=None):
self.id = None # (Integer)
self.company = None # **(CompanyReference)
self.chargeToId = None # (Integer)
self.chargeToType = None # **(Enum)
self.type = None # *(ExpenseTypeReference)
self.member = None # (MemberReference)
self.paymentMethod = None # (PaymentMethodReference)
self.classification = None # (ClassificationReference)
self.amount = None # *(Number)
self.billableOption = None # *(Enum)
self.date = None # *(String)
self.locationId = None # (Integer)
self.businessUnitId = None # (Integer)
self.notes = None # (String)
self.agreement = None # (AgreementReference)
self.invoiceAmount = None # (Number)
self.taxes = None # (ExpenseTax[])
self.invoice = None # (InvoiceReference)
self._info = None # (Metadata)
# initialize object with json dict
super().__init__(json_dict)