Skip to content

Instantly share code, notes, and snippets.

@jordanbeck
Created August 27, 2021 18:47
Show Gist options
  • Save jordanbeck/244f2466c976565e5f175bacc7d4a7de to your computer and use it in GitHub Desktop.
Save jordanbeck/244f2466c976565e5f175bacc7d4a7de to your computer and use it in GitHub Desktop.
val price = Money(amount = BigDecimal(26), currencyCode = "USD")
val shop = Shop(1, "AThomeDesignGoods")
val signals = listOf("In 4 other carts", "Only 1 left!").map { title -> Signal(title) }.toList()
val variations = mapOf(
"Primary color" to "Beige",
"Style" to "Modern"
).map { entry -> Variation(entry.key, entry.value) }.toList()
val listing = Listing(
id = 0,
title = "Rustic Clay Collection Minimalism Mini Vases, Handmade Pottery Vases, Miscellaneous Vases",
imageUrl = "",
price = price,
shop = shop,
signals = signals,
variations = variations
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment