diff --git a/composer.json b/composer.json
index c25a179..f4fba9b 100644
--- a/composer.json
+++ b/composer.json
@@ -5,6 +5,9 @@
"require": {
"php": ">=5.6"
},
+ "require-dev": {
+ "squizlabs/php_codesniffer": "3.*"
+ },
"license": "proprietary",
"autoload": {
"psr-4": {
diff --git a/src/exceptions/errors.php b/src/Exceptions/errors.php
similarity index 98%
rename from src/exceptions/errors.php
rename to src/Exceptions/errors.php
index 17daae9..5ae7fc0 100644
--- a/src/exceptions/errors.php
+++ b/src/Exceptions/errors.php
@@ -1,652 +1,651 @@
- array(
- 1 => 'Error occurred during processing',
- 2 => 'Authentication data in requestHeader/authToken element are incorrect.'
- ),
- 'pl' => array(
- 1 => 'Wystąpił ogólny błąd podczas przetwarzania zamówienia. Należy skontaktować się z CERTUM w celu zdiagnozowania problemu.',
- 3 => 'Dane autoryzacyjne w elemencie requestHeader/authToken nie są poprawne.'
- )
- );
-
- /**
- * A set of error descriptions.
- *
- * @var array
- */
- protected $texts_error = array(
- 'en' => array(
- 1000 => 'CSR key length is too short.',
- 1001 => 'Public key algorithm from CSR is not supported.',
- 1002 => 'Element orderParameters/CSR not fund or empty.',
- 1006 => 'The productCode element contains the code of the discontinued product.',
- 1007 => 'Element quickOrder/SANEntries not found.',
- 1008 => 'Element quickOrder/SANEntries/SANEntry/DNSName has wrong domain name.',
- 1009 => 'Element quickOrder/requestorInfo not found.',
- 1010 => 'Element quickOrder/orderParameters not found.',
- 1011 => 'Element quickOrder/orderParameters/orderId not found.',
- 1012 => 'Order ID is already taken.',
- 1013 => 'Wrong order ID.',
- 1014 => 'Element quickOrder/orderParameters/productCode not found.',
- 1015 => 'Attribute CommonName not found.',
- 1016 => 'Attribute Organization not found.',
- 1019 => 'Attribute State from CSR-a not found.',
- 1020 => 'Attribute Country not found.',
- 1021 => 'Attribute EmailAddress not found.',
- 1022 => 'Email address has errors.',
- 1023 => 'Valu of orderParameters/customer element cannot be the same as requestHeader/authToken/username element.',
- 1024 => 'Attribute CommonName has to be encoded as UTF8String.',
- 1025 => 'Attribute EmailAddress has to be encoded as IA5String.',
- 1026 => 'Attribute Country has to be encoded as PrintableString.',
- 1027 => 'Attribute State has to be encoded as UTF8String.',
- 1028 => 'Attribute Locality has to be encoded as UTF8String.',
- 1029 => 'Attribute OrganizationUnit has to be encoded as UTF8String.',
- 1030 => 'Attribute Organization has to be encoded as UTF8String.',
- 1031 => 'Attribute CommonName has to be encoded as PrintableString.',
- 1032 => 'Public key from CSR has already been used.',
- 1033 => 'Order ID does not exist.',
- 1037 => 'Address e-mail in element approverEmail has errors.',
- 1038 => 'Element quickOrder/approvers/Approver/approverEmail not found.',
- 1040 => 'Element quickOrder/approvers/Approver/approverMethod not found.',
- 1042 => 'Domain verification method not supported.',
- 1043 => 'Order ID contains characters that are not allowed: "&\'<>.',
- 1044 => 'Certificate date is “from the past”.',
- 1045 => 'Domain in CommonName is not present in SANEntries.',
- 1046 => 'Only one domain in SANEntries element may contain asterix "*" in domain name.',
- 1048 => 'Element taxIdentificationNumber not found or has incorrect value.',
- 1049 => 'Cannot read public key from CSR.',
- 1053 => 'Element requestorInfo/email not found.',
- 1054 => 'Element requestorInfo/firstName not found.',
- 1055 => 'Element requestorInfo/lastName not found.',
- 1059 => 'Attribute Country not found.',
- 1060 => 'Email address from requestorInfo/e-mail element is incorrect.',
- 1063 => 'Public key from CSR is blacklisted.',
- 1065 => 'Value from requestorInfo/lastName element exceeded 255 characters.',
- 1066 => 'Value from requestorInfo/phone element exceeded 32 characters.',
- 1069 => 'The certificate validity date provided in the shortenedValidityPeriod element exceeds the certificate validity period for the requested product.',
- 1070 => 'Element organizationInfo/validityPeriod/notBefore not found.',
- 1071 => 'Element organizationInfo/validityPeriod/notAfter not found.',
- 1072 => 'Value from requestorInfo/firstName element exceeded 255 characters.',
- 1075 => 'Partner is not allowed to order this product.',
- 1076 => 'Element customer not found or empty.',
- 1077 => 'Value from customer element exceeded 64 characters.',
- 1078 => 'CSR in orderParameters/CSR element is incorrect.',
- 1079 => 'Value from orderId element exceeded 50 characters.',
- 1080 => 'Value from productCode element exceeded 3 characters.',
- 1081 => 'Value from requestorInfo/email element exceeded 255 characters.',
- 1083 => 'Value from taxIdentificationNumber element exceeded 32 characters.',
- 1084 => 'Value from requestHeader/authToken/userName element exceeded 255 characters.',
- 1085 => 'Value from SANEntries/SANEntry/DNSName element exceeded the number of characters allowed.',
- 1087 => 'Value from approverEmail element exceeded 255 characters.',
- 1088 => 'Value from orderParameters/language element exceeded 2 characters.',
- 1089 => 'Value from orderParameters/userAgent element exceeded 255 characters.',
- 1090 => 'Value from requestHeader/authToken/password element exceeded 255 characters.',
- 1092 => 'Attribute JoISoPN not found.',
- 1093 => 'Attribute JoISoCN not found.',
- 1094 => 'Attribute JoILN not found.',
- 1095 => 'Attribute SerialNumber not found.',
- 1096 => 'Attribute JoISoCN exceeded 2 characters.',
- 1097 => 'Attribute JoISoPN exceeded 128 characters.',
- 1098 => 'Attribute JoILN exceeded 128 characters.',
- 1099 => 'Attribute JoISoCN contains unsupported country code.',
- 1100 => 'Attribute SerialNumber exceeded 64 characters.',
- 1101 => 'Attribute CommonName exceeded 64 characters.',
- 1102 => 'Attribute Organization exceeded 255 characters.',
- 1103 => 'Attribute OrganizationalUnit exceeded 64 characters.',
- 1104 => 'Attribute Locality exceeded 128 characters.',
- 1105 => 'Attribute State exceeded 128 characters.',
- 1106 => 'Attribute EmailAddress exceeded 255 characters.',
- 1107 => 'Number of domains in SANEntries element exceeded allowed value for product.',
- 1108 => 'Value in approverEmailPrefix does not match the prefix list.',
- 1109 => 'Value from orderParameters/validityPeriod/notBefore element is greater than value from orderParameters/validityPeriod/notAfter element.',
- 1110 => 'Date in fromDate is incorrect.',
- 1111 => 'Date in toDate is incorrect.',
- 1113 => 'Order status prevents sending email verification. The order is being processed or has been canceled. Certificate is being issued or is already issued. Verification emails hasn’t been sent.',
- 1114 => 'All verification messages are still valid. Verification emails hasn’t been sent.',
- 1115 => 'SANEntries/SANEntry/DNSName Element contains Widlcard domain which is not allowed for selected product.',
- 1116 => 'CommonName contains Widlcard domain which is not allowed for selected product.',
- 1117 => 'CommonName doesn’t contain Widlcard domain which is mandatory for selected product.',
- 1118 => 'SANEntries/SANEntry/DNSName element doesn’t contain Widlcard domain which is mandatory for selected product.',
- 1119 => 'Country attribute form CSR contains value not allowed for orders issued automatically.',
- 1120 => 'Organization attribute form CSR contains value not allowed for orders issued automatically.',
- 1121 => 'OrganizationUnit attribute form CSR contains value not allowed for orders issued automatically.',
- 1122 => 'Locality attribute form CSR contains value not allowed for orders issued automatically.',
- 1123 => 'State attribute form CSR contains value not allowed for orders issued automatically.',
- 1124 => 'CommonName attribute form CSR contains value not allowed for orders issued automatically.',
- 1125 => 'EmailAddress attribute form CSR contains value not allowed for orders issued automatically.',
- 1126 => 'SerialNumber attribute has to be UTF8String encoded.',
- 1127 => 'JoILN attribute has to be UTF8String encoded.',
- 1128 => 'JoISoCN attribute has to be PrintableString encoded.',
- 1129 => 'JoISoPN attribute has to be UTF8String encoded.',
- 1131 => 'Element revokeCertificate/RevokeCertificateParameters not found.',
- 1132 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber not found.',
- 1133 => 'No certificate at given serial number.',
- 1134 => 'Value in revokeCertificate/RevokeCertificateParameters/serialNumber element exceeded 64 characters.',
- 1135 => 'Incorrect value in revokeCertificate/RevokeCertificateParameters/revocationReason.',
- 1136 => 'To this order there is a certificate that is valid or will be valid. To cancel an order please revoke the certificate first.',
- 1137 => 'Certficate to this order Has expired. Order cancel is not possible.',
- 1138 => 'Request cannot be proceded. Please contact CERTUM.',
- 1139 => 'It is impossible to cancel an order due to its status. Please try again later. If problem repeats please contact CERTUM.',
- 1140 => 'Date in keyCompromitationDate element has to be YYYY-MM-DD.',
- 1141 => 'Date in keyCompromitationDate element Has to be between certificate valid from date and current date.',
- 1142 => 'Value of revokeCertificate/RevokeCertificateParameters/note element exceeded 250 characters.',
- 1143 => 'Cannot revoke the certificate because certificate is during revocation process.',
- 1144 => 'Cannot revoke the certificate because it has expired.',
- 1145 => 'Cannot revoke the certificate because it has already been revoked.',
- 1146 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber has to be HEX.',
- 1147 => 'Element approvers/Approver for SANEntries/SANEntry/DNSName element not found.',
- 1148 => 'Cannot place an order with private IP address.',
- 1150 => 'Key length in CSR is too long.',
- 1151 => 'Order has already been cancelled.',
- 1152 => 'Element quickOrder/approvers/Approver/approverMethod not found.',
- 1153 => 'Page number has to be from range [1 - 100].',
- 1154 => 'Too many records were returned from the query.',
- 1155 => 'Page not fund.',
- 1156 => 'customer filed in orderParameters contains disallowed characters: "&\'<>.',
- 1157 => 'quickOrder/SANEntries/SANEntry/DNSName element contains gTLD.',
- 1159 => 'Certificate not found.',
- 1160 => 'Certificate serial number is missing.',
- 1161 => 'Serial number exceeded 64 characters.',
- 1162 => 'Required parameters are missing (serial number or order identifier).',
- 1163 => 'Request contains parameters that cannot occur simultaneously (certificate serial number and order identifier).',
- 1164 => 'Certificate cannot be identified properly. Provide certificate serial number OR certificate in PEM form.',
- 1165 => 'Certificate format is incorrect (certificate should be in PEM form).',
- 1166 => 'Provided product code cannot be use as a renewal code.',
- 1167 => 'Profile of the original certificate and renewal profile mismatch.',
- 1168 => 'CN mismatch.',
- 1169 => 'Customer mismatch.',
- 1170 => 'Certificate issued from different account.',
- 1172 => 'Request contains additional elements. Please verify request with documentation.',
- 1173 => 'Provided data are equal to one provided Please use sendNotification to once again send verification emails.',
- 1176 => 'Order status prevents sending domain verification. The order is being processed or has been canceled.Certificate is already issued. Required rgani is not possible.',
- 1181 => 'Product code is incorrect for certificate issuance.',
- 1182 => 'Code element not found.',
- 1183 => 'Value in verifyDomain/code element exceeded 255 characters.',
- 1184 => 'Verification code has expired.',
- 1186 => 'Verification code is incorrect.',
- 1191 => 'Validity period exceeds maximum validity period for chosen product.',
- 1194 => 'orderSNICertificate/orderSNIParameters/CSR element not fund or empty.',
- 1195 => 'orderSNICertificate/orderSNIParameters/CSR element doesn’t contain correct CSR.',
- 1196 => 'Value from orderSNICertificate/orderSNIParameters/language element exceeded 2 characters.',
- 1197 => 'orderSNICertificate/orderSNIParameters element not found.',
- 1198 => 'orderSNICertificate/serialNumbers element not found.',
- 1199 => 'At least one orderSNICertificate/serialNumbers/serialNumber element is required.',
- 2000 => 'orderSNICertificate/serialNumbers/serialNumber cannot be empty.',
- 2001 => 'Value in orderSNICertificate/serialNumbers/serialNumber element exceeded 64 characters.',
- 2002 => 'orderSNICertificate/serialNumbers/serialNumber element has to be In HEX form.',
- 2003 => 'Given certificate expired or was revoked.',
- 2004 => 'One SNI certificate cannot contain another SNI Certificate.',
- 2005 => 'None of provided certificate contain domain names.',
- 2006 => 'orderSNICertificate/requestorInfo element not found.',
- 2010 => 'orderSNICertificate/requestorInfo/email element not found.',
- 2011 => 'orderSNICertificate/requestorInfo/firstName element not found.',
- 2012 => 'orderSNICertificate/requestorInfo/lastName element not found.',
- 2013 => 'orderSNICertificate/requestorInfo/phone element not found.',
- 2016 => 'e-mail address from orderSNICertificate/requestorInfo/email element is incorrect.',
- 2020 => 'Value from orderSNICertificate/requestorInfo/lastName element exceeded 255 characters.',
- 2021 => 'Value from orderSNICertificate/requestorInfo/phone element exceeded 255 characters.',
- 2024 => 'Value from orderSNICertificate/requestorInfo/firstName element exceeded 255 characters.',
- 2025 => 'To order SNI Certificate use orderSNICertificate or modifySNICertificate method.',
- 2026 => 'Value from orderSNICertificate/requestorInfo/email element exceeded 255 characters.',
- 2027 => 'At least one modifySNICertificate/serialNumber or modifySNICertificate/X509Cert element has to be present.',
- 2028 => 'modifySNICertificate/serialNumber element cannot be empty.',
- 2029 => 'Value from modifySNICertificate/serialNumber element exceeded 64 characters.',
- 2030 => 'modifySNICertificate/serialNumber element has to be In HEX form.',
- 2031 => 'There is no certificate with provided serial number in modifySNICertificate/serialNumber element.',
- 2032 => 'Only SNI certificates can be modified.',
- 2033 => 'Incorrect certificate form in modifySNICertificate/X509Cert element.',
- 2034 => 'Certificate is missing in modifySNICertificate/X509Cert element.',
- 2035 => 'At least one modifySNICertificate/addSerialNumbers/serialNumber attribute is required.',
- 2036 => 'modifySNICertificate/addSerialNumbers/serialNumber cannot be empty',
- 2037 => 'Value from modifySNICertificate/addSerialNumbers/serialNumber element exceeded 64 characters.',
- 2038 => 'modifySNICertificate/addSerialNumbers/serialNumber has to be in HEX form.',
- 2039 => 'At least one modifySNICertificate/removeSerialNumbers/serialNumber attribute is required.',
- 2040 => 'modifySNICertificate/removeSerialNumbers/serialNumber cannot be empty.',
- 2041 => 'Value from modifySNICertificate/removeSerialNumbers/serialNumber element exceeded 64 characters.',
- 2042 => 'modifySNICertificate/removeSerialNumbers/serialNumber has to be in HEX form.',
- 2043 => 'Cannot and and remove the same certificate at the same time.',
- 2044 => 'Cannot add certificate. Certificate not found.',
- 2045 => 'Cannot add SNI certificate to be part of another SNI certificate.',
- 2046 => 'Cannot add certificate that already is a part of SNI certificate.',
- 2047 => 'Cannot remove certificate that is NOT a part of SNI certificate.',
- 2048 => 'Resultant certificate contains no domains.',
- 2049 => 'verifyOrderParameters/note not found or empty.',
- 2050 => 'Value from verifyOrderParameters/note element exceeded 227 characters.',
- 2051 => 'Incorrect value in CommonName field.',
- 2052 => 'getExpiringCertificates/validityDaysLeft element not found or has incorrect value.',
- 2053 => 'cancelParameters element not found.',
- 2054 => 'changeApprovers/Approver element not found.',
- 2055 => 'orderID element not found.',
- 2056 => 'Order status don’t allow to add notes.',
- 2057 => 'Value from toDate element cannot be emalier then value from fromDate element.',
- 2058 => 'Attribute Locality or StateOfProvince not found.',
- 2059 => 'Incorrect value in verificationNotificationEnabled element.',
- 2061 => 'Incorrect value in renewCertificate/approvers/verificationNotificationEnabled element.',
- 2063 => 'verifyOrder/verifyOrderParameters/documents/dokument element not found.',
- 2064 => 'verifyOrder/verifyOrderParameters/documents/document/type element not found.',
- 2065 => 'verifyOrder/verifyOrderParameters/documents/document/description element not found.',
- 2066 => 'verifyOrder/verifyOrderParameters/documents/document/files element not found.',
- 2067 => 'verifyOrder/verifyOrderParameters/documents/document/files/file element not found.',
- 2068 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/filename element not found.',
- 2069 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/content element not found.',
- 2070 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/content element should be in base64 form.',
- 2080 => 'Request size limit has been exceeded.',
- 2081 => 'fileName element cannot contain following characters: \ / : * ? " < > |',
- 2082 => 'Value in fileName element has incorrect length. Allowed length are from 3 to 255 characters.',
- 2083 => 'Incorrect type of document.',
- 2085 => 'One of file in verifyOrder/verifyOrderParameters/documents/document/files/file element exceeded allowed size limit (30MB).',
- 2088 => 'Part of domain name in SANEntries/SANEntry/DNSName element exceeded the number of characters allowed.',
- 2089 => 'Algorithm is not configured.',
- 2090 => 'There is an invalid value in hashAlgorithm element.',
- 2091 => 'Invalid value in in element getProductList/HashAlgorithm.',
- 2093 => 'Certificate date is from past.',
- 2094 => 'The certificate does not meet the reissue conditions.',
- 2095 => 'Element SANEntries/SANEntry/DNSName can not be empty.',
- 2096 => 'Element serialNumber must be a hex string.',
- 2097 => 'The ReissueCertificate/CSR element is not a valid CSR request.',
- 2104 => 'The key compromising date may be specified only for the reason of cancellation of Key compromise.',
- 2109 => 'Invalid key length.',
- 2121 => 'The value from quickOrder/organizationInfo/verificationPhoneNumber element exceeded the acceptable size of 255 characters.',
- 2122 => 'Reissue for products on SimplySign are unavailable.',
- 2124 => 'Unsupported hash algorithm.',
- 2125 => 'Incorrect signature in CSR.',
- 2126 => 'Certificate reissue is not possible. Cannot reissue the same certificate again.',
- 2127 => 'Incorrect value in certificateDetails element.',
- 2128 => 'Incorrect value in certificateOrder element.',
- 2129 => 'Incorrect value in orderStatus element.',
- 2130 => 'Element SANEntries/SANEntry/DNSName contains domain existing already in issued certificate.',
- 2131 => 'Certification request not found.',
- 2137 => 'Incorrect value in businessCategory element.',
- 2138 => 'Attribute businessCategory not found.',
- 2139 => 'StreetAddress attribute not found.',
- 2140 => 'Attribute streetAddress (ST) exceeded 64 characters.',
- 2141 => 'Attribute streetAddress (ST) has to be UTF8String encoded. ',
- 2142 => 'PostalCode attribute not found.',
- 2143 => 'Attribute postalCode (P) exceeded 40 characters.',
- 2144 => 'Attribute postalCode (P) has to be PrintableString.',
- 2153 => 'Order with given number was not requested via API.',
- 2154 => 'Incorrect value in postalCode (P) element.',
- 2155 => 'Incorrect value in Jurisdiction of Incorporation State or Province Name JoISoPN element.',
- 2156 => 'Incorrect value in stateOrProvinceName (SP).',
- 2157 => 'Element approverMethod not found.',
- 2158 => 'Too many elements. Only one approverEmail or approverEmailPrefix can be used.',
- 2159 => 'Required approverEmailPrefix element not found.',
- 2160 => 'Required approverEmail element not found.',
- 2161 => 'VerifyDomain method does not support multidomain requests.',
- 2162 => 'Element SANApprover not found.',
- 2163 => 'The method does not support this product.',
- 2164 => 'SerialNumber attribute is invalid.',
- 2165 => 'Joiln attribute is invalid.',
- 2166 => 'Locality attribute is invalid.',
- 2167 => 'OrganizationUnit attribute is invalid.',
- 2168 => 'Organization attribute is invalid.',
- 2169 => 'StreetAddress attribute is invalid.',
- 2170 => 'The value of Description element exceeded the acceptable size of 1000 characters.',
- 2171 => 'Verification method not supported for IP address.',
- 2172 => 'Revocation e-mail is the same as login.',
- 2173 => 'The value of orderParameters/revocationContactEmail is invalid.',
- 2175 => 'Attribute UnstructuredName or UnstructuredAddress has not been found.',
- 2176 => 'Attribute UnstructuredName and UnstructuredAddress cannot be set together.',
- 2177 => 'Attribute UnstructuredName is not PrintableString.',
- 2178 => 'Attribute UnstructuredAddress is not PrintableString.',
- 2179 => 'UnstructuredName attribute exceeded the acceptable size of 64 characters.',
- 2180 => 'UnstructuredAddress attribute exceeded the acceptable size of 64 characters.',
- 2181 => 'Attribute UnstructuredName is not valid domain name.',
- 2182 => 'Attribute UnstructuredAddress is not valid IP address.',
- 2183 => 'Attribute Description is not UTF8String.',
- 2184 => 'Description attribute exceeded the acceptable size of 255 characters.',
- 2185 => 'Date in shortenedValidityPeriod or ValidityPeriod/NotAfter is from the past',
- 2186 => 'The verification method is not supported for orders with Wildcard domains.',
- 2187 => 'Deprecated field ValidityPeriod in the request. To shorten the certificate validity period, use shortenedValidityPeriod.',
- 2188 => 'Reissue request requires re-verification of domains. Due to regulatory changes on verification methods, the existing verifications cannot be reused.'
- ),
- 'pl' => array(
- 1000 => 'Długość klucza publicznego z CSR-a jest zbyt krótka.',
- 1001 => 'Algorytm klucza publicznego z CSR-a nie jest obsługiwany.',
- 1002 => 'Element orderParameters/CSR nie został odnaleziony lub jest pusty.',
- 1006 => 'Element productCode zawiera kod produktu wycofanego z oferty.',
- 1007 => 'Element quickOrder/SANEntries nie został odnaleziony.',
- 1008 => 'Element quickOrder/SANEntries/SANEntry/DNSName zawiera błędną nazwę domeny.',
- 1009 => 'Element quickOrder/requestorInfo nie został odnaleziony.',
- 1010 => 'Element quickOrder/orderParameters nie został odnaleziony.',
- 1011 => 'Element quickOrder/orderParameters/orderId nie został odnaleziony.',
- 1012 => 'Numer zamówienia jest już zajęty.',
- 1013 => 'Niepoprawny numer zamówienia.',
- 1014 => 'Element quickOrder/orderParameters/productCode nie został odnaleziony.',
- 1015 => 'Atrybut CommonName nie został znaleziony.',
- 1016 => 'Atrybut Organization nie został znaleziony.',
- 1019 => 'Atrybut State z CSR-a nie został znaleziony.',
- 1020 => 'Atrybut Country nie został znaleziony.',
- 1021 => 'Atrybut EmailAddress nie został znaleziony.',
- 1022 => 'Atrybut EmailAddress zawiera błędy.',
- 1023 => 'Wartość element orderParameters/customer nie może być taka sam jak wartość z elementu requestHeader/authToken/userName.',
- 1024 => 'Atrybut CommonName musi być zakodowany jako UTF8String.',
- 1025 => 'Atrybut EmailAddress musi być zakodowany jako IA5String.',
- 1026 => 'Atrybut Country musi być zakodowany jako PrintableString.',
- 1027 => 'Atrybut State musi być zakodowany jako UTF8String.',
- 1028 => 'Atrybut Locality musi być zakodowany jako UTF8String.',
- 1029 => 'Atrybut OrganizationUnit musi być zakodowany jako UTF8String.',
- 1030 => 'Atrybut Organization musi być zakodowany jako UTF8String.',
- 1031 => 'Atrybut CommonName musi być zakodowany jako PrintableString.',
- 1032 => 'Klucz publiczny z CSR-a został już wykorzystany.',
- 1033 => 'Zamówienie o podanym numerze nie istnieje.',
- 1037 => 'Adres e-mail w elemencie approverEmail zawiera błędy.',
- 1038 => 'Element quickOrder/approvers/Approver/approverEmail nie został odnaleziony.',
- 1040 => 'Element quickOrder/approvers/Approver/approverMethod nie został odnaleziony.',
- 1042 => 'Metoda weryfikacji domeny nie jest obsługiwana.',
- 1043 => 'Identyfikator zamówienia zawiera niedozwolone znaki "&\'<>',
- 1044 => 'Data wydania certyfikatu jest z przeszłości.',
- 1045 => 'Domena podana w CommonName nie występuje na liście domen w elemencie SANEntries.',
- 1046 => 'Tylko jedna domena w elemencie SANEntries może zawierać gwiazdkę w nazwie domeny.',
- 1048 => 'Brakuje elementu taxIdentificationNumber lub element ma niepoprawną wartość.',
- 1049 => 'Nie można odczytać klucza publicznego z CSR-a.',
- 1053 => 'Element requestorInfo/email nie został odnaleziony.',
- 1054 => 'Element requestorInfo/firstName nie został odnaleziony.',
- 1055 => 'Element requestorInfo/lastName nie został odnaleziony.',
- 1059 => 'Atrybut Country nie został znaleziony.',
- 1060 => 'Adres e-mail z elementu requestorInfo/email nie jest poprawny.',
- 1063 => 'Klucz publiczny z CSR-a znajduje się na czarnej liście.',
- 1065 => 'Wartość z elementu requestorInfo/lastName przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1066 => 'Wartość z elementu requestorInfo/phone przekroczyła dopuszczalny rozmiar 32 znaków.',
- 1069 => 'Data ważności certyfikatu podana w elemencie shortenedValidityPeriod przekracza dopuszczalny czas ważności certyfikatu dla żądanego produktu.',
- 1070 => 'Brakuje elementu orderParameters/validityPeriod/notBefore.',
- 1071 => 'Brakuje elementu orderParameters/validityPeriod/notAfter.',
- 1072 => 'Wartość z elementu requestorInfo/firstName przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1075 => 'Partner nie ma uprawnień, aby złożyć zamówienia na dany produkt.',
- 1076 => 'Brakuje elementu customer lub jest on pusty.',
- 1077 => 'Wartość z elementu customer przekroczyła dopuszczalny rozmiar 64 znaków.',
- 1078 => 'Element orderParameters/CSR nie jest poprawnym żądaniem CSR.',
- 1079 => 'Wartość z elementu orderId przekroczyła dopuszczalny rozmiar 50 znaków.',
- 1080 => 'Wartość z elementu productCode przekroczyła dopuszczalny rozmiar 3 znaków.',
- 1081 => 'Wartość z elementu requestorInfo/email przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1083 => 'Wartość z elementu taxIdentificationNumber przekroczyła dopuszczalny rozmiar 32 znaków.',
- 1084 => 'Wartość z elementu requestHeader/authToken/userName przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1085 => 'Wartość z elementu SANEntries/SANEntry/DNSName przekroczyła dopuszczalny rozmiar znaków.',
- 1087 => 'Adres e-mail w elemencie approverEmail przekroczył dopuszczalny rozmiar 255 znaków.',
- 1088 => 'Wartość z elementu orderParameters/language przekroczyła dopuszczalny rozmiar 2 znaków.',
- 1089 => 'Wartość z elementu orderParameters/userAgent przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1090 => 'Wartość z elementu requestHeader/authToken/password przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1092 => 'Atrybut JoISoPN nie został znaleziony.',
- 1093 => 'Atrybut JoISoCN nie został znaleziony.',
- 1094 => 'Atrybut JoILN nie został znaleziony.',
- 1095 => 'Atrybut SerialNumber nie został znaleziony.',
- 1096 => 'Wartość atrybutu JoISoCN przekroczyła dopuszczalny rozmiar 2 znaków.',
- 1097 => 'Wartość atrybutu JoISoPN przekroczyła dopuszczalny rozmiar 128 znaków.',
- 1098 => 'Wartość atrybutu JoILN przekroczyła dopuszczalny rozmiar 128 znaków.',
- 1099 => 'Wartość atrybutu JoISoCN zawiera nie obsługiwany kod kraju.',
- 1100 => 'Wartość atrybutu SerialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
- 1101 => 'Wartość atrybutu CommonName przekroczyła dopuszczalny rozmiar 64 znaków.',
- 1102 => 'Wartość atrybutu Organization przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1103 => 'Wartość atrybutu OrganizationalUnit przekroczyła dopuszczalny rozmiar 64 znaków.',
- 1104 => 'Wartość atrybutu Locality przekroczyła dopuszczalny rozmiar 128 znaków.',
- 1105 => 'Wartość atrybutu State przekroczyła dopuszczalny rozmiar 128 znaków.',
- 1106 => 'Wartość atrybutu EmailAddress przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1107 => 'Ilość domen podanych w elemencie SANEntries przekroczyła dopuszczalną ilość domen dla produktu.',
- 1108 => 'Wartość z elementu approverEmailPrefix nie pasuje do listy prefixów.',
- 1109 => 'Data podana w elemencie orderParameters/validityPeriod/notBefore jest większa niż data z elementu orderParameters/validityPeriod/notAfter.',
- 1110 => 'Data podana w elemencie fromDate jest błędna.',
- 1111 => 'Data podana w elemencie toDate jest błędna.',
- 1113 => 'Status zamówienia uniemożliwia wysłanie weryfikacji email. Zamówienie jest w trakcie realizacji lub zostało anulowane. Dla podanego zamówienia certyfikat jest w trakcie wydania lub został już wydany. Maile weryfikacyjne nie zostały wysłane.',
- 1114 => 'Dla podanego zamówienia wszystkie weryfikacje są jeszcze aktualne. Maile weryfikacyjne nie zostały wysłane.',
- 1115 => 'Element SANEntries/SANEntry/DNSName zawiera domenę typu Wildcard, która nie jest dozwolona dla wybranego produktu.',
- 1116 => 'CommonName zawiera domenę typu Wildcard, która nie jest dozwolona dla wybranego produktu.',
- 1117 => 'CommonName nie zawiera domeny typu Wildcard, która jest wymagana dla tego produktu.',
- 1118 => 'Element SANEntries/SANEntry/DNSName nie zawiera domeny typu Wildcard, która jest wymagana dla tego produktu.',
- 1119 => 'Wartość atrybutu Country z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1120 => 'Wartość atrybutu Organization z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1121 => 'Wartość atrybutu OrganizationUnit z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1122 => 'Wartość atrybutu Locality z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1123 => 'Wartość atrybutu State z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1124 => 'Wartość atrybutu CommonName z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1125 => 'Wartość atrybutu EmailAddress z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
- 1126 => 'Atrybut SerialNumber musi być zakodowany jako UTF8String.',
- 1127 => 'Atrybut JoILN musi być zakodowany jako UTF8String.',
- 1128 => 'Atrybut JoISoCN musi być zakodowany jako PrintableString.',
- 1129 => 'Atrybut JoISoPN musi być zakodowany jako UTF8String.',
- 1131 => 'Element revokeCertificate/RevokeCertificateParameters nie został odnaleziony.',
- 1132 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber nie został odnaleziony.',
- 1133 => 'Brak certyfikatu o podanym numerze seryjnym.',
- 1134 => 'Wartość elementu revokeCertificate/RevokeCertificateParameters/serialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
- 1135 => 'Nieprawidłowa wartość elementu revokeCertificate/RevokeCertificateParameters/revocationReason',
- 1136 => 'Do zamówienia został wydany certyfikat który ma status "ważny" lub dopiero uzyska status "ważny". Aby anulować zamówienie proszę unieważnić certyfikat.',
- 1137 => 'Certyfikat do podanego numeru zamówienia już wygasł. Anulowanie wniosku nie jest możliwe.',
- 1138 => 'Operacja nie może być wykonana. Skontaktuj się z CERTUM.',
- 1139 => 'Status wniosku nie pozwala na jego odrzucenie. Jeśli błąd będzie się powtarzał skontaktuj się z CERTUM.',
- 1140 => 'Data podana w elemencie keyCompromitationDate musi być w formacie YYYY-MM-DD.',
- 1141 => 'Data podana w elemencie keyCompromitationDate musi zawierać się w przedziale pomiędzy datą początku ważności certyfikatu, a bieżącą datą.',
- 1142 => 'Wartość elementu revokeCertificate/RevokeCertificateParameters/note przekroczyła dopuszczalny rozmiar 250 znaków.',
- 1143 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat jest w trakcie unieważniania.',
- 1144 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat wygasł.',
- 1145 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat został już unieważniony.',
- 1146 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber musi być w postaci szesnastkowej.',
- 1147 => 'Brak jednego lub więcej elementów approvers/Approver odpowiadających domenie z SANEntries/SANEntry/DNSName.',
- 1148 => 'Nie można złożyć wniosku na lokalny adres IP.',
- 1150 => 'Długość klucza publicznego z CSR-a jest zbyt długa.',
- 1151 => 'Zamówienie zostało już anulowane.',
- 1152 => 'Element quickOrder/approvers/Approver/approverMethod nie został odnaleziony.',
- 1153 => 'Numer strony musi być z zakresu [1 - 100].',
- 1154 => 'Zapytanie zwróciło zbyt dużą liczbę rekordów.',
- 1155 => 'Strona z wynikami o podanym numerze nie istnieje.',
- 1156 => 'Pole customer w orderParameters posiada niedozwolone znaki "&\'<>.',
- 1157 => 'Element quickOrder/SANEntries/SANEntry/DNSName zawiera publiczną domenę najwyższego poziomu.',
- 1159 => 'Certyfikat nie został odnaleziony.',
- 1160 => 'Nie podano numeru seryjnego certyfikatu.',
- 1161 => 'Numer seryjny certyfikatu jest za długi (przekroczono dopuszczalny rozmiar 64 znaków).',
- 1162 => 'Wymagane parametry nie zostały podane w żądaniu (numer seryjny certyfikatu lub numer zamówienia).',
- 1163 => 'W żądaniu podano parametry które nie mogą występować jednocześnie (numer seryjny certyfikatu i numer zamówienia).',
- 1164 => 'Niepoprawna liczba parametrów identyfikujących certyfikat. Podany powinien być numer seryjny certyfikatu lub certyfikat w postaci PEM.',
- 1165 => 'Niepoprawny format PEM.',
- 1166 => 'Podany kod produktu nie jest kodem na odnowienie.',
- 1167 => 'Profil certyfikatu do odnowienia różni się od profilu certyfikatu odnawianego.',
- 1168 => 'CN certyfikatu różni się od CN certyfikatu odnawianego.',
- 1169 => 'Nazwa użytkownika w odnawianym certyfikacie jest inna niż podana.',
- 1170 => 'Odnawiany certyfikat został wystawiony przez innego partnera.',
- 1172 => 'Żądanie zawiera nadmiarowe elementy. Należy zweryfikować poprawność żądania z dokumentacją.',
- 1176 => 'Status zamówienia uniemożliwia wysłanie weryfikacji domeny. Zamówienie jest w trakcie realizacji lub zostało anulowane. Dla podanego zamówienia certyfikat został już wydany. Wprowadzenie zmian nie jest możliwe.',
- 1181 => 'Podany kod produktu, nie jest kodem na wydanie certyfikatu.',
- 1182 => 'Element verifyDomain/code nie został znaleziony.',
- 1183 => 'Wartość z elementu verifyDomain/code przekroczyła dopuszczalny rozmiar 255 znaków.',
- 1184 => 'Kod weryfikacji domeny już wygasł.',
- 1186 => 'Kod weryfikacyjny jest niepoprawny.',
- 1191 => 'Okres ważności przekracza maksymalny okres ważności wybranego produktu.',
- 1194 => 'Element orderSNICertificate/orderSNIParameters/CSR nie został odnaleziony lub jest pusty.',
- 1195 => 'Element orderSNICertificate/orderSNIParameters/CSR nie jest poprawnym żądaniem CSR.',
- 1196 => 'Wartość z elementu orderSNICertificate/orderSNIParameters/language przekroczyła dopuszczalny rozmiar 2 znaków.',
- 1197 => 'Element orderSNICertificate/orderSNIParameters nie został odnaleziony.',
- 1198 => 'Element orderSNICertificate/serialNumbers nie został odnaleziony.',
- 1199 => 'Podanie przynajmniej jednego z atrybutów orderSNICertificate/serialNumbers/serialNumber jest wymagane.',
- 2000 => 'Element orderSNICertificate/serialNumbers/serialNumber nie może być pusty.',
- 2001 => 'Wartosc elementu orderSNICertificate/serialNumbers/serialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
- 2002 => 'Element orderSNICertificate/serialNumbers/serialNumber musi byc w postaci szesnastkowej.',
- 2003 => 'Certyfikat o podanym numerze seryjnym wygasł lub został unieważniony.',
- 2004 => 'Certyfikat SNI nie może zawierać innego cerrtyfikatu SNI.',
- 2005 => 'Żaden z podanych certyfikatów nie zawiera domen.',
- 2006 => 'Element orderSNICertificate/requestorInfo nie został odnaleziony.',
- 2010 => 'Element orderSNICertificate/requestorInfo/email nie został odnaleziony.',
- 2011 => 'Element orderSNICertificate/requestorInfo/firstName nie został odnaleziony.',
- 2012 => 'Element orderSNICertificate/requestorInfo/lastName nie został odnaleziony.',
- 2013 => 'Element orderSNICertificate/requestorInfo/phone nie został odnaleziony.',
- 2016 => 'Adres e-mail z elementu orderSNICertificate/requestorInfo/email nie jest poprawny.',
- 2020 => 'Wartość z elementu orderSNICertificate/requestorInfo/lastName przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2021 => 'Wartość z elementu orderSNICertificate/requestorInfo/phone przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2024 => 'Wartość z elementu orderSNICertificate/requestorInfo/firstName przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2025 => 'W celu złożenia zamówienia na produkt SNI Certificate należy użyć metody orderSNICertificate, modifySNICertificate',
- 2026 => 'Wartość z elementu orderSNICertificate/requestorInfo/email przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2027 => 'Niepoprawna liczba parametrów identyfikujących certyfikat. Podany powinien być modifySNICertificate/serialNumber lub modifySNICertificate/X509Cert',
- 2028 => 'Element modifySNICertificate/serialNumber nie może być pusty.',
- 2029 => 'Wartosc elementu modifySNICertificate/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
- 2030 => 'Element modifySNICertificate/serialNumber musi byc w postaci szesnastkowej.',
- 2031 => 'Brak certyfikatu o numerze seryjnym podanym w elemencie modifySNICertificate/serialNumber.',
- 2032 => 'Modyfikowany certyfikat musi być certyfikatem SNI.',
- 2033 => 'Niepoprawny format PEM certyfikatu w elemencie modifySNICertificate/X509Cert.',
- 2034 => 'Brak certyfikatu podanego w elemencie modifySNICertificate/X509Cert.',
- 2035 => 'Podanie przynajmniej jednego z atrybutów modifySNICertificate/addSerialNumbers/serialNumber jest wymagane.',
- 2036 => 'Element modifySNICertificate/addSerialNumbers/serialNumber nie może być pusty.',
- 2037 => 'Wartosc elementu modifySNICertificate/addSerialNumbers/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
- 2038 => 'Element modifySNICertificate/addSerialNumbers/serialNumber musi byc w postaci szesnastkowej.',
- 2039 => 'Podanie przynajmniej jednego z atrybutów modifySNICertificate/removeSerialNumbers/serialNumber jest wymagane.',
- 2040 => 'Element modifySNICertificate/removeSerialNumbers/serialNumber nie może być pusty.',
- 2041 => 'Wartosc elementu modifySNICertificate/removeSerialNumbers/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
- 2042 => 'Element modifySNICertificate/removeSerialNumbers/serialNumber musi byc w postaci szesnastkowej.',
- 2043 => 'Nie można dodawać i usuwać tego samego certyfikatu.',
- 2044 => 'Nie można dodać certyfikatu. Certyfikat nie został znaleziony.',
- 2045 => 'Nie można dodać certyfikatu będącego certyfikatem SNI.',
- 2046 => 'Nie można dodać certyfikatu, który już wchodzi w skład certyfikatu SNI.',
- 2047 => 'Nie można usunąć certyfikatu, który nie wchodzi w skład certyfikatu SNI.',
- 2048 => 'Wynikowy certyfikat nie zawiera domen.',
- 2049 => 'Element verifyOrder/verifyOrderParameters/note nie został znaleziony lub jest pusty.',
- 2050 => 'Wartość elementu verifyOrderParameters/note przekroczyła dopuszczalny rozmiar 227 znaków.',
- 2051 => 'Niepoprawna wartość w polu CommonName.',
- 2052 => 'Element getExpiringCertificates/validityDaysLeft nie został znaleziony lub ma niepoprawną wartość',
- 2053 => 'Element cancelParameters nie został odnaleziony.',
- 2054 => 'Element changeApprovers/Approver nie został odnaleziony.',
- 2055 => 'Element orderID nie został odnaleziony.',
- 2056 => 'Status zamówienia nie pozwala na dodanie notatki.',
- 2057 => 'Wartość elementu toDate nie może być wcześniejsza od wartości elementu fromDate.',
- 2058 => 'Atrybut Locality lub StateOfProvince nie został znaleziony.',
- 2059 => 'Niepoprawna wartość w elemencie verificationNotificationEnabled',
- 2061 => 'Niepoprawna wartość w elemencie renewCertificate/approvers/verificationNotificationEnabled',
- 2063 => 'Element verifyOrder/verifyOrderParameters/documents/document nie został odnaleziony.',
- 2064 => 'Element verifyOrder/verifyOrderParameters/documents/document/type nie został odnaleziony.',
- 2065 => 'Element verifyOrder/verifyOrderParameters/documents/document/description nie został odnaleziony.',
- 2066 => 'Element verifyOrder/verifyOrderParameters/documents/document/files nie został odnaleziony.',
- 2067 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file nie został odnaleziony.',
- 2068 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/filename nie został odnaleziony.',
- 2069 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/content nie został odnaleziony.',
- 2070 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/content powinien być w base64.',
- 2080 => 'Przekroczono dopuszczalny rozmiar dla żądania.',
- 2081 => 'Element fileName nie może zawierać znaków: \ / : * ? " < > |',
- 2082 => 'Wartość elementu fileName ma nieprawidłową długość. Dopuszczalna długość: od 3 do 255 znaków.',
- 2083 => 'Typ dokumentu nie jest obsługiwany.',
- 2085 => 'Jeden z plików w elemencie verifyOrder/verifyOrderParameters/documents/document/files/file przekroczył dopuszczalny rozmiar (30MB).',
- 2088 => 'Długość części domeny z elementu SANEntries/SANEntry/DNSName przekroczyła dopuszczalny rozmiar znaków.',
- 2089 => 'Algorytm nie jest skonfigurowany.',
- 2090 => 'W elemencie hashAlgorithm znajduje się niepoprawna wartość.',
- 2091 => 'Niepoprawna wartość w elemencie getProductList/HashAlgorithm.',
- 2093 => 'Data ważności certyfikatu jest z przeszłości.',
- 2094 => 'Certyfikat nie spełnia warunków reissue.',
- 2095 => 'Element SANEntries/SANEntry/DNSName nie może być pusty.',
- 2096 => 'Element serialNumber musi być w postaci szesnastkowej.',
- 2097 => 'Element reissueCertificate/CSR nie jest poprawnym żądaniem CSR.',
- 2104 => 'Data kompromitacji klucza może być podana jedynie dla przyczyny unieważnienia Kompromitacja klucza.',
- 2109 => 'Niedozwolona długość klucza publicznego.',
- 2121 => 'Wartość z elementu quickOrder/organizationInfo/verificationPhoneNumber przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2122 => 'Reissue dla produktów SimplySign jest niedostępny.',
- 2124 => 'Nieobsługiwana funkcja skrótu.',
- 2125 => 'CSR zawiera niepoprawny podpis.',
- 2126 => 'Nie można wydać ponownie certyfikatu reissue dla tego samego certyfikatu.',
- 2127 => 'Niepoprawna wartość w elemencie certificateDetails.',
- 2128 => 'Niepoprawna wartość w elemencie orderDetails.',
- 2129 => 'Niepoprawna wartość w elemencie order Status.',
- 2130 => 'Element SANEntries/SANEntry/DNSName zawiera domenę istniejącą w wydanym certyfikacie.',
- 2131 => 'Nie znaleziono zamówienia w bazie.',
- 2137 => 'Niepoprawna wartość atrybutu businessCategory (BC).',
- 2138 => 'Nie znaleziono atrybutu businessCategory (BC).',
- 2139 => 'Atrybut StreetAddress nie został znaleziony.',
- 2140 => 'Wartość atrybutu streetAddress (ST) przekroczyła 64 znaki.',
- 2141 => 'Atrybut streetAddress (ST) musi być zakodowany jako UTF8String.',
- 2142 => 'Atrybut PostalCode nie został znaleziony.',
- 2143 => 'Wartość atrybutu postalCode (P) przekroczyła 40 znaków.',
- 2144 => 'Wartość atrybutu postalCode (P) musi być typu PrintableString.',
- 2153 => 'Zamówienie o podanym numerze nie zostało złożone przez API.',
- 2154 => 'Niepoprawna wartość atrybutu postalCode (P).',
- 2155 => 'Niepoprawna wartość atrybutu Jurisdiction of Incorporation State or Province Name (JoISoPN).',
- 2156 => 'Niepoprawna wartość atrybutu stateOrProvinceName (SP).',
- 2157 => 'Brakuje elementu approverMethod.',
- 2158 => 'Zbyt wiele elementów. Można podać tylko jeden approverEmail lub approverEmailPrefix.',
- 2159 => 'Wymagany element approverEmailPrefix nie został podany',
- 2160 => 'Wymagany element approverEmail nie został podany.',
- 2161 => 'VerifyDomain nie obsługuje wniosków multidomenowych.',
- 2162 => 'Element SANApprover nie został odnaleziony.',
- 2163 => 'Metoda nie obsługuje podanego typu produktu.',
- 2164 => 'Atrybut SerialNumber poiada niepoprawną wartość.',
- 2165 => 'Atrybut Joiln posiada nieproprawną wratość.',
- 2166 => 'Atrybut Locality posiada niepoprawną wartość.',
- 2167 => 'Atrybut OrganizationUnit posiada niepoprawną wartość.',
- 2168 => 'Atrybut Organization posiada niepoprawną wartość',
- 2169 => 'Atrybut streetAddress posiada niepoprawną wartość.',
- 2170 => 'Atrybut Description ma nieprawidłową długość. Dopuszczalna długość: do 1000 znaków.',
- 2171 => 'Metoda weryfikacji nie jest wspierana dla adresu IP.',
- 2172 => 'E-mail kontaktowy o unieważnieniu jest taki sam jak login.',
- 2173 => 'Wartość elementu orderParameters/revocationContactEmail jest nieprawidłowa.',
- 2175 => 'Atrybut UnstructuredName lub UnstructuredAddress nie został znaleziony.',
- 2176 => 'Atrybut UnstructuredName i UnstructuredAddress nie może występować razem.',
- 2177 => 'Atrybut UnstructuredName musi być zakodowany jako PrintableString.',
- 2178 => 'Atrybut UnstructuredAddress musi być zakodowany jako PrintableString.',
- 2179 => 'Wartość atrybutu UnstructuredName przekroczyła dopuszczalny rozmiar 64 znaków.',
- 2180 => 'Wartość atrybutu UnstructuredAddress przekroczyła dopuszczalny rozmiar 64 znaków.',
- 2181 => 'Atrybut UnstructuredName nie jest prawidłową nazwą domeny.',
- 2182 => 'Atrybut UnstructuredAddress nie jest prawidłowym adresem IP.',
- 2183 => 'Atrybut Description musi być zakodowany jako UTF8String.',
- 2184 => 'Wartość atrybutu Description przekroczyła dopuszczalny rozmiar 255 znaków.',
- 2185 => 'Data podana w shortenedValidityPeriod lub ValidityPeriod/NotAfter jest z przeszłości.',
- 2186 => 'Metoda weryfikacji nie jest obsługiwana dla dla zamówień zawierających domenę Wildcard.',
- 2187 => 'W żądaniu podano przestarzałe pole ValidityPeriod. Aby skrócić okres ważności certyfikatu należy użyć shortenedValidityPeriod.',
- 2188 => 'Wniosek reissue wymaga ponownej weryfikacji domen. W związku ze zmianami w w regulacjach dotyczących metod weryfikacji, istniejące weryfikacje nie mogą być ponownie wykorzystane.'
- )
- );
-
- /**
- * Returns an array with descriptions of errors that have occured.
- *
- * The returned array is an array of arrays containing the following keys:
- * code, number, text, where code is a success code, number is a error
- * number and text is a description of an error.
- *
- * @param string $lang
- * @param int $status
- * @param array $errors
- * @return array
- */
- public function getText($lang, $status, $errors)
- {
- $texts = array();
- if (empty($errors)) {
- $t = isset($this->texts_status[$lang][$status]) ?
- $this->texts_status[$lang][$status] : '';
- $texts[] = array(
- 'code' => $status,
- 'number' => NULL,
- 'text' => $t
- );
- } else {
- foreach ($errors as $e) {
- $t = isset($this->texts_error[$lang][$e->errorCode]) ?
- $this->texts_error[$lang][$e->errorCode] : '';
- $v = empty($e->value) ? '' : ' [' . $e->value . ']';
- $texts[] = array(
- 'code' => $status,
- 'number' => $e->errorCode,
- 'text' => $t . $v
- );
- }
- }
- return $texts;
- }
-}
+ array(
+ 1 => 'Error occurred during processing',
+ 2 => 'Authentication data in requestHeader/authToken element are incorrect.'
+ ),
+ 'pl' => array(
+ 1 => 'Wystąpił ogólny błąd podczas przetwarzania zamówienia. Należy skontaktować się z CERTUM w celu zdiagnozowania problemu.',
+ 3 => 'Dane autoryzacyjne w elemencie requestHeader/authToken nie są poprawne.'
+ )
+ );
+
+ /**
+ * A set of error descriptions.
+ *
+ * @var array
+ */
+ protected $texts_error = array(
+ 'en' => array(
+ 1000 => 'CSR key length is too short.',
+ 1001 => 'Public key algorithm from CSR is not supported.',
+ 1002 => 'Element orderParameters/CSR not fund or empty.',
+ 1006 => 'The productCode element contains the code of the discontinued product.',
+ 1007 => 'Element quickOrder/SANEntries not found.',
+ 1008 => 'Element quickOrder/SANEntries/SANEntry/DNSName has wrong domain name.',
+ 1009 => 'Element quickOrder/requestorInfo not found.',
+ 1010 => 'Element quickOrder/orderParameters not found.',
+ 1011 => 'Element quickOrder/orderParameters/orderId not found.',
+ 1012 => 'Order ID is already taken.',
+ 1013 => 'Wrong order ID.',
+ 1014 => 'Element quickOrder/orderParameters/productCode not found.',
+ 1015 => 'Attribute CommonName not found.',
+ 1016 => 'Attribute Organization not found.',
+ 1019 => 'Attribute State from CSR-a not found.',
+ 1020 => 'Attribute Country not found.',
+ 1021 => 'Attribute EmailAddress not found.',
+ 1022 => 'Email address has errors.',
+ 1023 => 'Valu of orderParameters/customer element cannot be the same as requestHeader/authToken/username element.',
+ 1024 => 'Attribute CommonName has to be encoded as UTF8String.',
+ 1025 => 'Attribute EmailAddress has to be encoded as IA5String.',
+ 1026 => 'Attribute Country has to be encoded as PrintableString.',
+ 1027 => 'Attribute State has to be encoded as UTF8String.',
+ 1028 => 'Attribute Locality has to be encoded as UTF8String.',
+ 1029 => 'Attribute OrganizationUnit has to be encoded as UTF8String.',
+ 1030 => 'Attribute Organization has to be encoded as UTF8String.',
+ 1031 => 'Attribute CommonName has to be encoded as PrintableString.',
+ 1032 => 'Public key from CSR has already been used.',
+ 1033 => 'Order ID does not exist.',
+ 1037 => 'Address e-mail in element approverEmail has errors.',
+ 1038 => 'Element quickOrder/approvers/Approver/approverEmail not found.',
+ 1040 => 'Element quickOrder/approvers/Approver/approverMethod not found.',
+ 1042 => 'Domain verification method not supported.',
+ 1043 => 'Order ID contains characters that are not allowed: "&\'<>.',
+ 1044 => 'Certificate date is “from the past”.',
+ 1045 => 'Domain in CommonName is not present in SANEntries.',
+ 1046 => 'Only one domain in SANEntries element may contain asterix "*" in domain name.',
+ 1048 => 'Element taxIdentificationNumber not found or has incorrect value.',
+ 1049 => 'Cannot read public key from CSR.',
+ 1053 => 'Element requestorInfo/email not found.',
+ 1054 => 'Element requestorInfo/firstName not found.',
+ 1055 => 'Element requestorInfo/lastName not found.',
+ 1059 => 'Attribute Country not found.',
+ 1060 => 'Email address from requestorInfo/e-mail element is incorrect.',
+ 1063 => 'Public key from CSR is blacklisted.',
+ 1065 => 'Value from requestorInfo/lastName element exceeded 255 characters.',
+ 1066 => 'Value from requestorInfo/phone element exceeded 32 characters.',
+ 1069 => 'The certificate validity date provided in the shortenedValidityPeriod element exceeds the certificate validity period for the requested product.',
+ 1070 => 'Element organizationInfo/validityPeriod/notBefore not found.',
+ 1071 => 'Element organizationInfo/validityPeriod/notAfter not found.',
+ 1072 => 'Value from requestorInfo/firstName element exceeded 255 characters.',
+ 1075 => 'Partner is not allowed to order this product.',
+ 1076 => 'Element customer not found or empty.',
+ 1077 => 'Value from customer element exceeded 64 characters.',
+ 1078 => 'CSR in orderParameters/CSR element is incorrect.',
+ 1079 => 'Value from orderId element exceeded 50 characters.',
+ 1080 => 'Value from productCode element exceeded 3 characters.',
+ 1081 => 'Value from requestorInfo/email element exceeded 255 characters.',
+ 1083 => 'Value from taxIdentificationNumber element exceeded 32 characters.',
+ 1084 => 'Value from requestHeader/authToken/userName element exceeded 255 characters.',
+ 1085 => 'Value from SANEntries/SANEntry/DNSName element exceeded the number of characters allowed.',
+ 1087 => 'Value from approverEmail element exceeded 255 characters.',
+ 1088 => 'Value from orderParameters/language element exceeded 2 characters.',
+ 1089 => 'Value from orderParameters/userAgent element exceeded 255 characters.',
+ 1090 => 'Value from requestHeader/authToken/password element exceeded 255 characters.',
+ 1092 => 'Attribute JoISoPN not found.',
+ 1093 => 'Attribute JoISoCN not found.',
+ 1094 => 'Attribute JoILN not found.',
+ 1095 => 'Attribute SerialNumber not found.',
+ 1096 => 'Attribute JoISoCN exceeded 2 characters.',
+ 1097 => 'Attribute JoISoPN exceeded 128 characters.',
+ 1098 => 'Attribute JoILN exceeded 128 characters.',
+ 1099 => 'Attribute JoISoCN contains unsupported country code.',
+ 1100 => 'Attribute SerialNumber exceeded 64 characters.',
+ 1101 => 'Attribute CommonName exceeded 64 characters.',
+ 1102 => 'Attribute Organization exceeded 255 characters.',
+ 1103 => 'Attribute OrganizationalUnit exceeded 64 characters.',
+ 1104 => 'Attribute Locality exceeded 128 characters.',
+ 1105 => 'Attribute State exceeded 128 characters.',
+ 1106 => 'Attribute EmailAddress exceeded 255 characters.',
+ 1107 => 'Number of domains in SANEntries element exceeded allowed value for product.',
+ 1108 => 'Value in approverEmailPrefix does not match the prefix list.',
+ 1109 => 'Value from orderParameters/validityPeriod/notBefore element is greater than value from orderParameters/validityPeriod/notAfter element.',
+ 1110 => 'Date in fromDate is incorrect.',
+ 1111 => 'Date in toDate is incorrect.',
+ 1113 => 'Order status prevents sending email verification. The order is being processed or has been canceled. Certificate is being issued or is already issued. Verification emails hasn’t been sent.',
+ 1114 => 'All verification messages are still valid. Verification emails hasn’t been sent.',
+ 1115 => 'SANEntries/SANEntry/DNSName Element contains Widlcard domain which is not allowed for selected product.',
+ 1116 => 'CommonName contains Widlcard domain which is not allowed for selected product.',
+ 1117 => 'CommonName doesn’t contain Widlcard domain which is mandatory for selected product.',
+ 1118 => 'SANEntries/SANEntry/DNSName element doesn’t contain Widlcard domain which is mandatory for selected product.',
+ 1119 => 'Country attribute form CSR contains value not allowed for orders issued automatically.',
+ 1120 => 'Organization attribute form CSR contains value not allowed for orders issued automatically.',
+ 1121 => 'OrganizationUnit attribute form CSR contains value not allowed for orders issued automatically.',
+ 1122 => 'Locality attribute form CSR contains value not allowed for orders issued automatically.',
+ 1123 => 'State attribute form CSR contains value not allowed for orders issued automatically.',
+ 1124 => 'CommonName attribute form CSR contains value not allowed for orders issued automatically.',
+ 1125 => 'EmailAddress attribute form CSR contains value not allowed for orders issued automatically.',
+ 1126 => 'SerialNumber attribute has to be UTF8String encoded.',
+ 1127 => 'JoILN attribute has to be UTF8String encoded.',
+ 1128 => 'JoISoCN attribute has to be PrintableString encoded.',
+ 1129 => 'JoISoPN attribute has to be UTF8String encoded.',
+ 1131 => 'Element revokeCertificate/RevokeCertificateParameters not found.',
+ 1132 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber not found.',
+ 1133 => 'No certificate at given serial number.',
+ 1134 => 'Value in revokeCertificate/RevokeCertificateParameters/serialNumber element exceeded 64 characters.',
+ 1135 => 'Incorrect value in revokeCertificate/RevokeCertificateParameters/revocationReason.',
+ 1136 => 'To this order there is a certificate that is valid or will be valid. To cancel an order please revoke the certificate first.',
+ 1137 => 'Certficate to this order Has expired. Order cancel is not possible.',
+ 1138 => 'Request cannot be proceded. Please contact CERTUM.',
+ 1139 => 'It is impossible to cancel an order due to its status. Please try again later. If problem repeats please contact CERTUM.',
+ 1140 => 'Date in keyCompromitationDate element has to be YYYY-MM-DD.',
+ 1141 => 'Date in keyCompromitationDate element Has to be between certificate valid from date and current date.',
+ 1142 => 'Value of revokeCertificate/RevokeCertificateParameters/note element exceeded 250 characters.',
+ 1143 => 'Cannot revoke the certificate because certificate is during revocation process.',
+ 1144 => 'Cannot revoke the certificate because it has expired.',
+ 1145 => 'Cannot revoke the certificate because it has already been revoked.',
+ 1146 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber has to be HEX.',
+ 1147 => 'Element approvers/Approver for SANEntries/SANEntry/DNSName element not found.',
+ 1148 => 'Cannot place an order with private IP address.',
+ 1150 => 'Key length in CSR is too long.',
+ 1151 => 'Order has already been cancelled.',
+ 1152 => 'Element quickOrder/approvers/Approver/approverMethod not found.',
+ 1153 => 'Page number has to be from range [1 - 100].',
+ 1154 => 'Too many records were returned from the query.',
+ 1155 => 'Page not fund.',
+ 1156 => 'customer filed in orderParameters contains disallowed characters: "&\'<>.',
+ 1157 => 'quickOrder/SANEntries/SANEntry/DNSName element contains gTLD.',
+ 1159 => 'Certificate not found.',
+ 1160 => 'Certificate serial number is missing.',
+ 1161 => 'Serial number exceeded 64 characters.',
+ 1162 => 'Required parameters are missing (serial number or order identifier).',
+ 1163 => 'Request contains parameters that cannot occur simultaneously (certificate serial number and order identifier).',
+ 1164 => 'Certificate cannot be identified properly. Provide certificate serial number OR certificate in PEM form.',
+ 1165 => 'Certificate format is incorrect (certificate should be in PEM form).',
+ 1166 => 'Provided product code cannot be use as a renewal code.',
+ 1167 => 'Profile of the original certificate and renewal profile mismatch.',
+ 1168 => 'CN mismatch.',
+ 1169 => 'Customer mismatch.',
+ 1170 => 'Certificate issued from different account.',
+ 1172 => 'Request contains additional elements. Please verify request with documentation.',
+ 1173 => 'Provided data are equal to one provided Please use sendNotification to once again send verification emails.',
+ 1176 => 'Order status prevents sending domain verification. The order is being processed or has been canceled.Certificate is already issued. Required rgani is not possible.',
+ 1181 => 'Product code is incorrect for certificate issuance.',
+ 1182 => 'Code element not found.',
+ 1183 => 'Value in verifyDomain/code element exceeded 255 characters.',
+ 1184 => 'Verification code has expired.',
+ 1186 => 'Verification code is incorrect.',
+ 1191 => 'Validity period exceeds maximum validity period for chosen product.',
+ 1194 => 'orderSNICertificate/orderSNIParameters/CSR element not fund or empty.',
+ 1195 => 'orderSNICertificate/orderSNIParameters/CSR element doesn’t contain correct CSR.',
+ 1196 => 'Value from orderSNICertificate/orderSNIParameters/language element exceeded 2 characters.',
+ 1197 => 'orderSNICertificate/orderSNIParameters element not found.',
+ 1198 => 'orderSNICertificate/serialNumbers element not found.',
+ 1199 => 'At least one orderSNICertificate/serialNumbers/serialNumber element is required.',
+ 2000 => 'orderSNICertificate/serialNumbers/serialNumber cannot be empty.',
+ 2001 => 'Value in orderSNICertificate/serialNumbers/serialNumber element exceeded 64 characters.',
+ 2002 => 'orderSNICertificate/serialNumbers/serialNumber element has to be In HEX form.',
+ 2003 => 'Given certificate expired or was revoked.',
+ 2004 => 'One SNI certificate cannot contain another SNI Certificate.',
+ 2005 => 'None of provided certificate contain domain names.',
+ 2006 => 'orderSNICertificate/requestorInfo element not found.',
+ 2010 => 'orderSNICertificate/requestorInfo/email element not found.',
+ 2011 => 'orderSNICertificate/requestorInfo/firstName element not found.',
+ 2012 => 'orderSNICertificate/requestorInfo/lastName element not found.',
+ 2013 => 'orderSNICertificate/requestorInfo/phone element not found.',
+ 2016 => 'e-mail address from orderSNICertificate/requestorInfo/email element is incorrect.',
+ 2020 => 'Value from orderSNICertificate/requestorInfo/lastName element exceeded 255 characters.',
+ 2021 => 'Value from orderSNICertificate/requestorInfo/phone element exceeded 255 characters.',
+ 2024 => 'Value from orderSNICertificate/requestorInfo/firstName element exceeded 255 characters.',
+ 2025 => 'To order SNI Certificate use orderSNICertificate or modifySNICertificate method.',
+ 2026 => 'Value from orderSNICertificate/requestorInfo/email element exceeded 255 characters.',
+ 2027 => 'At least one modifySNICertificate/serialNumber or modifySNICertificate/X509Cert element has to be present.',
+ 2028 => 'modifySNICertificate/serialNumber element cannot be empty.',
+ 2029 => 'Value from modifySNICertificate/serialNumber element exceeded 64 characters.',
+ 2030 => 'modifySNICertificate/serialNumber element has to be In HEX form.',
+ 2031 => 'There is no certificate with provided serial number in modifySNICertificate/serialNumber element.',
+ 2032 => 'Only SNI certificates can be modified.',
+ 2033 => 'Incorrect certificate form in modifySNICertificate/X509Cert element.',
+ 2034 => 'Certificate is missing in modifySNICertificate/X509Cert element.',
+ 2035 => 'At least one modifySNICertificate/addSerialNumbers/serialNumber attribute is required.',
+ 2036 => 'modifySNICertificate/addSerialNumbers/serialNumber cannot be empty',
+ 2037 => 'Value from modifySNICertificate/addSerialNumbers/serialNumber element exceeded 64 characters.',
+ 2038 => 'modifySNICertificate/addSerialNumbers/serialNumber has to be in HEX form.',
+ 2039 => 'At least one modifySNICertificate/removeSerialNumbers/serialNumber attribute is required.',
+ 2040 => 'modifySNICertificate/removeSerialNumbers/serialNumber cannot be empty.',
+ 2041 => 'Value from modifySNICertificate/removeSerialNumbers/serialNumber element exceeded 64 characters.',
+ 2042 => 'modifySNICertificate/removeSerialNumbers/serialNumber has to be in HEX form.',
+ 2043 => 'Cannot and and remove the same certificate at the same time.',
+ 2044 => 'Cannot add certificate. Certificate not found.',
+ 2045 => 'Cannot add SNI certificate to be part of another SNI certificate.',
+ 2046 => 'Cannot add certificate that already is a part of SNI certificate.',
+ 2047 => 'Cannot remove certificate that is NOT a part of SNI certificate.',
+ 2048 => 'Resultant certificate contains no domains.',
+ 2049 => 'verifyOrderParameters/note not found or empty.',
+ 2050 => 'Value from verifyOrderParameters/note element exceeded 227 characters.',
+ 2051 => 'Incorrect value in CommonName field.',
+ 2052 => 'getExpiringCertificates/validityDaysLeft element not found or has incorrect value.',
+ 2053 => 'cancelParameters element not found.',
+ 2054 => 'changeApprovers/Approver element not found.',
+ 2055 => 'orderID element not found.',
+ 2056 => 'Order status don’t allow to add notes.',
+ 2057 => 'Value from toDate element cannot be emalier then value from fromDate element.',
+ 2058 => 'Attribute Locality or StateOfProvince not found.',
+ 2059 => 'Incorrect value in verificationNotificationEnabled element.',
+ 2061 => 'Incorrect value in renewCertificate/approvers/verificationNotificationEnabled element.',
+ 2063 => 'verifyOrder/verifyOrderParameters/documents/dokument element not found.',
+ 2064 => 'verifyOrder/verifyOrderParameters/documents/document/type element not found.',
+ 2065 => 'verifyOrder/verifyOrderParameters/documents/document/description element not found.',
+ 2066 => 'verifyOrder/verifyOrderParameters/documents/document/files element not found.',
+ 2067 => 'verifyOrder/verifyOrderParameters/documents/document/files/file element not found.',
+ 2068 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/filename element not found.',
+ 2069 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/content element not found.',
+ 2070 => 'verifyOrder/verifyOrderParameters/documents/document/files/file/content element should be in base64 form.',
+ 2080 => 'Request size limit has been exceeded.',
+ 2081 => 'fileName element cannot contain following characters: \ / : * ? " < > |',
+ 2082 => 'Value in fileName element has incorrect length. Allowed length are from 3 to 255 characters.',
+ 2083 => 'Incorrect type of document.',
+ 2085 => 'One of file in verifyOrder/verifyOrderParameters/documents/document/files/file element exceeded allowed size limit (30MB).',
+ 2088 => 'Part of domain name in SANEntries/SANEntry/DNSName element exceeded the number of characters allowed.',
+ 2089 => 'Algorithm is not configured.',
+ 2090 => 'There is an invalid value in hashAlgorithm element.',
+ 2091 => 'Invalid value in in element getProductList/HashAlgorithm.',
+ 2093 => 'Certificate date is from past.',
+ 2094 => 'The certificate does not meet the reissue conditions.',
+ 2095 => 'Element SANEntries/SANEntry/DNSName can not be empty.',
+ 2096 => 'Element serialNumber must be a hex string.',
+ 2097 => 'The ReissueCertificate/CSR element is not a valid CSR request.',
+ 2104 => 'The key compromising date may be specified only for the reason of cancellation of Key compromise.',
+ 2109 => 'Invalid key length.',
+ 2121 => 'The value from quickOrder/organizationInfo/verificationPhoneNumber element exceeded the acceptable size of 255 characters.',
+ 2122 => 'Reissue for products on SimplySign are unavailable.',
+ 2124 => 'Unsupported hash algorithm.',
+ 2125 => 'Incorrect signature in CSR.',
+ 2126 => 'Certificate reissue is not possible. Cannot reissue the same certificate again.',
+ 2127 => 'Incorrect value in certificateDetails element.',
+ 2128 => 'Incorrect value in certificateOrder element.',
+ 2129 => 'Incorrect value in orderStatus element.',
+ 2130 => 'Element SANEntries/SANEntry/DNSName contains domain existing already in issued certificate.',
+ 2131 => 'Certification request not found.',
+ 2137 => 'Incorrect value in businessCategory element.',
+ 2138 => 'Attribute businessCategory not found.',
+ 2139 => 'StreetAddress attribute not found.',
+ 2140 => 'Attribute streetAddress (ST) exceeded 64 characters.',
+ 2141 => 'Attribute streetAddress (ST) has to be UTF8String encoded. ',
+ 2142 => 'PostalCode attribute not found.',
+ 2143 => 'Attribute postalCode (P) exceeded 40 characters.',
+ 2144 => 'Attribute postalCode (P) has to be PrintableString.',
+ 2153 => 'Order with given number was not requested via API.',
+ 2154 => 'Incorrect value in postalCode (P) element.',
+ 2155 => 'Incorrect value in Jurisdiction of Incorporation State or Province Name JoISoPN element.',
+ 2156 => 'Incorrect value in stateOrProvinceName (SP).',
+ 2157 => 'Element approverMethod not found.',
+ 2158 => 'Too many elements. Only one approverEmail or approverEmailPrefix can be used.',
+ 2159 => 'Required approverEmailPrefix element not found.',
+ 2160 => 'Required approverEmail element not found.',
+ 2161 => 'VerifyDomain method does not support multidomain requests.',
+ 2162 => 'Element SANApprover not found.',
+ 2163 => 'The method does not support this product.',
+ 2164 => 'SerialNumber attribute is invalid.',
+ 2165 => 'Joiln attribute is invalid.',
+ 2166 => 'Locality attribute is invalid.',
+ 2167 => 'OrganizationUnit attribute is invalid.',
+ 2168 => 'Organization attribute is invalid.',
+ 2169 => 'StreetAddress attribute is invalid.',
+ 2170 => 'The value of Description element exceeded the acceptable size of 1000 characters.',
+ 2171 => 'Verification method not supported for IP address.',
+ 2172 => 'Revocation e-mail is the same as login.',
+ 2173 => 'The value of orderParameters/revocationContactEmail is invalid.',
+ 2175 => 'Attribute UnstructuredName or UnstructuredAddress has not been found.',
+ 2176 => 'Attribute UnstructuredName and UnstructuredAddress cannot be set together.',
+ 2177 => 'Attribute UnstructuredName is not PrintableString.',
+ 2178 => 'Attribute UnstructuredAddress is not PrintableString.',
+ 2179 => 'UnstructuredName attribute exceeded the acceptable size of 64 characters.',
+ 2180 => 'UnstructuredAddress attribute exceeded the acceptable size of 64 characters.',
+ 2181 => 'Attribute UnstructuredName is not valid domain name.',
+ 2182 => 'Attribute UnstructuredAddress is not valid IP address.',
+ 2183 => 'Attribute Description is not UTF8String.',
+ 2184 => 'Description attribute exceeded the acceptable size of 255 characters.',
+ 2185 => 'Date in shortenedValidityPeriod or ValidityPeriod/NotAfter is from the past',
+ 2186 => 'The verification method is not supported for orders with Wildcard domains.',
+ 2187 => 'Deprecated field ValidityPeriod in the request. To shorten the certificate validity period, use shortenedValidityPeriod.',
+ 2188 => 'Reissue request requires re-verification of domains. Due to regulatory changes on verification methods, the existing verifications cannot be reused.'
+ ),
+ 'pl' => array(
+ 1000 => 'Długość klucza publicznego z CSR-a jest zbyt krótka.',
+ 1001 => 'Algorytm klucza publicznego z CSR-a nie jest obsługiwany.',
+ 1002 => 'Element orderParameters/CSR nie został odnaleziony lub jest pusty.',
+ 1006 => 'Element productCode zawiera kod produktu wycofanego z oferty.',
+ 1007 => 'Element quickOrder/SANEntries nie został odnaleziony.',
+ 1008 => 'Element quickOrder/SANEntries/SANEntry/DNSName zawiera błędną nazwę domeny.',
+ 1009 => 'Element quickOrder/requestorInfo nie został odnaleziony.',
+ 1010 => 'Element quickOrder/orderParameters nie został odnaleziony.',
+ 1011 => 'Element quickOrder/orderParameters/orderId nie został odnaleziony.',
+ 1012 => 'Numer zamówienia jest już zajęty.',
+ 1013 => 'Niepoprawny numer zamówienia.',
+ 1014 => 'Element quickOrder/orderParameters/productCode nie został odnaleziony.',
+ 1015 => 'Atrybut CommonName nie został znaleziony.',
+ 1016 => 'Atrybut Organization nie został znaleziony.',
+ 1019 => 'Atrybut State z CSR-a nie został znaleziony.',
+ 1020 => 'Atrybut Country nie został znaleziony.',
+ 1021 => 'Atrybut EmailAddress nie został znaleziony.',
+ 1022 => 'Atrybut EmailAddress zawiera błędy.',
+ 1023 => 'Wartość element orderParameters/customer nie może być taka sam jak wartość z elementu requestHeader/authToken/userName.',
+ 1024 => 'Atrybut CommonName musi być zakodowany jako UTF8String.',
+ 1025 => 'Atrybut EmailAddress musi być zakodowany jako IA5String.',
+ 1026 => 'Atrybut Country musi być zakodowany jako PrintableString.',
+ 1027 => 'Atrybut State musi być zakodowany jako UTF8String.',
+ 1028 => 'Atrybut Locality musi być zakodowany jako UTF8String.',
+ 1029 => 'Atrybut OrganizationUnit musi być zakodowany jako UTF8String.',
+ 1030 => 'Atrybut Organization musi być zakodowany jako UTF8String.',
+ 1031 => 'Atrybut CommonName musi być zakodowany jako PrintableString.',
+ 1032 => 'Klucz publiczny z CSR-a został już wykorzystany.',
+ 1033 => 'Zamówienie o podanym numerze nie istnieje.',
+ 1037 => 'Adres e-mail w elemencie approverEmail zawiera błędy.',
+ 1038 => 'Element quickOrder/approvers/Approver/approverEmail nie został odnaleziony.',
+ 1040 => 'Element quickOrder/approvers/Approver/approverMethod nie został odnaleziony.',
+ 1042 => 'Metoda weryfikacji domeny nie jest obsługiwana.',
+ 1043 => 'Identyfikator zamówienia zawiera niedozwolone znaki "&\'<>',
+ 1044 => 'Data wydania certyfikatu jest z przeszłości.',
+ 1045 => 'Domena podana w CommonName nie występuje na liście domen w elemencie SANEntries.',
+ 1046 => 'Tylko jedna domena w elemencie SANEntries może zawierać gwiazdkę w nazwie domeny.',
+ 1048 => 'Brakuje elementu taxIdentificationNumber lub element ma niepoprawną wartość.',
+ 1049 => 'Nie można odczytać klucza publicznego z CSR-a.',
+ 1053 => 'Element requestorInfo/email nie został odnaleziony.',
+ 1054 => 'Element requestorInfo/firstName nie został odnaleziony.',
+ 1055 => 'Element requestorInfo/lastName nie został odnaleziony.',
+ 1059 => 'Atrybut Country nie został znaleziony.',
+ 1060 => 'Adres e-mail z elementu requestorInfo/email nie jest poprawny.',
+ 1063 => 'Klucz publiczny z CSR-a znajduje się na czarnej liście.',
+ 1065 => 'Wartość z elementu requestorInfo/lastName przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1066 => 'Wartość z elementu requestorInfo/phone przekroczyła dopuszczalny rozmiar 32 znaków.',
+ 1069 => 'Data ważności certyfikatu podana w elemencie shortenedValidityPeriod przekracza dopuszczalny czas ważności certyfikatu dla żądanego produktu.',
+ 1070 => 'Brakuje elementu orderParameters/validityPeriod/notBefore.',
+ 1071 => 'Brakuje elementu orderParameters/validityPeriod/notAfter.',
+ 1072 => 'Wartość z elementu requestorInfo/firstName przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1075 => 'Partner nie ma uprawnień, aby złożyć zamówienia na dany produkt.',
+ 1076 => 'Brakuje elementu customer lub jest on pusty.',
+ 1077 => 'Wartość z elementu customer przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 1078 => 'Element orderParameters/CSR nie jest poprawnym żądaniem CSR.',
+ 1079 => 'Wartość z elementu orderId przekroczyła dopuszczalny rozmiar 50 znaków.',
+ 1080 => 'Wartość z elementu productCode przekroczyła dopuszczalny rozmiar 3 znaków.',
+ 1081 => 'Wartość z elementu requestorInfo/email przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1083 => 'Wartość z elementu taxIdentificationNumber przekroczyła dopuszczalny rozmiar 32 znaków.',
+ 1084 => 'Wartość z elementu requestHeader/authToken/userName przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1085 => 'Wartość z elementu SANEntries/SANEntry/DNSName przekroczyła dopuszczalny rozmiar znaków.',
+ 1087 => 'Adres e-mail w elemencie approverEmail przekroczył dopuszczalny rozmiar 255 znaków.',
+ 1088 => 'Wartość z elementu orderParameters/language przekroczyła dopuszczalny rozmiar 2 znaków.',
+ 1089 => 'Wartość z elementu orderParameters/userAgent przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1090 => 'Wartość z elementu requestHeader/authToken/password przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1092 => 'Atrybut JoISoPN nie został znaleziony.',
+ 1093 => 'Atrybut JoISoCN nie został znaleziony.',
+ 1094 => 'Atrybut JoILN nie został znaleziony.',
+ 1095 => 'Atrybut SerialNumber nie został znaleziony.',
+ 1096 => 'Wartość atrybutu JoISoCN przekroczyła dopuszczalny rozmiar 2 znaków.',
+ 1097 => 'Wartość atrybutu JoISoPN przekroczyła dopuszczalny rozmiar 128 znaków.',
+ 1098 => 'Wartość atrybutu JoILN przekroczyła dopuszczalny rozmiar 128 znaków.',
+ 1099 => 'Wartość atrybutu JoISoCN zawiera nie obsługiwany kod kraju.',
+ 1100 => 'Wartość atrybutu SerialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 1101 => 'Wartość atrybutu CommonName przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 1102 => 'Wartość atrybutu Organization przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1103 => 'Wartość atrybutu OrganizationalUnit przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 1104 => 'Wartość atrybutu Locality przekroczyła dopuszczalny rozmiar 128 znaków.',
+ 1105 => 'Wartość atrybutu State przekroczyła dopuszczalny rozmiar 128 znaków.',
+ 1106 => 'Wartość atrybutu EmailAddress przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1107 => 'Ilość domen podanych w elemencie SANEntries przekroczyła dopuszczalną ilość domen dla produktu.',
+ 1108 => 'Wartość z elementu approverEmailPrefix nie pasuje do listy prefixów.',
+ 1109 => 'Data podana w elemencie orderParameters/validityPeriod/notBefore jest większa niż data z elementu orderParameters/validityPeriod/notAfter.',
+ 1110 => 'Data podana w elemencie fromDate jest błędna.',
+ 1111 => 'Data podana w elemencie toDate jest błędna.',
+ 1113 => 'Status zamówienia uniemożliwia wysłanie weryfikacji email. Zamówienie jest w trakcie realizacji lub zostało anulowane. Dla podanego zamówienia certyfikat jest w trakcie wydania lub został już wydany. Maile weryfikacyjne nie zostały wysłane.',
+ 1114 => 'Dla podanego zamówienia wszystkie weryfikacje są jeszcze aktualne. Maile weryfikacyjne nie zostały wysłane.',
+ 1115 => 'Element SANEntries/SANEntry/DNSName zawiera domenę typu Wildcard, która nie jest dozwolona dla wybranego produktu.',
+ 1116 => 'CommonName zawiera domenę typu Wildcard, która nie jest dozwolona dla wybranego produktu.',
+ 1117 => 'CommonName nie zawiera domeny typu Wildcard, która jest wymagana dla tego produktu.',
+ 1118 => 'Element SANEntries/SANEntry/DNSName nie zawiera domeny typu Wildcard, która jest wymagana dla tego produktu.',
+ 1119 => 'Wartość atrybutu Country z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1120 => 'Wartość atrybutu Organization z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1121 => 'Wartość atrybutu OrganizationUnit z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1122 => 'Wartość atrybutu Locality z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1123 => 'Wartość atrybutu State z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1124 => 'Wartość atrybutu CommonName z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1125 => 'Wartość atrybutu EmailAddress z CSR jest niezgodna z dopuszczalnymi wartościami dla wniosków wystawianych automatycznie.',
+ 1126 => 'Atrybut SerialNumber musi być zakodowany jako UTF8String.',
+ 1127 => 'Atrybut JoILN musi być zakodowany jako UTF8String.',
+ 1128 => 'Atrybut JoISoCN musi być zakodowany jako PrintableString.',
+ 1129 => 'Atrybut JoISoPN musi być zakodowany jako UTF8String.',
+ 1131 => 'Element revokeCertificate/RevokeCertificateParameters nie został odnaleziony.',
+ 1132 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber nie został odnaleziony.',
+ 1133 => 'Brak certyfikatu o podanym numerze seryjnym.',
+ 1134 => 'Wartość elementu revokeCertificate/RevokeCertificateParameters/serialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 1135 => 'Nieprawidłowa wartość elementu revokeCertificate/RevokeCertificateParameters/revocationReason',
+ 1136 => 'Do zamówienia został wydany certyfikat który ma status "ważny" lub dopiero uzyska status "ważny". Aby anulować zamówienie proszę unieważnić certyfikat.',
+ 1137 => 'Certyfikat do podanego numeru zamówienia już wygasł. Anulowanie wniosku nie jest możliwe.',
+ 1138 => 'Operacja nie może być wykonana. Skontaktuj się z CERTUM.',
+ 1139 => 'Status wniosku nie pozwala na jego odrzucenie. Jeśli błąd będzie się powtarzał skontaktuj się z CERTUM.',
+ 1140 => 'Data podana w elemencie keyCompromitationDate musi być w formacie YYYY-MM-DD.',
+ 1141 => 'Data podana w elemencie keyCompromitationDate musi zawierać się w przedziale pomiędzy datą początku ważności certyfikatu, a bieżącą datą.',
+ 1142 => 'Wartość elementu revokeCertificate/RevokeCertificateParameters/note przekroczyła dopuszczalny rozmiar 250 znaków.',
+ 1143 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat jest w trakcie unieważniania.',
+ 1144 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat wygasł.',
+ 1145 => 'Nie można unieważnić certyfikatu, ponieważ certyfikat został już unieważniony.',
+ 1146 => 'Element revokeCertificate/RevokeCertificateParameters/serialNumber musi być w postaci szesnastkowej.',
+ 1147 => 'Brak jednego lub więcej elementów approvers/Approver odpowiadających domenie z SANEntries/SANEntry/DNSName.',
+ 1148 => 'Nie można złożyć wniosku na lokalny adres IP.',
+ 1150 => 'Długość klucza publicznego z CSR-a jest zbyt długa.',
+ 1151 => 'Zamówienie zostało już anulowane.',
+ 1152 => 'Element quickOrder/approvers/Approver/approverMethod nie został odnaleziony.',
+ 1153 => 'Numer strony musi być z zakresu [1 - 100].',
+ 1154 => 'Zapytanie zwróciło zbyt dużą liczbę rekordów.',
+ 1155 => 'Strona z wynikami o podanym numerze nie istnieje.',
+ 1156 => 'Pole customer w orderParameters posiada niedozwolone znaki "&\'<>.',
+ 1157 => 'Element quickOrder/SANEntries/SANEntry/DNSName zawiera publiczną domenę najwyższego poziomu.',
+ 1159 => 'Certyfikat nie został odnaleziony.',
+ 1160 => 'Nie podano numeru seryjnego certyfikatu.',
+ 1161 => 'Numer seryjny certyfikatu jest za długi (przekroczono dopuszczalny rozmiar 64 znaków).',
+ 1162 => 'Wymagane parametry nie zostały podane w żądaniu (numer seryjny certyfikatu lub numer zamówienia).',
+ 1163 => 'W żądaniu podano parametry które nie mogą występować jednocześnie (numer seryjny certyfikatu i numer zamówienia).',
+ 1164 => 'Niepoprawna liczba parametrów identyfikujących certyfikat. Podany powinien być numer seryjny certyfikatu lub certyfikat w postaci PEM.',
+ 1165 => 'Niepoprawny format PEM.',
+ 1166 => 'Podany kod produktu nie jest kodem na odnowienie.',
+ 1167 => 'Profil certyfikatu do odnowienia różni się od profilu certyfikatu odnawianego.',
+ 1168 => 'CN certyfikatu różni się od CN certyfikatu odnawianego.',
+ 1169 => 'Nazwa użytkownika w odnawianym certyfikacie jest inna niż podana.',
+ 1170 => 'Odnawiany certyfikat został wystawiony przez innego partnera.',
+ 1172 => 'Żądanie zawiera nadmiarowe elementy. Należy zweryfikować poprawność żądania z dokumentacją.',
+ 1176 => 'Status zamówienia uniemożliwia wysłanie weryfikacji domeny. Zamówienie jest w trakcie realizacji lub zostało anulowane. Dla podanego zamówienia certyfikat został już wydany. Wprowadzenie zmian nie jest możliwe.',
+ 1181 => 'Podany kod produktu, nie jest kodem na wydanie certyfikatu.',
+ 1182 => 'Element verifyDomain/code nie został znaleziony.',
+ 1183 => 'Wartość z elementu verifyDomain/code przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 1184 => 'Kod weryfikacji domeny już wygasł.',
+ 1186 => 'Kod weryfikacyjny jest niepoprawny.',
+ 1191 => 'Okres ważności przekracza maksymalny okres ważności wybranego produktu.',
+ 1194 => 'Element orderSNICertificate/orderSNIParameters/CSR nie został odnaleziony lub jest pusty.',
+ 1195 => 'Element orderSNICertificate/orderSNIParameters/CSR nie jest poprawnym żądaniem CSR.',
+ 1196 => 'Wartość z elementu orderSNICertificate/orderSNIParameters/language przekroczyła dopuszczalny rozmiar 2 znaków.',
+ 1197 => 'Element orderSNICertificate/orderSNIParameters nie został odnaleziony.',
+ 1198 => 'Element orderSNICertificate/serialNumbers nie został odnaleziony.',
+ 1199 => 'Podanie przynajmniej jednego z atrybutów orderSNICertificate/serialNumbers/serialNumber jest wymagane.',
+ 2000 => 'Element orderSNICertificate/serialNumbers/serialNumber nie może być pusty.',
+ 2001 => 'Wartosc elementu orderSNICertificate/serialNumbers/serialNumber przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 2002 => 'Element orderSNICertificate/serialNumbers/serialNumber musi byc w postaci szesnastkowej.',
+ 2003 => 'Certyfikat o podanym numerze seryjnym wygasł lub został unieważniony.',
+ 2004 => 'Certyfikat SNI nie może zawierać innego cerrtyfikatu SNI.',
+ 2005 => 'Żaden z podanych certyfikatów nie zawiera domen.',
+ 2006 => 'Element orderSNICertificate/requestorInfo nie został odnaleziony.',
+ 2010 => 'Element orderSNICertificate/requestorInfo/email nie został odnaleziony.',
+ 2011 => 'Element orderSNICertificate/requestorInfo/firstName nie został odnaleziony.',
+ 2012 => 'Element orderSNICertificate/requestorInfo/lastName nie został odnaleziony.',
+ 2013 => 'Element orderSNICertificate/requestorInfo/phone nie został odnaleziony.',
+ 2016 => 'Adres e-mail z elementu orderSNICertificate/requestorInfo/email nie jest poprawny.',
+ 2020 => 'Wartość z elementu orderSNICertificate/requestorInfo/lastName przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2021 => 'Wartość z elementu orderSNICertificate/requestorInfo/phone przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2024 => 'Wartość z elementu orderSNICertificate/requestorInfo/firstName przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2025 => 'W celu złożenia zamówienia na produkt SNI Certificate należy użyć metody orderSNICertificate, modifySNICertificate',
+ 2026 => 'Wartość z elementu orderSNICertificate/requestorInfo/email przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2027 => 'Niepoprawna liczba parametrów identyfikujących certyfikat. Podany powinien być modifySNICertificate/serialNumber lub modifySNICertificate/X509Cert',
+ 2028 => 'Element modifySNICertificate/serialNumber nie może być pusty.',
+ 2029 => 'Wartosc elementu modifySNICertificate/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
+ 2030 => 'Element modifySNICertificate/serialNumber musi byc w postaci szesnastkowej.',
+ 2031 => 'Brak certyfikatu o numerze seryjnym podanym w elemencie modifySNICertificate/serialNumber.',
+ 2032 => 'Modyfikowany certyfikat musi być certyfikatem SNI.',
+ 2033 => 'Niepoprawny format PEM certyfikatu w elemencie modifySNICertificate/X509Cert.',
+ 2034 => 'Brak certyfikatu podanego w elemencie modifySNICertificate/X509Cert.',
+ 2035 => 'Podanie przynajmniej jednego z atrybutów modifySNICertificate/addSerialNumbers/serialNumber jest wymagane.',
+ 2036 => 'Element modifySNICertificate/addSerialNumbers/serialNumber nie może być pusty.',
+ 2037 => 'Wartosc elementu modifySNICertificate/addSerialNumbers/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
+ 2038 => 'Element modifySNICertificate/addSerialNumbers/serialNumber musi byc w postaci szesnastkowej.',
+ 2039 => 'Podanie przynajmniej jednego z atrybutów modifySNICertificate/removeSerialNumbers/serialNumber jest wymagane.',
+ 2040 => 'Element modifySNICertificate/removeSerialNumbers/serialNumber nie może być pusty.',
+ 2041 => 'Wartosc elementu modifySNICertificate/removeSerialNumbers/serialNumber przekroczyla dopuszczalny rozmiar 64 znakow.',
+ 2042 => 'Element modifySNICertificate/removeSerialNumbers/serialNumber musi byc w postaci szesnastkowej.',
+ 2043 => 'Nie można dodawać i usuwać tego samego certyfikatu.',
+ 2044 => 'Nie można dodać certyfikatu. Certyfikat nie został znaleziony.',
+ 2045 => 'Nie można dodać certyfikatu będącego certyfikatem SNI.',
+ 2046 => 'Nie można dodać certyfikatu, który już wchodzi w skład certyfikatu SNI.',
+ 2047 => 'Nie można usunąć certyfikatu, który nie wchodzi w skład certyfikatu SNI.',
+ 2048 => 'Wynikowy certyfikat nie zawiera domen.',
+ 2049 => 'Element verifyOrder/verifyOrderParameters/note nie został znaleziony lub jest pusty.',
+ 2050 => 'Wartość elementu verifyOrderParameters/note przekroczyła dopuszczalny rozmiar 227 znaków.',
+ 2051 => 'Niepoprawna wartość w polu CommonName.',
+ 2052 => 'Element getExpiringCertificates/validityDaysLeft nie został znaleziony lub ma niepoprawną wartość',
+ 2053 => 'Element cancelParameters nie został odnaleziony.',
+ 2054 => 'Element changeApprovers/Approver nie został odnaleziony.',
+ 2055 => 'Element orderID nie został odnaleziony.',
+ 2056 => 'Status zamówienia nie pozwala na dodanie notatki.',
+ 2057 => 'Wartość elementu toDate nie może być wcześniejsza od wartości elementu fromDate.',
+ 2058 => 'Atrybut Locality lub StateOfProvince nie został znaleziony.',
+ 2059 => 'Niepoprawna wartość w elemencie verificationNotificationEnabled',
+ 2061 => 'Niepoprawna wartość w elemencie renewCertificate/approvers/verificationNotificationEnabled',
+ 2063 => 'Element verifyOrder/verifyOrderParameters/documents/document nie został odnaleziony.',
+ 2064 => 'Element verifyOrder/verifyOrderParameters/documents/document/type nie został odnaleziony.',
+ 2065 => 'Element verifyOrder/verifyOrderParameters/documents/document/description nie został odnaleziony.',
+ 2066 => 'Element verifyOrder/verifyOrderParameters/documents/document/files nie został odnaleziony.',
+ 2067 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file nie został odnaleziony.',
+ 2068 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/filename nie został odnaleziony.',
+ 2069 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/content nie został odnaleziony.',
+ 2070 => 'Element verifyOrder/verifyOrderParameters/documents/document/files/file/content powinien być w base64.',
+ 2080 => 'Przekroczono dopuszczalny rozmiar dla żądania.',
+ 2081 => 'Element fileName nie może zawierać znaków: \ / : * ? " < > |',
+ 2082 => 'Wartość elementu fileName ma nieprawidłową długość. Dopuszczalna długość: od 3 do 255 znaków.',
+ 2083 => 'Typ dokumentu nie jest obsługiwany.',
+ 2085 => 'Jeden z plików w elemencie verifyOrder/verifyOrderParameters/documents/document/files/file przekroczył dopuszczalny rozmiar (30MB).',
+ 2088 => 'Długość części domeny z elementu SANEntries/SANEntry/DNSName przekroczyła dopuszczalny rozmiar znaków.',
+ 2089 => 'Algorytm nie jest skonfigurowany.',
+ 2090 => 'W elemencie hashAlgorithm znajduje się niepoprawna wartość.',
+ 2091 => 'Niepoprawna wartość w elemencie getProductList/HashAlgorithm.',
+ 2093 => 'Data ważności certyfikatu jest z przeszłości.',
+ 2094 => 'Certyfikat nie spełnia warunków reissue.',
+ 2095 => 'Element SANEntries/SANEntry/DNSName nie może być pusty.',
+ 2096 => 'Element serialNumber musi być w postaci szesnastkowej.',
+ 2097 => 'Element reissueCertificate/CSR nie jest poprawnym żądaniem CSR.',
+ 2104 => 'Data kompromitacji klucza może być podana jedynie dla przyczyny unieważnienia Kompromitacja klucza.',
+ 2109 => 'Niedozwolona długość klucza publicznego.',
+ 2121 => 'Wartość z elementu quickOrder/organizationInfo/verificationPhoneNumber przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2122 => 'Reissue dla produktów SimplySign jest niedostępny.',
+ 2124 => 'Nieobsługiwana funkcja skrótu.',
+ 2125 => 'CSR zawiera niepoprawny podpis.',
+ 2126 => 'Nie można wydać ponownie certyfikatu reissue dla tego samego certyfikatu.',
+ 2127 => 'Niepoprawna wartość w elemencie certificateDetails.',
+ 2128 => 'Niepoprawna wartość w elemencie orderDetails.',
+ 2129 => 'Niepoprawna wartość w elemencie order Status.',
+ 2130 => 'Element SANEntries/SANEntry/DNSName zawiera domenę istniejącą w wydanym certyfikacie.',
+ 2131 => 'Nie znaleziono zamówienia w bazie.',
+ 2137 => 'Niepoprawna wartość atrybutu businessCategory (BC).',
+ 2138 => 'Nie znaleziono atrybutu businessCategory (BC).',
+ 2139 => 'Atrybut StreetAddress nie został znaleziony.',
+ 2140 => 'Wartość atrybutu streetAddress (ST) przekroczyła 64 znaki.',
+ 2141 => 'Atrybut streetAddress (ST) musi być zakodowany jako UTF8String.',
+ 2142 => 'Atrybut PostalCode nie został znaleziony.',
+ 2143 => 'Wartość atrybutu postalCode (P) przekroczyła 40 znaków.',
+ 2144 => 'Wartość atrybutu postalCode (P) musi być typu PrintableString.',
+ 2153 => 'Zamówienie o podanym numerze nie zostało złożone przez API.',
+ 2154 => 'Niepoprawna wartość atrybutu postalCode (P).',
+ 2155 => 'Niepoprawna wartość atrybutu Jurisdiction of Incorporation State or Province Name (JoISoPN).',
+ 2156 => 'Niepoprawna wartość atrybutu stateOrProvinceName (SP).',
+ 2157 => 'Brakuje elementu approverMethod.',
+ 2158 => 'Zbyt wiele elementów. Można podać tylko jeden approverEmail lub approverEmailPrefix.',
+ 2159 => 'Wymagany element approverEmailPrefix nie został podany',
+ 2160 => 'Wymagany element approverEmail nie został podany.',
+ 2161 => 'VerifyDomain nie obsługuje wniosków multidomenowych.',
+ 2162 => 'Element SANApprover nie został odnaleziony.',
+ 2163 => 'Metoda nie obsługuje podanego typu produktu.',
+ 2164 => 'Atrybut SerialNumber poiada niepoprawną wartość.',
+ 2165 => 'Atrybut Joiln posiada nieproprawną wratość.',
+ 2166 => 'Atrybut Locality posiada niepoprawną wartość.',
+ 2167 => 'Atrybut OrganizationUnit posiada niepoprawną wartość.',
+ 2168 => 'Atrybut Organization posiada niepoprawną wartość',
+ 2169 => 'Atrybut streetAddress posiada niepoprawną wartość.',
+ 2170 => 'Atrybut Description ma nieprawidłową długość. Dopuszczalna długość: do 1000 znaków.',
+ 2171 => 'Metoda weryfikacji nie jest wspierana dla adresu IP.',
+ 2172 => 'E-mail kontaktowy o unieważnieniu jest taki sam jak login.',
+ 2173 => 'Wartość elementu orderParameters/revocationContactEmail jest nieprawidłowa.',
+ 2175 => 'Atrybut UnstructuredName lub UnstructuredAddress nie został znaleziony.',
+ 2176 => 'Atrybut UnstructuredName i UnstructuredAddress nie może występować razem.',
+ 2177 => 'Atrybut UnstructuredName musi być zakodowany jako PrintableString.',
+ 2178 => 'Atrybut UnstructuredAddress musi być zakodowany jako PrintableString.',
+ 2179 => 'Wartość atrybutu UnstructuredName przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 2180 => 'Wartość atrybutu UnstructuredAddress przekroczyła dopuszczalny rozmiar 64 znaków.',
+ 2181 => 'Atrybut UnstructuredName nie jest prawidłową nazwą domeny.',
+ 2182 => 'Atrybut UnstructuredAddress nie jest prawidłowym adresem IP.',
+ 2183 => 'Atrybut Description musi być zakodowany jako UTF8String.',
+ 2184 => 'Wartość atrybutu Description przekroczyła dopuszczalny rozmiar 255 znaków.',
+ 2185 => 'Data podana w shortenedValidityPeriod lub ValidityPeriod/NotAfter jest z przeszłości.',
+ 2186 => 'Metoda weryfikacji nie jest obsługiwana dla dla zamówień zawierających domenę Wildcard.',
+ 2187 => 'W żądaniu podano przestarzałe pole ValidityPeriod. Aby skrócić okres ważności certyfikatu należy użyć shortenedValidityPeriod.',
+ 2188 => 'Wniosek reissue wymaga ponownej weryfikacji domen. W związku ze zmianami w w regulacjach dotyczących metod weryfikacji, istniejące weryfikacje nie mogą być ponownie wykorzystane.'
+ )
+ );
+
+ /**
+ * Returns an array with descriptions of errors that have occured.
+ *
+ * The returned array is an array of arrays containing the following keys:
+ * code, number, text, where code is a success code, number is a error
+ * number and text is a description of an error.
+ *
+ * @param string $lang
+ * @param int $status
+ * @param array $errors
+ * @return array
+ */
+ public function getText($lang, $status, $errors)
+ {
+ $texts = array();
+ if (empty($errors)) {
+ $t = isset($this->texts_status[$lang][$status]) ?
+ $this->texts_status[$lang][$status] : '';
+ $texts[] = array(
+ 'code' => $status,
+ 'number' => null,
+ 'text' => $t
+ );
+ } else {
+ foreach ($errors as $e) {
+ $t = isset($this->texts_error[$lang][$e->errorCode]) ?
+ $this->texts_error[$lang][$e->errorCode] : '';
+ $v = empty($e->value) ? '' : ' [' . $e->value . ']';
+ $texts[] = array(
+ 'code' => $status,
+ 'number' => $e->errorCode,
+ 'text' => $t . $v
+ );
+ }
+ }
+ return $texts;
+ }
+}
diff --git a/src/exceptions/exceptions.php b/src/Exceptions/exceptions.php
similarity index 91%
rename from src/exceptions/exceptions.php
rename to src/Exceptions/exceptions.php
index 0b69c37..8346c34 100644
--- a/src/exceptions/exceptions.php
+++ b/src/Exceptions/exceptions.php
@@ -1,21 +1,21 @@
-parts = $this->initParts();
- }
-
- /**
- * This method returns initial data for a message's parts.
- *
- * This method must be redefined in overriding classes and return an array
- * containing all parts of a message. The array keys are names of parts
- * and the array values are objects of type according to the WSDL file.
- * The objects must derive from the PartnerAPIType class.
- * Example:
- * array(
- * 'partName' => PartnerAPITypeSomeType()
- * )
- *
- * @return array A set of a message's parts
- */
- abstract protected function initParts();
-
- /**
- * Sets the credentials data.
- *
- * Every request message have to contain credentials data so that
- * the request could be authenticated. This method can be used to set
- * the credentials.
- * An exception of the type PartnerAPIException can be raised when
- * the part with credentials data defined in a derived class does not exist.
- *
- * @param string $userName A user name
- * @param string $password A password
- * @return PartnerAPIMessage
- * @throws PartnerAPIException
- */
- public function setCredentials($userName, $password)
- {
- if (!is_null($this->partWithCredentials)) {
- if (!isset($this->parts[$this->partWithCredentials])) {
- throw new PartnerAPIException("The defined part name with credentials data '" . $this->partWithCredentials . "' does not exists.");
- }
- $element = $this->parts[$this->partWithCredentials];
- $authToken = $element->requestHeader->authToken;
- $authToken->setPassword($password);
- $authToken->setUserName($userName);
- }
- return $this;
- }
-
- /**
- * Returns the responseHeader element from a service's response
- *
- * @return PartnerAPITypeResponseHeader
- */
- public function getResponseHeader()
- {
- $partName = $this->partWithResponseHeader;
- if (is_null($partName)) {
- reset($this->parts);
- $partName = key($this->parts);
- }
- return $this->parts[$partName]->responseHeader;
- }
-
-
- /**
- * Returns an array with all parts and its elements
- *
- * The keys in this array are parts' names and values are arrays with
- * elements belonging to a given part.
- *
- * The argument $omitNullValues tells if elements which value is NULL
- * will be omitted.
- *
- * @param bool $omitNullValues
- * @return array
- */
- public function getDataAsArray($omitNullValues = FALSE)
- {
- $r = array();
- foreach ($this->parts as $e => $p)
- $r[$e] = $p->getDataAsArray($omitNullValues);
- return $r;
- }
-
- /**
- * This method sets values of a message's parts.
- *
- * The structure of the data argument must be the same as the structure of
- * data returned when calling an operation on an object of SoapClient class.
- *
- * This method, although public, is not intended to be called directly.
- * It is rather used internally.
- *
- * @param array $data
- * @return PartnerAPIMessage
- * @throws PartnerAPIException
- */
- public function setData($data)
- {
- if (count($this->parts) == 0) {
- throw new PartnerAPIException("This message does not have any parts defined.");
- }
- foreach ($this->parts as $part)
- $part->setData($data);
- return $this;
- }
-
- /**
- * This is a "magic" method invoked when an inaccessible method is called
- *
- * This method supports one kind of calls:
- * - a getting method which name must be formed like getXxx
- * and the Xxx part of a method's name is a part name.
- *
- * @param string $name A name of invoked method
- * @param array $arguments Unsed argument but required by PHP
- * @return PartnerAPIType Actually it is an object of a type derived from the PartnerAPIType type
- * @throws PartnerAPIException
- */
- public function __call($name, $arguments)
- {
- if (strlen($name) <= 3) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- $methodType = substr($name, 0, 3);
- if (!in_array($methodType, array('get'))) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- $part = $this->findPartName(substr($name, 3));
- if (is_null($part)) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- if ($methodType == 'get')
- return $this->getElement($part);
- throw new PartnerAPIException("An unexpected error occurred.");
- }
-
- /**
- * Gets a part's object.
- *
- * This method is called by "magic" methods.
- * It is not recommended to invoke it directly.
- *
- * It just return an indicated part which is an object of a type derived from
- * PartnerAPIType.
- *
- * @param string $partname A part name
- * @return object An object representing a message's part
- */
- protected function getPart($partname)
- {
- return $this->parts[$partname];
- }
-
- /**
- * This is a "magic" method invoked when an inaccessible property is accessed.
- *
- * The argument $name is an accessed property and it must be a message's part name.
- * If it does not exists an PartnerAPIException exception is raised.
- *
- * @param string $name A part name
- * @return object An object representing a message's part
- * @throws PartnerAPIException
- */
- public function __get($name)
- {
- $part = $this->findPartName($name);
- if (is_null($part)) {
- throw new PartnerAPIException("Invalid property name '$name' for this object.");
- }
- return $this->getPart($part);
- }
-
- /**
- * This method converts a part's name to a proper name.
- *
- * It tries to find if the given part's name exists.
- * It checks the name as it has been given, and with the first letter uppercased and lowercased.
- * If the proper name has been found it is returned, otherwise NULL is returned.
- *
- * It is used by "magic" methods, so it is not so important whether an part's name
- * is given with the first letter uppercased or lowercased. But always try to use it
- * exactly as it is defined in WSDL file.
- *
- * @param string $name A part's name
- * @return string|null A proper part's name or null
- */
- protected function findPartName($name)
- {
- if (isset($this->parts[$name]))
- return $name;
- $name[0] = strtolower($name[0]);
- if (isset($this->parts[$name]))
- return $name;
- $name[0] = strtoupper($name[0]);
- if (isset($this->parts[$name]))
- return $name;
- return NULL;
- }
-
- /**
- * This is a "magic" method triggered by calling isset() or empty() on inaccessible properties.
- *
- * The argument $name is a property name and it must be a message's part name.
- *
- * @param string $name A part name
- * @return bool Indicates if a property exists
- */
- public function __isset($name)
- {
- $part = $this->findPartName($name);
- return is_null($part) !== FALSE;
- }
-}
+parts = $this->initParts();
+ }
+
+ /**
+ * This method returns initial data for a message's parts.
+ *
+ * This method must be redefined in overriding classes and return an array
+ * containing all parts of a message. The array keys are names of parts
+ * and the array values are objects of type according to the WSDL file.
+ * The objects must derive from the PartnerAPIType class.
+ * Example:
+ * array(
+ * 'partName' => PartnerAPITypeSomeType()
+ * )
+ *
+ * @return array A set of a message's parts
+ */
+ abstract protected function initParts();
+
+ /**
+ * Sets the credentials data.
+ *
+ * Every request message have to contain credentials data so that
+ * the request could be authenticated. This method can be used to set
+ * the credentials.
+ * An exception of the type PartnerAPIException can be raised when
+ * the part with credentials data defined in a derived class does not exist.
+ *
+ * @param string $userName A user name
+ * @param string $password A password
+ * @return PartnerAPIMessage
+ * @throws PartnerAPIException
+ */
+ public function setCredentials($userName, $password)
+ {
+ if (!is_null($this->partWithCredentials)) {
+ if (!isset($this->parts[$this->partWithCredentials])) {
+ throw new PartnerAPIException("The defined part name with credentials data '" . $this->partWithCredentials . "' does not exists.");
+ }
+ $element = $this->parts[$this->partWithCredentials];
+ $authToken = $element->requestHeader->authToken;
+ $authToken->setPassword($password);
+ $authToken->setUserName($userName);
+ }
+ return $this;
+ }
+
+ /**
+ * Returns the responseHeader element from a service's response
+ *
+ * @return PartnerAPITypeResponseHeader
+ */
+ public function getResponseHeader()
+ {
+ $partName = $this->partWithResponseHeader;
+ if (is_null($partName)) {
+ reset($this->parts);
+ $partName = key($this->parts);
+ }
+ return $this->parts[$partName]->responseHeader;
+ }
+
+
+ /**
+ * Returns an array with all parts and its elements
+ *
+ * The keys in this array are parts' names and values are arrays with
+ * elements belonging to a given part.
+ *
+ * The argument $omitNullValues tells if elements which value is NULL
+ * will be omitted.
+ *
+ * @param bool $omitNullValues
+ * @return array
+ */
+ public function getDataAsArray($omitNullValues = false)
+ {
+ $r = array();
+ foreach ($this->parts as $e => $p) {
+ $r[$e] = $p->getDataAsArray($omitNullValues);
+ }
+ return $r;
+ }
+
+ /**
+ * This method sets values of a message's parts.
+ *
+ * The structure of the data argument must be the same as the structure of
+ * data returned when calling an operation on an object of SoapClient class.
+ *
+ * This method, although public, is not intended to be called directly.
+ * It is rather used internally.
+ *
+ * @param array $data
+ * @return PartnerAPIMessage
+ * @throws PartnerAPIException
+ */
+ public function setData($data)
+ {
+ if (count($this->parts) == 0) {
+ throw new PartnerAPIException("This message does not have any parts defined.");
+ }
+ foreach ($this->parts as $part) {
+ $part->setData($data);
+ }
+ return $this;
+ }
+
+ /**
+ * This is a "magic" method invoked when an inaccessible method is called
+ *
+ * This method supports one kind of calls:
+ * - a getting method which name must be formed like getXxx
+ * and the Xxx part of a method's name is a part name.
+ *
+ * @param string $name A name of invoked method
+ * @param array $arguments Unsed argument but required by PHP
+ * @return PartnerAPIType Actually it is an object of a type derived from the PartnerAPIType type
+ * @throws PartnerAPIException
+ */
+ public function __call($name, $arguments)
+ {
+ if (strlen($name) <= 3) {
+ throw new PartnerAPIException("Invalid method name '$name' for this object.");
+ }
+ $methodType = substr($name, 0, 3);
+ if (!in_array($methodType, array('get'))) {
+ throw new PartnerAPIException("Invalid method name '$name' for this object.");
+ }
+ $part = $this->findPartName(substr($name, 3));
+ if (is_null($part)) {
+ throw new PartnerAPIException("Invalid method name '$name' for this object.");
+ }
+ if ($methodType == 'get') {
+ return $this->getElement($part);
+ }
+ throw new PartnerAPIException("An unexpected error occurred.");
+ }
+
+ /**
+ * Gets a part's object.
+ *
+ * This method is called by "magic" methods.
+ * It is not recommended to invoke it directly.
+ *
+ * It just return an indicated part which is an object of a type derived from
+ * PartnerAPIType.
+ *
+ * @param string $partname A part name
+ * @return object An object representing a message's part
+ */
+ protected function getPart($partname)
+ {
+ return $this->parts[$partname];
+ }
+
+ /**
+ * This is a "magic" method invoked when an inaccessible property is accessed.
+ *
+ * The argument $name is an accessed property and it must be a message's part name.
+ * If it does not exists an PartnerAPIException exception is raised.
+ *
+ * @param string $name A part name
+ * @return object An object representing a message's part
+ * @throws PartnerAPIException
+ */
+ public function __get($name)
+ {
+ $part = $this->findPartName($name);
+ if (is_null($part)) {
+ throw new PartnerAPIException("Invalid property name '$name' for this object.");
+ }
+ return $this->getPart($part);
+ }
+
+ /**
+ * This method converts a part's name to a proper name.
+ *
+ * It tries to find if the given part's name exists.
+ * It checks the name as it has been given, and with the first letter uppercased and lowercased.
+ * If the proper name has been found it is returned, otherwise NULL is returned.
+ *
+ * It is used by "magic" methods, so it is not so important whether an part's name
+ * is given with the first letter uppercased or lowercased. But always try to use it
+ * exactly as it is defined in WSDL file.
+ *
+ * @param string $name A part's name
+ * @return string|null A proper part's name or null
+ */
+ protected function findPartName($name)
+ {
+ if (isset($this->parts[$name])) {
+ return $name;
+ }
+ $name[0] = strtolower($name[0]);
+ if (isset($this->parts[$name])) {
+ return $name;
+ }
+ $name[0] = strtoupper($name[0]);
+ if (isset($this->parts[$name])) {
+ return $name;
+ }
+ return null;
+ }
+
+ /**
+ * This is a "magic" method triggered by calling isset() or empty() on inaccessible properties.
+ *
+ * The argument $name is a property name and it must be a message's part name.
+ *
+ * @param string $name A part name
+ * @return bool Indicates if a property exists
+ */
+ public function __isset($name)
+ {
+ $part = $this->findPartName($name);
+ return is_null($part) !== false;
+ }
+}
diff --git a/src/messages/messageAddEmailVerification.php b/src/Messages/messageAddEmailVerification.php
similarity index 96%
rename from src/messages/messageAddEmailVerification.php
rename to src/Messages/messageAddEmailVerification.php
index 1891315..87edbaf 100644
--- a/src/messages/messageAddEmailVerification.php
+++ b/src/Messages/messageAddEmailVerification.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_addEmailVerification WSDL message.
- *
- * It has one part 'addEmailVerification' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageAddEmailVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeAddEmailVerificationRequest $addEmailVerification
- * @method PartnerAPITypeAddEmailVerificationRequest getAddEmailVerification()
- *
- * @package messages
- */
-class PartnerAPIMessageAddEmailVerification extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'addEmailVerification';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'addEmailVerification' => new PartnerAPITypeAddEmailVerificationRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_addEmailVerification WSDL message.
+ *
+ * It has one part 'addEmailVerification' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageAddEmailVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeAddEmailVerificationRequest $addEmailVerification
+ * @method PartnerAPITypeAddEmailVerificationRequest getAddEmailVerification()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageAddEmailVerification extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'addEmailVerification';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'addEmailVerification' => new PartnerAPITypeAddEmailVerificationRequest()
+ );
+ }
+}
diff --git a/src/messages/messageAddEmailVerificationResponse.php b/src/Messages/messageAddEmailVerificationResponse.php
similarity index 96%
rename from src/messages/messageAddEmailVerificationResponse.php
rename to src/Messages/messageAddEmailVerificationResponse.php
index 4a52090..ba644b3 100644
--- a/src/messages/messageAddEmailVerificationResponse.php
+++ b/src/Messages/messageAddEmailVerificationResponse.php
@@ -1,47 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_addEmailVerificationResponse WSDL message.
- *
- * It has one part 'addEmailVerificationResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeAddEmailVerificationResponse $addEmailVerificationResponse
- * @method PartnerAPITypeAddEmailVerificationResponse getAddEmailVerificationResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageAddEmailVerificationResponse extends PartnerAPIMessage
-{
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'addEmailVerificationResponse' => new PartnerAPITypeAddEmailVerificationResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_addEmailVerificationResponse WSDL message.
+ *
+ * It has one part 'addEmailVerificationResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeAddEmailVerificationResponse $addEmailVerificationResponse
+ * @method PartnerAPITypeAddEmailVerificationResponse getAddEmailVerificationResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageAddEmailVerificationResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'addEmailVerificationResponse' => new PartnerAPITypeAddEmailVerificationResponse()
+ );
+ }
+}
diff --git a/src/messages/messageAddSanVerification.php b/src/Messages/messageAddSanVerification.php
similarity index 96%
rename from src/messages/messageAddSanVerification.php
rename to src/Messages/messageAddSanVerification.php
index 0bb7721..fbe3492 100644
--- a/src/messages/messageAddSanVerification.php
+++ b/src/Messages/messageAddSanVerification.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_addSanVerification WSDL message.
- *
- * It has one part 'addSanVerification' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageAddSanVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeAddSanVerificationRequest $addSanVerification
- * @method PartnerAPITypeAddSanVerificationRequest getAddSanVerification()
- *
- * @package messages
- */
-class PartnerAPIMessageAddSanVerification extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'addSanVerification';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'addSanVerification' => new PartnerAPITypeAddSanVerificationRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_addSanVerification WSDL message.
+ *
+ * It has one part 'addSanVerification' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageAddSanVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeAddSanVerificationRequest $addSanVerification
+ * @method PartnerAPITypeAddSanVerificationRequest getAddSanVerification()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageAddSanVerification extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'addSanVerification';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'addSanVerification' => new PartnerAPITypeAddSanVerificationRequest()
+ );
+ }
+}
diff --git a/src/messages/messageAddSanVerificationResponse.php b/src/Messages/messageAddSanVerificationResponse.php
similarity index 96%
rename from src/messages/messageAddSanVerificationResponse.php
rename to src/Messages/messageAddSanVerificationResponse.php
index 6b501c0..57db145 100644
--- a/src/messages/messageAddSanVerificationResponse.php
+++ b/src/Messages/messageAddSanVerificationResponse.php
@@ -1,47 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_addSanVerificationResponse WSDL message.
- *
- * It has one part 'addSanVerificationResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeAddSanVerificationResponse $addSanVerificationResponse
- * @method PartnerAPITypeAddSanVerificationResponse getAddSanVerificationResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageAddSanVerificationResponse extends PartnerAPIMessage
-{
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'addSanVerificationResponse' => new PartnerAPITypeAddSanVerificationResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_addSanVerificationResponse WSDL message.
+ *
+ * It has one part 'addSanVerificationResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeAddSanVerificationResponse $addSanVerificationResponse
+ * @method PartnerAPITypeAddSanVerificationResponse getAddSanVerificationResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageAddSanVerificationResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'addSanVerificationResponse' => new PartnerAPITypeAddSanVerificationResponse()
+ );
+ }
+}
diff --git a/src/messages/messageCancelOrder.php b/src/Messages/messageCancelOrder.php
similarity index 90%
rename from src/messages/messageCancelOrder.php
rename to src/Messages/messageCancelOrder.php
index 33f3746..6d842d2 100644
--- a/src/messages/messageCancelOrder.php
+++ b/src/Messages/messageCancelOrder.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_cancelOrder WSDL message.
- *
- * It has one part 'cancelOrder' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageCancelOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeCancelOrderRequest $cancelOrder
- * @method PartnerAPITypeCancelOrderRequest getCancelOrder()
- *
- * @package messages
- */
-class PartnerAPIMessageCancelOrder extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'cancelOrder';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'cancelOrder' => new PartnerAPITypeCancelOrderRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_cancelOrder WSDL message.
+ *
+ * It has one part 'cancelOrder' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageCancelOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeCancelOrderRequest $cancelOrder
+ * @method PartnerAPITypeCancelOrderRequest getCancelOrder()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageCancelOrder extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'cancelOrder';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'cancelOrder' => new PartnerAPITypeCancelOrderRequest()
+ );
+ }
+}
diff --git a/src/messages/messageCancelOrderResponse.php b/src/Messages/messageCancelOrderResponse.php
similarity index 84%
rename from src/messages/messageCancelOrderResponse.php
rename to src/Messages/messageCancelOrderResponse.php
index 9bf5ab5..4ea3750 100644
--- a/src/messages/messageCancelOrderResponse.php
+++ b/src/Messages/messageCancelOrderResponse.php
@@ -1,47 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_cancelOrderResponse WSDL message.
- *
- * It has one part 'cancelOrderResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeCancelOrderReponse $cancelOrderResponse
- * @method PartnerAPITypeCancelOrderReponse getCancelOrderResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageCancelOrderResponse extends PartnerAPIMessage {
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts() {
- return array(
- 'cancelOrderResponse' => new PartnerAPITypeCancelOrderReponse()
- );
- }
-
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_cancelOrderResponse WSDL message.
+ *
+ * It has one part 'cancelOrderResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeCancelOrderReponse $cancelOrderResponse
+ * @method PartnerAPITypeCancelOrderReponse getCancelOrderResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageCancelOrderResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'cancelOrderResponse' => new PartnerAPITypeCancelOrderReponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetCertificate.php b/src/Messages/messageGetCertificate.php
similarity index 89%
rename from src/messages/messageGetCertificate.php
rename to src/Messages/messageGetCertificate.php
index 96c0eda..0c2773e 100644
--- a/src/messages/messageGetCertificate.php
+++ b/src/Messages/messageGetCertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getCertificate WSDL message.
- *
- * It has one part 'getCertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetCertificateRequest $getCertificate
- * @method PartnerAPITypeGetCertificateRequest getGetCertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageGetCertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getCertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getCertificate' => new PartnerAPITypeGetCertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getCertificate WSDL message.
+ *
+ * It has one part 'getCertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetCertificateRequest $getCertificate
+ * @method PartnerAPITypeGetCertificateRequest getGetCertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetCertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getCertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getCertificate' => new PartnerAPITypeGetCertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetCertificateResponse.php b/src/Messages/messageGetCertificateResponse.php
similarity index 88%
rename from src/messages/messageGetCertificateResponse.php
rename to src/Messages/messageGetCertificateResponse.php
index 7dc8f00..201e281 100644
--- a/src/messages/messageGetCertificateResponse.php
+++ b/src/Messages/messageGetCertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getCertificateResponse WSDL message.
- *
- * It has one part 'getCertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetCertificateResponse $getCertificateResponse
- * @method PartnerAPITypeGetCertificateResponse getGetCertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetCertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getCertificateResponse' => new PartnerAPITypeGetCertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getCertificateResponse WSDL message.
+ *
+ * It has one part 'getCertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetCertificateResponse $getCertificateResponse
+ * @method PartnerAPITypeGetCertificateResponse getGetCertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetCertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getCertificateResponse' => new PartnerAPITypeGetCertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetConfiguration.php b/src/Messages/messageGetConfiguration.php
similarity index 93%
rename from src/messages/messageGetConfiguration.php
rename to src/Messages/messageGetConfiguration.php
index 5abebaa..4023b3f 100644
--- a/src/messages/messageGetConfiguration.php
+++ b/src/Messages/messageGetConfiguration.php
@@ -2,7 +2,7 @@
/**
* Partner API Library
- *
+ *
* @copyright Copyright (c) 2015 Unizeto Technologies SA
* @license license.txt
*/
@@ -13,8 +13,8 @@
/*
-
-
+
+
*/
@@ -27,22 +27,21 @@
* @method PartnerAPIMessageGetConfiguration setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
* @property PartnerAPITypeGetConfigurationRequest $getConfiguration
* @method PartnerAPITypeGetConfigurationRequest getGetConfiguration()
- *
+ *
* @package messages
*/
class PartnerAPIMessageGetConfiguration extends PartnerAPIMessage
{
-
/**
* Defines the part with credentials data.
- *
+ *
* @var string
*/
protected $partWithCredentials = 'getConfiguration';
/**
* This method returns initial data for the message's parts.
- *
+ *
* @return array
*/
protected function initParts()
diff --git a/src/messages/messageGetConfigurationResponse.php b/src/Messages/messageGetConfigurationResponse.php
similarity index 91%
rename from src/messages/messageGetConfigurationResponse.php
rename to src/Messages/messageGetConfigurationResponse.php
index 401a37a..916d914 100644
--- a/src/messages/messageGetConfigurationResponse.php
+++ b/src/Messages/messageGetConfigurationResponse.php
@@ -2,7 +2,7 @@
/**
* Partner API Library
- *
+ *
* @copyright Copyright (c) 2015 Unizeto Technologies SA
* @license license.txt
*/
@@ -13,8 +13,8 @@
/*
-
-
+
+
*/
@@ -26,16 +26,14 @@
*
* @property PartnerAPITypeGetConfigurationResponse $getConfigurationResponse
* @method PartnerAPITypeGetConfigurationResponse getGetConfigurationResponse()
- *
+ *
* @package messages
*/
class PartnerAPIMessageGetConfigurationResponse extends PartnerAPIMessage
{
-
-
/**
* This method returns initial data for the message's parts.
- *
+ *
* @return array
*/
protected function initParts()
diff --git a/src/messages/messageGetEmailVerification.php b/src/Messages/messageGetEmailVerification.php
similarity index 89%
rename from src/messages/messageGetEmailVerification.php
rename to src/Messages/messageGetEmailVerification.php
index 32800a1..929ea9f 100644
--- a/src/messages/messageGetEmailVerification.php
+++ b/src/Messages/messageGetEmailVerification.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getEmailVerification WSDL message.
- *
- * It has one part 'getEmailVerification' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetEmailVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetEmailVerificationRequest $getEmailVerification
- * @method PartnerAPITypeGetEmailVerificationRequest getGetEmailVerification()
- *
- * @package messages
- */
-class PartnerAPIMessageGetEmailVerification extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getEmailVerification';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getEmailVerification' => new PartnerAPITypeGetEmailVerificationRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getEmailVerification WSDL message.
+ *
+ * It has one part 'getEmailVerification' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetEmailVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetEmailVerificationRequest $getEmailVerification
+ * @method PartnerAPITypeGetEmailVerificationRequest getGetEmailVerification()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetEmailVerification extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getEmailVerification';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getEmailVerification' => new PartnerAPITypeGetEmailVerificationRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetEmailVerificationResponse.php b/src/Messages/messageGetEmailVerificationResponse.php
similarity index 87%
rename from src/messages/messageGetEmailVerificationResponse.php
rename to src/Messages/messageGetEmailVerificationResponse.php
index 522252e..021995f 100644
--- a/src/messages/messageGetEmailVerificationResponse.php
+++ b/src/Messages/messageGetEmailVerificationResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getEmailVerificationResponse WSDL message.
- *
- * It has one part 'getEmailVerificationResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetEmailVerificationResponse $getEmailVerificationResponse
- * @method PartnerAPITypeGetEmailVerificationResponse getGetEmailVerificationResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetEmailVerificationResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getEmailVerificationResponse' => new PartnerAPITypeGetEmailVerificationResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getEmailVerificationResponse WSDL message.
+ *
+ * It has one part 'getEmailVerificationResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetEmailVerificationResponse $getEmailVerificationResponse
+ * @method PartnerAPITypeGetEmailVerificationResponse getGetEmailVerificationResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetEmailVerificationResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getEmailVerificationResponse' => new PartnerAPITypeGetEmailVerificationResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetExpiringCertificates.php b/src/Messages/messageGetExpiringCertificates.php
similarity index 89%
rename from src/messages/messageGetExpiringCertificates.php
rename to src/Messages/messageGetExpiringCertificates.php
index 875790c..7db1bd4 100644
--- a/src/messages/messageGetExpiringCertificates.php
+++ b/src/Messages/messageGetExpiringCertificates.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getExpiringCertificates WSDL message.
- *
- * It has one part 'getExpiringCertificates' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetExpiringCertificates setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetExpiringCertificatesRequest $getExpiringCertificates
- * @method PartnerAPITypeGetExpiringCertificatesRequest getGetExpiringCertificates()
- *
- * @package messages
- */
-class PartnerAPIMessageGetExpiringCertificates extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getExpiringCertificates';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getExpiringCertificates' => new PartnerAPITypeGetExpiringCertificatesRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getExpiringCertificates WSDL message.
+ *
+ * It has one part 'getExpiringCertificates' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetExpiringCertificates setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetExpiringCertificatesRequest $getExpiringCertificates
+ * @method PartnerAPITypeGetExpiringCertificatesRequest getGetExpiringCertificates()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetExpiringCertificates extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getExpiringCertificates';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getExpiringCertificates' => new PartnerAPITypeGetExpiringCertificatesRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetExpiringCertificatesResponse.php b/src/Messages/messageGetExpiringCertificatesResponse.php
similarity index 87%
rename from src/messages/messageGetExpiringCertificatesResponse.php
rename to src/Messages/messageGetExpiringCertificatesResponse.php
index 83f4206..40ff7a4 100644
--- a/src/messages/messageGetExpiringCertificatesResponse.php
+++ b/src/Messages/messageGetExpiringCertificatesResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getExpiringCertificatesResponse WSDL message.
- *
- * It has one part 'getExpiringCertificatesResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetExpiringCertificatesResponse $getExpiringCertificatesResponse
- * @method PartnerAPITypeGetExpiringCertificatesResponse getGetExpiringCertificatesResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetExpiringCertificatesResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getExpiringCertificatesResponse' => new PartnerAPITypeGetExpiringCertificatesResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getExpiringCertificatesResponse WSDL message.
+ *
+ * It has one part 'getExpiringCertificatesResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetExpiringCertificatesResponse $getExpiringCertificatesResponse
+ * @method PartnerAPITypeGetExpiringCertificatesResponse getGetExpiringCertificatesResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetExpiringCertificatesResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getExpiringCertificatesResponse' => new PartnerAPITypeGetExpiringCertificatesResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetModifiedOrders.php b/src/Messages/messageGetModifiedOrders.php
similarity index 89%
rename from src/messages/messageGetModifiedOrders.php
rename to src/Messages/messageGetModifiedOrders.php
index dba1b51..86fb0ef 100644
--- a/src/messages/messageGetModifiedOrders.php
+++ b/src/Messages/messageGetModifiedOrders.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getModifiedOrders WSDL message.
- *
- * It has one part 'getModifiedOrders' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetModifiedOrders setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetModifiedOrdersRequest $getModifiedOrders
- * @method PartnerAPITypeGetModifiedOrdersRequest getGetModifiedOrders()
- *
- * @package messages
- */
-class PartnerAPIMessageGetModifiedOrders extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getModifiedOrders';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getModifiedOrders' => new PartnerAPITypeGetModifiedOrdersRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getModifiedOrders WSDL message.
+ *
+ * It has one part 'getModifiedOrders' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetModifiedOrders setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetModifiedOrdersRequest $getModifiedOrders
+ * @method PartnerAPITypeGetModifiedOrdersRequest getGetModifiedOrders()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetModifiedOrders extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getModifiedOrders';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getModifiedOrders' => new PartnerAPITypeGetModifiedOrdersRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetModifiedOrdersResponse.php b/src/Messages/messageGetModifiedOrdersResponse.php
similarity index 87%
rename from src/messages/messageGetModifiedOrdersResponse.php
rename to src/Messages/messageGetModifiedOrdersResponse.php
index 8a0dacf..0cbb716 100644
--- a/src/messages/messageGetModifiedOrdersResponse.php
+++ b/src/Messages/messageGetModifiedOrdersResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getModifiedOrdersResponse WSDL message.
- *
- * It has one part 'getModifiedOrdersResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetOrdersResponse $getModifiedOrdersResponse
- * @method PartnerAPITypeGetOrdersResponse getGetModifiedOrdersResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetModifiedOrdersResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getModifiedOrdersResponse' => new PartnerAPITypeGetOrdersResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getModifiedOrdersResponse WSDL message.
+ *
+ * It has one part 'getModifiedOrdersResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetOrdersResponse $getModifiedOrdersResponse
+ * @method PartnerAPITypeGetOrdersResponse getGetModifiedOrdersResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetModifiedOrdersResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getModifiedOrdersResponse' => new PartnerAPITypeGetOrdersResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetOrderByOrderID.php b/src/Messages/messageGetOrderByOrderID.php
similarity index 89%
rename from src/messages/messageGetOrderByOrderID.php
rename to src/Messages/messageGetOrderByOrderID.php
index e371269..b498c17 100644
--- a/src/messages/messageGetOrderByOrderID.php
+++ b/src/Messages/messageGetOrderByOrderID.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getOrderByOrderID WSDL message.
- *
- * It has one part 'getOrderByOrderID' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetOrderByOrderID setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetOrderByOrderIDRequest $getOrderByOrderID
- * @method PartnerAPITypeGetOrderByOrderIDRequest getGetOrderByOrderID()
- *
- * @package messages
- */
-class PartnerAPIMessageGetOrderByOrderID extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getOrderByOrderID';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getOrderByOrderID' => new PartnerAPITypeGetOrderByOrderIDRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getOrderByOrderID WSDL message.
+ *
+ * It has one part 'getOrderByOrderID' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetOrderByOrderID setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetOrderByOrderIDRequest $getOrderByOrderID
+ * @method PartnerAPITypeGetOrderByOrderIDRequest getGetOrderByOrderID()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetOrderByOrderID extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getOrderByOrderID';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getOrderByOrderID' => new PartnerAPITypeGetOrderByOrderIDRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetOrderByOrderIDResponse.php b/src/Messages/messageGetOrderByOrderIDResponse.php
similarity index 87%
rename from src/messages/messageGetOrderByOrderIDResponse.php
rename to src/Messages/messageGetOrderByOrderIDResponse.php
index 08ab7c5..e62ce19 100644
--- a/src/messages/messageGetOrderByOrderIDResponse.php
+++ b/src/Messages/messageGetOrderByOrderIDResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getOrderByOrderIDResponse WSDL message.
- *
- * It has one part 'getOrderByOrderIDResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetOrdersResponse $getOrderByOrderIDResponse
- * @method PartnerAPITypeGetOrdersResponse getGetOrderByOrderIDResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetOrderByOrderIDResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getOrderByOrderIDResponse' => new PartnerAPITypeGetOrdersResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getOrderByOrderIDResponse WSDL message.
+ *
+ * It has one part 'getOrderByOrderIDResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetOrdersResponse $getOrderByOrderIDResponse
+ * @method PartnerAPITypeGetOrdersResponse getGetOrderByOrderIDResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetOrderByOrderIDResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getOrderByOrderIDResponse' => new PartnerAPITypeGetOrdersResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetOrderState.php b/src/Messages/messageGetOrderState.php
similarity index 93%
rename from src/messages/messageGetOrderState.php
rename to src/Messages/messageGetOrderState.php
index 5b84748..ec1b924 100644
--- a/src/messages/messageGetOrderState.php
+++ b/src/Messages/messageGetOrderState.php
@@ -6,15 +6,15 @@
/**
* Partner API Library
- *
+ *
* @copyright Copyright (c) 2020 Asseco Data Systems SA
* @license license.txt
*/
/*
-
-
+
+
*/
@@ -27,22 +27,21 @@
* @method PartnerAPIMessageGetOrderState setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
* @property PartnerAPITypeGetOrderStateRequest $getOrderState
* @method PartnerAPITypeGetOrderStateRequest getGetOrderState()
- *
+ *
* @package messages
*/
class PartnerAPIMessageGetOrderState extends PartnerAPIMessage
{
-
/**
* Defines the part with credentials data.
- *
+ *
* @var string
*/
protected $partWithCredentials = 'getOrderState';
/**
* This method returns initial data for the message's parts.
- *
+ *
* @return array
*/
protected function initParts()
diff --git a/src/messages/messageGetOrderStateResponse.php b/src/Messages/messageGetOrderStateResponse.php
similarity index 91%
rename from src/messages/messageGetOrderStateResponse.php
rename to src/Messages/messageGetOrderStateResponse.php
index d785a59..5f14691 100644
--- a/src/messages/messageGetOrderStateResponse.php
+++ b/src/Messages/messageGetOrderStateResponse.php
@@ -6,15 +6,15 @@
/**
* Partner API Library
- *
+ *
* @copyright Copyright (c) 2020 Asseco Data Systems SA
* @license license.txt
*/
/*
-
-
+
+
*/
@@ -26,16 +26,14 @@
*
* @property PartnerAPITypeGetOrderStateResponse $getOrderStateResponse
* @method PartnerAPITypeGetOrderStateResponse getGetOrderStateResponse()
- *
+ *
* @package messages
*/
class PartnerAPIMessageGetOrderStateResponse extends PartnerAPIMessage
{
-
-
/**
* This method returns initial data for the message's parts.
- *
+ *
* @return array
*/
protected function initParts()
diff --git a/src/messages/messageGetOrdersByDateRange.php b/src/Messages/messageGetOrdersByDateRange.php
similarity index 89%
rename from src/messages/messageGetOrdersByDateRange.php
rename to src/Messages/messageGetOrdersByDateRange.php
index f4e5ceb..811ec6c 100644
--- a/src/messages/messageGetOrdersByDateRange.php
+++ b/src/Messages/messageGetOrdersByDateRange.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getOrdersByDateRange WSDL message.
- *
- * It has one part 'getOrdersByDateRange' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetOrdersByDateRange setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetOrdersByDateRangeRequest $getOrdersByDateRange
- * @method PartnerAPITypeGetOrdersByDateRangeRequest getGetOrdersByDateRange()
- *
- * @package messages
- */
-class PartnerAPIMessageGetOrdersByDateRange extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getOrdersByDateRange';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getOrdersByDateRange' => new PartnerAPITypeGetOrdersByDateRangeRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getOrdersByDateRange WSDL message.
+ *
+ * It has one part 'getOrdersByDateRange' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetOrdersByDateRange setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetOrdersByDateRangeRequest $getOrdersByDateRange
+ * @method PartnerAPITypeGetOrdersByDateRangeRequest getGetOrdersByDateRange()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetOrdersByDateRange extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getOrdersByDateRange';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getOrdersByDateRange' => new PartnerAPITypeGetOrdersByDateRangeRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetOrdersByDateRangeResponse.php b/src/Messages/messageGetOrdersByDateRangeResponse.php
similarity index 87%
rename from src/messages/messageGetOrdersByDateRangeResponse.php
rename to src/Messages/messageGetOrdersByDateRangeResponse.php
index 8c494c3..908efc8 100644
--- a/src/messages/messageGetOrdersByDateRangeResponse.php
+++ b/src/Messages/messageGetOrdersByDateRangeResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getOrdersByDateRangeResponse WSDL message.
- *
- * It has one part 'getOrdersByDateRangeResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetOrdersResponse $getOrdersByDateRangeResponse
- * @method PartnerAPITypeGetOrdersResponse getGetOrdersByDateRangeResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetOrdersByDateRangeResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getOrdersByDateRangeResponse' => new PartnerAPITypeGetOrdersResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getOrdersByDateRangeResponse WSDL message.
+ *
+ * It has one part 'getOrdersByDateRangeResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetOrdersResponse $getOrdersByDateRangeResponse
+ * @method PartnerAPITypeGetOrdersResponse getGetOrdersByDateRangeResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetOrdersByDateRangeResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getOrdersByDateRangeResponse' => new PartnerAPITypeGetOrdersResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetProductList.php b/src/Messages/messageGetProductList.php
similarity index 90%
rename from src/messages/messageGetProductList.php
rename to src/Messages/messageGetProductList.php
index ccfe8fc..efed1c3 100644
--- a/src/messages/messageGetProductList.php
+++ b/src/Messages/messageGetProductList.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getProductList WSDL message.
- *
- * It has one part 'getProductList' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetProductList setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetProductListRequest $getProductList
- * @method PartnerAPITypeGetProductListRequest getGetProductList()
- *
- * @package messages
- */
-class PartnerAPIMessageGetProductList extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getProductList';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getProductList' => new PartnerAPITypeGetProductListRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getProductList WSDL message.
+ *
+ * It has one part 'getProductList' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetProductList setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetProductListRequest $getProductList
+ * @method PartnerAPITypeGetProductListRequest getGetProductList()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetProductList extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getProductList';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getProductList' => new PartnerAPITypeGetProductListRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetProductListResponse.php b/src/Messages/messageGetProductListResponse.php
similarity index 88%
rename from src/messages/messageGetProductListResponse.php
rename to src/Messages/messageGetProductListResponse.php
index 1e0fae1..bd7e362 100644
--- a/src/messages/messageGetProductListResponse.php
+++ b/src/Messages/messageGetProductListResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getProductListResponse WSDL message.
- *
- * It has one part 'getProductListResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetProductListResponse $getProductListResponse
- * @method PartnerAPITypeGetProductListResponse getGetProductListResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetProductListResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getProductListResponse' => new PartnerAPITypeGetProductListResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getProductListResponse WSDL message.
+ *
+ * It has one part 'getProductListResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetProductListResponse $getProductListResponse
+ * @method PartnerAPITypeGetProductListResponse getGetProductListResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetProductListResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getProductListResponse' => new PartnerAPITypeGetProductListResponse()
+ );
+ }
+}
diff --git a/src/messages/messageGetSanVerificationState.php b/src/Messages/messageGetSanVerificationState.php
similarity index 96%
rename from src/messages/messageGetSanVerificationState.php
rename to src/Messages/messageGetSanVerificationState.php
index d5eff71..5054589 100644
--- a/src/messages/messageGetSanVerificationState.php
+++ b/src/Messages/messageGetSanVerificationState.php
@@ -1,54 +1,53 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getSanVerificationState WSDL message.
- *
- * It has one part 'getSanVerificationState' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageGetSanVerificationState setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeGetSanVerificationStateRequest $getSanVerificationState
- * @method PartnerAPITypeGetSanVerificationStateRequest getGetSanVerificationState()
- *
- * @package messages
- */
-class PartnerAPIMessageGetSanVerificationState extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'getSanVerificationState';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getSanVerificationState' => new PartnerAPITypeGetSanVerificationStateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getSanVerificationState WSDL message.
+ *
+ * It has one part 'getSanVerificationState' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageGetSanVerificationState setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeGetSanVerificationStateRequest $getSanVerificationState
+ * @method PartnerAPITypeGetSanVerificationStateRequest getGetSanVerificationState()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetSanVerificationState extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'getSanVerificationState';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getSanVerificationState' => new PartnerAPITypeGetSanVerificationStateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageGetSanVerificationStateResponse.php b/src/Messages/messageGetSanVerificationStateResponse.php
similarity index 96%
rename from src/messages/messageGetSanVerificationStateResponse.php
rename to src/Messages/messageGetSanVerificationStateResponse.php
index f21deef..6eebe75 100644
--- a/src/messages/messageGetSanVerificationStateResponse.php
+++ b/src/Messages/messageGetSanVerificationStateResponse.php
@@ -1,47 +1,45 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_getSanVerificationStateResponse WSDL message.
- *
- * It has one part 'getSanVerificationStateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeGetSanVerificationStateResponse $getSanVerificationStateResponse
- * @method PartnerAPITypeGetSanVerificationStateResponse getGetSanVerificationStateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageGetSanVerificationStateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'getSanVerificationStateResponse' => new PartnerAPITypeGetSanVerificationStateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_getSanVerificationStateResponse WSDL message.
+ *
+ * It has one part 'getSanVerificationStateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeGetSanVerificationStateResponse $getSanVerificationStateResponse
+ * @method PartnerAPITypeGetSanVerificationStateResponse getGetSanVerificationStateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageGetSanVerificationStateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'getSanVerificationStateResponse' => new PartnerAPITypeGetSanVerificationStateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageModifySNICertificate.php b/src/Messages/messageModifySNICertificate.php
similarity index 89%
rename from src/messages/messageModifySNICertificate.php
rename to src/Messages/messageModifySNICertificate.php
index dd7befc..c7c7e65 100644
--- a/src/messages/messageModifySNICertificate.php
+++ b/src/Messages/messageModifySNICertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_modifySNICertificate WSDL message.
- *
- * It has one part 'modifySNICertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageModifySNICertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeModifySNICertificateRequest $modifySNICertificate
- * @method PartnerAPITypeModifySNICertificateRequest getModifySNICertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageModifySNICertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'modifySNICertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'modifySNICertificate' => new PartnerAPITypeModifySNICertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_modifySNICertificate WSDL message.
+ *
+ * It has one part 'modifySNICertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageModifySNICertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeModifySNICertificateRequest $modifySNICertificate
+ * @method PartnerAPITypeModifySNICertificateRequest getModifySNICertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageModifySNICertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'modifySNICertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'modifySNICertificate' => new PartnerAPITypeModifySNICertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageModifySNICertificateResponse.php b/src/Messages/messageModifySNICertificateResponse.php
similarity index 87%
rename from src/messages/messageModifySNICertificateResponse.php
rename to src/Messages/messageModifySNICertificateResponse.php
index bd6c820..d233d50 100644
--- a/src/messages/messageModifySNICertificateResponse.php
+++ b/src/Messages/messageModifySNICertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_modifySNICertificateResponse WSDL message.
- *
- * It has one part 'modifySNICertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeModifySNICertificateResponse $modifySNICertificateResponse
- * @method PartnerAPITypeModifySNICertificateResponse getModifySNICertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageModifySNICertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'modifySNICertificateResponse' => new PartnerAPITypeModifySNICertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_modifySNICertificateResponse WSDL message.
+ *
+ * It has one part 'modifySNICertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeModifySNICertificateResponse $modifySNICertificateResponse
+ * @method PartnerAPITypeModifySNICertificateResponse getModifySNICertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageModifySNICertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'modifySNICertificateResponse' => new PartnerAPITypeModifySNICertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageOrderSNICertificate.php b/src/Messages/messageOrderSNICertificate.php
similarity index 89%
rename from src/messages/messageOrderSNICertificate.php
rename to src/Messages/messageOrderSNICertificate.php
index 4e23202..c57442d 100644
--- a/src/messages/messageOrderSNICertificate.php
+++ b/src/Messages/messageOrderSNICertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_orderSNICertificate WSDL message.
- *
- * It has one part 'orderSNICertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageOrderSNICertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeOrderSNICertificateRequest $orderSNICertificate
- * @method PartnerAPITypeOrderSNICertificateRequest getOrderSNICertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageOrderSNICertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'orderSNICertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'orderSNICertificate' => new PartnerAPITypeOrderSNICertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_orderSNICertificate WSDL message.
+ *
+ * It has one part 'orderSNICertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageOrderSNICertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeOrderSNICertificateRequest $orderSNICertificate
+ * @method PartnerAPITypeOrderSNICertificateRequest getOrderSNICertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageOrderSNICertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'orderSNICertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'orderSNICertificate' => new PartnerAPITypeOrderSNICertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageOrderSNICertificateResponse.php b/src/Messages/messageOrderSNICertificateResponse.php
similarity index 87%
rename from src/messages/messageOrderSNICertificateResponse.php
rename to src/Messages/messageOrderSNICertificateResponse.php
index 7d154fd..cfe8cd4 100644
--- a/src/messages/messageOrderSNICertificateResponse.php
+++ b/src/Messages/messageOrderSNICertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_orderSNICertificateResponse WSDL message.
- *
- * It has one part 'orderSNICertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeOrderSNICertificateResponse $orderSNICertificateResponse
- * @method PartnerAPITypeOrderSNICertificateResponse getOrderSNICertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageOrderSNICertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'orderSNICertificateResponse' => new PartnerAPITypeOrderSNICertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_orderSNICertificateResponse WSDL message.
+ *
+ * It has one part 'orderSNICertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeOrderSNICertificateResponse $orderSNICertificateResponse
+ * @method PartnerAPITypeOrderSNICertificateResponse getOrderSNICertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageOrderSNICertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'orderSNICertificateResponse' => new PartnerAPITypeOrderSNICertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messagePerformSanVerification.php b/src/Messages/messagePerformSanVerification.php
similarity index 96%
rename from src/messages/messagePerformSanVerification.php
rename to src/Messages/messagePerformSanVerification.php
index 949b985..ad3e7f3 100644
--- a/src/messages/messagePerformSanVerification.php
+++ b/src/Messages/messagePerformSanVerification.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_performSanVerification WSDL message.
- *
- * It has one part 'performSanVerification' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessagePerformSanVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeDomainVerificationRequest $performSanVerification
- * @method PartnerAPITypeDomainVerificationRequest getPerformSanVerification()
- *
- * @package messages
- */
-class PartnerAPIMessagePerformSanVerification extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'performSanVerification';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'performSanVerification' => new PartnerAPITypeDomainVerificationRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_performSanVerification WSDL message.
+ *
+ * It has one part 'performSanVerification' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessagePerformSanVerification setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeDomainVerificationRequest $performSanVerification
+ * @method PartnerAPITypeDomainVerificationRequest getPerformSanVerification()
+ *
+ * @package messages
+ */
+class PartnerAPIMessagePerformSanVerification extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'performSanVerification';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'performSanVerification' => new PartnerAPITypeDomainVerificationRequest()
+ );
+ }
+}
diff --git a/src/messages/messagePerformSanVerificationResponse.php b/src/Messages/messagePerformSanVerificationResponse.php
similarity index 96%
rename from src/messages/messagePerformSanVerificationResponse.php
rename to src/Messages/messagePerformSanVerificationResponse.php
index 6d54d8d..006a0a2 100644
--- a/src/messages/messagePerformSanVerificationResponse.php
+++ b/src/Messages/messagePerformSanVerificationResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_performSanVerificationResponse WSDL message.
- *
- * It has one part 'performSanVerificationResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypePerformSanVerificationResponse $performSanVerificationResponse
- * @method PartnerAPITypePerformSanVerificationResponse getPerformSanVerificationResponse()
- *
- * @package messages
- */
-class PartnerAPIMessagePerformSanVerificationResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'performSanVerificationResponse' => new PartnerAPITypePerformSanVerificationResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_performSanVerificationResponse WSDL message.
+ *
+ * It has one part 'performSanVerificationResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypePerformSanVerificationResponse $performSanVerificationResponse
+ * @method PartnerAPITypePerformSanVerificationResponse getPerformSanVerificationResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessagePerformSanVerificationResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'performSanVerificationResponse' => new PartnerAPITypePerformSanVerificationResponse()
+ );
+ }
+}
diff --git a/src/messages/messageQuickOrder.php b/src/Messages/messageQuickOrder.php
similarity index 82%
rename from src/messages/messageQuickOrder.php
rename to src/Messages/messageQuickOrder.php
index 90f3db0..c9d4838 100644
--- a/src/messages/messageQuickOrder.php
+++ b/src/Messages/messageQuickOrder.php
@@ -1,54 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_quickOrder WSDL message.
- *
- * It has one part 'quickOrder' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageQuickOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeQuickOrderRequest $quickOrder
- * @method PartnerAPITypeQuickOrderRequest getQuickOrder()
- *
- * @package messages
- */
-class PartnerAPIMessageQuickOrder extends PartnerAPIMessage {
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'quickOrder';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts() {
- return array(
- 'quickOrder' => new PartnerAPITypeQuickOrderRequest()
- );
- }
-
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_quickOrder WSDL message.
+ *
+ * It has one part 'quickOrder' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageQuickOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeQuickOrderRequest $quickOrder
+ * @method PartnerAPITypeQuickOrderRequest getQuickOrder()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageQuickOrder extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'quickOrder';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'quickOrder' => new PartnerAPITypeQuickOrderRequest()
+ );
+ }
+}
diff --git a/src/messages/messageQuickOrderResponse.php b/src/Messages/messageQuickOrderResponse.php
similarity index 88%
rename from src/messages/messageQuickOrderResponse.php
rename to src/Messages/messageQuickOrderResponse.php
index 487f6a5..3260916 100644
--- a/src/messages/messageQuickOrderResponse.php
+++ b/src/Messages/messageQuickOrderResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_quickOrderResponse WSDL message.
- *
- * It has one part 'quickOrderResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeQuickOrderResponse $quickOrderResponse
- * @method PartnerAPITypeQuickOrderResponse getQuickOrderResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageQuickOrderResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'quickOrderResponse' => new PartnerAPITypeQuickOrderResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_quickOrderResponse WSDL message.
+ *
+ * It has one part 'quickOrderResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeQuickOrderResponse $quickOrderResponse
+ * @method PartnerAPITypeQuickOrderResponse getQuickOrderResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageQuickOrderResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'quickOrderResponse' => new PartnerAPITypeQuickOrderResponse()
+ );
+ }
+}
diff --git a/src/messages/messageReissueCertificate.php b/src/Messages/messageReissueCertificate.php
similarity index 89%
rename from src/messages/messageReissueCertificate.php
rename to src/Messages/messageReissueCertificate.php
index 6f7981c..fbcc625 100644
--- a/src/messages/messageReissueCertificate.php
+++ b/src/Messages/messageReissueCertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_reissueCertificate WSDL message.
- *
- * It has one part 'reissueCertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageReissueCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeReissueCertificateRequest $reissueCertificate
- * @method PartnerAPITypeReissueCertificateRequest getReissueCertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageReissueCertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'reissueCertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'reissueCertificate' => new PartnerAPITypeReissueCertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_reissueCertificate WSDL message.
+ *
+ * It has one part 'reissueCertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageReissueCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeReissueCertificateRequest $reissueCertificate
+ * @method PartnerAPITypeReissueCertificateRequest getReissueCertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageReissueCertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'reissueCertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'reissueCertificate' => new PartnerAPITypeReissueCertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageReissueCertificateResponse.php b/src/Messages/messageReissueCertificateResponse.php
similarity index 87%
rename from src/messages/messageReissueCertificateResponse.php
rename to src/Messages/messageReissueCertificateResponse.php
index ac3de6e..f5d9d30 100644
--- a/src/messages/messageReissueCertificateResponse.php
+++ b/src/Messages/messageReissueCertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_reissueCertificateResponse WSDL message.
- *
- * It has one part 'reissueCertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeReissueCertificateResponse $reissueCertificateResponse
- * @method PartnerAPITypeReissueCertificateResponse getReissueCertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageReissueCertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'reissueCertificateResponse' => new PartnerAPITypeReissueCertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_reissueCertificateResponse WSDL message.
+ *
+ * It has one part 'reissueCertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeReissueCertificateResponse $reissueCertificateResponse
+ * @method PartnerAPITypeReissueCertificateResponse getReissueCertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageReissueCertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'reissueCertificateResponse' => new PartnerAPITypeReissueCertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageRenewCertificate.php b/src/Messages/messageRenewCertificate.php
similarity index 89%
rename from src/messages/messageRenewCertificate.php
rename to src/Messages/messageRenewCertificate.php
index da8b892..bab8f27 100644
--- a/src/messages/messageRenewCertificate.php
+++ b/src/Messages/messageRenewCertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_renewCertificate WSDL message.
- *
- * It has one part 'renewCertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageRenewCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeRenewCertificateRequest $renewCertificate
- * @method PartnerAPITypeRenewCertificateRequest getRenewCertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageRenewCertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'renewCertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'renewCertificate' => new PartnerAPITypeRenewCertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_renewCertificate WSDL message.
+ *
+ * It has one part 'renewCertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageRenewCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeRenewCertificateRequest $renewCertificate
+ * @method PartnerAPITypeRenewCertificateRequest getRenewCertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageRenewCertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'renewCertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'renewCertificate' => new PartnerAPITypeRenewCertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageRenewCertificateResponse.php b/src/Messages/messageRenewCertificateResponse.php
similarity index 87%
rename from src/messages/messageRenewCertificateResponse.php
rename to src/Messages/messageRenewCertificateResponse.php
index 3d6d77c..f071d62 100644
--- a/src/messages/messageRenewCertificateResponse.php
+++ b/src/Messages/messageRenewCertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_renewCertificateResponse WSDL message.
- *
- * It has one part 'renewCertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeRenewCertificateResponse $renewCertificateResponse
- * @method PartnerAPITypeRenewCertificateResponse getRenewCertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageRenewCertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'renewCertificateResponse' => new PartnerAPITypeRenewCertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_renewCertificateResponse WSDL message.
+ *
+ * It has one part 'renewCertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeRenewCertificateResponse $renewCertificateResponse
+ * @method PartnerAPITypeRenewCertificateResponse getRenewCertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageRenewCertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'renewCertificateResponse' => new PartnerAPITypeRenewCertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageRevokeCertificate.php b/src/Messages/messageRevokeCertificate.php
similarity index 89%
rename from src/messages/messageRevokeCertificate.php
rename to src/Messages/messageRevokeCertificate.php
index c9b90f9..34182c1 100644
--- a/src/messages/messageRevokeCertificate.php
+++ b/src/Messages/messageRevokeCertificate.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_revokeCertificate WSDL message.
- *
- * It has one part 'revokeCertificate' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageRevokeCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeRevokeCertificateRequest $revokeCertificate
- * @method PartnerAPITypeRevokeCertificateRequest getRevokeCertificate()
- *
- * @package messages
- */
-class PartnerAPIMessageRevokeCertificate extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'revokeCertificate';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'revokeCertificate' => new PartnerAPITypeRevokeCertificateRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_revokeCertificate WSDL message.
+ *
+ * It has one part 'revokeCertificate' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageRevokeCertificate setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeRevokeCertificateRequest $revokeCertificate
+ * @method PartnerAPITypeRevokeCertificateRequest getRevokeCertificate()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageRevokeCertificate extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'revokeCertificate';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'revokeCertificate' => new PartnerAPITypeRevokeCertificateRequest()
+ );
+ }
+}
diff --git a/src/messages/messageRevokeCertificateResponse.php b/src/Messages/messageRevokeCertificateResponse.php
similarity index 87%
rename from src/messages/messageRevokeCertificateResponse.php
rename to src/Messages/messageRevokeCertificateResponse.php
index 44fe011..13f82d8 100644
--- a/src/messages/messageRevokeCertificateResponse.php
+++ b/src/Messages/messageRevokeCertificateResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_revokeCertificateResponse WSDL message.
- *
- * It has one part 'revokeCertificateResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeRevokeCertificateResponse $revokeCertificateResponse
- * @method PartnerAPITypeRevokeCertificateResponse getRevokeCertificateResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageRevokeCertificateResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'revokeCertificateResponse' => new PartnerAPITypeRevokeCertificateResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_revokeCertificateResponse WSDL message.
+ *
+ * It has one part 'revokeCertificateResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeRevokeCertificateResponse $revokeCertificateResponse
+ * @method PartnerAPITypeRevokeCertificateResponse getRevokeCertificateResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageRevokeCertificateResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'revokeCertificateResponse' => new PartnerAPITypeRevokeCertificateResponse()
+ );
+ }
+}
diff --git a/src/messages/messageValidateOrderParameters.php b/src/Messages/messageValidateOrderParameters.php
similarity index 89%
rename from src/messages/messageValidateOrderParameters.php
rename to src/Messages/messageValidateOrderParameters.php
index b5da72b..ee14fd0 100644
--- a/src/messages/messageValidateOrderParameters.php
+++ b/src/Messages/messageValidateOrderParameters.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_validateOrderParameters WSDL message.
- *
- * It has one part 'validateOrderParameters' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageValidateOrderParameters setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeValidateOrderParametersRequest $validateOrderParameters
- * @method PartnerAPITypeValidateOrderParametersRequest getValidateOrderParameters()
- *
- * @package messages
- */
-class PartnerAPIMessageValidateOrderParameters extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'validateOrderParameters';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'validateOrderParameters' => new PartnerAPITypeValidateOrderParametersRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_validateOrderParameters WSDL message.
+ *
+ * It has one part 'validateOrderParameters' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageValidateOrderParameters setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeValidateOrderParametersRequest $validateOrderParameters
+ * @method PartnerAPITypeValidateOrderParametersRequest getValidateOrderParameters()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageValidateOrderParameters extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'validateOrderParameters';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'validateOrderParameters' => new PartnerAPITypeValidateOrderParametersRequest()
+ );
+ }
+}
diff --git a/src/messages/messageValidateOrderParametersResponse.php b/src/Messages/messageValidateOrderParametersResponse.php
similarity index 87%
rename from src/messages/messageValidateOrderParametersResponse.php
rename to src/Messages/messageValidateOrderParametersResponse.php
index 9d269fa..1e7f2a4 100644
--- a/src/messages/messageValidateOrderParametersResponse.php
+++ b/src/Messages/messageValidateOrderParametersResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_validateOrderParametersResponse WSDL message.
- *
- * It has one part 'validateOrderParametersResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeValidateOrderParametersResponse $validateOrderParametersResponse
- * @method PartnerAPITypeValidateOrderParametersResponse getValidateOrderParametersResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageValidateOrderParametersResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'validateOrderParametersResponse' => new PartnerAPITypeValidateOrderParametersResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_validateOrderParametersResponse WSDL message.
+ *
+ * It has one part 'validateOrderParametersResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeValidateOrderParametersResponse $validateOrderParametersResponse
+ * @method PartnerAPITypeValidateOrderParametersResponse getValidateOrderParametersResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageValidateOrderParametersResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'validateOrderParametersResponse' => new PartnerAPITypeValidateOrderParametersResponse()
+ );
+ }
+}
diff --git a/src/messages/messageVerifyOrder.php b/src/Messages/messageVerifyOrder.php
similarity index 90%
rename from src/messages/messageVerifyOrder.php
rename to src/Messages/messageVerifyOrder.php
index 7083283..fdbd7ee 100644
--- a/src/messages/messageVerifyOrder.php
+++ b/src/Messages/messageVerifyOrder.php
@@ -1,55 +1,54 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_verifyOrder WSDL message.
- *
- * It has one part 'verifyOrder' accessible as property or by invoking a getter method.
- *
- * @method PartnerAPIMessageVerifyOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
- * @property PartnerAPITypeVerifyOrderRequest $verifyOrder
- * @method PartnerAPITypeVerifyOrderRequest getVerifyOrder()
- *
- * @package messages
- */
-class PartnerAPIMessageVerifyOrder extends PartnerAPIMessage
-{
-
- /**
- * Defines the part with credentials data.
- *
- * @var string
- */
- protected $partWithCredentials = 'verifyOrder';
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'verifyOrder' => new PartnerAPITypeVerifyOrderRequest()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_verifyOrder WSDL message.
+ *
+ * It has one part 'verifyOrder' accessible as property or by invoking a getter method.
+ *
+ * @method PartnerAPIMessageVerifyOrder setCredentials(string $userName, string $password) Overriden method. Read documentation for PartnerAPIMessage class
+ * @property PartnerAPITypeVerifyOrderRequest $verifyOrder
+ * @method PartnerAPITypeVerifyOrderRequest getVerifyOrder()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageVerifyOrder extends PartnerAPIMessage
+{
+ /**
+ * Defines the part with credentials data.
+ *
+ * @var string
+ */
+ protected $partWithCredentials = 'verifyOrder';
+
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'verifyOrder' => new PartnerAPITypeVerifyOrderRequest()
+ );
+ }
+}
diff --git a/src/messages/messageVerifyOrderResponse.php b/src/Messages/messageVerifyOrderResponse.php
similarity index 88%
rename from src/messages/messageVerifyOrderResponse.php
rename to src/Messages/messageVerifyOrderResponse.php
index 08ac606..7c7828b 100644
--- a/src/messages/messageVerifyOrderResponse.php
+++ b/src/Messages/messageVerifyOrderResponse.php
@@ -1,48 +1,46 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the PartnerServicePortType_verifyOrderResponse WSDL message.
- *
- * It has one part 'verifyOrderResponse' accessible as property or by invoking a getter method.
- *
- * @property PartnerAPITypeVerifyOrderResponse $verifyOrderResponse
- * @method PartnerAPITypeVerifyOrderResponse getVerifyOrderResponse()
- *
- * @package messages
- */
-class PartnerAPIMessageVerifyOrderResponse extends PartnerAPIMessage
-{
-
-
- /**
- * This method returns initial data for the message's parts.
- *
- * @return array
- */
- protected function initParts()
- {
- return array(
- 'verifyOrderResponse' => new PartnerAPITypeVerifyOrderResponse()
- );
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the PartnerServicePortType_verifyOrderResponse WSDL message.
+ *
+ * It has one part 'verifyOrderResponse' accessible as property or by invoking a getter method.
+ *
+ * @property PartnerAPITypeVerifyOrderResponse $verifyOrderResponse
+ * @method PartnerAPITypeVerifyOrderResponse getVerifyOrderResponse()
+ *
+ * @package messages
+ */
+class PartnerAPIMessageVerifyOrderResponse extends PartnerAPIMessage
+{
+ /**
+ * This method returns initial data for the message's parts.
+ *
+ * @return array
+ */
+ protected function initParts()
+ {
+ return array(
+ 'verifyOrderResponse' => new PartnerAPITypeVerifyOrderResponse()
+ );
+ }
+}
diff --git a/src/operations/operation.php b/src/Operations/operation.php
similarity index 89%
rename from src/operations/operation.php
rename to src/Operations/operation.php
index 97743de..2d7c840 100644
--- a/src/operations/operation.php
+++ b/src/Operations/operation.php
@@ -1,226 +1,226 @@
-_service = $service;
- $this->_input->setCredentials($service->getUserName(), $service->getPassword());
- }
-
- /**
- * Returns the service set by the setService() method.
- *
- * @return PartnerAPIService
- */
- public function getService()
- {
- return $this->_service;
- }
-
- /**
- * Returns all the data stored for the operation.
- *
- * The returned data is the data which will be sent to the Partner API WebService.
- * It is not necessary to call this method in any time unless you just want
- * to check what data is beeing sent.
- *
- * The argument $omitNullValues tells if elements which value is NULL
- * will be omitted.
- *
- * @param bool $omitNullValues
- * @return array All the operation data
- */
- public function getInputDataAsArray($omitNullValues = FALSE)
- {
- return $this->_input->getDataAsArray($omitNullValues);
- }
-
- /**
- * Returns all the data returned from the Partner API WebService for the operation.
- *
- * The returned array contains the data which was returned from the Partner API WebService.
- *
- * @return array All the operation's response data
- */
- public function getOutputDataAsArray()
- {
- return $this->_output->getDataAsArray();
- }
-
- /**
- * Returns a message containing response from a service.
- *
- * This is an object of type derived from PartnerAPIMessage and
- * it contains all the response returned from a service.
- *
- * @return PartnerAPIMessage
- */
- public function getResponseMessage()
- {
- return $this->_output;
- }
-
- /**
- * Returns an object representing the header part of a response.
- *
- * This is a helper method useful when accessing the response's header.
- *
- * @return PartnerAPITypeResponseHeader
- */
- public function getResponseHeader()
- {
- return $this->_output->getResponseHeader();
- }
-
- /**
- * Tells if calling an operation was successful.
- *
- * If not, the error part of the header have to be checked.
- *
- * @return bool
- */
- public function isSuccess()
- {
- return $this->_output->getResponseHeader()->successCode == 0;
- }
-
-
- /**
- * Returns all error of an operation.
- *
- * This method always returns an array. It can be empty or have one or
- * more error objects.
- *
- * @return PartnerAPITypeError[]
- */
- public function getErrors()
- {
- $errorsTab = array();
- $errors = $this->_output->getResponseHeader()->errors;
- if (!is_null($errors)) {
- $errorsTab = $errors->Error;
- if (!is_array($errorsTab))
- $errorsTab = array($errorsTab);
- }
- return $errorsTab;
- }
-
- /**
- * Returns localized response time.
- *
- * The header part of a response contains date and time in GMT timezone.
- * This method returns the date and time of the response converted to
- * local timezone set for PHP interpreter.
- *
- * @return string Localized date and time of response
- */
- public function getResponseTimeLocal()
- {
- return date('Y-m-d H:i:s', strtotime($this->_output->getResponseHeader()->timestamp));
- }
-
- /**
- * Sends the input data to a service.
- *
- * This method sends all input data, which has been previously set, to the service object.
- * Then the output data are set with the data returned in a response.
- * A bool value is returned and it indicates if the operation was successful.
- *
- * @return bool Tells if calling an operation was successful
- */
- public function call()
- {
- $data = $this->getInputDataAsArray(TRUE);
- $response = $this->_service->call($this->_operation, $data);
- $this->_output->setData($response);
- return $this->getResponseHeader()->successCode == 0;
- }
-
- /**
- * Returns an array with descriptions of errors that have occured.
- *
- * The returned array is an array of arrays containing the following keys:
- * code, number, text, where code is a success code, number is a error
- * number and text is a description of an error.
- *
- * @return array
- */
- public function getErrorTexts()
- {
- if ($this->isSuccess()) {
- return array();
- }
- $e = new PartnerAPIError();
- return $e->getText($this->_service->getLang(), $this->getResponseHeader()->successCode, $this->getErrors());
- }
-}
+_service = $service;
+ $this->_input->setCredentials($service->getUserName(), $service->getPassword());
+ }
+
+ /**
+ * Returns the service set by the setService() method.
+ *
+ * @return PartnerAPIService
+ */
+ public function getService()
+ {
+ return $this->_service;
+ }
+
+ /**
+ * Returns all the data stored for the operation.
+ *
+ * The returned data is the data which will be sent to the Partner API WebService.
+ * It is not necessary to call this method in any time unless you just want
+ * to check what data is beeing sent.
+ *
+ * The argument $omitNullValues tells if elements which value is NULL
+ * will be omitted.
+ *
+ * @param bool $omitNullValues
+ * @return array All the operation data
+ */
+ public function getInputDataAsArray($omitNullValues = false)
+ {
+ return $this->_input->getDataAsArray($omitNullValues);
+ }
+
+ /**
+ * Returns all the data returned from the Partner API WebService for the operation.
+ *
+ * The returned array contains the data which was returned from the Partner API WebService.
+ *
+ * @return array All the operation's response data
+ */
+ public function getOutputDataAsArray()
+ {
+ return $this->_output->getDataAsArray();
+ }
+
+ /**
+ * Returns a message containing response from a service.
+ *
+ * This is an object of type derived from PartnerAPIMessage and
+ * it contains all the response returned from a service.
+ *
+ * @return PartnerAPIMessage
+ */
+ public function getResponseMessage()
+ {
+ return $this->_output;
+ }
+
+ /**
+ * Returns an object representing the header part of a response.
+ *
+ * This is a helper method useful when accessing the response's header.
+ *
+ * @return PartnerAPITypeResponseHeader
+ */
+ public function getResponseHeader()
+ {
+ return $this->_output->getResponseHeader();
+ }
+
+ /**
+ * Tells if calling an operation was successful.
+ *
+ * If not, the error part of the header have to be checked.
+ *
+ * @return bool
+ */
+ public function isSuccess()
+ {
+ return $this->_output->getResponseHeader()->successCode == 0;
+ }
+
+
+ /**
+ * Returns all error of an operation.
+ *
+ * This method always returns an array. It can be empty or have one or
+ * more error objects.
+ *
+ * @return PartnerAPITypeError[]
+ */
+ public function getErrors()
+ {
+ $errorsTab = array();
+ $errors = $this->_output->getResponseHeader()->errors;
+ if (!is_null($errors)) {
+ $errorsTab = $errors->Error;
+ if (!is_array($errorsTab)) {
+ $errorsTab = array($errorsTab);
+ }
+ }
+ return $errorsTab;
+ }
+
+ /**
+ * Returns localized response time.
+ *
+ * The header part of a response contains date and time in GMT timezone.
+ * This method returns the date and time of the response converted to
+ * local timezone set for PHP interpreter.
+ *
+ * @return string Localized date and time of response
+ */
+ public function getResponseTimeLocal()
+ {
+ return date('Y-m-d H:i:s', strtotime($this->_output->getResponseHeader()->timestamp));
+ }
+
+ /**
+ * Sends the input data to a service.
+ *
+ * This method sends all input data, which has been previously set, to the service object.
+ * Then the output data are set with the data returned in a response.
+ * A bool value is returned and it indicates if the operation was successful.
+ *
+ * @return bool Tells if calling an operation was successful
+ */
+ public function call()
+ {
+ $data = $this->getInputDataAsArray(true);
+ $response = $this->_service->call($this->_operation, $data);
+ $this->_output->setData($response);
+ return $this->getResponseHeader()->successCode == 0;
+ }
+
+ /**
+ * Returns an array with descriptions of errors that have occured.
+ *
+ * The returned array is an array of arrays containing the following keys:
+ * code, number, text, where code is a success code, number is a error
+ * number and text is a description of an error.
+ *
+ * @return array
+ */
+ public function getErrorTexts()
+ {
+ if ($this->isSuccess()) {
+ return array();
+ }
+ $e = new PartnerAPIError();
+ return $e->getText($this->_service->getLang(), $this->getResponseHeader()->successCode, $this->getErrors());
+ }
+}
diff --git a/src/operations/operationAddEmailVerification.php b/src/Operations/operationAddEmailVerification.php
similarity index 87%
rename from src/operations/operationAddEmailVerification.php
rename to src/Operations/operationAddEmailVerification.php
index e6504d9..2bafc90 100644
--- a/src/operations/operationAddEmailVerification.php
+++ b/src/Operations/operationAddEmailVerification.php
@@ -1,73 +1,72 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the addEmailVerification WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageAddEmailVerificationResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationAddEmailVerification extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageAddEmailVerification
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageAddEmailVerificationResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'addEmailVerification';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageAddEmailVerification();
- $this->_output = new PartnerAPIMessageAddEmailVerificationResponse();
- }
-
- /**
- * Sets an orderID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationAddEmailVerification
- */
- public function setOrderID($orderID) {
- $this->_input->addEmailVerification->setOrderID($orderID);
- return $this;
- }
-
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the addEmailVerification WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageAddEmailVerificationResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationAddEmailVerification extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageAddEmailVerification
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageAddEmailVerificationResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'addEmailVerification';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageAddEmailVerification();
+ $this->_output = new PartnerAPIMessageAddEmailVerificationResponse();
+ }
+
+ /**
+ * Sets an orderID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationAddEmailVerification
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->addEmailVerification->setOrderID($orderID);
+ return $this;
+ }
+}
diff --git a/src/operations/operationAddSanVerification.php b/src/Operations/operationAddSanVerification.php
similarity index 90%
rename from src/operations/operationAddSanVerification.php
rename to src/Operations/operationAddSanVerification.php
index a89b065..3e1fe20 100644
--- a/src/operations/operationAddSanVerification.php
+++ b/src/Operations/operationAddSanVerification.php
@@ -1,159 +1,163 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the addSanVerification WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageAddSanVerificationResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationAddSanVerification extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageAddSanVerification
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageAddSanVerificationResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'addSanVerification';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageAddSanVerification();
- $this->_output = new PartnerAPIMessageAddSanVerificationResponse();
- }
-
- /**
- * Sets an orderID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationAddSanVerification
- */
- public function setOrderID($orderID) {
- $this->_input->addSanVerification->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Sets the approverMethod option for SANApprover.
- *
- * This option determines which approve method will be used for domain verification.
- *
- * @param string $approverMethod
- * @return PartnerAPIOperationAddSanVerification
- */
- public function setApproverMethod($approverMethod) {
- $approver = $this->_input->addSanVerification->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->addSanVerification->setSANApprover($approver);
- }
- $approver->setApproverMethod($approverMethod);
- return $this;
- }
-
- /**
- * Sets the approverEmail option for SANApprover.
- *
- * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
- * This method cannot be used with EMAIL approve method.
- *
- * @param string $approverEmail
- * @return PartnerAPIOperationAddSanVerification
- */
- public function setApproverEmail($approverEmail) {
- $approver = $this->_input->addSanVerification->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->addSanVerification->setSANApprover($approver);
- }
- $approver->setApproverEmail($approverEmail);
- return $this;
- }
-
- /**
- * Sets the approverEmailPrefix option for SANApprover.
- *
- * This option determines which e-mail prefix will be used for EMAIL approve method.
- * This method cannot be used with FILE or DNS approve method.
- *
- * @param string $approverEmailPrefix
- * @return PartnerAPIOperationAddSanVerification
- */
- public function setApproverEmailPrefix($approverEmailPrefix) {
- $approver = $this->_input->addSanVerification->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->addSanVerification->setSANApprover($approver);
- }
- $approver->setApproverEmailPrefix($approverEmailPrefix);
- return $this;
- }
-
- /**
- * Sets the verificationNotificationEnabled option for SANApprover.
- *
- * This option determines if verification e-mails for all approvers will be sent or not.
- *
- * @param boolean $yes_or_no
- * @return PartnerAPIOperationAddSanVerification
- */
- public function setVerificationNotificationEnabled($yes_or_no) {
- $approver = $this->_input->addSanVerification->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->addSanVerification->setSANApprover($approver);
- }
- $approver->setVerificationNotificationEnabled($yes_or_no);
- return $this;
- }
-
- /**
- * Returns SANVerification entity containing verification data from a response.
- *
- * If there is no verification in the response a NULL is returned.
- *
- * @return PartnerAPITypeSanVerification
- */
- public function getSANVerification() {
- return $this->_output->addSanVerificationResponse->SANVerification;
- }
-
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the addSanVerification WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageAddSanVerificationResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationAddSanVerification extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageAddSanVerification
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageAddSanVerificationResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'addSanVerification';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageAddSanVerification();
+ $this->_output = new PartnerAPIMessageAddSanVerificationResponse();
+ }
+
+ /**
+ * Sets an orderID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->addSanVerification->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Sets the approverMethod option for SANApprover.
+ *
+ * This option determines which approve method will be used for domain verification.
+ *
+ * @param string $approverMethod
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function setApproverMethod($approverMethod)
+ {
+ $approver = $this->_input->addSanVerification->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->addSanVerification->setSANApprover($approver);
+ }
+ $approver->setApproverMethod($approverMethod);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmail option for SANApprover.
+ *
+ * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
+ * This method cannot be used with EMAIL approve method.
+ *
+ * @param string $approverEmail
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function setApproverEmail($approverEmail)
+ {
+ $approver = $this->_input->addSanVerification->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->addSanVerification->setSANApprover($approver);
+ }
+ $approver->setApproverEmail($approverEmail);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmailPrefix option for SANApprover.
+ *
+ * This option determines which e-mail prefix will be used for EMAIL approve method.
+ * This method cannot be used with FILE or DNS approve method.
+ *
+ * @param string $approverEmailPrefix
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function setApproverEmailPrefix($approverEmailPrefix)
+ {
+ $approver = $this->_input->addSanVerification->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->addSanVerification->setSANApprover($approver);
+ }
+ $approver->setApproverEmailPrefix($approverEmailPrefix);
+ return $this;
+ }
+
+ /**
+ * Sets the verificationNotificationEnabled option for SANApprover.
+ *
+ * This option determines if verification e-mails for all approvers will be sent or not.
+ *
+ * @param boolean $yes_or_no
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function setVerificationNotificationEnabled($yes_or_no)
+ {
+ $approver = $this->_input->addSanVerification->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->addSanVerification->setSANApprover($approver);
+ }
+ $approver->setVerificationNotificationEnabled($yes_or_no);
+ return $this;
+ }
+
+ /**
+ * Returns SANVerification entity containing verification data from a response.
+ *
+ * If there is no verification in the response a NULL is returned.
+ *
+ * @return PartnerAPITypeSanVerification
+ */
+ public function getSANVerification()
+ {
+ return $this->_output->addSanVerificationResponse->SANVerification;
+ }
+}
diff --git a/src/operations/operationCancelOrder.php b/src/Operations/operationCancelOrder.php
similarity index 77%
rename from src/operations/operationCancelOrder.php
rename to src/Operations/operationCancelOrder.php
index 7afaca3..d4f69cd 100644
--- a/src/operations/operationCancelOrder.php
+++ b/src/Operations/operationCancelOrder.php
@@ -1,85 +1,86 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the cancelOrder WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageCancelOrderResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationCancelOrder extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageCancelOrder
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageCancelOrderResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'cancelOrder';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageCancelOrder();
- $this->_output = new PartnerAPIMessageCancelOrderResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationCancelOrder
- */
- public function setOrderID($orderID) {
- $this->_input->cancelOrder->cancelParameters->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Sets a note for the request.
- *
- * Setting this value is optional.
- *
- * @param string $note
- * @return PartnerAPIOperationCancelOrder
- */
- public function setNote($note) {
- $this->_input->cancelOrder->cancelParameters->setNote($note);
- return $this;
- }
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the cancelOrder WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageCancelOrderResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationCancelOrder extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageCancelOrder
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageCancelOrderResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'cancelOrder';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageCancelOrder();
+ $this->_output = new PartnerAPIMessageCancelOrderResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationCancelOrder
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->cancelOrder->cancelParameters->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Sets a note for the request.
+ *
+ * Setting this value is optional.
+ *
+ * @param string $note
+ * @return PartnerAPIOperationCancelOrder
+ */
+ public function setNote($note)
+ {
+ $this->_input->cancelOrder->cancelParameters->setNote($note);
+ return $this;
+ }
+}
diff --git a/src/operations/operationGetCertificate.php b/src/Operations/operationGetCertificate.php
similarity index 80%
rename from src/operations/operationGetCertificate.php
rename to src/Operations/operationGetCertificate.php
index 9683066..d034df7 100644
--- a/src/operations/operationGetCertificate.php
+++ b/src/Operations/operationGetCertificate.php
@@ -1,105 +1,108 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getCertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetCertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetCertificate extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageGetCertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetCertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getCertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageGetCertificate();
- $this->_output = new PartnerAPIMessageGetCertificateResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * It is required to set orderID or serialNumber value but only one
- * of them may be set. Setting both values is an error.
- *
- * @param string $orderID
- * @return PartnerAPIOperationGetCertificate
- */
- public function setOrderID($orderID) {
- $this->_input->getCertificate->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Sets the serial number of a certificate for the request.
- *
- * It is required to set orderID or serialNumber value but only one
- * of them may be set. Setting both values is an error.
- *
- * @param string $serialNumber
- * @return PartnerAPIOperationGetCertificate
- */
- public function setSerialNumber($serialNumber) {
- $this->_input->getCertificate->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Returns certificate details contained in a response.
- *
- * @return PartnerAPITypeCertificateDetails|null
- */
- public function getCertificateDetails() {
- return $this->_output->getCertificateResponse->certificateDetails;
- }
-
- /**
- * Returns CA bundle contained in a response.
- *
- * @return PartnerAPITypeCaBundle|null
- */
- public function getCaBundle() {
- return $this->_output->getCertificateResponse->caBundle;
- }
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getCertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetCertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetCertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetCertificate
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageGetCertificateResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'getCertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetCertificate();
+ $this->_output = new PartnerAPIMessageGetCertificateResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * It is required to set orderID or serialNumber value but only one
+ * of them may be set. Setting both values is an error.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationGetCertificate
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->getCertificate->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Sets the serial number of a certificate for the request.
+ *
+ * It is required to set orderID or serialNumber value but only one
+ * of them may be set. Setting both values is an error.
+ *
+ * @param string $serialNumber
+ * @return PartnerAPIOperationGetCertificate
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->getCertificate->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Returns certificate details contained in a response.
+ *
+ * @return PartnerAPITypeCertificateDetails|null
+ */
+ public function getCertificateDetails()
+ {
+ return $this->_output->getCertificateResponse->certificateDetails;
+ }
+
+ /**
+ * Returns CA bundle contained in a response.
+ *
+ * @return PartnerAPITypeCaBundle|null
+ */
+ public function getCaBundle()
+ {
+ return $this->_output->getCertificateResponse->caBundle;
+ }
+}
diff --git a/src/operations/operationGetConfiguration.php b/src/Operations/operationGetConfiguration.php
similarity index 80%
rename from src/operations/operationGetConfiguration.php
rename to src/Operations/operationGetConfiguration.php
index e60d9a8..3b3c5c1 100644
--- a/src/operations/operationGetConfiguration.php
+++ b/src/Operations/operationGetConfiguration.php
@@ -1,4 +1,5 @@
-
-
-
+
+
+
*/
@@ -26,39 +27,40 @@
* It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
*
* @method PartnerAPIMessageGetConfigurationResponse getResponseMessage() A complete response from a service
- *
+ *
* @package operations
*/
-class PartnerAPIOperationGetConfiguration extends PartnerAPIOperation {
-
+class PartnerAPIOperationGetConfiguration extends PartnerAPIOperation
+{
/**
* @var PartnerAPIMessageGetConfiguration
*/
- protected $_input = NULL;
-
+ protected $_input = null;
+
/**
* @var PartnerAPIMessageGetConfigurationResponse
*/
- protected $_output = NULL;
+ protected $_output = null;
/**
* @var string
*/
protected $_operation = 'getConfiguration';
-
+
/**
* The constructor.
- *
+ *
* It initializes input and output data.
*/
- public function __construct() {
+ public function __construct()
+ {
$this->_input = new PartnerAPIMessageGetConfiguration();
$this->_output = new PartnerAPIMessageGetConfigurationResponse();
}
/**
* Returns products contained in a response.
- *
+ *
* This method always returns an array.
* If there is no product in the response an empty array is returned.
* Otherwise, an array with one or more products is returned.
@@ -67,20 +69,24 @@ public function __construct() {
* The following properties are set for each product: code,
* autoEnrollmentEnabled, certificateNotificationEnabled and
* verificationNotificationEnabled.
- *
+ *
* @return PartnerAPITypeProduct[]
*/
- public function getProducts() {
+ public function getProducts()
+ {
$productList = array();
$products = $this->_output->getConfigurationResponse->products;
- if (is_null($products))
+ if (is_null($products)) {
return $productList;
+ }
$product = $products->product;
- if (is_array($product))
- foreach ($product as $p)
+ if (is_array($product)) {
+ foreach ($product as $p) {
$productList[$p->code] = $p;
- else
+ }
+ } else {
$productList[$product->code] = $product;
+ }
return $productList;
}
}
diff --git a/src/operations/operationGetEmailVerification.php b/src/Operations/operationGetEmailVerification.php
similarity index 78%
rename from src/operations/operationGetEmailVerification.php
rename to src/Operations/operationGetEmailVerification.php
index 5d3d0e3..2664ad5 100644
--- a/src/operations/operationGetEmailVerification.php
+++ b/src/Operations/operationGetEmailVerification.php
@@ -1,80 +1,82 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getEmailVerification WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetEmailVerificationResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetEmailVerification extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageGetEmailVerification
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetEmailVerificationResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getEmailVerification';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageGetEmailVerification();
- $this->_output = new PartnerAPIMessageGetEmailVerificationResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationGetEmailVerification
- */
- public function setOrderID($orderID) {
- $this->_input->getEmailVerification->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Returns email verification contained in a response.
- *
- * @return PartnerAPITypeEmailVerification
- */
- public function getEmailVerification() {
- return $this->_output->getEmailVerificationResponse->emailVerification;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getEmailVerification WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetEmailVerificationResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetEmailVerification extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetEmailVerification
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageGetEmailVerificationResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'getEmailVerification';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetEmailVerification();
+ $this->_output = new PartnerAPIMessageGetEmailVerificationResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationGetEmailVerification
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->getEmailVerification->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Returns email verification contained in a response.
+ *
+ * @return PartnerAPITypeEmailVerification
+ */
+ public function getEmailVerification()
+ {
+ return $this->_output->getEmailVerificationResponse->emailVerification;
+ }
+}
diff --git a/src/operations/operationGetExpiringCertificates.php b/src/Operations/operationGetExpiringCertificates.php
similarity index 87%
rename from src/operations/operationGetExpiringCertificates.php
rename to src/Operations/operationGetExpiringCertificates.php
index b1549c3..5241d1f 100644
--- a/src/operations/operationGetExpiringCertificates.php
+++ b/src/Operations/operationGetExpiringCertificates.php
@@ -1,114 +1,112 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getExpiringCertificates WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetExpiringCertificatesResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetExpiringCertificates extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetExpiringCertificates
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetExpiringCertificatesResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getExpiringCertificates';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetExpiringCertificates();
- $this->_output = new PartnerAPIMessageGetExpiringCertificatesResponse();
- }
-
- /**
- * Sets the minimum number of days that a certificate is still valid.
- *
- * It is required to set this value.
- *
- * @param int $validityDaysLeft
- * @return PartnerAPIOperationGetExpiringCertificates
- */
- public function setValidityDaysLeft($validityDaysLeft)
- {
- $this->_input->getExpiringCertificates->setValidityDaysLeft($validityDaysLeft);
- return $this;
- }
-
- /**
- * Sets a page number for a request.
- *
- * @param int|null $number
- * @return PartnerAPIOperationGetExpiringCertificates
- */
- public function setPageNumber($number)
- {
- $this->_input->getExpiringCertificates->setPageNumber($number);
- return $this;
- }
-
- /**
- * Returns expiring certificates contained in a response.
- *
- * This method always returns an array.
- * If there is no expiring certificate in a response an empty array is returned.
- * Otherwise, an array with one or more expiring certificates is returned.
- *
- * @return PartnerAPITypeExpiringCertificates[]
- */
- public function getExpiringCertificates()
- {
- $list = array();
- $certs = $this->_output->getExpiringCertificatesResponse->expiringCertificates;
- if (is_null($certs)) {
- return $list;
- }
- if (is_array($certs)) {
- foreach ($certs as $c) {
- $list[$c->serialNumber] = $c;
- }
- } else {
- $list[$certs->serialNumber] = $certs;
- }
- return $list;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getExpiringCertificates WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetExpiringCertificatesResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetExpiringCertificates extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetExpiringCertificates
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetExpiringCertificatesResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getExpiringCertificates';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetExpiringCertificates();
+ $this->_output = new PartnerAPIMessageGetExpiringCertificatesResponse();
+ }
+
+ /**
+ * Sets the minimum number of days that a certificate is still valid.
+ *
+ * It is required to set this value.
+ *
+ * @param int $validityDaysLeft
+ * @return PartnerAPIOperationGetExpiringCertificates
+ */
+ public function setValidityDaysLeft($validityDaysLeft)
+ {
+ $this->_input->getExpiringCertificates->setValidityDaysLeft($validityDaysLeft);
+ return $this;
+ }
+
+ /**
+ * Sets a page number for a request.
+ *
+ * @param int|null $number
+ * @return PartnerAPIOperationGetExpiringCertificates
+ */
+ public function setPageNumber($number)
+ {
+ $this->_input->getExpiringCertificates->setPageNumber($number);
+ return $this;
+ }
+
+ /**
+ * Returns expiring certificates contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no expiring certificate in a response an empty array is returned.
+ * Otherwise, an array with one or more expiring certificates is returned.
+ *
+ * @return PartnerAPITypeExpiringCertificates[]
+ */
+ public function getExpiringCertificates()
+ {
+ $list = array();
+ $certs = $this->_output->getExpiringCertificatesResponse->expiringCertificates;
+ if (is_null($certs)) {
+ return $list;
+ }
+ if (is_array($certs)) {
+ foreach ($certs as $c) {
+ $list[$c->serialNumber] = $c;
+ }
+ } else {
+ $list[$certs->serialNumber] = $certs;
+ }
+ return $list;
+ }
+}
diff --git a/src/operations/operationGetModifiedOrders.php b/src/Operations/operationGetModifiedOrders.php
similarity index 84%
rename from src/operations/operationGetModifiedOrders.php
rename to src/Operations/operationGetModifiedOrders.php
index f80fa50..d741b2c 100644
--- a/src/operations/operationGetModifiedOrders.php
+++ b/src/Operations/operationGetModifiedOrders.php
@@ -1,173 +1,174 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getModifiedOrders WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetModifiedOrdersResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetModifiedOrders extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetModifiedOrders
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetModifiedOrdersResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getModifiedOrders';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetModifiedOrders();
- $this->_output = new PartnerAPIMessageGetModifiedOrdersResponse();
- }
-
- /**
- * Sets the request's date range.
- *
- * Setting this values is required.
- *
- * @param string $fromDate
- * @param string $toDate
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function setDateRange($fromDate, $toDate)
- {
- $this->_input->getModifiedOrders->setFromDate($fromDate)->setToDate($toDate);
- return $this;
- }
-
- /**
- * Sets the 'certificateDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function setCertificateDetails($value = FALSE)
- {
- $o = $this->_input->getModifiedOrders->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getModifiedOrders->setOrderOption($o);
- }
- $o->setCertificateDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function setOrderDetails($value = FALSE)
- {
- $o = $this->_input->getModifiedOrders->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getModifiedOrders->setOrderOption($o);
- }
- $o->setOrderDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderStatus' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function setOrderStatus($value = FALSE)
- {
- $o = $this->_input->getModifiedOrders->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getModifiedOrders->setOrderOption($o);
- }
- $o->setOrderStatus($value);
- return $this;
- }
-
- /**
- * Sets the 'pageNumber' option for a request.
- *
- * Setting this value is optional.
- *
- * @param int $value
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function setPageNumber($value = 1)
- {
- $this->_input->getModifiedOrders->setPageNumber($value);
- return $this;
- }
-
- /**
- * Returns orders contained in a response.
- *
- * This method always returns an array.
- * If there is no order in the response an empty array is returned.
- * Otherwise, an array with one or more orders is returned.
- *
- * @return PartnerAPITypeOrder[]
- */
- public function getOrders()
- {
- $orderList = array();
- $orders = $this->_output->getModifiedOrdersResponse->orders;
- if (is_null($orders))
- return $orderList;
- $order = $orders->Order;
- if (is_array($order))
- foreach ($order as $o)
- $orderList[] = $o;
- else
- $orderList[] = $order;
- return $orderList;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getModifiedOrders WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetModifiedOrdersResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetModifiedOrders extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetModifiedOrders
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetModifiedOrdersResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getModifiedOrders';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetModifiedOrders();
+ $this->_output = new PartnerAPIMessageGetModifiedOrdersResponse();
+ }
+
+ /**
+ * Sets the request's date range.
+ *
+ * Setting this values is required.
+ *
+ * @param string $fromDate
+ * @param string $toDate
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function setDateRange($fromDate, $toDate)
+ {
+ $this->_input->getModifiedOrders->setFromDate($fromDate)->setToDate($toDate);
+ return $this;
+ }
+
+ /**
+ * Sets the 'certificateDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function setCertificateDetails($value = false)
+ {
+ $o = $this->_input->getModifiedOrders->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getModifiedOrders->setOrderOption($o);
+ }
+ $o->setCertificateDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function setOrderDetails($value = false)
+ {
+ $o = $this->_input->getModifiedOrders->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getModifiedOrders->setOrderOption($o);
+ }
+ $o->setOrderDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderStatus' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function setOrderStatus($value = false)
+ {
+ $o = $this->_input->getModifiedOrders->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getModifiedOrders->setOrderOption($o);
+ }
+ $o->setOrderStatus($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'pageNumber' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param int $value
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function setPageNumber($value = 1)
+ {
+ $this->_input->getModifiedOrders->setPageNumber($value);
+ return $this;
+ }
+
+ /**
+ * Returns orders contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no order in the response an empty array is returned.
+ * Otherwise, an array with one or more orders is returned.
+ *
+ * @return PartnerAPITypeOrder[]
+ */
+ public function getOrders()
+ {
+ $orderList = array();
+ $orders = $this->_output->getModifiedOrdersResponse->orders;
+ if (is_null($orders)) {
+ return $orderList;
+ }
+ $order = $orders->Order;
+ if (is_array($order)) {
+ foreach ($order as $o) {
+ $orderList[] = $o;
+ }
+ } else {
+ $orderList[] = $order;
+ }
+ return $orderList;
+ }
+}
diff --git a/src/operations/operationGetOrderByOrderID.php b/src/Operations/operationGetOrderByOrderID.php
similarity index 82%
rename from src/operations/operationGetOrderByOrderID.php
rename to src/Operations/operationGetOrderByOrderID.php
index 9ee3310..df11b85 100644
--- a/src/operations/operationGetOrderByOrderID.php
+++ b/src/Operations/operationGetOrderByOrderID.php
@@ -1,158 +1,159 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getOrderByOrderID WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetOrderByOrderIDResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetOrderByOrderID extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetOrderByOrderID
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetOrderByOrderIDResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getOrderByOrderID';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetOrderByOrderID();
- $this->_output = new PartnerAPIMessageGetOrderByOrderIDResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function setOrderID($orderID)
- {
- $this->_input->getOrderByOrderID->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Sets the 'certificateDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function setCertificateDetails($value = FALSE)
- {
- $o = $this->_input->getOrderByOrderID->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrderByOrderID->setOrderOption($o);
- }
- $o->setCertificateDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function setOrderDetails($value = FALSE)
- {
- $o = $this->_input->getOrderByOrderID->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrderByOrderID->setOrderOption($o);
- }
- $o->setOrderDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderStatus' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function setOrderStatus($value = FALSE)
- {
- $o = $this->_input->getOrderByOrderID->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrderByOrderID->setOrderOption($o);
- }
- $o->setOrderStatus($value);
- return $this;
- }
-
- /**
- * Returns orders contained in a response.
- *
- * This method always returns an array.
- * If there is no order in the response an empty array is returned.
- * Otherwise, an array with one or more orders is returned.
- *
- * @return PartnerAPITypeOrder[]
- */
- public function getOrders()
- {
- $orderList = array();
- $orders = $this->_output->getOrderByOrderIDResponse->orders;
- if (is_null($orders))
- return $orderList;
- $order = $orders->Order;
- if (is_array($order))
- foreach ($order as $o)
- $orderList[] = $o;
- else
- $orderList[] = $order;
- return $orderList;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getOrderByOrderID WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetOrderByOrderIDResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetOrderByOrderID extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetOrderByOrderID
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetOrderByOrderIDResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getOrderByOrderID';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetOrderByOrderID();
+ $this->_output = new PartnerAPIMessageGetOrderByOrderIDResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->getOrderByOrderID->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Sets the 'certificateDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function setCertificateDetails($value = false)
+ {
+ $o = $this->_input->getOrderByOrderID->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrderByOrderID->setOrderOption($o);
+ }
+ $o->setCertificateDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function setOrderDetails($value = false)
+ {
+ $o = $this->_input->getOrderByOrderID->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrderByOrderID->setOrderOption($o);
+ }
+ $o->setOrderDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderStatus' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function setOrderStatus($value = false)
+ {
+ $o = $this->_input->getOrderByOrderID->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrderByOrderID->setOrderOption($o);
+ }
+ $o->setOrderStatus($value);
+ return $this;
+ }
+
+ /**
+ * Returns orders contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no order in the response an empty array is returned.
+ * Otherwise, an array with one or more orders is returned.
+ *
+ * @return PartnerAPITypeOrder[]
+ */
+ public function getOrders()
+ {
+ $orderList = array();
+ $orders = $this->_output->getOrderByOrderIDResponse->orders;
+ if (is_null($orders)) {
+ return $orderList;
+ }
+ $order = $orders->Order;
+ if (is_array($order)) {
+ foreach ($order as $o) {
+ $orderList[] = $o;
+ }
+ } else {
+ $orderList[] = $order;
+ }
+ return $orderList;
+ }
+}
diff --git a/src/operations/operationGetOrderState.php b/src/Operations/operationGetOrderState.php
similarity index 85%
rename from src/operations/operationGetOrderState.php
rename to src/Operations/operationGetOrderState.php
index 011dcd9..b9c22e5 100644
--- a/src/operations/operationGetOrderState.php
+++ b/src/Operations/operationGetOrderState.php
@@ -4,21 +4,20 @@
/**
* Partner API Library
- *
+ *
* @copyright Copyright (c) 2020 Asseco Data Systems SA
* @license license.txt
*/
-
use Certum\Sdk\Messages\PartnerAPIMessageGetOrderState;
use Certum\Sdk\Messages\PartnerAPIMessageGetOrderStateResponse;
/*
-
-
-
+
+
+
*/
@@ -28,21 +27,20 @@
* It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
*
* @method PartnerAPIMessageGetOrderStateResponse getResponseMessage() A complete response from a service
- *
+ *
* @package operations
*/
class PartnerAPIOperationGetOrderState extends PartnerAPIOperation
{
-
/**
* @var PartnerAPIMessageGetOrderState
*/
- protected $_input = NULL;
+ protected $_input = null;
/**
* @var PartnerAPIMessageGetOrderStateResponse
*/
- protected $_output = NULL;
+ protected $_output = null;
/**
* @var string
@@ -51,7 +49,7 @@ class PartnerAPIOperationGetOrderState extends PartnerAPIOperation
/**
* The constructor.
- *
+ *
* It initializes input and output data.
*/
public function __construct()
@@ -62,9 +60,9 @@ public function __construct()
/**
* Sets an order ID for the request.
- *
+ *
* Setting this value is required.
- *
+ *
* @param string $orderID
* @return PartnerAPIOperationGetOrderState
*/
@@ -96,25 +94,28 @@ public function getLastUpdateDate()
/**
* Returns orderVerifications contained in a response.
- *
+ *
* This method always returns an array.
* If there is no order in the response an empty array is returned.
* Otherwise, an array with one or more orders is returned.
- *
+ *
* @return PartnerAPITypeOrderVerification[]
*/
public function getOrderVerifications()
{
$orderVerificationsList = array();
$orderVerifications = $this->_output->getOrderStateResponse->verifications;
- if (is_null($orderVerifications))
+ if (is_null($orderVerifications)) {
return $orderVerificationsList;
+ }
$verification = $orderVerifications->verification;
- if (is_array($verification))
- foreach ($verification as $o)
+ if (is_array($verification)) {
+ foreach ($verification as $o) {
$orderVerificationsList[] = $o;
- else
+ }
+ } else {
$orderVerificationsList[] = $verification;
+ }
return $orderVerificationsList;
}
}
diff --git a/src/operations/operationGetOrdersByDateRange.php b/src/Operations/operationGetOrdersByDateRange.php
similarity index 84%
rename from src/operations/operationGetOrdersByDateRange.php
rename to src/Operations/operationGetOrdersByDateRange.php
index fc6b677..8ca3691 100644
--- a/src/operations/operationGetOrdersByDateRange.php
+++ b/src/Operations/operationGetOrdersByDateRange.php
@@ -1,173 +1,174 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getOrdersByDateRange WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetOrdersByDateRangeResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetOrdersByDateRange extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetOrdersByDateRange
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetOrdersByDateRangeResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getOrdersByDateRange';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetOrdersByDateRange();
- $this->_output = new PartnerAPIMessageGetOrdersByDateRangeResponse();
- }
-
- /**
- * Sets the request's date range.
- *
- * Setting this values is required.
- *
- * @param string $fromDate
- * @param string $toDate
- * @return PartnerAPIOperationGetOrdersByDateRange
- */
- public function setDateRange($fromDate, $toDate)
- {
- $this->_input->getOrdersByDateRange->setFromDate($fromDate)->setToDate($toDate);
- return $this;
- }
-
- /**
- * Sets the 'certificateDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrdersByDateRange
- */
- public function setCertificateDetails($value = FALSE)
- {
- $o = $this->_input->getOrdersByDateRange->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrdersByDateRange->setOrderOption($o);
- }
- $o->setCertificateDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderDetails' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrdersByDateRange
- */
- public function setOrderDetails($value = FALSE)
- {
- $o = $this->_input->getOrdersByDateRange->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrdersByDateRange->setOrderOption($o);
- }
- $o->setOrderDetails($value);
- return $this;
- }
-
- /**
- * Sets the 'orderStatus' option for a request.
- *
- * Setting this value is optional.
- *
- * @param bool $value
- * @return PartnerAPIOperationGetOrdersByDateRange
- */
- public function setOrderStatus($value = FALSE)
- {
- $o = $this->_input->getOrdersByDateRange->orderOption;
- if (is_null($o)) {
- $o = new PartnerAPITypeOrderOption();
- $this->_input->getOrdersByDateRange->setOrderOption($o);
- }
- $o->setOrderStatus($value);
- return $this;
- }
-
- /**
- * Sets the 'pageNumber' option for a request.
- *
- * Setting this value is optional.
- *
- * @param int $value
- * @return PartnerAPIOperationGetOrdersByDateRange
- */
- public function setPageNumber($value = 1)
- {
- $this->_input->getOrdersByDateRange->setPageNumber($value);
- return $this;
- }
-
- /**
- * Returns orders contained in a response.
- *
- * This method always returns an array.
- * If there is no order in the response an empty array is returned.
- * Otherwise, an array with one or more orders is returned.
- *
- * @return PartnerAPITypeOrder[]
- */
- public function getOrders()
- {
- $orderList = array();
- $orders = $this->_output->getOrdersByDateRangeResponse->orders;
- if (is_null($orders))
- return $orderList;
- $order = $orders->Order;
- if (is_array($order))
- foreach ($order as $o)
- $orderList[] = $o;
- else
- $orderList[] = $order;
- return $orderList;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getOrdersByDateRange WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetOrdersByDateRangeResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetOrdersByDateRange extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetOrdersByDateRange
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetOrdersByDateRangeResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getOrdersByDateRange';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetOrdersByDateRange();
+ $this->_output = new PartnerAPIMessageGetOrdersByDateRangeResponse();
+ }
+
+ /**
+ * Sets the request's date range.
+ *
+ * Setting this values is required.
+ *
+ * @param string $fromDate
+ * @param string $toDate
+ * @return PartnerAPIOperationGetOrdersByDateRange
+ */
+ public function setDateRange($fromDate, $toDate)
+ {
+ $this->_input->getOrdersByDateRange->setFromDate($fromDate)->setToDate($toDate);
+ return $this;
+ }
+
+ /**
+ * Sets the 'certificateDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrdersByDateRange
+ */
+ public function setCertificateDetails($value = false)
+ {
+ $o = $this->_input->getOrdersByDateRange->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrdersByDateRange->setOrderOption($o);
+ }
+ $o->setCertificateDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderDetails' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrdersByDateRange
+ */
+ public function setOrderDetails($value = false)
+ {
+ $o = $this->_input->getOrdersByDateRange->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrdersByDateRange->setOrderOption($o);
+ }
+ $o->setOrderDetails($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'orderStatus' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param bool $value
+ * @return PartnerAPIOperationGetOrdersByDateRange
+ */
+ public function setOrderStatus($value = false)
+ {
+ $o = $this->_input->getOrdersByDateRange->orderOption;
+ if (is_null($o)) {
+ $o = new PartnerAPITypeOrderOption();
+ $this->_input->getOrdersByDateRange->setOrderOption($o);
+ }
+ $o->setOrderStatus($value);
+ return $this;
+ }
+
+ /**
+ * Sets the 'pageNumber' option for a request.
+ *
+ * Setting this value is optional.
+ *
+ * @param int $value
+ * @return PartnerAPIOperationGetOrdersByDateRange
+ */
+ public function setPageNumber($value = 1)
+ {
+ $this->_input->getOrdersByDateRange->setPageNumber($value);
+ return $this;
+ }
+
+ /**
+ * Returns orders contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no order in the response an empty array is returned.
+ * Otherwise, an array with one or more orders is returned.
+ *
+ * @return PartnerAPITypeOrder[]
+ */
+ public function getOrders()
+ {
+ $orderList = array();
+ $orders = $this->_output->getOrdersByDateRangeResponse->orders;
+ if (is_null($orders)) {
+ return $orderList;
+ }
+ $order = $orders->Order;
+ if (is_array($order)) {
+ foreach ($order as $o) {
+ $orderList[] = $o;
+ }
+ } else {
+ $orderList[] = $order;
+ }
+ return $orderList;
+ }
+}
diff --git a/src/operations/operationGetProductList.php b/src/Operations/operationGetProductList.php
similarity index 84%
rename from src/operations/operationGetProductList.php
rename to src/Operations/operationGetProductList.php
index d79325b..e694dc6 100644
--- a/src/operations/operationGetProductList.php
+++ b/src/Operations/operationGetProductList.php
@@ -1,102 +1,103 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getProductList WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetProductListResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetProductList extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetProductList
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetProductListResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getProductList';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetProductList();
- $this->_output = new PartnerAPIMessageGetProductListResponse();
- }
-
- /**
- * Sets whether or not returned products should contain information about available hash algorithms.
- *
- * @param boolean $hashAlgorithm
- * @return PartnerAPIOperationGetProductList
- */
- public function setHashAlgorithm($hashAlgorithm)
- {
- $this->_input->getProductList->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Returns products contained in a response.
- *
- * This method always returns an array.
- * If there is no product in the response an empty array is returned.
- * Otherwise, an array with one or more products is returned.
- * Keys in the array are numbers meaning the product code
- * and values are objects of type PartnerAPITypeProduct.
- * The following properties are set for each product: code, type and
- * validityPeriod.
- *
- * @return PartnerAPITypeProduct[]
- */
- public function getProducts()
- {
- $productList = array();
- $products = $this->_output->getProductListResponse->products;
- if (is_null($products))
- return $productList;
- $product = $products->product;
- if (is_array($product))
- foreach ($product as $p)
- $productList[$p->code] = $p;
- else
- $productList[$product->code] = $product;
- return $productList;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getProductList WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetProductListResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetProductList extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetProductList
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetProductListResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getProductList';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetProductList();
+ $this->_output = new PartnerAPIMessageGetProductListResponse();
+ }
+
+ /**
+ * Sets whether or not returned products should contain information about available hash algorithms.
+ *
+ * @param boolean $hashAlgorithm
+ * @return PartnerAPIOperationGetProductList
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->getProductList->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Returns products contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no product in the response an empty array is returned.
+ * Otherwise, an array with one or more products is returned.
+ * Keys in the array are numbers meaning the product code
+ * and values are objects of type PartnerAPITypeProduct.
+ * The following properties are set for each product: code, type and
+ * validityPeriod.
+ *
+ * @return PartnerAPITypeProduct[]
+ */
+ public function getProducts()
+ {
+ $productList = array();
+ $products = $this->_output->getProductListResponse->products;
+ if (is_null($products)) {
+ return $productList;
+ }
+ $product = $products->product;
+ if (is_array($product)) {
+ foreach ($product as $p) {
+ $productList[$p->code] = $p;
+ }
+ } else {
+ $productList[$product->code] = $product;
+ }
+ return $productList;
+ }
+}
diff --git a/src/operations/operationGetSanVerificationState.php b/src/Operations/operationGetSanVerificationState.php
similarity index 90%
rename from src/operations/operationGetSanVerificationState.php
rename to src/Operations/operationGetSanVerificationState.php
index 4cef93b..e78a7eb 100644
--- a/src/operations/operationGetSanVerificationState.php
+++ b/src/Operations/operationGetSanVerificationState.php
@@ -1,100 +1,101 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the getSanVerificationState WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageGetSanVerificationStateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationGetSanVerificationState extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageGetSanVerificationState
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageGetSanVerificationStateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'getSanVerificationState';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageGetSanVerificationState();
- $this->_output = new PartnerAPIMessageGetSanVerificationStateResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * Setting this value is required.
- *
- * @param string $orderID
- * @return PartnerAPIOperationGetSanVerificationState
- */
- public function setOrderID($orderID)
- {
- $this->_input->getSanVerificationState->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Returns sanVerifications contained in a response.
- *
- * This method always returns an array.
- * If there is no sanVerifications in the response an empty array is returned.
- * Otherwise, an array with one or more sanVerifications is returned.
- *
- * @return PartnerAPITypeSanVerificationState[]
- */
- public function getSanVerifications()
- {
- $stateList = array();
- $states = $this->_output->getSanVerificationStateResponse->sanVerifications;
- if (is_null($states))
- return $stateList;
- $state = $states->sanVerification;
- if (is_array($state))
- foreach ($state as $s)
- $stateList[] = $s;
- else
- $stateList[] = $state;
- return $stateList;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the getSanVerificationState WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageGetSanVerificationStateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationGetSanVerificationState extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageGetSanVerificationState
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageGetSanVerificationStateResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'getSanVerificationState';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageGetSanVerificationState();
+ $this->_output = new PartnerAPIMessageGetSanVerificationStateResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationGetSanVerificationState
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->getSanVerificationState->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Returns sanVerifications contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no sanVerifications in the response an empty array is returned.
+ * Otherwise, an array with one or more sanVerifications is returned.
+ *
+ * @return PartnerAPITypeSanVerificationState[]
+ */
+ public function getSanVerifications()
+ {
+ $stateList = array();
+ $states = $this->_output->getSanVerificationStateResponse->sanVerifications;
+ if (is_null($states)) {
+ return $stateList;
+ }
+ $state = $states->sanVerification;
+ if (is_array($state)) {
+ foreach ($state as $s) {
+ $stateList[] = $s;
+ }
+ } else {
+ $stateList[] = $state;
+ }
+ return $stateList;
+ }
+}
diff --git a/src/operations/operationModifySNICertificate.php b/src/Operations/operationModifySNICertificate.php
similarity index 88%
rename from src/operations/operationModifySNICertificate.php
rename to src/Operations/operationModifySNICertificate.php
index b91c342..02d1adc 100644
--- a/src/operations/operationModifySNICertificate.php
+++ b/src/Operations/operationModifySNICertificate.php
@@ -1,186 +1,190 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the modifySNICertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageModifySNICertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationModifySNICertificate extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageModifySNICertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageModifySNICertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'modifySNICertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageModifySNICertificate();
- $this->_output = new PartnerAPIMessageModifySNICertificateResponse();
- }
-
- /**
- * Sets a serial number for the request.
- *
- * It is required to set a serial number or a X509 certificate.
- *
- * @param string $serialNumber
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function setSerialNumber($serialNumber)
- {
- $this->_input->modifySNICertificate->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets a X509 certificate for the request.
- *
- * It is required to set a serial number or a X509 certificate.
- *
- * @param string $X509Cert
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function setX509Cert($X509Cert)
- {
- $this->_input->modifySNICertificate->setX509Cert($X509Cert);
- return $this;
- }
-
- /**
- * Adds a added serial number to the operation's data.
- *
- * The $serialNumber argument is a string containing a serial number. It can also be an array
- * of such strings.
- * This method can be invoked several times and all passed serial numbers
- * will be added to the existing set of serial numbers.
- *
- * @param string|string[] $serialNumber
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function addAddedSerialNumber($serialNumber)
- {
- $addSerialNumbers = $this->_input->modifySNICertificate->addSerialNumbers;
- if (is_null($addSerialNumbers)) {
- $addSerialNumbers = new PartnerAPITypeAddSerialNumbers();
- $this->_input->modifySNICertificate->setAddSerialNumbers($addSerialNumbers);
- }
- if (is_array($serialNumber))
- foreach ($serialNumber as $n)
- $addSerialNumbers->addSerialNumber($n);
- else
- $addSerialNumbers->addSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Adds a removed serial number to the operation's data.
- *
- * The $serialNumber argument is a string containing a serial number. It can also be an array
- * of such strings.
- * This method can be invoked several times and all passed serial numbers
- * will be added to the existing set of serial numbers.
- *
- * @param string|string[] $serialNumber
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function addRemovedSerialNumber($serialNumber)
- {
- $removeSerialNumbers = $this->_input->modifySNICertificate->removeSerialNumbers;
- if (is_null($removeSerialNumbers)) {
- $removeSerialNumbers = new PartnerAPITypeRemoveSerialNumbers();
- $this->_input->modifySNICertificate->setRemoveSerialNumbers($removeSerialNumbers);
- }
- if (is_array($serialNumber))
- foreach ($serialNumber as $n)
- $removeSerialNumbers->addSerialNumber($n);
- else
- $removeSerialNumbers->addSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets a hash algorithm for the request.
- *
- * @param string $hashAlgorithm
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function setHashAlgorithm($hashAlgorithm)
- {
- $this->_input->modifySNICertificate->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Gets an order ID returned in a response.
- *
- * @return string
- */
- public function getOrderID()
- {
- return $this->_output->modifySNICertificateResponse->orderID;
- }
-
- /**
- * Returns invalid serial numbers contained in a response.
- *
- * This method always returns an array.
- * If there is no invalid serial number in a response an empty array is returned.
- * Otherwise, an array with one or more invalid serial numbers is returned.
- *
- * @return string[]
- */
- public function getInvalidSerialNumbers()
- {
- $numbers = $this->_output->modifySNICertificateResponse->invalidSerialNumbers;
- if (is_null($numbers))
- return array();
- $number = $numbers->serialNumber;
- if (!is_array($number))
- $number = array($number);
- return $number;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the modifySNICertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageModifySNICertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationModifySNICertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageModifySNICertificate
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageModifySNICertificateResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'modifySNICertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageModifySNICertificate();
+ $this->_output = new PartnerAPIMessageModifySNICertificateResponse();
+ }
+
+ /**
+ * Sets a serial number for the request.
+ *
+ * It is required to set a serial number or a X509 certificate.
+ *
+ * @param string $serialNumber
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->modifySNICertificate->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets a X509 certificate for the request.
+ *
+ * It is required to set a serial number or a X509 certificate.
+ *
+ * @param string $X509Cert
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function setX509Cert($X509Cert)
+ {
+ $this->_input->modifySNICertificate->setX509Cert($X509Cert);
+ return $this;
+ }
+
+ /**
+ * Adds a added serial number to the operation's data.
+ *
+ * The $serialNumber argument is a string containing a serial number. It can also be an array
+ * of such strings.
+ * This method can be invoked several times and all passed serial numbers
+ * will be added to the existing set of serial numbers.
+ *
+ * @param string|string[] $serialNumber
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function addAddedSerialNumber($serialNumber)
+ {
+ $addSerialNumbers = $this->_input->modifySNICertificate->addSerialNumbers;
+ if (is_null($addSerialNumbers)) {
+ $addSerialNumbers = new PartnerAPITypeAddSerialNumbers();
+ $this->_input->modifySNICertificate->setAddSerialNumbers($addSerialNumbers);
+ }
+ if (is_array($serialNumber)) {
+ foreach ($serialNumber as $n) {
+ $addSerialNumbers->addSerialNumber($n);
+ }
+ } else {
+ $addSerialNumbers->addSerialNumber($serialNumber);
+ }
+ return $this;
+ }
+
+ /**
+ * Adds a removed serial number to the operation's data.
+ *
+ * The $serialNumber argument is a string containing a serial number. It can also be an array
+ * of such strings.
+ * This method can be invoked several times and all passed serial numbers
+ * will be added to the existing set of serial numbers.
+ *
+ * @param string|string[] $serialNumber
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function addRemovedSerialNumber($serialNumber)
+ {
+ $removeSerialNumbers = $this->_input->modifySNICertificate->removeSerialNumbers;
+ if (is_null($removeSerialNumbers)) {
+ $removeSerialNumbers = new PartnerAPITypeRemoveSerialNumbers();
+ $this->_input->modifySNICertificate->setRemoveSerialNumbers($removeSerialNumbers);
+ }
+ if (is_array($serialNumber)) {
+ foreach ($serialNumber as $n) {
+ $removeSerialNumbers->addSerialNumber($n);
+ }
+ } else {
+ $removeSerialNumbers->addSerialNumber($serialNumber);
+ }
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm for the request.
+ *
+ * @param string $hashAlgorithm
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->modifySNICertificate->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Gets an order ID returned in a response.
+ *
+ * @return string
+ */
+ public function getOrderID()
+ {
+ return $this->_output->modifySNICertificateResponse->orderID;
+ }
+
+ /**
+ * Returns invalid serial numbers contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no invalid serial number in a response an empty array is returned.
+ * Otherwise, an array with one or more invalid serial numbers is returned.
+ *
+ * @return string[]
+ */
+ public function getInvalidSerialNumbers()
+ {
+ $numbers = $this->_output->modifySNICertificateResponse->invalidSerialNumbers;
+ if (is_null($numbers)) {
+ return array();
+ }
+ $number = $numbers->serialNumber;
+ if (!is_array($number)) {
+ $number = array($number);
+ }
+ return $number;
+ }
+}
diff --git a/src/operations/operationOrderSNICertificate.php b/src/Operations/operationOrderSNICertificate.php
similarity index 90%
rename from src/operations/operationOrderSNICertificate.php
rename to src/Operations/operationOrderSNICertificate.php
index e9a1e3d..ba5731d 100644
--- a/src/operations/operationOrderSNICertificate.php
+++ b/src/Operations/operationOrderSNICertificate.php
@@ -1,198 +1,200 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the orderSNICertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageOrderSNICertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationOrderSNICertificate extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageOrderSNICertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageOrderSNICertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'orderSNICertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageOrderSNICertificate();
- $this->_output = new PartnerAPIMessageOrderSNICertificateResponse();
- }
-
- /**
- * Sets a CSR for the request.
- *
- * Setting this value is required.
- *
- * @param string $csr
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function setCSR($csr)
- {
- $this->_input->orderSNICertificate->orderSNIParameters->setCSR($csr);
- return $this;
- }
-
- /**
- * Sets a language to be used for the request.
- *
- * Default is 'pl'.
- *
- * @param string|null $lang
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function setLanguage($lang)
- {
- $this->_input->orderSNICertificate->orderSNIParameters->setLanguage($lang);
- return $this;
- }
-
- /**
- * Sets a hash algorithm to be used for the request.
- *
- * @param string|null $hashAlgorithm
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function setHashAlgorithm($hashAlgorithm)
- {
- $this->_input->orderSNICertificate->orderSNIParameters->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Adds a new serial number to the operation's data.
- *
- * The $number argument is a string containing a serial number. It can also be an array
- * of such strings.
- * This method can be invoked several times and all passed serial numbers
- * will be added to the existing set of serial numbers.
- *
- * It is required to set at least one serial number.
- *
- * @param string|string[] $number
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function addSerialNumber($number)
- {
- $serialNumbers = $this->_input->orderSNICertificate->serialNumbers;
- if (is_null($serialNumbers)) {
- $serialNumbers = new PartnerAPITypeSerialNumbers();
- $this->_input->orderSNICertificate->setSerialNumbers($serialNumbers);
- }
- if (is_array($number))
- foreach ($number as $n)
- $serialNumbers->addSerialNumber($n);
- else
- $serialNumbers->addSerialNumber($number);
- return $this;
- }
-
- /**
- * Sets all the contact data of a requestor.
- *
- * All arguments are required apart from the last which can be NULL.
- *
- * @param string $firstName
- * @param string $lastName
- * @param string $email
- * @param string $phone
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function setRequestorInfo($firstName, $lastName, $email, $phone)
- {
- $ri = $this->_input->orderSNICertificate->requestorInfo;
- $ri->setFirstName($firstName)->setLastName($lastName)
- ->setEmail($email)->setPhone($phone);
- return $this;
- }
-
- /**
- * Sets an organization information.
- *
- * It is not required to set organization information but if you need or have to set it
- * all the arguments are required.
- *
- * @param string $taxNumber The tax identification number
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function setOrganizationInfo($taxNumber)
- {
- $oi = new PartnerAPITypeOrganizationInfo();
- $oi->setTaxIdentificationNumber($taxNumber);
- $this->_input->orderSNICertificate->setOrganizationInfo($oi);
- return $this;
- }
-
- /**
- * Gets an order ID returned in a response.
- *
- * @return string
- */
- public function getOrderID()
- {
- return $this->_output->orderSNICertificateResponse->orderID;
- }
-
- /**
- * Returns invalid serial numbers contained in a response.
- *
- * This method always returns an array.
- * If there is no invalid serial number in a response an empty array is returned.
- * Otherwise, an array with one or more invalid serial numbers is returned.
- *
- * @return string[]
- */
- public function getInvalidSerialNumbers()
- {
- $numbers = $this->_output->orderSNICertificateResponse->invalidSerialNumbers;
- if (is_null($numbers))
- return array();
- $number = $numbers->serialNumber;
- if (!is_array($number))
- $number = array($number);
- return $number;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the orderSNICertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageOrderSNICertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationOrderSNICertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageOrderSNICertificate
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageOrderSNICertificateResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'orderSNICertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageOrderSNICertificate();
+ $this->_output = new PartnerAPIMessageOrderSNICertificateResponse();
+ }
+
+ /**
+ * Sets a CSR for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $csr
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function setCSR($csr)
+ {
+ $this->_input->orderSNICertificate->orderSNIParameters->setCSR($csr);
+ return $this;
+ }
+
+ /**
+ * Sets a language to be used for the request.
+ *
+ * Default is 'pl'.
+ *
+ * @param string|null $lang
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function setLanguage($lang)
+ {
+ $this->_input->orderSNICertificate->orderSNIParameters->setLanguage($lang);
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm to be used for the request.
+ *
+ * @param string|null $hashAlgorithm
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->orderSNICertificate->orderSNIParameters->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Adds a new serial number to the operation's data.
+ *
+ * The $number argument is a string containing a serial number. It can also be an array
+ * of such strings.
+ * This method can be invoked several times and all passed serial numbers
+ * will be added to the existing set of serial numbers.
+ *
+ * It is required to set at least one serial number.
+ *
+ * @param string|string[] $number
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function addSerialNumber($number)
+ {
+ $serialNumbers = $this->_input->orderSNICertificate->serialNumbers;
+ if (is_null($serialNumbers)) {
+ $serialNumbers = new PartnerAPITypeSerialNumbers();
+ $this->_input->orderSNICertificate->setSerialNumbers($serialNumbers);
+ }
+ if (is_array($number)) {
+ foreach ($number as $n) {
+ $serialNumbers->addSerialNumber($n);
+ }
+ } else {
+ $serialNumbers->addSerialNumber($number);
+ }
+ return $this;
+ }
+
+ /**
+ * Sets all the contact data of a requestor.
+ *
+ * All arguments are required apart from the last which can be NULL.
+ *
+ * @param string $firstName
+ * @param string $lastName
+ * @param string $email
+ * @param string $phone
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function setRequestorInfo($firstName, $lastName, $email, $phone)
+ {
+ $ri = $this->_input->orderSNICertificate->requestorInfo;
+ $ri->setFirstName($firstName)->setLastName($lastName)
+ ->setEmail($email)->setPhone($phone);
+ return $this;
+ }
+
+ /**
+ * Sets an organization information.
+ *
+ * It is not required to set organization information but if you need or have to set it
+ * all the arguments are required.
+ *
+ * @param string $taxNumber The tax identification number
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function setOrganizationInfo($taxNumber)
+ {
+ $oi = new PartnerAPITypeOrganizationInfo();
+ $oi->setTaxIdentificationNumber($taxNumber);
+ $this->_input->orderSNICertificate->setOrganizationInfo($oi);
+ return $this;
+ }
+
+ /**
+ * Gets an order ID returned in a response.
+ *
+ * @return string
+ */
+ public function getOrderID()
+ {
+ return $this->_output->orderSNICertificateResponse->orderID;
+ }
+
+ /**
+ * Returns invalid serial numbers contained in a response.
+ *
+ * This method always returns an array.
+ * If there is no invalid serial number in a response an empty array is returned.
+ * Otherwise, an array with one or more invalid serial numbers is returned.
+ *
+ * @return string[]
+ */
+ public function getInvalidSerialNumbers()
+ {
+ $numbers = $this->_output->orderSNICertificateResponse->invalidSerialNumbers;
+ if (is_null($numbers)) {
+ return array();
+ }
+ $number = $numbers->serialNumber;
+ if (!is_array($number)) {
+ $number = array($number);
+ }
+ return $number;
+ }
+}
diff --git a/src/operations/operationPerformSanVerification.php b/src/Operations/operationPerformSanVerification.php
similarity index 87%
rename from src/operations/operationPerformSanVerification.php
rename to src/Operations/operationPerformSanVerification.php
index 78748e8..60cc28a 100644
--- a/src/operations/operationPerformSanVerification.php
+++ b/src/Operations/operationPerformSanVerification.php
@@ -1,72 +1,72 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the performSanVerification WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessagePerformSanVerificationResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationPerformSanVerification extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessagePerformSanVerification
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessagePerformSanVerificationResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'performSanVerification';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessagePerformSanVerification();
- $this->_output = new PartnerAPIMessagePerformSanVerificationResponse();
- }
-
- /**
- * Sets a code for the request.
- *
- * Setting this value is required.
- *
- * @param string $code
- * @return PartnerAPIOperationPerformSanVerification
- */
- public function setCode($code) {
- $this->_input->performSanVerification->setCode($code);
- return $this;
- }
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the performSanVerification WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessagePerformSanVerificationResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationPerformSanVerification extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessagePerformSanVerification
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessagePerformSanVerificationResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'performSanVerification';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessagePerformSanVerification();
+ $this->_output = new PartnerAPIMessagePerformSanVerificationResponse();
+ }
+
+ /**
+ * Sets a code for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $code
+ * @return PartnerAPIOperationPerformSanVerification
+ */
+ public function setCode($code)
+ {
+ $this->_input->performSanVerification->setCode($code);
+ return $this;
+ }
+}
diff --git a/src/operations/operationQuickOrder.php b/src/Operations/operationQuickOrder.php
similarity index 88%
rename from src/operations/operationQuickOrder.php
rename to src/Operations/operationQuickOrder.php
index 49b5ac3..2172c52 100644
--- a/src/operations/operationQuickOrder.php
+++ b/src/Operations/operationQuickOrder.php
@@ -1,530 +1,562 @@
-
-
-
-
-
- */
-
-/**
- * This class represents the quickOrder WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageQuickOrderResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationQuickOrder extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageQuickOrder
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageQuickOrderResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'quickOrder';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageQuickOrder();
- $this->_output = new PartnerAPIMessageQuickOrderResponse();
- }
-
- /**
- * Sets a CSR for the request.
- *
- * Setting this value is required.
- *
- * @param string $csr
- * @return PartnerAPIOperationQuickOrder
- */
- public function setCSR($csr) {
- $this->_input->quickOrder->orderParameters->setCSR($csr);
- return $this;
- }
-
- /**
- * Sets a customer name.
- *
- * Setting this value is required.
- *
- * @param string $customer
- * @return PartnerAPIOperationQuickOrder
- */
- public function setCustomer($customer) {
- $this->_input->quickOrder->orderParameters->setCustomer($customer);
- return $this;
- }
-
- /**
- * Sets a language to be used for e-mails.
- *
- * Default is 'pl'. Also acceptable are 'en' and 'ru'.
- *
- * @param string $lang
- * @return PartnerAPIOperationQuickOrder
- */
- public function setLanguage($lang) {
- $this->_input->quickOrder->orderParameters->setLanguage($lang);
- return $this;
- }
-
- /**
- * Sets an order identificator.
- *
- * If not set it will be generated automatically by the system.
- * This identificator have to be unique and it is used to refer to the request.
- *
- * @param string $id
- * @return PartnerAPIOperationQuickOrder
- */
- public function setOrderID($id) {
- $this->_input->quickOrder->orderParameters->setOrderID($id);
- return $this;
- }
-
- /**
- * Sets a three-letter product code.
- *
- * Setting this value is required.
- *
- * @param string $code
- * @return PartnerAPIOperationQuickOrder
- */
- public function setProductCode($code) {
- $this->_input->quickOrder->orderParameters->setProductCode($code);
- return $this;
- }
-
- /**
- * Sets a string identifying web browser and operating system.
- *
- * @param string $userAgent
- * @return PartnerAPIOperationQuickOrder
- */
- public function setUserAgent($userAgent) {
- $this->_input->quickOrder->orderParameters->setUserAgent($userAgent);
- return $this;
- }
-
- /**
- * Sets a hash algorithm for a certificate.
- *
- * @param string $hashAlgorithm
- * @return PartnerAPIOperationQuickOrder
- */
- public function setHashAlgorithm($hashAlgorithm) {
- $this->_input->quickOrder->orderParameters->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Sets an email for a SSL certificate.
- *
- * @param string $email
- * @return PartnerAPIOperationQuickOrder
- */
- public function setEmail($email) {
- $this->_input->quickOrder->orderParameters->setEmail($email);
- return $this;
- }
-
- /**
- * Sets all the contact data of a requestor.
- *
- * All arguments are required apart from the last which can be NULL.
- *
- * @param string $firstName
- * @param string $lastName
- * @param string $email
- * @param string $phone
- * @return PartnerAPIOperationQuickOrder
- */
- public function setRequestorInfo($firstName, $lastName, $email, $phone) {
- $ri = $this->_input->quickOrder->requestorInfo;
- $ri->setFirstName($firstName)->setLastName($lastName)
- ->setEmail($email)->setPhone($phone);
- return $this;
- }
-
- /**
- * Sets an organization information.
- *
- * It is not required to set organization information but if you need or have to set it
- * all the arguments are required.
- *
- * @param string $taxNumber The tax identification number
- * @return PartnerAPIOperationQuickOrder
- */
- public function setOrganizationInfo($taxNumber) {
- $oi = new PartnerAPITypeOrganizationInfo();
- $oi->setTaxIdentificationNumber($taxNumber);
- $this->_input->quickOrder->setOrganizationInfo($oi);
- return $this;
- }
-
- /**
- * Sets an overrided CSR commonName.
- *
- * It is not required to set this but if you need to override a commonName from CSR
- * then you have to change this as same as SAN entries and approvers.
- *
- * @param string $commonName The commonName to override CN given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setCommonName($commonName) {
- $this->_input->quickOrder->orderParameters->setCommonName($commonName);
- return $this;
- }
-
- /**
- * Sets an overrided CSR organization.
- *
- * It is not required to set this but if you need to override a organization from CSR
- * use this method.
- *
- * @param string $organization The organization to override O given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setOrganization($organization) {
- $this->_input->quickOrder->orderParameters->setOrganization($organization);
- return $this;
- }
-
- /**
- * Sets an overrided CSR organizational unit.
- *
- * It is not required to set this but if you need to override a organizational unit from CSR
- * use this method.
- *
- * @param string $organizationalUnit The Organizational Unit to override OU given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setOrganizationalUnit($organizationalUnit) {
- $this->_input->quickOrder->orderParameters->setOrganizationalUnit($organizationalUnit);
- return $this;
- }
-
- /**
- * Sets an overrided CSR locality.
- *
- * It is not required to set this but if you need to override a locality from CSR
- * use this method.
- *
- * @param string $locality The locality to override L given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setLocality($locality) {
- $this->_input->quickOrder->orderParameters->setLocality($locality);
- return $this;
- }
-
- /**
- * Sets an overrided CSR country.
- *
- * It is not required to set this but if you need to override a country from CSR
- * use this method.
- *
- * @param string $country The country to override C given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setCountry($country) {
- $this->_input->quickOrder->orderParameters->setCountry($country);
- return $this;
- }
-
- /**
- * Sets an overrided CSR state.
- *
- * It is not required to set this but if you need to override a state from CSR
- * use this method.
- *
- * @param string $state The state to override state given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setState($state) {
- $this->_input->quickOrder->orderParameters->setState($state);
- return $this;
- }
-
- /**
- * Sets an overrided CSR serialNumber.
- *
- * It is not required to set this but if you need to override a serialNumber from CSR
- * use this method.
- *
- * @param string $serialNumber The serialNumber to override serialNumber given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setSerialNumber($serialNumber) {
- $this->_input->quickOrder->orderParameters->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets an overrided CSR businessCategory.
- *
- * It is not required to set this but if you need to override a businessCategory from CSR
- * use this method.
- *
- * @param string $businessCategory The businessCategory to override businessCategory given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setBusinessCategory($businessCategory) {
- $this->_input->quickOrder->orderParameters->setBusinessCategory($businessCategory);
- return $this;
- }
-
- /**
- * Sets an overrided CSR streetAddress.
- *
- * It is not required to set this but if you need to override a streetAddress from CSR
- * use this method.
- *
- * @param string $streetAddress The streetAddress to override streetAddress given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setStreetAddress($streetAddress) {
- $this->_input->quickOrder->orderParameters->setStreetAddress($streetAddress);
- return $this;
- }
-
- /**
- * Sets an overrided CSR postalCode.
- *
- * It is not required to set this but if you need to override a postalCode from CSR
- * use this method.
- *
- * @param string $postalCode The postalCode to override postalCode given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setPostalCode($postalCode) {
- $this->_input->quickOrder->orderParameters->setPostalCode($postalCode);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joiln.
- *
- * It is not required to set this but if you need to override a joiln from CSR
- * use this method.
- *
- * @param string $joiln The joiln to override joiln given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setJoiln($joiln) {
- $this->_input->quickOrder->orderParameters->setJoiln($joiln);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joisopn.
- *
- * It is not required to set this but if you need to override a joisopn from CSR
- * use this method.
- *
- * @param string $joisopn The joisopn to override joisopn given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setJoisopn($joisopn) {
- $this->_input->quickOrder->orderParameters->setJoisopn($joisopn);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joisocn.
- *
- * It is not required to set this but if you need to override a joisocn from CSR
- * use this method.
- *
- * @param string $joisocn The joisocn to override joisocn given in CSR
- * @return PartnerAPIOperationQuickOrder
- */
- public function setJoisocn($joisocn) {
- $this->_input->quickOrder->orderParameters->setJoisocn($joisocn);
- return $this;
- }
-
- /**
- * Sets a revocation contact email.
- *
- * It is not required to set this but if your certificate needs to be revoked
- * we will contact you using provided email.
- *
- * @param string $revocationContactEmail Contact email used in certificate's revocation process
- * @return PartnerAPIOperationQuickOrder
- */
- public function setRevocationContactEmail($revocationContactEmail) {
- $this->_input->quickOrder->orderParameters->setRevocationContactEmail($revocationContactEmail);
- return $this;
- }
-
- /**
- * Sets a shortened validity period.
- *
- * It is not required to set this unless you want your certificate to be valid less days than the product allows.
- * In that case please specify your requested certificate's expiration date within product's allowed validity range.
- *
- * @param string $shortenedValidityPeriod Custom certificate's expiration date
- * @return PartnerAPIOperationQuickOrder
- */
- public function setShortenedValidityPeriod($shortenedValidityPeriod) {
- $this->_input->quickOrder->orderParameters->setShortenedValidityPeriod($shortenedValidityPeriod);
- return $this;
- }
-
- /**
- * Adds a domain name as a SAN entry in a certificate.
- *
- * SAN entries are optional.
- * If given, the $domain argument must be a correct domain name or an array
- * of such domain names.
- *
- * @param string|string[] $domain
- * @return PartnerAPIOperationQuickOrder
- */
- public function addSANEntry($domain) {
- if (!is_array($domain))
- $domain = array($domain);
- $SANEntries = $this->_input->quickOrder->SANEntries;
- if (is_null($SANEntries)) {
- $SANEntries = new PartnerAPITypeSanEntries();
- $this->_input->quickOrder->setSANEntries($SANEntries);
- }
- foreach ($domain as $d) {
- $san = new PartnerAPITypeSanEntry();
- $san->setDNSName($d);
- $SANEntries->addSANEntry($san);
- }
- return $this;
- }
-
- /**
- * Sets the approverMethod option for SANApprover.
- *
- * This option determines which approve method will be used for domain verification.
- *
- * @param string $approverMethod
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverMethod($approverMethod) {
- $approver = $this->_input->quickOrder->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->quickOrder->setSANApprover($approver);
- }
- $approver->setApproverMethod($approverMethod);
- return $this;
- }
-
- /**
- * Sets the approverEmail option for SANApprover.
- *
- * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
- * This method cannot be used with EMAIL approve method.
- *
- * @param string $approverEmail
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverEmail($approverEmail) {
- $approver = $this->_input->quickOrder->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->quickOrder->setSANApprover($approver);
- }
- $approver->setApproverEmail($approverEmail);
- return $this;
- }
-
- /**
- * Sets the approverEmailPrefix option for SANApprover.
- *
- * This option determines which e-mail prefix will be used for EMAIL approve method.
- * This method cannot be used with FILE or DNS approve method.
- *
- * @param string $approverEmailPrefix
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverEmailPrefix($approverEmailPrefix) {
- $approver = $this->_input->quickOrder->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->quickOrder->setSANApprover($approver);
- }
- $approver->setApproverEmailPrefix($approverEmailPrefix);
- return $this;
- }
-
- /**
- * Sets the verificationNotificationEnabled option for SANApprover.
- *
- * This option determines if verification e-mails for all approvers will be sent or not.
- *
- * @param boolean $yes_or_no
- * @return PartnerAPIOperationQuickOrder
- */
- public function setVerificationNotificationEnabled($yes_or_no) {
- $approver = $this->_input->quickOrder->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->quickOrder->setSANApprover($approver);
- }
- $approver->setVerificationNotificationEnabled($yes_or_no);
- return $this;
- }
-
- /**
- * Gets an order ID returned in a response.
- *
- * Notice: this method returns the order ID returned in a response, not the order ID
- * set for the request. If an order ID has been set, it will be returned
- * in a response, but if it was not set, a new generated order ID will be returned.
- *
- * @return string
- */
- public function getOrderID() {
- return $this->_output->quickOrderResponse->orderID;
- }
-
- /**
- * Returns SANVerification entity containing verification data from a response.
- *
- * If there is no verification in the response a NULL is returned.
- *
- * @return PartnerAPITypeSanVerification
- */
- public function getSANVerification() {
- return $this->_output->quickOrderResponse->SANVerification;
- }
-
-}
+
+
+
+
+
+ */
+
+/**
+ * This class represents the quickOrder WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageQuickOrderResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationQuickOrder extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageQuickOrder
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageQuickOrderResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'quickOrder';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageQuickOrder();
+ $this->_output = new PartnerAPIMessageQuickOrderResponse();
+ }
+
+ /**
+ * Sets a CSR for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $csr
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setCSR($csr)
+ {
+ $this->_input->quickOrder->orderParameters->setCSR($csr);
+ return $this;
+ }
+
+ /**
+ * Sets a customer name.
+ *
+ * Setting this value is required.
+ *
+ * @param string $customer
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setCustomer($customer)
+ {
+ $this->_input->quickOrder->orderParameters->setCustomer($customer);
+ return $this;
+ }
+
+ /**
+ * Sets a language to be used for e-mails.
+ *
+ * Default is 'pl'. Also acceptable are 'en' and 'ru'.
+ *
+ * @param string $lang
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setLanguage($lang)
+ {
+ $this->_input->quickOrder->orderParameters->setLanguage($lang);
+ return $this;
+ }
+
+ /**
+ * Sets an order identificator.
+ *
+ * If not set it will be generated automatically by the system.
+ * This identificator have to be unique and it is used to refer to the request.
+ *
+ * @param string $id
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setOrderID($id)
+ {
+ $this->_input->quickOrder->orderParameters->setOrderID($id);
+ return $this;
+ }
+
+ /**
+ * Sets a three-letter product code.
+ *
+ * Setting this value is required.
+ *
+ * @param string $code
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setProductCode($code)
+ {
+ $this->_input->quickOrder->orderParameters->setProductCode($code);
+ return $this;
+ }
+
+ /**
+ * Sets a string identifying web browser and operating system.
+ *
+ * @param string $userAgent
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setUserAgent($userAgent)
+ {
+ $this->_input->quickOrder->orderParameters->setUserAgent($userAgent);
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm for a certificate.
+ *
+ * @param string $hashAlgorithm
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->quickOrder->orderParameters->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Sets an email for a SSL certificate.
+ *
+ * @param string $email
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setEmail($email)
+ {
+ $this->_input->quickOrder->orderParameters->setEmail($email);
+ return $this;
+ }
+
+ /**
+ * Sets all the contact data of a requestor.
+ *
+ * All arguments are required apart from the last which can be NULL.
+ *
+ * @param string $firstName
+ * @param string $lastName
+ * @param string $email
+ * @param string $phone
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setRequestorInfo($firstName, $lastName, $email, $phone)
+ {
+ $ri = $this->_input->quickOrder->requestorInfo;
+ $ri->setFirstName($firstName)->setLastName($lastName)
+ ->setEmail($email)->setPhone($phone);
+ return $this;
+ }
+
+ /**
+ * Sets an organization information.
+ *
+ * It is not required to set organization information but if you need or have to set it
+ * all the arguments are required.
+ *
+ * @param string $taxNumber The tax identification number
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setOrganizationInfo($taxNumber)
+ {
+ $oi = new PartnerAPITypeOrganizationInfo();
+ $oi->setTaxIdentificationNumber($taxNumber);
+ $this->_input->quickOrder->setOrganizationInfo($oi);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR commonName.
+ *
+ * It is not required to set this but if you need to override a commonName from CSR
+ * then you have to change this as same as SAN entries and approvers.
+ *
+ * @param string $commonName The commonName to override CN given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setCommonName($commonName)
+ {
+ $this->_input->quickOrder->orderParameters->setCommonName($commonName);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR organization.
+ *
+ * It is not required to set this but if you need to override a organization from CSR
+ * use this method.
+ *
+ * @param string $organization The organization to override O given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setOrganization($organization)
+ {
+ $this->_input->quickOrder->orderParameters->setOrganization($organization);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR organizational unit.
+ *
+ * It is not required to set this but if you need to override a organizational unit from CSR
+ * use this method.
+ *
+ * @param string $organizationalUnit The Organizational Unit to override OU given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setOrganizationalUnit($organizationalUnit)
+ {
+ $this->_input->quickOrder->orderParameters->setOrganizationalUnit($organizationalUnit);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR locality.
+ *
+ * It is not required to set this but if you need to override a locality from CSR
+ * use this method.
+ *
+ * @param string $locality The locality to override L given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setLocality($locality)
+ {
+ $this->_input->quickOrder->orderParameters->setLocality($locality);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR country.
+ *
+ * It is not required to set this but if you need to override a country from CSR
+ * use this method.
+ *
+ * @param string $country The country to override C given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setCountry($country)
+ {
+ $this->_input->quickOrder->orderParameters->setCountry($country);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR state.
+ *
+ * It is not required to set this but if you need to override a state from CSR
+ * use this method.
+ *
+ * @param string $state The state to override state given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setState($state)
+ {
+ $this->_input->quickOrder->orderParameters->setState($state);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR serialNumber.
+ *
+ * It is not required to set this but if you need to override a serialNumber from CSR
+ * use this method.
+ *
+ * @param string $serialNumber The serialNumber to override serialNumber given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->quickOrder->orderParameters->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR businessCategory.
+ *
+ * It is not required to set this but if you need to override a businessCategory from CSR
+ * use this method.
+ *
+ * @param string $businessCategory The businessCategory to override businessCategory given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setBusinessCategory($businessCategory)
+ {
+ $this->_input->quickOrder->orderParameters->setBusinessCategory($businessCategory);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR streetAddress.
+ *
+ * It is not required to set this but if you need to override a streetAddress from CSR
+ * use this method.
+ *
+ * @param string $streetAddress The streetAddress to override streetAddress given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setStreetAddress($streetAddress)
+ {
+ $this->_input->quickOrder->orderParameters->setStreetAddress($streetAddress);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR postalCode.
+ *
+ * It is not required to set this but if you need to override a postalCode from CSR
+ * use this method.
+ *
+ * @param string $postalCode The postalCode to override postalCode given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setPostalCode($postalCode)
+ {
+ $this->_input->quickOrder->orderParameters->setPostalCode($postalCode);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joiln.
+ *
+ * It is not required to set this but if you need to override a joiln from CSR
+ * use this method.
+ *
+ * @param string $joiln The joiln to override joiln given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setJoiln($joiln)
+ {
+ $this->_input->quickOrder->orderParameters->setJoiln($joiln);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joisopn.
+ *
+ * It is not required to set this but if you need to override a joisopn from CSR
+ * use this method.
+ *
+ * @param string $joisopn The joisopn to override joisopn given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setJoisopn($joisopn)
+ {
+ $this->_input->quickOrder->orderParameters->setJoisopn($joisopn);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joisocn.
+ *
+ * It is not required to set this but if you need to override a joisocn from CSR
+ * use this method.
+ *
+ * @param string $joisocn The joisocn to override joisocn given in CSR
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setJoisocn($joisocn)
+ {
+ $this->_input->quickOrder->orderParameters->setJoisocn($joisocn);
+ return $this;
+ }
+
+ /**
+ * Sets a revocation contact email.
+ *
+ * It is not required to set this but if your certificate needs to be revoked
+ * we will contact you using provided email.
+ *
+ * @param string $revocationContactEmail Contact email used in certificate's revocation process
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setRevocationContactEmail($revocationContactEmail)
+ {
+ $this->_input->quickOrder->orderParameters->setRevocationContactEmail($revocationContactEmail);
+ return $this;
+ }
+
+ /**
+ * Sets a shortened validity period.
+ *
+ * It is not required to set this unless you want your certificate to be valid less days than the product allows.
+ * In that case please specify your requested certificate's expiration date within product's allowed validity range.
+ *
+ * @param string $shortenedValidityPeriod Custom certificate's expiration date
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setShortenedValidityPeriod($shortenedValidityPeriod)
+ {
+ $this->_input->quickOrder->orderParameters->setShortenedValidityPeriod($shortenedValidityPeriod);
+ return $this;
+ }
+
+ /**
+ * Adds a domain name as a SAN entry in a certificate.
+ *
+ * SAN entries are optional.
+ * If given, the $domain argument must be a correct domain name or an array
+ * of such domain names.
+ *
+ * @param string|string[] $domain
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function addSANEntry($domain)
+ {
+ if (!is_array($domain)) {
+ $domain = array($domain);
+ }
+ $SANEntries = $this->_input->quickOrder->SANEntries;
+ if (is_null($SANEntries)) {
+ $SANEntries = new PartnerAPITypeSanEntries();
+ $this->_input->quickOrder->setSANEntries($SANEntries);
+ }
+ foreach ($domain as $d) {
+ $san = new PartnerAPITypeSanEntry();
+ $san->setDNSName($d);
+ $SANEntries->addSANEntry($san);
+ }
+ return $this;
+ }
+
+ /**
+ * Sets the approverMethod option for SANApprover.
+ *
+ * This option determines which approve method will be used for domain verification.
+ *
+ * @param string $approverMethod
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverMethod($approverMethod)
+ {
+ $approver = $this->_input->quickOrder->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->quickOrder->setSANApprover($approver);
+ }
+ $approver->setApproverMethod($approverMethod);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmail option for SANApprover.
+ *
+ * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
+ * This method cannot be used with EMAIL approve method.
+ *
+ * @param string $approverEmail
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverEmail($approverEmail)
+ {
+ $approver = $this->_input->quickOrder->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->quickOrder->setSANApprover($approver);
+ }
+ $approver->setApproverEmail($approverEmail);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmailPrefix option for SANApprover.
+ *
+ * This option determines which e-mail prefix will be used for EMAIL approve method.
+ * This method cannot be used with FILE or DNS approve method.
+ *
+ * @param string $approverEmailPrefix
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverEmailPrefix($approverEmailPrefix)
+ {
+ $approver = $this->_input->quickOrder->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->quickOrder->setSANApprover($approver);
+ }
+ $approver->setApproverEmailPrefix($approverEmailPrefix);
+ return $this;
+ }
+
+ /**
+ * Sets the verificationNotificationEnabled option for SANApprover.
+ *
+ * This option determines if verification e-mails for all approvers will be sent or not.
+ *
+ * @param boolean $yes_or_no
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setVerificationNotificationEnabled($yes_or_no)
+ {
+ $approver = $this->_input->quickOrder->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->quickOrder->setSANApprover($approver);
+ }
+ $approver->setVerificationNotificationEnabled($yes_or_no);
+ return $this;
+ }
+
+ /**
+ * Gets an order ID returned in a response.
+ *
+ * Notice: this method returns the order ID returned in a response, not the order ID
+ * set for the request. If an order ID has been set, it will be returned
+ * in a response, but if it was not set, a new generated order ID will be returned.
+ *
+ * @return string
+ */
+ public function getOrderID()
+ {
+ return $this->_output->quickOrderResponse->orderID;
+ }
+
+ /**
+ * Returns SANVerification entity containing verification data from a response.
+ *
+ * If there is no verification in the response a NULL is returned.
+ *
+ * @return PartnerAPITypeSanVerification
+ */
+ public function getSANVerification()
+ {
+ return $this->_output->quickOrderResponse->SANVerification;
+ }
+}
diff --git a/src/operations/operationReissueCertificate.php b/src/Operations/operationReissueCertificate.php
similarity index 93%
rename from src/operations/operationReissueCertificate.php
rename to src/Operations/operationReissueCertificate.php
index efdf379..2d0a9ae 100644
--- a/src/operations/operationReissueCertificate.php
+++ b/src/Operations/operationReissueCertificate.php
@@ -1,260 +1,259 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the reissueCertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageReissueCertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationReissueCertificate extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageReissueCertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageReissueCertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'reissueCertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageReissueCertificate();
- $this->_output = new PartnerAPIMessageReissueCertificateResponse();
- }
-
- /**
- * Sets a serial number for the request.
- *
- * Setting this value is optional. However, either a serial number or a certificate in PEM format has to be set.
- *
- * @param string $serialNumber
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setSerialNumber($serialNumber)
- {
- $this->_input->reissueCertificate->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets a certificate in PEM format for the request.
- *
- * Setting this value is optional. However, either a serial number or a certificate in PEM format has to be set.
- *
- * @param string $X509Cert
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setX509Cert($X509Cert)
- {
- $this->_input->reissueCertificate->setX509Cert($X509Cert);
- return $this;
- }
-
- /**
- * Sets a hash algorithm for the request.
- *
- * Setting this value is optional.
- *
- * @param string $hashAlgorithm
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setHashAlgorithm($hashAlgorithm)
- {
- $this->_input->reissueCertificate->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Sets a CSR for the request.
- *
- * Setting this value is optional.
- *
- * @param string $CSR
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setCSR($CSR)
- {
- $this->_input->reissueCertificate->setCSR($CSR);
- return $this;
- }
-
- /**
- * Adds a domain name as a SAN entry in a certificate.
- *
- * SAN entries are optional.
- * If given, the $domain argument must be a correct domain name or an array
- * of such domain names.
- *
- * @param string|string[] $domain
- * @return PartnerAPIOperationReissueCertificate
- */
- public function addSANEntry($domain)
- {
- if (!is_array($domain))
- $domain = array($domain);
- $SANEntries = $this->_input->reissueCertificate->SANEntries;
- if (is_null($SANEntries)) {
- $SANEntries = new PartnerAPITypeSanEntries();
- $this->_input->reissueCertificate->setSANEntries($SANEntries);
- }
- foreach ($domain as $d) {
- $san = new PartnerAPITypeSanEntry();
- $san->setDNSName($d);
- $SANEntries->addSANEntry($san);
- }
- return $this;
- }
-
- /**
- * Sets the approverMethod option for SANApprover.
- *
- * This option determines which approve method will be used for domain verification.
- *
- * @param string $approverMethod
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setApproverMethod($approverMethod)
- {
- $approver = $this->_input->reissueCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->reissueCertificate->setSANApprover($approver);
- }
- $approver->setApproverMethod($approverMethod);
- return $this;
- }
-
- /**
- * Sets the approverEmail option for SANApprover.
- *
- * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
- * This method cannot be used with EMAIL approve method.
- *
- * @param string $approverEmail
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setApproverEmail($approverEmail)
- {
- $approver = $this->_input->reissueCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->reissueCertificate->setSANApprover($approver);
- }
- $approver->setApproverEmail($approverEmail);
- return $this;
- }
-
- /**
- * Sets the approverEmailPrefix option for SANApprover.
- *
- * This option determines which e-mail prefix will be used for EMAIL approve method.
- * This method cannot be used with FILE or DNS approve method.
- *
- * @param string $approverEmailPrefix
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setApproverEmailPrefix($approverEmailPrefix)
- {
- $approver = $this->_input->reissueCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->reissueCertificate->setSANApprover($approver);
- }
- $approver->setApproverEmailPrefix($approverEmailPrefix);
- return $this;
- }
-
- /**
- * Sets the verificationNotificationEnabled option for SANApprover.
- *
- * This option determines if verification e-mails for all approvers will be sent or not.
- *
- * @param boolean $yes_or_no
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setVerificationNotificationEnabled($yes_or_no)
- {
- $approver = $this->_input->reissueCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->reissueCertificate->setSANApprover($approver);
- }
- $approver->setVerificationNotificationEnabled($yes_or_no);
- return $this;
- }
-
- /**
- * Sets the userAgent for the request
- *
- * @param string $userAgent
- * @return PartnerAPIOperationReissueCertificate
- */
- public function setUserAgent($userAgent)
- {
- $this->_input->reissueCertificate->setUserAgent($userAgent);
- return $this;
- }
-
- /**
- * Returns an order ID contained in a response.
- *
- * @return string
- */
- public function getOrderID()
- {
- return $this->_output->reissueCertificateResponse->orderID;
- }
-
- /**
- * Returns SANVerification entity containing verification data from a response.
- *
- * If there is no verification in the response a NULL is returned.
- *
- * @return PartnerAPITypeSanVerification
- */
- public function getSANVerification()
- {
- return $this->_output->reissueCertificateResponse->SANVerification;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the reissueCertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageReissueCertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationReissueCertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageReissueCertificate
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageReissueCertificateResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'reissueCertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageReissueCertificate();
+ $this->_output = new PartnerAPIMessageReissueCertificateResponse();
+ }
+
+ /**
+ * Sets a serial number for the request.
+ *
+ * Setting this value is optional. However, either a serial number or a certificate in PEM format has to be set.
+ *
+ * @param string $serialNumber
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->reissueCertificate->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets a certificate in PEM format for the request.
+ *
+ * Setting this value is optional. However, either a serial number or a certificate in PEM format has to be set.
+ *
+ * @param string $X509Cert
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setX509Cert($X509Cert)
+ {
+ $this->_input->reissueCertificate->setX509Cert($X509Cert);
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm for the request.
+ *
+ * Setting this value is optional.
+ *
+ * @param string $hashAlgorithm
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->reissueCertificate->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Sets a CSR for the request.
+ *
+ * Setting this value is optional.
+ *
+ * @param string $CSR
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setCSR($CSR)
+ {
+ $this->_input->reissueCertificate->setCSR($CSR);
+ return $this;
+ }
+
+ /**
+ * Adds a domain name as a SAN entry in a certificate.
+ *
+ * SAN entries are optional.
+ * If given, the $domain argument must be a correct domain name or an array
+ * of such domain names.
+ *
+ * @param string|string[] $domain
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function addSANEntry($domain)
+ {
+ if (!is_array($domain)) {
+ $domain = array($domain);
+ }
+ $SANEntries = $this->_input->reissueCertificate->SANEntries;
+ if (is_null($SANEntries)) {
+ $SANEntries = new PartnerAPITypeSanEntries();
+ $this->_input->reissueCertificate->setSANEntries($SANEntries);
+ }
+ foreach ($domain as $d) {
+ $san = new PartnerAPITypeSanEntry();
+ $san->setDNSName($d);
+ $SANEntries->addSANEntry($san);
+ }
+ return $this;
+ }
+
+ /**
+ * Sets the approverMethod option for SANApprover.
+ *
+ * This option determines which approve method will be used for domain verification.
+ *
+ * @param string $approverMethod
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setApproverMethod($approverMethod)
+ {
+ $approver = $this->_input->reissueCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->reissueCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverMethod($approverMethod);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmail option for SANApprover.
+ *
+ * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
+ * This method cannot be used with EMAIL approve method.
+ *
+ * @param string $approverEmail
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setApproverEmail($approverEmail)
+ {
+ $approver = $this->_input->reissueCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->reissueCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverEmail($approverEmail);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmailPrefix option for SANApprover.
+ *
+ * This option determines which e-mail prefix will be used for EMAIL approve method.
+ * This method cannot be used with FILE or DNS approve method.
+ *
+ * @param string $approverEmailPrefix
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setApproverEmailPrefix($approverEmailPrefix)
+ {
+ $approver = $this->_input->reissueCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->reissueCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverEmailPrefix($approverEmailPrefix);
+ return $this;
+ }
+
+ /**
+ * Sets the verificationNotificationEnabled option for SANApprover.
+ *
+ * This option determines if verification e-mails for all approvers will be sent or not.
+ *
+ * @param boolean $yes_or_no
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setVerificationNotificationEnabled($yes_or_no)
+ {
+ $approver = $this->_input->reissueCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->reissueCertificate->setSANApprover($approver);
+ }
+ $approver->setVerificationNotificationEnabled($yes_or_no);
+ return $this;
+ }
+
+ /**
+ * Sets the userAgent for the request
+ *
+ * @param string $userAgent
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function setUserAgent($userAgent)
+ {
+ $this->_input->reissueCertificate->setUserAgent($userAgent);
+ return $this;
+ }
+
+ /**
+ * Returns an order ID contained in a response.
+ *
+ * @return string
+ */
+ public function getOrderID()
+ {
+ return $this->_output->reissueCertificateResponse->orderID;
+ }
+
+ /**
+ * Returns SANVerification entity containing verification data from a response.
+ *
+ * If there is no verification in the response a NULL is returned.
+ *
+ * @return PartnerAPITypeSanVerification
+ */
+ public function getSANVerification()
+ {
+ return $this->_output->reissueCertificateResponse->SANVerification;
+ }
+}
diff --git a/src/operations/operationRenewCertificate.php b/src/Operations/operationRenewCertificate.php
similarity index 86%
rename from src/operations/operationRenewCertificate.php
rename to src/Operations/operationRenewCertificate.php
index 8f85ad3..3e367cd 100644
--- a/src/operations/operationRenewCertificate.php
+++ b/src/Operations/operationRenewCertificate.php
@@ -1,271 +1,285 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the renewCertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageRenewCertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationRenewCertificate extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageRenewCertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageRenewCertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'renewCertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageRenewCertificate();
- $this->_output = new PartnerAPIMessageRenewCertificateResponse();
- }
-
- /**
- * Sets the approverMethod option for SANApprover.
- *
- * This option determines which approve method will be used for domain verification.
- *
- * @param string $approverMethod
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverMethod($approverMethod) {
- $approver = $this->_input->renewCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->renewCertificate->setSANApprover($approver);
- }
- $approver->setApproverMethod($approverMethod);
- return $this;
- }
-
- /**
- * Sets the approverEmail option for SANApprover.
- *
- * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
- * This method cannot be used with EMAIL approve method.
- *
- * @param string $approverEmail
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverEmail($approverEmail) {
- $approver = $this->_input->renewCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->renewCertificate->setSANApprover($approver);
- }
- $approver->setApproverEmail($approverEmail);
- return $this;
- }
-
- /**
- * Sets the approverEmailPrefix option for SANApprover.
- *
- * This option determines which e-mail prefix will be used for EMAIL approve method.
- * This method cannot be used with FILE or DNS approve method.
- *
- * @param string $approverEmailPrefix
- * @return PartnerAPIOperationQuickOrder
- */
- public function setApproverEmailPrefix($approverEmailPrefix) {
- $approver = $this->_input->renewCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->renewCertificate->setSANApprover($approver);
- }
- $approver->setApproverEmailPrefix($approverEmailPrefix);
- return $this;
- }
-
- /**
- * Sets the verificationNotificationEnabled option for SANApprover.
- *
- * This option determines if verification e-mails for all approvers will be sent or not.
- *
- * @param boolean $yes_or_no
- * @return PartnerAPIOperationQuickOrder
- */
- public function setVerificationNotificationEnabled($yes_or_no) {
- $approver = $this->_input->renewCertificate->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->renewCertificate->setSANApprover($approver);
- }
- $approver->setVerificationNotificationEnabled($yes_or_no);
- return $this;
- }
-
- /**
- * Sets a CSR for the request.
- *
- * Setting this value is required.
- *
- * @param string $csr
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setCSR($csr) {
- $this->_input->renewCertificate->setCSR($csr);
- return $this;
- }
-
- /**
- * Sets a customer name for the request.
- *
- * Setting this value is required.
- *
- * @param string $customer
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setCustomer($customer) {
- $this->_input->renewCertificate->setCustomer($customer);
- return $this;
- }
-
- /**
- * Sets a product code for the request.
- *
- * Setting this value is required.
- *
- * @param string $productCode
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setProductCode($productCode) {
- $this->_input->renewCertificate->setProductCode($productCode);
- return $this;
- }
-
- /**
- * Sets the serial number of a certificate to be renew.
- *
- * It is required to set X509Cert or serialNumber value but only one
- * of them may be set. Setting both values is an error.
- *
- * @param string $serialNumber
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setSerialNumber($serialNumber) {
- $this->_input->renewCertificate->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets a certificate to be renew.
- *
- * It is required to set X509Cert or serialNumber value but only one
- * of them may be set. Setting both values is an error.
- *
- * @param string $x509cert
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setX509Cert($x509cert) {
- $this->_input->renewCertificate->setX509Cert($x509cert);
- return $this;
- }
-
- /**
- * Sets a hash algorithm to be used.
- *
- * @param string $hashAlgorithm
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setHashAlgorithm($hashAlgorithm) {
- $this->_input->renewCertificate->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Sets the userAgent for the request
- *
- * @param string $userAgent
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setUserAgent($userAgent) {
- $this->_input->renewCertificate->setUserAgent($userAgent);
- return $this;
- }
-
- /**
- * Sets a revocation contact email.
- *
- * It is not required to set this but if your certificate needs to be revoked
- * we will contact you using provided email.
- *
- * @param string $revocationContactEmail Contact email used in certificate's revocation process
- * @return PartnerAPIOperationRenewCertificate
- */
- public function setRevocationContactEmail($revocationContactEmail) {
- $this->_input->renewCertificate->setRevocationContactEmail($revocationContactEmail);
- return $this;
- }
-
- /**
- * Sets a shortened validity period.
- *
- * It is not required to set this unless you want your certificate to be valid less days than the product allows.
- * In that case please specify your requested certificate's expiration date within product's allowed validity range.
- *
- * @param string $shortenedValidityPeriod Custom certificate's expiration date
- * @return PartnerAPIOperationQuickOrder
- */
- public function setShortenedValidityPeriod($shortenedValidityPeriod) {
- $this->_input->renewCertificate->setShortenedValidityPeriod($shortenedValidityPeriod);
- return $this;
- }
-
- /**
- * Gets an order ID returned in a response.
- *
- * @return string
- */
- public function getOrderID() {
- return $this->_output->renewCertificateResponse->orderID;
- }
-
- /**
- * Returns SANVerification entity containing verification data from a response.
- *
- * If there is no verification in the response a NULL is returned.
- *
- * @return PartnerAPITypeSanVerification
- */
- public function getSANVerification() {
- return $this->_output->renewCertificateResponse->SANVerification;
- }
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the renewCertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageRenewCertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationRenewCertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageRenewCertificate
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageRenewCertificateResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'renewCertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageRenewCertificate();
+ $this->_output = new PartnerAPIMessageRenewCertificateResponse();
+ }
+
+ /**
+ * Sets the approverMethod option for SANApprover.
+ *
+ * This option determines which approve method will be used for domain verification.
+ *
+ * @param string $approverMethod
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverMethod($approverMethod)
+ {
+ $approver = $this->_input->renewCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->renewCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverMethod($approverMethod);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmail option for SANApprover.
+ *
+ * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
+ * This method cannot be used with EMAIL approve method.
+ *
+ * @param string $approverEmail
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverEmail($approverEmail)
+ {
+ $approver = $this->_input->renewCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->renewCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverEmail($approverEmail);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmailPrefix option for SANApprover.
+ *
+ * This option determines which e-mail prefix will be used for EMAIL approve method.
+ * This method cannot be used with FILE or DNS approve method.
+ *
+ * @param string $approverEmailPrefix
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setApproverEmailPrefix($approverEmailPrefix)
+ {
+ $approver = $this->_input->renewCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->renewCertificate->setSANApprover($approver);
+ }
+ $approver->setApproverEmailPrefix($approverEmailPrefix);
+ return $this;
+ }
+
+ /**
+ * Sets the verificationNotificationEnabled option for SANApprover.
+ *
+ * This option determines if verification e-mails for all approvers will be sent or not.
+ *
+ * @param boolean $yes_or_no
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setVerificationNotificationEnabled($yes_or_no)
+ {
+ $approver = $this->_input->renewCertificate->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->renewCertificate->setSANApprover($approver);
+ }
+ $approver->setVerificationNotificationEnabled($yes_or_no);
+ return $this;
+ }
+
+ /**
+ * Sets a CSR for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $csr
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setCSR($csr)
+ {
+ $this->_input->renewCertificate->setCSR($csr);
+ return $this;
+ }
+
+ /**
+ * Sets a customer name for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $customer
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setCustomer($customer)
+ {
+ $this->_input->renewCertificate->setCustomer($customer);
+ return $this;
+ }
+
+ /**
+ * Sets a product code for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $productCode
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setProductCode($productCode)
+ {
+ $this->_input->renewCertificate->setProductCode($productCode);
+ return $this;
+ }
+
+ /**
+ * Sets the serial number of a certificate to be renew.
+ *
+ * It is required to set X509Cert or serialNumber value but only one
+ * of them may be set. Setting both values is an error.
+ *
+ * @param string $serialNumber
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->renewCertificate->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets a certificate to be renew.
+ *
+ * It is required to set X509Cert or serialNumber value but only one
+ * of them may be set. Setting both values is an error.
+ *
+ * @param string $x509cert
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setX509Cert($x509cert)
+ {
+ $this->_input->renewCertificate->setX509Cert($x509cert);
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm to be used.
+ *
+ * @param string $hashAlgorithm
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->renewCertificate->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Sets the userAgent for the request
+ *
+ * @param string $userAgent
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setUserAgent($userAgent)
+ {
+ $this->_input->renewCertificate->setUserAgent($userAgent);
+ return $this;
+ }
+
+ /**
+ * Sets a revocation contact email.
+ *
+ * It is not required to set this but if your certificate needs to be revoked
+ * we will contact you using provided email.
+ *
+ * @param string $revocationContactEmail Contact email used in certificate's revocation process
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function setRevocationContactEmail($revocationContactEmail)
+ {
+ $this->_input->renewCertificate->setRevocationContactEmail($revocationContactEmail);
+ return $this;
+ }
+
+ /**
+ * Sets a shortened validity period.
+ *
+ * It is not required to set this unless you want your certificate to be valid less days than the product allows.
+ * In that case please specify your requested certificate's expiration date within product's allowed validity range.
+ *
+ * @param string $shortenedValidityPeriod Custom certificate's expiration date
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function setShortenedValidityPeriod($shortenedValidityPeriod)
+ {
+ $this->_input->renewCertificate->setShortenedValidityPeriod($shortenedValidityPeriod);
+ return $this;
+ }
+
+ /**
+ * Gets an order ID returned in a response.
+ *
+ * @return string
+ */
+ public function getOrderID()
+ {
+ return $this->_output->renewCertificateResponse->orderID;
+ }
+
+ /**
+ * Returns SANVerification entity containing verification data from a response.
+ *
+ * If there is no verification in the response a NULL is returned.
+ *
+ * @return PartnerAPITypeSanVerification
+ */
+ public function getSANVerification()
+ {
+ return $this->_output->renewCertificateResponse->SANVerification;
+ }
+}
diff --git a/src/operations/operationRevokeCertificate.php b/src/Operations/operationRevokeCertificate.php
similarity index 77%
rename from src/operations/operationRevokeCertificate.php
rename to src/Operations/operationRevokeCertificate.php
index a1baa6f..973203d 100644
--- a/src/operations/operationRevokeCertificate.php
+++ b/src/Operations/operationRevokeCertificate.php
@@ -1,103 +1,106 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the revokeCertificate WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageRevokeCertificateResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationRevokeCertificate extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageRevokeCertificate
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageRevokeCertificateResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'revokeCertificate';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageRevokeCertificate();
- $this->_output = new PartnerAPIMessageRevokeCertificateResponse();
- }
-
- /**
- * Sets the serial number of a certificate to be revoked.
- *
- * @param string $serialNumber
- * @return PartnerAPIOperationRevokeCertificate
- */
- public function setSerialNumber($serialNumber) {
- $this->_input->revokeCertificate->revokeCertificateParameters->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets the key compromitation date.
- *
- * @param string $kcdate
- * @return PartnerAPIOperationRevokeCertificate
- */
- public function setKeyCompromitationDate($kcdate) {
- $this->_input->revokeCertificate->revokeCertificateParameters->setKeyCompromitationDate($kcdate);
- return $this;
- }
-
- /**
- * Sets a note.
- *
- * @param string $note
- * @return PartnerAPIOperationRevokeCertificate
- */
- public function setNote($note) {
- $this->_input->revokeCertificate->revokeCertificateParameters->setNote($note);
- return $this;
- }
-
- /**
- * Sets the revocation reason.
- *
- * @param string $reason
- * @return PartnerAPIOperationRevokeCertificate
- */
- public function setRevocationReason($reason) {
- $this->_input->revokeCertificate->revokeCertificateParameters->setRevocationReason($reason);
- return $this;
- }
-
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the revokeCertificate WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageRevokeCertificateResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationRevokeCertificate extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageRevokeCertificate
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageRevokeCertificateResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'revokeCertificate';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageRevokeCertificate();
+ $this->_output = new PartnerAPIMessageRevokeCertificateResponse();
+ }
+
+ /**
+ * Sets the serial number of a certificate to be revoked.
+ *
+ * @param string $serialNumber
+ * @return PartnerAPIOperationRevokeCertificate
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->revokeCertificate->revokeCertificateParameters->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets the key compromitation date.
+ *
+ * @param string $kcdate
+ * @return PartnerAPIOperationRevokeCertificate
+ */
+ public function setKeyCompromitationDate($kcdate)
+ {
+ $this->_input->revokeCertificate->revokeCertificateParameters->setKeyCompromitationDate($kcdate);
+ return $this;
+ }
+
+ /**
+ * Sets a note.
+ *
+ * @param string $note
+ * @return PartnerAPIOperationRevokeCertificate
+ */
+ public function setNote($note)
+ {
+ $this->_input->revokeCertificate->revokeCertificateParameters->setNote($note);
+ return $this;
+ }
+
+ /**
+ * Sets the revocation reason.
+ *
+ * @param string $reason
+ * @return PartnerAPIOperationRevokeCertificate
+ */
+ public function setRevocationReason($reason)
+ {
+ $this->_input->revokeCertificate->revokeCertificateParameters->setRevocationReason($reason);
+ return $this;
+ }
+}
diff --git a/src/operations/operationValidateOrderParameters.php b/src/Operations/operationValidateOrderParameters.php
similarity index 85%
rename from src/operations/operationValidateOrderParameters.php
rename to src/Operations/operationValidateOrderParameters.php
index 7629d68..8fc57ef 100644
--- a/src/operations/operationValidateOrderParameters.php
+++ b/src/Operations/operationValidateOrderParameters.php
@@ -1,532 +1,566 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the validateOrderParameters WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageValidateOrderParametersResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationValidateOrderParameters extends PartnerAPIOperation {
-
- /**
- * @var PartnerAPIMessageValidateOrderParameters
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageValidateOrderParametersResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'validateOrderParameters';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct() {
- $this->_input = new PartnerAPIMessageValidateOrderParameters();
- $this->_output = new PartnerAPIMessageValidateOrderParametersResponse();
- }
-
- /**
- * Sets a CSR for the request.
- *
- * Setting this value is required.
- *
- * @param string $csr
- * @return static
- */
- public function setCSR($csr) {
- $this->_input->validateOrderParameters->orderParameters->setCSR($csr);
- return $this;
- }
-
- /**
- * Sets a customer name.
- *
- * Setting this value is required.
- *
- * @param string $customer
- * @return static
- */
- public function setCustomer($customer) {
- $this->_input->validateOrderParameters->orderParameters->setCustomer($customer);
- return $this;
- }
-
- /**
- * Sets a language to be used for e-mails.
- *
- * Default is 'pl'. Also acceptable are 'en' and 'ru'.
- *
- * @param string $lang
- * @return static
- */
- public function setLanguage($lang) {
- $this->_input->validateOrderParameters->orderParameters->setLanguage($lang);
- return $this;
- }
-
- /**
- * Sets an order identificator.
- *
- * If not set it will be generated automatically by the system.
- * This identificator have to be unique and it is used to refer to the request.
- *
- * @param string $id
- * @return static
- */
- public function setOrderID($id) {
- $this->_input->validateOrderParameters->orderParameters->setOrderID($id);
- return $this;
- }
-
- /**
- * Sets a three-letter product code.
- *
- * Setting this value is required.
- *
- * @param string $code
- * @return static
- */
- public function setProductCode($code) {
- $this->_input->validateOrderParameters->orderParameters->setProductCode($code);
- return $this;
- }
-
- /**
- * Sets a string identifying web browser and operating system.
- *
- * @param string $userAgent
- * @return static
- */
- public function setUserAgent($userAgent) {
- $this->_input->validateOrderParameters->orderParameters->setUserAgent($userAgent);
- return $this;
- }
-
- /**
- * Sets a hash algorithm for a certificate.
- *
- * @param string $hashAlgorithm
- * @return static
- */
- public function setHashAlgorithm($hashAlgorithm) {
- $this->_input->validateOrderParameters->orderParameters->setHashAlgorithm($hashAlgorithm);
- return $this;
- }
-
- /**
- * Sets an email for a SSL certificate.
- *
- * @param string $email
- * @return static
- */
- public function setEmail($email) {
- $this->_input->validateOrderParameters->orderParameters->setEmail($email);
- return $this;
- }
-
- /**
- * Sets all the contact data of a requestor.
- *
- * All arguments are required apart from the last which can be NULL.
- *
- * @param string $firstName
- * @param string $lastName
- * @param string $email
- * @param string $phone
- * @return static
- */
- public function setRequestorInfo($firstName, $lastName, $email, $phone) {
- $ri = $this->_input->validateOrderParameters->requestorInfo;
- $ri->setFirstName($firstName)->setLastName($lastName)
- ->setEmail($email)->setPhone($phone);
- return $this;
- }
-
- /**
- * Sets an organization information.
- *
- * It is not required to set organization information but if you need or have to set it
- * all the arguments are required.
- *
- * @param string $taxNumber The tax identification number
- * @return static
- */
- public function setOrganizationInfo($name, $taxNumber) {
- $oi = new PartnerAPITypeOrganizationInfo();
- $oi->setTaxIdentificationNumber($taxNumber);
- $this->_input->validateOrderParameters->setOrganizationInfo($oi);
- return $this;
- }
-
-
- /**
- * Sets an overrided CSR commonName.
- *
- * It is not required to set this but if you need to override a commonName from CSR
- * then you have to change this as same as SAN entries and approvers.
- *
- * @param string $commonName The commonName to override CN given in CSR
- * @return static
- */
- public function setCommonName($commonName) {
- $this->_input->validateOrderParameters->orderParameters->setCommonName($commonName);
- return $this;
- }
-
- /**
- * Sets an overrided CSR organization.
- *
- * It is not required to set this but if you need to override a organization from CSR
- * use this method.
- *
- * @param string $organization The organization to override O given in CSR
- * @return static
- */
- public function setOrganization($organization) {
- $this->_input->validateOrderParameters->orderParameters->setOrganization($organization);
- return $this;
- }
-
- /**
- * Sets an overrided CSR organizational unit.
- *
- * It is not required to set this but if you need to override a organizational unit from CSR
- * use this method.
- *
- * @param string $organizationalUnit The Organizational Unit to override OU given in CSR
- * @return static
- */
- public function setOrganizationalUnit($organizationalUnit) {
- $this->_input->validateOrderParameters->orderParameters->setOrganizationalUnit($organizationalUnit);
- return $this;
- }
-
- /**
- * Sets an overrided CSR locality.
- *
- * It is not required to set this but if you need to override a locality from CSR
- * use this method.
- *
- * @param string $locality The locality to override L given in CSR
- * @return static
- */
- public function setLocality($locality) {
- $this->_input->validateOrderParameters->orderParameters->setLocality($locality);
- return $this;
- }
-
- /**
- * Sets an overrided CSR country.
- *
- * It is not required to set this but if you need to override a country from CSR
- * use this method.
- *
- * @param string $country The country to override C given in CSR
- * @return static
- */
- public function setCountry($country) {
- $this->_input->validateOrderParameters->orderParameters->setCountry($country);
- return $this;
- }
-
- /**
- * Sets an overrided CSR state.
- *
- * It is not required to set this but if you need to override a state from CSR
- * use this method.
- *
- * @param string $state The state to override state given in CSR
- * @return static
- */
- public function setState($state) {
- $this->_input->validateOrderParameters->orderParameters->setState($state);
- return $this;
- }
-
- /**
- * Sets an overrided CSR serialNumber.
- *
- * It is not required to set this but if you need to override a serialNumber from CSR
- * use this method.
- *
- * @param string $serialNumber The serialNumber to override serialNumber given in CSR
- * @return static
- */
- public function setSerialNumber($serialNumber) {
- $this->_input->validateOrderParameters->orderParameters->setSerialNumber($serialNumber);
- return $this;
- }
-
- /**
- * Sets an overrided CSR businessCategory.
- *
- * It is not required to set this but if you need to override a businessCategory from CSR
- * use this method.
- *
- * @param string $businessCategory The businessCategory to override businessCategory given in CSR
- * @return static
- */
- public function setBusinessCategory($businessCategory) {
- $this->_input->validateOrderParameters->orderParameters->setBusinessCategory($businessCategory);
- return $this;
- }
-
- /**
- * Sets an overrided CSR streetAddress.
- *
- * It is not required to set this but if you need to override a streetAddress from CSR
- * use this method.
- *
- * @param string $streetAddress The streetAddress to override streetAddress given in CSR
- * @return static
- */
- public function setStreetAddress($streetAddress) {
- $this->_input->validateOrderParameters->orderParameters->setStreetAddress($streetAddress);
- return $this;
- }
-
- /**
- * Sets an overrided CSR postalCode.
- *
- * It is not required to set this but if you need to override a postalCode from CSR
- * use this method.
- *
- * @param string $postalCode The postalCode to override postalCode given in CSR
- * @return static
- */
- public function setPostalCode($postalCode) {
- $this->_input->validateOrderParameters->orderParameters->setPostalCode($postalCode);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joiln.
- *
- * It is not required to set this but if you need to override a joiln from CSR
- * use this method.
- *
- * @param string $joiln The joiln to override joiln given in CSR
- * @return static
- */
- public function setJoiln($joiln) {
- $this->_input->validateOrderParameters->orderParameters->setJoiln($joiln);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joisopn.
- *
- * It is not required to set this but if you need to override a joisopn from CSR
- * use this method.
- *
- * @param string $joisopn The joisopn to override joisopn given in CSR
- * @return static
- */
- public function setJoisopn($joisopn) {
- $this->_input->validateOrderParameters->orderParameters->setJoisopn($joisopn);
- return $this;
- }
-
- /**
- * Sets an overrided CSR joisocn.
- *
- * It is not required to set this but if you need to override a joisocn from CSR
- * use this method.
- *
- * @param string $joisocn The joisocn to override joisocn given in CSR
- * @return static
- */
- public function setJoisocn($joisocn) {
- $this->_input->validateOrderParameters->orderParameters->setJoisocn($joisocn);
- return $this;
- }
-
- /**
- * Adds a domain name as a SAN entry in a certificate.
- *
- * SAN entries are optional.
- * If given, the $domain argument must be a correct domain name or an array
- * of such domain names.
- *
- * @param string|string[] $domain
- * @return static
- */
- public function addSANEntry($domain) {
- if (! is_array($domain))
- $domain = array($domain);
- $SANEntries = $this->_input->validateOrderParameters->SANEntries;
- if (is_null($SANEntries)) {
- $SANEntries = new PartnerAPITypeSanEntries();
- $this->_input->validateOrderParameters->setSANEntries($SANEntries);
- }
- foreach ($domain as $d) {
- $san = new PartnerAPITypeSanEntry();
- $san->setDNSName($d);
- $SANEntries->addSANEntry($san);
- }
- return $this;
- }
-
- /**
- * Sets the approverMethod option for SANApprover.
- *
- * This option determines which approve method will be used for domain verification.
- *
- * @param string $approverMethod
- * @return static
- */
- public function setApproverMethod($approverMethod) {
- $approver = $this->_input->validateOrderParameters->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->validateOrderParameters->setSANApprover($approver);
- }
- $approver->setApproverMethod($approverMethod);
- return $this;
- }
-
- /**
- * Sets the approverEmail option for SANApprover.
- *
- * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
- * This method cannot be used with EMAIL approve method.
- *
- * @param string $approverEmail
- * @return static
- */
- public function setApproverEmail($approverEmail) {
- $approver = $this->_input->validateOrderParameters->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->validateOrderParameters->setSANApprover($approver);
- }
- $approver->setApproverEmail($approverEmail);
- return $this;
- }
-
- /**
- * Sets the approverEmailPrefix option for SANApprover.
- *
- * This option determines which e-mail prefix will be used for EMAIL approve method.
- * This method cannot be used with FILE or DNS approve method.
- *
- * @param string $approverEmailPrefix
- * @return static
- */
- public function setApproverEmailPrefix($approverEmailPrefix) {
- $approver = $this->_input->validateOrderParameters->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->validateOrderParameters->setSANApprover($approver);
- }
- $approver->setApproverEmailPrefix($approverEmailPrefix);
- return $this;
- }
-
-
- /**
- * Sets the verificationNotificationEnabled option for SANApprover.
- *
- * This option determines if verification e-mails for all approvers will be sent or not.
- *
- * @param boolean $yes_or_no
- * @return static
- */
- public function setVerificationNotificationEnabled($yes_or_no) {
- $approver = $this->_input->validateOrderParameters->SANApprover;
- if (is_null($approver)) {
- $approver = new PartnerAPITypeSanApprover();
- $this->_input->validateOrderParameters->setSANApprover($approver);
- }
- $approver->setVerificationNotificationEnabled($yes_or_no);
- return $this;
- }
-
- /**
- * Gets parsed CSR returned as a response.
- *
- * The returned value can be an object of PartnerAPITypeParsedCsr class
- * or null.
- *
- * @return PartnerAPITypeParsedCsr
- */
- public function getParsedCSR() {
- return $this->_output->validateOrderParametersResponse->ParsedCSR;
- }
-
- /**
- * Prepares an object representing the quick order operation.
- *
- * This method is intended to improve coding and to avoid passing the same data twice.
- * A new object of type PartnerAPIOperationQuickOrder is created
- * and set up with the data set for validation in
- * the PartnerAPIOperationValidateOrderParameters object.
- * It means, all the data which have been set are copied to a new
- * quick order object.
- *
- * @return PartnerAPIOperationQuickOrder
- */
- public function prepareQuickOrderOperation() {
- $op = new PartnerAPIOperationQuickOrder();
- $op->setService($this->_service);
- $p = $this->_input->validateOrderParameters->orderParameters;
- $op->setCSR($p->CSR)->setCustomer($p->customer)->setLanguage($p->language)
- ->setOrderID($p->orderID)->setUserAgent($p->userAgent)->setProductCode($p->productCode);
- $r = $this->_input->validateOrderParameters->requestorInfo;
- $op->setRequestorInfo($r->firstName, $r->lastName, $r->email, $r->phone);
- $o = $this->_input->validateOrderParameters->organizationInfo;
- if (! is_null($o))
- $op->setOrganizationInfo($o->taxIdentificationNumber);
- $a = $this->_input->validateOrderParameters->SANApprover;
- if (!is_null($a)) {
- $op->setApproverMethod($a->approverMethod);
- $op->setApproverEmail($a->approverEmail);
- $op->setApproverEmailPrefix($a->approverEmailPrefix);
- $op->setVerificationNotificationEnabled($a->verificationNotificationEnabled);
- }
- $s = $this->_input->validateOrderParameters->SANEntries;
- if (! is_null($s)) {
- if (is_array($s->SANEntry))
- foreach ($s->SANEntry as $san)
- $op->addSANEntry($san->DNSName);
- else
- $op->addSANEntry($s->SANEntry->DNSName);
- }
- return $op;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the validateOrderParameters WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageValidateOrderParametersResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationValidateOrderParameters extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageValidateOrderParameters
+ */
+ protected $_input = null;
+/**
+ * @var PartnerAPIMessageValidateOrderParametersResponse
+ */
+ protected $_output = null;
+/**
+ * @var string
+ */
+ protected $_operation = 'validateOrderParameters';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageValidateOrderParameters();
+ $this->_output = new PartnerAPIMessageValidateOrderParametersResponse();
+ }
+
+ /**
+ * Sets a CSR for the request.
+ *
+ * Setting this value is required.
+ *
+ * @param string $csr
+ * @return static
+ */
+ public function setCSR($csr)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setCSR($csr);
+ return $this;
+ }
+
+ /**
+ * Sets a customer name.
+ *
+ * Setting this value is required.
+ *
+ * @param string $customer
+ * @return static
+ */
+ public function setCustomer($customer)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setCustomer($customer);
+ return $this;
+ }
+
+ /**
+ * Sets a language to be used for e-mails.
+ *
+ * Default is 'pl'. Also acceptable are 'en' and 'ru'.
+ *
+ * @param string $lang
+ * @return static
+ */
+ public function setLanguage($lang)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setLanguage($lang);
+ return $this;
+ }
+
+ /**
+ * Sets an order identificator.
+ *
+ * If not set it will be generated automatically by the system.
+ * This identificator have to be unique and it is used to refer to the request.
+ *
+ * @param string $id
+ * @return static
+ */
+ public function setOrderID($id)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setOrderID($id);
+ return $this;
+ }
+
+ /**
+ * Sets a three-letter product code.
+ *
+ * Setting this value is required.
+ *
+ * @param string $code
+ * @return static
+ */
+ public function setProductCode($code)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setProductCode($code);
+ return $this;
+ }
+
+ /**
+ * Sets a string identifying web browser and operating system.
+ *
+ * @param string $userAgent
+ * @return static
+ */
+ public function setUserAgent($userAgent)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setUserAgent($userAgent);
+ return $this;
+ }
+
+ /**
+ * Sets a hash algorithm for a certificate.
+ *
+ * @param string $hashAlgorithm
+ * @return static
+ */
+ public function setHashAlgorithm($hashAlgorithm)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setHashAlgorithm($hashAlgorithm);
+ return $this;
+ }
+
+ /**
+ * Sets an email for a SSL certificate.
+ *
+ * @param string $email
+ * @return static
+ */
+ public function setEmail($email)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setEmail($email);
+ return $this;
+ }
+
+ /**
+ * Sets all the contact data of a requestor.
+ *
+ * All arguments are required apart from the last which can be NULL.
+ *
+ * @param string $firstName
+ * @param string $lastName
+ * @param string $email
+ * @param string $phone
+ * @return static
+ */
+ public function setRequestorInfo($firstName, $lastName, $email, $phone)
+ {
+ $ri = $this->_input->validateOrderParameters->requestorInfo;
+ $ri->setFirstName($firstName)->setLastName($lastName)
+ ->setEmail($email)->setPhone($phone);
+ return $this;
+ }
+
+ /**
+ * Sets an organization information.
+ *
+ * It is not required to set organization information but if you need or have to set it
+ * all the arguments are required.
+ *
+ * @param string $taxNumber The tax identification number
+ * @return static
+ */
+ public function setOrganizationInfo($name, $taxNumber)
+ {
+ $oi = new PartnerAPITypeOrganizationInfo();
+ $oi->setTaxIdentificationNumber($taxNumber);
+ $this->_input->validateOrderParameters->setOrganizationInfo($oi);
+ return $this;
+ }
+
+
+ /**
+ * Sets an overrided CSR commonName.
+ *
+ * It is not required to set this but if you need to override a commonName from CSR
+ * then you have to change this as same as SAN entries and approvers.
+ *
+ * @param string $commonName The commonName to override CN given in CSR
+ * @return static
+ */
+ public function setCommonName($commonName)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setCommonName($commonName);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR organization.
+ *
+ * It is not required to set this but if you need to override a organization from CSR
+ * use this method.
+ *
+ * @param string $organization The organization to override O given in CSR
+ * @return static
+ */
+ public function setOrganization($organization)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setOrganization($organization);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR organizational unit.
+ *
+ * It is not required to set this but if you need to override a organizational unit from CSR
+ * use this method.
+ *
+ * @param string $organizationalUnit The Organizational Unit to override OU given in CSR
+ * @return static
+ */
+ public function setOrganizationalUnit($organizationalUnit)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setOrganizationalUnit($organizationalUnit);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR locality.
+ *
+ * It is not required to set this but if you need to override a locality from CSR
+ * use this method.
+ *
+ * @param string $locality The locality to override L given in CSR
+ * @return static
+ */
+ public function setLocality($locality)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setLocality($locality);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR country.
+ *
+ * It is not required to set this but if you need to override a country from CSR
+ * use this method.
+ *
+ * @param string $country The country to override C given in CSR
+ * @return static
+ */
+ public function setCountry($country)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setCountry($country);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR state.
+ *
+ * It is not required to set this but if you need to override a state from CSR
+ * use this method.
+ *
+ * @param string $state The state to override state given in CSR
+ * @return static
+ */
+ public function setState($state)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setState($state);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR serialNumber.
+ *
+ * It is not required to set this but if you need to override a serialNumber from CSR
+ * use this method.
+ *
+ * @param string $serialNumber The serialNumber to override serialNumber given in CSR
+ * @return static
+ */
+ public function setSerialNumber($serialNumber)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setSerialNumber($serialNumber);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR businessCategory.
+ *
+ * It is not required to set this but if you need to override a businessCategory from CSR
+ * use this method.
+ *
+ * @param string $businessCategory The businessCategory to override businessCategory given in CSR
+ * @return static
+ */
+ public function setBusinessCategory($businessCategory)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setBusinessCategory($businessCategory);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR streetAddress.
+ *
+ * It is not required to set this but if you need to override a streetAddress from CSR
+ * use this method.
+ *
+ * @param string $streetAddress The streetAddress to override streetAddress given in CSR
+ * @return static
+ */
+ public function setStreetAddress($streetAddress)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setStreetAddress($streetAddress);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR postalCode.
+ *
+ * It is not required to set this but if you need to override a postalCode from CSR
+ * use this method.
+ *
+ * @param string $postalCode The postalCode to override postalCode given in CSR
+ * @return static
+ */
+ public function setPostalCode($postalCode)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setPostalCode($postalCode);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joiln.
+ *
+ * It is not required to set this but if you need to override a joiln from CSR
+ * use this method.
+ *
+ * @param string $joiln The joiln to override joiln given in CSR
+ * @return static
+ */
+ public function setJoiln($joiln)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setJoiln($joiln);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joisopn.
+ *
+ * It is not required to set this but if you need to override a joisopn from CSR
+ * use this method.
+ *
+ * @param string $joisopn The joisopn to override joisopn given in CSR
+ * @return static
+ */
+ public function setJoisopn($joisopn)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setJoisopn($joisopn);
+ return $this;
+ }
+
+ /**
+ * Sets an overrided CSR joisocn.
+ *
+ * It is not required to set this but if you need to override a joisocn from CSR
+ * use this method.
+ *
+ * @param string $joisocn The joisocn to override joisocn given in CSR
+ * @return static
+ */
+ public function setJoisocn($joisocn)
+ {
+ $this->_input->validateOrderParameters->orderParameters->setJoisocn($joisocn);
+ return $this;
+ }
+
+ /**
+ * Adds a domain name as a SAN entry in a certificate.
+ *
+ * SAN entries are optional.
+ * If given, the $domain argument must be a correct domain name or an array
+ * of such domain names.
+ *
+ * @param string|string[] $domain
+ * @return static
+ */
+ public function addSANEntry($domain)
+ {
+ if (! is_array($domain)) {
+ $domain = array($domain);
+ }
+ $SANEntries = $this->_input->validateOrderParameters->SANEntries;
+ if (is_null($SANEntries)) {
+ $SANEntries = new PartnerAPITypeSanEntries();
+ $this->_input->validateOrderParameters->setSANEntries($SANEntries);
+ }
+ foreach ($domain as $d) {
+ $san = new PartnerAPITypeSanEntry();
+ $san->setDNSName($d);
+ $SANEntries->addSANEntry($san);
+ }
+ return $this;
+ }
+
+ /**
+ * Sets the approverMethod option for SANApprover.
+ *
+ * This option determines which approve method will be used for domain verification.
+ *
+ * @param string $approverMethod
+ * @return static
+ */
+ public function setApproverMethod($approverMethod)
+ {
+ $approver = $this->_input->validateOrderParameters->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->validateOrderParameters->setSANApprover($approver);
+ }
+ $approver->setApproverMethod($approverMethod);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmail option for SANApprover.
+ *
+ * This option determines where will be sent e-mail with instructions for FILE or DNS approve method.
+ * This method cannot be used with EMAIL approve method.
+ *
+ * @param string $approverEmail
+ * @return static
+ */
+ public function setApproverEmail($approverEmail)
+ {
+ $approver = $this->_input->validateOrderParameters->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->validateOrderParameters->setSANApprover($approver);
+ }
+ $approver->setApproverEmail($approverEmail);
+ return $this;
+ }
+
+ /**
+ * Sets the approverEmailPrefix option for SANApprover.
+ *
+ * This option determines which e-mail prefix will be used for EMAIL approve method.
+ * This method cannot be used with FILE or DNS approve method.
+ *
+ * @param string $approverEmailPrefix
+ * @return static
+ */
+ public function setApproverEmailPrefix($approverEmailPrefix)
+ {
+ $approver = $this->_input->validateOrderParameters->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->validateOrderParameters->setSANApprover($approver);
+ }
+ $approver->setApproverEmailPrefix($approverEmailPrefix);
+ return $this;
+ }
+
+
+ /**
+ * Sets the verificationNotificationEnabled option for SANApprover.
+ *
+ * This option determines if verification e-mails for all approvers will be sent or not.
+ *
+ * @param boolean $yes_or_no
+ * @return static
+ */
+ public function setVerificationNotificationEnabled($yes_or_no)
+ {
+ $approver = $this->_input->validateOrderParameters->SANApprover;
+ if (is_null($approver)) {
+ $approver = new PartnerAPITypeSanApprover();
+ $this->_input->validateOrderParameters->setSANApprover($approver);
+ }
+ $approver->setVerificationNotificationEnabled($yes_or_no);
+ return $this;
+ }
+
+ /**
+ * Gets parsed CSR returned as a response.
+ *
+ * The returned value can be an object of PartnerAPITypeParsedCsr class
+ * or null.
+ *
+ * @return PartnerAPITypeParsedCsr
+ */
+ public function getParsedCSR()
+ {
+ return $this->_output->validateOrderParametersResponse->ParsedCSR;
+ }
+
+ /**
+ * Prepares an object representing the quick order operation.
+ *
+ * This method is intended to improve coding and to avoid passing the same data twice.
+ * A new object of type PartnerAPIOperationQuickOrder is created
+ * and set up with the data set for validation in
+ * the PartnerAPIOperationValidateOrderParameters object.
+ * It means, all the data which have been set are copied to a new
+ * quick order object.
+ *
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function prepareQuickOrderOperation()
+ {
+ $op = new PartnerAPIOperationQuickOrder();
+ $op->setService($this->_service);
+ $p = $this->_input->validateOrderParameters->orderParameters;
+ $op->setCSR($p->CSR)->setCustomer($p->customer)->setLanguage($p->language)
+ ->setOrderID($p->orderID)->setUserAgent($p->userAgent)->setProductCode($p->productCode);
+ $r = $this->_input->validateOrderParameters->requestorInfo;
+ $op->setRequestorInfo($r->firstName, $r->lastName, $r->email, $r->phone);
+ $o = $this->_input->validateOrderParameters->organizationInfo;
+ if (! is_null($o)) {
+ $op->setOrganizationInfo($o->taxIdentificationNumber);
+ }
+ $a = $this->_input->validateOrderParameters->SANApprover;
+ if (!is_null($a)) {
+ $op->setApproverMethod($a->approverMethod);
+ $op->setApproverEmail($a->approverEmail);
+ $op->setApproverEmailPrefix($a->approverEmailPrefix);
+ $op->setVerificationNotificationEnabled($a->verificationNotificationEnabled);
+ }
+ $s = $this->_input->validateOrderParameters->SANEntries;
+ if (! is_null($s)) {
+ if (is_array($s->SANEntry)) {
+ foreach ($s->SANEntry as $san) {
+ $op->addSANEntry($san->DNSName);
+ }
+ } else {
+ $op->addSANEntry($s->SANEntry->DNSName);
+ }
+ }
+ return $op;
+ }
+}
diff --git a/src/operations/operationVerifyOrder.php b/src/Operations/operationVerifyOrder.php
similarity index 90%
rename from src/operations/operationVerifyOrder.php
rename to src/Operations/operationVerifyOrder.php
index b83d704..402e642 100644
--- a/src/operations/operationVerifyOrder.php
+++ b/src/Operations/operationVerifyOrder.php
@@ -1,124 +1,122 @@
-
-
-
-
-
-*/
-
-/**
- * This class represents the verifyOrder WSDL operation.
- *
- * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
- *
- * @method PartnerAPIMessageVerifyOrderResponse getResponseMessage() A complete response from a service
- *
- * @package operations
- */
-class PartnerAPIOperationVerifyOrder extends PartnerAPIOperation
-{
-
- /**
- * @var PartnerAPIMessageVerifyOrder
- */
- protected $_input = NULL;
-
- /**
- * @var PartnerAPIMessageVerifyOrderResponse
- */
- protected $_output = NULL;
-
- /**
- * @var string
- */
- protected $_operation = 'verifyOrder';
-
- /**
- * The constructor.
- *
- * It initializes input and output data.
- */
- public function __construct()
- {
- $this->_input = new PartnerAPIMessageVerifyOrder();
- $this->_output = new PartnerAPIMessageVerifyOrderResponse();
- }
-
- /**
- * Sets an order ID for the request.
- *
- * It is required to set this parameter.
- *
- * @param string $orderID
- * @return PartnerAPIOperationVerifyOrder
- */
- public function setOrderID($orderID)
- {
- $this->_input->verifyOrder->verifyOrderParameters->setOrderID($orderID);
- return $this;
- }
-
- /**
- * Sets a note for the request.
- *
- * It is required to set this parameter.
- *
- * @param string $note
- * @return PartnerAPIOperationVerifyOrder
- */
- public function setNote($note)
- {
- $this->_input->verifyOrder->verifyOrderParameters->setNote($note);
- return $this;
- }
-
- /**
- * Adds a document to the request.
- *
- * Adding a document is optional.
- * When adding, the third parameter $files have to be an associative
- * array where keys are file names and values are file contents.
- * array('fileName' => 'fileContents')
- *
- * @param string $type
- * @param string $description
- * @param array $files An array of file names and file contents
- * @return PartnerAPIOperationVerifyOrder
- */
- public function addDocument($type, $description, $files)
- {
- $docs = $this->_input->verifyOrder->verifyOrderParameters->documents;
- if (is_null($docs)) {
- $docs = new PartnerAPITypeDocuments();
- $this->_input->verifyOrder->verifyOrderParameters->setDocuments($docs);
- }
- $doc = new PartnerAPITypeDocument();
- $doc->setType($type)->setDescription($description);
- foreach ($files as $fileName => $fileContents) {
- $file = new PartnerAPITypeFile();
- $file->setFileName($fileName)->setContent($fileContents);
- $doc->files->addFile($file);
- }
- $docs->addDocument($doc);
- return $this;
- }
-}
+
+
+
+
+
+*/
+
+/**
+ * This class represents the verifyOrder WSDL operation.
+ *
+ * It is based on the PartnerAPIOperation class and derives some properties and methods from that class.
+ *
+ * @method PartnerAPIMessageVerifyOrderResponse getResponseMessage() A complete response from a service
+ *
+ * @package operations
+ */
+class PartnerAPIOperationVerifyOrder extends PartnerAPIOperation
+{
+ /**
+ * @var PartnerAPIMessageVerifyOrder
+ */
+ protected $_input = null;
+
+ /**
+ * @var PartnerAPIMessageVerifyOrderResponse
+ */
+ protected $_output = null;
+
+ /**
+ * @var string
+ */
+ protected $_operation = 'verifyOrder';
+
+ /**
+ * The constructor.
+ *
+ * It initializes input and output data.
+ */
+ public function __construct()
+ {
+ $this->_input = new PartnerAPIMessageVerifyOrder();
+ $this->_output = new PartnerAPIMessageVerifyOrderResponse();
+ }
+
+ /**
+ * Sets an order ID for the request.
+ *
+ * It is required to set this parameter.
+ *
+ * @param string $orderID
+ * @return PartnerAPIOperationVerifyOrder
+ */
+ public function setOrderID($orderID)
+ {
+ $this->_input->verifyOrder->verifyOrderParameters->setOrderID($orderID);
+ return $this;
+ }
+
+ /**
+ * Sets a note for the request.
+ *
+ * It is required to set this parameter.
+ *
+ * @param string $note
+ * @return PartnerAPIOperationVerifyOrder
+ */
+ public function setNote($note)
+ {
+ $this->_input->verifyOrder->verifyOrderParameters->setNote($note);
+ return $this;
+ }
+
+ /**
+ * Adds a document to the request.
+ *
+ * Adding a document is optional.
+ * When adding, the third parameter $files have to be an associative
+ * array where keys are file names and values are file contents.
+ * array('fileName' => 'fileContents')
+ *
+ * @param string $type
+ * @param string $description
+ * @param array $files An array of file names and file contents
+ * @return PartnerAPIOperationVerifyOrder
+ */
+ public function addDocument($type, $description, $files)
+ {
+ $docs = $this->_input->verifyOrder->verifyOrderParameters->documents;
+ if (is_null($docs)) {
+ $docs = new PartnerAPITypeDocuments();
+ $this->_input->verifyOrder->verifyOrderParameters->setDocuments($docs);
+ }
+ $doc = new PartnerAPITypeDocument();
+ $doc->setType($type)->setDescription($description);
+ foreach ($files as $fileName => $fileContents) {
+ $file = new PartnerAPITypeFile();
+ $file->setFileName($fileName)->setContent($fileContents);
+ $doc->files->addFile($file);
+ }
+ $docs->addDocument($doc);
+ return $this;
+ }
+}
diff --git a/src/PartnerAPIService.php b/src/PartnerAPIService.php
index 36273ed..97977ce 100644
--- a/src/PartnerAPIService.php
+++ b/src/PartnerAPIService.php
@@ -1,690 +1,691 @@
-setUserName($userName);
- $this->setPassword($password);
- $this->setWSDL($wsdl);
- $this->setLang($lang);
- /*
- if (class_exists('SoapClient')) {
- $this->_method = PartnerAPIService::METHOD_SOAP;
- } elseif (function_exists('curl_init')) {
- throw new PartnerAPIException("jakis tekst");
- $this->_method = PartnerAPIService::METHOD_CURL;
- } else {
- throw new PartnerAPIException("jakis tekst"); // w one click mają "Unable to start communication, no SoapClient or Curl availible"
- }
- */
- }
-
- // ========================================================================
-
- /**
- * Returns the user name
- *
- * @return string
- */
- public function getUserName()
- {
- return $this->_userName;
- }
-
- /**
- * Sets the user name to be used for authentication in a web service.
- *
- * @param string $userName
- * @return PartnerAPIService The object being called
- */
- public function setUserName($userName)
- {
- $this->_userName = (string) $userName;
- return $this;
- }
-
- /**
- * Returns the password
- *
- * @return string
- */
- public function getPassword()
- {
- return $this->_password;
- }
-
- /**
- * Sets the password to be used for authentication in a web service.
- *
- * @param string $password
- * @return PartnerAPIService The object being called
- */
- public function setPassword($password)
- {
- $this->_password = (string) $password;
- return $this;
- }
-
- /**
- * Returns current language
- *
- * @return string
- */
- public function getLang()
- {
- return $this->_lang;
- }
-
- /**
- * Sets the current language
- *
- * @param string $lang
- * @return PartnerAPIService The object being called
- */
- public function setLang($lang)
- {
- $langarray = explode(';', PartnerAPIService::LANGS);
- if (!in_array($lang, $langarray))
- $lang = 'en';
- $this->_lang = $lang;
- return $this;
- }
-
- /**
- * Returns current URL for a WSDL file.
- *
- * @return string
- */
- public function getWSDL()
- {
- return $this->_wsdl;
- }
-
- /**
- * Sets the current URL for a WSDL file.
- *
- * @param string|null $wsdl
- * @return PartnerAPIService The object being called
- */
- public function setWSDL($wsdl)
- {
- if (is_null($wsdl))
- $this->_wsdl = PartnerAPIService::WSDL_TEST;
- else
- $this->_wsdl = (string) $wsdl;
- return $this;
- }
-
- /**
- * Configures the service to pass or to catch SoapFault exceptions.
- *
- * If SoapFault exceptions are catched they are rethrown as PartnerAPIException.
- *
- * @param boolean $yes_or_no
- * @return PartnerAPIService
- */
- public function setCatchSoapFault($yes_or_no)
- {
- $this->_catchSoapFault = (bool) $yes_or_no;
- return $this;
- }
-
- /**
- * Tells if SoapFault exceptions are passed or catched.
- *
- * @return boolean True if SoapFault exceptions are catched, False otherwise
- */
- public function getCatchSoapFault()
- {
- return $this->_catchSoapFault;
- }
-
- /**
- * Sets a file for storing debug information.
- *
- * The argument $fname should be null or a string containing a file name.
- * If it is null, no debug information will be stored anywhere.
- * Otherwise, it must be anything acceptable by the PHP function fopen() as the first argument.
- *
- * @param string|null $fname
- * @return PartnerAPIService
- * @throws PartnerAPIException
- */
- public function setDebugFile($fname = NULL)
- {
- if (!(is_null($fname) || is_string($fname))) {
- throw new PartnerAPIException("Invalid file name. It should be a string or null.");
- }
- if (is_string($fname) && file_exists($fname) && !is_writable($fname)) {
- throw new PartnerAPIException("File '$fname' is not writable.");
- }
- $this->_debugFile = $fname;
- return $this;
- }
-
- /**
- * Return a file name for writing debug information.
- *
- * It can also return null if no file name has been set.
- *
- * @return string|null A file name
- */
- public function getDebugFile()
- {
- return $this->_debugFile;
- }
-
- /* future implementation will also support CURL
- public function getMethod() {
- return $this->_method;
- }
-
- public function setMethod($method) {
- if ($method == PartnerAPIService::METHOD_SOAP) {
- if (class_exists('SoapClient'))
- $this->_method = PartnerAPIService::METHOD_SOAP;
- else
- throw new PartnerAPIException("nie można");
- return;
- }
- if ($method == PartnerAPIService::METHOD_CURL) {
- if (function_exists('curl_init'))
- $this->_method = PartnerAPIService::METHOD_CURL;
- else
- throw new PartnerAPIException;
- return;
- }
- throw new PartnerAPIException("jakis tekst"); // w one click mają "Unable to start communication, no SoapClient or Curl availible"
- }
- */
-
- // ========================================================================
-
- /**
- * Returns an object representing the validateOrderParameters operation.
- *
- * @return PartnerAPIOperationValidateOrderParameters
- */
- public function operationValidateOrderParameters()
- {
- $operation = new PartnerAPIOperationValidateOrderParameters();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the quickOrder operation.
- *
- * @return PartnerAPIOperationQuickOrder
- */
- public function operationQuickOrder()
- {
- $operation = new PartnerAPIOperationQuickOrder();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getOrderByOrderID operation.
- *
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function operationGetOrderByOrderID()
- {
- $operation = new PartnerAPIOperationGetOrderByOrderID();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getOrderByOrderID operation.
- *
- * @return PartnerAPIOperationGetOrderByOrderID
- */
- public function operationGetOrdersByDateRange()
- {
- $operation = new PartnerAPIOperationGetOrdersByDateRange();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getModifiedOrders operation.
- *
- * @return PartnerAPIOperationGetModifiedOrders
- */
- public function operationGetModifiedOrders()
- {
- $operation = new PartnerAPIOperationGetModifiedOrders();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the cancelOrder operation.
- *
- * @return PartnerAPIOperationCancelOrder
- */
- public function operationCancelOrder()
- {
- $operation = new PartnerAPIOperationCancelOrder();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getProductList operation.
- *
- * @return PartnerAPIOperationGetProductList
- */
- public function operationGetProductList()
- {
- $operation = new PartnerAPIOperationGetProductList();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getConfiguration operation.
- *
- * @return PartnerAPIOperationGetConfiguration
- */
- public function operationGetConfiguration()
- {
- $operation = new PartnerAPIOperationGetConfiguration();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getCertificate operation.
- *
- * @return PartnerAPIOperationGetCertificate
- */
- public function operationGetCertificate()
- {
- $operation = new PartnerAPIOperationGetCertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the renewCertificate operation.
- *
- * @return PartnerAPIOperationRenewCertificate
- */
- public function operationRenewCertificate()
- {
- $operation = new PartnerAPIOperationRenewCertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the revokeCertificate operation.
- *
- * @return PartnerAPIOperationRevokeCertificate
- */
- public function operationRevokeCertificate()
- {
- $operation = new PartnerAPIOperationRevokeCertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getExpiringCertificates operation.
- *
- * @return PartnerAPIOperationGetExpiringCertificates
- */
- public function operationGetExpiringCertificates()
- {
- $operation = new PartnerAPIOperationGetExpiringCertificates();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the verifyOrder operation.
- *
- * @return PartnerAPIOperationVerifyOrder
- */
- public function operationVerifyOrder()
- {
- $operation = new PartnerAPIOperationVerifyOrder();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the orderSNICertificate operation.
- *
- * @return PartnerAPIOperationOrderSNICertificate
- */
- public function operationOrderSNICertificate()
- {
- $operation = new PartnerAPIOperationOrderSNICertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the modifySNICertificate operation.
- *
- * @return PartnerAPIOperationModifySNICertificate
- */
- public function operationModifySNICertificate()
- {
- $operation = new PartnerAPIOperationModifySNICertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getEmailVerification operation.
- *
- * @return PartnerAPIOperationGetEmailVerification
- */
- public function operationGetEmailVerification()
- {
- $operation = new PartnerAPIOperationGetEmailVerification();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the reissueCertificate operation.
- *
- * @return PartnerAPIOperationReissueCertificate
- */
- public function operationReissueCertificate()
- {
- $operation = new PartnerAPIOperationReissueCertificate();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getOrderState operation.
- *
- * @return PartnerAPIOperationGetOrderState
- */
- public function operationGetOrderState()
- {
- $operation = new PartnerAPIOperationGetOrderState();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the getSanVerificationState operation.
- *
- * @return PartnerAPIOperationGetSanVerificationState
- */
- public function operationGetSanVerificationState()
- {
- $operation = new PartnerAPIOperationGetSanVerificationState();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the performSanVerification operation.
- *
- * @return PartnerAPIOperationPerformSanVerification
- */
- public function operationPerformSanVerification()
- {
- $operation = new PartnerAPIOperationPerformSanVerification();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the addSanVerification operation.
- *
- * @return PartnerAPIOperationAddSanVerification
- */
- public function operationAddSanVerification()
- {
- $operation = new PartnerAPIOperationAddSanVerification();
- $operation->setService($this);
- return $operation;
- }
-
- /**
- * Returns an object representing the addEmailVerification operation.
- *
- * @return PartnerAPIOperationAddEmailVerification
- */
- public function operationAddEmailVerification()
- {
- $operation = new PartnerAPIOperationAddEmailVerification();
- $operation->setService($this);
- return $operation;
- }
-
- // ========================================================================
-
- /**
- * This method invokes a given operation in the Partner API WebService
- *
- * This method is used for communication with the service. It sends the data
- * passed in the $data argument to the service and invokes the operation specified
- * in the $operation argument. It uses a WSDL file defined as the current WSDL file
- * in the constructor or by calling the setWSDL() method.
- * The $operation argument is simply a string.
- * The $data argument is an array in which keys are parts' names (according to WSDL)
- * and values are subsequent arrays. The subsequent arrays contain all passed elements.
- * A subsequent array's key is an element's name and value is a scalar value,
- * an array of scalar values or an array of further elements.
- *
- * This method can write debugging information to a file (see the setDebugFile() method).
- * This information is stored in a file only after a successful call to a service.
- *
- * Although it is possible, it is not intended this method to be called directly
- * by a user. It is invoked by operation objects.
- *
- * It returns an object containg all returned data from the service.
- *
- * @param string $operation The operations to be called
- * @param array $data The data to be passed to the operation
- * @return object
- * @throws SoapFault
- * @throws PartnerAPIException
- */
- public function call($operation = 'unspecified', $data = array())
- {
- $client = new SoapClient(
- $this->_wsdl,
- array('trace' => true, 'exceptions' => true, 'connection_timeout' => 30)
- );
- if ($this->_catchSoapFault) {
- try {
- $r = $client->__soapCall($operation, $data);
- } catch (SoapFault $e) {
- $ex = new PartnerAPIException($e->getMessage(), (int) $e->getCode());
- throw $ex;
- }
- } else {
- $r = $client->__soapCall($operation, $data);
- }
- $this->writeDebugData($operation, $data, $r, $client);
- return $r;
- }
-
- /**
- * Writes debugging information to a file.
- *
- * @param string $operation Operation invoked
- * @param array $data Data sent
- * @param array|string|object $r Response data
- * @param SoapClient $client Client object
- */
- protected function writeDebugData($operation, $data, $r, $client)
- {
- if (!is_null($this->_debugFile)) {
- $f = fopen($this->_debugFile, 'a');
- fwrite($f, "======================================================================\n");
- fwrite($f, "DEBUGGING INFORMATION FOR A 'PARTNER API SERVICE' REQUEST\n");
- fwrite($f, "======================================================================\n");
- fwrite($f, "TIME: " . date("Y-m-d H:i:s") . "\n");
- fwrite($f, "SERVICE USED: " . $this->_wsdl . "\n");
- fwrite($f, "OPERATION INVOKED: " . $operation . "\n");
- if (is_soap_fault($r)) {
- fwrite($f, "AN ERROR OCCURED:\n");
- fwrite($f, "SOAP FAULT CODE: " . $r->faultcode . "\n");
- fwrite($f, "SOAP FAULT MESSAGE: " . $r->faultstring . "\n");
- }
- fwrite($f, "----------\nDATA SENT:\n----------\n" . print_r($data, true) . "\n");
- fwrite($f, "--------------\nDATA RETURNED:\n--------------\n" . print_r($r, true) . "\n");
- fwrite($f, "----------------\nREQUEST HEADERS:\n----------------\n" . $client->__getLastRequestHeaders() . "\n");
- fwrite($f, "--------\nREQUEST:\n--------\n" . $client->__getLastRequest() . "\n");
- fwrite($f, "-----------------\nRESPONSE HEADERS:\n-----------------\n" . $client->__getLastResponseHeaders() . "\n");
- fwrite($f, "---------\nRESPONSE:\n---------\n" . $client->__getLastResponse() . "\n");
- fwrite($f, "===========\nEND\n===========\n");
- fclose($f);
- }
- }
-}
+setUserName($userName);
+ $this->setPassword($password);
+ $this->setWSDL($wsdl);
+ $this->setLang($lang);
+ /*
+ if (class_exists('SoapClient')) {
+ $this->_method = PartnerAPIService::METHOD_SOAP;
+ } elseif (function_exists('curl_init')) {
+ throw new PartnerAPIException("jakis tekst");
+ $this->_method = PartnerAPIService::METHOD_CURL;
+ } else {
+ throw new PartnerAPIException("jakis tekst"); // w one click mają "Unable to start communication, no SoapClient or Curl availible"
+ }
+ */
+ }
+
+ // ========================================================================
+
+ /**
+ * Returns the user name
+ *
+ * @return string
+ */
+ public function getUserName()
+ {
+ return $this->_userName;
+ }
+
+ /**
+ * Sets the user name to be used for authentication in a web service.
+ *
+ * @param string $userName
+ * @return PartnerAPIService The object being called
+ */
+ public function setUserName($userName)
+ {
+ $this->_userName = (string) $userName;
+ return $this;
+ }
+
+ /**
+ * Returns the password
+ *
+ * @return string
+ */
+ public function getPassword()
+ {
+ return $this->_password;
+ }
+
+ /**
+ * Sets the password to be used for authentication in a web service.
+ *
+ * @param string $password
+ * @return PartnerAPIService The object being called
+ */
+ public function setPassword($password)
+ {
+ $this->_password = (string) $password;
+ return $this;
+ }
+
+ /**
+ * Returns current language
+ *
+ * @return string
+ */
+ public function getLang()
+ {
+ return $this->_lang;
+ }
+
+ /**
+ * Sets the current language
+ *
+ * @param string $lang
+ * @return PartnerAPIService The object being called
+ */
+ public function setLang($lang)
+ {
+ $langarray = explode(';', PartnerAPIService::LANGS);
+ if (!in_array($lang, $langarray)) {
+ $lang = 'en';
+ }
+ $this->_lang = $lang;
+ return $this;
+ }
+
+ /**
+ * Returns current URL for a WSDL file.
+ *
+ * @return string
+ */
+ public function getWSDL()
+ {
+ return $this->_wsdl;
+ }
+
+ /**
+ * Sets the current URL for a WSDL file.
+ *
+ * @param string|null $wsdl
+ * @return PartnerAPIService The object being called
+ */
+ public function setWSDL($wsdl)
+ {
+ if (is_null($wsdl)) {
+ $this->_wsdl = PartnerAPIService::WSDL_TEST;
+ } else {
+ $this->_wsdl = (string) $wsdl;
+ }
+ return $this;
+ }
+
+ /**
+ * Configures the service to pass or to catch SoapFault exceptions.
+ *
+ * If SoapFault exceptions are catched they are rethrown as PartnerAPIException.
+ *
+ * @param boolean $yes_or_no
+ * @return PartnerAPIService
+ */
+ public function setCatchSoapFault($yes_or_no)
+ {
+ $this->_catchSoapFault = (bool) $yes_or_no;
+ return $this;
+ }
+
+ /**
+ * Tells if SoapFault exceptions are passed or catched.
+ *
+ * @return boolean True if SoapFault exceptions are catched, False otherwise
+ */
+ public function getCatchSoapFault()
+ {
+ return $this->_catchSoapFault;
+ }
+
+ /**
+ * Sets a file for storing debug information.
+ *
+ * The argument $fname should be null or a string containing a file name.
+ * If it is null, no debug information will be stored anywhere.
+ * Otherwise, it must be anything acceptable by the PHP function fopen() as the first argument.
+ *
+ * @param string|null $fname
+ * @return PartnerAPIService
+ * @throws PartnerAPIException
+ */
+ public function setDebugFile($fname = null)
+ {
+ if (!(is_null($fname) || is_string($fname))) {
+ throw new PartnerAPIException("Invalid file name. It should be a string or null.");
+ }
+ if (is_string($fname) && file_exists($fname) && !is_writable($fname)) {
+ throw new PartnerAPIException("File '$fname' is not writable.");
+ }
+ $this->_debugFile = $fname;
+ return $this;
+ }
+
+ /**
+ * Return a file name for writing debug information.
+ *
+ * It can also return null if no file name has been set.
+ *
+ * @return string|null A file name
+ */
+ public function getDebugFile()
+ {
+ return $this->_debugFile;
+ }
+
+ /* future implementation will also support CURL
+ public function getMethod() {
+ return $this->_method;
+ }
+
+ public function setMethod($method) {
+ if ($method == PartnerAPIService::METHOD_SOAP) {
+ if (class_exists('SoapClient'))
+ $this->_method = PartnerAPIService::METHOD_SOAP;
+ else
+ throw new PartnerAPIException("nie można");
+ return;
+ }
+ if ($method == PartnerAPIService::METHOD_CURL) {
+ if (function_exists('curl_init'))
+ $this->_method = PartnerAPIService::METHOD_CURL;
+ else
+ throw new PartnerAPIException;
+ return;
+ }
+ throw new PartnerAPIException("jakis tekst"); // w one click mają "Unable to start communication, no SoapClient or Curl availible"
+ }
+ */
+
+ // ========================================================================
+
+ /**
+ * Returns an object representing the validateOrderParameters operation.
+ *
+ * @return PartnerAPIOperationValidateOrderParameters
+ */
+ public function operationValidateOrderParameters()
+ {
+ $operation = new PartnerAPIOperationValidateOrderParameters();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the quickOrder operation.
+ *
+ * @return PartnerAPIOperationQuickOrder
+ */
+ public function operationQuickOrder()
+ {
+ $operation = new PartnerAPIOperationQuickOrder();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getOrderByOrderID operation.
+ *
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function operationGetOrderByOrderID()
+ {
+ $operation = new PartnerAPIOperationGetOrderByOrderID();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getOrderByOrderID operation.
+ *
+ * @return PartnerAPIOperationGetOrderByOrderID
+ */
+ public function operationGetOrdersByDateRange()
+ {
+ $operation = new PartnerAPIOperationGetOrdersByDateRange();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getModifiedOrders operation.
+ *
+ * @return PartnerAPIOperationGetModifiedOrders
+ */
+ public function operationGetModifiedOrders()
+ {
+ $operation = new PartnerAPIOperationGetModifiedOrders();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the cancelOrder operation.
+ *
+ * @return PartnerAPIOperationCancelOrder
+ */
+ public function operationCancelOrder()
+ {
+ $operation = new PartnerAPIOperationCancelOrder();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getProductList operation.
+ *
+ * @return PartnerAPIOperationGetProductList
+ */
+ public function operationGetProductList()
+ {
+ $operation = new PartnerAPIOperationGetProductList();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getConfiguration operation.
+ *
+ * @return PartnerAPIOperationGetConfiguration
+ */
+ public function operationGetConfiguration()
+ {
+ $operation = new PartnerAPIOperationGetConfiguration();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getCertificate operation.
+ *
+ * @return PartnerAPIOperationGetCertificate
+ */
+ public function operationGetCertificate()
+ {
+ $operation = new PartnerAPIOperationGetCertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the renewCertificate operation.
+ *
+ * @return PartnerAPIOperationRenewCertificate
+ */
+ public function operationRenewCertificate()
+ {
+ $operation = new PartnerAPIOperationRenewCertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the revokeCertificate operation.
+ *
+ * @return PartnerAPIOperationRevokeCertificate
+ */
+ public function operationRevokeCertificate()
+ {
+ $operation = new PartnerAPIOperationRevokeCertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getExpiringCertificates operation.
+ *
+ * @return PartnerAPIOperationGetExpiringCertificates
+ */
+ public function operationGetExpiringCertificates()
+ {
+ $operation = new PartnerAPIOperationGetExpiringCertificates();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the verifyOrder operation.
+ *
+ * @return PartnerAPIOperationVerifyOrder
+ */
+ public function operationVerifyOrder()
+ {
+ $operation = new PartnerAPIOperationVerifyOrder();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the orderSNICertificate operation.
+ *
+ * @return PartnerAPIOperationOrderSNICertificate
+ */
+ public function operationOrderSNICertificate()
+ {
+ $operation = new PartnerAPIOperationOrderSNICertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the modifySNICertificate operation.
+ *
+ * @return PartnerAPIOperationModifySNICertificate
+ */
+ public function operationModifySNICertificate()
+ {
+ $operation = new PartnerAPIOperationModifySNICertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getEmailVerification operation.
+ *
+ * @return PartnerAPIOperationGetEmailVerification
+ */
+ public function operationGetEmailVerification()
+ {
+ $operation = new PartnerAPIOperationGetEmailVerification();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the reissueCertificate operation.
+ *
+ * @return PartnerAPIOperationReissueCertificate
+ */
+ public function operationReissueCertificate()
+ {
+ $operation = new PartnerAPIOperationReissueCertificate();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getOrderState operation.
+ *
+ * @return PartnerAPIOperationGetOrderState
+ */
+ public function operationGetOrderState()
+ {
+ $operation = new PartnerAPIOperationGetOrderState();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the getSanVerificationState operation.
+ *
+ * @return PartnerAPIOperationGetSanVerificationState
+ */
+ public function operationGetSanVerificationState()
+ {
+ $operation = new PartnerAPIOperationGetSanVerificationState();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the performSanVerification operation.
+ *
+ * @return PartnerAPIOperationPerformSanVerification
+ */
+ public function operationPerformSanVerification()
+ {
+ $operation = new PartnerAPIOperationPerformSanVerification();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the addSanVerification operation.
+ *
+ * @return PartnerAPIOperationAddSanVerification
+ */
+ public function operationAddSanVerification()
+ {
+ $operation = new PartnerAPIOperationAddSanVerification();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ /**
+ * Returns an object representing the addEmailVerification operation.
+ *
+ * @return PartnerAPIOperationAddEmailVerification
+ */
+ public function operationAddEmailVerification()
+ {
+ $operation = new PartnerAPIOperationAddEmailVerification();
+ $operation->setService($this);
+ return $operation;
+ }
+
+ // ========================================================================
+
+ /**
+ * This method invokes a given operation in the Partner API WebService
+ *
+ * This method is used for communication with the service. It sends the data
+ * passed in the $data argument to the service and invokes the operation specified
+ * in the $operation argument. It uses a WSDL file defined as the current WSDL file
+ * in the constructor or by calling the setWSDL() method.
+ * The $operation argument is simply a string.
+ * The $data argument is an array in which keys are parts' names (according to WSDL)
+ * and values are subsequent arrays. The subsequent arrays contain all passed elements.
+ * A subsequent array's key is an element's name and value is a scalar value,
+ * an array of scalar values or an array of further elements.
+ *
+ * This method can write debugging information to a file (see the setDebugFile() method).
+ * This information is stored in a file only after a successful call to a service.
+ *
+ * Although it is possible, it is not intended this method to be called directly
+ * by a user. It is invoked by operation objects.
+ *
+ * It returns an object containg all returned data from the service.
+ *
+ * @param string $operation The operations to be called
+ * @param array $data The data to be passed to the operation
+ * @return object
+ * @throws SoapFault
+ * @throws PartnerAPIException
+ */
+ public function call($operation = 'unspecified', $data = array())
+ {
+ $client = new SoapClient(
+ $this->_wsdl,
+ array('trace' => true, 'exceptions' => true, 'connection_timeout' => 30)
+ );
+ if ($this->_catchSoapFault) {
+ try {
+ $r = $client->__soapCall($operation, $data);
+ } catch (SoapFault $e) {
+ $ex = new PartnerAPIException($e->getMessage(), (int) $e->getCode());
+ throw $ex;
+ }
+ } else {
+ $r = $client->__soapCall($operation, $data);
+ }
+ $this->writeDebugData($operation, $data, $r, $client);
+ return $r;
+ }
+
+ /**
+ * Writes debugging information to a file.
+ *
+ * @param string $operation Operation invoked
+ * @param array $data Data sent
+ * @param array|string|object $r Response data
+ * @param SoapClient $client Client object
+ */
+ protected function writeDebugData($operation, $data, $r, $client)
+ {
+ if (!is_null($this->_debugFile)) {
+ $f = fopen($this->_debugFile, 'a');
+ fwrite($f, "======================================================================\n");
+ fwrite($f, "DEBUGGING INFORMATION FOR A 'PARTNER API SERVICE' REQUEST\n");
+ fwrite($f, "======================================================================\n");
+ fwrite($f, "TIME: " . date("Y-m-d H:i:s") . "\n");
+ fwrite($f, "SERVICE USED: " . $this->_wsdl . "\n");
+ fwrite($f, "OPERATION INVOKED: " . $operation . "\n");
+ if (is_soap_fault($r)) {
+ fwrite($f, "AN ERROR OCCURED:\n");
+ fwrite($f, "SOAP FAULT CODE: " . $r->faultcode . "\n");
+ fwrite($f, "SOAP FAULT MESSAGE: " . $r->faultstring . "\n");
+ }
+ fwrite($f, "----------\nDATA SENT:\n----------\n" . print_r($data, true) . "\n");
+ fwrite($f, "--------------\nDATA RETURNED:\n--------------\n" . print_r($r, true) . "\n");
+ fwrite($f, "----------------\nREQUEST HEADERS:\n----------------\n" . $client->__getLastRequestHeaders() . "\n");
+ fwrite($f, "--------\nREQUEST:\n--------\n" . $client->__getLastRequest() . "\n");
+ fwrite($f, "-----------------\nRESPONSE HEADERS:\n-----------------\n" . $client->__getLastResponseHeaders() . "\n");
+ fwrite($f, "---------\nRESPONSE:\n---------\n" . $client->__getLastResponse() . "\n");
+ fwrite($f, "===========\nEND\n===========\n");
+ fclose($f);
+ }
+ }
+}
diff --git a/src/types/type.php b/src/Types/type.php
similarity index 85%
rename from src/types/type.php
rename to src/Types/type.php
index 0c584c8..21332ac 100644
--- a/src/types/type.php
+++ b/src/Types/type.php
@@ -1,447 +1,456 @@
- TRUE if attribute nillable = "true", or FALSE otherwise
- *
- * @var array
- */
- protected $elems = array();
-
- /* *
- * This is an array containing choices from a WSDL file.
- *
- * Every array's element is an array representing one choice from WSDL.
- * Every choice is an array containg all the choice options where each
- * element is an array containing a set of WSDL elements being an option.
- * An example:
- *
- * All the array keys are optional and arbitrary.
- *
- * @var array
- */
- //protected $choices = array();
-
- /**
- * This is an abstract method used to initialize type elements.
- *
- * When overriden, it must return an array containing all elements for a given type.
- * The structure of this array is defined in the description of $elems variable.
- * If a type is deriving from another type derived from PartnerAPIType
- * then the implementations of this method must call the parent's initData() method
- * and merge all elements.
- *
- * @return array A set of all type elements
- */
- abstract protected function initData();
-
- /**
- * It is the constructor.
- *
- * It just initialize data.
- */
- public function __construct()
- {
- $this->resetData();
- }
-
- /**
- * This method resets object's data.
- *
- * It sets all elements to initial states.
- */
- public function resetData()
- {
- $this->elems = $this->initData();
- }
-
- /**
- * This method sets values of contained elements
- *
- * The structure of the data argument must be the same as the structure of
- * data returned when calling an operation on an object of SoapClient class.
- *
- * This method, although public, is not intended to be called directly.
- * It is rather used internally.
- *
- * @param array $data Data to be set as elements' values
- * @return PartnerAPIType
- * @throws PartnerAPIException
- */
- public function setData($data)
- {
- foreach ($data as $elemName => $value) {
- if (isset($this->elems[$elemName])) {
- //if (! $this->canBeChoiced($elemName)) {
- // throw new PartnerAPIException("Element '$elemName' cannot be set. It is an option in a choice structure and another option has already been chosen.");
- //}
- $props = $this->elems[$elemName];
- if (!is_array($value))
- $value = array($value);
- else if (!is_null($props['max']) && count($value) > $props['max']) {
- throw new PartnerAPIException("Unexpected behavior. Too many (" . count($value) . ") values for element $elemName returned from a service. The element can hold " . $props['max'] . " values.");
- }
- foreach ($value as $v) {
- $arg = array();
- if (in_array($props['type'], array('string', 'int', 'long', 'boolean'))) {
- $arg = array($v);
- } else {
- $newElement = new $props['type'];
- $newElement->setData($v);
- $arg = array($newElement);
- }
- $this->addElement($elemName, $arg);
- }
- }
- }
- return $this;
- }
-
- /**
- * This method return all elements and their values as an array
- *
- * It builds a nested array of arrays or simple values depending on
- * the structure of a type definition.
- * Simple values are string, int, long, boolean and null.
- * Each key is an element's name.
- * A value can be a simple value or an array if an element's value is
- * an array or an object.
- *
- * The argument $omitNullValues tells if elements which value is NULL
- * will be omitted.
- *
- * @param boolean $omitNullValues
- * @return array A set of all elements and they values
- */
- public function getDataAsArray($omitNullValues = FALSE)
- {
- $r = array();
- foreach ($this->elems as $elem => $props) {
- if ($omitNullValues && is_null($props['value']))
- continue;
- $value = NULL;
- if (is_null($props['max']) && is_array($props['value'])) {
- $value = array();
- foreach ($props['value'] as $v)
- $value[] = is_object($v) ? $v->getDataAsArray() : $v;
- } else
- $value = is_object($props['value']) ? $props['value']->getDataAsArray() : $props['value'];
- $r[$elem] = $value;
- }
- return $r;
- }
-
- // ====================================================== magic methods
- // ====================================================== call, get, set
-
- /**
- * This is a "magic" method invoked when an inaccessible method is called
- *
- * This method supports three kinds of calls:
- * - a setting method which name must be formed like setXxx
- * - a adding method which name must be formed like addXxx
- * - a getting method which name must be formed like getXxx
- * and the Xxx part of a method's name is an element's name.
- *
- * When invoking a setXxx or addXxx method it gets one argument which is
- * passed to this method in an array as the second argument $arguments.
- * The passed arguments must be null, string, int, long, boolean or an object
- * of a type derived from PartnerAPIType, depending on a type's WSDL definition.
- *
- * @param string $name A name of invoked method
- * @param array $arguments An array with a value to be set
- * @return PartnerAPIType
- * @throws PartnerAPIException
- */
- public function __call($name, $arguments)
- {
- if (strlen($name) <= 3) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- $methodType = substr($name, 0, 3);
- if (!in_array($methodType, array('set', 'add', 'get'))) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- $element = $this->findElemName(substr($name, 3));
- if (is_null($element)) {
- throw new PartnerAPIException("Invalid method name '$name' for this object.");
- }
- if ($methodType == 'set')
- return $this->setElement($element, $arguments);
- if ($methodType == 'add')
- return $this->addElement($element, $arguments);
- if ($methodType == 'get')
- return $this->getElement($element);
- throw new PartnerAPIException("An unexpected error occurred.");
- }
-
- /**
- * Sets an element's value.
- *
- * This method is called internally and by the __call() "magic" method.
- * It is not recommended to invoke it directly.
- *
- * This method sets the value of an element. The value is passed in an array
- * as the second argument $arguments.
- * The new value replaces the old value.
- *
- * @param string $element An element's name
- * @param array $arguments An array with a value to be set
- * @return PartnerAPIType
- * @throws PartnerAPIException
- */
- protected function setElement($element, $arguments)
- {
- //if (! $this->canBeChoiced($element)) {
- // throw new PartnerAPIException("Element '$element' cannot be set. It is an option in a choice structure and another option has already been chosen.");
- //}
- $props = $this->elems[$element];
- $arg = $arguments[0];
- $value = null;
- if (is_null($arg)) {
- if ($props['min'] == 0)
- $value = null;
- else if ($props['nillable']) {
- $value = null;
- } else {
- throw new PartnerAPIException("The element '$element' cannot be set with the value of NULL.");
- }
- } else {
- if ($props['type'] == 'string')
- $value = (string) $arg;
- else if ($props['type'] == 'int')
- $value = (int) $arg;
- else if ($props['type'] == 'long')
- $value = (int) $arg;
- else if ($props['type'] == 'boolean')
- $value = (bool) $arg;
- else
- if (is_object($arg) && (get_class($arg) == $props['type']))
- $value = $arg;
- else {
- throw new PartnerAPIException("The element '$element' has to be set with an object of type " . $props['type'] . ".");
- }
- }
- $this->elems[$element]['value'] = $value;
- $this->elems[$element]['was_set'] = TRUE;
- return $this;
- }
-
- /**
- * Adds a value to an element's set of values.
- *
- * This method is called internally and by the __call() "magic" method.
- * It is not recommended to invoke it directly.
- *
- * This method adds the value to the set of an element' values.
- * The new value is passed in an array as the second argument $arguments.
- *
- * This methods can be invoked only for types which have the attribute 'max' set to NULL.
- * If the 'max' attribute is not NULL then the setElement() method is invoked
- * and the new value replaces the old value.
- *
- * @param string $element An element's name
- * @param array $arguments An array with a value to be set
- * @return PartnerAPIType
- * @throws PartnerAPIException
- */
- protected function addElement($element, $arguments)
- {
- //if (! $this->canBeChoiced($element)) {
- // throw new PartnerAPIException("Element '$element' cannot be set. It is an option in a choice structure and another option has already been chosen.");
- //}
- $props = $this->elems[$element];
- if (!isset($props['was_set']) || FALSE === $props['was_set'])
- return $this->setElement($element, $arguments);
- if ($props['max'] == 1)
- return $this->setElement($element, $arguments);
- $arg = $arguments[0];
- $value = null;
- if ($props['nillable'] || !(is_null($arg) || is_null($props['value']))) {
- if (is_null($arg))
- $value = null;
- else {
- if ($props['type'] == 'string')
- $value = (string) $arg;
- else if ($props['type'] == 'int')
- $value = (int) $arg;
- else if ($props['type'] == 'long')
- $value = (int) $arg;
- else if ($props['type'] == 'boolean')
- $value = (bool) $arg;
- else
- if (is_object($arg) && (get_class($arg) == $props['type']))
- $value = $arg;
- else {
- throw new PartnerAPIException("The element '$element' has to be set with an object of type " . $props['type'] . ".");
- }
- }
- } else if (!$props['nillable'] && is_null($props['value']))
- return $this->setElement($element, $arguments);
- else {
- throw new PartnerAPIException("The element '$element' cannot be set with the value of null.");
- }
- if (!is_array($this->elems[$element]['value']))
- $this->elems[$element]['value'] = array($this->elems[$element]['value']);
- $this->elems[$element]['value'][] = $value;
- $this->elems[$element]['was_set'] = TRUE;
- return $this;
- }
-
- /**
- * Gets an element's value.
- *
- * This method is called by the __call "magic" method.
- * It is not recommended to invoke it directly.
- *
- * It just return the value of an element. It can be null, string, int, long,
- * boolean or an object.
- *
- * @param string $element An element's name
- * @return string|int|long|boolean|null|object The value of an element
- */
- protected function getElement($element)
- {
- return $this->elems[$element]['value'];
- }
-
- /**
- * This is a "magic" method invoked when an inaccessible property is accessed.
- *
- * The argument $name is an accessed property and it must be an element's name.
- *
- * @param string $name An element's name
- * @return string|int|long|boolean|null|object The value of an element
- * @throws PartnerAPIException
- */
- public function __get($name)
- {
- $element = $this->findElemName($name);
- if (is_null($element)) {
- throw new PartnerAPIException("Invalid property name '$name' for this object.");
- }
- return $this->getElement($element);
- }
-
- /**
- * This method converts an element's name to a proper name.
- *
- * It tries to find if the given element's name exists.
- * It checks the name as it has been given, and with the first letter uppercased and lowercased.
- * If the proper name has been found it is returned, otherwise NULL is returned.
- *
- * It is used by "magic" methods, so it is not so important whether an element's name
- * is given with the first letter uppercased or lowercased. But always try to use it
- * exactly as it is defined in WSDL file or the documentation for a type.
- *
- * @param string $name An element's name
- * @return string|null An element's name or null
- */
- protected function findElemName($name)
- {
- if (isset($this->elems[$name]))
- return $name;
- $name[0] = strtolower($name[0]);
- if (isset($this->elems[$name]))
- return $name;
- $name[0] = strtoupper($name[0]);
- if (isset($this->elems[$name]))
- return $name;
- return NULL;
- }
-
- /* *
- * This method determines if an element can be set in case when it belongs to a WSDL choice.
- *
- * If the $choices array is populated with choices based on a WSDL file
- * than it is examined if an element given in the $elemName parameter can be set.
- * If any element in any other choice's option has already been set
- * then the given element cannot be set.
- *
- * @param string $elemName An element's name
- * @return bool Determines if an element can be set
- */
- /*
- protected function canBeChoiced($elemName) {
- $result = TRUE;
- if (!is_array($this->choices))
- return $result;
- foreach ($this->choices as $wsdlChoice) {
- if (!is_array($wsdlChoice))
- continue;
- $choiceHasOtherChoicesUsed = FALSE;
- $choiceHasElement = FALSE;
- foreach ($wsdlChoice as $singleChoice) {
- if (!is_array($singleChoice))
- continue;
- $singleChoiceHasElement = FALSE;
- $singleChoiceIsUsed = FALSE;
- foreach ($singleChoice as $element) {
- if ($elemName == $element)
- $singleChoiceHasElement = TRUE;
- else
- if (isset($this->elems[$element]['was_set']) && $this->elems[$element]['was_set'])
- $singleChoiceIsUsed = TRUE;
- }
- if ($singleChoiceHasElement)
- $singleChoiceIsUsed = FALSE;
- $choiceHasOtherChoicesUsed = $choiceHasOtherChoicesUsed || $singleChoiceIsUsed;
- $choiceHasElement = $choiceHasElement || $singleChoiceHasElement;
- }
- if ($choiceHasElement && $choiceHasOtherChoicesUsed) {
- $result = FALSE;
- break;
- }
- }
- return $result;
- }
- */
-}
+ TRUE if attribute nillable = "true", or FALSE otherwise
+ *
+ * @var array
+ */
+ protected $elems = array();
+
+ /* *
+ * This is an array containing choices from a WSDL file.
+ *
+ * Every array's element is an array representing one choice from WSDL.
+ * Every choice is an array containg all the choice options where each
+ * element is an array containing a set of WSDL elements being an option.
+ * An example:
+ *