GS2-Money2 マスターデータリファレンス
マスターデータのフォーマットと インポートする各種モデルのリファレンス
マスターデータのフォーマット
{
"version": "2024-06-20",
"storeContentModels": [
{
"name": "[string]ストアコンテンツモデル名",
"metadata": "[string?]メタデータ",
"appleAppStore": {
"productId": "[string?]プロダクトID"
},
"googlePlay": {
"productId": "[string?]プロダクトID"
}
}
],
"storeSubscriptionContentModels": [
{
"name": "[string]定期課金ストアコンテンツモデル名",
"metadata": "[string?]メタデータ",
"scheduleNamespaceId": "[string]サブスクリプション期間を連動させる GS2-Schedule のネームスペースGRN",
"triggerName": "[string]サブスクリプション期間を反映するトリガー名",
"triggerExtendMode": "[string enum]サブスクリプション期間をトリガーに反映する時のモード",
"rollupHour": "[int]期限が切れる日、契約期間を日またぎの時刻まで延長する場合日跨ぎの時刻(UTC)",
"reallocateSpanDays": "[int]サブスクリプションの契約情報を他のユーザーに割り当て可能となる期間(日)",
"appleAppStore": {
"subscriptionGroupIdentifier": "[string?]サブスクリプショングループID"
},
"googlePlay": {
"productId": "[string?]プロダクトID"
}
}
]
}| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2024-06-20 | マスターデータのフォーマットバージョン | ||
| storeContentModels | List<StoreContentModel> | ~ 1000 items | ストアプラットフォームのコンテンツ | |||
| storeSubscriptionContentModels | List<StoreSubscriptionContentModel> | ~ 1000 items | ストアプラットフォームの定期課金コンテンツ |
モデル
StoreContentModel
ストアプラットフォームのコンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| storeContentModelId | string | ✓* | ~ 1024文字 | コンテンツモデル
GRN ※ サーバー側で自動的に設定 | ||
| name | string | ✓ | ~ 128文字 | ストアコンテンツモデル名 | ||
| metadata | string | ~ 1024文字 | メタデータ メタデータには任意の値を設定できます。 これらの値は GS2 の動作には影響しないため、ゲーム内で利用する情報の保存先として使用できます。 | |||
| appleAppStore | AppleAppStoreContent | Apple AppStore のコンテンツ | ||||
| googlePlay | GooglePlayContent | Google Play のコンテンツ |
AppleAppStoreContent
Apple AppStore のコンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024文字 | プロダクトID |
GooglePlayContent
Google Play のコンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024文字 | プロダクトID |
StoreSubscriptionContentModel
ストアプラットフォームの定期課金コンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| storeSubscriptionContentModelId | string | ✓* | ~ 1024文字 | 期間課金コンテンツモデル
GRN ※ サーバー側で自動的に設定 | ||||||||
| name | string | ✓ | ~ 128文字 | 定期課金ストアコンテンツモデル名 | ||||||||
| metadata | string | ~ 1024文字 | メタデータ | |||||||||
| scheduleNamespaceId | string | ✓ | ~ 1024文字 | サブスクリプション期間を連動させる GS2-Schedule のネームスペース GRN | ||||||||
| triggerName | string | ✓ | ~ 128文字 | サブスクリプション期間を反映するトリガー名 | ||||||||
| triggerExtendMode | 文字列列挙型 enum { “just”, “rollupHour” } | ✓ | “just” | サブスクリプション期間をトリガーに反映する時のモード
| ||||||||
| rollupHour | int | {triggerExtendMode} == “rollupHour” | ✓* | 0 | 0 ~ 23 | 期限が切れる日、契約期間を日またぎの時刻まで延長する場合日跨ぎの時刻(UTC) ※ triggerExtendMode が “rollupHour” であれば 必須 | ||||||
| reallocateSpanDays | int | ✓ | 30 | 0 ~ 365 | サブスクリプションの契約情報を他のユーザーに割り当て可能となる期間(日) | |||||||
| appleAppStore | AppleAppStoreSubscriptionContent | Apple AppStore のコンテンツ | ||||||||||
| googlePlay | GooglePlaySubscriptionContent | Google Play のコンテンツ |
AppleAppStoreSubscriptionContent
Apple AppStore の期間課金コンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| subscriptionGroupIdentifier | string | ~ 64文字 | サブスクリプショングループID |
GooglePlaySubscriptionContent
Google Play の期間課金コンテンツ
| 型 | 有効化条件 | 必須 | デフォルト | 値の制限 | 説明 | |
|---|---|---|---|---|---|---|
| productId | string | ~ 1024文字 | プロダクトID |