@@ -162,6 +162,8 @@ public String toString() {
162162 private CustomerNetwork [] customerNetworks ;
163163 private OpeningHourSpecification [] openingHoursSpecification ;
164164 private JsonElement external ;
165+ @ SerializedName ("shopServices" )
166+ private ShopServices [] shopServices ;
165167
166168 Shop () {
167169 // for gson
@@ -299,6 +301,14 @@ public JsonElement getExternal() {
299301 return external ;
300302 }
301303
304+ /**
305+ * Returns the shop related on-site services for the customer
306+ */
307+ @ NonNull
308+ public ShopServices [] getShopServices () {
309+ return shopServices ;
310+ }
311+
302312 static Shop [] fromJson (JsonElement json ) {
303313 try {
304314 return GsonHolder .get ().fromJson (json , Shop [].class );
@@ -329,7 +339,8 @@ public boolean equals(Object o) {
329339 Objects .equals (links , shop .links ) &&
330340 Arrays .equals (customerNetworks , shop .customerNetworks ) &&
331341 Arrays .equals (openingHoursSpecification , shop .openingHoursSpecification ) &&
332- Objects .equals (external , shop .external );
342+ Objects .equals (external , shop .external ) &&
343+ Arrays .equals (shopServices , shop .shopServices );
333344 }
334345
335346 @ Override
@@ -338,6 +349,7 @@ public int hashCode() {
338349 result = 31 * result + Arrays .hashCode (services );
339350 result = 31 * result + Arrays .hashCode (customerNetworks );
340351 result = 31 * result + Arrays .hashCode (openingHoursSpecification );
352+ result = 31 * result + Arrays .hashCode (shopServices );
341353 return result ;
342354 }
343355
@@ -369,6 +381,7 @@ public String toString() {
369381 ", customerNetworks=" + Arrays .toString (customerNetworks ) +
370382 ", openingHoursSpecification=" + Arrays .toString (openingHoursSpecification ) +
371383 ", external=" + external +
384+ ", shopServices=" + Arrays .toString (shopServices ) +
372385 '}' ;
373386 }
374387
@@ -401,4 +414,4 @@ public Shop[] newArray(int size) {
401414 return new Shop [size ];
402415 }
403416 };
404- }
417+ }
0 commit comments