跳至主要内容

Item, lootbox, and subscription read model updates

What's new

The read models for items, lootboxes, and subscriptions changed in three ways:

  • The is_system flag was removed from nested item reads (items, lootbox contents, and subscription plan items).
  • Lootbox group lists switched from a discriminated oneOf to an anyOf of LootboxGroup and LootboxNestedItem, and the discriminator was removed.
  • The internally named aghanim__subscription_item__schemas__SubscriptionRead schema was consolidated into a single SubscriptionRead.

Impact

Consumers that read the is_system flag from nested items will no longer receive it. Lootbox group entries are no longer discriminated by an explicit type field, so parse them structurally. The subscription read payload is otherwise unchanged aside from its schema name.

Changes

ResourceChange
get_items, get_all_store_items, get_store_items, get_campaign_store_items, get_user_store_items, create_store_item, update_store_item, bulk_update_store_itemsRemoved is_system from nested item reads; lootbox groups changed from oneOf to anyOf; SubscriptionRead replaces the internal subscription schema
get_daily_rewards, create_daily_reward, get_daily_reward, update_daily_reward, copy_daily_rewardRemoved is_system from nested reward item reads; lootbox groups changed from oneOf to anyOf
ComponentsRemoved the internal aghanim__subscription_item__schemas__SubscriptionRead schema

Upgrade

  • Stop reading is_system from item, lootbox, and subscription-plan reads.
  • If you rely on a discriminator to parse lootbox groups, switch to structural parsing of LootboxGroup and LootboxNestedItem.

需要技术支持?
联系我们的集成技术团队: [email protected]