Schemas / Commerce

rig.commerce.invoice_line

v1.0.0 · stable maturity: draft 4 fields 2 required

Fields

FieldTypeMeaning
invoice entity required The rig.commerce.invoice
product entity optional Optional. The rig.commerce.product
quantity float required Count billed
orderLine entity optional Optional. The rig.commerce.order_line this bills

One line of an invoice. Format when present.

invoice and quantity are required.

The line amount is rig.commerce.price on this entity. A second line is another entity.

JSON Schema

Resolves at https://rig.works/schemas/rig.commerce.invoice_line.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.commerce.invoice_line.schema.json",
  "title": "rig.commerce.invoice_line",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "invoice": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "product": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "quantity": {
      "$ref": "./_defs.schema.json#/$defs/float"
    },
    "orderLine": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "required": [
    "invoice",
    "quantity"
  ],
  "description": "One line of an invoice. Price composes rig.commerce.price.",
  "x-rig-maturity": "draft"
}

Seen in

record-shop.json