diff --git a/src/MarketplaceWebServiceOrders/Client.php b/src/MarketplaceWebServiceOrders/Client.php
new file mode 100644
index 0000000..d3198db
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Client.php
@@ -0,0 +1,943 @@
+ null,
+ 'UserAgent' => 'MarketplaceWebServiceOrders PHP5 Library',
+ 'SignatureVersion' => 2,
+ 'SignatureMethod' => 'HmacSHA256',
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ 'Headers' => array()
+ );
+
+
+ /**
+ * Get Order
+ * This operation takes up to 50 order ids and returns the corresponding orders.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_GetOrder request or MarketplaceWebServiceOrders_Model_GetOrder object itself
+ * @see MarketplaceWebServiceOrders_Model_GetOrderRequest
+ * @return MarketplaceWebServiceOrders_Model_GetOrderResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function getOrder($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_GetOrderRequest)) {
+ require_once (dirname(__FILE__) . '/Model/GetOrderRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_GetOrderRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'GetOrder';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/GetOrderResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_GetOrderResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert GetOrderRequest to name value pairs
+ */
+ private function _convertGetOrder($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'GetOrder';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+ if ($request->isSetAmazonOrderId()) {
+ $parameters['AmazonOrderId'] = $request->getAmazonOrderId();
+ }
+
+ return $parameters;
+ }
+
+
+ /**
+ * Get Service Status
+ * Returns the service status of a particular MWS API section. The operation
+ * takes no input.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_GetServiceStatus request or MarketplaceWebServiceOrders_Model_GetServiceStatus object itself
+ * @see MarketplaceWebServiceOrders_Model_GetServiceStatusRequest
+ * @return MarketplaceWebServiceOrders_Model_GetServiceStatusResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function getServiceStatus($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_GetServiceStatusRequest)) {
+ require_once (dirname(__FILE__) . '/Model/GetServiceStatusRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_GetServiceStatusRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'GetServiceStatus';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/GetServiceStatusResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert GetServiceStatusRequest to name value pairs
+ */
+ private function _convertGetServiceStatus($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'GetServiceStatus';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+
+ return $parameters;
+ }
+
+
+ /**
+ * List Order Items
+ * This operation can be used to list the items of the order indicated by the
+ * given order id (only a single Amazon order id is allowed).
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrderItems request or MarketplaceWebServiceOrders_Model_ListOrderItems object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrderItemsRequest
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrderItems($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrderItemsRequest)) {
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_ListOrderItemsRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'ListOrderItems';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_ListOrderItemsResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert ListOrderItemsRequest to name value pairs
+ */
+ private function _convertListOrderItems($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'ListOrderItems';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+ if ($request->isSetAmazonOrderId()) {
+ $parameters['AmazonOrderId'] = $request->getAmazonOrderId();
+ }
+
+ return $parameters;
+ }
+
+
+ /**
+ * List Order Items By Next Token
+ * If ListOrderItems cannot return all the order items in one go, it will
+ * provide a nextToken. That nextToken can be used with this operation to
+ * retrive the next batch of items for that order.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken request or MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenRequest
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrderItemsByNextToken($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenRequest)) {
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsByNextTokenRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'ListOrderItemsByNextToken';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsByNextTokenResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert ListOrderItemsByNextTokenRequest to name value pairs
+ */
+ private function _convertListOrderItemsByNextToken($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'ListOrderItemsByNextToken';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+ if ($request->isSetNextToken()) {
+ $parameters['NextToken'] = $request->getNextToken();
+ }
+
+ return $parameters;
+ }
+
+
+ /**
+ * List Orders
+ * ListOrders can be used to find orders that meet the specified criteria.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrders request or MarketplaceWebServiceOrders_Model_ListOrders object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrdersRequest
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrders($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrdersRequest)) {
+ require_once (dirname(__FILE__) . '/Model/ListOrdersRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_ListOrdersRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'ListOrders';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/ListOrdersResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_ListOrdersResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert ListOrdersRequest to name value pairs
+ */
+ private function _convertListOrders($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'ListOrders';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+ if ($request->isSetCreatedAfter()) {
+ $parameters['CreatedAfter'] = $request->getCreatedAfter();
+ }
+ if ($request->isSetCreatedBefore()) {
+ $parameters['CreatedBefore'] = $request->getCreatedBefore();
+ }
+ if ($request->isSetLastUpdatedAfter()) {
+ $parameters['LastUpdatedAfter'] = $request->getLastUpdatedAfter();
+ }
+ if ($request->isSetLastUpdatedBefore()) {
+ $parameters['LastUpdatedBefore'] = $request->getLastUpdatedBefore();
+ }
+ if ($request->isSetOrderStatus()) {
+ $parameters['OrderStatus'] = $request->getOrderStatus();
+ }
+ if ($request->isSetMarketplaceId()) {
+ $parameters['MarketplaceId'] = $request->getMarketplaceId();
+ }
+ if ($request->isSetFulfillmentChannel()) {
+ $parameters['FulfillmentChannel'] = $request->getFulfillmentChannel();
+ }
+ if ($request->isSetPaymentMethod()) {
+ $parameters['PaymentMethod'] = $request->getPaymentMethod();
+ }
+ if ($request->isSetBuyerEmail()) {
+ $parameters['BuyerEmail'] = $request->getBuyerEmail();
+ }
+ if ($request->isSetSellerOrderId()) {
+ $parameters['SellerOrderId'] = $request->getSellerOrderId();
+ }
+ if ($request->isSetMaxResultsPerPage()) {
+ $parameters['MaxResultsPerPage'] = $request->getMaxResultsPerPage();
+ }
+ if ($request->isSetTFMShipmentStatus()) {
+ $parameters['TFMShipmentStatus'] = $request->getTFMShipmentStatus();
+ }
+
+ return $parameters;
+ }
+
+
+ /**
+ * List Orders By Next Token
+ * If ListOrders returns a nextToken, thus indicating that there are more orders
+ * than returned that matched the given filter criteria, ListOrdersByNextToken
+ * can be used to retrieve those other orders using that nextToken.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrdersByNextToken request or MarketplaceWebServiceOrders_Model_ListOrdersByNextToken object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrdersByNextToken($request)
+ {
+ if (!($request instanceof MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest)) {
+ require_once (dirname(__FILE__) . '/Model/ListOrdersByNextTokenRequest.php');
+ $request = new MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest($request);
+ }
+ $parameters = $request->toQueryParameterArray();
+ $parameters['Action'] = 'ListOrdersByNextToken';
+ $httpResponse = $this->_invoke($parameters);
+
+ require_once (dirname(__FILE__) . '/Model/ListOrdersByNextTokenResponse.php');
+ $response = MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
+ $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
+ return $response;
+ }
+
+
+ /**
+ * Convert ListOrdersByNextTokenRequest to name value pairs
+ */
+ private function _convertListOrdersByNextToken($request) {
+
+ $parameters = array();
+ $parameters['Action'] = 'ListOrdersByNextToken';
+ if ($request->isSetSellerId()) {
+ $parameters['SellerId'] = $request->getSellerId();
+ }
+ if ($request->isSetMWSAuthToken()) {
+ $parameters['MWSAuthToken'] = $request->getMWSAuthToken();
+ }
+ if ($request->isSetNextToken()) {
+ $parameters['NextToken'] = $request->getNextToken();
+ }
+
+ return $parameters;
+ }
+
+
+
+ /**
+ * Construct new Client
+ *
+ * @param string $awsAccessKeyId AWS Access Key ID
+ * @param string $awsSecretAccessKey AWS Secret Access Key
+ * @param array $config configuration options.
+ * Valid configuration options are:
+ *
+ * - ServiceURL
+ * - UserAgent
+ * - SignatureVersion
+ * - TimesRetryOnError
+ * - ProxyHost
+ * - ProxyPort
+ * - ProxyUsername
-
+ *
- ProxyPassword
-
+ *
- MaxErrorRetry
+ *
+ */
+ public function __construct($awsAccessKeyId, $awsSecretAccessKey, $applicationName, $applicationVersion, $config = null)
+ {
+ if (version_compare(PHP_VERSION, '5.6.0', '<')) {
+ iconv_set_encoding('output_encoding', 'UTF-8');
+ iconv_set_encoding('input_encoding', 'UTF-8');
+ iconv_set_encoding('internal_encoding', 'UTF-8');
+ }
+
+ $this->_awsAccessKeyId = $awsAccessKeyId;
+ $this->_awsSecretAccessKey = $awsSecretAccessKey;
+ if (!is_null($config)) $this->_config = array_merge($this->_config, $config);
+ $this->setUserAgentHeader($applicationName, $applicationVersion);
+ }
+
+ private function setUserAgentHeader(
+ $applicationName,
+ $applicationVersion,
+ $attributes = null) {
+
+ if (is_null($attributes)) {
+ $attributes = array ();
+ }
+
+ $this->_config['UserAgent'] =
+ $this->constructUserAgentHeader($applicationName, $applicationVersion, $attributes);
+ }
+
+ private function constructUserAgentHeader($applicationName, $applicationVersion, $attributes = null) {
+ if (is_null($applicationName) || $applicationName === "") {
+ throw new InvalidArgumentException('$applicationName cannot be null');
+ }
+
+ if (is_null($applicationVersion) || $applicationVersion === "") {
+ throw new InvalidArgumentException('$applicationVersion cannot be null');
+ }
+
+ $userAgent =
+ $this->quoteApplicationName($applicationName)
+ . '/'
+ . $this->quoteApplicationVersion($applicationVersion);
+
+ $userAgent .= ' (';
+ $userAgent .= 'Language=PHP/' . phpversion();
+ $userAgent .= '; ';
+ $userAgent .= 'Platform=' . php_uname('s') . '/' . php_uname('m') . '/' . php_uname('r');
+ $userAgent .= '; ';
+ $userAgent .= 'MWSClientVersion=' . self::MWS_CLIENT_VERSION;
+
+ foreach ($attributes as $key => $value) {
+ if (empty($value)) {
+ throw new InvalidArgumentException("Value for $key cannot be null or empty.");
+ }
+
+ $userAgent .= '; '
+ . $this->quoteAttributeName($key)
+ . '='
+ . $this->quoteAttributeValue($value);
+ }
+
+ $userAgent .= ')';
+
+ return $userAgent;
+ }
+
+ /**
+ * Collapse multiple whitespace characters into a single ' ' character.
+ * @param $s
+ * @return string
+ */
+ private function collapseWhitespace($s) {
+ return preg_replace('/ {2,}|\s/', ' ', $s);
+ }
+
+ /**
+ * Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
+ * and '/' characters from a string.
+ * @param $s
+ * @return string
+ */
+ private function quoteApplicationName($s) {
+ $quotedString = $this->collapseWhitespace($s);
+ $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
+ $quotedString = preg_replace('/\//', '\\/', $quotedString);
+
+ return $quotedString;
+ }
+
+ /**
+ * Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
+ * and '(' characters from a string.
+ *
+ * @param $s
+ * @return string
+ */
+ private function quoteApplicationVersion($s) {
+ $quotedString = $this->collapseWhitespace($s);
+ $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
+ $quotedString = preg_replace('/\\(/', '\\(', $quotedString);
+
+ return $quotedString;
+ }
+
+ /**
+ * Collapse multiple whitespace characters into a single ' ' and backslash escape '\',
+ * and '=' characters from a string.
+ *
+ * @param $s
+ * @return unknown_type
+ */
+ private function quoteAttributeName($s) {
+ $quotedString = $this->collapseWhitespace($s);
+ $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
+ $quotedString = preg_replace('/\\=/', '\\=', $quotedString);
+
+ return $quotedString;
+ }
+
+ /**
+ * Collapse multiple whitespace characters into a single ' ' and backslash escape ';', '\',
+ * and ')' characters from a string.
+ *
+ * @param $s
+ * @return unknown_type
+ */
+ private function quoteAttributeValue($s) {
+ $quotedString = $this->collapseWhitespace($s);
+ $quotedString = preg_replace('/\\\\/', '\\\\\\\\', $quotedString);
+ $quotedString = preg_replace('/\\;/', '\\;', $quotedString);
+ $quotedString = preg_replace('/\\)/', '\\)', $quotedString);
+
+ return $quotedString;
+ }
+
+
+ // Private API ------------------------------------------------------------//
+
+ /**
+ * Invoke request and return response
+ */
+ private function _invoke(array $parameters)
+ {
+ try {
+ if (empty($this->_config['ServiceURL'])) {
+ require_once (dirname(__FILE__) . '/Exception.php');
+ throw new MarketplaceWebServiceOrders_Exception(
+ array ('ErrorCode' => 'InvalidServiceURL',
+ 'Message' => "Missing serviceUrl configuration value. You may obtain a list of valid MWS URLs by consulting the MWS Developer's Guide, or reviewing the sample code published along side this library."));
+ }
+ $parameters = $this->_addRequiredParameters($parameters);
+ $retries = 0;
+ for (;;) {
+ $response = $this->_httpPost($parameters);
+ $status = $response['Status'];
+ if ($status == 200) {
+ return array('ResponseBody' => $response['ResponseBody'],
+ 'ResponseHeaderMetadata' => $response['ResponseHeaderMetadata']);
+ }
+ if ($status == 500 && $this->_pauseOnRetry(++$retries)) {
+ continue;
+ }
+ throw $this->_reportAnyErrors($response['ResponseBody'],
+ $status, $response['ResponseHeaderMetadata']);
+ }
+ } catch (MarketplaceWebServiceOrders_Exception $se) {
+ throw $se;
+ } catch (Exception $t) {
+ require_once (dirname(__FILE__) . '/Exception.php');
+ throw new MarketplaceWebServiceOrders_Exception(array('Exception' => $t, 'Message' => $t->getMessage()));
+ }
+ }
+
+ /**
+ * Look for additional error strings in the response and return formatted exception
+ */
+ private function _reportAnyErrors($responseBody, $status, $responseHeaderMetadata, Exception $e = null)
+ {
+ $exProps = array();
+ $exProps["StatusCode"] = $status;
+ $exProps["ResponseHeaderMetadata"] = $responseHeaderMetadata;
+
+ libxml_use_internal_errors(true); // Silence XML parsing errors
+ $xmlBody = simplexml_load_string($responseBody);
+
+ if ($xmlBody !== false) { // Check XML loaded without errors
+ $exProps["XML"] = $responseBody;
+ $exProps["ErrorCode"] = $xmlBody->Error->Code;
+ $exProps["Message"] = $xmlBody->Error->Message;
+ $exProps["ErrorType"] = !empty($xmlBody->Error->Type) ? $xmlBody->Error->Type : "Unknown";
+ $exProps["RequestId"] = !empty($xmlBody->RequestID) ? $xmlBody->RequestID : $xmlBody->RequestId; // 'd' in RequestId is sometimes capitalized
+ } else { // We got bad XML in response, just throw a generic exception
+ $exProps["Message"] = "Internal Error";
+ }
+
+ require_once (dirname(__FILE__) . '/Exception.php');
+ return new MarketplaceWebServiceOrders_Exception($exProps);
+ }
+
+
+
+ /**
+ * Perform HTTP post with exponential retries on error 500 and 503
+ *
+ */
+ private function _httpPost(array $parameters)
+ {
+ $config = $this->_config;
+ $query = $this->_getParametersAsString($parameters);
+ $url = parse_url ($config['ServiceURL']);
+ $uri = array_key_exists('path', $url) ? $url['path'] : null;
+ if (!isset ($uri)) {
+ $uri = "/";
+ }
+
+ switch ($url['scheme']) {
+ case 'https':
+ $scheme = 'https://';
+ $port = isset($url['port']) ? $url['port'] : 443;
+ break;
+ default:
+ $scheme = 'http://';
+ $port = isset($url['port']) ? $url['port'] : 80;
+ }
+
+ $allHeaders = $config['Headers'];
+ $allHeaders['Content-Type'] = "application/x-www-form-urlencoded; charset=utf-8"; // We need to make sure to set utf-8 encoding here
+ $allHeaders['Expect'] = null; // Don't expect 100 Continue
+ $allHeadersStr = array();
+ foreach($allHeaders as $name => $val) {
+ $str = $name . ": ";
+ if(isset($val)) {
+ $str = $str . $val;
+ }
+ $allHeadersStr[] = $str;
+ }
+
+ $ch = curl_init();
+ curl_setopt($ch, CURLOPT_URL, $scheme . $url['host'] . $uri);
+ curl_setopt($ch, CURLOPT_PORT, $port);
+ $this->setSSLCurlOptions($ch);
+ curl_setopt($ch, CURLOPT_USERAGENT, $this->_config['UserAgent']);
+ curl_setopt($ch, CURLOPT_POST, true);
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
+ curl_setopt($ch, CURLOPT_HTTPHEADER, $allHeadersStr);
+ curl_setopt($ch, CURLOPT_HEADER, true);
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+ if ($config['ProxyHost'] != null && $config['ProxyPort'] != -1)
+ {
+ curl_setopt($ch, CURLOPT_PROXY, $config['ProxyHost'] . ':' . $config['ProxyPort']);
+ }
+ if ($config['ProxyUsername'] != null && $config['ProxyPassword'] != null)
+ {
+ curl_setopt($ch, CURLOPT_PROXYUSERPWD, $config['ProxyUsername'] . ':' . $config['ProxyPassword']);
+ }
+
+ $response = "";
+ $response = curl_exec($ch);
+
+ if($response === false) {
+ require_once (dirname(__FILE__) . '/Exception.php');
+ $exProps["Message"] = curl_error($ch);
+ $exProps["ErrorType"] = "HTTP";
+ curl_close($ch);
+ throw new MarketplaceWebServiceOrders_Exception($exProps);
+ }
+
+ curl_close($ch);
+ return $this->_extractHeadersAndBody($response);
+ }
+
+ /**
+ * This method will attempt to extract the headers and body of our response.
+ * We need to split the raw response string by 2 'CRLF's. 2 'CRLF's should indicate the separation of the response header
+ * from the response body. However in our case we have some circumstances (certain client proxies) that result in
+ * multiple responses concatenated. We could encounter a response like
+ *
+ * HTTP/1.1 100 Continue
+ *
+ * HTTP/1.1 200 OK
+ * Date: Tue, 01 Apr 2014 13:02:51 GMT
+ * Content-Type: text/html; charset=iso-8859-1
+ * Content-Length: 12605
+ *
+ * ... body ..
+ *
+ * This method will throw away extra response status lines and attempt to find the first full response headers and body
+ *
+ * return [status, body, ResponseHeaderMetadata]
+ */
+ private function _extractHeadersAndBody($response){
+ //First split by 2 'CRLF'
+ $responseComponents = preg_split("/(?:\r?\n){2}/", $response, 2);
+ $body = null;
+ for ($count = 0;
+ $count < count($responseComponents) && $body == null;
+ $count++) {
+
+ $headers = $responseComponents[$count];
+ $responseStatus = $this->_extractHttpStatusCode($headers);
+
+ if($responseStatus != null &&
+ $this->_httpHeadersHaveContent($headers)){
+
+ $responseHeaderMetadata = $this->_extractResponseHeaderMetadata($headers);
+ //The body will be the next item in the responseComponents array
+ $body = $responseComponents[++$count];
+ }
+ }
+
+ //If the body is null here then we were unable to parse the response and will throw an exception
+ if($body == null){
+ require_once (dirname(__FILE__) . '/Exception.php');
+ $exProps["Message"] = "Failed to parse valid HTTP response (" . $response . ")";
+ $exProps["ErrorType"] = "HTTP";
+ throw new MarketplaceWebServiceOrders_Exception($exProps);
+ }
+
+ return array(
+ 'Status' => $responseStatus,
+ 'ResponseBody' => $body,
+ 'ResponseHeaderMetadata' => $responseHeaderMetadata);
+ }
+
+ /**
+ * parse the status line of a header string for the proper format and
+ * return the status code
+ *
+ * Example: HTTP/1.1 200 OK
+ * ...
+ * returns String statusCode or null if the status line can't be parsed
+ */
+ private function _extractHttpStatusCode($headers){
+ $statusCode = null;
+ if (1 === preg_match("/(\\S+) +(\\d+) +([^\n\r]+)(?:\r?\n|\r)/", $headers, $matches)) {
+ //The matches array [entireMatchString, protocol, statusCode, the rest]
+ $statusCode = $matches[2];
+ }
+ return $statusCode;
+ }
+
+ /**
+ * Tries to determine some valid headers indicating this response
+ * has content. In this case
+ * return true if there is a valid "Content-Length" or "Transfer-Encoding" header
+ */
+ private function _httpHeadersHaveContent($headers){
+ return (1 === preg_match("/[cC]ontent-[lL]ength: +(?:\\d+)(?:\\r?\\n|\\r|$)/", $headers) ||
+ 1 === preg_match("/Transfer-Encoding: +(?!identity[\r\n;= ])(?:[^\r\n]+)(?:\r?\n|\r|$)/i", $headers));
+ }
+
+ /**
+ * extract a ResponseHeaderMetadata object from the raw headers
+ */
+ private function _extractResponseHeaderMetadata($rawHeaders){
+ $inputHeaders = preg_split("/\r\n|\n|\r/", $rawHeaders);
+ $headers = array();
+ $headers['x-mws-request-id'] = null;
+ $headers['x-mws-response-context'] = null;
+ $headers['x-mws-timestamp'] = null;
+ $headers['x-mws-quota-max'] = null;
+ $headers['x-mws-quota-remaining'] = null;
+ $headers['x-mws-quota-resetsOn'] = null;
+
+ foreach ($inputHeaders as $currentHeader) {
+ $keyValue = explode (': ', $currentHeader);
+ if (isset($keyValue[1])) {
+ list ($key, $value) = $keyValue;
+ if (isset($headers[$key]) && $headers[$key]!==null) {
+ $headers[$key] = $headers[$key] . "," . $value;
+ } else {
+ $headers[$key] = $value;
+ }
+ }
+ }
+
+ require_once(dirname(__FILE__) . '/Model/ResponseHeaderMetadata.php');
+ return new MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata(
+ $headers['x-mws-request-id'],
+ $headers['x-mws-response-context'],
+ $headers['x-mws-timestamp'],
+ $headers['x-mws-quota-max'],
+ $headers['x-mws-quota-remaining'],
+ $headers['x-mws-quota-resetsOn']);
+ }
+
+ /**
+ * Set curl options relating to SSL. Protected to allow overriding.
+ * @param $ch curl handle
+ */
+ protected function setSSLCurlOptions($ch) {
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
+ }
+
+ /**
+ * Exponential sleep on failed request
+ *
+ * @param retries current retry
+ */
+ private function _pauseOnRetry($retries)
+ {
+ if ($retries <= $this->_config['MaxErrorRetry']) {
+ $delay = (int) (pow(4, $retries) * 100000);
+ usleep($delay);
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * Add authentication related and version parameters
+ */
+ private function _addRequiredParameters(array $parameters)
+ {
+ $parameters['AWSAccessKeyId'] = $this->_awsAccessKeyId;
+ $parameters['Timestamp'] = $this->_getFormattedTimestamp();
+ $parameters['Version'] = self::SERVICE_VERSION;
+ $parameters['SignatureVersion'] = $this->_config['SignatureVersion'];
+ if ($parameters['SignatureVersion'] > 1) {
+ $parameters['SignatureMethod'] = $this->_config['SignatureMethod'];
+ }
+ $parameters['Signature'] = $this->_signParameters($parameters, $this->_awsSecretAccessKey);
+
+ return $parameters;
+ }
+
+ /**
+ * Convert paremeters to Url encoded query string
+ */
+ private function _getParametersAsString(array $parameters)
+ {
+ $queryParameters = array();
+ foreach ($parameters as $key => $value) {
+ $queryParameters[] = $key . '=' . $this->_urlencode($value);
+ }
+ return implode('&', $queryParameters);
+ }
+
+
+ /**
+ * Computes RFC 2104-compliant HMAC signature for request parameters
+ * Implements AWS Signature, as per following spec:
+ *
+ * If Signature Version is 0, it signs concatenated Action and Timestamp
+ *
+ * If Signature Version is 1, it performs the following:
+ *
+ * Sorts all parameters (including SignatureVersion and excluding Signature,
+ * the value of which is being created), ignoring case.
+ *
+ * Iterate over the sorted list and append the parameter name (in original case)
+ * and then its value. It will not URL-encode the parameter values before
+ * constructing this string. There are no separators.
+ *
+ * If Signature Version is 2, string to sign is based on following:
+ *
+ * 1. The HTTP Request Method followed by an ASCII newline (%0A)
+ * 2. The HTTP Host header in the form of lowercase host, followed by an ASCII newline.
+ * 3. The URL encoded HTTP absolute path component of the URI
+ * (up to but not including the query string parameters);
+ * if this is empty use a forward '/'. This parameter is followed by an ASCII newline.
+ * 4. The concatenation of all query string components (names and values)
+ * as UTF-8 characters which are URL encoded as per RFC 3986
+ * (hex characters MUST be uppercase), sorted using lexicographic byte ordering.
+ * Parameter names are separated from their values by the '=' character
+ * (ASCII character 61), even if the value is empty.
+ * Pairs of parameter and values are separated by the '&' character (ASCII code 38).
+ *
+ */
+ private function _signParameters(array $parameters, $key) {
+ $signatureVersion = $parameters['SignatureVersion'];
+ $algorithm = "HmacSHA1";
+ $stringToSign = null;
+ if (2 == $signatureVersion) {
+ $algorithm = $this->_config['SignatureMethod'];
+ $parameters['SignatureMethod'] = $algorithm;
+ $stringToSign = $this->_calculateStringToSignV2($parameters);
+ } else {
+ throw new Exception("Invalid Signature Version specified");
+ }
+ return $this->_sign($stringToSign, $key, $algorithm);
+ }
+
+ /**
+ * Calculate String to Sign for SignatureVersion 2
+ * @param array $parameters request parameters
+ * @return String to Sign
+ */
+ private function _calculateStringToSignV2(array $parameters) {
+ $data = 'POST';
+ $data .= "\n";
+ $endpoint = parse_url ($this->_config['ServiceURL']);
+ $data .= $endpoint['host'];
+ $data .= "\n";
+ $uri = array_key_exists('path', $endpoint) ? $endpoint['path'] : null;
+ if (!isset ($uri)) {
+ $uri = "/";
+ }
+ $uriencoded = implode("/", array_map(array($this, "_urlencode"), explode("/", $uri)));
+ $data .= $uriencoded;
+ $data .= "\n";
+ uksort($parameters, 'strcmp');
+ $data .= $this->_getParametersAsString($parameters);
+ return $data;
+ }
+
+ private function _urlencode($value) {
+ return str_replace('%7E', '~', rawurlencode($value));
+ }
+
+
+ /**
+ * Computes RFC 2104-compliant HMAC signature.
+ */
+ private function _sign($data, $key, $algorithm)
+ {
+ if ($algorithm === 'HmacSHA1') {
+ $hash = 'sha1';
+ } else if ($algorithm === 'HmacSHA256') {
+ $hash = 'sha256';
+ } else {
+ throw new Exception ("Non-supported signing method specified");
+ }
+ return base64_encode(
+ hash_hmac($hash, $data, $key, true)
+ );
+ }
+
+
+ /**
+ * Formats date as ISO 8601 timestamp
+ */
+ private function _getFormattedTimestamp()
+ {
+ return gmdate("Y-m-d\TH:i:s.\\0\\0\\0\\Z", time());
+ }
+
+ /**
+ * Formats date as ISO 8601 timestamp
+ */
+ private function getFormattedTimestamp($dateTime)
+ {
+ return $dateTime->format(DATE_ISO8601);
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Exception.php b/src/MarketplaceWebServiceOrders/Exception.php
new file mode 100644
index 0000000..0eb4796
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Exception.php
@@ -0,0 +1,151 @@
+
+ * Message - (string) text message for an exception
+ * StatusCode - (int) HTTP status code at the time of exception
+ * ErrorCode - (string) specific error code returned by the service
+ * ErrorType - (string) Possible types: Sender, Receiver or Unknown
+ * RequestId - (string) request id returned by the service
+ * XML - (string) compete xml response at the time of exception
+ * Exception - (Exception) inner exception if any
+ *
+ *
+ */
+ public function __construct(array $errorInfo = array())
+ {
+ $this->_message = $errorInfo["Message"];
+ parent::__construct($this->_message);
+ if (array_key_exists("Exception", $errorInfo)) {
+ $exception = $errorInfo["Exception"];
+ if ($exception instanceof MarketplaceWebServiceOrders_Exception) {
+ $this->_statusCode = $exception->getStatusCode();
+ $this->_errorCode = $exception->getErrorCode();
+ $this->_errorType = $exception->getErrorType();
+ $this->_requestId = $exception->getRequestId();
+ $this->_xml= $exception->getXML();
+ $this->_responseHeaderMetadata = $exception->getResponseHeaderMetadata();
+ }
+ } else {
+ $this->_statusCode = $this->arr_val($errorInfo, "StatusCode");
+ $this->_errorCode = $this->arr_val($errorInfo, "ErrorCode");
+ $this->_errorType = $this->arr_val($errorInfo, "ErrorType");
+ $this->_requestId = $this->arr_val($errorInfo, "RequestId");
+ $this->_xml = $this->arr_val($errorInfo, "XML");
+ $this->_responseHeaderMetadata = $this->arr_val($errorInfo, "ResponseHeaderMetadata");
+ }
+ }
+
+ private function arr_val($arr, $key) {
+ if(array_key_exists($key, $arr)) {
+ return $arr[$key];
+ } else {
+ return null;
+ }
+ }
+
+ /**
+ * Gets error type returned by the service if available.
+ *
+ * @return string Error Code returned by the service
+ */
+ public function getErrorCode(){
+ return $this->_errorCode;
+ }
+
+ /**
+ * Gets error type returned by the service.
+ *
+ * @return string Error Type returned by the service.
+ * Possible types: Sender, Receiver or Unknown
+ */
+ public function getErrorType(){
+ return $this->_errorType;
+ }
+
+ /**
+ * Gets error message
+ *
+ * @return string Error message
+ */
+ public function getErrorMessage() {
+ return $this->_message;
+ }
+
+ /**
+ * Gets status code returned by the service if available. If status
+ * code is set to -1, it means that status code was unavailable at the
+ * time exception was thrown
+ *
+ * @return int status code returned by the service
+ */
+ public function getStatusCode() {
+ return $this->_statusCode;
+ }
+
+ /**
+ * Gets XML returned by the service if available.
+ *
+ * @return string XML returned by the service
+ */
+ public function getXML() {
+ return $this->_xml;
+ }
+
+ /**
+ * Gets Request ID returned by the service if available.
+ *
+ * @return string Request ID returned by the service
+ */
+ public function getRequestId() {
+ return $this->_requestId;
+ }
+
+ public function getResponseHeaderMetadata() {
+ return $this->_responseHeaderMetadata;
+ }
+}
diff --git a/src/MarketplaceWebServiceOrders/Interface.php b/src/MarketplaceWebServiceOrders/Interface.php
new file mode 100644
index 0000000..04eda64
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Interface.php
@@ -0,0 +1,106 @@
+_invoke('GetOrder'));
+ }
+
+ /**
+ * Get Service Status
+ * Returns the service status of a particular MWS API section. The operation
+ * takes no input.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_GetServiceStatus request or MarketplaceWebServiceOrders_Model_GetServiceStatus object itself
+ * @see MarketplaceWebServiceOrders_Model_GetServiceStatus
+ * @return MarketplaceWebServiceOrders_Model_GetServiceStatusResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function getServiceStatus($request)
+ {
+ require_once (dirname(__FILE__) . '/Model/GetServiceStatusResponse.php');
+ return MarketplaceWebServiceOrders_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus'));
+ }
+
+ /**
+ * List Order Items
+ * This operation can be used to list the items of the order indicated by the
+ * given order id (only a single Amazon order id is allowed).
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrderItems request or MarketplaceWebServiceOrders_Model_ListOrderItems object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrderItems
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrderItems($request)
+ {
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsResponse.php');
+ return MarketplaceWebServiceOrders_Model_ListOrderItemsResponse::fromXML($this->_invoke('ListOrderItems'));
+ }
+
+ /**
+ * List Order Items By Next Token
+ * If ListOrderItems cannot return all the order items in one go, it will
+ * provide a nextToken. That nextToken can be used with this operation to
+ * retrive the next batch of items for that order.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken request or MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrderItemsByNextToken($request)
+ {
+ require_once (dirname(__FILE__) . '/Model/ListOrderItemsByNextTokenResponse.php');
+ return MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse::fromXML($this->_invoke('ListOrderItemsByNextToken'));
+ }
+
+ /**
+ * List Orders
+ * ListOrders can be used to find orders that meet the specified criteria.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrders request or MarketplaceWebServiceOrders_Model_ListOrders object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrders
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrders($request)
+ {
+ require_once (dirname(__FILE__) . '/Model/ListOrdersResponse.php');
+ return MarketplaceWebServiceOrders_Model_ListOrdersResponse::fromXML($this->_invoke('ListOrders'));
+ }
+
+ /**
+ * List Orders By Next Token
+ * If ListOrders returns a nextToken, thus indicating that there are more orders
+ * than returned that matched the given filter criteria, ListOrdersByNextToken
+ * can be used to retrieve those other orders using that nextToken.
+ *
+ * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Model_ListOrdersByNextToken request or MarketplaceWebServiceOrders_Model_ListOrdersByNextToken object itself
+ * @see MarketplaceWebServiceOrders_Model_ListOrdersByNextToken
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse
+ *
+ * @throws MarketplaceWebServiceOrders_Exception
+ */
+ public function listOrdersByNextToken($request)
+ {
+ require_once (dirname(__FILE__) . '/Model/ListOrdersByNextTokenResponse.php');
+ return MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse::fromXML($this->_invoke('ListOrdersByNextToken'));
+ }
+
+ // Private API ------------------------------------------------------------//
+
+ private function _invoke($actionName)
+ {
+ return $xml = file_get_contents(dirname(__FILE__) . '/Mock/' . $actionName . 'Response.xml', /** search include path */ TRUE);
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Mock/ErrorResponse.xml b/src/MarketplaceWebServiceOrders/Mock/ErrorResponse.xml
new file mode 100644
index 0000000..fd565a8
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/ErrorResponse.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ Sender
+ string
+ string
+
+
+
+
+
+ string
+
\ No newline at end of file
diff --git a/src/MarketplaceWebServiceOrders/Mock/GetOrderResponse.xml b/src/MarketplaceWebServiceOrders/Mock/GetOrderResponse.xml
new file mode 100644
index 0000000..2121cca
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/GetOrderResponse.xml
@@ -0,0 +1,83 @@
+
+
+
+
+
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ String
+ String
+ String
+ String
+ String
+
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+
+
+ String
+ String
+
+ 1
+ 1
+
+
+
+ String
+ String
+
+ String
+
+
+ String
+
+ String
+
+ String
+ String
+ String
+ String
+
+ String
+ String
+
+
+ String
+ String
+
+
+
+ String
+ true
+ String
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ true
+ String
+ true
+ true
+ String
+ true
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Mock/GetServiceStatusResponse.xml b/src/MarketplaceWebServiceOrders/Mock/GetServiceStatusResponse.xml
new file mode 100644
index 0000000..1d3d3ef
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/GetServiceStatusResponse.xml
@@ -0,0 +1,17 @@
+
+
+
+ String
+ 1969-07-21T02:56:03Z
+ String
+
+
+ String
+ String
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsByNextTokenResponse.xml b/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsByNextTokenResponse.xml
new file mode 100644
index 0000000..4c65ea6
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsByNextTokenResponse.xml
@@ -0,0 +1,95 @@
+
+
+
+ String
+ String
+
+
+ String
+ String
+ String
+ String
+ 1
+ 1
+
+ 1
+
+
+ 1
+
+ String
+ String
+
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+ true
+ String
+ String
+
+ String
+ String
+ String
+ String
+
+ String
+ String
+ String
+ String
+ String
+ String
+
+ String
+
+
+ String
+ String
+
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsResponse.xml b/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsResponse.xml
new file mode 100644
index 0000000..afb2134
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/ListOrderItemsResponse.xml
@@ -0,0 +1,95 @@
+
+
+
+ String
+ String
+
+
+ String
+ String
+ String
+ String
+ 1
+ 1
+
+ 1
+
+
+ 1
+
+ String
+ String
+
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+
+ String
+
+
+ String
+ String
+
+
+ String
+ String
+
+ true
+ String
+ String
+
+ String
+ String
+ String
+ String
+
+ String
+ String
+ String
+ String
+ String
+ String
+
+ String
+
+
+ String
+ String
+
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Mock/ListOrdersByNextTokenResponse.xml b/src/MarketplaceWebServiceOrders/Mock/ListOrdersByNextTokenResponse.xml
new file mode 100644
index 0000000..82fad71
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/ListOrdersByNextTokenResponse.xml
@@ -0,0 +1,86 @@
+
+
+
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+
+
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ String
+ String
+ String
+ String
+ String
+
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+
+
+ String
+ String
+
+ 1
+ 1
+
+
+
+ String
+ String
+
+ String
+
+
+ String
+
+ String
+
+ String
+ String
+ String
+ String
+
+ String
+ String
+
+
+ String
+ String
+
+
+
+ String
+ true
+ String
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ true
+ String
+ true
+ true
+ String
+ true
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Mock/ListOrdersResponse.xml b/src/MarketplaceWebServiceOrders/Mock/ListOrdersResponse.xml
new file mode 100644
index 0000000..1df0996
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Mock/ListOrdersResponse.xml
@@ -0,0 +1,86 @@
+
+
+
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+
+
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ String
+ String
+ String
+ String
+ String
+
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+ String
+
+
+ String
+ String
+
+ 1
+ 1
+
+
+
+ String
+ String
+
+ String
+
+
+ String
+
+ String
+
+ String
+ String
+ String
+ String
+
+ String
+ String
+
+
+ String
+ String
+
+
+
+ String
+ true
+ String
+ String
+ String
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ 1969-07-21T02:56:03Z
+ true
+ String
+ true
+ true
+ String
+ true
+
+
+
+
+ String
+
+
diff --git a/src/MarketplaceWebServiceOrders/Model.php b/src/MarketplaceWebServiceOrders/Model.php
new file mode 100644
index 0000000..85921ae
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model.php
@@ -0,0 +1,443 @@
+_isAssociativeArray($data)) {
+ $this->_fromAssociativeArray($data);
+ } elseif ($this->_isDOMElement($data)) {
+ $this->_fromDOMElement($data);
+ } else {
+ throw new Exception ("Unable to construct from provided data. Please be sure to pass associative array or DOMElement");
+ }
+ }
+ }
+
+ /**
+ * Support for virtual properties getters.
+ *
+ * Virtual property call example:
+ *
+ * $action->Property
+ *
+ * Direct getter(preferred):
+ *
+ * $action->getProperty()
+ *
+ * @param string $propertyName name of the property
+ */
+ public function __get($propertyName)
+ {
+ $getter = "get$propertyName";
+ return $this->$getter();
+ }
+
+ /**
+ * Support for virtual properties setters.
+ *
+ * Virtual property call example:
+ *
+ * $action->Property = 'ABC'
+ *
+ * Direct setter (preferred):
+ *
+ * $action->setProperty('ABC')
+ *
+ * @param string $propertyName name of the property
+ */
+ public function __set($propertyName, $propertyValue)
+ {
+ $setter = "set$propertyName";
+ $this->$setter($propertyValue);
+ return $this;
+ }
+
+ /**
+ * Construct from DOMElement
+ *
+ * This function iterates over object fields and queries XML
+ * for corresponding tag value. If query succeeds, value extracted
+ * from xml, and field value properly constructed based on field type.
+ *
+ * Field types defined as arrays always constructed as arrays,
+ * even if XML contains a single element - to make sure that
+ * data structure is predictable, and no is_array checks are
+ * required.
+ *
+ * @param DOMElement $dom XML element to construct from
+ */
+ private function _fromDOMElement(DOMElement $dom)
+ {
+ $xpath = new DOMXPath($dom->ownerDocument);
+
+ foreach ($this->_fields as $fieldName => $field) {
+ $fieldType = $field['FieldType'];
+ if (is_array($fieldType)) {
+ if ($fieldType[0] == "object") {
+ $elements = $dom->childNodes;
+ for($i = 0 ; $i < $elements->length; $i++) {
+ $this->_fields[$fieldName]['FieldValue'][] = $elements->item($i);
+ }
+ } else if ($this->_isComplexType($fieldType[0])) {
+ if (isset($field['ListMemberName'])) {
+ $memberName = $field['ListMemberName'];
+ $elements = $xpath->query("./*[local-name()='$fieldName']/*[local-name()='$memberName']", $dom);
+ } else {
+ $elements = $xpath->query("./*[local-name()='$fieldName']", $dom);
+ }
+ if ($elements->length >= 1) {
+ require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $fieldType[0]) . ".php");
+ foreach ($elements as $element) {
+ $this->_fields[$fieldName]['FieldValue'][] = new $fieldType[0]($element);
+ }
+ }
+ } else {
+ if (isset($field['ListMemberName'])) {
+ $memberName = $field['ListMemberName'];
+ $elements = $xpath->query("./*[local-name()='$fieldName']/*[local-name()='$memberName']", $dom);
+ } else {
+ $elements = $xpath->query("./*[local-name()='$fieldName']", $dom);
+ }
+ if ($elements->length >= 1) {
+ foreach ($elements as $element) {
+ $text = $xpath->query('./text()', $element);
+ $this->_fields[$fieldName]['FieldValue'][] = $text->item(0)->data;
+ }
+ }
+ }
+ } else {
+ if ($this->_isComplexType($fieldType)) {
+ $elements = $xpath->query("./*[local-name()='$fieldName']", $dom);
+ if ($elements->length == 1) {
+ require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $fieldType) . ".php");
+ $this->_fields[$fieldName]['FieldValue'] = new $fieldType($elements->item(0));
+ }
+ } else {
+ if($fieldType[0] == "@") {
+ $attribute = $xpath->query("./@$fieldName", $dom);
+ if ($attribute->length == 1) {
+ $this->_fields[$fieldName]['FieldValue'] = $attribute->item(0)->nodeValue;
+ if (isset ($this->_fields['Value'])) {
+ $parentNode = $attribute->item(0)->parentNode;
+ $this->_fields['Value']['FieldValue'] = $parentNode->nodeValue;
+ }
+ }
+ } else {
+ if ($fieldType[0] == ".") {
+ $element = $xpath->query("./text()", $dom);
+ } else {
+ $element = $xpath->query("./*[local-name()='$fieldName']/text()", $dom);
+ }
+ if ($element->length == 1) {
+ $this->_fields[$fieldName]['FieldValue'] = $element->item(0)->data;
+ }
+ }
+
+ $attribute = $xpath->query("./@$fieldName", $dom);
+ if ($attribute->length == 1) {
+ $this->_fields[$fieldName]['FieldValue'] = $attribute->item(0)->nodeValue;
+ if (isset ($this->_fields['Value'])) {
+ $parentNode = $attribute->item(0)->parentNode;
+ $this->_fields['Value']['FieldValue'] = $parentNode->nodeValue;
+ }
+ }
+
+ }
+ }
+ }
+ }
+
+
+ /**
+ * Construct from Associative Array
+ *
+ *
+ * @param array $array associative array to construct from
+ */
+ private function _fromAssociativeArray(array $array)
+ {
+ foreach ($this->_fields as $fieldName => $field) {
+ $fieldType = $field['FieldType'];
+ if (is_array($fieldType)) {
+ if ($this->_isComplexType($fieldType[0])) {
+ if (array_key_exists($fieldName, $array)) {
+ $elements = $array[$fieldName];
+ if (!$this->_isNumericArray($elements)) {
+ $elements = array($elements);
+ }
+ if (count ($elements) >= 1) {
+ require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $fieldType[0]) . ".php");
+
+ foreach ($elements as $element) {
+ $this->_fields[$fieldName]['FieldValue'][] = new $fieldType[0]($element);
+ }
+ }
+ }
+ } else {
+ if (array_key_exists($fieldName, $array)) {
+ $elements = $array[$fieldName];
+ if (!$this->_isNumericArray($elements)) {
+ $elements = array($elements);
+ }
+ if (count ($elements) >= 1) {
+ foreach ($elements as $element) {
+ $this->_fields[$fieldName]['FieldValue'][] = $element;
+ }
+ }
+ }
+ }
+ } else {
+ if ($this->_isComplexType($fieldType)) {
+ if (array_key_exists($fieldName, $array)) {
+ require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $fieldType) . ".php");
+ $this->_fields[$fieldName]['FieldValue'] = new $fieldType($array[$fieldName]);
+ }
+ } else {
+ if (array_key_exists($fieldName, $array)) {
+ $this->_fields[$fieldName]['FieldValue'] = $array[$fieldName];
+ }
+ }
+ }
+ }
+ }
+
+ /**
+ * Convert to query parameters suitable for POSTing.
+ * @return array of query parameters
+ */
+ public function toQueryParameterArray() {
+ return $this->_toQueryParameterArray("");
+ }
+
+ protected function _toQueryParameterArray($prefix) {
+ $arr = array();
+ foreach($this->_fields as $fieldName => $fieldAttrs) {
+ $fieldType = $fieldAttrs['FieldType'];
+ $fieldValue = $fieldAttrs['FieldValue'];
+ $newPrefix = $prefix . $fieldName . '.';
+ $currentArr = $this->__toQueryParameterArray($newPrefix, $fieldType, $fieldValue, $fieldAttrs);
+ $arr = array_merge($arr, $currentArr);
+ }
+ return $arr;
+ }
+
+ private function __toQueryParameterArray($prefix, $fieldType, $fieldValue, $fieldAttrs) {
+ $arr = array();
+ if(is_array($fieldType)) {
+ if(isset($fieldAttrs['ListMemberName'])) {
+ $listMemberName = $fieldAttrs['ListMemberName'];
+ $itemPrefix = $prefix . $listMemberName . '.';
+ } else {
+ $itemPrefix = $prefix;
+ }
+
+ for($i = 1; $i <= count($fieldValue); $i++) {
+ $indexedPrefix = $itemPrefix . $i . '.';
+ $memberType = $fieldType[0];
+ $arr = array_merge($arr,
+ $this->__toQueryParameterArray($indexedPrefix,
+ $memberType, $fieldValue[$i - 1], null));
+ }
+
+ } else if($this->_isComplexType($fieldType)) {
+ // Struct
+ if(isset($fieldValue)) {
+ $arr = array_merge($arr, $fieldValue->_toQueryParameterArray($prefix));
+ }
+ } else {
+ // Primitive
+ if ($fieldValue!==null && $fieldValue!=="") {
+ if ($fieldType=='bool') {
+ $fieldValue = ($fieldValue)?'true':'false';
+ }
+ $arr[rtrim($prefix, '.')] = $fieldValue;
+ }
+ }
+ return $arr;
+ }
+
+ /**
+ * XML fragment representation of this object
+ * Note, name of the root determined by caller
+ * This fragment returns inner fields representation only
+ * @return string XML fragment for this object
+ */
+ protected function _toXMLFragment()
+ {
+ $xml = "";
+ foreach ($this->_fields as $fieldName => $field) {
+ $fieldValue = $field['FieldValue'];
+ if (!is_null($fieldValue) && $field['FieldType'] != "MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata") {
+ $fieldType = $field['FieldType'];
+ if (is_array($fieldType)) {
+ if ($fieldType[0] == "object") {
+ foreach ($fieldValue as $item) {
+ $newDoc = new DOMDocument();
+ $importedNode = $newDoc->importNode($item, true);
+ $newDoc->appendChild($importedNode);
+ $xmlStr = $newDoc->saveXML();
+ $xmlStr = substr($xmlStr, strpos($xmlStr, "?>") + 2);
+ $xml .= trim($xmlStr);
+ }
+ } else if ($this->_isComplexType($fieldType[0])) {
+ if (isset($field['ListMemberName'])) {
+ $memberName = $field['ListMemberName'];
+ $xml .= "<$fieldName>";
+ foreach ($fieldValue as $item) {
+ $xml .= "<$memberName>";
+ $xml .= $item->_toXMLFragment();
+ $xml .= "$memberName>";
+ }
+ $xml .= "$fieldName>";
+ } else {
+ foreach ($fieldValue as $item) {
+ $xml .= "<$fieldName";
+ $xml .= $item->_getAttributes();
+ $xml .= ">";
+ $xml .= $item->_toXMLFragment();
+ $xml .= "$fieldName>";
+ }
+ }
+ } else {
+ if(isset($field['ListMemberName'])) {
+ $memberName = $field['ListMemberName'];
+ $xml .= "<$fieldName>";
+ foreach ($fieldValue as $item) {
+ $xml .= "<$memberName>";
+ $xml .= $this->_escapeXML($item);
+ $xml .= "$memberName>";
+ }
+ $xml .= "$fieldName>";
+ } else {
+ foreach ($fieldValue as $item) {
+ $xml .= "<$fieldName>";
+ $xml .= $this->_escapeXML($item);
+ $xml .= "$fieldName>";
+ }
+ }
+ }
+ } else {
+ if ($this->_isComplexType($fieldType)) {
+ $xml .= "<$fieldName";
+ $xml .= $fieldValue->_getAttributes();
+ $xml .= ">";
+ $xml .= $fieldValue->_toXMLFragment();
+ $xml .= "$fieldName>";
+ } else if($fieldType[0] == ".") {
+ $xml .= $this->_escapeXML($fieldValue);
+ } else if($fieldType[0] != "@") {
+ $xml .= "<$fieldName>";
+ $xml .= $this->_escapeXML($fieldValue);
+ $xml .= "$fieldName>";
+ }
+ }
+ }
+ }
+ return $xml;
+ }
+
+ protected function _getAttributes() {
+ $xml = "";
+ foreach ($this->_fields as $fieldName => $field) {
+ $fieldValue = $field['FieldValue'];
+ if (!is_null($fieldValue)) {
+ $fieldType = $field['FieldType'];
+ if($fieldType[0] == "@") {
+ $xml .= " " . $fieldName . "='" . $this->_escapeXML($fieldValue) . "'";
+ }
+ }
+ }
+ return $xml;
+ }
+
+ /**
+ * Escape special XML characters
+ * @return string with escaped XML characters
+ */
+ private function _escapeXML($str)
+ {
+ $from = array( "&", "<", ">", "'", "\"");
+ $to = array( "&", "<", ">", "'", """);
+ return str_replace($from, $to, $str);
+ }
+
+ /**
+ * Determines if field is complex type
+ *
+ * @param string $fieldType field type name
+ */
+ private function _isComplexType ($fieldType)
+ {
+ return preg_match("/^MarketplaceWebServiceOrders_/", $fieldType);
+ }
+
+ /**
+ * Checks whether passed variable is an associative array
+ *
+ * @param mixed $var
+ * @return TRUE if passed variable is an associative array
+ */
+ private function _isAssociativeArray($var)
+ {
+ return is_array($var) && array_keys($var) !== range(0, sizeof($var) - 1);
+ }
+
+ /**
+ * Checks whether passed variable is DOMElement
+ *
+ * @param mixed $var
+ * @return TRUE if passed variable is DOMElement
+ */
+ private function _isDOMElement($var)
+ {
+ return $var instanceof DOMElement;
+ }
+
+ /**
+ * Checks whether passed variable is numeric array
+ *
+ * @param mixed $var
+ * @return TRUE if passed variable is an numeric array
+ */
+ protected function _isNumericArray($var)
+ {
+ if (!is_array($var))
+ {
+ return false;
+ }
+ $sz = sizeof($var);
+ return ($sz===0 || array_keys($var) === range(0, sizeof($var) - 1));
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/Address.php b/src/MarketplaceWebServiceOrders/Model/Address.php
new file mode 100644
index 0000000..93f97c2
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/Address.php
@@ -0,0 +1,622 @@
+
+ *
+ * Name: string
+ * AddressLine1: string
+ * AddressLine2: string
+ * AddressLine3: string
+ * City: string
+ * County: string
+ * District: string
+ * StateOrRegion: string
+ * PostalCode: string
+ * CountryCode: string
+ * Phone: string
+ * AddressType: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_Address extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Name' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AddressLine1' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AddressLine2' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AddressLine3' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'City' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'County' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'District' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'StateOrRegion' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'PostalCode' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CountryCode' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Phone' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AddressType' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Name property.
+ *
+ * @return String Name.
+ */
+ public function getName()
+ {
+ return $this->_fields['Name']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Name property.
+ *
+ * @param string name
+ * @return this instance
+ */
+ public function setName($value)
+ {
+ $this->_fields['Name']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Name is set.
+ *
+ * @return true if Name is set.
+ */
+ public function isSetName()
+ {
+ return !is_null($this->_fields['Name']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Name, return this.
+ *
+ * @param name
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withName($value)
+ {
+ $this->setName($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the AddressLine1 property.
+ *
+ * @return String AddressLine1.
+ */
+ public function getAddressLine1()
+ {
+ return $this->_fields['AddressLine1']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the AddressLine1 property.
+ *
+ * @param string addressLine1
+ * @return this instance
+ */
+ public function setAddressLine1($value)
+ {
+ $this->_fields['AddressLine1']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if AddressLine1 is set.
+ *
+ * @return true if AddressLine1 is set.
+ */
+ public function isSetAddressLine1()
+ {
+ return !is_null($this->_fields['AddressLine1']['FieldValue']);
+ }
+
+ /**
+ * Set the value of AddressLine1, return this.
+ *
+ * @param addressLine1
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withAddressLine1($value)
+ {
+ $this->setAddressLine1($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the AddressLine2 property.
+ *
+ * @return String AddressLine2.
+ */
+ public function getAddressLine2()
+ {
+ return $this->_fields['AddressLine2']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the AddressLine2 property.
+ *
+ * @param string addressLine2
+ * @return this instance
+ */
+ public function setAddressLine2($value)
+ {
+ $this->_fields['AddressLine2']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if AddressLine2 is set.
+ *
+ * @return true if AddressLine2 is set.
+ */
+ public function isSetAddressLine2()
+ {
+ return !is_null($this->_fields['AddressLine2']['FieldValue']);
+ }
+
+ /**
+ * Set the value of AddressLine2, return this.
+ *
+ * @param addressLine2
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withAddressLine2($value)
+ {
+ $this->setAddressLine2($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the AddressLine3 property.
+ *
+ * @return String AddressLine3.
+ */
+ public function getAddressLine3()
+ {
+ return $this->_fields['AddressLine3']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the AddressLine3 property.
+ *
+ * @param string addressLine3
+ * @return this instance
+ */
+ public function setAddressLine3($value)
+ {
+ $this->_fields['AddressLine3']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if AddressLine3 is set.
+ *
+ * @return true if AddressLine3 is set.
+ */
+ public function isSetAddressLine3()
+ {
+ return !is_null($this->_fields['AddressLine3']['FieldValue']);
+ }
+
+ /**
+ * Set the value of AddressLine3, return this.
+ *
+ * @param addressLine3
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withAddressLine3($value)
+ {
+ $this->setAddressLine3($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the City property.
+ *
+ * @return String City.
+ */
+ public function getCity()
+ {
+ return $this->_fields['City']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the City property.
+ *
+ * @param string city
+ * @return this instance
+ */
+ public function setCity($value)
+ {
+ $this->_fields['City']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if City is set.
+ *
+ * @return true if City is set.
+ */
+ public function isSetCity()
+ {
+ return !is_null($this->_fields['City']['FieldValue']);
+ }
+
+ /**
+ * Set the value of City, return this.
+ *
+ * @param city
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCity($value)
+ {
+ $this->setCity($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the County property.
+ *
+ * @return String County.
+ */
+ public function getCounty()
+ {
+ return $this->_fields['County']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the County property.
+ *
+ * @param string county
+ * @return this instance
+ */
+ public function setCounty($value)
+ {
+ $this->_fields['County']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if County is set.
+ *
+ * @return true if County is set.
+ */
+ public function isSetCounty()
+ {
+ return !is_null($this->_fields['County']['FieldValue']);
+ }
+
+ /**
+ * Set the value of County, return this.
+ *
+ * @param county
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCounty($value)
+ {
+ $this->setCounty($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the District property.
+ *
+ * @return String District.
+ */
+ public function getDistrict()
+ {
+ return $this->_fields['District']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the District property.
+ *
+ * @param string district
+ * @return this instance
+ */
+ public function setDistrict($value)
+ {
+ $this->_fields['District']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if District is set.
+ *
+ * @return true if District is set.
+ */
+ public function isSetDistrict()
+ {
+ return !is_null($this->_fields['District']['FieldValue']);
+ }
+
+ /**
+ * Set the value of District, return this.
+ *
+ * @param district
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withDistrict($value)
+ {
+ $this->setDistrict($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the StateOrRegion property.
+ *
+ * @return String StateOrRegion.
+ */
+ public function getStateOrRegion()
+ {
+ return $this->_fields['StateOrRegion']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the StateOrRegion property.
+ *
+ * @param string stateOrRegion
+ * @return this instance
+ */
+ public function setStateOrRegion($value)
+ {
+ $this->_fields['StateOrRegion']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if StateOrRegion is set.
+ *
+ * @return true if StateOrRegion is set.
+ */
+ public function isSetStateOrRegion()
+ {
+ return !is_null($this->_fields['StateOrRegion']['FieldValue']);
+ }
+
+ /**
+ * Set the value of StateOrRegion, return this.
+ *
+ * @param stateOrRegion
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withStateOrRegion($value)
+ {
+ $this->setStateOrRegion($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PostalCode property.
+ *
+ * @return String PostalCode.
+ */
+ public function getPostalCode()
+ {
+ return $this->_fields['PostalCode']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PostalCode property.
+ *
+ * @param string postalCode
+ * @return this instance
+ */
+ public function setPostalCode($value)
+ {
+ $this->_fields['PostalCode']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PostalCode is set.
+ *
+ * @return true if PostalCode is set.
+ */
+ public function isSetPostalCode()
+ {
+ return !is_null($this->_fields['PostalCode']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PostalCode, return this.
+ *
+ * @param postalCode
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPostalCode($value)
+ {
+ $this->setPostalCode($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CountryCode property.
+ *
+ * @return String CountryCode.
+ */
+ public function getCountryCode()
+ {
+ return $this->_fields['CountryCode']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CountryCode property.
+ *
+ * @param string countryCode
+ * @return this instance
+ */
+ public function setCountryCode($value)
+ {
+ $this->_fields['CountryCode']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CountryCode is set.
+ *
+ * @return true if CountryCode is set.
+ */
+ public function isSetCountryCode()
+ {
+ return !is_null($this->_fields['CountryCode']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CountryCode, return this.
+ *
+ * @param countryCode
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCountryCode($value)
+ {
+ $this->setCountryCode($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Phone property.
+ *
+ * @return String Phone.
+ */
+ public function getPhone()
+ {
+ return $this->_fields['Phone']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Phone property.
+ *
+ * @param string phone
+ * @return this instance
+ */
+ public function setPhone($value)
+ {
+ $this->_fields['Phone']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Phone is set.
+ *
+ * @return true if Phone is set.
+ */
+ public function isSetPhone()
+ {
+ return !is_null($this->_fields['Phone']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Phone, return this.
+ *
+ * @param phone
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPhone($value)
+ {
+ $this->setPhone($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the AddressType property.
+ *
+ * @return String AddressType.
+ */
+ public function getAddressType()
+ {
+ return $this->_fields['AddressType']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the AddressType property.
+ *
+ * @param string addressType
+ * @return this instance
+ */
+ public function setAddressType($value)
+ {
+ $this->_fields['AddressType']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if AddressType is set.
+ *
+ * @return true if AddressType is set.
+ */
+ public function isSetAddressType()
+ {
+ return !is_null($this->_fields['AddressType']['FieldValue']);
+ }
+
+ /**
+ * Set the value of AddressType, return this.
+ *
+ * @param addressType
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withAddressType($value)
+ {
+ $this->setAddressType($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/BuyerCustomizedInfoDetail.php b/src/MarketplaceWebServiceOrders/Model/BuyerCustomizedInfoDetail.php
new file mode 100644
index 0000000..7376d3e
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/BuyerCustomizedInfoDetail.php
@@ -0,0 +1,94 @@
+
+ *
+ * CustomizedURL: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_BuyerCustomizedInfoDetail extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'CustomizedURL' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the CustomizedURL property.
+ *
+ * @return String CustomizedURL.
+ */
+ public function getCustomizedURL()
+ {
+ return $this->_fields['CustomizedURL']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CustomizedURL property.
+ *
+ * @param string customizedURL
+ * @return this instance
+ */
+ public function setCustomizedURL($value)
+ {
+ $this->_fields['CustomizedURL']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CustomizedURL is set.
+ *
+ * @return true if CustomizedURL is set.
+ */
+ public function isSetCustomizedURL()
+ {
+ return !is_null($this->_fields['CustomizedURL']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CustomizedURL, return this.
+ *
+ * @param customizedURL
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCustomizedURL($value)
+ {
+ $this->setCustomizedURL($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/BuyerTaxInfo.php b/src/MarketplaceWebServiceOrders/Model/BuyerTaxInfo.php
new file mode 100644
index 0000000..528e144
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/BuyerTaxInfo.php
@@ -0,0 +1,208 @@
+
+ *
+ * CompanyLegalName: string
+ * TaxingRegion: string
+ * TaxClassifications: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_BuyerTaxInfo extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'CompanyLegalName' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'TaxingRegion' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'TaxClassifications' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_TaxClassification'), 'ListMemberName' => 'TaxClassification'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the CompanyLegalName property.
+ *
+ * @return String CompanyLegalName.
+ */
+ public function getCompanyLegalName()
+ {
+ return $this->_fields['CompanyLegalName']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CompanyLegalName property.
+ *
+ * @param string companyLegalName
+ * @return this instance
+ */
+ public function setCompanyLegalName($value)
+ {
+ $this->_fields['CompanyLegalName']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CompanyLegalName is set.
+ *
+ * @return true if CompanyLegalName is set.
+ */
+ public function isSetCompanyLegalName()
+ {
+ return !is_null($this->_fields['CompanyLegalName']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CompanyLegalName, return this.
+ *
+ * @param companyLegalName
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCompanyLegalName($value)
+ {
+ $this->setCompanyLegalName($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the TaxingRegion property.
+ *
+ * @return String TaxingRegion.
+ */
+ public function getTaxingRegion()
+ {
+ return $this->_fields['TaxingRegion']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the TaxingRegion property.
+ *
+ * @param string taxingRegion
+ * @return this instance
+ */
+ public function setTaxingRegion($value)
+ {
+ $this->_fields['TaxingRegion']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if TaxingRegion is set.
+ *
+ * @return true if TaxingRegion is set.
+ */
+ public function isSetTaxingRegion()
+ {
+ return !is_null($this->_fields['TaxingRegion']['FieldValue']);
+ }
+
+ /**
+ * Set the value of TaxingRegion, return this.
+ *
+ * @param taxingRegion
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withTaxingRegion($value)
+ {
+ $this->setTaxingRegion($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the TaxClassifications property.
+ *
+ * @return List TaxClassifications.
+ */
+ public function getTaxClassifications()
+ {
+ if ($this->_fields['TaxClassifications']['FieldValue'] == null)
+ {
+ $this->_fields['TaxClassifications']['FieldValue'] = array();
+ }
+ return $this->_fields['TaxClassifications']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the TaxClassifications property.
+ *
+ * @param array taxClassifications
+ * @return this instance
+ */
+ public function setTaxClassifications($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['TaxClassifications']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear TaxClassifications.
+ */
+ public function unsetTaxClassifications()
+ {
+ $this->_fields['TaxClassifications']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if TaxClassifications is set.
+ *
+ * @return true if TaxClassifications is set.
+ */
+ public function isSetTaxClassifications()
+ {
+ return !empty($this->_fields['TaxClassifications']['FieldValue']);
+ }
+
+ /**
+ * Add values for TaxClassifications, return this.
+ *
+ * @param taxClassifications
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withTaxClassifications()
+ {
+ foreach (func_get_args() as $TaxClassifications)
+ {
+ $this->_fields['TaxClassifications']['FieldValue'][] = $TaxClassifications;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetOrderRequest.php b/src/MarketplaceWebServiceOrders/Model/GetOrderRequest.php
new file mode 100644
index 0000000..b1de412
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetOrderRequest.php
@@ -0,0 +1,208 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ * AmazonOrderId: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetOrderRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AmazonOrderId' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Id'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the AmazonOrderId property.
+ *
+ * @return List AmazonOrderId.
+ */
+ public function getAmazonOrderId()
+ {
+ if ($this->_fields['AmazonOrderId']['FieldValue'] == null)
+ {
+ $this->_fields['AmazonOrderId']['FieldValue'] = array();
+ }
+ return $this->_fields['AmazonOrderId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the AmazonOrderId property.
+ *
+ * @param array amazonOrderId
+ * @return this instance
+ */
+ public function setAmazonOrderId($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['AmazonOrderId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear AmazonOrderId.
+ */
+ public function unsetAmazonOrderId()
+ {
+ $this->_fields['AmazonOrderId']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if AmazonOrderId is set.
+ *
+ * @return true if AmazonOrderId is set.
+ */
+ public function isSetAmazonOrderId()
+ {
+ return !empty($this->_fields['AmazonOrderId']['FieldValue']);
+ }
+
+ /**
+ * Add values for AmazonOrderId, return this.
+ *
+ * @param amazonOrderId
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withAmazonOrderId()
+ {
+ foreach (func_get_args() as $AmazonOrderId)
+ {
+ $this->_fields['AmazonOrderId']['FieldValue'][] = $AmazonOrderId;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetOrderResponse.php b/src/MarketplaceWebServiceOrders/Model/GetOrderResponse.php
new file mode 100644
index 0000000..5801dee
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetOrderResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * GetOrderResult: MarketplaceWebServiceOrders_Model_GetOrderResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetOrderResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'GetOrderResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_GetOrderResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the GetOrderResult property.
+ *
+ * @return GetOrderResult GetOrderResult.
+ */
+ public function getGetOrderResult()
+ {
+ return $this->_fields['GetOrderResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GetOrderResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_GetOrderResult getOrderResult
+ * @return this instance
+ */
+ public function setGetOrderResult($value)
+ {
+ $this->_fields['GetOrderResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GetOrderResult is set.
+ *
+ * @return true if GetOrderResult is set.
+ */
+ public function isSetGetOrderResult()
+ {
+ return !is_null($this->_fields['GetOrderResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GetOrderResult, return this.
+ *
+ * @param getOrderResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGetOrderResult($value)
+ {
+ $this->setGetOrderResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_GetOrderResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_GetOrderResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='GetOrderResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_GetOrderResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_GetOrderResponse from provided XML.
+ Make sure that GetOrderResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetOrderResult.php b/src/MarketplaceWebServiceOrders/Model/GetOrderResult.php
new file mode 100644
index 0000000..b3f18bb
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetOrderResult.php
@@ -0,0 +1,112 @@
+
+ *
+ * Orders: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetOrderResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Orders' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_Order'), 'ListMemberName' => 'Order'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Orders property.
+ *
+ * @return List Orders.
+ */
+ public function getOrders()
+ {
+ if ($this->_fields['Orders']['FieldValue'] == null)
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+ return $this->_fields['Orders']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Orders property.
+ *
+ * @param array orders
+ * @return this instance
+ */
+ public function setOrders($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['Orders']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear Orders.
+ */
+ public function unsetOrders()
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if Orders is set.
+ *
+ * @return true if Orders is set.
+ */
+ public function isSetOrders()
+ {
+ return !empty($this->_fields['Orders']['FieldValue']);
+ }
+
+ /**
+ * Add values for Orders, return this.
+ *
+ * @param orders
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrders()
+ {
+ foreach (func_get_args() as $Orders)
+ {
+ $this->_fields['Orders']['FieldValue'][] = $Orders;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetServiceStatusRequest.php b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusRequest.php
new file mode 100644
index 0000000..91ab499
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusRequest.php
@@ -0,0 +1,142 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetServiceStatusRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResponse.php b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResponse.php
new file mode 100644
index 0000000..aaee067
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * GetServiceStatusResult: MarketplaceWebServiceOrders_Model_GetServiceStatusResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetServiceStatusResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'GetServiceStatusResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_GetServiceStatusResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the GetServiceStatusResult property.
+ *
+ * @return GetServiceStatusResult GetServiceStatusResult.
+ */
+ public function getGetServiceStatusResult()
+ {
+ return $this->_fields['GetServiceStatusResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GetServiceStatusResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_GetServiceStatusResult getServiceStatusResult
+ * @return this instance
+ */
+ public function setGetServiceStatusResult($value)
+ {
+ $this->_fields['GetServiceStatusResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GetServiceStatusResult is set.
+ *
+ * @return true if GetServiceStatusResult is set.
+ */
+ public function isSetGetServiceStatusResult()
+ {
+ return !is_null($this->_fields['GetServiceStatusResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GetServiceStatusResult, return this.
+ *
+ * @param getServiceStatusResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGetServiceStatusResult($value)
+ {
+ $this->setGetServiceStatusResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_GetServiceStatusResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_GetServiceStatusResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='GetServiceStatusResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_GetServiceStatusResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_GetServiceStatusResponse from provided XML.
+ Make sure that GetServiceStatusResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResult.php b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResult.php
new file mode 100644
index 0000000..b7fbebf
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/GetServiceStatusResult.php
@@ -0,0 +1,256 @@
+
+ *
+ * Status: string
+ * Timestamp: string
+ * MessageId: string
+ * Messages: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_GetServiceStatusResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Status' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Timestamp' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MessageId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Messages' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_Message'), 'ListMemberName' => 'Message'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Status property.
+ *
+ * @return String Status.
+ */
+ public function getStatus()
+ {
+ return $this->_fields['Status']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Status property.
+ *
+ * @param string status
+ * @return this instance
+ */
+ public function setStatus($value)
+ {
+ $this->_fields['Status']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Status is set.
+ *
+ * @return true if Status is set.
+ */
+ public function isSetStatus()
+ {
+ return !is_null($this->_fields['Status']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Status, return this.
+ *
+ * @param status
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withStatus($value)
+ {
+ $this->setStatus($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Timestamp property.
+ *
+ * @return XMLGregorianCalendar Timestamp.
+ */
+ public function getTimestamp()
+ {
+ return $this->_fields['Timestamp']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Timestamp property.
+ *
+ * @param string timestamp
+ * @return this instance
+ */
+ public function setTimestamp($value)
+ {
+ $this->_fields['Timestamp']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Timestamp is set.
+ *
+ * @return true if Timestamp is set.
+ */
+ public function isSetTimestamp()
+ {
+ return !is_null($this->_fields['Timestamp']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Timestamp, return this.
+ *
+ * @param timestamp
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withTimestamp($value)
+ {
+ $this->setTimestamp($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MessageId property.
+ *
+ * @return String MessageId.
+ */
+ public function getMessageId()
+ {
+ return $this->_fields['MessageId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MessageId property.
+ *
+ * @param string messageId
+ * @return this instance
+ */
+ public function setMessageId($value)
+ {
+ $this->_fields['MessageId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MessageId is set.
+ *
+ * @return true if MessageId is set.
+ */
+ public function isSetMessageId()
+ {
+ return !is_null($this->_fields['MessageId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MessageId, return this.
+ *
+ * @param messageId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMessageId($value)
+ {
+ $this->setMessageId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Messages property.
+ *
+ * @return List Messages.
+ */
+ public function getMessages()
+ {
+ if ($this->_fields['Messages']['FieldValue'] == null)
+ {
+ $this->_fields['Messages']['FieldValue'] = array();
+ }
+ return $this->_fields['Messages']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Messages property.
+ *
+ * @param array messages
+ * @return this instance
+ */
+ public function setMessages($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['Messages']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear Messages.
+ */
+ public function unsetMessages()
+ {
+ $this->_fields['Messages']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if Messages is set.
+ *
+ * @return true if Messages is set.
+ */
+ public function isSetMessages()
+ {
+ return !empty($this->_fields['Messages']['FieldValue']);
+ }
+
+ /**
+ * Add values for Messages, return this.
+ *
+ * @param messages
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withMessages()
+ {
+ foreach (func_get_args() as $Messages)
+ {
+ $this->_fields['Messages']['FieldValue'][] = $Messages;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/InvoiceData.php b/src/MarketplaceWebServiceOrders/Model/InvoiceData.php
new file mode 100644
index 0000000..f738c59
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/InvoiceData.php
@@ -0,0 +1,238 @@
+
+ *
+ * InvoiceRequirement: string
+ * BuyerSelectedInvoiceCategory: string
+ * InvoiceTitle: string
+ * InvoiceInformation: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_InvoiceData extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'InvoiceRequirement' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerSelectedInvoiceCategory' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'InvoiceTitle' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'InvoiceInformation' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the InvoiceRequirement property.
+ *
+ * @return String InvoiceRequirement.
+ */
+ public function getInvoiceRequirement()
+ {
+ return $this->_fields['InvoiceRequirement']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the InvoiceRequirement property.
+ *
+ * @param string invoiceRequirement
+ * @return this instance
+ */
+ public function setInvoiceRequirement($value)
+ {
+ $this->_fields['InvoiceRequirement']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if InvoiceRequirement is set.
+ *
+ * @return true if InvoiceRequirement is set.
+ */
+ public function isSetInvoiceRequirement()
+ {
+ return !is_null($this->_fields['InvoiceRequirement']['FieldValue']);
+ }
+
+ /**
+ * Set the value of InvoiceRequirement, return this.
+ *
+ * @param invoiceRequirement
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withInvoiceRequirement($value)
+ {
+ $this->setInvoiceRequirement($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerSelectedInvoiceCategory property.
+ *
+ * @return String BuyerSelectedInvoiceCategory.
+ */
+ public function getBuyerSelectedInvoiceCategory()
+ {
+ return $this->_fields['BuyerSelectedInvoiceCategory']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerSelectedInvoiceCategory property.
+ *
+ * @param string buyerSelectedInvoiceCategory
+ * @return this instance
+ */
+ public function setBuyerSelectedInvoiceCategory($value)
+ {
+ $this->_fields['BuyerSelectedInvoiceCategory']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerSelectedInvoiceCategory is set.
+ *
+ * @return true if BuyerSelectedInvoiceCategory is set.
+ */
+ public function isSetBuyerSelectedInvoiceCategory()
+ {
+ return !is_null($this->_fields['BuyerSelectedInvoiceCategory']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerSelectedInvoiceCategory, return this.
+ *
+ * @param buyerSelectedInvoiceCategory
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerSelectedInvoiceCategory($value)
+ {
+ $this->setBuyerSelectedInvoiceCategory($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the InvoiceTitle property.
+ *
+ * @return String InvoiceTitle.
+ */
+ public function getInvoiceTitle()
+ {
+ return $this->_fields['InvoiceTitle']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the InvoiceTitle property.
+ *
+ * @param string invoiceTitle
+ * @return this instance
+ */
+ public function setInvoiceTitle($value)
+ {
+ $this->_fields['InvoiceTitle']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if InvoiceTitle is set.
+ *
+ * @return true if InvoiceTitle is set.
+ */
+ public function isSetInvoiceTitle()
+ {
+ return !is_null($this->_fields['InvoiceTitle']['FieldValue']);
+ }
+
+ /**
+ * Set the value of InvoiceTitle, return this.
+ *
+ * @param invoiceTitle
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withInvoiceTitle($value)
+ {
+ $this->setInvoiceTitle($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the InvoiceInformation property.
+ *
+ * @return String InvoiceInformation.
+ */
+ public function getInvoiceInformation()
+ {
+ return $this->_fields['InvoiceInformation']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the InvoiceInformation property.
+ *
+ * @param string invoiceInformation
+ * @return this instance
+ */
+ public function setInvoiceInformation($value)
+ {
+ $this->_fields['InvoiceInformation']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if InvoiceInformation is set.
+ *
+ * @return true if InvoiceInformation is set.
+ */
+ public function isSetInvoiceInformation()
+ {
+ return !is_null($this->_fields['InvoiceInformation']['FieldValue']);
+ }
+
+ /**
+ * Set the value of InvoiceInformation, return this.
+ *
+ * @param invoiceInformation
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withInvoiceInformation($value)
+ {
+ $this->setInvoiceInformation($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenRequest.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenRequest.php
new file mode 100644
index 0000000..c6fc2e2
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenRequest.php
@@ -0,0 +1,190 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ * NextToken: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResponse.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResponse.php
new file mode 100644
index 0000000..57b86d7
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * ListOrderItemsByNextTokenResult: MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'ListOrderItemsByNextTokenResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the ListOrderItemsByNextTokenResult property.
+ *
+ * @return ListOrderItemsByNextTokenResult ListOrderItemsByNextTokenResult.
+ */
+ public function getListOrderItemsByNextTokenResult()
+ {
+ return $this->_fields['ListOrderItemsByNextTokenResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ListOrderItemsByNextTokenResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResult listOrderItemsByNextTokenResult
+ * @return this instance
+ */
+ public function setListOrderItemsByNextTokenResult($value)
+ {
+ $this->_fields['ListOrderItemsByNextTokenResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ListOrderItemsByNextTokenResult is set.
+ *
+ * @return true if ListOrderItemsByNextTokenResult is set.
+ */
+ public function isSetListOrderItemsByNextTokenResult()
+ {
+ return !is_null($this->_fields['ListOrderItemsByNextTokenResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ListOrderItemsByNextTokenResult, return this.
+ *
+ * @param listOrderItemsByNextTokenResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withListOrderItemsByNextTokenResult($value)
+ {
+ $this->setListOrderItemsByNextTokenResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='ListOrderItemsByNextTokenResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResponse from provided XML.
+ Make sure that ListOrderItemsByNextTokenResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResult.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResult.php
new file mode 100644
index 0000000..f0bca85
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsByNextTokenResult.php
@@ -0,0 +1,208 @@
+
+ *
+ * NextToken: string
+ * AmazonOrderId: string
+ * OrderItems: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AmazonOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderItems' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_OrderItem'), 'ListMemberName' => 'OrderItem'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+ /**
+ * 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 OrderItems property.
+ *
+ * @return List OrderItems.
+ */
+ public function getOrderItems()
+ {
+ if ($this->_fields['OrderItems']['FieldValue'] == null)
+ {
+ $this->_fields['OrderItems']['FieldValue'] = array();
+ }
+ return $this->_fields['OrderItems']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderItems property.
+ *
+ * @param array orderItems
+ * @return this instance
+ */
+ public function setOrderItems($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['OrderItems']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear OrderItems.
+ */
+ public function unsetOrderItems()
+ {
+ $this->_fields['OrderItems']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if OrderItems is set.
+ *
+ * @return true if OrderItems is set.
+ */
+ public function isSetOrderItems()
+ {
+ return !empty($this->_fields['OrderItems']['FieldValue']);
+ }
+
+ /**
+ * Add values for OrderItems, return this.
+ *
+ * @param orderItems
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrderItems()
+ {
+ foreach (func_get_args() as $OrderItems)
+ {
+ $this->_fields['OrderItems']['FieldValue'][] = $OrderItems;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsRequest.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsRequest.php
new file mode 100644
index 0000000..7a7941a
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsRequest.php
@@ -0,0 +1,190 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ * AmazonOrderId: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AmazonOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+ /**
+ * 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;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResponse.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResponse.php
new file mode 100644
index 0000000..6a3da4d
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * ListOrderItemsResult: MarketplaceWebServiceOrders_Model_ListOrderItemsResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'ListOrderItemsResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ListOrderItemsResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the ListOrderItemsResult property.
+ *
+ * @return ListOrderItemsResult ListOrderItemsResult.
+ */
+ public function getListOrderItemsResult()
+ {
+ return $this->_fields['ListOrderItemsResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ListOrderItemsResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ListOrderItemsResult listOrderItemsResult
+ * @return this instance
+ */
+ public function setListOrderItemsResult($value)
+ {
+ $this->_fields['ListOrderItemsResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ListOrderItemsResult is set.
+ *
+ * @return true if ListOrderItemsResult is set.
+ */
+ public function isSetListOrderItemsResult()
+ {
+ return !is_null($this->_fields['ListOrderItemsResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ListOrderItemsResult, return this.
+ *
+ * @param listOrderItemsResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withListOrderItemsResult($value)
+ {
+ $this->setListOrderItemsResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_ListOrderItemsResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_ListOrderItemsResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='ListOrderItemsResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_ListOrderItemsResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_ListOrderItemsResponse from provided XML.
+ Make sure that ListOrderItemsResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResult.php b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResult.php
new file mode 100644
index 0000000..d1e4fcb
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrderItemsResult.php
@@ -0,0 +1,208 @@
+
+ *
+ * NextToken: string
+ * AmazonOrderId: string
+ * OrderItems: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrderItemsResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'AmazonOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderItems' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_OrderItem'), 'ListMemberName' => 'OrderItem'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+ /**
+ * 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 OrderItems property.
+ *
+ * @return List OrderItems.
+ */
+ public function getOrderItems()
+ {
+ if ($this->_fields['OrderItems']['FieldValue'] == null)
+ {
+ $this->_fields['OrderItems']['FieldValue'] = array();
+ }
+ return $this->_fields['OrderItems']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderItems property.
+ *
+ * @param array orderItems
+ * @return this instance
+ */
+ public function setOrderItems($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['OrderItems']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear OrderItems.
+ */
+ public function unsetOrderItems()
+ {
+ $this->_fields['OrderItems']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if OrderItems is set.
+ *
+ * @return true if OrderItems is set.
+ */
+ public function isSetOrderItems()
+ {
+ return !empty($this->_fields['OrderItems']['FieldValue']);
+ }
+
+ /**
+ * Add values for OrderItems, return this.
+ *
+ * @param orderItems
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrderItems()
+ {
+ foreach (func_get_args() as $OrderItems)
+ {
+ $this->_fields['OrderItems']['FieldValue'][] = $OrderItems;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenRequest.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenRequest.php
new file mode 100644
index 0000000..2d10ebd
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenRequest.php
@@ -0,0 +1,190 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ * NextToken: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResponse.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResponse.php
new file mode 100644
index 0000000..1455739
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * ListOrdersByNextTokenResult: MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'ListOrdersByNextTokenResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the ListOrdersByNextTokenResult property.
+ *
+ * @return ListOrdersByNextTokenResult ListOrdersByNextTokenResult.
+ */
+ public function getListOrdersByNextTokenResult()
+ {
+ return $this->_fields['ListOrdersByNextTokenResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ListOrdersByNextTokenResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResult listOrdersByNextTokenResult
+ * @return this instance
+ */
+ public function setListOrdersByNextTokenResult($value)
+ {
+ $this->_fields['ListOrdersByNextTokenResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ListOrdersByNextTokenResult is set.
+ *
+ * @return true if ListOrdersByNextTokenResult is set.
+ */
+ public function isSetListOrdersByNextTokenResult()
+ {
+ return !is_null($this->_fields['ListOrdersByNextTokenResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ListOrdersByNextTokenResult, return this.
+ *
+ * @param listOrdersByNextTokenResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withListOrdersByNextTokenResult($value)
+ {
+ $this->setListOrdersByNextTokenResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='ListOrdersByNextTokenResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResponse from provided XML.
+ Make sure that ListOrdersByNextTokenResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResult.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResult.php
new file mode 100644
index 0000000..3137f73
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersByNextTokenResult.php
@@ -0,0 +1,256 @@
+
+ *
+ * NextToken: string
+ * CreatedBefore: string
+ * LastUpdatedBefore: string
+ * Orders: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CreatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LastUpdatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Orders' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_Order'), 'ListMemberName' => 'Order'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CreatedBefore property.
+ *
+ * @return XMLGregorianCalendar CreatedBefore.
+ */
+ public function getCreatedBefore()
+ {
+ return $this->_fields['CreatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CreatedBefore property.
+ *
+ * @param string createdBefore
+ * @return this instance
+ */
+ public function setCreatedBefore($value)
+ {
+ $this->_fields['CreatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CreatedBefore is set.
+ *
+ * @return true if CreatedBefore is set.
+ */
+ public function isSetCreatedBefore()
+ {
+ return !is_null($this->_fields['CreatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CreatedBefore, return this.
+ *
+ * @param createdBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCreatedBefore($value)
+ {
+ $this->setCreatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LastUpdatedBefore property.
+ *
+ * @return XMLGregorianCalendar LastUpdatedBefore.
+ */
+ public function getLastUpdatedBefore()
+ {
+ return $this->_fields['LastUpdatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LastUpdatedBefore property.
+ *
+ * @param string lastUpdatedBefore
+ * @return this instance
+ */
+ public function setLastUpdatedBefore($value)
+ {
+ $this->_fields['LastUpdatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LastUpdatedBefore is set.
+ *
+ * @return true if LastUpdatedBefore is set.
+ */
+ public function isSetLastUpdatedBefore()
+ {
+ return !is_null($this->_fields['LastUpdatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LastUpdatedBefore, return this.
+ *
+ * @param lastUpdatedBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLastUpdatedBefore($value)
+ {
+ $this->setLastUpdatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Orders property.
+ *
+ * @return List Orders.
+ */
+ public function getOrders()
+ {
+ if ($this->_fields['Orders']['FieldValue'] == null)
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+ return $this->_fields['Orders']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Orders property.
+ *
+ * @param array orders
+ * @return this instance
+ */
+ public function setOrders($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['Orders']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear Orders.
+ */
+ public function unsetOrders()
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if Orders is set.
+ *
+ * @return true if Orders is set.
+ */
+ public function isSetOrders()
+ {
+ return !empty($this->_fields['Orders']['FieldValue']);
+ }
+
+ /**
+ * Add values for Orders, return this.
+ *
+ * @param orders
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrders()
+ {
+ foreach (func_get_args() as $Orders)
+ {
+ $this->_fields['Orders']['FieldValue'][] = $Orders;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersRequest.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersRequest.php
new file mode 100644
index 0000000..3b372b1
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersRequest.php
@@ -0,0 +1,808 @@
+
+ *
+ * SellerId: string
+ * MWSAuthToken: string
+ * CreatedAfter: string
+ * CreatedBefore: string
+ * LastUpdatedAfter: string
+ * LastUpdatedBefore: string
+ * OrderStatus: array
+ * MarketplaceId: array
+ * FulfillmentChannel: array
+ * PaymentMethod: array
+ * BuyerEmail: string
+ * SellerOrderId: string
+ * MaxResultsPerPage: int
+ * TFMShipmentStatus: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersRequest extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CreatedAfter' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CreatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LastUpdatedAfter' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LastUpdatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderStatus' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Status'),
+ 'MarketplaceId' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Id'),
+ 'FulfillmentChannel' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Channel'),
+ 'PaymentMethod' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Method'),
+ 'BuyerEmail' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'SellerOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'MaxResultsPerPage' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'TFMShipmentStatus' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'Status'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the SellerId property.
+ *
+ * @return String SellerId.
+ */
+ public function getSellerId()
+ {
+ return $this->_fields['SellerId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerId property.
+ *
+ * @param string sellerId
+ * @return this instance
+ */
+ public function setSellerId($value)
+ {
+ $this->_fields['SellerId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerId is set.
+ *
+ * @return true if SellerId is set.
+ */
+ public function isSetSellerId()
+ {
+ return !is_null($this->_fields['SellerId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerId, return this.
+ *
+ * @param sellerId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerId($value)
+ {
+ $this->setSellerId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the MWSAuthToken property.
+ *
+ * @return String MWSAuthToken.
+ */
+ public function getMWSAuthToken()
+ {
+ return $this->_fields['MWSAuthToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MWSAuthToken property.
+ *
+ * @param string mwsAuthToken
+ * @return this instance
+ */
+ public function setMWSAuthToken($value)
+ {
+ $this->_fields['MWSAuthToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MWSAuthToken is set.
+ *
+ * @return true if MWSAuthToken is set.
+ */
+ public function isSetMWSAuthToken()
+ {
+ return !is_null($this->_fields['MWSAuthToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MWSAuthToken, return this.
+ *
+ * @param mwsAuthToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMWSAuthToken($value)
+ {
+ $this->setMWSAuthToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CreatedAfter property.
+ *
+ * @return XMLGregorianCalendar CreatedAfter.
+ */
+ public function getCreatedAfter()
+ {
+ return $this->_fields['CreatedAfter']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CreatedAfter property.
+ *
+ * @param string createdAfter
+ * @return this instance
+ */
+ public function setCreatedAfter($value)
+ {
+ $this->_fields['CreatedAfter']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CreatedAfter is set.
+ *
+ * @return true if CreatedAfter is set.
+ */
+ public function isSetCreatedAfter()
+ {
+ return !is_null($this->_fields['CreatedAfter']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CreatedAfter, return this.
+ *
+ * @param createdAfter
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCreatedAfter($value)
+ {
+ $this->setCreatedAfter($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CreatedBefore property.
+ *
+ * @return XMLGregorianCalendar CreatedBefore.
+ */
+ public function getCreatedBefore()
+ {
+ return $this->_fields['CreatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CreatedBefore property.
+ *
+ * @param string createdBefore
+ * @return this instance
+ */
+ public function setCreatedBefore($value)
+ {
+ $this->_fields['CreatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CreatedBefore is set.
+ *
+ * @return true if CreatedBefore is set.
+ */
+ public function isSetCreatedBefore()
+ {
+ return !is_null($this->_fields['CreatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CreatedBefore, return this.
+ *
+ * @param createdBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCreatedBefore($value)
+ {
+ $this->setCreatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LastUpdatedAfter property.
+ *
+ * @return XMLGregorianCalendar LastUpdatedAfter.
+ */
+ public function getLastUpdatedAfter()
+ {
+ return $this->_fields['LastUpdatedAfter']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LastUpdatedAfter property.
+ *
+ * @param string lastUpdatedAfter
+ * @return this instance
+ */
+ public function setLastUpdatedAfter($value)
+ {
+ $this->_fields['LastUpdatedAfter']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LastUpdatedAfter is set.
+ *
+ * @return true if LastUpdatedAfter is set.
+ */
+ public function isSetLastUpdatedAfter()
+ {
+ return !is_null($this->_fields['LastUpdatedAfter']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LastUpdatedAfter, return this.
+ *
+ * @param lastUpdatedAfter
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLastUpdatedAfter($value)
+ {
+ $this->setLastUpdatedAfter($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LastUpdatedBefore property.
+ *
+ * @return XMLGregorianCalendar LastUpdatedBefore.
+ */
+ public function getLastUpdatedBefore()
+ {
+ return $this->_fields['LastUpdatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LastUpdatedBefore property.
+ *
+ * @param string lastUpdatedBefore
+ * @return this instance
+ */
+ public function setLastUpdatedBefore($value)
+ {
+ $this->_fields['LastUpdatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LastUpdatedBefore is set.
+ *
+ * @return true if LastUpdatedBefore is set.
+ */
+ public function isSetLastUpdatedBefore()
+ {
+ return !is_null($this->_fields['LastUpdatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LastUpdatedBefore, return this.
+ *
+ * @param lastUpdatedBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLastUpdatedBefore($value)
+ {
+ $this->setLastUpdatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderStatus property.
+ *
+ * @return List OrderStatus.
+ */
+ public function getOrderStatus()
+ {
+ if ($this->_fields['OrderStatus']['FieldValue'] == null)
+ {
+ $this->_fields['OrderStatus']['FieldValue'] = array();
+ }
+ return $this->_fields['OrderStatus']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderStatus property.
+ *
+ * @param array orderStatus
+ * @return this instance
+ */
+ public function setOrderStatus($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['OrderStatus']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear OrderStatus.
+ */
+ public function unsetOrderStatus()
+ {
+ $this->_fields['OrderStatus']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if OrderStatus is set.
+ *
+ * @return true if OrderStatus is set.
+ */
+ public function isSetOrderStatus()
+ {
+ return !empty($this->_fields['OrderStatus']['FieldValue']);
+ }
+
+ /**
+ * Add values for OrderStatus, return this.
+ *
+ * @param orderStatus
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrderStatus()
+ {
+ foreach (func_get_args() as $OrderStatus)
+ {
+ $this->_fields['OrderStatus']['FieldValue'][] = $OrderStatus;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the MarketplaceId property.
+ *
+ * @return List MarketplaceId.
+ */
+ public function getMarketplaceId()
+ {
+ if ($this->_fields['MarketplaceId']['FieldValue'] == null)
+ {
+ $this->_fields['MarketplaceId']['FieldValue'] = array();
+ }
+ return $this->_fields['MarketplaceId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MarketplaceId property.
+ *
+ * @param array marketplaceId
+ * @return this instance
+ */
+ public function setMarketplaceId($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['MarketplaceId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear MarketplaceId.
+ */
+ public function unsetMarketplaceId()
+ {
+ $this->_fields['MarketplaceId']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if MarketplaceId is set.
+ *
+ * @return true if MarketplaceId is set.
+ */
+ public function isSetMarketplaceId()
+ {
+ return !empty($this->_fields['MarketplaceId']['FieldValue']);
+ }
+
+ /**
+ * Add values for MarketplaceId, return this.
+ *
+ * @param marketplaceId
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withMarketplaceId()
+ {
+ foreach (func_get_args() as $MarketplaceId)
+ {
+ $this->_fields['MarketplaceId']['FieldValue'][] = $MarketplaceId;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the FulfillmentChannel property.
+ *
+ * @return List FulfillmentChannel.
+ */
+ public function getFulfillmentChannel()
+ {
+ if ($this->_fields['FulfillmentChannel']['FieldValue'] == null)
+ {
+ $this->_fields['FulfillmentChannel']['FieldValue'] = array();
+ }
+ return $this->_fields['FulfillmentChannel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the FulfillmentChannel property.
+ *
+ * @param array fulfillmentChannel
+ * @return this instance
+ */
+ public function setFulfillmentChannel($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['FulfillmentChannel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear FulfillmentChannel.
+ */
+ public function unsetFulfillmentChannel()
+ {
+ $this->_fields['FulfillmentChannel']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if FulfillmentChannel is set.
+ *
+ * @return true if FulfillmentChannel is set.
+ */
+ public function isSetFulfillmentChannel()
+ {
+ return !empty($this->_fields['FulfillmentChannel']['FieldValue']);
+ }
+
+ /**
+ * Add values for FulfillmentChannel, return this.
+ *
+ * @param fulfillmentChannel
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withFulfillmentChannel()
+ {
+ foreach (func_get_args() as $FulfillmentChannel)
+ {
+ $this->_fields['FulfillmentChannel']['FieldValue'][] = $FulfillmentChannel;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the PaymentMethod property.
+ *
+ * @return List PaymentMethod.
+ */
+ public function getPaymentMethod()
+ {
+ if ($this->_fields['PaymentMethod']['FieldValue'] == null)
+ {
+ $this->_fields['PaymentMethod']['FieldValue'] = array();
+ }
+ return $this->_fields['PaymentMethod']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PaymentMethod property.
+ *
+ * @param array paymentMethod
+ * @return this instance
+ */
+ public function setPaymentMethod($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['PaymentMethod']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear PaymentMethod.
+ */
+ public function unsetPaymentMethod()
+ {
+ $this->_fields['PaymentMethod']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if PaymentMethod is set.
+ *
+ * @return true if PaymentMethod is set.
+ */
+ public function isSetPaymentMethod()
+ {
+ return !empty($this->_fields['PaymentMethod']['FieldValue']);
+ }
+
+ /**
+ * Add values for PaymentMethod, return this.
+ *
+ * @param paymentMethod
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withPaymentMethod()
+ {
+ foreach (func_get_args() as $PaymentMethod)
+ {
+ $this->_fields['PaymentMethod']['FieldValue'][] = $PaymentMethod;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerEmail property.
+ *
+ * @return String BuyerEmail.
+ */
+ public function getBuyerEmail()
+ {
+ return $this->_fields['BuyerEmail']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerEmail property.
+ *
+ * @param string buyerEmail
+ * @return this instance
+ */
+ public function setBuyerEmail($value)
+ {
+ $this->_fields['BuyerEmail']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerEmail is set.
+ *
+ * @return true if BuyerEmail is set.
+ */
+ public function isSetBuyerEmail()
+ {
+ return !is_null($this->_fields['BuyerEmail']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerEmail, return this.
+ *
+ * @param buyerEmail
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerEmail($value)
+ {
+ $this->setBuyerEmail($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 MaxResultsPerPage property.
+ *
+ * @return Integer MaxResultsPerPage.
+ */
+ public function getMaxResultsPerPage()
+ {
+ return $this->_fields['MaxResultsPerPage']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MaxResultsPerPage property.
+ *
+ * @param int maxResultsPerPage
+ * @return this instance
+ */
+ public function setMaxResultsPerPage($value)
+ {
+ $this->_fields['MaxResultsPerPage']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MaxResultsPerPage is set.
+ *
+ * @return true if MaxResultsPerPage is set.
+ */
+ public function isSetMaxResultsPerPage()
+ {
+ return !is_null($this->_fields['MaxResultsPerPage']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MaxResultsPerPage, return this.
+ *
+ * @param maxResultsPerPage
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMaxResultsPerPage($value)
+ {
+ $this->setMaxResultsPerPage($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the TFMShipmentStatus property.
+ *
+ * @return List TFMShipmentStatus.
+ */
+ public function getTFMShipmentStatus()
+ {
+ if ($this->_fields['TFMShipmentStatus']['FieldValue'] == null)
+ {
+ $this->_fields['TFMShipmentStatus']['FieldValue'] = array();
+ }
+ return $this->_fields['TFMShipmentStatus']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the TFMShipmentStatus property.
+ *
+ * @param array tfmShipmentStatus
+ * @return this instance
+ */
+ public function setTFMShipmentStatus($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['TFMShipmentStatus']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear TFMShipmentStatus.
+ */
+ public function unsetTFMShipmentStatus()
+ {
+ $this->_fields['TFMShipmentStatus']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if TFMShipmentStatus is set.
+ *
+ * @return true if TFMShipmentStatus is set.
+ */
+ public function isSetTFMShipmentStatus()
+ {
+ return !empty($this->_fields['TFMShipmentStatus']['FieldValue']);
+ }
+
+ /**
+ * Add values for TFMShipmentStatus, return this.
+ *
+ * @param tfmShipmentStatus
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withTFMShipmentStatus()
+ {
+ foreach (func_get_args() as $TFMShipmentStatus)
+ {
+ $this->_fields['TFMShipmentStatus']['FieldValue'][] = $TFMShipmentStatus;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersResponse.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersResponse.php
new file mode 100644
index 0000000..2cdfd7a
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersResponse.php
@@ -0,0 +1,224 @@
+
+ *
+ * ListOrdersResult: MarketplaceWebServiceOrders_Model_ListOrdersResult
+ * ResponseMetadata: MarketplaceWebServiceOrders_Model_ResponseMetadata
+ * ResponseHeaderMetadata: MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersResponse extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'ListOrdersResult' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ListOrdersResult'),
+ 'ResponseMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseMetadata'),
+ 'ResponseHeaderMetadata' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the ListOrdersResult property.
+ *
+ * @return ListOrdersResult ListOrdersResult.
+ */
+ public function getListOrdersResult()
+ {
+ return $this->_fields['ListOrdersResult']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ListOrdersResult property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ListOrdersResult listOrdersResult
+ * @return this instance
+ */
+ public function setListOrdersResult($value)
+ {
+ $this->_fields['ListOrdersResult']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ListOrdersResult is set.
+ *
+ * @return true if ListOrdersResult is set.
+ */
+ public function isSetListOrdersResult()
+ {
+ return !is_null($this->_fields['ListOrdersResult']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ListOrdersResult, return this.
+ *
+ * @param listOrdersResult
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withListOrdersResult($value)
+ {
+ $this->setListOrdersResult($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseMetadata property.
+ *
+ * @return ResponseMetadata ResponseMetadata.
+ */
+ public function getResponseMetadata()
+ {
+ return $this->_fields['ResponseMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseMetadata responseMetadata
+ * @return 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 instance.
+ */
+ public function withResponseMetadata($value)
+ {
+ $this->setResponseMetadata($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponseHeaderMetadata property.
+ *
+ * @return ResponseHeaderMetadata ResponseHeaderMetadata.
+ */
+ public function getResponseHeaderMetadata()
+ {
+ return $this->_fields['ResponseHeaderMetadata']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponseHeaderMetadata property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ResponseHeaderMetadata responseHeaderMetadata
+ * @return 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 instance.
+ */
+ public function withResponseHeaderMetadata($value)
+ {
+ $this->setResponseHeaderMetadata($value);
+ return $this;
+ }
+ /**
+ * Construct MarketplaceWebServiceOrders_Model_ListOrdersResponse from XML string
+ *
+ * @param $xml
+ * XML string to construct from
+ *
+ * @return MarketplaceWebServiceOrders_Model_ListOrdersResponse
+ */
+ public static function fromXML($xml)
+ {
+ $dom = new DOMDocument();
+ $dom->loadXML($xml);
+ $xpath = new DOMXPath($dom);
+ $response = $xpath->query("//*[local-name()='ListOrdersResponse']");
+ if ($response->length == 1) {
+ return new MarketplaceWebServiceOrders_Model_ListOrdersResponse(($response->item(0)));
+ } else {
+ throw new Exception ("Unable to construct MarketplaceWebServiceOrders_Model_ListOrdersResponse from provided XML.
+ Make sure that ListOrdersResponse is a root element");
+ }
+ }
+ /**
+ * XML Representation for this object
+ *
+ * @return string XML for this object
+ */
+ public function toXML()
+ {
+ $xml = "";
+ $xml .= "";
+ $xml .= $this->_toXMLFragment();
+ $xml .= "";
+ return $xml;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ListOrdersResult.php b/src/MarketplaceWebServiceOrders/Model/ListOrdersResult.php
new file mode 100644
index 0000000..b4778c3
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ListOrdersResult.php
@@ -0,0 +1,256 @@
+
+ *
+ * NextToken: string
+ * CreatedBefore: string
+ * LastUpdatedBefore: string
+ * Orders: array
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ListOrdersResult extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'NextToken' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CreatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LastUpdatedBefore' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Orders' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_Order'), 'ListMemberName' => 'Order'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the NextToken property.
+ *
+ * @return String NextToken.
+ */
+ public function getNextToken()
+ {
+ return $this->_fields['NextToken']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NextToken property.
+ *
+ * @param string nextToken
+ * @return this instance
+ */
+ public function setNextToken($value)
+ {
+ $this->_fields['NextToken']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NextToken is set.
+ *
+ * @return true if NextToken is set.
+ */
+ public function isSetNextToken()
+ {
+ return !is_null($this->_fields['NextToken']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NextToken, return this.
+ *
+ * @param nextToken
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNextToken($value)
+ {
+ $this->setNextToken($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CreatedBefore property.
+ *
+ * @return XMLGregorianCalendar CreatedBefore.
+ */
+ public function getCreatedBefore()
+ {
+ return $this->_fields['CreatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CreatedBefore property.
+ *
+ * @param string createdBefore
+ * @return this instance
+ */
+ public function setCreatedBefore($value)
+ {
+ $this->_fields['CreatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CreatedBefore is set.
+ *
+ * @return true if CreatedBefore is set.
+ */
+ public function isSetCreatedBefore()
+ {
+ return !is_null($this->_fields['CreatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CreatedBefore, return this.
+ *
+ * @param createdBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCreatedBefore($value)
+ {
+ $this->setCreatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LastUpdatedBefore property.
+ *
+ * @return XMLGregorianCalendar LastUpdatedBefore.
+ */
+ public function getLastUpdatedBefore()
+ {
+ return $this->_fields['LastUpdatedBefore']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LastUpdatedBefore property.
+ *
+ * @param string lastUpdatedBefore
+ * @return this instance
+ */
+ public function setLastUpdatedBefore($value)
+ {
+ $this->_fields['LastUpdatedBefore']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LastUpdatedBefore is set.
+ *
+ * @return true if LastUpdatedBefore is set.
+ */
+ public function isSetLastUpdatedBefore()
+ {
+ return !is_null($this->_fields['LastUpdatedBefore']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LastUpdatedBefore, return this.
+ *
+ * @param lastUpdatedBefore
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLastUpdatedBefore($value)
+ {
+ $this->setLastUpdatedBefore($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Orders property.
+ *
+ * @return List Orders.
+ */
+ public function getOrders()
+ {
+ if ($this->_fields['Orders']['FieldValue'] == null)
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+ return $this->_fields['Orders']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Orders property.
+ *
+ * @param array orders
+ * @return this instance
+ */
+ public function setOrders($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['Orders']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear Orders.
+ */
+ public function unsetOrders()
+ {
+ $this->_fields['Orders']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if Orders is set.
+ *
+ * @return true if Orders is set.
+ */
+ public function isSetOrders()
+ {
+ return !empty($this->_fields['Orders']['FieldValue']);
+ }
+
+ /**
+ * Add values for Orders, return this.
+ *
+ * @param orders
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withOrders()
+ {
+ foreach (func_get_args() as $Orders)
+ {
+ $this->_fields['Orders']['FieldValue'][] = $Orders;
+ }
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/Message.php b/src/MarketplaceWebServiceOrders/Model/Message.php
new file mode 100644
index 0000000..3a29b18
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/Message.php
@@ -0,0 +1,142 @@
+
+ *
+ * Locale: string
+ * Text: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_Message extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Locale' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Text' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Locale property.
+ *
+ * @return String Locale.
+ */
+ public function getLocale()
+ {
+ return $this->_fields['Locale']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Locale property.
+ *
+ * @param string locale
+ * @return this instance
+ */
+ public function setLocale($value)
+ {
+ $this->_fields['Locale']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Locale is set.
+ *
+ * @return true if Locale is set.
+ */
+ public function isSetLocale()
+ {
+ return !is_null($this->_fields['Locale']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Locale, return this.
+ *
+ * @param locale
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLocale($value)
+ {
+ $this->setLocale($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Text property.
+ *
+ * @return String Text.
+ */
+ public function getText()
+ {
+ return $this->_fields['Text']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Text property.
+ *
+ * @param string text
+ * @return this instance
+ */
+ public function setText($value)
+ {
+ $this->_fields['Text']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Text is set.
+ *
+ * @return true if Text is set.
+ */
+ public function isSetText()
+ {
+ return !is_null($this->_fields['Text']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Text, return this.
+ *
+ * @param text
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withText($value)
+ {
+ $this->setText($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/Money.php b/src/MarketplaceWebServiceOrders/Model/Money.php
new file mode 100644
index 0000000..c745321
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/Money.php
@@ -0,0 +1,142 @@
+
+ *
+ * CurrencyCode: string
+ * Amount: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_Money extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'CurrencyCode' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Amount' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the CurrencyCode property.
+ *
+ * @return String CurrencyCode.
+ */
+ public function getCurrencyCode()
+ {
+ return $this->_fields['CurrencyCode']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CurrencyCode property.
+ *
+ * @param string currencyCode
+ * @return this instance
+ */
+ public function setCurrencyCode($value)
+ {
+ $this->_fields['CurrencyCode']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CurrencyCode is set.
+ *
+ * @return true if CurrencyCode is set.
+ */
+ public function isSetCurrencyCode()
+ {
+ return !is_null($this->_fields['CurrencyCode']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CurrencyCode, return this.
+ *
+ * @param currencyCode
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCurrencyCode($value)
+ {
+ $this->setCurrencyCode($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Amount property.
+ *
+ * @return String Amount.
+ */
+ public function getAmount()
+ {
+ return $this->_fields['Amount']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Amount property.
+ *
+ * @param string amount
+ * @return this instance
+ */
+ public function setAmount($value)
+ {
+ $this->_fields['Amount']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Amount is set.
+ *
+ * @return true if Amount is set.
+ */
+ public function isSetAmount()
+ {
+ return !is_null($this->_fields['Amount']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Amount, return this.
+ *
+ * @param amount
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withAmount($value)
+ {
+ $this->setAmount($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/Order.php b/src/MarketplaceWebServiceOrders/Model/Order.php
new file mode 100644
index 0000000..eebb7aa
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/Order.php
@@ -0,0 +1,1860 @@
+
+ *
+ * AmazonOrderId: string
+ * SellerOrderId: string
+ * PurchaseDate: string
+ * LastUpdateDate: string
+ * OrderStatus: string
+ * FulfillmentChannel: string
+ * SalesChannel: string
+ * OrderChannel: string
+ * ShipServiceLevel: string
+ * ShippingAddress: MarketplaceWebServiceOrders_Model_Address
+ * OrderTotal: MarketplaceWebServiceOrders_Model_Money
+ * NumberOfItemsShipped: int
+ * NumberOfItemsUnshipped: int
+ * PaymentExecutionDetail: array
+ * PaymentMethod: string
+ * PaymentMethodDetails: array
+ * MarketplaceId: string
+ * BuyerEmail: string
+ * BuyerName: string
+ * BuyerCounty: string
+ * BuyerTaxInfo: MarketplaceWebServiceOrders_Model_BuyerTaxInfo
+ * ShipmentServiceLevelCategory: string
+ * ShippedByAmazonTFM: bool
+ * TFMShipmentStatus: string
+ * CbaDisplayableShippingLabel: string
+ * OrderType: string
+ * EarliestShipDate: string
+ * LatestShipDate: string
+ * EarliestDeliveryDate: string
+ * LatestDeliveryDate: string
+ * IsBusinessOrder: bool
+ * PurchaseOrderNumber: string
+ * IsPrime: bool
+ * IsPremiumOrder: bool
+ * ReplacedOrderId: string
+ * IsReplacementOrder: bool
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_Order extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'AmazonOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'SellerOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'PurchaseDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LastUpdateDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderStatus' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'FulfillmentChannel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'SalesChannel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderChannel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ShipServiceLevel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ShippingAddress' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Address'),
+ 'OrderTotal' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'NumberOfItemsShipped' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'NumberOfItemsUnshipped' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'PaymentExecutionDetail' => array('FieldValue' => array(), 'FieldType' => array('MarketplaceWebServiceOrders_Model_PaymentExecutionDetailItem'), 'ListMemberName' => 'PaymentExecutionDetailItem'),
+ 'PaymentMethod' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'PaymentMethodDetails' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'PaymentMethodDetail'),
+ 'MarketplaceId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerEmail' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerName' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerCounty' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerTaxInfo' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_BuyerTaxInfo'),
+ 'ShipmentServiceLevelCategory' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ShippedByAmazonTFM' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ 'TFMShipmentStatus' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'CbaDisplayableShippingLabel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderType' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'EarliestShipDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LatestShipDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'EarliestDeliveryDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'LatestDeliveryDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'IsBusinessOrder' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ 'PurchaseOrderNumber' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'IsPrime' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ 'IsPremiumOrder' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ 'ReplacedOrderId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'IsReplacementOrder' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ );
+ 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 PurchaseDate property.
+ *
+ * @return XMLGregorianCalendar PurchaseDate.
+ */
+ public function getPurchaseDate()
+ {
+ return $this->_fields['PurchaseDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PurchaseDate property.
+ *
+ * @param string purchaseDate
+ * @return this instance
+ */
+ public function setPurchaseDate($value)
+ {
+ $this->_fields['PurchaseDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PurchaseDate is set.
+ *
+ * @return true if PurchaseDate is set.
+ */
+ public function isSetPurchaseDate()
+ {
+ return !is_null($this->_fields['PurchaseDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PurchaseDate, return this.
+ *
+ * @param purchaseDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPurchaseDate($value)
+ {
+ $this->setPurchaseDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LastUpdateDate property.
+ *
+ * @return XMLGregorianCalendar LastUpdateDate.
+ */
+ public function getLastUpdateDate()
+ {
+ return $this->_fields['LastUpdateDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LastUpdateDate property.
+ *
+ * @param string lastUpdateDate
+ * @return this instance
+ */
+ public function setLastUpdateDate($value)
+ {
+ $this->_fields['LastUpdateDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LastUpdateDate is set.
+ *
+ * @return true if LastUpdateDate is set.
+ */
+ public function isSetLastUpdateDate()
+ {
+ return !is_null($this->_fields['LastUpdateDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LastUpdateDate, return this.
+ *
+ * @param lastUpdateDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLastUpdateDate($value)
+ {
+ $this->setLastUpdateDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderStatus property.
+ *
+ * @return String OrderStatus.
+ */
+ public function getOrderStatus()
+ {
+ return $this->_fields['OrderStatus']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderStatus property.
+ *
+ * @param string orderStatus
+ * @return this instance
+ */
+ public function setOrderStatus($value)
+ {
+ $this->_fields['OrderStatus']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if OrderStatus is set.
+ *
+ * @return true if OrderStatus is set.
+ */
+ public function isSetOrderStatus()
+ {
+ return !is_null($this->_fields['OrderStatus']['FieldValue']);
+ }
+
+ /**
+ * Set the value of OrderStatus, return this.
+ *
+ * @param orderStatus
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withOrderStatus($value)
+ {
+ $this->setOrderStatus($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the FulfillmentChannel property.
+ *
+ * @return String FulfillmentChannel.
+ */
+ public function getFulfillmentChannel()
+ {
+ return $this->_fields['FulfillmentChannel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the FulfillmentChannel property.
+ *
+ * @param string fulfillmentChannel
+ * @return this instance
+ */
+ public function setFulfillmentChannel($value)
+ {
+ $this->_fields['FulfillmentChannel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if FulfillmentChannel is set.
+ *
+ * @return true if FulfillmentChannel is set.
+ */
+ public function isSetFulfillmentChannel()
+ {
+ return !is_null($this->_fields['FulfillmentChannel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of FulfillmentChannel, return this.
+ *
+ * @param fulfillmentChannel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withFulfillmentChannel($value)
+ {
+ $this->setFulfillmentChannel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the SalesChannel property.
+ *
+ * @return String SalesChannel.
+ */
+ public function getSalesChannel()
+ {
+ return $this->_fields['SalesChannel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SalesChannel property.
+ *
+ * @param string salesChannel
+ * @return this instance
+ */
+ public function setSalesChannel($value)
+ {
+ $this->_fields['SalesChannel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SalesChannel is set.
+ *
+ * @return true if SalesChannel is set.
+ */
+ public function isSetSalesChannel()
+ {
+ return !is_null($this->_fields['SalesChannel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SalesChannel, return this.
+ *
+ * @param salesChannel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSalesChannel($value)
+ {
+ $this->setSalesChannel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderChannel property.
+ *
+ * @return String OrderChannel.
+ */
+ public function getOrderChannel()
+ {
+ return $this->_fields['OrderChannel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderChannel property.
+ *
+ * @param string orderChannel
+ * @return this instance
+ */
+ public function setOrderChannel($value)
+ {
+ $this->_fields['OrderChannel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if OrderChannel is set.
+ *
+ * @return true if OrderChannel is set.
+ */
+ public function isSetOrderChannel()
+ {
+ return !is_null($this->_fields['OrderChannel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of OrderChannel, return this.
+ *
+ * @param orderChannel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withOrderChannel($value)
+ {
+ $this->setOrderChannel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShipServiceLevel property.
+ *
+ * @return String ShipServiceLevel.
+ */
+ public function getShipServiceLevel()
+ {
+ return $this->_fields['ShipServiceLevel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShipServiceLevel property.
+ *
+ * @param string shipServiceLevel
+ * @return this instance
+ */
+ public function setShipServiceLevel($value)
+ {
+ $this->_fields['ShipServiceLevel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShipServiceLevel is set.
+ *
+ * @return true if ShipServiceLevel is set.
+ */
+ public function isSetShipServiceLevel()
+ {
+ return !is_null($this->_fields['ShipServiceLevel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShipServiceLevel, return this.
+ *
+ * @param shipServiceLevel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShipServiceLevel($value)
+ {
+ $this->setShipServiceLevel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShippingAddress property.
+ *
+ * @return Address ShippingAddress.
+ */
+ public function getShippingAddress()
+ {
+ return $this->_fields['ShippingAddress']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShippingAddress property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Address shippingAddress
+ * @return this instance
+ */
+ public function setShippingAddress($value)
+ {
+ $this->_fields['ShippingAddress']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShippingAddress is set.
+ *
+ * @return true if ShippingAddress is set.
+ */
+ public function isSetShippingAddress()
+ {
+ return !is_null($this->_fields['ShippingAddress']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShippingAddress, return this.
+ *
+ * @param shippingAddress
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShippingAddress($value)
+ {
+ $this->setShippingAddress($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderTotal property.
+ *
+ * @return Money OrderTotal.
+ */
+ public function getOrderTotal()
+ {
+ return $this->_fields['OrderTotal']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderTotal property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money orderTotal
+ * @return this instance
+ */
+ public function setOrderTotal($value)
+ {
+ $this->_fields['OrderTotal']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if OrderTotal is set.
+ *
+ * @return true if OrderTotal is set.
+ */
+ public function isSetOrderTotal()
+ {
+ return !is_null($this->_fields['OrderTotal']['FieldValue']);
+ }
+
+ /**
+ * Set the value of OrderTotal, return this.
+ *
+ * @param orderTotal
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withOrderTotal($value)
+ {
+ $this->setOrderTotal($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the NumberOfItemsShipped property.
+ *
+ * @return Integer NumberOfItemsShipped.
+ */
+ public function getNumberOfItemsShipped()
+ {
+ return $this->_fields['NumberOfItemsShipped']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NumberOfItemsShipped property.
+ *
+ * @param int numberOfItemsShipped
+ * @return this instance
+ */
+ public function setNumberOfItemsShipped($value)
+ {
+ $this->_fields['NumberOfItemsShipped']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NumberOfItemsShipped is set.
+ *
+ * @return true if NumberOfItemsShipped is set.
+ */
+ public function isSetNumberOfItemsShipped()
+ {
+ return !is_null($this->_fields['NumberOfItemsShipped']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NumberOfItemsShipped, return this.
+ *
+ * @param numberOfItemsShipped
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNumberOfItemsShipped($value)
+ {
+ $this->setNumberOfItemsShipped($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the NumberOfItemsUnshipped property.
+ *
+ * @return Integer NumberOfItemsUnshipped.
+ */
+ public function getNumberOfItemsUnshipped()
+ {
+ return $this->_fields['NumberOfItemsUnshipped']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NumberOfItemsUnshipped property.
+ *
+ * @param int numberOfItemsUnshipped
+ * @return this instance
+ */
+ public function setNumberOfItemsUnshipped($value)
+ {
+ $this->_fields['NumberOfItemsUnshipped']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NumberOfItemsUnshipped is set.
+ *
+ * @return true if NumberOfItemsUnshipped is set.
+ */
+ public function isSetNumberOfItemsUnshipped()
+ {
+ return !is_null($this->_fields['NumberOfItemsUnshipped']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NumberOfItemsUnshipped, return this.
+ *
+ * @param numberOfItemsUnshipped
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNumberOfItemsUnshipped($value)
+ {
+ $this->setNumberOfItemsUnshipped($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PaymentExecutionDetail property.
+ *
+ * @return List PaymentExecutionDetail.
+ */
+ public function getPaymentExecutionDetail()
+ {
+ if ($this->_fields['PaymentExecutionDetail']['FieldValue'] == null)
+ {
+ $this->_fields['PaymentExecutionDetail']['FieldValue'] = array();
+ }
+ return $this->_fields['PaymentExecutionDetail']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PaymentExecutionDetail property.
+ *
+ * @param array paymentExecutionDetail
+ * @return this instance
+ */
+ public function setPaymentExecutionDetail($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['PaymentExecutionDetail']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear PaymentExecutionDetail.
+ */
+ public function unsetPaymentExecutionDetail()
+ {
+ $this->_fields['PaymentExecutionDetail']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if PaymentExecutionDetail is set.
+ *
+ * @return true if PaymentExecutionDetail is set.
+ */
+ public function isSetPaymentExecutionDetail()
+ {
+ return !empty($this->_fields['PaymentExecutionDetail']['FieldValue']);
+ }
+
+ /**
+ * Add values for PaymentExecutionDetail, return this.
+ *
+ * @param paymentExecutionDetail
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withPaymentExecutionDetail()
+ {
+ foreach (func_get_args() as $PaymentExecutionDetail)
+ {
+ $this->_fields['PaymentExecutionDetail']['FieldValue'][] = $PaymentExecutionDetail;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the PaymentMethod property.
+ *
+ * @return String PaymentMethod.
+ */
+ public function getPaymentMethod()
+ {
+ return $this->_fields['PaymentMethod']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PaymentMethod property.
+ *
+ * @param string paymentMethod
+ * @return this instance
+ */
+ public function setPaymentMethod($value)
+ {
+ $this->_fields['PaymentMethod']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PaymentMethod is set.
+ *
+ * @return true if PaymentMethod is set.
+ */
+ public function isSetPaymentMethod()
+ {
+ return !is_null($this->_fields['PaymentMethod']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PaymentMethod, return this.
+ *
+ * @param paymentMethod
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPaymentMethod($value)
+ {
+ $this->setPaymentMethod($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PaymentMethodDetails property.
+ *
+ * @return List PaymentMethodDetails.
+ */
+ public function getPaymentMethodDetails()
+ {
+ if ($this->_fields['PaymentMethodDetails']['FieldValue'] == null)
+ {
+ $this->_fields['PaymentMethodDetails']['FieldValue'] = array();
+ }
+ return $this->_fields['PaymentMethodDetails']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PaymentMethodDetails property.
+ *
+ * @param array paymentMethodDetails
+ * @return this instance
+ */
+ public function setPaymentMethodDetails($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['PaymentMethodDetails']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear PaymentMethodDetails.
+ */
+ public function unsetPaymentMethodDetails()
+ {
+ $this->_fields['PaymentMethodDetails']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if PaymentMethodDetails is set.
+ *
+ * @return true if PaymentMethodDetails is set.
+ */
+ public function isSetPaymentMethodDetails()
+ {
+ return !empty($this->_fields['PaymentMethodDetails']['FieldValue']);
+ }
+
+ /**
+ * Add values for PaymentMethodDetails, return this.
+ *
+ * @param paymentMethodDetails
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withPaymentMethodDetails()
+ {
+ foreach (func_get_args() as $PaymentMethodDetails)
+ {
+ $this->_fields['PaymentMethodDetails']['FieldValue'][] = $PaymentMethodDetails;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the MarketplaceId property.
+ *
+ * @return String MarketplaceId.
+ */
+ public function getMarketplaceId()
+ {
+ return $this->_fields['MarketplaceId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the MarketplaceId property.
+ *
+ * @param string marketplaceId
+ * @return this instance
+ */
+ public function setMarketplaceId($value)
+ {
+ $this->_fields['MarketplaceId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if MarketplaceId is set.
+ *
+ * @return true if MarketplaceId is set.
+ */
+ public function isSetMarketplaceId()
+ {
+ return !is_null($this->_fields['MarketplaceId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of MarketplaceId, return this.
+ *
+ * @param marketplaceId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withMarketplaceId($value)
+ {
+ $this->setMarketplaceId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerEmail property.
+ *
+ * @return String BuyerEmail.
+ */
+ public function getBuyerEmail()
+ {
+ return $this->_fields['BuyerEmail']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerEmail property.
+ *
+ * @param string buyerEmail
+ * @return this instance
+ */
+ public function setBuyerEmail($value)
+ {
+ $this->_fields['BuyerEmail']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerEmail is set.
+ *
+ * @return true if BuyerEmail is set.
+ */
+ public function isSetBuyerEmail()
+ {
+ return !is_null($this->_fields['BuyerEmail']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerEmail, return this.
+ *
+ * @param buyerEmail
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerEmail($value)
+ {
+ $this->setBuyerEmail($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerName property.
+ *
+ * @return String BuyerName.
+ */
+ public function getBuyerName()
+ {
+ return $this->_fields['BuyerName']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerName property.
+ *
+ * @param string buyerName
+ * @return this instance
+ */
+ public function setBuyerName($value)
+ {
+ $this->_fields['BuyerName']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerName is set.
+ *
+ * @return true if BuyerName is set.
+ */
+ public function isSetBuyerName()
+ {
+ return !is_null($this->_fields['BuyerName']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerName, return this.
+ *
+ * @param buyerName
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerName($value)
+ {
+ $this->setBuyerName($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerCounty property.
+ *
+ * @return String BuyerCounty.
+ */
+ public function getBuyerCounty()
+ {
+ return $this->_fields['BuyerCounty']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerCounty property.
+ *
+ * @param string buyerCounty
+ * @return this instance
+ */
+ public function setBuyerCounty($value)
+ {
+ $this->_fields['BuyerCounty']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerCounty is set.
+ *
+ * @return true if BuyerCounty is set.
+ */
+ public function isSetBuyerCounty()
+ {
+ return !is_null($this->_fields['BuyerCounty']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerCounty, return this.
+ *
+ * @param buyerCounty
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerCounty($value)
+ {
+ $this->setBuyerCounty($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerTaxInfo property.
+ *
+ * @return BuyerTaxInfo BuyerTaxInfo.
+ */
+ public function getBuyerTaxInfo()
+ {
+ return $this->_fields['BuyerTaxInfo']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerTaxInfo property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_BuyerTaxInfo buyerTaxInfo
+ * @return this instance
+ */
+ public function setBuyerTaxInfo($value)
+ {
+ $this->_fields['BuyerTaxInfo']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerTaxInfo is set.
+ *
+ * @return true if BuyerTaxInfo is set.
+ */
+ public function isSetBuyerTaxInfo()
+ {
+ return !is_null($this->_fields['BuyerTaxInfo']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerTaxInfo, return this.
+ *
+ * @param buyerTaxInfo
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerTaxInfo($value)
+ {
+ $this->setBuyerTaxInfo($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShipmentServiceLevelCategory property.
+ *
+ * @return String ShipmentServiceLevelCategory.
+ */
+ public function getShipmentServiceLevelCategory()
+ {
+ return $this->_fields['ShipmentServiceLevelCategory']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShipmentServiceLevelCategory property.
+ *
+ * @param string shipmentServiceLevelCategory
+ * @return this instance
+ */
+ public function setShipmentServiceLevelCategory($value)
+ {
+ $this->_fields['ShipmentServiceLevelCategory']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShipmentServiceLevelCategory is set.
+ *
+ * @return true if ShipmentServiceLevelCategory is set.
+ */
+ public function isSetShipmentServiceLevelCategory()
+ {
+ return !is_null($this->_fields['ShipmentServiceLevelCategory']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShipmentServiceLevelCategory, return this.
+ *
+ * @param shipmentServiceLevelCategory
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShipmentServiceLevelCategory($value)
+ {
+ $this->setShipmentServiceLevelCategory($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of ShippedByAmazonTFM.
+ *
+ * @return true if ShippedByAmazonTFM is set to true.
+ */
+ public function isShippedByAmazonTFM()
+ {
+ return !is_null($this->_fields['ShippedByAmazonTFM']['FieldValue']) && $this->_fields['ShippedByAmazonTFM']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the ShippedByAmazonTFM property.
+ *
+ * @return Boolean ShippedByAmazonTFM.
+ */
+ public function getShippedByAmazonTFM()
+ {
+ return $this->_fields['ShippedByAmazonTFM']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShippedByAmazonTFM property.
+ *
+ * @param bool shippedByAmazonTFM
+ * @return this instance
+ */
+ public function setShippedByAmazonTFM($value)
+ {
+ $this->_fields['ShippedByAmazonTFM']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShippedByAmazonTFM is set.
+ *
+ * @return true if ShippedByAmazonTFM is set.
+ */
+ public function isSetShippedByAmazonTFM()
+ {
+ return !is_null($this->_fields['ShippedByAmazonTFM']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShippedByAmazonTFM, return this.
+ *
+ * @param shippedByAmazonTFM
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShippedByAmazonTFM($value)
+ {
+ $this->setShippedByAmazonTFM($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the TFMShipmentStatus property.
+ *
+ * @return String TFMShipmentStatus.
+ */
+ public function getTFMShipmentStatus()
+ {
+ return $this->_fields['TFMShipmentStatus']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the TFMShipmentStatus property.
+ *
+ * @param string tfmShipmentStatus
+ * @return this instance
+ */
+ public function setTFMShipmentStatus($value)
+ {
+ $this->_fields['TFMShipmentStatus']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if TFMShipmentStatus is set.
+ *
+ * @return true if TFMShipmentStatus is set.
+ */
+ public function isSetTFMShipmentStatus()
+ {
+ return !is_null($this->_fields['TFMShipmentStatus']['FieldValue']);
+ }
+
+ /**
+ * Set the value of TFMShipmentStatus, return this.
+ *
+ * @param tfmShipmentStatus
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withTFMShipmentStatus($value)
+ {
+ $this->setTFMShipmentStatus($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CbaDisplayableShippingLabel property.
+ *
+ * @return String CbaDisplayableShippingLabel.
+ */
+ public function getCbaDisplayableShippingLabel()
+ {
+ return $this->_fields['CbaDisplayableShippingLabel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CbaDisplayableShippingLabel property.
+ *
+ * @param string cbaDisplayableShippingLabel
+ * @return this instance
+ */
+ public function setCbaDisplayableShippingLabel($value)
+ {
+ $this->_fields['CbaDisplayableShippingLabel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CbaDisplayableShippingLabel is set.
+ *
+ * @return true if CbaDisplayableShippingLabel is set.
+ */
+ public function isSetCbaDisplayableShippingLabel()
+ {
+ return !is_null($this->_fields['CbaDisplayableShippingLabel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CbaDisplayableShippingLabel, return this.
+ *
+ * @param cbaDisplayableShippingLabel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCbaDisplayableShippingLabel($value)
+ {
+ $this->setCbaDisplayableShippingLabel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderType property.
+ *
+ * @return String OrderType.
+ */
+ public function getOrderType()
+ {
+ return $this->_fields['OrderType']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderType property.
+ *
+ * @param string orderType
+ * @return this instance
+ */
+ public function setOrderType($value)
+ {
+ $this->_fields['OrderType']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if OrderType is set.
+ *
+ * @return true if OrderType is set.
+ */
+ public function isSetOrderType()
+ {
+ return !is_null($this->_fields['OrderType']['FieldValue']);
+ }
+
+ /**
+ * Set the value of OrderType, return this.
+ *
+ * @param orderType
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withOrderType($value)
+ {
+ $this->setOrderType($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the EarliestShipDate property.
+ *
+ * @return XMLGregorianCalendar EarliestShipDate.
+ */
+ public function getEarliestShipDate()
+ {
+ return $this->_fields['EarliestShipDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the EarliestShipDate property.
+ *
+ * @param string earliestShipDate
+ * @return this instance
+ */
+ public function setEarliestShipDate($value)
+ {
+ $this->_fields['EarliestShipDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if EarliestShipDate is set.
+ *
+ * @return true if EarliestShipDate is set.
+ */
+ public function isSetEarliestShipDate()
+ {
+ return !is_null($this->_fields['EarliestShipDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of EarliestShipDate, return this.
+ *
+ * @param earliestShipDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withEarliestShipDate($value)
+ {
+ $this->setEarliestShipDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LatestShipDate property.
+ *
+ * @return XMLGregorianCalendar LatestShipDate.
+ */
+ public function getLatestShipDate()
+ {
+ return $this->_fields['LatestShipDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LatestShipDate property.
+ *
+ * @param string latestShipDate
+ * @return this instance
+ */
+ public function setLatestShipDate($value)
+ {
+ $this->_fields['LatestShipDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LatestShipDate is set.
+ *
+ * @return true if LatestShipDate is set.
+ */
+ public function isSetLatestShipDate()
+ {
+ return !is_null($this->_fields['LatestShipDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LatestShipDate, return this.
+ *
+ * @param latestShipDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLatestShipDate($value)
+ {
+ $this->setLatestShipDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the EarliestDeliveryDate property.
+ *
+ * @return XMLGregorianCalendar EarliestDeliveryDate.
+ */
+ public function getEarliestDeliveryDate()
+ {
+ return $this->_fields['EarliestDeliveryDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the EarliestDeliveryDate property.
+ *
+ * @param string earliestDeliveryDate
+ * @return this instance
+ */
+ public function setEarliestDeliveryDate($value)
+ {
+ $this->_fields['EarliestDeliveryDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if EarliestDeliveryDate is set.
+ *
+ * @return true if EarliestDeliveryDate is set.
+ */
+ public function isSetEarliestDeliveryDate()
+ {
+ return !is_null($this->_fields['EarliestDeliveryDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of EarliestDeliveryDate, return this.
+ *
+ * @param earliestDeliveryDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withEarliestDeliveryDate($value)
+ {
+ $this->setEarliestDeliveryDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the LatestDeliveryDate property.
+ *
+ * @return XMLGregorianCalendar LatestDeliveryDate.
+ */
+ public function getLatestDeliveryDate()
+ {
+ return $this->_fields['LatestDeliveryDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the LatestDeliveryDate property.
+ *
+ * @param string latestDeliveryDate
+ * @return this instance
+ */
+ public function setLatestDeliveryDate($value)
+ {
+ $this->_fields['LatestDeliveryDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if LatestDeliveryDate is set.
+ *
+ * @return true if LatestDeliveryDate is set.
+ */
+ public function isSetLatestDeliveryDate()
+ {
+ return !is_null($this->_fields['LatestDeliveryDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of LatestDeliveryDate, return this.
+ *
+ * @param latestDeliveryDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withLatestDeliveryDate($value)
+ {
+ $this->setLatestDeliveryDate($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of IsBusinessOrder.
+ *
+ * @return true if IsBusinessOrder is set to true.
+ */
+ public function isIsBusinessOrder()
+ {
+ return !is_null($this->_fields['IsBusinessOrder']['FieldValue']) && $this->_fields['IsBusinessOrder']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the IsBusinessOrder property.
+ *
+ * @return Boolean IsBusinessOrder.
+ */
+ public function getIsBusinessOrder()
+ {
+ return $this->_fields['IsBusinessOrder']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the IsBusinessOrder property.
+ *
+ * @param bool isBusinessOrder
+ * @return this instance
+ */
+ public function setIsBusinessOrder($value)
+ {
+ $this->_fields['IsBusinessOrder']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if IsBusinessOrder is set.
+ *
+ * @return true if IsBusinessOrder is set.
+ */
+ public function isSetIsBusinessOrder()
+ {
+ return !is_null($this->_fields['IsBusinessOrder']['FieldValue']);
+ }
+
+ /**
+ * Set the value of IsBusinessOrder, return this.
+ *
+ * @param isBusinessOrder
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withIsBusinessOrder($value)
+ {
+ $this->setIsBusinessOrder($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PurchaseOrderNumber property.
+ *
+ * @return String PurchaseOrderNumber.
+ */
+ public function getPurchaseOrderNumber()
+ {
+ return $this->_fields['PurchaseOrderNumber']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PurchaseOrderNumber property.
+ *
+ * @param string purchaseOrderNumber
+ * @return this instance
+ */
+ public function setPurchaseOrderNumber($value)
+ {
+ $this->_fields['PurchaseOrderNumber']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PurchaseOrderNumber is set.
+ *
+ * @return true if PurchaseOrderNumber is set.
+ */
+ public function isSetPurchaseOrderNumber()
+ {
+ return !is_null($this->_fields['PurchaseOrderNumber']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PurchaseOrderNumber, return this.
+ *
+ * @param purchaseOrderNumber
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPurchaseOrderNumber($value)
+ {
+ $this->setPurchaseOrderNumber($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of IsPrime.
+ *
+ * @return true if IsPrime is set to true.
+ */
+ public function isIsPrime()
+ {
+ return !is_null($this->_fields['IsPrime']['FieldValue']) && $this->_fields['IsPrime']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the IsPrime property.
+ *
+ * @return Boolean IsPrime.
+ */
+ public function getIsPrime()
+ {
+ return $this->_fields['IsPrime']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the IsPrime property.
+ *
+ * @param bool isPrime
+ * @return this instance
+ */
+ public function setIsPrime($value)
+ {
+ $this->_fields['IsPrime']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if IsPrime is set.
+ *
+ * @return true if IsPrime is set.
+ */
+ public function isSetIsPrime()
+ {
+ return !is_null($this->_fields['IsPrime']['FieldValue']);
+ }
+
+ /**
+ * Set the value of IsPrime, return this.
+ *
+ * @param isPrime
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withIsPrime($value)
+ {
+ $this->setIsPrime($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of IsPremiumOrder.
+ *
+ * @return true if IsPremiumOrder is set to true.
+ */
+ public function isIsPremiumOrder()
+ {
+ return !is_null($this->_fields['IsPremiumOrder']['FieldValue']) && $this->_fields['IsPremiumOrder']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the IsPremiumOrder property.
+ *
+ * @return Boolean IsPremiumOrder.
+ */
+ public function getIsPremiumOrder()
+ {
+ return $this->_fields['IsPremiumOrder']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the IsPremiumOrder property.
+ *
+ * @param bool isPremiumOrder
+ * @return this instance
+ */
+ public function setIsPremiumOrder($value)
+ {
+ $this->_fields['IsPremiumOrder']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if IsPremiumOrder is set.
+ *
+ * @return true if IsPremiumOrder is set.
+ */
+ public function isSetIsPremiumOrder()
+ {
+ return !is_null($this->_fields['IsPremiumOrder']['FieldValue']);
+ }
+
+ /**
+ * Set the value of IsPremiumOrder, return this.
+ *
+ * @param isPremiumOrder
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withIsPremiumOrder($value)
+ {
+ $this->setIsPremiumOrder($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ReplacedOrderId property.
+ *
+ * @return String ReplacedOrderId.
+ */
+ public function getReplacedOrderId()
+ {
+ return $this->_fields['ReplacedOrderId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ReplacedOrderId property.
+ *
+ * @param string replacedOrderId
+ * @return this instance
+ */
+ public function setReplacedOrderId($value)
+ {
+ $this->_fields['ReplacedOrderId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ReplacedOrderId is set.
+ *
+ * @return true if ReplacedOrderId is set.
+ */
+ public function isSetReplacedOrderId()
+ {
+ return !is_null($this->_fields['ReplacedOrderId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ReplacedOrderId, return this.
+ *
+ * @param replacedOrderId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withReplacedOrderId($value)
+ {
+ $this->setReplacedOrderId($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of IsReplacementOrder.
+ *
+ * @return true if IsReplacementOrder is set to true.
+ */
+ public function isIsReplacementOrder()
+ {
+ return !is_null($this->_fields['IsReplacementOrder']['FieldValue']) && $this->_fields['IsReplacementOrder']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the IsReplacementOrder property.
+ *
+ * @return Boolean IsReplacementOrder.
+ */
+ public function getIsReplacementOrder()
+ {
+ return $this->_fields['IsReplacementOrder']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the IsReplacementOrder property.
+ *
+ * @param bool isReplacementOrder
+ * @return this instance
+ */
+ public function setIsReplacementOrder($value)
+ {
+ $this->_fields['IsReplacementOrder']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if IsReplacementOrder is set.
+ *
+ * @return true if IsReplacementOrder is set.
+ */
+ public function isSetIsReplacementOrder()
+ {
+ return !is_null($this->_fields['IsReplacementOrder']['FieldValue']);
+ }
+
+ /**
+ * Set the value of IsReplacementOrder, return this.
+ *
+ * @param isReplacementOrder
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withIsReplacementOrder($value)
+ {
+ $this->setIsReplacementOrder($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/OrderItem.php b/src/MarketplaceWebServiceOrders/Model/OrderItem.php
new file mode 100644
index 0000000..e646dd1
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/OrderItem.php
@@ -0,0 +1,1562 @@
+
+ *
+ * ASIN: string
+ * SellerSKU: string
+ * OrderItemId: string
+ * Title: string
+ * QuantityOrdered: int
+ * QuantityShipped: int
+ * ProductInfo: MarketplaceWebServiceOrders_Model_ProductInfoDetail
+ * PointsGranted: MarketplaceWebServiceOrders_Model_PointsGrantedDetail
+ * ItemPrice: MarketplaceWebServiceOrders_Model_Money
+ * ShippingPrice: MarketplaceWebServiceOrders_Model_Money
+ * GiftWrapPrice: MarketplaceWebServiceOrders_Model_Money
+ * ItemTax: MarketplaceWebServiceOrders_Model_Money
+ * ShippingTax: MarketplaceWebServiceOrders_Model_Money
+ * GiftWrapTax: MarketplaceWebServiceOrders_Model_Money
+ * ShippingDiscount: MarketplaceWebServiceOrders_Model_Money
+ * PromotionDiscount: MarketplaceWebServiceOrders_Model_Money
+ * PromotionIds: array
+ * CODFee: MarketplaceWebServiceOrders_Model_Money
+ * CODFeeDiscount: MarketplaceWebServiceOrders_Model_Money
+ * IsGift: bool
+ * GiftMessageText: string
+ * GiftWrapLevel: string
+ * InvoiceData: MarketplaceWebServiceOrders_Model_InvoiceData
+ * ConditionNote: string
+ * ConditionId: string
+ * ConditionSubtypeId: string
+ * ScheduledDeliveryStartDate: string
+ * ScheduledDeliveryEndDate: string
+ * PriceDesignation: string
+ * BuyerCustomizedInfo: MarketplaceWebServiceOrders_Model_BuyerCustomizedInfoDetail
+ * TaxCollection: MarketplaceWebServiceOrders_Model_TaxCollection
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_OrderItem extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'ASIN' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'SellerSKU' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'OrderItemId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Title' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'QuantityOrdered' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'QuantityShipped' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'ProductInfo' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_ProductInfoDetail'),
+ 'PointsGranted' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_PointsGrantedDetail'),
+ 'ItemPrice' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'ShippingPrice' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'GiftWrapPrice' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'ItemTax' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'ShippingTax' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'GiftWrapTax' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'ShippingDiscount' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'PromotionDiscount' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'PromotionIds' => array('FieldValue' => array(), 'FieldType' => array('string'), 'ListMemberName' => 'PromotionId'),
+ 'CODFee' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'CODFeeDiscount' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'IsGift' => array('FieldValue' => null, 'FieldType' => 'bool'),
+ 'GiftMessageText' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'GiftWrapLevel' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'InvoiceData' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_InvoiceData'),
+ 'ConditionNote' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ConditionId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ConditionSubtypeId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ScheduledDeliveryStartDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ScheduledDeliveryEndDate' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'PriceDesignation' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'BuyerCustomizedInfo' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_BuyerCustomizedInfoDetail'),
+ 'TaxCollection' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_TaxCollection'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the ASIN property.
+ *
+ * @return String ASIN.
+ */
+ public function getASIN()
+ {
+ return $this->_fields['ASIN']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ASIN property.
+ *
+ * @param string asin
+ * @return this instance
+ */
+ public function setASIN($value)
+ {
+ $this->_fields['ASIN']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ASIN is set.
+ *
+ * @return true if ASIN is set.
+ */
+ public function isSetASIN()
+ {
+ return !is_null($this->_fields['ASIN']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ASIN, return this.
+ *
+ * @param asin
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withASIN($value)
+ {
+ $this->setASIN($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the SellerSKU property.
+ *
+ * @return String SellerSKU.
+ */
+ public function getSellerSKU()
+ {
+ return $this->_fields['SellerSKU']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the SellerSKU property.
+ *
+ * @param string sellerSKU
+ * @return this instance
+ */
+ public function setSellerSKU($value)
+ {
+ $this->_fields['SellerSKU']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if SellerSKU is set.
+ *
+ * @return true if SellerSKU is set.
+ */
+ public function isSetSellerSKU()
+ {
+ return !is_null($this->_fields['SellerSKU']['FieldValue']);
+ }
+
+ /**
+ * Set the value of SellerSKU, return this.
+ *
+ * @param sellerSKU
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withSellerSKU($value)
+ {
+ $this->setSellerSKU($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the OrderItemId property.
+ *
+ * @return String OrderItemId.
+ */
+ public function getOrderItemId()
+ {
+ return $this->_fields['OrderItemId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the OrderItemId property.
+ *
+ * @param string orderItemId
+ * @return this instance
+ */
+ public function setOrderItemId($value)
+ {
+ $this->_fields['OrderItemId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if OrderItemId is set.
+ *
+ * @return true if OrderItemId is set.
+ */
+ public function isSetOrderItemId()
+ {
+ return !is_null($this->_fields['OrderItemId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of OrderItemId, return this.
+ *
+ * @param orderItemId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withOrderItemId($value)
+ {
+ $this->setOrderItemId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Title property.
+ *
+ * @return String Title.
+ */
+ public function getTitle()
+ {
+ return $this->_fields['Title']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Title property.
+ *
+ * @param string title
+ * @return this instance
+ */
+ public function setTitle($value)
+ {
+ $this->_fields['Title']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Title is set.
+ *
+ * @return true if Title is set.
+ */
+ public function isSetTitle()
+ {
+ return !is_null($this->_fields['Title']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Title, return this.
+ *
+ * @param title
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withTitle($value)
+ {
+ $this->setTitle($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the QuantityOrdered property.
+ *
+ * @return int QuantityOrdered.
+ */
+ public function getQuantityOrdered()
+ {
+ return $this->_fields['QuantityOrdered']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the QuantityOrdered property.
+ *
+ * @param int quantityOrdered
+ * @return this instance
+ */
+ public function setQuantityOrdered($value)
+ {
+ $this->_fields['QuantityOrdered']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if QuantityOrdered is set.
+ *
+ * @return true if QuantityOrdered is set.
+ */
+ public function isSetQuantityOrdered()
+ {
+ return !is_null($this->_fields['QuantityOrdered']['FieldValue']);
+ }
+
+ /**
+ * Set the value of QuantityOrdered, return this.
+ *
+ * @param quantityOrdered
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withQuantityOrdered($value)
+ {
+ $this->setQuantityOrdered($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the QuantityShipped property.
+ *
+ * @return Integer QuantityShipped.
+ */
+ public function getQuantityShipped()
+ {
+ return $this->_fields['QuantityShipped']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the QuantityShipped property.
+ *
+ * @param int quantityShipped
+ * @return this instance
+ */
+ public function setQuantityShipped($value)
+ {
+ $this->_fields['QuantityShipped']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if QuantityShipped is set.
+ *
+ * @return true if QuantityShipped is set.
+ */
+ public function isSetQuantityShipped()
+ {
+ return !is_null($this->_fields['QuantityShipped']['FieldValue']);
+ }
+
+ /**
+ * Set the value of QuantityShipped, return this.
+ *
+ * @param quantityShipped
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withQuantityShipped($value)
+ {
+ $this->setQuantityShipped($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ProductInfo property.
+ *
+ * @return ProductInfoDetail ProductInfo.
+ */
+ public function getProductInfo()
+ {
+ return $this->_fields['ProductInfo']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ProductInfo property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_ProductInfoDetail productInfo
+ * @return this instance
+ */
+ public function setProductInfo($value)
+ {
+ $this->_fields['ProductInfo']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ProductInfo is set.
+ *
+ * @return true if ProductInfo is set.
+ */
+ public function isSetProductInfo()
+ {
+ return !is_null($this->_fields['ProductInfo']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ProductInfo, return this.
+ *
+ * @param productInfo
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withProductInfo($value)
+ {
+ $this->setProductInfo($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PointsGranted property.
+ *
+ * @return PointsGrantedDetail PointsGranted.
+ */
+ public function getPointsGranted()
+ {
+ return $this->_fields['PointsGranted']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PointsGranted property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_PointsGrantedDetail pointsGranted
+ * @return this instance
+ */
+ public function setPointsGranted($value)
+ {
+ $this->_fields['PointsGranted']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PointsGranted is set.
+ *
+ * @return true if PointsGranted is set.
+ */
+ public function isSetPointsGranted()
+ {
+ return !is_null($this->_fields['PointsGranted']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PointsGranted, return this.
+ *
+ * @param pointsGranted
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPointsGranted($value)
+ {
+ $this->setPointsGranted($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ItemPrice property.
+ *
+ * @return Money ItemPrice.
+ */
+ public function getItemPrice()
+ {
+ return $this->_fields['ItemPrice']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ItemPrice property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money itemPrice
+ * @return this instance
+ */
+ public function setItemPrice($value)
+ {
+ $this->_fields['ItemPrice']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ItemPrice is set.
+ *
+ * @return true if ItemPrice is set.
+ */
+ public function isSetItemPrice()
+ {
+ return !is_null($this->_fields['ItemPrice']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ItemPrice, return this.
+ *
+ * @param itemPrice
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withItemPrice($value)
+ {
+ $this->setItemPrice($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShippingPrice property.
+ *
+ * @return Money ShippingPrice.
+ */
+ public function getShippingPrice()
+ {
+ return $this->_fields['ShippingPrice']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShippingPrice property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money shippingPrice
+ * @return this instance
+ */
+ public function setShippingPrice($value)
+ {
+ $this->_fields['ShippingPrice']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShippingPrice is set.
+ *
+ * @return true if ShippingPrice is set.
+ */
+ public function isSetShippingPrice()
+ {
+ return !is_null($this->_fields['ShippingPrice']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShippingPrice, return this.
+ *
+ * @param shippingPrice
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShippingPrice($value)
+ {
+ $this->setShippingPrice($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the GiftWrapPrice property.
+ *
+ * @return Money GiftWrapPrice.
+ */
+ public function getGiftWrapPrice()
+ {
+ return $this->_fields['GiftWrapPrice']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GiftWrapPrice property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money giftWrapPrice
+ * @return this instance
+ */
+ public function setGiftWrapPrice($value)
+ {
+ $this->_fields['GiftWrapPrice']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GiftWrapPrice is set.
+ *
+ * @return true if GiftWrapPrice is set.
+ */
+ public function isSetGiftWrapPrice()
+ {
+ return !is_null($this->_fields['GiftWrapPrice']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GiftWrapPrice, return this.
+ *
+ * @param giftWrapPrice
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGiftWrapPrice($value)
+ {
+ $this->setGiftWrapPrice($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ItemTax property.
+ *
+ * @return Money ItemTax.
+ */
+ public function getItemTax()
+ {
+ return $this->_fields['ItemTax']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ItemTax property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money itemTax
+ * @return this instance
+ */
+ public function setItemTax($value)
+ {
+ $this->_fields['ItemTax']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ItemTax is set.
+ *
+ * @return true if ItemTax is set.
+ */
+ public function isSetItemTax()
+ {
+ return !is_null($this->_fields['ItemTax']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ItemTax, return this.
+ *
+ * @param itemTax
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withItemTax($value)
+ {
+ $this->setItemTax($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShippingTax property.
+ *
+ * @return Money ShippingTax.
+ */
+ public function getShippingTax()
+ {
+ return $this->_fields['ShippingTax']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShippingTax property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money shippingTax
+ * @return this instance
+ */
+ public function setShippingTax($value)
+ {
+ $this->_fields['ShippingTax']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShippingTax is set.
+ *
+ * @return true if ShippingTax is set.
+ */
+ public function isSetShippingTax()
+ {
+ return !is_null($this->_fields['ShippingTax']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShippingTax, return this.
+ *
+ * @param shippingTax
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShippingTax($value)
+ {
+ $this->setShippingTax($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the GiftWrapTax property.
+ *
+ * @return Money GiftWrapTax.
+ */
+ public function getGiftWrapTax()
+ {
+ return $this->_fields['GiftWrapTax']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GiftWrapTax property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money giftWrapTax
+ * @return this instance
+ */
+ public function setGiftWrapTax($value)
+ {
+ $this->_fields['GiftWrapTax']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GiftWrapTax is set.
+ *
+ * @return true if GiftWrapTax is set.
+ */
+ public function isSetGiftWrapTax()
+ {
+ return !is_null($this->_fields['GiftWrapTax']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GiftWrapTax, return this.
+ *
+ * @param giftWrapTax
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGiftWrapTax($value)
+ {
+ $this->setGiftWrapTax($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ShippingDiscount property.
+ *
+ * @return Money ShippingDiscount.
+ */
+ public function getShippingDiscount()
+ {
+ return $this->_fields['ShippingDiscount']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ShippingDiscount property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money shippingDiscount
+ * @return this instance
+ */
+ public function setShippingDiscount($value)
+ {
+ $this->_fields['ShippingDiscount']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ShippingDiscount is set.
+ *
+ * @return true if ShippingDiscount is set.
+ */
+ public function isSetShippingDiscount()
+ {
+ return !is_null($this->_fields['ShippingDiscount']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ShippingDiscount, return this.
+ *
+ * @param shippingDiscount
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withShippingDiscount($value)
+ {
+ $this->setShippingDiscount($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PromotionDiscount property.
+ *
+ * @return Money PromotionDiscount.
+ */
+ public function getPromotionDiscount()
+ {
+ return $this->_fields['PromotionDiscount']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PromotionDiscount property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money promotionDiscount
+ * @return this instance
+ */
+ public function setPromotionDiscount($value)
+ {
+ $this->_fields['PromotionDiscount']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PromotionDiscount is set.
+ *
+ * @return true if PromotionDiscount is set.
+ */
+ public function isSetPromotionDiscount()
+ {
+ return !is_null($this->_fields['PromotionDiscount']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PromotionDiscount, return this.
+ *
+ * @param promotionDiscount
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPromotionDiscount($value)
+ {
+ $this->setPromotionDiscount($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PromotionIds property.
+ *
+ * @return List PromotionIds.
+ */
+ public function getPromotionIds()
+ {
+ if ($this->_fields['PromotionIds']['FieldValue'] == null)
+ {
+ $this->_fields['PromotionIds']['FieldValue'] = array();
+ }
+ return $this->_fields['PromotionIds']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PromotionIds property.
+ *
+ * @param array promotionIds
+ * @return this instance
+ */
+ public function setPromotionIds($value)
+ {
+ if (!$this->_isNumericArray($value)) {
+ $value = array ($value);
+ }
+ $this->_fields['PromotionIds']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Clear PromotionIds.
+ */
+ public function unsetPromotionIds()
+ {
+ $this->_fields['PromotionIds']['FieldValue'] = array();
+ }
+
+ /**
+ * Check to see if PromotionIds is set.
+ *
+ * @return true if PromotionIds is set.
+ */
+ public function isSetPromotionIds()
+ {
+ return !empty($this->_fields['PromotionIds']['FieldValue']);
+ }
+
+ /**
+ * Add values for PromotionIds, return this.
+ *
+ * @param promotionIds
+ * New values to add.
+ *
+ * @return This instance.
+ */
+ public function withPromotionIds()
+ {
+ foreach (func_get_args() as $PromotionIds)
+ {
+ $this->_fields['PromotionIds']['FieldValue'][] = $PromotionIds;
+ }
+ return $this;
+ }
+
+ /**
+ * Get the value of the CODFee property.
+ *
+ * @return Money CODFee.
+ */
+ public function getCODFee()
+ {
+ return $this->_fields['CODFee']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CODFee property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money codFee
+ * @return this instance
+ */
+ public function setCODFee($value)
+ {
+ $this->_fields['CODFee']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CODFee is set.
+ *
+ * @return true if CODFee is set.
+ */
+ public function isSetCODFee()
+ {
+ return !is_null($this->_fields['CODFee']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CODFee, return this.
+ *
+ * @param codFee
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCODFee($value)
+ {
+ $this->setCODFee($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the CODFeeDiscount property.
+ *
+ * @return Money CODFeeDiscount.
+ */
+ public function getCODFeeDiscount()
+ {
+ return $this->_fields['CODFeeDiscount']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the CODFeeDiscount property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money codFeeDiscount
+ * @return this instance
+ */
+ public function setCODFeeDiscount($value)
+ {
+ $this->_fields['CODFeeDiscount']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if CODFeeDiscount is set.
+ *
+ * @return true if CODFeeDiscount is set.
+ */
+ public function isSetCODFeeDiscount()
+ {
+ return !is_null($this->_fields['CODFeeDiscount']['FieldValue']);
+ }
+
+ /**
+ * Set the value of CODFeeDiscount, return this.
+ *
+ * @param codFeeDiscount
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withCODFeeDiscount($value)
+ {
+ $this->setCODFeeDiscount($value);
+ return $this;
+ }
+
+ /**
+ * Check the value of IsGift.
+ *
+ * @return true if IsGift is set to true.
+ */
+ public function isIsGift()
+ {
+ return !is_null($this->_fields['IsGift']['FieldValue']) && $this->_fields['IsGift']['FieldValue'];
+ }
+
+ /**
+ * Get the value of the IsGift property.
+ *
+ * @return Boolean IsGift.
+ */
+ public function getIsGift()
+ {
+ return $this->_fields['IsGift']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the IsGift property.
+ *
+ * @param bool isGift
+ * @return this instance
+ */
+ public function setIsGift($value)
+ {
+ $this->_fields['IsGift']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if IsGift is set.
+ *
+ * @return true if IsGift is set.
+ */
+ public function isSetIsGift()
+ {
+ return !is_null($this->_fields['IsGift']['FieldValue']);
+ }
+
+ /**
+ * Set the value of IsGift, return this.
+ *
+ * @param isGift
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withIsGift($value)
+ {
+ $this->setIsGift($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the GiftMessageText property.
+ *
+ * @return String GiftMessageText.
+ */
+ public function getGiftMessageText()
+ {
+ return $this->_fields['GiftMessageText']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GiftMessageText property.
+ *
+ * @param string giftMessageText
+ * @return this instance
+ */
+ public function setGiftMessageText($value)
+ {
+ $this->_fields['GiftMessageText']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GiftMessageText is set.
+ *
+ * @return true if GiftMessageText is set.
+ */
+ public function isSetGiftMessageText()
+ {
+ return !is_null($this->_fields['GiftMessageText']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GiftMessageText, return this.
+ *
+ * @param giftMessageText
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGiftMessageText($value)
+ {
+ $this->setGiftMessageText($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the GiftWrapLevel property.
+ *
+ * @return String GiftWrapLevel.
+ */
+ public function getGiftWrapLevel()
+ {
+ return $this->_fields['GiftWrapLevel']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the GiftWrapLevel property.
+ *
+ * @param string giftWrapLevel
+ * @return this instance
+ */
+ public function setGiftWrapLevel($value)
+ {
+ $this->_fields['GiftWrapLevel']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if GiftWrapLevel is set.
+ *
+ * @return true if GiftWrapLevel is set.
+ */
+ public function isSetGiftWrapLevel()
+ {
+ return !is_null($this->_fields['GiftWrapLevel']['FieldValue']);
+ }
+
+ /**
+ * Set the value of GiftWrapLevel, return this.
+ *
+ * @param giftWrapLevel
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withGiftWrapLevel($value)
+ {
+ $this->setGiftWrapLevel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the InvoiceData property.
+ *
+ * @return InvoiceData InvoiceData.
+ */
+ public function getInvoiceData()
+ {
+ return $this->_fields['InvoiceData']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the InvoiceData property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_InvoiceData invoiceData
+ * @return this instance
+ */
+ public function setInvoiceData($value)
+ {
+ $this->_fields['InvoiceData']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if InvoiceData is set.
+ *
+ * @return true if InvoiceData is set.
+ */
+ public function isSetInvoiceData()
+ {
+ return !is_null($this->_fields['InvoiceData']['FieldValue']);
+ }
+
+ /**
+ * Set the value of InvoiceData, return this.
+ *
+ * @param invoiceData
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withInvoiceData($value)
+ {
+ $this->setInvoiceData($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ConditionNote property.
+ *
+ * @return String ConditionNote.
+ */
+ public function getConditionNote()
+ {
+ return $this->_fields['ConditionNote']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ConditionNote property.
+ *
+ * @param string conditionNote
+ * @return this instance
+ */
+ public function setConditionNote($value)
+ {
+ $this->_fields['ConditionNote']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ConditionNote is set.
+ *
+ * @return true if ConditionNote is set.
+ */
+ public function isSetConditionNote()
+ {
+ return !is_null($this->_fields['ConditionNote']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ConditionNote, return this.
+ *
+ * @param conditionNote
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withConditionNote($value)
+ {
+ $this->setConditionNote($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ConditionId property.
+ *
+ * @return String ConditionId.
+ */
+ public function getConditionId()
+ {
+ return $this->_fields['ConditionId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ConditionId property.
+ *
+ * @param string conditionId
+ * @return this instance
+ */
+ public function setConditionId($value)
+ {
+ $this->_fields['ConditionId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ConditionId is set.
+ *
+ * @return true if ConditionId is set.
+ */
+ public function isSetConditionId()
+ {
+ return !is_null($this->_fields['ConditionId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ConditionId, return this.
+ *
+ * @param conditionId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withConditionId($value)
+ {
+ $this->setConditionId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ConditionSubtypeId property.
+ *
+ * @return String ConditionSubtypeId.
+ */
+ public function getConditionSubtypeId()
+ {
+ return $this->_fields['ConditionSubtypeId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ConditionSubtypeId property.
+ *
+ * @param string conditionSubtypeId
+ * @return this instance
+ */
+ public function setConditionSubtypeId($value)
+ {
+ $this->_fields['ConditionSubtypeId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ConditionSubtypeId is set.
+ *
+ * @return true if ConditionSubtypeId is set.
+ */
+ public function isSetConditionSubtypeId()
+ {
+ return !is_null($this->_fields['ConditionSubtypeId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ConditionSubtypeId, return this.
+ *
+ * @param conditionSubtypeId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withConditionSubtypeId($value)
+ {
+ $this->setConditionSubtypeId($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ScheduledDeliveryStartDate property.
+ *
+ * @return String ScheduledDeliveryStartDate.
+ */
+ public function getScheduledDeliveryStartDate()
+ {
+ return $this->_fields['ScheduledDeliveryStartDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ScheduledDeliveryStartDate property.
+ *
+ * @param string scheduledDeliveryStartDate
+ * @return this instance
+ */
+ public function setScheduledDeliveryStartDate($value)
+ {
+ $this->_fields['ScheduledDeliveryStartDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ScheduledDeliveryStartDate is set.
+ *
+ * @return true if ScheduledDeliveryStartDate is set.
+ */
+ public function isSetScheduledDeliveryStartDate()
+ {
+ return !is_null($this->_fields['ScheduledDeliveryStartDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ScheduledDeliveryStartDate, return this.
+ *
+ * @param scheduledDeliveryStartDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withScheduledDeliveryStartDate($value)
+ {
+ $this->setScheduledDeliveryStartDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ScheduledDeliveryEndDate property.
+ *
+ * @return String ScheduledDeliveryEndDate.
+ */
+ public function getScheduledDeliveryEndDate()
+ {
+ return $this->_fields['ScheduledDeliveryEndDate']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ScheduledDeliveryEndDate property.
+ *
+ * @param string scheduledDeliveryEndDate
+ * @return this instance
+ */
+ public function setScheduledDeliveryEndDate($value)
+ {
+ $this->_fields['ScheduledDeliveryEndDate']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ScheduledDeliveryEndDate is set.
+ *
+ * @return true if ScheduledDeliveryEndDate is set.
+ */
+ public function isSetScheduledDeliveryEndDate()
+ {
+ return !is_null($this->_fields['ScheduledDeliveryEndDate']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ScheduledDeliveryEndDate, return this.
+ *
+ * @param scheduledDeliveryEndDate
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withScheduledDeliveryEndDate($value)
+ {
+ $this->setScheduledDeliveryEndDate($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PriceDesignation property.
+ *
+ * @return String PriceDesignation.
+ */
+ public function getPriceDesignation()
+ {
+ return $this->_fields['PriceDesignation']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PriceDesignation property.
+ *
+ * @param string priceDesignation
+ * @return this instance
+ */
+ public function setPriceDesignation($value)
+ {
+ $this->_fields['PriceDesignation']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PriceDesignation is set.
+ *
+ * @return true if PriceDesignation is set.
+ */
+ public function isSetPriceDesignation()
+ {
+ return !is_null($this->_fields['PriceDesignation']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PriceDesignation, return this.
+ *
+ * @param priceDesignation
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPriceDesignation($value)
+ {
+ $this->setPriceDesignation($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the BuyerCustomizedInfo property.
+ *
+ * @return BuyerCustomizedInfoDetail BuyerCustomizedInfo.
+ */
+ public function getBuyerCustomizedInfo()
+ {
+ return $this->_fields['BuyerCustomizedInfo']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the BuyerCustomizedInfo property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_BuyerCustomizedInfoDetail buyerCustomizedInfo
+ * @return this instance
+ */
+ public function setBuyerCustomizedInfo($value)
+ {
+ $this->_fields['BuyerCustomizedInfo']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if BuyerCustomizedInfo is set.
+ *
+ * @return true if BuyerCustomizedInfo is set.
+ */
+ public function isSetBuyerCustomizedInfo()
+ {
+ return !is_null($this->_fields['BuyerCustomizedInfo']['FieldValue']);
+ }
+
+ /**
+ * Set the value of BuyerCustomizedInfo, return this.
+ *
+ * @param buyerCustomizedInfo
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withBuyerCustomizedInfo($value)
+ {
+ $this->setBuyerCustomizedInfo($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the TaxCollection property.
+ *
+ * @return TaxCollection TaxCollection.
+ */
+ public function getTaxCollection()
+ {
+ return $this->_fields['TaxCollection']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the TaxCollection property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_TaxCollection taxCollection
+ * @return this instance
+ */
+ public function setTaxCollection($value)
+ {
+ $this->_fields['TaxCollection']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if TaxCollection is set.
+ *
+ * @return true if TaxCollection is set.
+ */
+ public function isSetTaxCollection()
+ {
+ return !is_null($this->_fields['TaxCollection']['FieldValue']);
+ }
+
+ /**
+ * Set the value of TaxCollection, return this.
+ *
+ * @param taxCollection
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withTaxCollection($value)
+ {
+ $this->setTaxCollection($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/PaymentExecutionDetailItem.php b/src/MarketplaceWebServiceOrders/Model/PaymentExecutionDetailItem.php
new file mode 100644
index 0000000..4906b9f
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/PaymentExecutionDetailItem.php
@@ -0,0 +1,142 @@
+
+ *
+ * Payment: MarketplaceWebServiceOrders_Model_Money
+ * PaymentMethod: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_PaymentExecutionDetailItem extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Payment' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ 'PaymentMethod' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Payment property.
+ *
+ * @return Money Payment.
+ */
+ public function getPayment()
+ {
+ return $this->_fields['Payment']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Payment property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money payment
+ * @return this instance
+ */
+ public function setPayment($value)
+ {
+ $this->_fields['Payment']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Payment is set.
+ *
+ * @return true if Payment is set.
+ */
+ public function isSetPayment()
+ {
+ return !is_null($this->_fields['Payment']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Payment, return this.
+ *
+ * @param payment
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPayment($value)
+ {
+ $this->setPayment($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PaymentMethod property.
+ *
+ * @return String PaymentMethod.
+ */
+ public function getPaymentMethod()
+ {
+ return $this->_fields['PaymentMethod']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PaymentMethod property.
+ *
+ * @param string paymentMethod
+ * @return this instance
+ */
+ public function setPaymentMethod($value)
+ {
+ $this->_fields['PaymentMethod']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PaymentMethod is set.
+ *
+ * @return true if PaymentMethod is set.
+ */
+ public function isSetPaymentMethod()
+ {
+ return !is_null($this->_fields['PaymentMethod']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PaymentMethod, return this.
+ *
+ * @param paymentMethod
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPaymentMethod($value)
+ {
+ $this->setPaymentMethod($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/PointsGrantedDetail.php b/src/MarketplaceWebServiceOrders/Model/PointsGrantedDetail.php
new file mode 100644
index 0000000..f02547d
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/PointsGrantedDetail.php
@@ -0,0 +1,142 @@
+
+ *
+ * PointsNumber: int
+ * PointsMonetaryValue: MarketplaceWebServiceOrders_Model_Money
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_PointsGrantedDetail extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'PointsNumber' => array('FieldValue' => null, 'FieldType' => 'int'),
+ 'PointsMonetaryValue' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceOrders_Model_Money'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the PointsNumber property.
+ *
+ * @return Integer PointsNumber.
+ */
+ public function getPointsNumber()
+ {
+ return $this->_fields['PointsNumber']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PointsNumber property.
+ *
+ * @param int pointsNumber
+ * @return this instance
+ */
+ public function setPointsNumber($value)
+ {
+ $this->_fields['PointsNumber']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PointsNumber is set.
+ *
+ * @return true if PointsNumber is set.
+ */
+ public function isSetPointsNumber()
+ {
+ return !is_null($this->_fields['PointsNumber']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PointsNumber, return this.
+ *
+ * @param pointsNumber
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPointsNumber($value)
+ {
+ $this->setPointsNumber($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the PointsMonetaryValue property.
+ *
+ * @return Money PointsMonetaryValue.
+ */
+ public function getPointsMonetaryValue()
+ {
+ return $this->_fields['PointsMonetaryValue']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the PointsMonetaryValue property.
+ *
+ * @param MarketplaceWebServiceOrders_Model_Money pointsMonetaryValue
+ * @return this instance
+ */
+ public function setPointsMonetaryValue($value)
+ {
+ $this->_fields['PointsMonetaryValue']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if PointsMonetaryValue is set.
+ *
+ * @return true if PointsMonetaryValue is set.
+ */
+ public function isSetPointsMonetaryValue()
+ {
+ return !is_null($this->_fields['PointsMonetaryValue']['FieldValue']);
+ }
+
+ /**
+ * Set the value of PointsMonetaryValue, return this.
+ *
+ * @param pointsMonetaryValue
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withPointsMonetaryValue($value)
+ {
+ $this->setPointsMonetaryValue($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ProductInfoDetail.php b/src/MarketplaceWebServiceOrders/Model/ProductInfoDetail.php
new file mode 100644
index 0000000..c6217cc
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ProductInfoDetail.php
@@ -0,0 +1,94 @@
+
+ *
+ * NumberOfItems: int
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ProductInfoDetail extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'NumberOfItems' => array('FieldValue' => null, 'FieldType' => 'int'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the NumberOfItems property.
+ *
+ * @return Integer NumberOfItems.
+ */
+ public function getNumberOfItems()
+ {
+ return $this->_fields['NumberOfItems']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the NumberOfItems property.
+ *
+ * @param int numberOfItems
+ * @return this instance
+ */
+ public function setNumberOfItems($value)
+ {
+ $this->_fields['NumberOfItems']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if NumberOfItems is set.
+ *
+ * @return true if NumberOfItems is set.
+ */
+ public function isSetNumberOfItems()
+ {
+ return !is_null($this->_fields['NumberOfItems']['FieldValue']);
+ }
+
+ /**
+ * Set the value of NumberOfItems, return this.
+ *
+ * @param numberOfItems
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withNumberOfItems($value)
+ {
+ $this->setNumberOfItems($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ResponseHeaderMetadata.php b/src/MarketplaceWebServiceOrders/Model/ResponseHeaderMetadata.php
new file mode 100644
index 0000000..a71ebe4
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ResponseHeaderMetadata.php
@@ -0,0 +1,89 @@
+metadata[self::REQUEST_ID] = $requestId;
+ $this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
+ $this->metadata[self::TIMESTAMP] = $timestamp;
+ $this->metadata[self::QUOTA_MAX] = $quotaMax;
+ $this->metadata[self::QUOTA_REMAINING] = $quotaRemaining;
+ $this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
+ }
+
+ public function getRequestId() {
+ return $this->metadata[self::REQUEST_ID];
+ }
+
+ public function getResponseContext() {
+ return $this->metadata[self::RESPONSE_CONTEXT];
+ }
+
+ public function getTimestamp() {
+ return $this->metadata[self::TIMESTAMP];
+ }
+
+ /**
+ * Gets the max quota allowed for a quota period
+ * (from the x-mws-quota-max header)
+ *
+ * @return the max quota allowed for a quota period
+ */
+ public function getQuotaMax() {
+ return $this->metadata[self::QUOTA_MAX];
+ }
+
+ /**
+ * Gets the quota remaining within this quota period
+ * (from the x-mws-quota-remaining header)
+ *
+ * @return the quota remaining within this quota period
+ */
+ public function getQuotaRemaining() {
+ return $this->metadata[self::QUOTA_REMAINING];
+ }
+
+ /**
+ * Gets the time that this quota period ends
+ * (from the x-mws-quota-resetsOn header)
+ *
+ * @return the time that this quota period ends
+ */
+ public function getQuotaResetsAt() {
+ return $this->metadata[self::QUOTA_RESETS_AT];
+ }
+
+ public function __toString() {
+ return "RequestId: " . $this->getRequestId() . ", ResponseContext: " . $this->getResponseContext() .
+ ", Timestamp: " . $this->getTimestamp() . ", Quota Max: " . $this->getQuotaMax() .
+ ", Quota Remaining: " . $this->getQuotaRemaining() . ", Quota Resets At: " . $this->getQuotaResetsAt();
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/ResponseMetadata.php b/src/MarketplaceWebServiceOrders/Model/ResponseMetadata.php
new file mode 100644
index 0000000..400b3ee
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/ResponseMetadata.php
@@ -0,0 +1,94 @@
+
+ *
+ * RequestId: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_ResponseMetadata extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'RequestId' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the RequestId property.
+ *
+ * @return String RequestId.
+ */
+ public function getRequestId()
+ {
+ return $this->_fields['RequestId']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the RequestId property.
+ *
+ * @param string requestId
+ * @return this instance
+ */
+ public function setRequestId($value)
+ {
+ $this->_fields['RequestId']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if RequestId is set.
+ *
+ * @return true if RequestId is set.
+ */
+ public function isSetRequestId()
+ {
+ return !is_null($this->_fields['RequestId']['FieldValue']);
+ }
+
+ /**
+ * Set the value of RequestId, return this.
+ *
+ * @param requestId
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withRequestId($value)
+ {
+ $this->setRequestId($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/TaxClassification.php b/src/MarketplaceWebServiceOrders/Model/TaxClassification.php
new file mode 100644
index 0000000..91c5d8c
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/TaxClassification.php
@@ -0,0 +1,142 @@
+
+ *
+ * Name: string
+ * Value: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_TaxClassification extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Name' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'Value' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Name property.
+ *
+ * @return String Name.
+ */
+ public function getName()
+ {
+ return $this->_fields['Name']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Name property.
+ *
+ * @param string name
+ * @return this instance
+ */
+ public function setName($value)
+ {
+ $this->_fields['Name']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Name is set.
+ *
+ * @return true if Name is set.
+ */
+ public function isSetName()
+ {
+ return !is_null($this->_fields['Name']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Name, return this.
+ *
+ * @param name
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withName($value)
+ {
+ $this->setName($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the Value property.
+ *
+ * @return String Value.
+ */
+ public function getValue()
+ {
+ return $this->_fields['Value']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Value property.
+ *
+ * @param string value
+ * @return this instance
+ */
+ public function setValue($value)
+ {
+ $this->_fields['Value']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Value is set.
+ *
+ * @return true if Value is set.
+ */
+ public function isSetValue()
+ {
+ return !is_null($this->_fields['Value']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Value, return this.
+ *
+ * @param value
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withValue($value)
+ {
+ $this->setValue($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Model/TaxCollection.php b/src/MarketplaceWebServiceOrders/Model/TaxCollection.php
new file mode 100644
index 0000000..33f9acd
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Model/TaxCollection.php
@@ -0,0 +1,142 @@
+
+ *
+ * Model: string
+ * ResponsibleParty: string
+ *
+ *
+ */
+
+ class MarketplaceWebServiceOrders_Model_TaxCollection extends MarketplaceWebServiceOrders_Model {
+
+ public function __construct($data = null)
+ {
+ $this->_fields = array (
+ 'Model' => array('FieldValue' => null, 'FieldType' => 'string'),
+ 'ResponsibleParty' => array('FieldValue' => null, 'FieldType' => 'string'),
+ );
+ parent::__construct($data);
+ }
+
+ /**
+ * Get the value of the Model property.
+ *
+ * @return String Model.
+ */
+ public function getModel()
+ {
+ return $this->_fields['Model']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the Model property.
+ *
+ * @param string model
+ * @return this instance
+ */
+ public function setModel($value)
+ {
+ $this->_fields['Model']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if Model is set.
+ *
+ * @return true if Model is set.
+ */
+ public function isSetModel()
+ {
+ return !is_null($this->_fields['Model']['FieldValue']);
+ }
+
+ /**
+ * Set the value of Model, return this.
+ *
+ * @param model
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withModel($value)
+ {
+ $this->setModel($value);
+ return $this;
+ }
+
+ /**
+ * Get the value of the ResponsibleParty property.
+ *
+ * @return String ResponsibleParty.
+ */
+ public function getResponsibleParty()
+ {
+ return $this->_fields['ResponsibleParty']['FieldValue'];
+ }
+
+ /**
+ * Set the value of the ResponsibleParty property.
+ *
+ * @param string responsibleParty
+ * @return this instance
+ */
+ public function setResponsibleParty($value)
+ {
+ $this->_fields['ResponsibleParty']['FieldValue'] = $value;
+ return $this;
+ }
+
+ /**
+ * Check to see if ResponsibleParty is set.
+ *
+ * @return true if ResponsibleParty is set.
+ */
+ public function isSetResponsibleParty()
+ {
+ return !is_null($this->_fields['ResponsibleParty']['FieldValue']);
+ }
+
+ /**
+ * Set the value of ResponsibleParty, return this.
+ *
+ * @param responsibleParty
+ * The new value to set.
+ *
+ * @return This instance.
+ */
+ public function withResponsibleParty($value)
+ {
+ $this->setResponsibleParty($value);
+ return $this;
+ }
+
+}
diff --git a/src/MarketplaceWebServiceOrders/Samples/.config.inc.php b/src/MarketplaceWebServiceOrders/Samples/.config.inc.php
new file mode 100644
index 0000000..27ccd95
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/.config.inc.php
@@ -0,0 +1,64 @@
+');
+ define('AWS_SECRET_ACCESS_KEY', '');
+
+ /************************************************************************
+ * REQUIRED
+ *
+ * All MWS requests must contain a User-Agent header. The application
+ * name and version defined below are used in creating this value.
+ ***********************************************************************/
+ define('APPLICATION_NAME', '');
+ define('APPLICATION_VERSION', '');
+
+ /************************************************************************
+ * REQUIRED
+ *
+ * All MWS requests must contain the seller's merchant ID and
+ * marketplace ID.
+ ***********************************************************************/
+ define ('MERCHANT_ID', '');
+ define ('MARKETPLACE_ID', '');
+
+
+ /************************************************************************
+ * OPTIONAL ON SOME INSTALLATIONS
+ *
+ * Set include path to root of library, relative to Samples directory.
+ * Only needed when running library from local directory.
+ * If library is installed in PHP include path, this is not needed
+ ***********************************************************************/
+ set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
+
+ /************************************************************************
+ * OPTIONAL ON SOME INSTALLATIONS
+ *
+ * Autoload function is reponsible for loading classes of the library on demand
+ *
+ * NOTE: Only one __autoload function is allowed by PHP per each PHP installation,
+ * and this function may need to be replaced with individual require_once statements
+ * in case where other framework that define an __autoload already loaded.
+ *
+ * However, since this library follow common naming convention for PHP classes it
+ * may be possible to simply re-use an autoload mechanism defined by other frameworks
+ * (provided library is installed in the PHP include path), and so classes may just
+ * be loaded even when this function is removed
+ ***********************************************************************/
+ function __autoload($className){
+ $filePath = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
+ $includePaths = explode(PATH_SEPARATOR, get_include_path());
+ foreach($includePaths as $includePath){
+ if(file_exists($includePath . DIRECTORY_SEPARATOR . $filePath)){
+ require_once $filePath;
+ return;
+ }
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/GetOrderSample.php b/src/MarketplaceWebServiceOrders/Samples/GetOrderSample.php
new file mode 100644
index 0000000..93b4b59
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/GetOrderSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for Get Order Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_GetOrder
+ $request = new MarketplaceWebServiceOrders_Model_GetOrderRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeGetOrder($service, $request);
+
+/**
+ * Get Get Order Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_GetOrder or array of parameters
+ */
+
+ function invokeGetOrder(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->GetOrder($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/GetServiceStatusSample.php b/src/MarketplaceWebServiceOrders/Samples/GetServiceStatusSample.php
new file mode 100644
index 0000000..3254647
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/GetServiceStatusSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for Get Service Status Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_GetServiceStatus
+ $request = new MarketplaceWebServiceOrders_Model_GetServiceStatusRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeGetServiceStatus($service, $request);
+
+/**
+ * Get Get Service Status Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_GetServiceStatus or array of parameters
+ */
+
+ function invokeGetServiceStatus(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->GetServiceStatus($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsByNextTokenSample.php b/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsByNextTokenSample.php
new file mode 100644
index 0000000..08c73e4
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsByNextTokenSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for List Order Items By Next Token Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken
+ $request = new MarketplaceWebServiceOrders_Model_ListOrderItemsByNextTokenRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeListOrderItemsByNextToken($service, $request);
+
+/**
+ * Get List Order Items By Next Token Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_ListOrderItemsByNextToken or array of parameters
+ */
+
+ function invokeListOrderItemsByNextToken(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->ListOrderItemsByNextToken($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsSample.php b/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsSample.php
new file mode 100644
index 0000000..678b1ba
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/ListOrderItemsSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for List Order Items Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_ListOrderItems
+ $request = new MarketplaceWebServiceOrders_Model_ListOrderItemsRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeListOrderItems($service, $request);
+
+/**
+ * Get List Order Items Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_ListOrderItems or array of parameters
+ */
+
+ function invokeListOrderItems(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->ListOrderItems($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/ListOrdersByNextTokenSample.php b/src/MarketplaceWebServiceOrders/Samples/ListOrdersByNextTokenSample.php
new file mode 100644
index 0000000..06bc80f
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/ListOrdersByNextTokenSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for List Orders By Next Token Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_ListOrdersByNextToken
+ $request = new MarketplaceWebServiceOrders_Model_ListOrdersByNextTokenRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeListOrdersByNextToken($service, $request);
+
+/**
+ * Get List Orders By Next Token Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_ListOrdersByNextToken or array of parameters
+ */
+
+ function invokeListOrdersByNextToken(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->ListOrdersByNextToken($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+
diff --git a/src/MarketplaceWebServiceOrders/Samples/ListOrdersSample.php b/src/MarketplaceWebServiceOrders/Samples/ListOrdersSample.php
new file mode 100644
index 0000000..2936d3a
--- /dev/null
+++ b/src/MarketplaceWebServiceOrders/Samples/ListOrdersSample.php
@@ -0,0 +1,116 @@
+ $serviceUrl,
+ 'ProxyHost' => null,
+ 'ProxyPort' => -1,
+ 'ProxyUsername' => null,
+ 'ProxyPassword' => null,
+ 'MaxErrorRetry' => 3,
+ );
+
+ $service = new MarketplaceWebServiceOrders_Client(
+ AWS_ACCESS_KEY_ID,
+ AWS_SECRET_ACCESS_KEY,
+ APPLICATION_NAME,
+ APPLICATION_VERSION,
+ $config);
+
+/************************************************************************
+ * Uncomment to try out Mock Service that simulates MarketplaceWebServiceOrders
+ * responses without calling MarketplaceWebServiceOrders service.
+ *
+ * Responses are loaded from local XML files. You can tweak XML files to
+ * experiment with various outputs during development
+ *
+ * XML files available under MarketplaceWebServiceOrders/Mock tree
+ *
+ ***********************************************************************/
+ // $service = new MarketplaceWebServiceOrders_Mock();
+
+/************************************************************************
+ * Setup request parameters and uncomment invoke to try out
+ * sample for List Orders Action
+ ***********************************************************************/
+ // @TODO: set request. Action can be passed as MarketplaceWebServiceOrders_Model_ListOrders
+ $request = new MarketplaceWebServiceOrders_Model_ListOrdersRequest();
+ $request->setSellerId(MERCHANT_ID);
+ // object or array of parameters
+ invokeListOrders($service, $request);
+
+/**
+ * Get List Orders Action Sample
+ * Gets competitive pricing and related information for a product identified by
+ * the MarketplaceId and ASIN.
+ *
+ * @param MarketplaceWebServiceOrders_Interface $service instance of MarketplaceWebServiceOrders_Interface
+ * @param mixed $request MarketplaceWebServiceOrders_Model_ListOrders or array of parameters
+ */
+
+ function invokeListOrders(MarketplaceWebServiceOrders_Interface $service, $request)
+ {
+ try {
+ $response = $service->ListOrders($request);
+
+ echo ("Service Response\n");
+ echo ("=============================================================================\n");
+
+ $dom = new DOMDocument();
+ $dom->loadXML($response->toXML());
+ $dom->preserveWhiteSpace = false;
+ $dom->formatOutput = true;
+ echo $dom->saveXML();
+ echo("ResponseHeaderMetadata: " . $response->getResponseHeaderMetadata() . "\n");
+
+ } catch (MarketplaceWebServiceOrders_Exception $ex) {
+ echo("Caught Exception: " . $ex->getMessage() . "\n");
+ echo("Response Status Code: " . $ex->getStatusCode() . "\n");
+ echo("Error Code: " . $ex->getErrorCode() . "\n");
+ echo("Error Type: " . $ex->getErrorType() . "\n");
+ echo("Request ID: " . $ex->getRequestId() . "\n");
+ echo("XML: " . $ex->getXML() . "\n");
+ echo("ResponseHeaderMetadata: " . $ex->getResponseHeaderMetadata() . "\n");
+ }
+ }
+