Skip to content

Commit

Permalink
Module init
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin-Magmodules committed Jan 27, 2020
0 parents commit 5d82589
Show file tree
Hide file tree
Showing 84 changed files with 5,676 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/*
129 changes: 129 additions & 0 deletions Api/Data/OrderEmissionInterface.php
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);
}
31 changes: 31 additions & 0 deletions Api/Data/OrderEmissionSearchResultsInterface.php
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);
}
113 changes: 113 additions & 0 deletions Api/Data/ShippingEmissionInterface.php
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
);
}
70 changes: 70 additions & 0 deletions Api/OrderEmissionRepositoryInterface.php
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);
}
Loading

0 comments on commit 5d82589

Please sign in to comment.