* *
  • GetPaymentInstructionResult: Amazon_FPS_Model_GetPaymentInstructionResult
  • *
  • ResponseMetadata: Amazon_FPS_Model_ResponseMetadata
  • * * */ class Amazon_FPS_Model_GetPaymentInstructionResponse extends Amazon_FPS_Model { /** * Construct new Amazon_FPS_Model_GetPaymentInstructionResponse * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->_fields = array ( 'GetPaymentInstructionResult' => array('FieldValue' => null, 'FieldType' => 'Amazon_FPS_Model_GetPaymentInstructionResult'), 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'Amazon_FPS_Model_ResponseMetadata'), ); parent::__construct($data); } /** * Construct Amazon_FPS_Model_GetPaymentInstructionResponse from XML string * * @param string $xml XML string to construct from * @return Amazon_FPS_Model_GetPaymentInstructionResponse */ public static function fromXML($xml) { $dom = new DOMDocument(); $dom->loadXML($xml); $xpath = new DOMXPath($dom); $xpath->registerNamespace('a', 'http://fps.amazonaws.com/doc/2010-08-28/'); $response = $xpath->query('//a:GetPaymentInstructionResponse'); if ($response->length == 1) { return new Amazon_FPS_Model_GetPaymentInstructionResponse(($response->item(0))); } else { throw new Exception ("Unable to construct Amazon_FPS_Model_GetPaymentInstructionResponse from provided XML. Make sure that GetPaymentInstructionResponse is a root element"); } } /** * Gets the value of the GetPaymentInstructionResult. * * @return GetPaymentInstructionResult GetPaymentInstructionResult */ public function getGetPaymentInstructionResult() { return $this->_fields['GetPaymentInstructionResult']['FieldValue']; } /** * Sets the value of the GetPaymentInstructionResult. * * @param GetPaymentInstructionResult GetPaymentInstructionResult * @return void */ public function setGetPaymentInstructionResult($value) { $this->_fields['GetPaymentInstructionResult']['FieldValue'] = $value; return; } /** * Sets the value of the GetPaymentInstructionResult and returns this instance * * @param GetPaymentInstructionResult $value GetPaymentInstructionResult * @return Amazon_FPS_Model_GetPaymentInstructionResponse instance */ public function withGetPaymentInstructionResult($value) { $this->setGetPaymentInstructionResult($value); return $this; } /** * Checks if GetPaymentInstructionResult is set * * @return bool true if GetPaymentInstructionResult property is set */ public function isSetGetPaymentInstructionResult() { return !is_null($this->_fields['GetPaymentInstructionResult']['FieldValue']); } /** * Gets the value of the ResponseMetadata. * * @return ResponseMetadata ResponseMetadata */ public function getResponseMetadata() { return $this->_fields['ResponseMetadata']['FieldValue']; } /** * Sets the value of the ResponseMetadata. * * @param 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 ResponseMetadata $value ResponseMetadata * @return Amazon_FPS_Model_GetPaymentInstructionResponse 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; } }