Schema: B2B_Sale

Schema Definition

{
    "$schema": "http://json-schema.org/schema#",
    "description": "A business to business type of transaction, contains one or more line items.",
    "properties": {
        "arrive_at": {
            "description": "Estimate of Arrival Time",
            "format": "dateTime",
            "type": "string"
        },
        "depart_at": {
            "description": "Estimate of Departure Time",
            "format": "dateTime",
            "type": "string"
        },
        "id": {
            "description": "ULID",
            "type": "string"
        },
        "item_list": {
            "items": {
                "$ref": "#/components/schemas/B2B_Sale_Item"
            },
            "type": "array"
        },
        "source": {
            "$ref": "#/components/schemas/License",
            "description": "The Source License of the materials, aka: Seller, Sold By",
            "type": "object"
        },
        "target": {
            "$ref": "#/components/schemas/License",
            "description": "The Target License of the materials, aka: Buyer, Ship To",
            "type": "object"
        },
        "type": {
            "enum": [
                "incoming",
                "outgoing"
            ],
            "type": "string"
        }
    },
    "required": [
        "id",
        "type",
        "source",
        "target",
        "item_list"
    ],
    "type": "object"
}

Schema Samples