@tradle/models
Version:
models for tradle apps
111 lines • 2.07 kB
JSON
{
"id": "tradle.UtilityBill",
"type": "tradle.Model",
"title": "Utility Bill",
"subClassOf": "tradle.ProofOfAddress",
"style": {
"backgroundColor": "#EBE1FA"
},
"properties": {
"documentDate": {
"type": "date",
"displayName": true
},
"issuedBy": {
"type": "string"
},
"documentType": {
"type": "object",
"ref": "tradle.DocumentType"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"city": {
"type": "string"
},
"country": {
"type": "object",
"ref": "tradle.Country"
},
"postalCode": {
"type": "string"
},
"region": {
"type": "string"
},
"street": {
"type": "string"
},
"formattedAddress": {
"type": "string",
"displayAs": "{1} {2}, {3}, {4}",
"group": [
"street",
"city",
"region",
"postalCode"
],
"title": "Address",
"readOnly": true
},
"accountNumber": {
"type": "string"
},
"totalAmountDue": {
"type": "object",
"ref": "tradle.Money"
},
"issuerPhone": {
"type": "string",
"range": "phone"
},
"issuerEmail": {
"type": "string",
"range": "email"
},
"document": {
"type": "object",
"range": "document",
"allowPicturesFromLibrary": true,
"title": "Proof of address document",
"ref": "tradle.Photo"
},
"personalInfo_group": {
"type": "string",
"title": "Issuer",
"list": [
"firstName",
"lastName"
]
},
"issuer_group": {
"type": "string",
"title": "Issuer",
"list": [
"issuedBy",
"issuerPhone",
"issuerEmail"
]
}
},
"required": [
"document"
],
"editCols": [
"document"
],
"viewCols": [
"documentType",
"accountNumber",
"personalInfo_group",
"formattedAddress",
"documentDate",
"totalAmountDue",
"issuer_group",
"document"
]
}