AssetResponse

data class AssetResponse(val name: String? = null, val storeId: String, val address: AssetAddressResponse? = null, val contact: AssetContact? = null, val open: AssetOpenResponse? = null, val weeklyOpening: AssetWeeklyOpeningResponse? = null, val types: List<String>? = null, val tags: List<String>? = null, val lastUpdated: String? = null, val userProperties: Map<String, Any>? = null, val openingHours: AssetOpeningHours? = null, val distance: Double? = null)

Attributes describing an Asset.

Parameters

name

The asset's name.

storeId

A textual identifier that uniquely identifies an Asset. It must matches the following regexp [A-Za-z0-9]+

address
contact

open

weeklyOpening
types

Contains an array of types describing the Asset.

tags

Contains an array of tags describing the Asset. For example a list of available amenities.

lastUpdated

the previous date timestamp when the asset has been updated

userProperties

Contains all additional information relative to an Asset. If not set it returns null value.

openingHours
distance

The distance in meters from the geolocated position or searched position if exist

Constructors

Link copied to clipboard
constructor(name: String? = null, storeId: String, address: AssetAddressResponse? = null, contact: AssetContact? = null, open: AssetOpenResponse? = null, weeklyOpening: AssetWeeklyOpeningResponse? = null, types: List<String>? = null, tags: List<String>? = null, lastUpdated: String? = null, userProperties: Map<String, Any>? = null, openingHours: AssetOpeningHours? = null, distance: Double? = null)

Properties

Link copied to clipboard
@SerializedName(value = "address")
val address: AssetAddressResponse? = null
Link copied to clipboard
@SerializedName(value = "contact")
val contact: AssetContact? = null
Link copied to clipboard
@SerializedName(value = "distance")
val distance: Double? = null
Link copied to clipboard
@SerializedName(value = "last_updated")
val lastUpdated: String? = null
Link copied to clipboard
@SerializedName(value = "name")
val name: String? = null
Link copied to clipboard
@SerializedName(value = "open")
val open: AssetOpenResponse? = null
Link copied to clipboard
@SerializedName(value = "opening_hours")
val openingHours: AssetOpeningHours? = null
Link copied to clipboard
@SerializedName(value = "store_id")
val storeId: String
Link copied to clipboard
@SerializedName(value = "tags")
val tags: List<String>? = null
Link copied to clipboard
@SerializedName(value = "types")
val types: List<String>? = null
Link copied to clipboard
@SerializedName(value = "user_properties")
val userProperties: Map<String, Any>? = null
Link copied to clipboard
@SerializedName(value = "weekly_opening")
val weeklyOpening: AssetWeeklyOpeningResponse? = null