Property
Propiedad, Característica o Variante para asignar a un Good.
Modelo Property
{
"id": 1,
"name": "Topping líquido.",
"type": 256,
"disabled": false,
"created_at": "2019-02-13 15:39:39",
"updated_at": "2020-08-06 03:07:02",
"property_group_id": null,
"branch_group_id": 2,
"branch_id": 0,
"property_options": [
{
"id": 558,
"name": "Fresa",
"price_e2": 200000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-03-03 20:04:29",
"property_id": 1
},
{
"id": 561,
"name": "Chocolate",
"price_e2": 150000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-18 19:59:31",
"property_id": 1
},
{
"id": 559,
"name": "Arequipe",
"price_e2": 130000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-18 19:59:31",
"property_id": 1
},
{
"id": 560,
"name": "Leche condensada",
"price_e2": 200000,
"quantity": null,
"sold_out": null,
"in_order": 65535,
"created_at": "2020-01-20 16:40:01",
"updated_at": "2020-02-19 16:58:48",
"property_id": 1
}
],
"property_range": null,
"property_text": null
}
Insertar Property
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/properties |
Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Insertar Property de Branch
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/branches/{branchId}/properties |
Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/branch-groups/{branchGroupId}/properties |
Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Listar Property
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/properties |
N/A |
Listar Property de Good
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/goods/{goodId}/properties |
Authorization |
Listar Property de Branch
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/branches/{branchId}/properties |
Authorization |
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/branch-groups/{branchGroupId}/properties |
Authorization |
Mostrar Property
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/properties/{propertyId} |
N/A |
Actualizar Property
Método |
URI |
Cabeceras |
PATCH |
/companies/{companyId}/properties/{propertyId} |
Authorization |
{
"name": "required|string|max:64",
"disabled": "boolean",
"type": "required|numeric",
"property_options": [
{
"name": "required_if:type,256|string|max:64",
"price_e2": "required_if:type,256|integer|min:0",
"in_order": "integer|min:0"
}
],
"property_range": {
"min": "required_with:property_range|integer",
"max": "required_with:property_range|integer|gt:property_range.min",
"decimates": "required_with:property_range|integer|min:0|max:3",
"step": "required_with:property_range|integer|min:1",
"default": "required_with:property_range|integer|gte:property_range.min|lte:property_range.max",
"base_price_e2": "required_with:property_range|integer|min:0",
"step_price_e2": "required_with:property_range|integer|min:0",
"unit": "max:8"
},
"property_text": {
"regex": "required_with:property_text|string|max:255|pattern",
"hint": "string|max:64"
}
}
Sincronizar Property
Sincronizar Property de Good
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/goods/{goodId}/properties |
Authorization |
[
{
"property_id": "required|integer",
"options": "required|integer|min:1",
"display_name": "required|string|max:64",
"disabled": "boolean"
}
]
Eliminar Property
Método |
URI |
Cabeceras |
DELETE |
/companies/{companyId}/properties/{propertyId} |
Authorization |
Enlaces de Property