Skip to content

Commit

Permalink
Add the COMPARE_AT_PRICE to the product variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanst-stoyanov committed Aug 21, 2017
1 parent be393fc commit 97be6ef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
16 changes: 0 additions & 16 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.storakle.shopify</groupId>
<artifactId>shopify-api-java-wrapper</artifactId>
<version>0.2.8</version>
<version>0.2.9</version>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public final class JsonConstants
public static final String HANDLE = "handle";
public static final String IMAGE = "image";
public static final String PRICE = "price";
public static final String COMPARE_AT_PRICE = "compare_at_price";
public static final String PUBLISHED_AT = "published_at";
public static final String PRODUCT_VARIANTS = "variants";

Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/storakle/shopify/domain/ProductVariant.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ public class ProductVariant

@JsonProperty(value = JsonConstants.PRICE)
private BigDecimal price;

@JsonProperty(value = JsonConstants.COMPARE_AT_PRICE)
private BigDecimal compareAtPrice;
}

0 comments on commit 97be6ef

Please sign in to comment.