<s> import xml_models <EOL> from saasu_client import DEFAULT_GET_URL <EOL> from saasu_client . models . base import BaseModel , CollectionField <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> class ServiceInvoiceItem ( BaseModel ) : <EOL> """<STR_LIT>""" <EOL> __model__ = '<STR_LIT>' <EOL> template_name = '<STR_LIT>' <EOL> description = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> accountUid = xml_models . IntField ( xpath = "<STR_LIT>" ) <EOL> taxCode = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> totalAmountInclTax = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> class ServiceInvoice ( BaseModel ) : <EOL> """<STR_LIT>""" <EOL> __model__ = '<STR_LIT>' <EOL> template_name = '<STR_LIT>' <EOL> uid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> lastUpdatedUid = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> transactionType = xml_models . CharField ( xpath = "<STR_LIT>" , default = "<STR_LIT:S>" ) <EOL> date = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> contactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> shipToContactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> tags = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> reference = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> summary = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> ccy = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> autoPopulateFxRate = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> fcToBcFxRate = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> notes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> externalNotes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> requiresFollowUp = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> dueOrExpiryDate = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> layout = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:S>' ) <EOL> status = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:I>' ) <EOL> invoiceNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> purchaseOrderNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> isSent = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> invoiceItems = CollectionField ( ServiceInvoiceItem , xpath = '<STR_LIT>' ) <EOL> finders = { <EOL> ( '<STR_LIT>' , ) : DEFAULT_GET_URL % __model__ + "<STR_LIT>" , <EOL> } <EOL> class ItemInvoiceItem ( BaseModel ) : <EOL> """<STR_LIT>""" <EOL> __model__ = '<STR_LIT>' <EOL> template_name = '<STR_LIT>' <EOL> quantity = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> inventoryItemUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> description = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> taxCode = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> unitPriceInclTax = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> percentageDiscount = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> class ItemInvoice ( BaseModel ) : <EOL> """<STR_LIT>""" <EOL> __model__ = '<STR_LIT>' <EOL> template_name = '<STR_LIT>' <EOL> uid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> lastUpdatedUid = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> transactionType = xml_models . CharField ( xpath = "<STR_LIT>" , default = "<STR_LIT:S>" ) <EOL> date = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> contactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> shipToContactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> tags = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> reference = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> summary = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> ccy = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> autoPopulateFxRate = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> fcToBcFxRate = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> notes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> externalNotes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> requiresFollowUp = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> dueOrExpiryDate = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> layout = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:I>' ) <EOL> status = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:I>' ) <EOL> invoiceNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> purchaseOrderNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> isSent = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> invoiceItems = CollectionField ( ItemInvoiceItem , xpath = '<STR_LIT>' ) <EOL> finders = { <EOL> ( '<STR_LIT>' , ) : DEFAULT_GET_URL % __model__ + "<STR_LIT>" , <EOL> } <EOL> class ServicePurchase ( BaseModel ) : <EOL> """<STR_LIT>""" <EOL> __model__ = '<STR_LIT>' <EOL> template_name = '<STR_LIT>' <EOL> uid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> lastUpdatedUid = xml_models . CharField ( xpath = "<STR_LIT>" ) <EOL> transactionType = xml_models . CharField ( xpath = "<STR_LIT>" , default = "<STR_LIT:P>" ) <EOL> date = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> contactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> shipToContactUid = xml_models . IntField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> tags = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> reference = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> summary = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> ccy = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> autoPopulateFxRate = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> fcToBcFxRate = xml_models . FloatField ( xpath = "<STR_LIT>" , default = <NUM_LIT:0> ) <EOL> notes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> externalNotes = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> requiresFollowUp = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> dueOrExpiryDate = xml_models . DateField ( xpath = "<STR_LIT>" , date_format = "<STR_LIT>" ) <EOL> layout = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:S>' ) <EOL> status = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT:O>' ) <EOL> invoiceNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> purchaseOrderNumber = xml_models . CharField ( xpath = "<STR_LIT>" , default = '<STR_LIT>' ) <EOL> isSent = xml_models . BoolField ( xpath = "<STR_LIT>" , default = False ) <EOL> invoiceItems = CollectionField ( ServiceInvoiceItem , xpath = '<STR_LIT>' ) <EOL> finders = { <EOL> ( '<STR_LIT>' , ) : DEFAULT_GET_URL % __model__ + "<STR_LIT>" , <EOL> } </s>
