-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from ombrodrigo/product-shipment
Criada consulta dos dados de envio do produto
- Loading branch information
Showing
14 changed files
with
2,841 additions
and
2 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
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,61 @@ | ||
<?php | ||
/** | ||
* Class Municipality | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Requests\Address; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class Municipality | ||
{ | ||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param string $id | ||
* @return Municipality | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* @param string $name | ||
* @return Municipality | ||
*/ | ||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
return $this; | ||
} | ||
} |
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,61 @@ | ||
<?php | ||
/** | ||
* Class Neighborhood | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Requests\Address; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class Neighborhood | ||
{ | ||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $id; | ||
|
||
/** | ||
* @var string | ||
* @JMS\Type("string") | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param string $id | ||
* @return Neighborhood | ||
*/ | ||
public function setId($id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* @param string $name | ||
* @return Neighborhood | ||
*/ | ||
public function setName($name) | ||
{ | ||
$this->name = $name; | ||
return $this; | ||
} | ||
} |
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,133 @@ | ||
<?php | ||
/** | ||
* Class CostComponents | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Resources\Shipment; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class CostComponents | ||
{ | ||
/** | ||
* @var double | ||
* @JMS\Type("double") | ||
*/ | ||
private $specialDiscount; | ||
|
||
/** | ||
* @var double | ||
* @JMS\Type("double") | ||
*/ | ||
private $loyalDiscount; | ||
|
||
/** | ||
* @var integer | ||
* @JMS\Type("integer") | ||
*/ | ||
private $compensation; | ||
|
||
/** | ||
* @var double | ||
* @JMS\Type("double") | ||
*/ | ||
private $gapDiscount; | ||
|
||
/** | ||
* @var double | ||
* @JMS\Type("double") | ||
*/ | ||
private $ratio; | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getSpecialDiscount() | ||
{ | ||
return $this->specialDiscount; | ||
} | ||
|
||
/** | ||
* @param float $specialDiscount | ||
* @return CostComponents | ||
*/ | ||
public function setSpecialDiscount($specialDiscount) | ||
{ | ||
$this->specialDiscount = $specialDiscount; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getLoyalDiscount() | ||
{ | ||
return $this->loyalDiscount; | ||
} | ||
|
||
/** | ||
* @param float $loyalDiscount | ||
* @return CostComponents | ||
*/ | ||
public function setLoyalDiscount($loyalDiscount) | ||
{ | ||
$this->loyalDiscount = $loyalDiscount; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getCompensation() | ||
{ | ||
return $this->compensation; | ||
} | ||
|
||
/** | ||
* @param int $compensation | ||
* @return CostComponents | ||
*/ | ||
public function setCompensation($compensation) | ||
{ | ||
$this->compensation = $compensation; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getGapDiscount() | ||
{ | ||
return $this->gapDiscount; | ||
} | ||
|
||
/** | ||
* @param float $gapDiscount | ||
* @return CostComponents | ||
*/ | ||
public function setGapDiscount($gapDiscount) | ||
{ | ||
$this->gapDiscount = $gapDiscount; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getRatio() | ||
{ | ||
return $this->ratio; | ||
} | ||
|
||
/** | ||
* @param float $ratio | ||
* @return CostComponents | ||
*/ | ||
public function setRatio($ratio) | ||
{ | ||
$this->ratio = $ratio; | ||
return $this; | ||
} | ||
} |
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,61 @@ | ||
<?php | ||
/** | ||
* Class EstimatedDelivery | ||
* | ||
* @author Diego Wagner <[email protected]> | ||
* http://www.discoverytecnologia.com.br | ||
*/ | ||
namespace Dsc\MercadoLivre\Resources\Shipment\Option; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class EstimatedDelivery | ||
{ | ||
/** | ||
* @var \DateTime | ||
* @JMS\Type("DateTime<'Y-m-d\TH:i:s.u-03:00'>") | ||
*/ | ||
private $date; | ||
|
||
/** | ||
* @var integer | ||
* @JMS\Type("integer") | ||
*/ | ||
private $offset; | ||
|
||
/** | ||
* @return \DateTime | ||
*/ | ||
public function getDate() | ||
{ | ||
return $this->date; | ||
} | ||
|
||
/** | ||
* @param \DateTime $date | ||
* @return EstimatedDelivery | ||
*/ | ||
public function setDate($date) | ||
{ | ||
$this->date = $date; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getOffset() | ||
{ | ||
return $this->offset; | ||
} | ||
|
||
/** | ||
* @param int $offset | ||
* @return EstimatedDelivery | ||
*/ | ||
public function setOffset($offset) | ||
{ | ||
$this->offset = $offset; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.