@@ -88,6 +88,7 @@ class Product implements ModelInterface, ArrayAccess, \JsonSerializable
88
88
'weight_unit ' => 'string ' ,
89
89
'sort_order ' => 'int ' ,
90
90
'in_stock ' => 'bool ' ,
91
+ 'on_sale ' => 'bool ' ,
91
92
'backorders ' => 'string ' ,
92
93
'manage_stock ' => 'string ' ,
93
94
'is_stock_managed ' => 'bool ' ,
@@ -154,6 +155,7 @@ class Product implements ModelInterface, ArrayAccess, \JsonSerializable
154
155
'weight_unit ' => null ,
155
156
'sort_order ' => null ,
156
157
'in_stock ' => null ,
158
+ 'on_sale ' => null ,
157
159
'backorders ' => null ,
158
160
'manage_stock ' => null ,
159
161
'is_stock_managed ' => null ,
@@ -218,6 +220,7 @@ class Product implements ModelInterface, ArrayAccess, \JsonSerializable
218
220
'weight_unit ' => false ,
219
221
'sort_order ' => false ,
220
222
'in_stock ' => false ,
223
+ 'on_sale ' => false ,
221
224
'backorders ' => false ,
222
225
'manage_stock ' => false ,
223
226
'is_stock_managed ' => false ,
@@ -362,6 +365,7 @@ public function isNullableSetToNull(string $property): bool
362
365
'weight_unit ' => 'weight_unit ' ,
363
366
'sort_order ' => 'sort_order ' ,
364
367
'in_stock ' => 'in_stock ' ,
368
+ 'on_sale ' => 'on_sale ' ,
365
369
'backorders ' => 'backorders ' ,
366
370
'manage_stock ' => 'manage_stock ' ,
367
371
'is_stock_managed ' => 'is_stock_managed ' ,
@@ -426,6 +430,7 @@ public function isNullableSetToNull(string $property): bool
426
430
'weight_unit ' => 'setWeightUnit ' ,
427
431
'sort_order ' => 'setSortOrder ' ,
428
432
'in_stock ' => 'setInStock ' ,
433
+ 'on_sale ' => 'setOnSale ' ,
429
434
'backorders ' => 'setBackorders ' ,
430
435
'manage_stock ' => 'setManageStock ' ,
431
436
'is_stock_managed ' => 'setIsStockManaged ' ,
@@ -490,6 +495,7 @@ public function isNullableSetToNull(string $property): bool
490
495
'weight_unit ' => 'getWeightUnit ' ,
491
496
'sort_order ' => 'getSortOrder ' ,
492
497
'in_stock ' => 'getInStock ' ,
498
+ 'on_sale ' => 'getOnSale ' ,
493
499
'backorders ' => 'getBackorders ' ,
494
500
'manage_stock ' => 'getManageStock ' ,
495
501
'is_stock_managed ' => 'getIsStockManaged ' ,
@@ -605,6 +611,7 @@ public function __construct(?array $data = null)
605
611
$ this ->setIfExists ('weight_unit ' , $ data ?? [], null );
606
612
$ this ->setIfExists ('sort_order ' , $ data ?? [], null );
607
613
$ this ->setIfExists ('in_stock ' , $ data ?? [], null );
614
+ $ this ->setIfExists ('on_sale ' , $ data ?? [], null );
608
615
$ this ->setIfExists ('backorders ' , $ data ?? [], null );
609
616
$ this ->setIfExists ('manage_stock ' , $ data ?? [], null );
610
617
$ this ->setIfExists ('is_stock_managed ' , $ data ?? [], null );
@@ -1485,6 +1492,33 @@ public function setInStock($in_stock)
1485
1492
return $ this ;
1486
1493
}
1487
1494
1495
+ /**
1496
+ * Gets on_sale
1497
+ *
1498
+ * @return bool|null
1499
+ */
1500
+ public function getOnSale ()
1501
+ {
1502
+ return $ this ->container ['on_sale ' ];
1503
+ }
1504
+
1505
+ /**
1506
+ * Sets on_sale
1507
+ *
1508
+ * @param bool|null $on_sale on_sale
1509
+ *
1510
+ * @return self
1511
+ */
1512
+ public function setOnSale ($ on_sale )
1513
+ {
1514
+ if (is_null ($ on_sale )) {
1515
+ throw new \InvalidArgumentException ('non-nullable on_sale cannot be null ' );
1516
+ }
1517
+ $ this ->container ['on_sale ' ] = $ on_sale ;
1518
+
1519
+ return $ this ;
1520
+ }
1521
+
1488
1522
/**
1489
1523
* Gets backorders
1490
1524
*
0 commit comments