* *
  • GetRefundDetailsResult: OffAmazonPaymentsService_Model_GetRefundDetailsResult
  • *
  • ResponseMetadata: OffAmazonPaymentsService_Model_ResponseMetadata
  • * * */ class OffAmazonPaymentsService_Model_GetRefundDetailsResponse extends OffAmazonPaymentsService_Model { /** * Construct new OffAmazonPaymentsService_Model_GetRefundDetailsResponse * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->_fields = array( 'GetRefundDetailsResult' => array( 'FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_GetRefundDetailsResult' ), 'ResponseMetadata' => array( 'FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_ResponseMetadata' ) ); parent::__construct($data); } /** * Construct OffAmazonPaymentsService_Model_GetRefundDetailsResponse from XML string * * @param string $xml XML string to construct from * @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse */ public static function fromXML($xml) { $dom = new DOMDocument(); $dom->loadXML($xml); $xpath = new DOMXPath($dom); $xpath->registerNamespace('a', 'http://mws.amazonservices.com/schema/OffAmazonPayments/2013-01-01'); $response = $xpath->query('//a:GetRefundDetailsResponse'); if ($response->length == 1) { return new OffAmazonPaymentsService_Model_GetRefundDetailsResponse(($response->item(0))); } else { throw new Exception("Unable to construct OffAmazonPaymentsService_Model_GetRefundDetailsResponse from provided XML. Make sure that GetRefundDetailsResponse is a root element"); } } /** * Gets the value of the GetRefundDetailsResult. * * @return OffAmazonPaymentsService_Model_GetRefundDetailsResult GetRefundDetailsResult */ public function getGetRefundDetailsResult() { return $this->_fields['GetRefundDetailsResult']['FieldValue']; } /** * Sets the value of the GetRefundDetailsResult. * * @param OffAmazonPaymentsService_Model_GetRefundDetailsResult GetRefundDetailsResult * @return void */ public function setGetRefundDetailsResult($value) { $this->_fields['GetRefundDetailsResult']['FieldValue'] = $value; return; } /** * Sets the value of the GetRefundDetailsResult and returns this instance * * @param OffAmazonPaymentsService_Model_GetRefundDetailsResult $value GetRefundDetailsResult * @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance */ public function withGetRefundDetailsResult($value) { $this->setGetRefundDetailsResult($value); return $this; } /** * Checks if GetRefundDetailsResult is set * * @return bool true if GetRefundDetailsResult property is set */ public function isSetGetRefundDetailsResult() { return !is_null($this->_fields['GetRefundDetailsResult']['FieldValue']); } /** * Gets the value of the ResponseMetadata. * * @return OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata */ public function getResponseMetadata() { return $this->_fields['ResponseMetadata']['FieldValue']; } /** * Sets the value of the ResponseMetadata. * * @param OffAmazonPaymentsService_Model_ResponseMetadata ResponseMetadata * @return void */ public function setResponseMetadata($value) { $this->_fields['ResponseMetadata']['FieldValue'] = $value; return; } /** * Sets the value of the ResponseMetadata and returns this instance * * @param OffAmazonPaymentsService_Model_ResponseMetadata $value ResponseMetadata * @return OffAmazonPaymentsService_Model_GetRefundDetailsResponse instance */ public function withResponseMetadata($value) { $this->setResponseMetadata($value); return $this; } /** * Checks if ResponseMetadata is set * * @return bool true if ResponseMetadata property is set */ public function isSetResponseMetadata() { return !is_null($this->_fields['ResponseMetadata']['FieldValue']); } /** * XML Representation for this object * * @return string XML for this object */ public function toXML() { $xml = ""; $xml .= ""; $xml .= $this->_toXMLFragment(); $xml .= ""; return $xml; } private $_responseHeaderMetadata = null; public function getResponseHeaderMetadata() { return $this->_responseHeaderMetadata; } public function setResponseHeaderMetadata($responseHeaderMetadata) { return $this->_responseHeaderMetadata = $responseHeaderMetadata; } }