Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit ce591e8

Browse files
committed
feat(ProductAddVariantAction): support field assets
1 parent 2e9d74b commit ce591e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Core/Request/Products/Command/ProductAddVariantAction.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
namespace Commercetools\Core\Request\Products\Command;
77

8+
use Commercetools\Core\Model\Common\AssetCollection;
89
use Commercetools\Core\Model\Common\AttributeCollection;
910
use Commercetools\Core\Model\Common\Context;
1011
use Commercetools\Core\Model\Common\PriceDraftCollection;
@@ -28,6 +29,8 @@
2829
* @method ProductAddVariantAction setKey(string $key = null)
2930
* @method ImageCollection getImages()
3031
* @method ProductAddVariantAction setImages(ImageCollection $images = null)
32+
* @method AssetCollection getAssets()
33+
* @method ProductAddVariantAction setAssets(AssetCollection $assets = null)
3134
*/
3235
class ProductAddVariantAction extends AbstractAction
3336
{
@@ -40,7 +43,8 @@ public function fieldDefinitions()
4043
'attributes' => [static::TYPE => AttributeCollection::class],
4144
'staged' => [static::TYPE => 'bool'],
4245
'key' => [static::TYPE => 'string'],
43-
'images' => [static::TYPE => ImageCollection::class]
46+
'images' => [static::TYPE => ImageCollection::class],
47+
'assets' => [static::TYPE => AssetCollection::class],
4448
];
4549
}
4650

0 commit comments

Comments
 (0)