recommendSize
abstract suspend fun recommendSize(code: String, config: AiutaSizeFitConfig): AiutaSizeFitRecommendation
Get a size recommendation based on user's body measurements and shape.
This method sends a request to the NaizFit API with the user's physical characteristics and receives a personalized size recommendation along with detailed measurements and fit information for all available sizes.
Return
AiutaSizeFitRecommendation containing the recommended size name, detailed measurements for all sizes, and the user's calculated body measurements
Parameters
code
The unique size chart code associated with the product for which the recommendation is requested (e.g., "jeans-slimfit-blue-2023")
config
User's body measurements and shape configuration
See also
Throws
if the API request fails or the size chart is not found