public static class Storefront.ProductVariantComponent extends AbstractResponse<Storefront.ProductVariantComponent>
optimisticData, responseData| Constructor and Description |
|---|
ProductVariantComponent() |
ProductVariantComponent(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getGraphQlTypeName() |
Storefront.ProductVariant |
getProductVariant()
The product variant object that the component belongs to.
|
java.lang.Integer |
getQuantity()
The quantity of component present in the bundle.
|
Storefront.ProductVariantComponent |
setProductVariant(Storefront.ProductVariant arg) |
Storefront.ProductVariantComponent |
setQuantity(java.lang.Integer arg) |
boolean |
unwrapsToObject(java.lang.String key) |
collectNodes, get, getFieldName, getKey, jsonAsArray, jsonAsBoolean, jsonAsDouble, jsonAsInteger, jsonAsObject, jsonAsString, withAliaspublic ProductVariantComponent()
public ProductVariantComponent(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic java.lang.String getGraphQlTypeName()
public Storefront.ProductVariant getProductVariant()
public Storefront.ProductVariantComponent setProductVariant(Storefront.ProductVariant arg)
public java.lang.Integer getQuantity()
public Storefront.ProductVariantComponent setQuantity(java.lang.Integer arg)
public boolean unwrapsToObject(java.lang.String key)
unwrapsToObject in class AbstractResponse<Storefront.ProductVariantComponent>