Skip to content

Commit

Permalink
Merge branch 'v2.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Oct 28, 2017
2 parents b6e8bf9 + 81bb1cd commit 9c95795
Show file tree
Hide file tree
Showing 84 changed files with 4,586 additions and 510 deletions.
66 changes: 66 additions & 0 deletions Api/CountryRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php
/**
* MageSpecialist
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magespecialist.it so we can send you a copy immediately.
*
* @category MSP
* @package MSP_TwoFactorAuth
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Automatically created by MageSpecialist CodeMonkey
* https://github.com/magespecialist/m2-MSP_CodeMonkey
*/

namespace MSP\TwoFactorAuth\Api;

/**
* @SuppressWarnings(PHPMD.ShortVariable)
*/
interface CountryRepositoryInterface
{
/**
* Save object
* @param \MSP\TwoFactorAuth\Api\Data\CountryInterface $object
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function save(\MSP\TwoFactorAuth\Api\Data\CountryInterface $object);

/**
* Get object by id
* @param int $id
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function getById($id);

/**
* Get by Code value
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function getByCode($value);

/**
* Delete object
* @param \MSP\TwoFactorAuth\Api\Data\CountryInterface $object
* @return boolean
*/
public function delete(\MSP\TwoFactorAuth\Api\Data\CountryInterface $object);

/**
* Get a list of object
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return \MSP\TwoFactorAuth\Api\Data\CountrySearchResultsInterface
*/
public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
}
102 changes: 102 additions & 0 deletions Api/Data/CountryInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?php
/**
* MageSpecialist
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magespecialist.it so we can send you a copy immediately.
*
* @category MSP
* @package MSP_TwoFactorAuth
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Automatically created by MageSpecialist CodeMonkey
* https://github.com/magespecialist/m2-MSP_CodeMonkey
*/

namespace MSP\TwoFactorAuth\Api\Data;

use Magento\Framework\Api\ExtensibleDataInterface;

interface CountryInterface extends ExtensibleDataInterface
{
const ID = 'msp_tfa_country_codes_id';
const CODE = 'code';
const NAME = 'name';
const DIAL_CODE = 'dial_code';

/**
* Get value for msp_tfa_country_codes_id
* @return int
*/
public function getId();

/**
* Set value for msp_tfa_country_codes_id
* @param int $value
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function setId($value);

/**
* Get value for code
* @return string
*/
public function getCode();

/**
* Set value for code
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function setCode($value);

/**
* Get value for name
* @return string
*/
public function getName();

/**
* Set value for name
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function setName($value);

/**
* Get value for dial_code
* @return string
*/
public function getDialCode();

/**
* Set value for dial_code
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface
*/
public function setDialCode($value);

/**
* Retrieve existing extension attributes object or create a new one
* @return \MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface|null
*/
public function getExtensionAttributes();

/**
* Set an extension attributes object
* @param \MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(
\MSP\TwoFactorAuth\Api\Data\CountryExtensionInterface $extensionAttributes
);
}
41 changes: 41 additions & 0 deletions Api/Data/CountrySearchResultsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* MageSpecialist
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magespecialist.it so we can send you a copy immediately.
*
* @category MSP
* @package MSP_TwoFactorAuth
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Automatically created by MageSpecialist CodeMonkey
* https://github.com/magespecialist/m2-MSP_CodeMonkey
*/

namespace MSP\TwoFactorAuth\Api\Data;

interface CountrySearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
{
/**
* Get an array of objects
* @return \MSP\TwoFactorAuth\Api\Data\CountryInterface[]
*/
public function getItems();

/**
* Set objects list
* @param \MSP\TwoFactorAuth\Api\Data\CountryInterface[] $items
* @return $this
*/
public function setItems(array $items);
}
131 changes: 131 additions & 0 deletions Api/Data/TrustedInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<?php
/**
* MageSpecialist
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magespecialist.it so we can send you a copy immediately.
*
* @category MSP
* @package MSP_TwoFactorAuth
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Automatically created by MageSpecialist CodeMonkey
* https://github.com/magespecialist/m2-MSP_CodeMonkey
*/

namespace MSP\TwoFactorAuth\Api\Data;

use Magento\Framework\Api\ExtensibleDataInterface;

interface TrustedInterface extends ExtensibleDataInterface
{
const ID = 'msp_tfa_trusted_id';
const DATE_TIME = 'date_time';
const USER_ID = 'user_id';
const DEVICE_NAME = 'device_name';
const TOKEN = 'token';
const LAST_IP = 'last_ip';
const USER_AGENT = 'user_agent';

/**
* Get value for msp_tfa_trusted_id
* @return int
*/
public function getId();

/**
* Set value for msp_tfa_trusted_id
* @param int $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setId($value);

/**
* Get value for date_time
* @return string
*/
public function getDateTime();

/**
* Set value for date_time
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setDateTime($value);

/**
* Get value for user_id
* @return int
*/
public function getUserId();

/**
* Set value for user_id
* @param int $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setUserId($value);

/**
* Get value for device_name
* @return string
*/
public function getDeviceName();

/**
* Set value for device_name
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setDeviceName($value);

/**
* Get value for last_ip
* @return string
*/
public function getLastIp();

/**
* Set value for last_ip
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setLastIp($value);

/**
* Get value for user_agent
* @return string
*/
public function getUserAgent();

/**
* Set value for user_agent
* @param string $value
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface
*/
public function setUserAgent($value);

/**
* Retrieve existing extension attributes object or create a new one
* @return \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface|null
*/
public function getExtensionAttributes();

/**
* Set an extension attributes object
* @param \MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(
\MSP\TwoFactorAuth\Api\Data\TrustedExtensionInterface $extensionAttributes
);
}
41 changes: 41 additions & 0 deletions Api/Data/TrustedSearchResultsInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* MageSpecialist
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to info@magespecialist.it so we can send you a copy immediately.
*
* @category MSP
* @package MSP_TwoFactorAuth
* @copyright Copyright (c) 2017 Skeeller srl (http://www.magespecialist.it)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
/**
* Automatically created by MageSpecialist CodeMonkey
* https://github.com/magespecialist/m2-MSP_CodeMonkey
*/

namespace MSP\TwoFactorAuth\Api\Data;

interface TrustedSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
{
/**
* Get an array of objects
* @return \MSP\TwoFactorAuth\Api\Data\TrustedInterface[]
*/
public function getItems();

/**
* Set objects list
* @param \MSP\TwoFactorAuth\Api\Data\TrustedInterface[] $items
* @return $this
*/
public function setItems(array $items);
}
Loading

0 comments on commit 9c95795

Please sign in to comment.