Product class
Revision as of 06:23, 2 July 2020 by Administrator (talk | contribs)
Product
Represents a Product.
Parent class
Inherits from object
Constructors
- (int ResourceId "Resource Id of the Product") - Instanciate an existing instance using the resource id of a product
Methods
- number CostInCurrency(string currency "Currency to use for calculations. Use empty for default currency") - How many points does this product cost
- (From object) string ToString() - The string representation of the object.
Properties
- string Category { get; } - Category of the Product
- number CostInDefaultCurrency { get; } - How many points does this product cost
- int CostInPoints { get; } - How many points does this product cost
- int GiftPoints { get; } - Bonus points awarded when buying this product
- object GroupResourceId { get; } - Resource id of the group contains product (product supplier). if product doesn't belong any group, return empty
- string ImageUrl { get; } - Url to the main image of the product
- bool IsPhysical { get; } - Is the product something that needs to be physically delivered
- string LocalizedDescription { get; } - Localized description of the Product. This is HTML
- Dictionary LocalizedDescriptions { get; } - Localized Descriptions of the Product
- string LocalizedName { get; } - Localized Name of the Product
- Dictionary LocalizedNames { get; } - Localized Names of the Product
- string ObjectTypeName { get; } - The name of the type of object.
- array ProductOptions { get; } - Get the options of this product, ordered by points then by localizedName
- int ResourceId { get; } - Resource id of the Product
- string ResourceName { get; } - Name of the Product
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
- int Weight { get; } - Weight in kg