Skip to content

Commit ee17c0e

Browse files
Add the images property to the product. Add the position property to the images.
1 parent 0ac0a6b commit ee17c0e

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.storakle.shopify</groupId>
88
<artifactId>shopify-api-java-wrapper</artifactId>
9-
<version>0.2.11</version>
9+
<version>0.2.12</version>
1010
<build>
1111
<sourceDirectory>src/main/java</sourceDirectory>
1212
<plugins>

src/main/java/com/storakle/shopify/domain/Image.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ public class Image
88
{
99
@JsonProperty(value = JsonConstants.SRC)
1010
private String src;
11+
12+
@JsonProperty(value = JsonConstants.POSITION)
13+
private Integer position;
1114
}

src/main/java/com/storakle/shopify/domain/JsonConstants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public final class JsonConstants
3939
public static final String VARIANT_ID = "variant_id";
4040
public static final String HANDLE = "handle";
4141
public static final String IMAGE = "image";
42+
public static final String IMAGES = "images";
43+
public static final String POSITION = "position";
4244
public static final String PRICE = "price";
4345
public static final String COMPARE_AT_PRICE = "compare_at_price";
4446
public static final String PUBLISHED_AT = "published_at";

src/main/java/com/storakle/shopify/domain/Product.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public class Product
2525
@JsonProperty(value = JsonConstants.IMAGE)
2626
private Image featuredImage;
2727

28+
@JsonProperty(value = JsonConstants.IMAGES)
29+
private List<Image> images;
30+
2831
@JsonProperty(value = JsonConstants.PUBLISHED_AT)
2932
@JsonDeserialize(using = FlexDateDeserializer.class)
3033
@JsonSerialize(using = FlexDateSerializer.class)

0 commit comments

Comments
 (0)