* *
  • CreditInstrumentId: string
  • *
  • AdjustmentAmount: Amazon_FPS_Model_Amount
  • *
  • CallerReference: string
  • *
  • CallerDescription: string
  • * * */ class Amazon_FPS_Model_WriteOffDebtRequest extends Amazon_FPS_Model { /** * Construct new Amazon_FPS_Model_WriteOffDebtRequest * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->_fields = array ( 'CreditInstrumentId' => array('FieldValue' => null, 'FieldType' => 'string'), 'AdjustmentAmount' => array('FieldValue' => null, 'FieldType' => 'Amazon_FPS_Model_Amount'), 'CallerReference' => array('FieldValue' => null, 'FieldType' => 'string'), 'CallerDescription' => array('FieldValue' => null, 'FieldType' => 'string'), ); parent::__construct($data); } /** * Gets the value of the CreditInstrumentId property. * * @return string CreditInstrumentId */ public function getCreditInstrumentId() { return $this->_fields['CreditInstrumentId']['FieldValue']; } /** * Sets the value of the CreditInstrumentId property. * * @param string CreditInstrumentId * @return this instance */ public function setCreditInstrumentId($value) { $this->_fields['CreditInstrumentId']['FieldValue'] = $value; return $this; } /** * Sets the value of the CreditInstrumentId and returns this instance * * @param string $value CreditInstrumentId * @return Amazon_FPS_Model_WriteOffDebtRequest instance */ public function withCreditInstrumentId($value) { $this->setCreditInstrumentId($value); return $this; } /** * Checks if CreditInstrumentId is set * * @return bool true if CreditInstrumentId is set */ public function isSetCreditInstrumentId() { return !is_null($this->_fields['CreditInstrumentId']['FieldValue']); } /** * Gets the value of the AdjustmentAmount. * * @return Amount AdjustmentAmount */ public function getAdjustmentAmount() { return $this->_fields['AdjustmentAmount']['FieldValue']; } /** * Sets the value of the AdjustmentAmount. * * @param Amount AdjustmentAmount * @return void */ public function setAdjustmentAmount($value) { $this->_fields['AdjustmentAmount']['FieldValue'] = $value; return; } /** * Sets the value of the AdjustmentAmount and returns this instance * * @param Amount $value AdjustmentAmount * @return Amazon_FPS_Model_WriteOffDebtRequest instance */ public function withAdjustmentAmount($value) { $this->setAdjustmentAmount($value); return $this; } /** * Checks if AdjustmentAmount is set * * @return bool true if AdjustmentAmount property is set */ public function isSetAdjustmentAmount() { return !is_null($this->_fields['AdjustmentAmount']['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_WriteOffDebtRequest 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_WriteOffDebtRequest 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']); } }