2016-11-17 11:56:35 +00:00
|
|
|
{
|
|
|
|
"name": "Client",
|
|
|
|
"base": "PersistedModel",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": "true"
|
2016-12-15 07:31:15 +00:00
|
|
|
},
|
2016-11-17 11:56:35 +00:00
|
|
|
"fi": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "Fiscal indetifier"
|
|
|
|
},
|
|
|
|
"socialName": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2016-12-15 07:31:15 +00:00
|
|
|
"registerDate": {
|
2016-11-17 11:56:35 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"contact": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"email": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"fax": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"active": {
|
|
|
|
"type": "boolean"
|
2016-12-15 07:31:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2016-11-17 11:56:35 +00:00
|
|
|
"credit": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"creditAndCaution": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"iban": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"payMethod": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"surcharge": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "The client has equivalence surcharge"
|
|
|
|
},
|
|
|
|
"hasToInvoice": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Global invoicing enabled for the client"
|
|
|
|
},
|
|
|
|
"invoiceByEmail": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "Send invoices by email"
|
|
|
|
}
|
2016-12-15 07:31:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
"salesPerson": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": "true"
|
|
|
|
},*/
|
|
|
|
|
|
|
|
|
2016-11-17 11:56:35 +00:00
|
|
|
}
|
|
|
|
}
|