public class ProductVariationGroupRec extends Object implements Jsonable
Modifier and Type | Class and Description |
---|---|
static class |
ProductVariationGroupRec.Relationship
The type of relationship this group has with the parent sku.
|
Constructor and Description |
---|
ProductVariationGroupRec(String parentSku,
ProductVariationGroupRec.Relationship relationship,
List<Long> variationRefinements,
List<String> childSkus,
String groupTitle) |
Modifier and Type | Method and Description |
---|---|
static ProductVariationGroupRec |
fromJSON(String sku,
javax.json.JsonObject json)
Create a new JetProductVariationGroup instance based on Jet JSON.
|
List<String> |
getChildSkus()
Get the list of child sku's
|
String |
getGroupTitle()
Get the group title
|
String |
getParentSku()
Get the parent sku
|
ProductVariationGroupRec.Relationship |
getRelationship() |
List<Long> |
getVariationRefinements()
Get the variation refinement node id's
|
javax.json.JsonObject |
toJSON()
Retrieve the JSON object for this
|
public ProductVariationGroupRec(String parentSku, ProductVariationGroupRec.Relationship relationship, List<Long> variationRefinements, List<String> childSkus, String groupTitle) throws IllegalArgumentException
parentSku
- The identifier you used to track and update your
merchant SKUrelationship
- This field is required if you are setting up a
Variation relationship between a set merchant SKUsvariationRefinements
- The attribute IDs associated with the
characteristic the parent-children SKUs relate on.childSkus
- The merchant SKUs that are the child SKUs.groupTitle
- The title for the variation group to be shown as the
title on the product detail pageIllegalArgumentException
- If any args are invalidpublic static ProductVariationGroupRec fromJSON(String sku, javax.json.JsonObject json) throws IllegalArgumentException, ClassCastException
sku
- The parent sku that was queriedjson
- JSON response from jet product variation query.IllegalArgumentException
- if sku or json are null/emptyClassCastException
- if Any array items are of an incorrect typepublic String getGroupTitle()
public String getParentSku()
public List<Long> getVariationRefinements()
public ProductVariationGroupRec.Relationship getRelationship()
Copyright © 2017. All rights reserved.