vue-storefront
Version:
A Vue.js, PWA eCommerce frontend
85 lines (84 loc) • 4.64 kB
JSON
{
"additionalProperties": false,
"required": [ "products", "addressInformation" ],
"properties": {
"order_id" : { "type": "string" },
"created_at" : { "type": "string" },
"updated_at": { "type": "string" },
"transmited" : { "type": "boolean" },
"transmited_at": { "type": "string" },
"status": { "type": "string" },
"state": { "type": "string" },
"user_id": { "type": "string" },
"cart_id": { "type": "string" },
"products": {
"description": "Products list",
"type": "array",
"minItems": 1,
"items": [
{
"required": [ "sku", "price", "qty" ],
"properties": {
"sku": { "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_]+" },
"qty": { "type" : "number", "minimum": 1 },
"name": { "type": "string", "minLength": 1, "pattern": "[a-zA-Z0-9_]+" },
"price": { "type" : "number", "minimum": 1 },
"product_type": { "type": "string", "minLength": 1, "pattern": "[a-zA-Z]+" }
}
}
]
},
"addressInformation": {
"properties": {
"shippingAddress": {
"required": [ "street", "city", "postcode", "firstname", "lastname" ],
"properties": {
"region": { "type": "string" },
"region_id": { "type": "number" },
"country_id": { "type": "string", "pattern": "[a-zA-Z]" },
"street": {
"description": "Street name",
"minItems": 1,
"items": { "minLength": 1, "description": "Street name"}
},
"company": { "type": "string" },
"telephone": { "type": "string" },
"postcode": { "type": "string", "minLength": 3, "pattern": "[a-zA-Z0-9_]+" },
"city": { "type": "string", "pattern": "[a-zA-Z]+" },
"firstname": { "type": "string", "pattern": "[a-zA-Z]+", "description": "First name" },
"lastname": { "type": "string", "pattern": "[a-zA-Z]+" },
"email": { "type": "string", "pattern": "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?" },
"region_code":{ "type": "string" },
"sameAsBilling": { "type": "number"}
}
},
"billingAddress": {
"required": [ "street", "city", "postcode", "firstname", "lastname" ],
"properties": {
"properties": {
"region": { "type": "string" },
"region_id": { "type": "number" },
"country_id": { "type": "string", "pattern": "[a-zA-Z]" },
"street": {
"minItems": 1,
"items": { "minLength": 1}
},
"company": { "type": "string" },
"telephone": { "type": "string" },
"postcode": { "type": "string", "minLength": 3, "pattern": "[a-zA-Z0-9_]+" },
"city": { "type": "string", "pattern": "[a-zA-Z]+" },
"firstname": { "type": "string", "pattern": "[a-zA-Z]+" },
"lastname": { "type": "string", "pattern": "[a-zA-Z]+" },
"email": { "type": "string", "pattern": "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?" },
"region_code":{ "type": "string" },
"sameAsBilling": { "type": "number"}
}
}
},
"shipping_method_code": { "type": "string", "pattern": "[a-zA-Z]+" },
"shipping_carrier_code": { "type": "string", "pattern": "[a-zA-Z]+" },
"payment_method_code": { "type": "string", "pattern": "[a-zA-Z]+" }
}
}
}
}