*
*
TransactionId: string
* RefundAmount: Amazon_FPS_Model_Amount
* CallerReference: string
* CallerDescription: string
* MarketplaceRefundPolicy: MarketplaceRefundPolicy
* OverrideIPNURL: string
*
*
*/
class Amazon_FPS_Model_RefundRequest extends Amazon_FPS_Model
{
/**
* Construct new Amazon_FPS_Model_RefundRequest
*
* @param mixed $data DOMElement or Associative Array to construct from.
*
* Valid properties:
*
*
* - TransactionId: string
* - RefundAmount: Amazon_FPS_Model_Amount
* - CallerReference: string
* - CallerDescription: string
* - MarketplaceRefundPolicy: MarketplaceRefundPolicy
* - OverrideIPNURL: string
*
*
*/
public function __construct($data = null)
{
$this->_fields = array (
'TransactionId' => array('FieldValue' => null, 'FieldType' => 'string'),
'RefundAmount' => array('FieldValue' => null, 'FieldType' => 'Amazon_FPS_Model_Amount'),
'CallerReference' => array('FieldValue' => null, 'FieldType' => 'string'),
'CallerDescription' => array('FieldValue' => null, 'FieldType' => 'string'),
'MarketplaceRefundPolicy' => array('FieldValue' => null, 'FieldType' => 'MarketplaceRefundPolicy'),
'OverrideIPNURL' => array('FieldValue' => null, 'FieldType' => 'string'),
);
parent::__construct($data);
}
/**
* Gets the value of the TransactionId property.
*
* @return string TransactionId
*/
public function getTransactionId()
{
return $this->_fields['TransactionId']['FieldValue'];
}
/**
* Sets the value of the TransactionId property.
*
* @param string TransactionId
* @return this instance
*/
public function setTransactionId($value)
{
$this->_fields['TransactionId']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the TransactionId and returns this instance
*
* @param string $value TransactionId
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withTransactionId($value)
{
$this->setTransactionId($value);
return $this;
}
/**
* Checks if TransactionId is set
*
* @return bool true if TransactionId is set
*/
public function isSetTransactionId()
{
return !is_null($this->_fields['TransactionId']['FieldValue']);
}
/**
* Gets the value of the RefundAmount.
*
* @return Amount RefundAmount
*/
public function getRefundAmount()
{
return $this->_fields['RefundAmount']['FieldValue'];
}
/**
* Sets the value of the RefundAmount.
*
* @param Amount RefundAmount
* @return void
*/
public function setRefundAmount($value)
{
$this->_fields['RefundAmount']['FieldValue'] = $value;
return;
}
/**
* Sets the value of the RefundAmount and returns this instance
*
* @param Amount $value RefundAmount
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withRefundAmount($value)
{
$this->setRefundAmount($value);
return $this;
}
/**
* Checks if RefundAmount is set
*
* @return bool true if RefundAmount property is set
*/
public function isSetRefundAmount()
{
return !is_null($this->_fields['RefundAmount']['FieldValue']);
}
/**
* Gets the value of the CallerReference property.
*
* @return string CallerReference
*/
public function getCallerReference()
{
return $this->_fields['CallerReference']['FieldValue'];
}
/**
* Sets the value of the CallerReference property.
*
* @param string CallerReference
* @return this instance
*/
public function setCallerReference($value)
{
$this->_fields['CallerReference']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the CallerReference and returns this instance
*
* @param string $value CallerReference
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withCallerReference($value)
{
$this->setCallerReference($value);
return $this;
}
/**
* Checks if CallerReference is set
*
* @return bool true if CallerReference is set
*/
public function isSetCallerReference()
{
return !is_null($this->_fields['CallerReference']['FieldValue']);
}
/**
* Gets the value of the CallerDescription property.
*
* @return string CallerDescription
*/
public function getCallerDescription()
{
return $this->_fields['CallerDescription']['FieldValue'];
}
/**
* Sets the value of the CallerDescription property.
*
* @param string CallerDescription
* @return this instance
*/
public function setCallerDescription($value)
{
$this->_fields['CallerDescription']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the CallerDescription and returns this instance
*
* @param string $value CallerDescription
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withCallerDescription($value)
{
$this->setCallerDescription($value);
return $this;
}
/**
* Checks if CallerDescription is set
*
* @return bool true if CallerDescription is set
*/
public function isSetCallerDescription()
{
return !is_null($this->_fields['CallerDescription']['FieldValue']);
}
/**
* Gets the value of the MarketplaceRefundPolicy property.
*
* @return MarketplaceRefundPolicy MarketplaceRefundPolicy
*/
public function getMarketplaceRefundPolicy()
{
return $this->_fields['MarketplaceRefundPolicy']['FieldValue'];
}
/**
* Sets the value of the MarketplaceRefundPolicy property.
*
* @param MarketplaceRefundPolicy MarketplaceRefundPolicy
* @return this instance
*/
public function setMarketplaceRefundPolicy($value)
{
$this->_fields['MarketplaceRefundPolicy']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the MarketplaceRefundPolicy and returns this instance
*
* @param MarketplaceRefundPolicy $value MarketplaceRefundPolicy
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withMarketplaceRefundPolicy($value)
{
$this->setMarketplaceRefundPolicy($value);
return $this;
}
/**
* Checks if MarketplaceRefundPolicy is set
*
* @return bool true if MarketplaceRefundPolicy is set
*/
public function isSetMarketplaceRefundPolicy()
{
return !is_null($this->_fields['MarketplaceRefundPolicy']['FieldValue']);
}
/**
* Gets the value of the OverrideIPNURL property.
*
* @return string OverrideIPNURL
*/
public function getOverrideIPNURL()
{
return $this->_fields['OverrideIPNURL']['FieldValue'];
}
/**
* Sets the value of the OverrideIPNURL property.
*
* @param string OverrideIPNURL
* @return this instance
*/
public function setOverrideIPNURL($value)
{
$this->_fields['OverrideIPNURL']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the OverrideIPNURL and returns this instance
*
* @param string $value OverrideIPNURL
* @return Amazon_FPS_Model_RefundRequest instance
*/
public function withOverrideIPNURL($value)
{
$this->setOverrideIPNURL($value);
return $this;
}
/**
* Checks if OverrideIPNURL is set
*
* @return bool true if OverrideIPNURL is set
*/
public function isSetOverrideIPNURL()
{
return !is_null($this->_fields['OverrideIPNURL']['FieldValue']);
}
}