Skip to content

Commit 716fe70

Browse files
authored
Merge pull request #97 from feibeck/update-to-6-5-8-13
update schema to 6.5.8.13
2 parents f4e59e8 + 7047322 commit 716fe70

File tree

68 files changed

+357
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+357
-56
lines changed

src/Data/Entity/App/AppDefinition.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public function getSchema() : Schema
7474
new Property('scriptConditions', 'association', new FlagCollection([new Flag('cascade_delete', 1), ]), ['entity' => 'app_script_condition', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
7575
new Property('cmsBlocks', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_cms_block', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
7676
new Property('flowActions', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_flow_action', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
77+
new Property('flowEvents', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'app_flow_event', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
78+
new Property('appShippingMethods', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('set_null_on_delete', 1), ]), ['entity' => 'app_shipping_method', 'referenceField' => 'appId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
7779
new Property('createdAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('required', 1), ]), []),
7880
new Property('updatedAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
7981
new Property('translated', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('computed', 1), new Flag('runtime', 1), ]), []),

src/Data/Entity/App/AppEntity.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use Vin\ShopwareSdk\Data\Entity\AppScriptCondition\AppScriptConditionCollection;
1515
use Vin\ShopwareSdk\Data\Entity\AppCmsBlock\AppCmsBlockCollection;
1616
use Vin\ShopwareSdk\Data\Entity\AppFlowAction\AppFlowActionCollection;
17+
use Vin\ShopwareSdk\Data\Entity\AppFlowEvent\AppFlowEventCollection;
18+
use Vin\ShopwareSdk\Data\Entity\AppShippingMethod\AppShippingMethodCollection;
1719
use Vin\ShopwareSdk\Data\Entity\Entity;
1820

1921
/**
@@ -97,4 +99,8 @@ class AppEntity extends Entity
9799
public ?AppCmsBlockCollection $cmsBlocks = null;
98100

99101
public ?AppFlowActionCollection $flowActions = null;
102+
103+
public ?AppFlowEventCollection $flowEvents = null;
104+
105+
public ?AppShippingMethodCollection $appShippingMethods = null;
100106
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppFlowEvent;
3+
4+
use Vin\ShopwareSdk\Data\Entity\EntityCollection;
5+
6+
/**
7+
* Shopware Collection Mapping Class
8+
*
9+
* This class is generated dynamically following SW entities schema
10+
*
11+
* @method void add(AppFlowEventEntity $entity)
12+
* @method void set(AppFlowEventEntity $entity)
13+
* @method AppFlowEventEntity[] getIterator()
14+
* @method AppFlowEventEntity[] getElements()
15+
* @method AppFlowEventEntity|null get(string $key)
16+
* @method AppFlowEventEntity|null first()
17+
* @method AppFlowEventEntity|null last()
18+
*/
19+
class AppFlowEventCollection extends EntityCollection
20+
{
21+
public function getExpectedClass() : string
22+
{
23+
return AppFlowEventEntity::class;
24+
}
25+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppFlowEvent;
3+
4+
use Vin\ShopwareSdk\Data\Entity\EntityDefinition;
5+
use Vin\ShopwareSdk\Data\Schema\PropertyCollection;
6+
use Vin\ShopwareSdk\Data\Schema\FlagCollection;
7+
use Vin\ShopwareSdk\Data\Schema\Property;
8+
use Vin\ShopwareSdk\Data\Schema\Flag;
9+
use Vin\ShopwareSdk\Data\Schema\Schema;
10+
11+
/**
12+
* Shopware Definition Mapping Class
13+
*
14+
* This class is generated dynamically following SW entities schema
15+
*/
16+
class AppFlowEventDefinition implements EntityDefinition
17+
{
18+
public const ENTITY_NAME = 'app_flow_event';
19+
20+
public function getEntityName() : string
21+
{
22+
return self::ENTITY_NAME;
23+
}
24+
25+
public function getEntityClass() : string
26+
{
27+
return AppFlowEventEntity::class;
28+
}
29+
30+
public function getEntityCollection() : string
31+
{
32+
return AppFlowEventCollection::class;
33+
}
34+
35+
public function getSchema() : Schema
36+
{
37+
return new Schema('app_flow_event', new PropertyCollection([
38+
new Property('id', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('primary_key', 1), new Flag('required', 1), ]), []),
39+
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
40+
new Property('name', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
41+
new Property('aware', 'json_list', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
42+
new Property('customFields', 'json_object', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
43+
new Property('app', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'app', 'referenceField' => 'id', 'localField' => 'appId', 'relation' => 'many_to_one', ]),
44+
new Property('flows', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('cascade_delete', 1), ]), ['entity' => 'flow', 'referenceField' => 'appFlowEventId', 'localField' => 'id', 'relation' => 'one_to_many', ]),
45+
new Property('createdAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('required', 1), ]), []),
46+
new Property('updatedAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
47+
]));
48+
}
49+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppFlowEvent;
3+
4+
use Vin\ShopwareSdk\Data\Entity\App\AppEntity;
5+
use Vin\ShopwareSdk\Data\Entity\Flow\FlowCollection;
6+
use Vin\ShopwareSdk\Data\Entity\Entity;
7+
8+
/**
9+
* Shopware Entity Mapping Class
10+
*
11+
* This class is generated dynamically following SW entities schema
12+
*/
13+
#[\AllowDynamicProperties]
14+
class AppFlowEventEntity extends Entity
15+
{
16+
public ?string $appId = null;
17+
18+
public ?string $name = null;
19+
20+
public ?array $aware = null;
21+
22+
public ?AppEntity $app = null;
23+
24+
public ?FlowCollection $flows = null;
25+
}

src/Data/Entity/AppPaymentMethod/AppPaymentMethodDefinition.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function getSchema() : Schema
4343
new Property('validateUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4444
new Property('captureUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4545
new Property('refundUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
46+
new Property('recurringUrl', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4647
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
4748
new Property('app', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'app', 'referenceField' => 'id', 'localField' => 'appId', 'relation' => 'many_to_one', ]),
4849
new Property('originalMediaId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),

src/Data/Entity/AppPaymentMethod/AppPaymentMethodEntity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ class AppPaymentMethodEntity extends Entity
2828

2929
public ?string $refundUrl = null;
3030

31+
public ?string $recurringUrl = null;
32+
3133
public ?string $appId = null;
3234

3335
public ?AppEntity $app = null;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppShippingMethod;
3+
4+
use Vin\ShopwareSdk\Data\Entity\EntityCollection;
5+
6+
/**
7+
* Shopware Collection Mapping Class
8+
*
9+
* This class is generated dynamically following SW entities schema
10+
*
11+
* @method void add(AppShippingMethodEntity $entity)
12+
* @method void set(AppShippingMethodEntity $entity)
13+
* @method AppShippingMethodEntity[] getIterator()
14+
* @method AppShippingMethodEntity[] getElements()
15+
* @method AppShippingMethodEntity|null get(string $key)
16+
* @method AppShippingMethodEntity|null first()
17+
* @method AppShippingMethodEntity|null last()
18+
*/
19+
class AppShippingMethodCollection extends EntityCollection
20+
{
21+
public function getExpectedClass() : string
22+
{
23+
return AppShippingMethodEntity::class;
24+
}
25+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppShippingMethod;
3+
4+
use Vin\ShopwareSdk\Data\Entity\EntityDefinition;
5+
use Vin\ShopwareSdk\Data\Schema\PropertyCollection;
6+
use Vin\ShopwareSdk\Data\Schema\FlagCollection;
7+
use Vin\ShopwareSdk\Data\Schema\Property;
8+
use Vin\ShopwareSdk\Data\Schema\Flag;
9+
use Vin\ShopwareSdk\Data\Schema\Schema;
10+
11+
/**
12+
* Shopware Definition Mapping Class
13+
*
14+
* This class is generated dynamically following SW entities schema
15+
*/
16+
class AppShippingMethodDefinition implements EntityDefinition
17+
{
18+
public const ENTITY_NAME = 'app_shipping_method';
19+
20+
public function getEntityName() : string
21+
{
22+
return self::ENTITY_NAME;
23+
}
24+
25+
public function getEntityClass() : string
26+
{
27+
return AppShippingMethodEntity::class;
28+
}
29+
30+
public function getEntityCollection() : string
31+
{
32+
return AppShippingMethodCollection::class;
33+
}
34+
35+
public function getSchema() : Schema
36+
{
37+
return new Schema('app_shipping_method', new PropertyCollection([
38+
new Property('id', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('primary_key', 1), new Flag('required', 1), ]), []),
39+
new Property('appName', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
40+
new Property('identifier', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
41+
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
42+
new Property('app', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'app', 'referenceField' => 'id', 'localField' => 'appId', 'relation' => 'many_to_one', ]),
43+
new Property('shippingMethodId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
44+
new Property('shippingMethod', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'shipping_method', 'referenceField' => 'id', 'localField' => 'shippingMethodId', 'relation' => 'one_to_one', ]),
45+
new Property('originalMediaId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), []),
46+
new Property('originalMedia', 'association', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), ]), ['entity' => 'media', 'referenceField' => 'id', 'localField' => 'originalMediaId', 'relation' => 'many_to_one', ]),
47+
new Property('createdAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), new Flag('required', 1), ]), []),
48+
new Property('updatedAt', 'date', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource', 'Shopware\Core\Framework\Api\Context\SalesChannelApiSource']]), ]), []),
49+
]));
50+
}
51+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php declare(strict_types=1);
2+
namespace Vin\ShopwareSdk\Data\Entity\AppShippingMethod;
3+
4+
use Vin\ShopwareSdk\Data\Entity\App\AppEntity;
5+
use Vin\ShopwareSdk\Data\Entity\ShippingMethod\ShippingMethodEntity;
6+
use Vin\ShopwareSdk\Data\Entity\Media\MediaEntity;
7+
use Vin\ShopwareSdk\Data\Entity\Entity;
8+
9+
/**
10+
* Shopware Entity Mapping Class
11+
*
12+
* This class is generated dynamically following SW entities schema
13+
*/
14+
#[\AllowDynamicProperties]
15+
class AppShippingMethodEntity extends Entity
16+
{
17+
public ?string $appName = null;
18+
19+
public ?string $identifier = null;
20+
21+
public ?string $appId = null;
22+
23+
public ?AppEntity $app = null;
24+
25+
public ?string $shippingMethodId = null;
26+
27+
public ?ShippingMethodEntity $shippingMethod = null;
28+
29+
public ?string $originalMediaId = null;
30+
31+
public ?MediaEntity $originalMedia = null;
32+
}

src/Data/Entity/AppTemplate/AppTemplateDefinition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getSchema() : Schema
3636
{
3737
return new Schema('app_template', new PropertyCollection([
3838
new Property('id', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('primary_key', 1), new Flag('required', 1), ]), []),
39-
new Property('template', 'text', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), new Flag('allow_html', 1), ]), []),
39+
new Property('template', 'text', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), new Flag('allow_html', 1), new Flag('allow_empty_string', 1), ]), []),
4040
new Property('path', 'string', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
4141
new Property('active', 'boolean', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),
4242
new Property('appId', 'uuid', new FlagCollection([new Flag('read_protected', [['Shopware\Core\Framework\Api\Context\AdminApiSource']]), new Flag('required', 1), ]), []),

0 commit comments

Comments
 (0)