init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface AddressInterface extends \Magento\Customer\Api\Data\AddressInterface
|
||||
{
|
||||
const CITY_CODE = 'city_code';
|
||||
|
||||
const DISTRICT = 'district';
|
||||
|
||||
const DISTRICT_CODE = 'district_code';
|
||||
|
||||
const TOWN = 'town';
|
||||
|
||||
const TOWN_CODE = 'town_code';
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface AvatrInterface
|
||||
{
|
||||
|
||||
const PROVINCE_ID = 'province_id';
|
||||
const IS_SENT = 'is_sent';
|
||||
const TELEPHONE = 'telephone';
|
||||
const NAME = 'name';
|
||||
const FAVORITE_VEHICLE = 'favorite_vehicle';
|
||||
const CITY_ID = 'city_id';
|
||||
|
||||
const RESPONSE = 'response';
|
||||
|
||||
const CREATED_AT = 'created_at';
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set name
|
||||
* @param string $name
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get telephone
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTelephone();
|
||||
|
||||
/**
|
||||
* Set telephone
|
||||
* @param string $telephone
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setTelephone($telephone);
|
||||
|
||||
/**
|
||||
* Get favorite_vehicle
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFavoriteVehicle();
|
||||
|
||||
/**
|
||||
* Set favorite_vehicle
|
||||
* @param string $favoriteVehicle
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setFavoriteVehicle($favoriteVehicle);
|
||||
|
||||
/**
|
||||
* Get province_id
|
||||
* @return string|null
|
||||
*/
|
||||
public function getProvinceId();
|
||||
|
||||
/**
|
||||
* Set province_id
|
||||
* @param string $provinceId
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setProvinceId($provinceId);
|
||||
|
||||
/**
|
||||
* Get city_id
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCityId();
|
||||
|
||||
/**
|
||||
* Set city_id
|
||||
* @param string $cityId
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setCityId($cityId);
|
||||
|
||||
/**
|
||||
* Get is_sent
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIsSent();
|
||||
|
||||
/**
|
||||
* Set is_sent
|
||||
* @param string $isSent
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setIsSent($isSent);
|
||||
|
||||
/**
|
||||
* @param string $isSent
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCreatedAt();
|
||||
|
||||
/**
|
||||
* Get is_sent
|
||||
* @return string|null
|
||||
*/
|
||||
public function getResponse();
|
||||
|
||||
/**
|
||||
* Set is_sent
|
||||
* @param string $response
|
||||
* @return \Stemcell\Customer\Avatr\Api\Data\AvatrInterface
|
||||
*/
|
||||
public function setResponse(string $response);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface AvatrSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Get Avatr list.
|
||||
* @return \Stemcell\Customer\Api\Data\AvatrInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* Set id list.
|
||||
* @param \Stemcell\Customer\Api\Data\AvatrInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(array $items);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace Stemcell\Customer\Api\Data\Http;
|
||||
|
||||
interface JsonResponse {
|
||||
|
||||
public function setErrors(bool $status) : self;
|
||||
|
||||
public function getErrors() : bool;
|
||||
|
||||
public function setMessages(array $status) : self;
|
||||
|
||||
public function getMessages() : array;
|
||||
|
||||
public function setData(array $data) : self;
|
||||
|
||||
public function toArray(array $keys = []) : array;
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface LabInterface
|
||||
{
|
||||
const LAB_ID = 'lab_id';
|
||||
const IS_ACTIVE = 'is_active';
|
||||
const BOOKING_ACCOUNT = 'booking_account';
|
||||
const PI_SAP_ID = 'pi_sap_id';
|
||||
const VENDOR_NAME = 'customer_id';
|
||||
const LAB_CODE = 'lab_code';
|
||||
|
||||
const SALESPERSON_ID = 'salesperson_id';
|
||||
|
||||
|
||||
/**
|
||||
* Get lab_code
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLabId();
|
||||
|
||||
/**
|
||||
* Set lab_code
|
||||
* @param int $labId
|
||||
* @return self
|
||||
*/
|
||||
public function setLabId(int $labId);
|
||||
/**
|
||||
* Get lab_code
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLabCode();
|
||||
|
||||
/**
|
||||
* Set lab_code
|
||||
* @param string $labCode
|
||||
* @return self
|
||||
*/
|
||||
public function setLabCode($labCode);
|
||||
|
||||
/**
|
||||
* Get booking_account
|
||||
* @return string|null
|
||||
*/
|
||||
public function getBookingAccount();
|
||||
|
||||
/**
|
||||
* Set booking_account
|
||||
* @param string $bookingAccount
|
||||
* @return self
|
||||
*/
|
||||
public function setBookingAccount($bookingAccount);
|
||||
|
||||
/**
|
||||
* Get pi_sap_id
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPiSapId();
|
||||
|
||||
/**
|
||||
* Set pi_sap_id
|
||||
* @param string $piSapId
|
||||
* @return self
|
||||
*/
|
||||
public function setPiSapId($piSapId);
|
||||
|
||||
/**
|
||||
* Get vendor_name
|
||||
* @return int|null
|
||||
*/
|
||||
public function getVendorName();
|
||||
|
||||
/**
|
||||
* Set vendor_name
|
||||
* @param int $vendorName
|
||||
* @return self
|
||||
*/
|
||||
public function setVendorName($vendorName);
|
||||
|
||||
/**
|
||||
* Get is_active
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIsActive();
|
||||
|
||||
/**
|
||||
* Set is_active
|
||||
* @param string $isActive
|
||||
* @return self
|
||||
*/
|
||||
public function setIsActive($isActive);
|
||||
|
||||
/**
|
||||
* @param int $salespersonId
|
||||
* @return self
|
||||
*/
|
||||
public function setSalespersonId(int $salespersonId): LabInterface;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSalespersonId();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface LabSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Get Lab list.
|
||||
* @return \Stemcell\Customer\Api\Data\LabInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* Set lab_id list.
|
||||
* @param \Stemcell\Customer\Api\Data\LabInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(array $items);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface SalespersonInterface
|
||||
{
|
||||
const SALESPERSON_ID = 'salesperson_id';
|
||||
const IS_ACTIVE = 'is_active';
|
||||
const TELEPHONE = 'telephone';
|
||||
const NAME = 'name';
|
||||
const EMAIL = 'email';
|
||||
const CSR_EMAIL = 'csr_email';
|
||||
const SISR_EMAIL = 'sisr_email';
|
||||
const RSM_EMAIL = 'rsm_email';
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return int|null
|
||||
*/
|
||||
public function getSalespersonId();
|
||||
|
||||
/**
|
||||
* Set name
|
||||
* @param int $salespersonId
|
||||
* @return self
|
||||
*/
|
||||
public function setSalespersonId($salespersonId);
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName();
|
||||
|
||||
/**
|
||||
* Set name
|
||||
* @param string $name
|
||||
* @return self
|
||||
*/
|
||||
public function setName($name);
|
||||
|
||||
/**
|
||||
* Get email
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEmail();
|
||||
|
||||
/**
|
||||
* Set email
|
||||
* @param string $email
|
||||
* @return self
|
||||
*/
|
||||
public function setEmail($email);
|
||||
|
||||
/**
|
||||
* Get telephone
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTelephone();
|
||||
|
||||
/**
|
||||
* Set telephone
|
||||
* @param string $telephone
|
||||
* @return self
|
||||
*/
|
||||
public function setTelephone($telephone);
|
||||
|
||||
/**
|
||||
* Get rsm_email
|
||||
* @return string|null
|
||||
*/
|
||||
public function getRsmEmail();
|
||||
|
||||
/**
|
||||
* Set rsm_email
|
||||
* @param string $rsmEmail
|
||||
* @return self
|
||||
*/
|
||||
public function setRsmEmail($rsmEmail);
|
||||
|
||||
/**
|
||||
* Get sisr_email
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSisrEmail();
|
||||
|
||||
/**
|
||||
* Set sisr_email
|
||||
* @param string $sisrEmail
|
||||
* @return self
|
||||
*/
|
||||
public function setSisrEmail($sisrEmail);
|
||||
|
||||
/**
|
||||
* Get csr_email
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCsrEmail();
|
||||
|
||||
/**
|
||||
* Set csr_email
|
||||
* @param string $csrEmail
|
||||
* @return self
|
||||
*/
|
||||
public function setCsrEmail($csrEmail);
|
||||
|
||||
/**
|
||||
* Get is_active
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIsActive();
|
||||
|
||||
/**
|
||||
* Set is_active
|
||||
* @param string $isActive
|
||||
* @return self
|
||||
*/
|
||||
public function setIsActive($isActive);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Stemcell\Customer\Api\Data;
|
||||
|
||||
interface SalespersonSearchResultsInterface extends \Magento\Framework\Api\SearchResultsInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Get Salesperson list.
|
||||
* @return \Stemcell\Customer\Api\Data\SalespersonInterface[]
|
||||
*/
|
||||
public function getItems();
|
||||
|
||||
/**
|
||||
* Set salesperson_id list.
|
||||
* @param \Stemcell\Customer\Api\Data\SalespersonInterface[] $items
|
||||
* @return $this
|
||||
*/
|
||||
public function setItems(array $items);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user