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 'typeSanApprover.php';
11:
12: /*
13: <xs:complexType name="renewCertificateRequest">
14: <xs:complexContent>
15: <xs:extension base="tns:request">
16: <xs:sequence>
17: <xs:element minOccurs="0" name="SANApprover" type="tns:sanApprover"/>
18: <xs:element name="CSR" type="xs:string"/>
19: <xs:element name="customer" type="xs:string"/>
20: <xs:element name="productCode" type="xs:string"/>
21: <xs:element minOccurs="0" name="serialNumber" type="xs:string"/>
22: <xs:element minOccurs="0" name="X509Cert" type="xs:string"/>
23: <xs:element minOccurs="0" name="hashAlgorithm" type="tns:hashAlgorithmEnum"/>
24: <xs:element minOccurs="0" name="userAgent" type="xs:string"/>
25: <xs:element minOccurs="0" name="revocationContactEmail" type="xs:string"/>
26: <xs:element minOccurs="0" name="shortenedValidityPeriod" type="xs:date"/>
27: </xs:sequence>
28: </xs:extension>
29: </xs:complexContent>
30: </xs:complexType>
31: */
32:
33: /**
34: * This class represents the renewCertificateRequest WSDL type.
35: *
36: * It is an extension to the PartnerAPITypeRequest class.
37: *
38: * @method PartnerAPITypeRenewCertificateRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element.
39: * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL.
40: * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL.
41: *
42: * @method PartnerAPITypeRenewCertificateRequest setCSR(string $value) Sets the CSR element.
43: * @method string getCSR() Gets the CSR element.
44: * @property string $CSR Gets the CSR element.
45: *
46: * @method PartnerAPITypeRenewCertificateRequest setCustomer(string $value) Sets the customer element.
47: * @method string getCustomer() Gets the customer element.
48: * @property string $customer Gets the customer element.
49: *
50: * @method PartnerAPITypeRenewCertificateRequest setProductCode(string $value) Sets the productCode element.
51: * @method string getProductCode() Gets the productCode element.
52: * @property string $productCode Gets the productCode element.
53: *
54: * @method PartnerAPITypeRenewCertificateRequest setSerialNumber(string $value) Sets the serialNumber element.
55: * @method string getSerialNumber() Gets the serialNumber element or NULL.
56: * @property string $serialNumber Gets the serialNumber element or NULL.
57: *
58: * @method PartnerAPITypeRenewCertificateRequest setX509Cert(string $value) Sets the X509Cert element.
59: * @method string getX509Cert() Gets the X509Cert element or NULL.
60: * @property string $X509Cert Gets the X509Cert element or NULL.
61: *
62: * @method PartnerAPITypeRenewCertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element.
63: * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL.
64: * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL.
65: *
66: * @method PartnerAPITypeRenewCertificateRequest setUserAgent(string $value) Sets the UserAgent element.
67: * @method string getUserAgent() Gets the UserAgent element or NULL.
68: * @property string $userAgent Gets the UserAgent element or NULL.
69: *
70: * @method PartnerAPITypeOrderRequest setRevocationContactEmail $value) Sets the revocationContactEmail element.
71: * @method string getRevocationContactEmail() Gets the revocationContactEmail element.
72: * @property string $revocationContactEmail Gets the revocationContactEmail element.
73: *
74: * @method PartnerAPITypeOrderRequest setShortenedValidityPeriod(string $value) Sets the shortenedValidityPeriod element.
75: * @method string getShortenedValidityPeriod() Gets the shortenedValidityPeriod element.
76: * @property string $shortenedValidityPeriod Gets the shortenedValidityPeriod element.
77: *
78: * @package types
79: */
80: class PartnerAPITypeRenewCertificateRequest extends PartnerAPITypeRequest {
81:
82: protected function initData() {
83: $p = parent::initData();
84: $n = array(
85: 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => FALSE),
86: 'CSR' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
87: 'customer' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
88: 'productCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
89: 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
90: 'X509Cert' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
91: 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
92: 'userAgent' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE),
93: 'revocationContactEmail' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE),
94: 'shortenedValidityPeriod' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE)
95: );
96: $n = array_merge($p, $n);
97: return $n;
98: }
99:
100:
101: }
102: