1: <?php
2: /**
3: * Partner API Library
4: *
5: * @copyright Copyright (c) 2020 Asseco Data Systems SA
6: * @license license.txt
7: */
8:
9: require_once 'typeRequest.php';
10: require_once 'typeOrderOption.php';
11:
12: /*
13: <xs:complexType name="getOrdersRequest">
14: <xs:complexContent>
15: <xs:extension base="tns:request">
16: <xs:sequence>
17: <xs:element name="fromDate" type="xs:dateTime"/>
18: <xs:element minOccurs="0" name="orderOption" type="tns:orderOption"/>
19: <xs:element default="1" minOccurs="0" name="pageNumber" type="xs:int"/>
20: <xs:element name="toDate" type="xs:dateTime"/>
21: </xs:sequence>
22: </xs:extension>
23: </xs:complexContent>
24: </xs:complexType>
25: */
26:
27: /**
28: * This class represents the getOrdersRequest WSDL type.
29: *
30: * It is an extension to the PartnerAPITypeRequest class.
31: *
32: * @method PartnerAPITypeGetOrdersRequest setFromDate(string $value) Sets the fromDate element.
33: * @method string getFromDate() Gets the fromDate element.
34: * @property string $fromDate Gets the fromDate element.
35: *
36: * @method PartnerAPITypeGetOrdersRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element.
37: * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL.
38: * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL.
39: *
40: * @method PartnerAPITypeGetOrdersRequest setPageNumber(int $value) Sets the pageNumber element.
41: * @method int getPageNumber() Gets the pageNumber element or NULL.
42: * @property int $pageNumber Gets the pageNumber element or NULL.
43: *
44: * @method PartnerAPITypeGetOrdersRequest setToDate(string $value) Sets the toDate element.
45: * @method string getToDate() Gets the toDate element.
46: * @property string $toDate Gets the toDate element.
47: *
48: * @package types
49: */
50: class PartnerAPITypeGetOrdersRequest extends PartnerAPITypeRequest {
51:
52: protected function initData() {
53: $p = parent::initData();
54: $n = array(
55: 'fromDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
56: 'orderOption' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderOption', 'nillable' => FALSE),
57: 'pageNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
58: 'toDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
59: );
60: $n = array_merge($p, $n);
61: return $n;
62: }
63:
64:
65: }
66: