Representa a una asociación de un Good con un Property. Esta entidad permite personalizar cómo mostrar esa variante en el Good, permitiendo modificar el nombre, tipo y estado. Sin embargo, esta entidad es tomada como valor por defecto, y es utilizada cuando el Good se asocia a un Branch. Para modificar los valores de venta en un Branch, véase BranchGoodProperty.
{
"id": 1,
"display_name": "Topping líquido",
"options": 257,
"disabled": false,
"in_order": 0,
"created_at": "2019-02-13 15:56:38",
"updated_at": "2019-02-13 15:56:38",
"good_id": 1,
"property_id": 1,
"options_data": {
"use_value": 256,
"use_name": null,
"type_value": 257,
"type_name": null,
"is_multi_options": 256,
"min_count": 0,
"max_count": 1,
"stack_count": 1,
"is_dynamic": 0,
"is_free": 0,
"is_admin_customizable": 0
},
"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
}
}
{info} Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/good-properties |
N/A |
Método | URI | Cabeceras |
---|---|---|
GET | /companies/{companyId}/good-properties/legacy |
N/A |
{info} Soporta: Paginación Filters Carga dinámica
Método | URI | Cabeceras |
---|---|---|
PATCH | /companies/{companyId}/goods/{goodId}/properties/{propertyId} |
Authorization |
{
"display_name": "string|max:64",
"disabled": "boolean",
"options": "numeric",
"in_order": "integer|min:1"
}
good
BelongsTo Goodproperty
BelongsTo PropertypropertyOptions
HasMany PropertyOptionpropertyRange
HasOne PropertyRangepropertyText
HasOne PropertyText