Need screens to view and edit a merchants schedule
the payload that the api accepts is as follows:
{
"year": 2026,
"months": [
{
"month": 1,
"closed_days": [1, 2, 15]
},
{
"month": 2,
"closed_days": [10, 14, 28]
},
{
"month": 3,
"closed_days": []
},
{
"month": 12,
"closed_days": [24, 25, 26, 31]
}
]
}
I would like the screen to be able to manage any years defined but only able to update the year selected.
Also need an option on the screen to clone a previous year.
The final requirement is that after a year/month has passed it will be read only, for example once in April 2026, march 2026 cannot be changed.
Need screens to view and edit a merchants schedule
the payload that the api accepts is as follows:
{
"year": 2026,
"months": [
{
"month": 1,
"closed_days": [1, 2, 15]
},
{
"month": 2,
"closed_days": [10, 14, 28]
},
{
"month": 3,
"closed_days": []
},
{
"month": 12,
"closed_days": [24, 25, 26, 31]
}
]
}
I would like the screen to be able to manage any years defined but only able to update the year selected.
Also need an option on the screen to clone a previous year.
The final requirement is that after a year/month has passed it will be read only, for example once in April 2026, march 2026 cannot be changed.