UNPKG

@rapharacing/schemas

Version:

OpenAPI to JSON Schema to be used with middy for CC response validation

85 lines 3.14 kB
{ "type": "object", "properties": { "basePrice": { "description": "Base price of order entry item", "$ref": "_definitions.json#/definitions/Price", "originalRef": "Price" }, "cancellableQuantity": { "type": "integer", "format": "int64", "example": 5, "description": "Quantity number of cancellable items in order entry" }, "cancelledItemsPrice": { "description": "Total price of cancelled items which belong to the order entry item", "$ref": "_definitions.json#/definitions/Price", "originalRef": "Price" }, "configurationInfos": { "type": "array", "description": "Configuration info of order entry", "items": { "$ref": "_definitions.json#/definitions/ConfigurationInfo", "originalRef": "ConfigurationInfo" } }, "deliveryMode": { "description": "Delivery mode", "$ref": "_definitions.json#/definitions/DeliveryMode", "originalRef": "DeliveryMode" }, "deliveryPointOfService": { "description": "Point of service associated with order entry", "$ref": "_definitions.json#/definitions/PointOfService", "originalRef": "PointOfService" }, "entryNumber": { "type": "integer", "format": "int32", "description": "Entry number of the order entry" }, "product": { "description": "Product details of order entry", "$ref": "_definitions.json#/definitions/Product", "originalRef": "Product" }, "quantity": { "type": "integer", "format": "int64", "description": "Quantity number of items in order entry" }, "returnableQuantity": { "type": "integer", "format": "int64", "example": 5, "description": "Quantity number of returnable items in order entry" }, "returnedItemsPrice": { "description": "Total price of returned items which belong to the order entry item", "$ref": "_definitions.json#/definitions/Price", "originalRef": "Price" }, "statusSummaryList": { "type": "array", "description": "List of aggregated status information per entry, relevant if the entry is configurable and its configuration contains one or many issues in different severities. Note that configurators typically raise such issues only in case the parent document is changeable. In this case the issues (depending on their severity) need to be fixed before a checkout can be done. This means this segment can be present for a cart entry, for order entries it will always be empty", "items": { "$ref": "_definitions.json#/definitions/StatusSummary", "originalRef": "StatusSummary" } }, "totalPrice": { "description": "Total price of order entry item", "$ref": "_definitions.json#/definitions/Price", "originalRef": "Price" }, "updateable": { "type": "boolean", "description": "Flag defining if order entry item is updateable" } }, "title": "OrderEntry", "description": "Representation of an Order entry", "$schema": "http://json-schema.org/schema#" }