Table of Contents

Class Body12

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

Request to create a product to be purchased. Users can purchase the product via hosted UI (link is returned), a transaction execution referencing the product ID, or embedded widgets with the product ID.

public class Body12
Inheritance
Body12
Inherited Members

Properties

AdditionalProperties

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }

Property Value

IDictionary<string, object>

Description

The description of the product

[JsonProperty("description", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string Description { get; set; }

Property Value

string

ImageUrl

The URL of the product image

[JsonProperty("imageUrl", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string ImageUrl { get; set; }

Property Value

string

Name

The name of the product

[JsonProperty("name", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string Name { get; set; }

Property Value

string

PurchaseData

App specific purchase data for this payment

[JsonProperty("purchaseData", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public object PurchaseData { get; set; }

Property Value

object

Recipient

The wallet address or ENS name that will receive the payment for the product

[JsonProperty("recipient", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string Recipient { get; set; }

Property Value

string

Token

The token to purchase

[JsonProperty("token", Required = Required.Always)]
[Required]
public Token Token { get; set; }

Property Value

Token