Properties of the discount object.
{
/* id of object, set by Upodi */
"id": "guid",
"fullname" : "string",
/* procentage = 0 */
"type" : "integer",
/* procentage amount */
"amount" : "decimal",
/* custom key, example a remote id */
"refkey": "string",
"invoicetext" : "string",
/* 100=days,200=weeks,300=months,400=years. Defines expiry period */
"expiryperiod": "integer",
/* number of days, weeks, months, years */
"expiryperiodinterval": "integer",
"discountconsumers": "discountconsumer[] array",
"discountcodes": "discountcodes[] array",
/* set by upodi */
"createdby": "guid",
/* set by upodi */
"modifiedby": "guid",
/* set by upodi */
"createddate": "datetime",
/* set by upodi */
"modifieddate": "datetime"
}