game / pragma.inventory / InventoryService / syncEntitlementsServiceV1 /

syncEntitlementsServiceV1 #

suspend fun syncEntitlementsServiceV1(session: ServiceSession, request: InventoryRpc.SyncEntitlementsServiceV1Request): InventoryRpc.SyncEntitlementsServiceV1Response

LEGACY InventoryService is deprecated. Instead of InventoryService, see Orders and the Fulfillment services.

Syncs all available entitlements from all configured Entitlement Provider Plugins except those that currently require an authCode.

Requirements

  • Configure all wanted EntitlementProviderPlugins. Pragma supported providers: Epic, Steam.
  • Configure corresponding entitlement provider’s AccountService.IdentityProviderPlugin. Example: EpicIdentityProviderPlugin.
  • Add and apply InventoryContent.ProviderEntitlementMappings content catalog.
  • For instanced item grants, implement and configure the InstancedItemPlugin.newInstanced.

Plugins

  • EntitlementProviderPlugin.fetchPlayerEntitlements
  • EntitlementProviderPlugin.onEntitlementsFulfilled
  • InstancedItemPlugin.newInstanced for InventoryCommon.InstancedItemServerGrants configured in InventoryContent.ProviderEntitlement.
  • StackableItemPlugin.onUpdate for InventoryCommon.StackableItemGrants configured in InventoryContent.ProviderEntitlement