Master Data Reference of GS2-Limit
{
"version": "2019-04-05",
"limitModels": [
{
"name": "[string]Limit Model Name",
"metadata": "[string?]metadata",
"resetType": "[string]Reset timing",
"resetDayOfMonth": "[int]Date to reset (If the value exceeds the days of the month, it is treated as the last day.)",
"resetDayOfWeek": "[string]Day of the week to reset",
"resetHour": "[int]Reset hour"
}
]
}
Type | Condition | Require | Default | Limitation | Description | |
---|---|---|---|---|---|---|
version | ✓ | 2019-04-05 | Format version of master data | |||
limitModels | List<LimitModel> |
LimitModel
Limit model
The reset interval can be set for the limit. The reset interval can be selected from daily, weekly, monthly, or not reset.
The maximum number of times limit is not set in the master data. Because the system works like a step-up gacha, a product can be purchased when the purchase count counter is less than 3 times. A product that can be purchased when the aforementioned product cannot be purchased and the purchase count counter is less than 5 times. This is so that the maximum value can be changed depending on the context.
Type | Condition | Require | Default | Limitation | Description | |
---|---|---|---|---|---|---|
limitModelId | string | ✓ | ~ 1024 chars | Limit Model GRN | ||
name | string | ✓ | ~ 128 chars | Limit Model Name | ||
metadata | string | ~ 2048 chars | metadata | |||
resetType | enum [’notReset’, ‘daily’, ‘weekly’, ‘monthly’] | ✓ | ~ 128 chars | Reset timing | ||
resetDayOfMonth | int | {resetType} == “monthly” | ✓ | 1 ~ 31 | Date to reset (If the value exceeds the days of the month, it is treated as the last day.) | |
resetDayOfWeek | enum [‘sunday’, ‘monday’, ’tuesday’, ‘wednesday’, ’thursday’, ‘friday’, ‘saturday’] | {resetType} == “weekly” | ✓ | ~ 128 chars | Day of the week to reset | |
resetHour | int | {resetType} in [“monthly”, “weekly”, “daily”] | ✓ | ~ 23 | Reset hour |