|
Shopify SDK for Unity
|
A product variant represents a different version of a product, such as differing sizes or differing colors. More...
Public Member Functions | |
| ProductVariant (Dictionary< string, object > dataJSON) | |
| Accepts deserialized json data. Will further parse passed in data. More... | |
| bool? | available () |
| Indicates if the product variant is in stock. More... | |
| bool | availableForSale () |
| Indicates if the product variant is available for sale. More... | |
| decimal | compareAtPrice () |
The compare at price of the variant. This can be used to mark a variant as on sale, when compareAtPrice is higher than price. More... | |
| MoneyV2 | compareAtPriceV2 () |
The compare at price of the variant. This can be used to mark a variant as on sale, when compareAtPriceV2 is higher than priceV2. More... | |
| string | id () |
| Globally unique identifier. More... | |
| Image | image (string alias=null) |
| Image associated with the product variant. This field falls back to the product image if no image is available. More... | |
| Metafield | metafield (string alias=null) |
| The metafield associated with the resource. More... | |
| MetafieldConnection | metafields (string alias=null) |
| A paginated list of metafields associated with the resource. More... | |
| ProductVariantPricePairConnection | presentmentPrices (string alias=null) |
| List of prices and compare-at prices in the presentment currencies for this shop. More... | |
| MoneyV2connection | presentmentUnitPrices (string alias=null) |
| List of unit prices in the presentment currencies for this shop. More... | |
| decimal | price () |
| The product variant’s price. More... | |
| MoneyV2 | priceV2 () |
| The product variant’s price. More... | |
| Product | product () |
| The product object that the product variant belongs to. More... | |
| bool | requiresShipping () |
| Whether a customer needs to provide a shipping address when placing an order for the product variant. More... | |
| List< SelectedOption > | selectedOptions () |
| List of product options applied to the variant. More... | |
| string | sku () |
| The SKU (stock keeping unit) associated with the variant. More... | |
| string | title () |
| The product variant’s title. More... | |
| MoneyV2 | unitPrice () |
| The unit price value for the variant based on the variant's measurement. More... | |
| UnitPriceMeasurement | unitPriceMeasurement () |
| The unit price measurement for the variant. More... | |
| double? | weight () |
The weight of the product variant in the unit system specified with weight_unit. More... | |
| WeightUnit | weightUnit () |
| Unit of measurement for weight. More... | |
| object | Clone () |
Additional Inherited Members | |
Protected Member Functions inherited from Shopify.Unity.SDK.AbstractResponse | |
| T | Get< T > (string field, string alias=null) |
Protected Attributes inherited from Shopify.Unity.SDK.AbstractResponse | |
| Dictionary< string, object > | Data |
Properties inherited from Shopify.Unity.SDK.AbstractResponse | |
| Dictionary< string, object > | DataJSON [get, protected set] |
A product variant represents a different version of a product, such as differing sizes or differing colors.
|
inline |
Accepts deserialized json data. Will further parse passed in data.
| dataJSON | Deserialized JSON data for ProductVariant |
|
inline |
Indicates if the product variant is in stock.
availableForSale instead
|
inline |
Indicates if the product variant is available for sale.
|
inline |
The compare at price of the variant. This can be used to mark a variant as on sale, when compareAtPrice is higher than price.
compareAtPriceV2 instead
|
inline |
The compare at price of the variant. This can be used to mark a variant as on sale, when compareAtPriceV2 is higher than priceV2.
|
inline |
Globally unique identifier.
Implements Shopify.Unity.Node.
|
inline |
Image associated with the product variant. This field falls back to the product image if no image is available.
| alias | If the original field queried was queried using an alias, then pass the matching string. |
|
inline |
The metafield associated with the resource.
| alias | If the original field queried was queried using an alias, then pass the matching string. |
Implements Shopify.Unity.HasMetafields.
|
inline |
A paginated list of metafields associated with the resource.
| alias | If the original field queried was queried using an alias, then pass the matching string. |
Implements Shopify.Unity.HasMetafields.
|
inline |
List of prices and compare-at prices in the presentment currencies for this shop.
| alias | If the original field queried was queried using an alias, then pass the matching string. |
|
inline |
List of unit prices in the presentment currencies for this shop.
| alias | If the original field queried was queried using an alias, then pass the matching string. |
|
inline |
The product variant’s price.
priceV2 instead
|
inline |
The product variant’s price.
|
inline |
The product object that the product variant belongs to.
|
inline |
Whether a customer needs to provide a shipping address when placing an order for the product variant.
|
inline |
List of product options applied to the variant.
|
inline |
The SKU (stock keeping unit) associated with the variant.
|
inline |
The product variant’s title.
|
inline |
The unit price value for the variant based on the variant's measurement.
|
inline |
The unit price measurement for the variant.
|
inline |
The weight of the product variant in the unit system specified with weight_unit.
|
inline |
Unit of measurement for weight.