@@ -14,18 +14,25 @@ public class Item {
1414 private String sizing = "fillPrintArea" ;
1515 private List <Asset > assets ;
1616 private Map <String , String > attributes ;
17+ private String merchantReference ;
1718
1819 public static class Builder {
1920 private List <Asset > builderAssets ;
2021 private String builderSku ;
2122 private Map <String , String > builderAttributes = new HashMap <>();
2223 private int builderCopies ;
24+ private String builderMerchantReference ;
2325
2426 public Builder (String sku , int copies ) {
27+ this (sku , copies , null );
28+ }
29+
30+ public Builder (String sku , int copies , String merchantReference ) {
2531 this .builderAssets = new ArrayList <>();
2632 this .builderSku = sku ;
2733 builderAttributes .put ("finish" , "lustre" ); // default
2834 builderCopies = copies ;
35+ builderMerchantReference = merchantReference ;
2936 }
3037
3138 public Builder addAsset (URL url ) {
@@ -40,6 +47,7 @@ public Item build() {
4047 item .setSku (builderSku );
4148 item .setAttributes (builderAttributes );
4249 item .setCopies (builderCopies );
50+ item .setMerchantReference (builderMerchantReference );
4351 return item ;
4452 }
4553 }
@@ -54,6 +62,14 @@ public void setSku(String sku) {
5462 this .sku = sku ;
5563 }
5664
65+ public String getMerchantReference () {
66+ return merchantReference ;
67+ }
68+
69+ public void setMerchantReference (String merchantReference ) {
70+ this .merchantReference = merchantReference ;
71+ }
72+
5773 public int getCopies () {
5874 return copies ;
5975 }
0 commit comments