iOS
Summary
We have added new policy-based APIs to the SDK that enable policy-centric data retrieval for trips, users, scores, discounts, and driving summaries.
fetchTripsForUserByPolicy() - Returns simplified trip list for a user within a policy with optional filtering (date range, transport mode, sorting)
fetchTripsByPolicy() - Returns simplified trip list for all users in a policy with optional filtering
fetchPolicies() - Returns list of policies for logged-in user with policyId, identifier, and userPolicyRole
fetchAssociatedUsers() - Returns list of users associated with a policy (firstName, lastName, status, role)
fetchAverageScoresByPolicy() - Returns average driving scores (highest/lowest/average) with component breakdowns for a user within a policy
fetchByPolicy() - Returns discount configuration (score-to-discount mappings, minimumKmRequired) for a policy
fetchDiscountByPolicyId(policyId, verificationCutOffDate?) - Returns current and projected discount values with min/max ranges for a policy
fetchByPolicy() - Returns policy-level driving summary (kmOfDriving, numberOfTrips, overallScore)
fetchForUserByPolicy() - Returns user-level driving summary within a policy
Breaking Changes
There are no breaking changes in this release.
Last updated