EtaConfig
Modelo EtaConfig
{
"id": 3,
"branch_group_id": 26,
"branch_id": null,
"name": "Lun a Vie de 8pm a 11pm",
"manufacturing_delay": 0,
"manufacturing_count": 0,
"manufacturing_cooldown": 0,
"delivery_delay": 0,
"created_at": "2022-03-17 17:58:41",
"updated_at": "2022-03-18 20:54:11",
"mode": "time_available:12:00-13:00",
"fixed_label": "Cena Laboral"
}
Atributo |
Tipo |
Descripción |
id |
int |
- |
branch_group_id |
int |
- |
name |
string |
- |
manufacturing_delay |
int |
- |
manufacturing_count |
int |
- |
manufacturing_cooldown |
int |
- |
delivery_delay |
int |
- |
created_at |
datetime\|null |
- |
updated_at |
datetime\|null |
- |
mode |
string |
- |
fixed_label |
string\|null |
- |
Insertar EtaConfig
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/branch-groups/{branchGroupId}/eta-configs |
Authorization |
{
"name": "required|string|max:255",
"manufacturing_delay": "nullable|integer|min:0",
"manufacturing_count": "nullable|integer|min:0",
"manufacturing_cooldown": "nullable|integer|min:0",
"delivery_delay": "nullable|integer|min:0",
"fixed_label": "nullable|string|max:32",
"mode": {
"required": true,
"string": true,
"max": "64",
"regex": "/^(delay)|(fixed:[0-6](,[0-6])*)|(time_range:(([0-1][0-9])|(2[0-3])):[03]0-(([0-1][0-9])|(2[0-3])):[03]0(;[0-6](,[0-6])*)?)|(time_available:(([0-1][0-9])|(2[0-3])):[03]0-(([0-1][0-9])|(2[0-3])):[03]0(;[0-6](,[0-6])*)?)$/"
}
}
Listar EtaConfig
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/branch-groups/{branchGroupId}/eta-configs |
Authorization |
Mostrar EtaConfig
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/eta-configs/{etaConfigId} |
Authorization |
Actualizar EtaConfig
Método |
URI |
Cabeceras |
PATCH |
/companies/{companyId}/eta-configs/{etaConfigId} |
Authorization |
{
"name": "nullable|string|max:255",
"manufacturing_delay": "nullable|integer|min:0",
"manufacturing_count": "nullable|integer|min:0",
"manufacturing_cooldown": "nullable|integer|min:0",
"delivery_delay": "nullable|integer|min:0",
"fixed_label": "nullable|string|max:32",
"mode": {
"nullable": true,
"string": true,
"max": "64",
"regex": "/^(delay)|(fixed:[0-6](,[0-6])*)|(time_range:(([0-1][0-9])|(2[0-3])):[03]0-(([0-1][0-9])|(2[0-3])):[03]0(;[0-6](,[0-6])*)?)|(time_available:(([0-1][0-9])|(2[0-3])):[03]0-(([0-1][0-9])|(2[0-3])):[03]0(;[0-6](,[0-6])*)?)$/"
}
}
Eliminar EtaConfig
Método |
URI |
Cabeceras |
DELETE |
/companies/{companyId}/eta-configs/{etaConfigId} |
Authorization |
Enlaces de EtaConfig