src/Entity/RateRequest.php
<?php
namespace Ups\Entity;
class RateRequest
{
/** @deprecated */
public $PickupType;
/** @deprecated */
public $Shipment;
/**
* @var PickupType
*/
private $pickupType;
/**
* @var CustomerClassification
*/
private $customerClassification;
/**
* @var Shipment
*/
private $shipment;
public function __construct()
{
$this->setShipment(new Shipment());
$this->setPickupType(new PickupType());
}
/**
* @return PickupType
*/
public function getPickupType()
{
return $this->pickupType;
}
/**
* @param PickupType $pickupType
*
* @return $this
*/
public function setPickupType(PickupType $pickupType)
{
$this->PickupType = $pickupType;
$this->pickupType = $pickupType;
return $this;
}
/**
* @return CustomerClassification
*/
public function getCustomerClassification()
{
return $this->customerClassification;
}
/**
* @param CustomerClassification $customerClassification
*
* @return $this
*/
public function setCustomerClassification(CustomerClassification $customerClassification)
{
$this->customerClassification = $customerClassification;
return $this;
}
/**
* @return Shipment
*/
public function getShipment()
{
return $this->shipment;
}
/**
* @param Shipment $shipment
*
* @return $this
*/
public function setShipment(Shipment $shipment)
{
$this->Shipment = $shipment;
$this->shipment = $shipment;
return $this;
}
}