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:
11: /*
12: <xs:complexType name="emailVerification">
13: <xs:sequence>
14: <xs:element name="email" type="xs:string"/>
15: <xs:element name="verified" type="xs:boolean"/>
16: <xs:element name="sendDate" type="xs:dateTime"/>
17: <xs:element name="verificationLinkValidityDate" type="xs:dateTime"/>
18: <xs:element name="verificationDate" type="xs:dateTime"/>
19: <xs:element minOccurs="0" name="verificationValidity" type="xs:dateTime"/>
20: </xs:sequence>
21: </xs:complexType>
22: */
23:
24: /**
25: * This class represents the emailVerification WSDL type.
26: *
27: * It is based on the PartnerAPIType class and derives properties and methods from that class.
28: *
29: * @method PartnerAPITypeEmailVerification setEmail(string $value) Sets the email element.
30: * @method string getEmail() Gets the email element.
31: * @property string $email Gets the email element.
32: *
33: * @method PartnerAPITypeEmailVerification setVerified(boolean $value) Sets the verified element.
34: * @method boolean getVerified() Gets the verified element.
35: * @property boolean $verified Gets the verified element.
36: *
37: * @method PartnerAPITypeEmailVerification setSendDate(string $value) Sets the sendDate element.
38: * @method string getSendDate() Gets the sendDate element.
39: * @property string $sendDate Gets the sendDate element.
40: *
41: * @method PartnerAPITypeEmailVerification setVerificationLinkValidityDate(string $value) Sets the verificationLinkValidityDate element.
42: * @method string getVerificationLinkValidityDate() Gets the verificationLinkValidityDate element.
43: * @property string $verificationLinkValidityDate Gets the verificationLinkValidityDate element.
44: *
45: * @method PartnerAPITypeEmailVerification setVerificationDate(string $value) Sets the verificationDate element.
46: * @method string getVerificationDate() Gets the verificationDate element.
47: * @property string $verificationDate Gets the verificationDate element.
48: *
49: * @method PartnerAPITypeEmailVerification setVerificationValidity(string $value) Sets the verificationValidity element.
50: * @method string getVerificationValidity() Gets the verificationValidity element or NULL.
51: * @property string $verificationValidity Gets the verificationValidity element or NULL.
52: *
53: * @package types
54: */
55: class PartnerAPITypeEmailVerification extends PartnerAPIType {
56:
57: protected function initData() {
58: $n = array(
59: 'email' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
60: 'verified' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE),
61: 'sendDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
62: 'verificationLinkValidityDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
63: 'verificationDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
64: 'verificationValidity' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE)
65: );
66: return $n;
67: }
68:
69:
70: }
71: