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 'type.php';
10: require_once 'typeProduct_SupportedHashAlgorithms.php';
11:
12: /*
13: <xs:complexType name="product">
14: <xs:sequence>
15: <xs:element minOccurs="0" name="code" type="xs:long"/>
16: <xs:element minOccurs="0" name="type" type="xs:string"/>
17: <xs:element minOccurs="0" name="validityPeriod" type="xs:int"/>
18: <xs:element minOccurs="0" name="certificateNotificationEnabled" type="xs:boolean"/>
19: <xs:sequence>
20: <xs:element minOccurs="0" name="supportedHashAlgorithms">
21: <xs:complexType>
22: <xs:sequence>
23: <xs:element maxOccurs="unbounded" name="hashAlgorithm" type="tns:hashAlgorithmEnum"/>
24: </xs:sequence>
25: </xs:complexType>
26: </xs:element>
27: </xs:sequence>
28: </xs:sequence>
29: </xs:complexType>
30: */
31:
32: /**
33: * This class represents the product WSDL type.
34: *
35: * It is based on the PartnerAPIType class and derives properties and methods from that class.
36: *
37: * @method PartnerAPITypeProduct setSupportedHashAlgorithms(PartnerAPITypeProduct_SupportedHashAlgorithms $value) Sets the supportedHashAlgorithms element.
38: * @method PartnerAPITypeProduct_SupportedHashAlgorithms getSupportedHashAlgorithms() Gets the supportedHashAlgorithms element or NULL.
39: * @property PartnerAPITypeProduct_SupportedHashAlgorithms $supportedHashAlgorithms Gets the supportedHashAlgorithms element or NULL.
40: *
41: * @method PartnerAPITypeProduct setCode(long $value) Sets the code element.
42: * @method long getCode() Gets the code element or NULL.
43: * @property long $code Gets the code element or NULL.
44: *
45: * @method PartnerAPITypeProduct setType(string $value) Sets the type element.
46: * @method string getType() Gets the type element or NULL.
47: * @property string $type Gets the type element or NULL.
48: *
49: * @method PartnerAPITypeProduct setValidityPeriod(int $value) Sets the validityPeriod element.
50: * @method int getValidityPeriod() Gets the validityPeriod element or NULL.
51: * @property int $validityPeriod Gets the validityPeriod element or NULL.
52: *
53: * @method PartnerAPITypeProduct setCertificateNotificationEnabled(boolean $value) Sets the certificateNotificationEnabled element.
54: * @method boolean getCertificateNotificationEnabled() Gets the certificateNotificationEnabled element or NULL.
55: * @property boolean $certificateNotificationEnabled Gets the certificateNotificationEnabled element or NULL.
56: *
57: * @package types
58: */
59: class PartnerAPITypeProduct extends PartnerAPIType {
60:
61: protected function initData() {
62: $n = array(
63: 'supportedHashAlgorithms' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeProduct_SupportedHashAlgorithms', 'nillable' => FALSE),
64: 'code' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'long', 'nillable' => FALSE),
65: 'type' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
66: 'validityPeriod' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE),
67: 'certificateNotificationEnabled' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE),
68: );
69: return $n;
70: }
71:
72:
73: }
74: