@detail_route()<EOL><INDENT>def entitlements(self, request, pk=None):  <DEDENT>
enterprise_customer_user = self.get_object()<EOL>instance = {"<STR_LIT>": enterprise_customer_user.entitlements}<EOL>serializer = serializers.EnterpriseCustomerUserEntitlementSerializer(instance, context={'<STR_LIT>': request})<EOL>return Response(serializer.data)<EOL>
Retrieve the list of entitlements available to this learner.

Only those entitlements are returned that satisfy enterprise customer's data sharing setting.

Arguments:
    request (HttpRequest): Reference to in-progress request instance.
    pk (Int): Primary key value of the selected enterprise learner.

Returns:
    (HttpResponse): Response object containing a list of learner's entitlements.