{
"$schema" : "http://json-schema.org/draft-04/schema#",
"required" : [ "shipment" ],
"additionalProperties" : false,
"properties" : {
"shipment" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"shipmentHeader" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"description" : "Regeneron Supplier order number",
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "content" ],
"additionalProperties" : false,
"properties" : {
"content" : {
"oneOf" : [ {
"type" : "null"
}, {
"$ref" : "#/definitions/normalizedString"
} ]
},
"typeCode" : {
"allOf" : [ {
"$ref" : "#/definitions/token"
}, {
"description" : "Regeneron Delivery type: LTL, FTL or Parcel"
} ]
}
}
}
},
"carrierRouteReference" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"productionOrderReference" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"$ref" : "#/definitions/normalizedString"
} ]
}
},
"lineNumberId" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
},
"actualShipDateTime" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/dateTime"
}, {
"description" : "Regeneron Ship date"
} ]
} ]
},
"scheduledDeliveryDateTime" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/dateTime"
}, {
"description" : "This is a Regeneron requirement for Estimated delivery date."
} ]
} ]
},
"carrierParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"$ref" : "#/definitions/normalizedString"
} ]
}
},
"name" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/string"
}, {
"description" : "Regeneron Carrier"
} ]
} ]
}
}
}
},
"supplierParty" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"attentionOfName" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"addressLine" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
},
"contact" : {
"description" : "Regeneron Name, phone number and email address",
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"personName" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"formattedName" : {
"$ref" : "#/definitions/string"
}
}
}
},
"telephoneCommunication" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"formattedNumber" : {
"$ref" : "#/definitions/string"
}
}
}
},
"emailAddressCommunication" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"emailAddressId" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
}
},
"shipToParty" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "Regeneron shipment number"
} ]
}
},
"name" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"location" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"address" : {
"description" : "Regeneron Delivery address",
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"attentionOfName" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"streetName" : {
"$ref" : "#/definitions/string"
},
"cityName" : {
"$ref" : "#/definitions/string"
},
"countryCode" : {
"$ref" : "#/definitions/token"
},
"postalCode" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
}
}
}
},
"shipmentTotalAmount" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/decimal"
}, {
"description" : "Regeneron Total pallet count"
} ]
} ]
},
"proNumberId" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "Regeneron PO number"
} ]
} ]
}
}
},
"shipmentItem" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "Regeneron line and release"
} ]
} ]
}
},
"itemIdSet" : {
"description" : "Regeneron CoA and other documents of reference",
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "id" ],
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"minItems" : 1,
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
},
"supplierItemIdentification" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/normalizedString"
}
},
"itemIdSet" : {
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "id" ],
"additionalProperties" : false,
"properties" : {
"typeCode" : {
"$ref" : "#/definitions/token"
},
"id" : {
"type" : "array",
"minItems" : 1,
"items" : {
"$ref" : "#/definitions/normalizedString"
}
}
}
}
}
}
},
"item" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "Regeneron item number"
} ]
}
},
"description" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/string"
}, {
"description" : "Regeneron Item description"
} ]
} ]
}
},
"lot" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"oneOf" : [ {
"type" : "null"
}, {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "Regeneron Supplier lot"
} ]
} ]
}
}
}
}
}
}
},
"quantity" : {
"description" : "Regeneron quantity",
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "content" ],
"additionalProperties" : false,
"properties" : {
"content" : {
"$ref" : "#/definitions/decimal"
},
"typeCode" : {
"$ref" : "#/definitions/token"
}
}
}
},
"description" : {
"type" : "array",
"items" : {
"type" : "object",
"required" : [ "content" ],
"additionalProperties" : false,
"properties" : {
"content" : {
"$ref" : "#/definitions/string"
},
"typeCode" : {
"$ref" : "#/definitions/token"
}
}
}
},
"packaging" : {
"description" : "GSK special packaging requirements",
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"description" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"note" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/string"
}
},
"perPackageQuantity" : {
"$ref" : "#/definitions/decimal"
}
}
}
},
"environmentalCondition" : {
"description" : "GSK shipping conditions",
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"temperatureCondition" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"temperatureRange" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"minimumTemperature" : {
"$ref" : "#/definitions/decimal"
},
"maximumTemperature" : {
"$ref" : "#/definitions/decimal"
}
}
},
"transportTemperature" : {
"type" : "array",
"items" : {
"$ref" : "#/definitions/decimal"
}
},
"temperatureLog" : {
"type" : "array",
"items" : {
"type" : "object",
"additionalProperties" : false,
"properties" : {
"id" : {
"type" : "array",
"items" : {
"allOf" : [ {
"$ref" : "#/definitions/normalizedString"
}, {
"description" : "This is a GSK requirement and represents the ID of the measuring device. This is to ensure the storage and transport conditions (temperature) in case of refrigerated or frozen product."
} ]
}
},
"temperature" : {
"$ref" : "#/definitions/decimal"
},
"dateTime" : {
"$ref" : "#/definitions/dateTime"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"definitions" : {
"normalizedString" : {
"type" : "string"
},
"token" : {
"type" : "string"
},
"dateTime" : {
"type" : "string",
"format" : "date-time"
},
"string" : {
"type" : "string"
},
"decimal" : {
"type" : "number"
}
}
} |