-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1415 from spryker-shop/feature/cc-30854/dev-servi…
…ce-point-shipping-address Auto-merge based on green CI result.
- Loading branch information
Showing
19 changed files
with
1,619 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Spryker Suite. | ||
* For full license information, please view the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Pyz\Glue\ShipmentsRestApi; | ||
|
||
use Spryker\Glue\ShipmentsRestApi\ShipmentsRestApiConfig as SprykerShipmentsRestApiConfig; | ||
|
||
class ShipmentsRestApiConfig extends SprykerShipmentsRestApiConfig | ||
{ | ||
/** | ||
* @return bool | ||
*/ | ||
public function shouldExecuteShippingAddressValidationStrategyPlugins(): bool | ||
{ | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Pyz/Shared/ShipmentTypeServicePointsRestApi/ShipmentTypeServicePointsRestApiConfig.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Spryker Suite. | ||
* For full license information, please view the LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Pyz\Shared\ShipmentTypeServicePointsRestApi; | ||
|
||
use Spryker\Shared\ShipmentTypeServicePointsRestApi\ShipmentTypeServicePointsRestApiConfig as SprykerShipmentTypeServicePointsRestApiConfig; | ||
|
||
class ShipmentTypeServicePointsRestApiConfig extends SprykerShipmentTypeServicePointsRestApiConfig | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected const SHIPMENT_TYPE_KEY_PICKUP = 'pickup'; | ||
|
||
/** | ||
* @return list<string> | ||
*/ | ||
public function getApplicableShipmentTypeKeysForShippingAddress(): array | ||
{ | ||
return [static::SHIPMENT_TYPE_KEY_PICKUP]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/Pyz/Zed/Shipment/Persistence/Propel/Schema/spy_shipment.schema.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<database xmlns="spryker:schema-01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="zed" namespace="Orm\Zed\Shipment\Persistence" package="src.Orm.Zed.Shipment.Persistence" xsi:schemaLocation="spryker:schema-01 https://static.spryker.com/schema-01.xsd"> | ||
|
||
<table name="spy_shipment_carrier"> | ||
<behavior name="event"> | ||
<parameter name="spy_shipment_carrier_is_active" column="is_active"/> | ||
</behavior> | ||
</table> | ||
|
||
<table name="spy_shipment_method"> | ||
<behavior name="event"> | ||
<parameter name="spy_shipment_method_is_active" column="is_active"/> | ||
<parameter name="spy_shipment_method_fk_shipment_type" column="fk_shipment_type"/> | ||
<parameter name="spy_shipment_method_fk_shipment_carrier" column="fk_shipment_carrier"/> | ||
</behavior> | ||
</table> | ||
|
||
<table name="spy_shipment_method_store"> | ||
<behavior name="event"> | ||
<parameter name="spy_shipment_method_store_all" column="*"/> | ||
</behavior> | ||
</table> | ||
|
||
</database> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.