Recommendation
The shopper’s recommended size for one product, in the store’s own size labels.
Properties
Section titled “Properties”productStringRequiredstatusStatusRequiredsizeString?Optional= nullThe recommended size in the store's label (its size map), or null.
studioSizeString?Optional= nullThe same size as entered in TryYourSize Studio, or null.
wearableSizesList<String>?Optional= nullSizes that can be worn on this body, in the store's labels (when simulated).
Example
Section titled “Example”lifecycleScope.launch { val rec = tys.recommendation("SKU-123") if (rec.status == Recommendation.Status.READY) selected = rec.size}let rec = try await tys.recommendation(for: "SKU-123")if rec.status == .ready, let size = rec.size { selectedSize = size }const rec = await getRecommendation("SKU-123");if (rec.status === "ready") setSize(rec.size);final rec = await tys.recommendation('SKU-123');if (rec.status == RecommendationStatus.ready) setState(() => size = rec.size);status: READY, COMPUTING, NO_SIZE ("none" on the web), SIGNED_OUT, UNAVAILABLE.
Was this page helpful?
Thank you. We read every answer.