<?php
/*******************************************************************************
 * Copyright 2009-2016 Amazon Services. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *******************************************************************************
 * PHP Version 5
 * @category Amazon
 * @package  MWS Merchant Fulfillment Service
 * @version  2015-06-01
 * Library Version: 2016-03-30
 * Generated: Tue Mar 29 19:00:01 UTC 2016
 */

/**
 *  @see MWSMerchantFulfillmentService_Model
 */

require_once (dirname(__FILE__) . '/../Model.php');

/**
 * MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResult
 *
 * Properties:
 *

 *
 *
ShippingServiceList: array

 *
TemporarilyUnavailableCarrierList: array

 *
TermsAndConditionsNotAcceptedCarrierList: array

 *
 *

 */

 class MWSMerchantFulfillmentService_Model_GetEligibleShippingServicesResult extends MWSMerchantFulfillmentService_Model {

    public function __construct($data = null)
    {
    $this->_fields = array (
    'ShippingServiceList' => array('FieldValue' => array(), 'FieldType' => array('MWSMerchantFulfillmentService_Model_ShippingService'), 'ListMemberName' => 'ShippingService'),
    'TemporarilyUnavailableCarrierList' => array('FieldValue' => array(), 'FieldType' => array('MWSMerchantFulfillmentService_Model_TemporarilyUnavailableCarrier'), 'ListMemberName' => 'TemporarilyUnavailableCarrier'),
    'TermsAndConditionsNotAcceptedCarrierList' => array('FieldValue' => array(), 'FieldType' => array('MWSMerchantFulfillmentService_Model_TermsAndConditionsNotAcceptedCarrier'), 'ListMemberName' => 'TermsAndConditionsNotAcceptedCarrier'),
    );
    parent::__construct($data);
    }

    /**
     * Get the value of the ShippingServiceList property.
     *
     * @return List<ShippingService> ShippingServiceList.
     */
    public function getShippingServiceList()
    {
        if ($this->_fields['ShippingServiceList']['FieldValue'] == null)
        {
            $this->_fields['ShippingServiceList']['FieldValue'] = array();
        }
        return $this->_fields['ShippingServiceList']['FieldValue'];
    }

    /**
     * Set the value of the ShippingServiceList property.
     *
     * @param array shippingServiceList
     * @return this instance
     */
    public function setShippingServiceList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['ShippingServiceList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear ShippingServiceList.
     */
    public function unsetShippingServiceList()
    {
        $this->_fields['ShippingServiceList']['FieldValue'] = array();
    }

    /**
     * Check to see if ShippingServiceList is set.
     *
     * @return true if ShippingServiceList is set.
     */
    public function isSetShippingServiceList()
    {
                return !empty($this->_fields['ShippingServiceList']['FieldValue']);
            }

    /**
     * Add values for ShippingServiceList, return this.
     *
     * @param shippingServiceList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withShippingServiceList()
    {
        foreach (func_get_args() as $ShippingServiceList)
        {
            $this->_fields['ShippingServiceList']['FieldValue'][] = $ShippingServiceList;
        }
        return $this;
    }

    /**
     * Get the value of the TemporarilyUnavailableCarrierList property.
     *
     * @return List<TemporarilyUnavailableCarrier> TemporarilyUnavailableCarrierList.
     */
    public function getTemporarilyUnavailableCarrierList()
    {
        if ($this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'] == null)
        {
            $this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'] = array();
        }
        return $this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'];
    }

    /**
     * Set the value of the TemporarilyUnavailableCarrierList property.
     *
     * @param array temporarilyUnavailableCarrierList
     * @return this instance
     */
    public function setTemporarilyUnavailableCarrierList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear TemporarilyUnavailableCarrierList.
     */
    public function unsetTemporarilyUnavailableCarrierList()
    {
        $this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'] = array();
    }

    /**
     * Check to see if TemporarilyUnavailableCarrierList is set.
     *
     * @return true if TemporarilyUnavailableCarrierList is set.
     */
    public function isSetTemporarilyUnavailableCarrierList()
    {
                return !empty($this->_fields['TemporarilyUnavailableCarrierList']['FieldValue']);
            }

    /**
     * Add values for TemporarilyUnavailableCarrierList, return this.
     *
     * @param temporarilyUnavailableCarrierList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withTemporarilyUnavailableCarrierList()
    {
        foreach (func_get_args() as $TemporarilyUnavailableCarrierList)
        {
            $this->_fields['TemporarilyUnavailableCarrierList']['FieldValue'][] = $TemporarilyUnavailableCarrierList;
        }
        return $this;
    }

    /**
     * Get the value of the TermsAndConditionsNotAcceptedCarrierList property.
     *
     * @return List<TermsAndConditionsNotAcceptedCarrier> TermsAndConditionsNotAcceptedCarrierList.
     */
    public function getTermsAndConditionsNotAcceptedCarrierList()
    {
        if ($this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'] == null)
        {
            $this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'] = array();
        }
        return $this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'];
    }

    /**
     * Set the value of the TermsAndConditionsNotAcceptedCarrierList property.
     *
     * @param array termsAndConditionsNotAcceptedCarrierList
     * @return this instance
     */
    public function setTermsAndConditionsNotAcceptedCarrierList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear TermsAndConditionsNotAcceptedCarrierList.
     */
    public function unsetTermsAndConditionsNotAcceptedCarrierList()
    {
        $this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'] = array();
    }

    /**
     * Check to see if TermsAndConditionsNotAcceptedCarrierList is set.
     *
     * @return true if TermsAndConditionsNotAcceptedCarrierList is set.
     */
    public function isSetTermsAndConditionsNotAcceptedCarrierList()
    {
                return !empty($this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue']);
            }

    /**
     * Add values for TermsAndConditionsNotAcceptedCarrierList, return this.
     *
     * @param termsAndConditionsNotAcceptedCarrierList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withTermsAndConditionsNotAcceptedCarrierList()
    {
        foreach (func_get_args() as $TermsAndConditionsNotAcceptedCarrierList)
        {
            $this->_fields['TermsAndConditionsNotAcceptedCarrierList']['FieldValue'][] = $TermsAndConditionsNotAcceptedCarrierList;
        }
        return $this;
    }

}


<?php
/*******************************************************************************
 * Copyright 2009-2014 Amazon Services. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *******************************************************************************
 * PHP Version 5
 * @category Amazon
 * @package  Marketplace Web Service Products
 * @version  2011-10-01
 * Library Version: 2014-10-20
 * Generated: Fri Oct 17 17:59:56 GMT 2014
 */

/**
 * MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse
 *
 * Properties:
 *

 *
 *
GetCompetitivePricingForSKUResult: array

 *
ResponseMetadata: MarketplaceWebServiceProducts_Model_ResponseMetadata

 *
ResponseHeaderMetadata: MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata

 *
 *

 */
class MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse extends MarketplaceWebServiceProducts_Model
{

    public function __construct($data = null)
    {
        $this->_fields = array(
            'GetCompetitivePricingForSKUResult' => array(
                'FieldValue' => array(),
                'FieldType' => array('MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResult')
            ),
            'ResponseMetadata' => array(
                'FieldValue' => null,
                'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseMetadata'
            ),
            'ResponseHeaderMetadata' => array(
                'FieldValue' => null,
                'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata'
            ),
        );
        parent::__construct($data);
    }

    /**
     * Get the value of the GetCompetitivePricingForSKUResult property.
     *
     * @return MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResult[] GetCompetitivePricingForSKUResult.
     */
    public function getGetCompetitivePricingForSKUResult()
    {
        if ($this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'] == null) {
            $this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'] = array();
        }
        return $this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'];
    }

    /**
     * Set the value of the GetCompetitivePricingForSKUResult property.
     *
     * @param array $value getCompetitivePricingForSKUResult
     * @return $this This instance
     */
    public function setGetCompetitivePricingForSKUResult($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array($value);
        }
        $this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear GetCompetitivePricingForSKUResult.
     */
    public function unsetGetCompetitivePricingForSKUResult()
    {
        $this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'] = array();
    }

    /**
     * Check to see if GetCompetitivePricingForSKUResult is set.
     *
     * @return true if GetCompetitivePricingForSKUResult is set.
     */
    public function isSetGetCompetitivePricingForSKUResult()
    {
        return !empty($this->_fields['GetCompetitivePricingForSKUResult']['FieldValue']);
    }

    /**
     * Add values for GetCompetitivePricingForSKUResult, return this.
     *
     * @param getCompetitivePricingForSKUResult
     *             New values to add.
     *
     * @return $this This instance.
     */
    public function withGetCompetitivePricingForSKUResult()
    {
        foreach (func_get_args() as $GetCompetitivePricingForSKUResult) {
            $this->_fields['GetCompetitivePricingForSKUResult']['FieldValue'][] = $GetCompetitivePricingForSKUResult;
        }
        return $this;
    }

    /**
     * Get the value of the ResponseMetadata property.
     *
     * @return MarketplaceWebServiceProducts_Model_ResponseMetadata ResponseMetadata.
     */
    public function getResponseMetadata()
    {
        return $this->_fields['ResponseMetadata']['FieldValue'];
    }

    /**
     * Set the value of the ResponseMetadata property.
     *
     * @param MarketplaceWebServiceProducts_Model_ResponseMetadata $value responseMetadata
     * @return $this This instance
     */
    public function setResponseMetadata($value)
    {
        $this->_fields['ResponseMetadata']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if ResponseMetadata is set.
     *
     * @return true if ResponseMetadata is set.
     */
    public function isSetResponseMetadata()
    {
        return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
    }

    /**
     * Set the value of ResponseMetadata, return this.
     *
     * @param responseMetadata
     *             The new value to set.
     *
     * @return $this This instance.
     */
    public function withResponseMetadata($value)
    {
        $this->setResponseMetadata($value);
        return $this;
    }

    /**
     * Get the value of the ResponseHeaderMetadata property.
     *
     * @return MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata ResponseHeaderMetadata.
     */
    public function getResponseHeaderMetadata()
    {
        return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
    }

    /**
     * Set the value of the ResponseHeaderMetadata property.
     *
     * @param MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata $value responseHeaderMetadata
     * @return $this This instance
     */
    public function setResponseHeaderMetadata($value)
    {
        $this->_fields['ResponseHeaderMetadata']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if ResponseHeaderMetadata is set.
     *
     * @return true if ResponseHeaderMetadata is set.
     */
    public function isSetResponseHeaderMetadata()
    {
        return !is_null($this->_fields['ResponseHeaderMetadata']['FieldValue']);
    }

    /**
     * Set the value of ResponseHeaderMetadata, return this.
     *
     * @param responseHeaderMetadata
     *             The new value to set.
     *
     * @return $this This instance.
     */
    public function withResponseHeaderMetadata($value)
    {
        $this->setResponseHeaderMetadata($value);
        return $this;
    }

    /**
     * Construct MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse from XML string
     *
     * @param $xml
     *        XML string to construct from
     * @return MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse
     * @throws Exception
     */
    public static function fromXML($xml)
    {
        $dom = new DOMDocument();
        $dom->loadXML($xml);
        $xpath = new DOMXPath($dom);
        $response = $xpath->query("//*[local-name()='GetCompetitivePricingForSKUResponse']");
        if ($response->length == 1) {
            return new MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse(($response->item(0)));
        } else {
            throw new Exception ("Unable to construct MarketplaceWebServiceProducts_Model_GetCompetitivePricingForSKUResponse from provided XML.
                                  Make sure that GetCompetitivePricingForSKUResponse is a root element");
        }
    }

    /**
     * XML Representation for this object
     *
     * @return string XML for this object
     */
    public function toXML()
    {
        $xml = "";
        $xml .= "<GetCompetitivePricingForSKUResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">";
        $xml .= $this->_toXMLFragment();
        $xml .= "</GetCompetitivePricingForSKUResponse>";
        return $xml;
    }

}


<?php
/*******************************************************************************
 * Copyright 2009-2014 Amazon Services. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *******************************************************************************
 * PHP Version 5
 * @category Amazon
 * @package  Marketplace Web Service Sellers
 * @version  2011-07-01
 * Library Version: 2014-10-20
 * Generated: Fri Oct 17 18:34:06 GMT 2014
 */

/**
 * MarketplaceWebServiceSellers_Model_ListParticipations
 *
 * Properties:
 *

 *
 *
Participation: array

 *
 *

 */
class MarketplaceWebServiceSellers_Model_ListParticipations extends MarketplaceWebServiceSellers_Model
{

    public function __construct($data = null)
    {
        $this->_fields = array(
            'Participation' => array(
                'FieldValue' => array(),
                'FieldType' => array('MarketplaceWebServiceSellers_Model_Participation')
            ),
        );
        parent::__construct($data);
    }

    /**
     * Get the value of the Participation property.
     *
     * @return MarketplaceWebServiceSellers_Model_Participation[] Participation.
     */
    public function getParticipation()
    {
        if ($this->_fields['Participation']['FieldValue'] == null) {
            $this->_fields['Participation']['FieldValue'] = array();
        }
        return $this->_fields['Participation']['FieldValue'];
    }

    /**
     * Set the value of the Participation property.
     *
     * @param array $value participation
     * @return $this This instance
     */
    public function setParticipation($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array($value);
        }
        $this->_fields['Participation']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear Participation.
     */
    public function unsetParticipation()
    {
        $this->_fields['Participation']['FieldValue'] = array();
    }

    /**
     * Check to see if Participation is set.
     *
     * @return true if Participation is set.
     */
    public function isSetParticipation()
    {
        return !empty($this->_fields['Participation']['FieldValue']);
    }

    /**
     * Add values for Participation, return this.
     *
     * @param participation
     *             New values to add.
     *
     * @return $this This instance.
     */
    public function withParticipation()
    {
        foreach (func_get_args() as $Participation) {
            $this->_fields['Participation']['FieldValue'][] = $Participation;
        }
        return $this;
    }

}


<?php
/*******************************************************************************
 * Copyright 2009-2014 Amazon Services. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *******************************************************************************
 * PHP Version 5
 * @category Amazon
 * @package  Marketplace Web Service Products
 * @version  2011-10-01
 * Library Version: 2014-10-20
 * Generated: Fri Oct 17 17:59:56 GMT 2014
 */

/**
 * MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse
 *
 * Properties:
 *

 *
 *
GetLowestOfferListingsForASINResult: array

 *
ResponseMetadata: MarketplaceWebServiceProducts_Model_ResponseMetadata

 *
ResponseHeaderMetadata: MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata

 *
 *

 */
class MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse extends MarketplaceWebServiceProducts_Model
{

    public function __construct($data = null)
    {
        $this->_fields = array(
            'GetLowestOfferListingsForASINResult' => array(
                'FieldValue' => array(),
                'FieldType' => array('MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResult')
            ),
            'ResponseMetadata' => array(
                'FieldValue' => null,
                'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseMetadata'
            ),
            'ResponseHeaderMetadata' => array(
                'FieldValue' => null,
                'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata'
            ),
        );
        parent::__construct($data);
    }

    /**
     * Get the value of the GetLowestOfferListingsForASINResult property.
     *
     * @return MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResult[] GetLowestOfferListingsForASINResult.
     */
    public function getGetLowestOfferListingsForASINResult()
    {
        if ($this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'] == null) {
            $this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'] = array();
        }
        return $this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'];
    }

    /**
     * Set the value of the GetLowestOfferListingsForASINResult property.
     *
     * @param array $value getLowestOfferListingsForASINResult
     * @return $this This instance
     */
    public function setGetLowestOfferListingsForASINResult($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array($value);
        }
        $this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear GetLowestOfferListingsForASINResult.
     */
    public function unsetGetLowestOfferListingsForASINResult()
    {
        $this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'] = array();
    }

    /**
     * Check to see if GetLowestOfferListingsForASINResult is set.
     *
     * @return true if GetLowestOfferListingsForASINResult is set.
     */
    public function isSetGetLowestOfferListingsForASINResult()
    {
        return !empty($this->_fields['GetLowestOfferListingsForASINResult']['FieldValue']);
    }

    /**
     * Add values for GetLowestOfferListingsForASINResult, return this.
     *
     * @param getLowestOfferListingsForASINResult
     *             New values to add.
     *
     * @return $this This instance.
     */
    public function withGetLowestOfferListingsForASINResult()
    {
        foreach (func_get_args() as $GetLowestOfferListingsForASINResult) {
            $this->_fields['GetLowestOfferListingsForASINResult']['FieldValue'][] = $GetLowestOfferListingsForASINResult;
        }
        return $this;
    }

    /**
     * Get the value of the ResponseMetadata property.
     *
     * @return MarketplaceWebServiceProducts_Model_ResponseMetadata ResponseMetadata.
     */
    public function getResponseMetadata()
    {
        return $this->_fields['ResponseMetadata']['FieldValue'];
    }

    /**
     * Set the value of the ResponseMetadata property.
     *
     * @param MarketplaceWebServiceProducts_Model_ResponseMetadata $value responseMetadata
     * @return $this This instance
     */
    public function setResponseMetadata($value)
    {
        $this->_fields['ResponseMetadata']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if ResponseMetadata is set.
     *
     * @return true if ResponseMetadata is set.
     */
    public function isSetResponseMetadata()
    {
        return !is_null($this->_fields['ResponseMetadata']['FieldValue']);
    }

    /**
     * Set the value of ResponseMetadata, return this.
     *
     * @param responseMetadata
     *             The new value to set.
     *
     * @return $this This instance.
     */
    public function withResponseMetadata($value)
    {
        $this->setResponseMetadata($value);
        return $this;
    }

    /**
     * Get the value of the ResponseHeaderMetadata property.
     *
     * @return MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata ResponseHeaderMetadata.
     */
    public function getResponseHeaderMetadata()
    {
        return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
    }

    /**
     * Set the value of the ResponseHeaderMetadata property.
     *
     * @param MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata $value responseHeaderMetadata
     * @return $this This instance
     */
    public function setResponseHeaderMetadata($value)
    {
        $this->_fields['ResponseHeaderMetadata']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if ResponseHeaderMetadata is set.
     *
     * @return true if ResponseHeaderMetadata is set.
     */
    public function isSetResponseHeaderMetadata()
    {
        return !is_null($this->_fields['ResponseHeaderMetadata']['FieldValue']);
    }

    /**
     * Set the value of ResponseHeaderMetadata, return this.
     *
     * @param responseHeaderMetadata
     *             The new value to set.
     *
     * @return $this This instance.
     */
    public function withResponseHeaderMetadata($value)
    {
        $this->setResponseHeaderMetadata($value);
        return $this;
    }

    /**
     * Construct MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse from XML string
     *
     * @param $xml
     *        XML string to construct from
     * @return MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse
     * @throws Exception
     */
    public static function fromXML($xml)
    {
        $dom = new DOMDocument();
        $dom->loadXML($xml);
        $xpath = new DOMXPath($dom);
        $response = $xpath->query("//*[local-name()='GetLowestOfferListingsForASINResponse']");
        if ($response->length == 1) {
            return new MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse(($response->item(0)));
        } else {
            throw new Exception ("Unable to construct MarketplaceWebServiceProducts_Model_GetLowestOfferListingsForASINResponse from provided XML.
                                  Make sure that GetLowestOfferListingsForASINResponse is a root element");
        }
    }

    /**
     * XML Representation for this object
     *
     * @return string XML for this object
     */
    public function toXML()
    {
        $xml = "";
        $xml .= "<GetLowestOfferListingsForASINResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">";
        $xml .= $this->_toXMLFragment();
        $xml .= "</GetLowestOfferListingsForASINResponse>";
        return $xml;
    }

}


<?php
/**
 *  PHP Version 5
 *
 * @category    Amazon
 * @package     MarketplaceWebService
 * @copyright   Copyright 2009 Amazon Technologies, Inc.
 * @link        http://aws.amazon.com
 * @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
 * @version     2009-01-01
 */
/*******************************************************************************
 *  Marketplace Web Service PHP5 Library
 *  Generated: Thu May 07 13:07:36 PDT 2009
 *
 */

/**
 * MarketplaceWebService_Model_UpdateReportAcknowledgementsResult
 *
 * Properties:
 *

 *
 *
Count: int

 *
ReportInfo: MarketplaceWebService_Model_ReportInfo

 *
 *

 */
class MarketplaceWebService_Model_UpdateReportAcknowledgementsResult extends MarketplaceWebService_Model
{

    /**
     * Construct new MarketplaceWebService_Model_UpdateReportAcknowledgementsResult
     *
     * @param mixed $data DOMElement or Associative Array to construct from.
     *
     * Valid properties:
     *

     *
     *
Count: int

     *
ReportInfo: MarketplaceWebService_Model_ReportInfo

     *
     *

     */
    public function __construct($data = null)
    {
        $this->fields = array(
            'Count' => array('FieldValue' => null, 'FieldType' => 'int'),
            'ReportInfo' => array(
                'FieldValue' => array(),
                'FieldType' => array('MarketplaceWebService_Model_ReportInfo')
            ),
        );
        parent::__construct($data);
    }

    /**
     * Gets the value of the Count property.
     *
     * @return int Count
     */
    public function getCount()
    {
        return $this->fields['Count']['FieldValue'];
    }

    /**
     * Sets the value of the Count property.
     *
     * @param int $value Count
     * @return $this This instance
     */
    public function setCount($value)
    {
        $this->fields['Count']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Sets the value of the Count and returns this instance
     *
     * @param int $value Count
     * @return MarketplaceWebService_Model_UpdateReportAcknowledgementsResult instance
     */
    public function withCount($value)
    {
        $this->setCount($value);
        return $this;
    }

    /**
     * Checks if Count is set
     *
     * @return bool true if Count  is set
     */
    public function isSetCount()
    {
        return !is_null($this->fields['Count']['FieldValue']);
    }

    /**
     * Gets the value of the ReportInfo.
     *
     * @return array of ReportInfo ReportInfo
     */
    public function getReportInfoList()
    {
        return $this->fields['ReportInfo']['FieldValue'];
    }

    /**
     * Sets the value of the ReportInfo.
     *
     * @param mixed $reportInfo ReportInfo or an array of ReportInfo ReportInfo
     * @return $this This instance
     */
    public function setReportInfoList($reportInfo)
    {
        if (!$this->_isNumericArray($reportInfo)) {
            $reportInfo = array($reportInfo);
        }
        $this->fields['ReportInfo']['FieldValue'] = $reportInfo;
        return $this;
    }

    /**
     * Sets single or multiple values of ReportInfo list via variable number of arguments.
     * For example, to set the list with two elements, simply pass two values as arguments to this function
     * withReportInfo($reportInfo1, $reportInfo2)
     *
     * @param MarketplaceWebService_Model_ReportInfo $reportInfoArgs one or more ReportInfo
     * @return MarketplaceWebService_Model_UpdateReportAcknowledgementsResult  instance
     */
    public function withReportInfo($reportInfoArgs)
    {
        foreach (func_get_args() as $reportInfo) {
            $this->fields['ReportInfo']['FieldValue'][] = $reportInfo;
        }
        return $this;
    }

    /**
     * Checks if ReportInfo list is non-empty
     *
     * @return bool true if ReportInfo list is non-empty
     */
    public function isSetReportInfo()
    {
        return count($this->fields['ReportInfo']['FieldValue']) > 0;
    }

}


<?php
/**
 *  PHP Version 5
 *
 * @category    Amazon
 * @package     MarketplaceWebService
 * @copyright   Copyright 2009 Amazon Technologies, Inc.
 * @link        http://aws.amazon.com
 * @license     http://aws.amazon.com/apache2.0  Apache License, Version 2.0
 * @version     2009-01-01
 */
/*******************************************************************************
 *  Marketplace Web Service PHP5 Library
 *  Generated: Thu May 07 13:07:36 PDT 2009
 *
 */

/**
 * MarketplaceWebService_Model_GetReportRequestListByNextTokenResult
 *
 * Properties:
 *

 *
 *
NextToken: string

 *
HasNext: bool

 *
ReportRequestInfo: MarketplaceWebService_Model_ReportRequestInfo

 *
 *

 */
class MarketplaceWebService_Model_GetReportRequestListByNextTokenResult extends MarketplaceWebService_Model
{

    /**
     * Construct new MarketplaceWebService_Model_GetReportRequestListByNextTokenResult
     *
     * @param mixed $data DOMElement or Associative Array to construct from.
     *
     * Valid properties:
     *

     *
     *
NextToken: string

     *
HasNext: bool

     *
ReportRequestInfo: MarketplaceWebService_Model_ReportRequestInfo

     *
     *

     */
    public function __construct($data = null)
    {
        $this->fields = array(
            'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
            'HasNext' => array('FieldValue' => null, 'FieldType' => 'bool'),
            'ReportRequestInfo' => array(
                'FieldValue' => array(),
                'FieldType' => array('MarketplaceWebService_Model_ReportRequestInfo')
            ),
        );
        parent::__construct($data);
    }

    /**
     * Gets the value of the NextToken property.
     *
     * @return string NextToken
     */
    public function getNextToken()
    {
        return $this->fields['NextToken']['FieldValue'];
    }

    /**
     * Sets the value of the NextToken property.
     *
     * @param string $value NextToken
     * @return $this This instance
     */
    public function setNextToken($value)
    {
        $this->fields['NextToken']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Sets the value of the NextToken and returns this instance
     *
     * @param string $value NextToken
     * @return MarketplaceWebService_Model_GetReportRequestListByNextTokenResult instance
     */
    public function withNextToken($value)
    {
        $this->setNextToken($value);
        return $this;
    }

    /**
     * Checks if NextToken is set
     *
     * @return bool true if NextToken  is set
     */
    public function isSetNextToken()
    {
        return !is_null($this->fields['NextToken']['FieldValue']);
    }

    /**
     * Gets the value of the HasNext property.
     *
     * @return bool HasNext
     */
    public function getHasNext()
    {
        return $this->fields['HasNext']['FieldValue'];
    }

    /**
     * Sets the value of the HasNext property.
     *
     * @param bool $value HasNext
     * @return $this This instance
     */
    public function setHasNext($value)
    {
        $this->fields['HasNext']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Sets the value of the HasNext and returns this instance
     *
     * @param bool $value HasNext
     * @return MarketplaceWebService_Model_GetReportRequestListByNextTokenResult instance
     */
    public function withHasNext($value)
    {
        $this->setHasNext($value);
        return $this;
    }

    /**
     * Checks if HasNext is set
     *
     * @return bool true if HasNext  is set
     */
    public function isSetHasNext()
    {
        return !is_null($this->fields['HasNext']['FieldValue']);
    }

    /**
     * Gets the value of the ReportRequestInfo.
     *
     * @return array of ReportRequestInfo ReportRequestInfo
     */
    public function getReportRequestInfoList()
    {
        return $this->fields['ReportRequestInfo']['FieldValue'];
    }

    /**
     * Sets the value of the ReportRequestInfo.
     *
     * @param mixed $reportRequestInfo ReportRequestInfo or an array of ReportRequestInfo ReportRequestInfo
     * @return $this This instance
     */
    public function setReportRequestInfoList($reportRequestInfo)
    {
        if (!$this->_isNumericArray($reportRequestInfo)) {
            $reportRequestInfo = array($reportRequestInfo);
        }
        $this->fields['ReportRequestInfo']['FieldValue'] = $reportRequestInfo;
        return $this;
    }

    /**
     * Sets single or multiple values of ReportRequestInfo list via variable number of arguments.
     * For example, to set the list with two elements, simply pass two values as arguments to this function
     * withReportRequestInfo($reportRequestInfo1, $reportRequestInfo2)
     *
     * @param MarketplaceWebService_Model_ReportRequestInfo $reportRequestInfoArgs one or more ReportRequestInfo
     * @return MarketplaceWebService_Model_GetReportRequestListByNextTokenResult  instance
     */
    public function withReportRequestInfo($reportRequestInfoArgs)
    {
        foreach (func_get_args() as $reportRequestInfo) {
            $this->fields['ReportRequestInfo']['FieldValue'][] = $reportRequestInfo;
        }
        return $this;
    }

    /**
     * Checks if ReportRequestInfo list is non-empty
     *
     * @return bool true if ReportRequestInfo list is non-empty
     */
    public function isSetReportRequestInfo()
    {
        return count($this->fields['ReportRequestInfo']['FieldValue']) > 0;
    }

}


<?php
/*******************************************************************************
 * Copyright 2009-2015 Amazon Services. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 *
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
 * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 *******************************************************************************
 * PHP Version 5
 * @category Amazon
 * @package  MWS Finances Service
 * @version  2015-05-01
 * Library Version: 2015-09-03
 * Generated: Thu Sep 03 17:55:25 GMT 2015
 */

/**
 *  @see MWSFinancesService_Model
 */

require_once (dirname(__FILE__) . '/../Model.php');

/**
 * MWSFinancesService_Model_ShipmentEvent
 *
 * Properties:
 *

 *
 *
AmazonOrderId: string

 *
SellerOrderId: string

 *
MarketplaceName: string

 *
OrderChargeList: array

 *
OrderChargeAdjustmentList: array

 *
ShipmentFeeList: array

 *
ShipmentFeeAdjustmentList: array

 *
OrderFeeList: array

 *
OrderFeeAdjustmentList: array

 *
DirectPaymentList: array

 *
PostedDate: string

 *
ShipmentItemList: array

 *
ShipmentItemAdjustmentList: array

 *
 *

 */

 class MWSFinancesService_Model_ShipmentEvent extends MWSFinancesService_Model {

    public function __construct($data = null)
    {
    $this->_fields = array (
    'AmazonOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
    'SellerOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
    'MarketplaceName' => array('FieldValue' => null, 'FieldType' => 'string'),
    'OrderChargeList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_ChargeComponent'), 'ListMemberName' => 'ChargeComponent'),
    'OrderChargeAdjustmentList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_ChargeComponent'), 'ListMemberName' => 'ChargeComponent'),
    'ShipmentFeeList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_FeeComponent'), 'ListMemberName' => 'FeeComponent'),
    'ShipmentFeeAdjustmentList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_FeeComponent'), 'ListMemberName' => 'FeeComponent'),
    'OrderFeeList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_FeeComponent'), 'ListMemberName' => 'FeeComponent'),
    'OrderFeeAdjustmentList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_FeeComponent'), 'ListMemberName' => 'FeeComponent'),
    'DirectPaymentList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_DirectPayment'), 'ListMemberName' => 'DirectPayment'),
    'PostedDate' => array('FieldValue' => null, 'FieldType' => 'string'),
    'ShipmentItemList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_ShipmentItem'), 'ListMemberName' => 'ShipmentItem'),
    'ShipmentItemAdjustmentList' => array('FieldValue' => array(), 'FieldType' => array('MWSFinancesService_Model_ShipmentItem'), 'ListMemberName' => 'ShipmentItem'),
    );
    parent::__construct($data);
    }

    /**
     * Get the value of the AmazonOrderId property.
     *
     * @return String AmazonOrderId.
     */
    public function getAmazonOrderId()
    {
        return $this->_fields['AmazonOrderId']['FieldValue'];
    }

    /**
     * Set the value of the AmazonOrderId property.
     *
     * @param string amazonOrderId
     * @return this instance
     */
    public function setAmazonOrderId($value)
    {
        $this->_fields['AmazonOrderId']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if AmazonOrderId is set.
     *
     * @return true if AmazonOrderId is set.
     */
    public function isSetAmazonOrderId()
    {
                return !is_null($this->_fields['AmazonOrderId']['FieldValue']);
            }

    /**
     * Set the value of AmazonOrderId, return this.
     *
     * @param amazonOrderId
     *             The new value to set.
     *
     * @return This instance.
     */
    public function withAmazonOrderId($value)
    {
        $this->setAmazonOrderId($value);
        return $this;
    }

    /**
     * Get the value of the SellerOrderId property.
     *
     * @return String SellerOrderId.
     */
    public function getSellerOrderId()
    {
        return $this->_fields['SellerOrderId']['FieldValue'];
    }

    /**
     * Set the value of the SellerOrderId property.
     *
     * @param string sellerOrderId
     * @return this instance
     */
    public function setSellerOrderId($value)
    {
        $this->_fields['SellerOrderId']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if SellerOrderId is set.
     *
     * @return true if SellerOrderId is set.
     */
    public function isSetSellerOrderId()
    {
                return !is_null($this->_fields['SellerOrderId']['FieldValue']);
            }

    /**
     * Set the value of SellerOrderId, return this.
     *
     * @param sellerOrderId
     *             The new value to set.
     *
     * @return This instance.
     */
    public function withSellerOrderId($value)
    {
        $this->setSellerOrderId($value);
        return $this;
    }

    /**
     * Get the value of the MarketplaceName property.
     *
     * @return String MarketplaceName.
     */
    public function getMarketplaceName()
    {
        return $this->_fields['MarketplaceName']['FieldValue'];
    }

    /**
     * Set the value of the MarketplaceName property.
     *
     * @param string marketplaceName
     * @return this instance
     */
    public function setMarketplaceName($value)
    {
        $this->_fields['MarketplaceName']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if MarketplaceName is set.
     *
     * @return true if MarketplaceName is set.
     */
    public function isSetMarketplaceName()
    {
                return !is_null($this->_fields['MarketplaceName']['FieldValue']);
            }

    /**
     * Set the value of MarketplaceName, return this.
     *
     * @param marketplaceName
     *             The new value to set.
     *
     * @return This instance.
     */
    public function withMarketplaceName($value)
    {
        $this->setMarketplaceName($value);
        return $this;
    }

    /**
     * Get the value of the OrderChargeList property.
     *
     * @return List<ChargeComponent> OrderChargeList.
     */
    public function getOrderChargeList()
    {
        if ($this->_fields['OrderChargeList']['FieldValue'] == null)
        {
            $this->_fields['OrderChargeList']['FieldValue'] = array();
        }
        return $this->_fields['OrderChargeList']['FieldValue'];
    }

    /**
     * Set the value of the OrderChargeList property.
     *
     * @param array orderChargeList
     * @return this instance
     */
    public function setOrderChargeList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderChargeList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear OrderChargeList.
     */
    public function unsetOrderChargeList()
    {
        $this->_fields['OrderChargeList']['FieldValue'] = array();
    }

    /**
     * Check to see if OrderChargeList is set.
     *
     * @return true if OrderChargeList is set.
     */
    public function isSetOrderChargeList()
    {
                return !empty($this->_fields['OrderChargeList']['FieldValue']);
            }

    /**
     * Add values for OrderChargeList, return this.
     *
     * @param orderChargeList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withOrderChargeList()
    {
        foreach (func_get_args() as $OrderChargeList)
        {
            $this->_fields['OrderChargeList']['FieldValue'][] = $OrderChargeList;
        }
        return $this;
    }

    /**
     * Get the value of the OrderChargeAdjustmentList property.
     *
     * @return List<ChargeComponent> OrderChargeAdjustmentList.
     */
    public function getOrderChargeAdjustmentList()
    {
        if ($this->_fields['OrderChargeAdjustmentList']['FieldValue'] == null)
        {
            $this->_fields['OrderChargeAdjustmentList']['FieldValue'] = array();
        }
        return $this->_fields['OrderChargeAdjustmentList']['FieldValue'];
    }

    /**
     * Set the value of the OrderChargeAdjustmentList property.
     *
     * @param array orderChargeAdjustmentList
     * @return this instance
     */
    public function setOrderChargeAdjustmentList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderChargeAdjustmentList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear OrderChargeAdjustmentList.
     */
    public function unsetOrderChargeAdjustmentList()
    {
        $this->_fields['OrderChargeAdjustmentList']['FieldValue'] = array();
    }

    /**
     * Check to see if OrderChargeAdjustmentList is set.
     *
     * @return true if OrderChargeAdjustmentList is set.
     */
    public function isSetOrderChargeAdjustmentList()
    {
                return !empty($this->_fields['OrderChargeAdjustmentList']['FieldValue']);
            }

    /**
     * Add values for OrderChargeAdjustmentList, return this.
     *
     * @param orderChargeAdjustmentList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withOrderChargeAdjustmentList()
    {
        foreach (func_get_args() as $OrderChargeAdjustmentList)
        {
            $this->_fields['OrderChargeAdjustmentList']['FieldValue'][] = $OrderChargeAdjustmentList;
        }
        return $this;
    }

    /**
     * Get the value of the ShipmentFeeList property.
     *
     * @return List<FeeComponent> ShipmentFeeList.
     */
    public function getShipmentFeeList()
    {
        if ($this->_fields['ShipmentFeeList']['FieldValue'] == null)
        {
            $this->_fields['ShipmentFeeList']['FieldValue'] = array();
        }
        return $this->_fields['ShipmentFeeList']['FieldValue'];
    }

    /**
     * Set the value of the ShipmentFeeList property.
     *
     * @param array shipmentFeeList
     * @return this instance
     */
    public function setShipmentFeeList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['ShipmentFeeList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear ShipmentFeeList.
     */
    public function unsetShipmentFeeList()
    {
        $this->_fields['ShipmentFeeList']['FieldValue'] = array();
    }

    /**
     * Check to see if ShipmentFeeList is set.
     *
     * @return true if ShipmentFeeList is set.
     */
    public function isSetShipmentFeeList()
    {
                return !empty($this->_fields['ShipmentFeeList']['FieldValue']);
            }

    /**
     * Add values for ShipmentFeeList, return this.
     *
     * @param shipmentFeeList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withShipmentFeeList()
    {
        foreach (func_get_args() as $ShipmentFeeList)
        {
            $this->_fields['ShipmentFeeList']['FieldValue'][] = $ShipmentFeeList;
        }
        return $this;
    }

    /**
     * Get the value of the ShipmentFeeAdjustmentList property.
     *
     * @return List<FeeComponent> ShipmentFeeAdjustmentList.
     */
    public function getShipmentFeeAdjustmentList()
    {
        if ($this->_fields['ShipmentFeeAdjustmentList']['FieldValue'] == null)
        {
            $this->_fields['ShipmentFeeAdjustmentList']['FieldValue'] = array();
        }
        return $this->_fields['ShipmentFeeAdjustmentList']['FieldValue'];
    }

    /**
     * Set the value of the ShipmentFeeAdjustmentList property.
     *
     * @param array shipmentFeeAdjustmentList
     * @return this instance
     */
    public function setShipmentFeeAdjustmentList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['ShipmentFeeAdjustmentList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear ShipmentFeeAdjustmentList.
     */
    public function unsetShipmentFeeAdjustmentList()
    {
        $this->_fields['ShipmentFeeAdjustmentList']['FieldValue'] = array();
    }

    /**
     * Check to see if ShipmentFeeAdjustmentList is set.
     *
     * @return true if ShipmentFeeAdjustmentList is set.
     */
    public function isSetShipmentFeeAdjustmentList()
    {
                return !empty($this->_fields['ShipmentFeeAdjustmentList']['FieldValue']);
            }

    /**
     * Add values for ShipmentFeeAdjustmentList, return this.
     *
     * @param shipmentFeeAdjustmentList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withShipmentFeeAdjustmentList()
    {
        foreach (func_get_args() as $ShipmentFeeAdjustmentList)
        {
            $this->_fields['ShipmentFeeAdjustmentList']['FieldValue'][] = $ShipmentFeeAdjustmentList;
        }
        return $this;
    }

    /**
     * Get the value of the OrderFeeList property.
     *
     * @return List<FeeComponent> OrderFeeList.
     */
    public function getOrderFeeList()
    {
        if ($this->_fields['OrderFeeList']['FieldValue'] == null)
        {
            $this->_fields['OrderFeeList']['FieldValue'] = array();
        }
        return $this->_fields['OrderFeeList']['FieldValue'];
    }

    /**
     * Set the value of the OrderFeeList property.
     *
     * @param array orderFeeList
     * @return this instance
     */
    public function setOrderFeeList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderFeeList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear OrderFeeList.
     */
    public function unsetOrderFeeList()
    {
        $this->_fields['OrderFeeList']['FieldValue'] = array();
    }

    /**
     * Check to see if OrderFeeList is set.
     *
     * @return true if OrderFeeList is set.
     */
    public function isSetOrderFeeList()
    {
                return !empty($this->_fields['OrderFeeList']['FieldValue']);
            }

    /**
     * Add values for OrderFeeList, return this.
     *
     * @param orderFeeList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withOrderFeeList()
    {
        foreach (func_get_args() as $OrderFeeList)
        {
            $this->_fields['OrderFeeList']['FieldValue'][] = $OrderFeeList;
        }
        return $this;
    }

    /**
     * Get the value of the OrderFeeAdjustmentList property.
     *
     * @return List<FeeComponent> OrderFeeAdjustmentList.
     */
    public function getOrderFeeAdjustmentList()
    {
        if ($this->_fields['OrderFeeAdjustmentList']['FieldValue'] == null)
        {
            $this->_fields['OrderFeeAdjustmentList']['FieldValue'] = array();
        }
        return $this->_fields['OrderFeeAdjustmentList']['FieldValue'];
    }

    /**
     * Set the value of the OrderFeeAdjustmentList property.
     *
     * @param array orderFeeAdjustmentList
     * @return this instance
     */
    public function setOrderFeeAdjustmentList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['OrderFeeAdjustmentList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear OrderFeeAdjustmentList.
     */
    public function unsetOrderFeeAdjustmentList()
    {
        $this->_fields['OrderFeeAdjustmentList']['FieldValue'] = array();
    }

    /**
     * Check to see if OrderFeeAdjustmentList is set.
     *
     * @return true if OrderFeeAdjustmentList is set.
     */
    public function isSetOrderFeeAdjustmentList()
    {
                return !empty($this->_fields['OrderFeeAdjustmentList']['FieldValue']);
            }

    /**
     * Add values for OrderFeeAdjustmentList, return this.
     *
     * @param orderFeeAdjustmentList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withOrderFeeAdjustmentList()
    {
        foreach (func_get_args() as $OrderFeeAdjustmentList)
        {
            $this->_fields['OrderFeeAdjustmentList']['FieldValue'][] = $OrderFeeAdjustmentList;
        }
        return $this;
    }

    /**
     * Get the value of the DirectPaymentList property.
     *
     * @return List<DirectPayment> DirectPaymentList.
     */
    public function getDirectPaymentList()
    {
        if ($this->_fields['DirectPaymentList']['FieldValue'] == null)
        {
            $this->_fields['DirectPaymentList']['FieldValue'] = array();
        }
        return $this->_fields['DirectPaymentList']['FieldValue'];
    }

    /**
     * Set the value of the DirectPaymentList property.
     *
     * @param array directPaymentList
     * @return this instance
     */
    public function setDirectPaymentList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['DirectPaymentList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear DirectPaymentList.
     */
    public function unsetDirectPaymentList()
    {
        $this->_fields['DirectPaymentList']['FieldValue'] = array();
    }

    /**
     * Check to see if DirectPaymentList is set.
     *
     * @return true if DirectPaymentList is set.
     */
    public function isSetDirectPaymentList()
    {
                return !empty($this->_fields['DirectPaymentList']['FieldValue']);
            }

    /**
     * Add values for DirectPaymentList, return this.
     *
     * @param directPaymentList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withDirectPaymentList()
    {
        foreach (func_get_args() as $DirectPaymentList)
        {
            $this->_fields['DirectPaymentList']['FieldValue'][] = $DirectPaymentList;
        }
        return $this;
    }

    /**
     * Get the value of the PostedDate property.
     *
     * @return XMLGregorianCalendar PostedDate.
     */
    public function getPostedDate()
    {
        return $this->_fields['PostedDate']['FieldValue'];
    }

    /**
     * Set the value of the PostedDate property.
     *
     * @param string postedDate
     * @return this instance
     */
    public function setPostedDate($value)
    {
        $this->_fields['PostedDate']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Check to see if PostedDate is set.
     *
     * @return true if PostedDate is set.
     */
    public function isSetPostedDate()
    {
                return !is_null($this->_fields['PostedDate']['FieldValue']);
            }

    /**
     * Set the value of PostedDate, return this.
     *
     * @param postedDate
     *             The new value to set.
     *
     * @return This instance.
     */
    public function withPostedDate($value)
    {
        $this->setPostedDate($value);
        return $this;
    }

    /**
     * Get the value of the ShipmentItemList property.
     *
     * @return List<ShipmentItem> ShipmentItemList.
     */
    public function getShipmentItemList()
    {
        if ($this->_fields['ShipmentItemList']['FieldValue'] == null)
        {
            $this->_fields['ShipmentItemList']['FieldValue'] = array();
        }
        return $this->_fields['ShipmentItemList']['FieldValue'];
    }

    /**
     * Set the value of the ShipmentItemList property.
     *
     * @param array shipmentItemList
     * @return this instance
     */
    public function setShipmentItemList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['ShipmentItemList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear ShipmentItemList.
     */
    public function unsetShipmentItemList()
    {
        $this->_fields['ShipmentItemList']['FieldValue'] = array();
    }

    /**
     * Check to see if ShipmentItemList is set.
     *
     * @return true if ShipmentItemList is set.
     */
    public function isSetShipmentItemList()
    {
                return !empty($this->_fields['ShipmentItemList']['FieldValue']);
            }

    /**
     * Add values for ShipmentItemList, return this.
     *
     * @param shipmentItemList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withShipmentItemList()
    {
        foreach (func_get_args() as $ShipmentItemList)
        {
            $this->_fields['ShipmentItemList']['FieldValue'][] = $ShipmentItemList;
        }
        return $this;
    }

    /**
     * Get the value of the ShipmentItemAdjustmentList property.
     *
     * @return List<ShipmentItem> ShipmentItemAdjustmentList.
     */
    public function getShipmentItemAdjustmentList()
    {
        if ($this->_fields['ShipmentItemAdjustmentList']['FieldValue'] == null)
        {
            $this->_fields['ShipmentItemAdjustmentList']['FieldValue'] = array();
        }
        return $this->_fields['ShipmentItemAdjustmentList']['FieldValue'];
    }

    /**
     * Set the value of the ShipmentItemAdjustmentList property.
     *
     * @param array shipmentItemAdjustmentList
     * @return this instance
     */
    public function setShipmentItemAdjustmentList($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['ShipmentItemAdjustmentList']['FieldValue'] = $value;
        return $this;
    }

    /**
     * Clear ShipmentItemAdjustmentList.
     */
    public function unsetShipmentItemAdjustmentList()
    {
        $this->_fields['ShipmentItemAdjustmentList']['FieldValue'] = array();
    }

    /**
     * Check to see if ShipmentItemAdjustmentList is set.
     *
     * @return true if ShipmentItemAdjustmentList is set.
     */
    public function isSetShipmentItemAdjustmentList()
    {
                return !empty($this->_fields['ShipmentItemAdjustmentList']['FieldValue']);
            }

    /**
     * Add values for ShipmentItemAdjustmentList, return this.
     *
     * @param shipmentItemAdjustmentList
     *             New values to add.
     *
     * @return This instance.
     */
    public function withShipmentItemAdjustmentList()
    {
        foreach (func_get_args() as $ShipmentItemAdjustmentList)
        {
            $this->_fields['ShipmentItemAdjustmentList']['FieldValue'][] = $ShipmentItemAdjustmentList;
        }
        return $this;
    }

}