Master Data Reference of GS2-Money2
Reference of the format of master data and various models to be imported
Master Data Format
{
"version": "2024-06-20",
"storeContentModels": [
{
"name": "[string]Store Content Model Name",
"metadata": "[string?]Metadata",
"appleAppStore": {
"productId": "[string?]Product ID"
},
"googlePlay": {
"productId": "[string?]Product ID"
}
}
],
"storeSubscriptionContentModels": [
{
"name": "[string]Subscription Store Content Model Name",
"metadata": "[string?]Metadata",
"scheduleNamespaceId": "[string]Namespace GRN of GS2-Schedule to link the subscription period",
"triggerName": "[string]Trigger Name to reflect the subscription period",
"triggerExtendMode": "[string]Mode to reflect the subscription period on the trigger",
"rollupHour": "[int]Hour of the day to roll up the subscription period (UTC)",
"reallocateSpanDays": "[int]Time span (days) that allows subscription contract information to be assigned to other users",
"appleAppStore": {
"subscriptionGroupIdentifier": "[string?]Subscription Group ID"
},
"googlePlay": {
"productId": "[string?]Product ID"
}
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2024-06-20 | Format version of master data | ||
| storeContentModels | List<StoreContentModel> | ~ 1000 items | Content of the store platform | |||
| storeSubscriptionContentModels | List<StoreSubscriptionContentModel> | ~ 1000 items | Store platform subscription content |
Model
StoreContentModel
Content of the store platform
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| storeContentModelId | string | ✓* | ~ 1024 chars | Content Model GRN * Automatically configured on the server | ||
| name | string | ✓ | ~ 128 chars | Store Content Model Name | ||
| metadata | string | ~ 1024 chars | Metadata | |||
| appleAppStore | AppleAppStoreContent | Apple AppStore Content | ||||
| googlePlay | GooglePlayContent | Google Play Content |
AppleAppStoreContent
Content of Apple AppStore
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024 chars | Product ID |
GooglePlayContent
Content of Google Play
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024 chars | Product ID |
StoreSubscriptionContentModel
Store platform subscription content
| Type | Condition | Required | Default | Value Limits | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| storeSubscriptionContentModelId | string | ✓* | ~ 1024 chars | Subscription Content Model GRN * Automatically configured on the server | ||||||||
| name | string | ✓ | ~ 128 chars | Subscription Store Content Model Name | ||||||||
| metadata | string | ~ 1024 chars | Metadata | |||||||||
| scheduleNamespaceId | string | ✓ | ~ 1024 chars | Namespace GRN of GS2-Schedule to link the subscription period | ||||||||
| triggerName | string | ✓ | ~ 128 chars | Trigger Name to reflect the subscription period | ||||||||
| triggerExtendMode | String Enum enum { “just”, “rollupHour” } | ✓ | “just” | Mode to reflect the subscription period on the trigger
| ||||||||
| rollupHour | int | {triggerExtendMode} == “rollupHour” | ✓* | 0 | 0 ~ 23 | Hour of the day to roll up the subscription period (UTC) * Required if triggerExtendMode is “rollupHour” | ||||||
| reallocateSpanDays | int | ✓ | 30 | 0 ~ 365 | Time span (days) that allows subscription contract information to be assigned to other users | |||||||
| appleAppStore | AppleAppStoreSubscriptionContent | Apple AppStore Content | ||||||||||
| googlePlay | GooglePlaySubscriptionContent | Google Play Content |
AppleAppStoreSubscriptionContent
Subscription content of Apple AppStore
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| subscriptionGroupIdentifier | string | ~ 64 chars | Subscription Group ID |
GooglePlaySubscriptionContent
Google Play Subscription Content
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024 chars | Product ID |