-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5d82589
Showing
84 changed files
with
5,676 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/* |
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,129 @@ | ||
<?php | ||
/** | ||
* Copyright © Thuiswinkel.org. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Thuiswinkel\BewustBezorgd\Api\Data; | ||
|
||
use Magento\Framework\Api\ExtensibleDataInterface; | ||
|
||
/** | ||
* Order Emission Interface | ||
*/ | ||
interface OrderEmissionInterface extends ExtensibleDataInterface | ||
{ | ||
|
||
const ORDER_EMISSION_ID = 'order_emission_id'; | ||
const SERVICE_TYPE = 'service_type'; | ||
const ORDER_ID = 'order_id'; | ||
const METERS_DIESEL = 'meters_diesel'; | ||
const METERS_GASOLINE = 'meters_gasoline'; | ||
const EMISSION = 'emission'; | ||
|
||
/** | ||
* Get Order Emission ID | ||
* | ||
* @return string|null | ||
*/ | ||
public function getOrderEmissionId(); | ||
|
||
/** | ||
* Set Order Emission ID | ||
* | ||
* @param string $orderEmissionId | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setOrderEmissionId($orderEmissionId); | ||
|
||
/** | ||
* Get Order ID | ||
* | ||
* @return string|null | ||
*/ | ||
public function getOrderId(); | ||
|
||
/** | ||
* Set Order ID | ||
* | ||
* @param string $orderId | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setOrderId($orderId); | ||
|
||
/** | ||
* Retrieves existing extension attributes object or create a new one. | ||
* | ||
* @return \Thuiswinkel\BewustBezorgd\Api\Data\OrderEmissionExtensionInterface|null | ||
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* | ||
* @param \Thuiswinkel\BewustBezorgd\Api\Data\OrderEmissionExtensionInterface $extensionAttributes | ||
* @return $this | ||
*/ | ||
public function setExtensionAttributes( | ||
\Thuiswinkel\BewustBezorgd\Api\Data\OrderEmissionExtensionInterface $extensionAttributes | ||
); | ||
|
||
/** | ||
* Get service_type | ||
* @return string|null | ||
*/ | ||
public function getServiceType(); | ||
|
||
/** | ||
* Set Service Type | ||
* | ||
* @param string $serviceType | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setServiceType($serviceType); | ||
|
||
/** | ||
* Get Emission | ||
* | ||
* @return string|null | ||
*/ | ||
public function getEmission(); | ||
|
||
/** | ||
* Set Emission | ||
* | ||
* @param string $emission | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setEmission($emission); | ||
|
||
/** | ||
* Get Meters Diesel | ||
* | ||
* @return string|null | ||
*/ | ||
public function getMetersDiesel(); | ||
|
||
/** | ||
* Set Meters Diesel | ||
* | ||
* @param string $metersDiesel | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setMetersDiesel($metersDiesel); | ||
|
||
/** | ||
* Get Meters Gasoline | ||
* | ||
* @return string|null | ||
*/ | ||
public function getMetersGasoline(); | ||
|
||
/** | ||
* Set Meters Gasoline | ||
* | ||
* @param string $metersGasoline | ||
* @return OrderEmissionInterface | ||
*/ | ||
public function setMetersGasoline($metersGasoline); | ||
} |
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,31 @@ | ||
<?php | ||
/** | ||
* Copyright © Thuiswinkel.org. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Thuiswinkel\BewustBezorgd\Api\Data; | ||
|
||
use Magento\Framework\Api\SearchResultsInterface; | ||
|
||
/** | ||
* Order Emission SearchResults Interface | ||
*/ | ||
interface OrderEmissionSearchResultsInterface extends SearchResultsInterface | ||
{ | ||
|
||
/** | ||
* Get Order Emission list. | ||
* | ||
* @return OrderEmissionInterface[] | ||
*/ | ||
public function getItems(); | ||
|
||
/** | ||
* Set Order Emission list. | ||
* | ||
* @param OrderEmissionInterface[] $items | ||
* @return $this | ||
*/ | ||
public function setItems(array $items); | ||
} |
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,113 @@ | ||
<?php | ||
/** | ||
* Copyright © Thuiswinkel.org. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Thuiswinkel\BewustBezorgd\Api\Data; | ||
|
||
use Magento\Framework\Api\ExtensibleDataInterface; | ||
|
||
/** | ||
* Order Emission Interface | ||
*/ | ||
interface ShippingEmissionInterface extends ExtensibleDataInterface | ||
{ | ||
const EMISSION = 'emission'; | ||
const METERS_DIESEL = 'meters_diesel'; | ||
const METERS_GASOLINE = 'meters_gasoline'; | ||
const MOST_EFFICIENT = 'most_efficient'; | ||
const EMISSION_LOGO = 'emission_logo'; | ||
|
||
/** | ||
* Get Emission | ||
* | ||
* @return int|float|null | ||
*/ | ||
public function getEmission(); | ||
|
||
/** | ||
* Set Emission | ||
* | ||
* @param int|float $emission | ||
* @return self | ||
*/ | ||
public function setEmission($emission); | ||
|
||
/** | ||
* Get Meters Diesel | ||
* | ||
* @return int|float|null | ||
*/ | ||
public function getMetersDiesel(); | ||
|
||
/** | ||
* Set Meters Diesel | ||
* | ||
* @param int|float $metersDiesel | ||
* @return self | ||
*/ | ||
public function setMetersDiesel($metersDiesel); | ||
|
||
/** | ||
* Get Meters Gasoline | ||
* | ||
* @return int|float|null | ||
*/ | ||
public function getMetersGasoline(); | ||
|
||
/** | ||
* Set Meters Gasoline | ||
* | ||
* @param int|float $metersGasoline | ||
* @return self | ||
*/ | ||
public function setMetersGasoline($metersGasoline); | ||
|
||
/** | ||
* Get Most Efficient | ||
* | ||
* @return int|null | ||
*/ | ||
public function getMostEfficient(); | ||
|
||
/** | ||
* Set Most Efficient | ||
* | ||
* @param int $mostEfficient | ||
* @return self | ||
*/ | ||
public function setMostEfficient($mostEfficient); | ||
|
||
/** | ||
* Get emission logo image | ||
* | ||
* @return string|null | ||
*/ | ||
public function getEmissionLogo(); | ||
|
||
/** | ||
* Set emission logo image | ||
* | ||
* @param string $emissionLogo | ||
* @return self | ||
*/ | ||
public function setEmissionLogo($emissionLogo); | ||
|
||
/** | ||
* Retrieves existing extension attributes object or create a new one. | ||
* | ||
* @return \Thuiswinkel\BewustBezorgd\Api\Data\ShippingEmissionExtensionInterface|null | ||
*/ | ||
public function getExtensionAttributes(); | ||
|
||
/** | ||
* Set an extension attributes object. | ||
* | ||
* @param \Thuiswinkel\BewustBezorgd\Api\Data\OrderEmissionExtensionInterface $extensionAttributes | ||
* @return $this | ||
*/ | ||
public function setExtensionAttributes( | ||
\Thuiswinkel\BewustBezorgd\Api\Data\ShippingEmissionExtensionInterface $extensionAttributes | ||
); | ||
} |
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,70 @@ | ||
<?php | ||
/** | ||
* Copyright © Thuiswinkel.org. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Thuiswinkel\BewustBezorgd\Api; | ||
|
||
use Magento\Framework\Api\SearchCriteriaInterface; | ||
use Magento\Framework\Exception\LocalizedException; | ||
use Magento\Framework\Exception\NoSuchEntityException; | ||
|
||
/** | ||
* Order Emission Repository Interface | ||
*/ | ||
interface OrderEmissionRepositoryInterface | ||
{ | ||
|
||
/** | ||
* Save Order Emission | ||
* | ||
* @param Data\OrderEmissionInterface $orderEmission | ||
* @return Data\OrderEmissionInterface | ||
* @throws LocalizedException | ||
*/ | ||
public function save( | ||
Data\OrderEmissionInterface $orderEmission | ||
); | ||
|
||
/** | ||
* Retrieves Order Emission by ID | ||
* | ||
* @param string $orderEmissionId | ||
* @return Data\OrderEmissionInterface | ||
* @throws LocalizedException | ||
*/ | ||
public function getById($orderEmissionId); | ||
|
||
/** | ||
* Retrieves Order Emission matching the specified criteria. | ||
* | ||
* @param SearchCriteriaInterface $searchCriteria | ||
* @return Data\OrderEmissionSearchResultsInterface | ||
* @throws LocalizedException | ||
*/ | ||
public function getList( | ||
SearchCriteriaInterface $searchCriteria | ||
); | ||
|
||
/** | ||
* Delete Order Emission | ||
* | ||
* @param Data\OrderEmissionInterface $orderEmission | ||
* @return bool true on success | ||
* @throws LocalizedException | ||
*/ | ||
public function delete( | ||
Data\OrderEmissionInterface $orderEmission | ||
); | ||
|
||
/** | ||
* Delete Order Emission by ID | ||
* | ||
* @param string $orderEmissionId | ||
* @return bool true on success | ||
* @throws NoSuchEntityException | ||
* @throws LocalizedException | ||
*/ | ||
public function deleteById($orderEmissionId); | ||
} |
Oops, something went wrong.