Recommendation
Esta página aún no está disponible en tu idioma.
The shopper’s recommended size for one product, in the store’s own size labels.
Properties
Section titled “Properties”productStringObligatoriostatusStatusObligatoriosizeString?Opcional= nullThe recommended size in the store's label (its size map), or null.
studioSizeString?Opcional= nullThe same size as entered in TryYourSize Studio, or null.
wearableSizesList<String>?Opcional= 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.
¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.