Plan
Representa a un Plan asignable a una Company.
Modelo Plan
{
"id": 1,
"name": "DonDemand Unlimited",
"enabled": true,
"published": false,
"description": "This plan never expires and all features are available",
"trial_days": 0,
"image_url": null,
"image_landscape_url": null,
"enable_at": null,
"disable_at": null,
"created_at": "2020-08-06 02:59:23",
"updated_at": "2020-08-06 02:59:23",
"features": [
{
"key": "limit_orders_saved",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_admins_count",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "allow_work_schedules",
"type": "boolean",
"value": false,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "allow_push_notifications",
"type": "boolean",
"value": false,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_providers_count",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "allow_routes",
"type": "boolean",
"value": false,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_delivery_proofs_count",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_storage_mb_size",
"type": "integer",
"value": 100,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "allow_ratings",
"type": "boolean",
"value": false,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_data_storage_days",
"type": "integer",
"value": 7,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_categories_count",
"type": "integer",
"value": 5,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_goods_count",
"type": "integer",
"value": 15,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_allowed_plan_mask",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_third_p_integration_count",
"type": "integer",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0
},
{
"key": "limit_payment_methods_count",
"type": "integer",
"value": 1,
"can_overflow": false,
"overflow_cost_e2": 0
}
],
"attached_features": [
{
"id": 1,
"key": "limit_admins_count",
"value": 0,
"can_overflow": false,
"overflow_cost_e2": 0,
"period": "monthly",
"created_at": "2020-04-02 15:21:46",
"updated_at": "2020-04-02 15:21:46",
"plan_id": 1
}
]
}
Insertar Plan
Método |
URI |
Cabeceras |
POST |
/plans |
Authorization |
{
"name": "required|string|max:32",
"enabled": "boolean",
"published": "boolean",
"description": "required|string",
"trial_days": "integer|min:0",
"enable_at": "date|after:today",
"disable_at": "date|after:tomorrow"
}
Listar Plan
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/plans |
N/A |
Mostrar Plan
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/plans/{planId} |
N/A |
Actualizar Plan
Método |
URI |
Cabeceras |
PATCH |
/plans/{planId} |
Authorization |
{
"name": "string|max:32",
"enabled": "boolean",
"published": "boolean",
"description": "string",
"trial_days": "integer|min:0",
"enable_at": "date|after:today",
"disable_at": "date|after:tomorrow"
}
Eliminar Plan
Método |
URI |
Cabeceras |
DELETE |
/plans/{planId} |
Authorization |
Enlaces de Plan