mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-01-31 10:18:41 +00:00
inspection fixes
This commit is contained in:
parent
1b40eee561
commit
2da0ce891a
|
|
@ -24,80 +24,229 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
|
|||
*/
|
||||
final class GSDAddress
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Name1.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $name1 = '';
|
||||
|
||||
/**
|
||||
* Name2.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $name2 = '';
|
||||
|
||||
/**
|
||||
* Name3.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $name3 = '';
|
||||
|
||||
/**
|
||||
* City.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $city = '';
|
||||
|
||||
/**
|
||||
* Country.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $country = '';
|
||||
|
||||
/**
|
||||
* Postal code.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $zip = '';
|
||||
|
||||
/**
|
||||
* street.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $street = '';
|
||||
|
||||
/**
|
||||
* Phone.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $phone = '';
|
||||
|
||||
/**
|
||||
* FAX.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $fax = '';
|
||||
|
||||
/**
|
||||
* Email.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $email = '';
|
||||
|
||||
/**
|
||||
* Website.
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $website = '';
|
||||
|
||||
/**
|
||||
* Get name1
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName1() : string
|
||||
{
|
||||
return $this->name1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name1
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName2() : string
|
||||
{
|
||||
return $this->name2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name3
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName3() : string
|
||||
{
|
||||
return $this->name3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get city
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCity() : string
|
||||
{
|
||||
return $this->city;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get postal/sip
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getZip() : string
|
||||
{
|
||||
return $this->zip;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get street
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStreet() : string
|
||||
{
|
||||
return $this->street;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get country
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCountry() : string
|
||||
{
|
||||
return $this->country;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get phone
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getPhone() : string
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get email
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getEmail() : string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fax
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getFax() : string
|
||||
{
|
||||
return $this->fax;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get website
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getWebsite() : string
|
||||
{
|
||||
return $this->website;
|
||||
|
|
|
|||
|
|
@ -24,87 +24,247 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
|
|||
*/
|
||||
final class GSDArticle
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Create at.
|
||||
*
|
||||
* @var \DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private \DateTime $createdAt;
|
||||
|
||||
/**
|
||||
* Article number.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $number = '';
|
||||
|
||||
/**
|
||||
* Article information
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $info = '';
|
||||
|
||||
/**
|
||||
* Name1.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name1 = '';
|
||||
|
||||
/**
|
||||
* Name2
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name2 = '';
|
||||
|
||||
/**
|
||||
* English name1.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name1Eng = '';
|
||||
|
||||
/**
|
||||
* English name2
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $name2Eng = '';
|
||||
|
||||
/**
|
||||
* Activity status
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $status = 0;
|
||||
|
||||
/**
|
||||
* Lot type (can also be none)
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $lotType = 0;
|
||||
|
||||
/**
|
||||
* Weight
|
||||
*
|
||||
* @var float
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private float $weight = 0.0;
|
||||
|
||||
/**
|
||||
* Lead time in days
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $leadTime = 0;
|
||||
|
||||
/**
|
||||
* EU item group
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $EUitemgroup = '';
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get article number
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getNumber() : string
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get article information text
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInfo() : string
|
||||
{
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name1
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName1() : string
|
||||
{
|
||||
return $this->name1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name2
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName2() : string
|
||||
{
|
||||
return $this->name2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get englisch name1
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName1Eng() : string
|
||||
{
|
||||
return $this->name1Eng;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get englisch name2
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName2Eng() : string
|
||||
{
|
||||
return $this->name2Eng;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get status
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getStatus() : int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lot type
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getLotType() : int
|
||||
{
|
||||
return $this->lotType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get weight
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getWeight() : float
|
||||
{
|
||||
return $this->weight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get lead time (in days)
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getLeadTime() : int
|
||||
{
|
||||
return $this->leadTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get EU item group
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getEUItemGroup() : string
|
||||
{
|
||||
return $this->EUitemgroup;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
|
|||
*/
|
||||
final class GSDCustomer
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
|
||||
/**
|
||||
|
|
@ -42,77 +48,214 @@ final class GSDCustomer
|
|||
*/
|
||||
protected \DateTime $createdAt;
|
||||
|
||||
/**
|
||||
* Customer number
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $number = '';
|
||||
|
||||
/**
|
||||
* Info text
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $info = '';
|
||||
|
||||
/**
|
||||
* Credit limit
|
||||
*
|
||||
* @var float
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private float $creditlimit = 0.0;
|
||||
|
||||
/**
|
||||
* EGUStId
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $egustid = '';
|
||||
|
||||
/**
|
||||
* VAT id
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $taxid = '';
|
||||
|
||||
/**
|
||||
* BICC
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $bic = '';
|
||||
|
||||
/**
|
||||
* IBAN
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $iban = '';
|
||||
|
||||
/**
|
||||
* Address
|
||||
*
|
||||
* @var GSDAddress
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private GSDAddress $addr;
|
||||
|
||||
/**
|
||||
* Delivery status.
|
||||
*
|
||||
* Can invoices get created
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $deliveryStatus = 0;
|
||||
|
||||
/**
|
||||
* Sales rep id
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $salesRep = 0;
|
||||
|
||||
/**
|
||||
* Construct.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->addr = new GSDAddress();
|
||||
$this->addr = new GSDAddress();
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get customer number
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getNumber() : string
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get customer information text
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInfo() : string
|
||||
{
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get credit limit
|
||||
*
|
||||
* @return float
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreditLimit() : float
|
||||
{
|
||||
return $this->creditlimit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get EGUStId
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getEGUstId() : string
|
||||
{
|
||||
return $this->egustid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get VAT Id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getTaxId() : string
|
||||
{
|
||||
return $this->taxid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get BIC
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getBIC() : string
|
||||
{
|
||||
return $this->bic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get IBAN
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getIban() : string
|
||||
{
|
||||
return $this->iban;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get main address
|
||||
*
|
||||
* @return GSDAddress
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAddress() : GSDAddress
|
||||
{
|
||||
return $this->addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deivery status
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDeliveryStatus() : int
|
||||
{
|
||||
return $this->deliveryStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get saes rep
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getSalesRep() : int
|
||||
{
|
||||
return $this->salesRep;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
|
|||
*/
|
||||
final class GSDSupplier
|
||||
{
|
||||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
|
||||
/**
|
||||
|
|
@ -42,56 +48,154 @@ final class GSDSupplier
|
|||
*/
|
||||
protected \DateTime $createdAt;
|
||||
|
||||
/**
|
||||
* Customer number
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $number = '';
|
||||
|
||||
/**
|
||||
* Info text
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $info = '';
|
||||
|
||||
/**
|
||||
* VAT id
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $taxid = '';
|
||||
|
||||
/**
|
||||
* BICC
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $bic = '';
|
||||
|
||||
/**
|
||||
* IBAN
|
||||
*
|
||||
* @var string
|
||||
* @sicne 1.0.0
|
||||
*/
|
||||
private string $iban = '';
|
||||
|
||||
/**
|
||||
* Address
|
||||
*
|
||||
* @var GSDAddress
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private GSDAddress $addr;
|
||||
|
||||
/**
|
||||
* Delivery status.
|
||||
*
|
||||
* Can invoices get created
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $deliveryStatus = 0;
|
||||
|
||||
/**
|
||||
* Construct.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->addr = new GSDAddress();
|
||||
$this->addr = new GSDAddress();
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get supplier number
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getNumber() : string
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information text
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInfo() : string
|
||||
{
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get VAT Id
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getTaxId() : string
|
||||
{
|
||||
return $this->taxid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get BIC
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getBIC() : string
|
||||
{
|
||||
return $this->bic;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get IBAN
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getIban() : string
|
||||
{
|
||||
return $this->iban;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get main address
|
||||
*
|
||||
* @return GSDAddress
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getAddress() : GSDAddress
|
||||
{
|
||||
return $this->addr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deivery status
|
||||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDeliveryStatus() : int
|
||||
{
|
||||
return $this->deliveryStatus;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user