---
# System prepended metadata

title: Hari libur supplier

---

# Hari libur supplier

#### Branch
service-api: feature/supplier-holyday
printerous-pro: feature/supplier-holyday
module-phoenix: feature/supplier-holyday



#### migration


##### holiydays

| column | type data |
| ------ | --------- |
| id     | int       |
| name   | string    |


##### partner_holidays
| column     | type data |
| ---------- | --------- |
| id         | int       |
| holiday_id | reference |
| start_date | datetime  |
| end_date   | datetime  |
| partner_id | reference |


#### endpoint
- phoenix/holidays/active

```json
{
    "id": 123,
    "name": "Idulfitri 1444H",
    "start_at": "2023-04-19",
    "end_at": "2023-04-25"
}
```
- update (pcp, pdp, supplier page, checkout page)
```json
{
    
    "partner": {
        "holiday": {
            "id": 123,
            "name": "Idulfitri 1444H",
            "start_at": "2023-04-19",
            "end_at": "2023-04-25",
            "date_operated": "2023-04-26"
        },
        "avaliable_order": true / false
    }
}
```
- syncronize cart (tambah validator partner holiday)
- release timeslot
- script input data libur partner
- improve timeslot option

TODO
- migration (1) - Yasir
- endpoint phoenix/holidays/active (2) (rahmad)
- update response partner (2) (rahmad)
- syncronize cart (tambah validator partner holiday) (3) (deden)
- release timeslot (2) - Yasir
- input data libur partner (3)
- improve timeslot option exclude tanggal libur dari supplier (start s/d end) (2) (asep)