{
  "type": "TermDefinition",
  "spec": "UP/0.1-draft",
  "id": "UP:Sales-Reporting",
  "title": "Sales reporting",
  "params": {
    "reporter": {
      "type": "Role",
      "doc": "Role that reports."
    },
    "recipient": {
      "type": "Role",
      "doc": "Role that receives the report."
    },
    "period": {
      "type": "Period",
      "doc": "Reporting period."
    },
    "due": {
      "type": "Period",
      "doc": "Time after each period's end by which the report is due."
    }
  },
  "forms": [
    {
      "form": "Duty",
      "duty": "report",
      "obligor": {
        "param": "reporter"
      },
      "obligee": {
        "param": "recipient"
      },
      "trigger": {
        "every": {
          "param": "period"
        },
        "anchor": "window-start"
      },
      "due": {
        "param": "due"
      },
      "discharge": {
        "claim": "UP:Sales-Reporting/report"
      }
    }
  ],
  "claims": {
    "UP:Sales-Reporting/report": {
      "data": {
        "period": "{start: Time, end: Time}",
        "lines": "[{participation: ChainId, item: Identifier, quantity: Decimal, net: Amount}]",
        "total_net": "Amount"
      },
      "doc": "Sales for one period, by participation and Item, with the total net sales."
    }
  },
  "render": "{{reporter|role}} reports to {{recipient|role}} the sales made under this Agreement in each reporting period of {{period|period}}, by Member participation and Item, within {{due|period}} after the period ends.",
  "provenance": {
    "drafted_by": "Universal Paper v0 working draft (publisher name pending open question 2)",
    "reviewed_by": [],
    "change_note": "Initial draft. Not yet reviewed by counsel from any segment."
  }
}
