UpdateProductRequest

data class UpdateProductRequest(val name: String? = null, val description: String? = null, val defaultPrice: Int? = null, val shippable: Boolean? = null, val url: String? = null, val metadata: Map<String, String>? = null)

Request body for updating an existing product.

All fields are optional; only non-null fields are applied to the product.

Constructors

Link copied to clipboard
constructor(name: String? = null, description: String? = null, defaultPrice: Int? = null, shippable: Boolean? = null, url: String? = null, metadata: Map<String, String>? = null)

Properties

Link copied to clipboard
@SerializedName(value = "default_price")
val defaultPrice: Int? = null

Updated default price, in the smallest currency unit (e.g. cents).

Link copied to clipboard
val description: String? = null

Updated human-readable description of the product.

Link copied to clipboard
val metadata: Map<String, String>? = null

Updated merchant-defined key-value pairs for the product.

Link copied to clipboard
val name: String? = null

Updated display name of the product.

Link copied to clipboard
val shippable: Boolean? = null

Updated shippable flag for the product.

Link copied to clipboard
val url: String? = null

Updated URL for the product's external page or listing.