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: - *
-     * 
-     * <xs:choice>
-     *     <xs:element name="id" type="xs:long"/>
-     *     <xs:sequence>
-     *         <xs:element name="name" type="xs:string"/>
-     *         <xs:element name="description" type="xs:string"/>
-     *     </xs:sequence>
-     * </xs:choice>
-     * 
-     * $choices = array(
-     *   0 => array(
-     *     0 => array("id"),
-     *     1 => array("name", "description")
-     *   )
-     * );
-     * 
- * 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: + *
+     *
+     * <xs:choice>
+     *     <xs:element name="id" type="xs:long"/>
+     *     <xs:sequence>
+     *         <xs:element name="name" type="xs:string"/>
+     *         <xs:element name="description" type="xs:string"/>
+     *     </xs:sequence>
+     * </xs:choice>
+     *
+     * $choices = array(
+     *   0 => array(
+     *     0 => array("id"),
+     *     1 => array("name", "description")
+     *   )
+     * );
+     * 
+ * 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); + } elseif (!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; + } elseif ($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; + } elseif ($props['type'] == 'int') { + $value = (int) $arg; + } elseif ($props['type'] == 'long') { + $value = (int) $arg; + } elseif ($props['type'] == 'boolean') { + $value = (bool) $arg; + } elseif (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; + } elseif ($props['type'] == 'int') { + $value = (int) $arg; + } elseif ($props['type'] == 'long') { + $value = (int) $arg; + } elseif ($props['type'] == 'boolean') { + $value = (bool) $arg; + } elseif (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'] . "."); + } + } + } elseif (!$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; + } + */ +} diff --git a/src/types/typeAddEmailVerificationRequest.php b/src/Types/typeAddEmailVerificationRequest.php similarity index 88% rename from src/types/typeAddEmailVerificationRequest.php rename to src/Types/typeAddEmailVerificationRequest.php index 68d85b8..4714866 100644 --- a/src/types/typeAddEmailVerificationRequest.php +++ b/src/Types/typeAddEmailVerificationRequest.php @@ -1,45 +1,46 @@ - - - - - - - - - -*/ - -/** - * This class represents the addEmailVerificationRequest WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeAddEmailVerificationRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @package types - */ -class PartnerAPITypeAddEmailVerificationRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the addEmailVerificationRequest WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeAddEmailVerificationRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @package types + */ +class PartnerAPITypeAddEmailVerificationRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeAddEmailVerificationResponse.php b/src/Types/typeAddEmailVerificationResponse.php similarity index 87% rename from src/types/typeAddEmailVerificationResponse.php rename to src/Types/typeAddEmailVerificationResponse.php index 0cfcaf1..6a13b40 100644 --- a/src/types/typeAddEmailVerificationResponse.php +++ b/src/Types/typeAddEmailVerificationResponse.php @@ -1,34 +1,35 @@ - - - - - - - -*/ - -/** - * This class represents the addEmailVerificationResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @package types - */ -class PartnerAPITypeAddEmailVerificationResponse extends PartnerAPITypeResponse { - - protected function initData() { - return parent::initData(); - } - - -} + + + + + + + +*/ + +/** + * This class represents the addEmailVerificationResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @package types + */ +class PartnerAPITypeAddEmailVerificationResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + return parent::initData(); + } +} diff --git a/src/types/typeAddSanVerificationRequest.php b/src/Types/typeAddSanVerificationRequest.php similarity index 90% rename from src/types/typeAddSanVerificationRequest.php rename to src/Types/typeAddSanVerificationRequest.php index 8a20049..4d4819e 100644 --- a/src/types/typeAddSanVerificationRequest.php +++ b/src/Types/typeAddSanVerificationRequest.php @@ -1,53 +1,52 @@ - - - - - - - - - - -*/ - -/** - * This class represents the addSanVerificationRequest WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeAddSanVerificationRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. - * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. - * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. - * - * @method PartnerAPITypeAddSanVerificationRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @package types - */ -class PartnerAPITypeAddSanVerificationRequest extends PartnerAPITypeRequest -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => TRUE), - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + + +*/ + +/** + * This class represents the addSanVerificationRequest WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeAddSanVerificationRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. + * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. + * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. + * + * @method PartnerAPITypeAddSanVerificationRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @package types + */ +class PartnerAPITypeAddSanVerificationRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => true), + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeAddSanVerificationResponse.php b/src/Types/typeAddSanVerificationResponse.php similarity index 91% rename from src/types/typeAddSanVerificationResponse.php rename to src/Types/typeAddSanVerificationResponse.php index d8f31ea..e7c59b1 100644 --- a/src/types/typeAddSanVerificationResponse.php +++ b/src/Types/typeAddSanVerificationResponse.php @@ -1,47 +1,46 @@ - - - - - - - - - -*/ - -/** - * This class represents the addSanVerificationResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeAddSanVerificationResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. - * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. - * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. - * - * @package types - */ -class PartnerAPITypeAddSanVerificationResponse extends PartnerAPITypeResponse -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => TRUE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + +*/ + +/** + * This class represents the addSanVerificationResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeAddSanVerificationResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. + * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. + * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. + * + * @package types + */ +class PartnerAPITypeAddSanVerificationResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => true) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeAddSerialNumbers.php b/src/Types/typeAddSerialNumbers.php similarity index 81% rename from src/types/typeAddSerialNumbers.php rename to src/Types/typeAddSerialNumbers.php index e20eb7e..66c0607 100644 --- a/src/types/typeAddSerialNumbers.php +++ b/src/Types/typeAddSerialNumbers.php @@ -1,42 +1,41 @@ - - - - - -*/ - -/** - * This class represents the addSerialNumbers WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeAddSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. - * @method PartnerAPITypeAddSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. - * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeAddSerialNumbers extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'serialNumber' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + +*/ + +/** + * This class represents the addSerialNumbers WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeAddSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. + * @method PartnerAPITypeAddSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. + * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeAddSerialNumbers extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'serialNumber' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeApproverEmailPrefixType.php b/src/Types/typeApproverEmailPrefixType.php similarity index 99% rename from src/types/typeApproverEmailPrefixType.php rename to src/Types/typeApproverEmailPrefixType.php index 1e24aae..9ee8de7 100644 --- a/src/types/typeApproverEmailPrefixType.php +++ b/src/Types/typeApproverEmailPrefixType.php @@ -4,7 +4,7 @@ /** * Partner API Library - * + * * @copyright Copyright (c) 2020 Asseco Data Systems SA * @license license.txt */ @@ -30,7 +30,6 @@ */ class PartnerAPITypeApproverEmailPrefixType { - const ADMIN = "ADMIN"; const ADMINISTRATOR = "ADMINISTRATOR"; const POSTMASTER = "POSTMASTER"; diff --git a/src/types/typeAuthToken.php b/src/Types/typeAuthToken.php similarity index 78% rename from src/types/typeAuthToken.php rename to src/Types/typeAuthToken.php index 3f70c34..9bd5faf 100644 --- a/src/types/typeAuthToken.php +++ b/src/Types/typeAuthToken.php @@ -1,47 +1,46 @@ - - - - - - -*/ - -/** - * This class represents the authToken WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeAuthToken setPassword(string $value) Sets the password element. - * @method string getPassword() Gets the password element. - * @property string $password Gets the password element. - * - * @method PartnerAPITypeAuthToken setUserName(string $value) Sets the userName element. - * @method string getUserName() Gets the userName element. - * @property string $userName Gets the userName element. - * - * @package types - */ -class PartnerAPITypeAuthToken extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'password' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'userName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + + +*/ + +/** + * This class represents the authToken WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeAuthToken setPassword(string $value) Sets the password element. + * @method string getPassword() Gets the password element. + * @property string $password Gets the password element. + * + * @method PartnerAPITypeAuthToken setUserName(string $value) Sets the userName element. + * @method string getUserName() Gets the userName element. + * @property string $userName Gets the userName element. + * + * @package types + */ +class PartnerAPITypeAuthToken extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'password' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'userName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeBusinessCategoryEnum.php b/src/Types/typeBusinessCategoryEnum.php similarity index 82% rename from src/types/typeBusinessCategoryEnum.php rename to src/Types/typeBusinessCategoryEnum.php index 452658b..7f57ed6 100644 --- a/src/types/typeBusinessCategoryEnum.php +++ b/src/Types/typeBusinessCategoryEnum.php @@ -1,39 +1,40 @@ - - - - - - - - -*/ - -/** - * This class represents the businessCategoryEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeBusinessCategoryEnum { - - const PRIVATE_ORGANIZATION = "Private Organization"; - const GOVERNMENT_ENTITY = "Government Entity"; - const BUSINESS_ENTITY = "Business Entity"; - const NON_COMMERCIAL_ENTITY = "Non-Commercial Entity"; - - private function __construct() { - } - - -} + + + + + + + + +*/ + +/** + * This class represents the businessCategoryEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeBusinessCategoryEnum +{ + const PRIVATE_ORGANIZATION = "Private Organization"; + const GOVERNMENT_ENTITY = "Government Entity"; + const BUSINESS_ENTITY = "Business Entity"; + const NON_COMMERCIAL_ENTITY = "Non-Commercial Entity"; + + private function __construct() + { + } +} diff --git a/src/types/typeCaBundle.php b/src/Types/typeCaBundle.php similarity index 74% rename from src/types/typeCaBundle.php rename to src/Types/typeCaBundle.php index 06db903..0f6fe32 100644 --- a/src/types/typeCaBundle.php +++ b/src/Types/typeCaBundle.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the caBundle WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeCaBundle setX509Cert(string $value) Sets the X509Cert element. This method removes all previously added X509Cert elements and creates a new set of X509Cert elements. - * @method PartnerAPITypeCaBundle addX509Cert(string $value) Adds a new X509Cert element to the existing set. - * @method string|string[] getX509Cert() Gets the X509Cert element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $X509Cert Gets the X509Cert element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeCaBundle extends PartnerAPIType { - - protected function initData() { - $n = array( - 'X509Cert' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the caBundle WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeCaBundle setX509Cert(string $value) Sets the X509Cert element. This method removes all previously added X509Cert elements and creates a new set of X509Cert elements. + * @method PartnerAPITypeCaBundle addX509Cert(string $value) Adds a new X509Cert element to the existing set. + * @method string|string[] getX509Cert() Gets the X509Cert element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $X509Cert Gets the X509Cert element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeCaBundle extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'X509Cert' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeCancelOrderReponse.php b/src/Types/typeCancelOrderReponse.php similarity index 72% rename from src/types/typeCancelOrderReponse.php rename to src/Types/typeCancelOrderReponse.php index 08b1db8..137b9eb 100644 --- a/src/types/typeCancelOrderReponse.php +++ b/src/Types/typeCancelOrderReponse.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the cancelOrderReponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @package types - */ -class PartnerAPITypeCancelOrderReponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the cancelOrderReponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @package types + */ +class PartnerAPITypeCancelOrderReponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeCancelOrderRequest.php b/src/Types/typeCancelOrderRequest.php similarity index 73% rename from src/types/typeCancelOrderRequest.php rename to src/Types/typeCancelOrderRequest.php index 77dcd56..b5810e4 100644 --- a/src/types/typeCancelOrderRequest.php +++ b/src/Types/typeCancelOrderRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the cancelOrderRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeCancelOrderRequest setCancelParameters(PartnerAPITypeCancelParameters $value) Sets the cancelParameters element. - * @method PartnerAPITypeCancelParameters getCancelParameters() Gets the cancelParameters element. - * @property PartnerAPITypeCancelParameters $cancelParameters Gets the cancelParameters element. - * - * @package types - */ -class PartnerAPITypeCancelOrderRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'cancelParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeCancelParameters(), 'type' => 'PartnerAPITypeCancelParameters', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the cancelOrderRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeCancelOrderRequest setCancelParameters(PartnerAPITypeCancelParameters $value) Sets the cancelParameters element. + * @method PartnerAPITypeCancelParameters getCancelParameters() Gets the cancelParameters element. + * @property PartnerAPITypeCancelParameters $cancelParameters Gets the cancelParameters element. + * + * @package types + */ +class PartnerAPITypeCancelOrderRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'cancelParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeCancelParameters(), 'type' => 'PartnerAPITypeCancelParameters', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeCancelParameters.php b/src/Types/typeCancelParameters.php similarity index 71% rename from src/types/typeCancelParameters.php rename to src/Types/typeCancelParameters.php index 2e58f29..a1b85b2 100644 --- a/src/types/typeCancelParameters.php +++ b/src/Types/typeCancelParameters.php @@ -1,46 +1,47 @@ - - - - - - -*/ - -/** - * This class represents the cancelParameters WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeCancelParameters setNote(string $value) Sets the note element. - * @method string getNote() Gets the note element or NULL. - * @property string $note Gets the note element or NULL. - * - * @method PartnerAPITypeCancelParameters setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @package types - */ -class PartnerAPITypeCancelParameters extends PartnerAPIType { - - protected function initData() { - $n = array( - 'note' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + +*/ + +/** + * This class represents the cancelParameters WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeCancelParameters setNote(string $value) Sets the note element. + * @method string getNote() Gets the note element or NULL. + * @property string $note Gets the note element or NULL. + * + * @method PartnerAPITypeCancelParameters setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @package types + */ +class PartnerAPITypeCancelParameters extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'note' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeCertificateDetails.php b/src/Types/typeCertificateDetails.php similarity index 70% rename from src/types/typeCertificateDetails.php rename to src/Types/typeCertificateDetails.php index e16c05a..6bedfba 100644 --- a/src/types/typeCertificateDetails.php +++ b/src/Types/typeCertificateDetails.php @@ -1,88 +1,89 @@ - - - - - - - - - - - - - -*/ - -/** - * This class represents the certificateDetails WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeCertificateDetails setCertificateStatus(string $value) Sets the certificateStatus element. - * @method string getCertificateStatus() Gets the certificateStatus element. - * @property string $certificateStatus Gets the certificateStatus element. - * - * @method PartnerAPITypeCertificateDetails setCommonName(string $value) Sets the commonName element. - * @method string getCommonName() Gets the commonName element. - * @property string $commonName Gets the commonName element. - * - * @method PartnerAPITypeCertificateDetails setDNSNames(string $value) Sets the DNSNames element. - * @method string getDNSNames() Gets the DNSNames element or NULL. - * @property string $DNSNames Gets the DNSNames element or NULL. - * - * @method PartnerAPITypeCertificateDetails setEndDate(string $value) Sets the endDate element. - * @method string getEndDate() Gets the endDate element. - * @property string $endDate Gets the endDate element. - * - * @method PartnerAPITypeCertificateDetails setRevokedDate(string $value) Sets the revokedDate element. - * @method string getRevokedDate() Gets the revokedDate element or NULL. - * @property string $revokedDate Gets the revokedDate element or NULL. - * - * @method PartnerAPITypeCertificateDetails setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element. - * @property string $serialNumber Gets the serialNumber element. - * - * @method PartnerAPITypeCertificateDetails setStartDate(string $value) Sets the startDate element. - * @method string getStartDate() Gets the startDate element. - * @property string $startDate Gets the startDate element. - * - * @method PartnerAPITypeCertificateDetails setSubjectName(string $value) Sets the subjectName element. - * @method string getSubjectName() Gets the subjectName element. - * @property string $subjectName Gets the subjectName element. - * - * @method PartnerAPITypeCertificateDetails setX509Cert(string $value) Sets the X509Cert element. - * @method string getX509Cert() Gets the X509Cert element. - * @property string $X509Cert Gets the X509Cert element. - * - * @package types - */ -class PartnerAPITypeCertificateDetails extends PartnerAPIType { - - protected function initData() { - $n = array( - 'certificateStatus' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'commonName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'DNSNames' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'endDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'revokedDate' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'startDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'subjectName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'X509Cert' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + + + + +*/ + +/** + * This class represents the certificateDetails WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeCertificateDetails setCertificateStatus(string $value) Sets the certificateStatus element. + * @method string getCertificateStatus() Gets the certificateStatus element. + * @property string $certificateStatus Gets the certificateStatus element. + * + * @method PartnerAPITypeCertificateDetails setCommonName(string $value) Sets the commonName element. + * @method string getCommonName() Gets the commonName element. + * @property string $commonName Gets the commonName element. + * + * @method PartnerAPITypeCertificateDetails setDNSNames(string $value) Sets the DNSNames element. + * @method string getDNSNames() Gets the DNSNames element or NULL. + * @property string $DNSNames Gets the DNSNames element or NULL. + * + * @method PartnerAPITypeCertificateDetails setEndDate(string $value) Sets the endDate element. + * @method string getEndDate() Gets the endDate element. + * @property string $endDate Gets the endDate element. + * + * @method PartnerAPITypeCertificateDetails setRevokedDate(string $value) Sets the revokedDate element. + * @method string getRevokedDate() Gets the revokedDate element or NULL. + * @property string $revokedDate Gets the revokedDate element or NULL. + * + * @method PartnerAPITypeCertificateDetails setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element. + * @property string $serialNumber Gets the serialNumber element. + * + * @method PartnerAPITypeCertificateDetails setStartDate(string $value) Sets the startDate element. + * @method string getStartDate() Gets the startDate element. + * @property string $startDate Gets the startDate element. + * + * @method PartnerAPITypeCertificateDetails setSubjectName(string $value) Sets the subjectName element. + * @method string getSubjectName() Gets the subjectName element. + * @property string $subjectName Gets the subjectName element. + * + * @method PartnerAPITypeCertificateDetails setX509Cert(string $value) Sets the X509Cert element. + * @method string getX509Cert() Gets the X509Cert element. + * @property string $X509Cert Gets the X509Cert element. + * + * @package types + */ +class PartnerAPITypeCertificateDetails extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'certificateStatus' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'commonName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'DNSNames' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'endDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'revokedDate' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'startDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'subjectName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'X509Cert' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeCertificateStatusEnum.php b/src/Types/typeCertificateStatusEnum.php similarity index 62% rename from src/types/typeCertificateStatusEnum.php rename to src/Types/typeCertificateStatusEnum.php index 46e3dbe..fde8618 100644 --- a/src/types/typeCertificateStatusEnum.php +++ b/src/Types/typeCertificateStatusEnum.php @@ -1,37 +1,38 @@ - - - - - - - -*/ - -/** - * This class represents the certificateStatusEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeCertificateStatusEnum { - - const VALID = "VALID"; - const REVOKING = "REVOKING"; - const REVOKED = "REVOKED"; - - private function __construct() { - } - - -} + + + + + + + +*/ + +/** + * This class represents the certificateStatusEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeCertificateStatusEnum +{ + const VALID = "VALID"; + const REVOKING = "REVOKING"; + const REVOKED = "REVOKED"; + + private function __construct() + { + } +} diff --git a/src/types/typeCertificationRequestStateTypeEnum.php b/src/Types/typeCertificationRequestStateTypeEnum.php similarity index 61% rename from src/types/typeCertificationRequestStateTypeEnum.php rename to src/Types/typeCertificationRequestStateTypeEnum.php index 95f434b..8337117 100644 --- a/src/types/typeCertificationRequestStateTypeEnum.php +++ b/src/Types/typeCertificationRequestStateTypeEnum.php @@ -1,41 +1,42 @@ - - - - - - - - - -*/ - -/** - * This class represents the certificationRequestStateTypeEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeCertificationRequestStateTypeEnum { - - const AWAITING = "AWAITING"; - const VERIFICATION = "VERIFICATION"; - const ACCEPTED = "ACCEPTED"; - const REJECTED = "REJECTED"; - const ENROLLED = "ENROLLED"; - - private function __construct() { - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the certificationRequestStateTypeEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeCertificationRequestStateTypeEnum +{ + const AWAITING = "AWAITING"; + const VERIFICATION = "VERIFICATION"; + const ACCEPTED = "ACCEPTED"; + const REJECTED = "REJECTED"; + const ENROLLED = "ENROLLED"; + + private function __construct() + { + } +} diff --git a/src/types/typeDocument.php b/src/Types/typeDocument.php similarity index 73% rename from src/types/typeDocument.php rename to src/Types/typeDocument.php index 9d3c441..1991ae2 100644 --- a/src/types/typeDocument.php +++ b/src/Types/typeDocument.php @@ -1,52 +1,53 @@ - - - - - - - -*/ - -/** - * This class represents the document WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeDocument setFiles(PartnerAPITypeFiles $value) Sets the files element. - * @method PartnerAPITypeFiles getFiles() Gets the files element. - * @property PartnerAPITypeFiles $files Gets the files element. - * - * @method PartnerAPITypeDocument setDescription(string $value) Sets the description element. - * @method string getDescription() Gets the description element. - * @property string $description Gets the description element. - * - * @method PartnerAPITypeDocument setType(string $value) Sets the type element. - * @method string getType() Gets the type element. - * @property string $type Gets the type element. - * - * @package types - */ -class PartnerAPITypeDocument extends PartnerAPIType { - - protected function initData() { - $n = array( - 'files' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeFiles(), 'type' => 'PartnerAPITypeFiles', 'nillable' => FALSE), - 'description' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'type' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the document WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeDocument setFiles(PartnerAPITypeFiles $value) Sets the files element. + * @method PartnerAPITypeFiles getFiles() Gets the files element. + * @property PartnerAPITypeFiles $files Gets the files element. + * + * @method PartnerAPITypeDocument setDescription(string $value) Sets the description element. + * @method string getDescription() Gets the description element. + * @property string $description Gets the description element. + * + * @method PartnerAPITypeDocument setType(string $value) Sets the type element. + * @method string getType() Gets the type element. + * @property string $type Gets the type element. + * + * @package types + */ +class PartnerAPITypeDocument extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'files' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeFiles(), 'type' => 'PartnerAPITypeFiles', 'nillable' => false), + 'description' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'type' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeDocumentTypeEnum.php b/src/Types/typeDocumentTypeEnum.php similarity index 94% rename from src/types/typeDocumentTypeEnum.php rename to src/Types/typeDocumentTypeEnum.php index 8631de5..8079d53 100644 --- a/src/types/typeDocumentTypeEnum.php +++ b/src/Types/typeDocumentTypeEnum.php @@ -1,46 +1,45 @@ - - - - - - - - - - -*/ - -/** - * This class represents the documentTypeEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeDocumentTypeEnum -{ - - const AUTHORIZATION = "AUTHORIZATION"; - const VERIFICATION_REPORT = "VERIFICATION_REPORT"; - const VERIFICATION_REPORT_OTF = "VERIFICATION_REPORT_OTF"; - const APPLICANT = "APPLICANT"; - const ORGANIZATION = "ORGANIZATION"; - const ADDITIONAL = "ADDITIONAL"; - const PASSPORT = "PASSPORT"; - - private function __construct() - { - } -} + + + + + + + + + + +*/ + +/** + * This class represents the documentTypeEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeDocumentTypeEnum +{ + const AUTHORIZATION = "AUTHORIZATION"; + const VERIFICATION_REPORT = "VERIFICATION_REPORT"; + const VERIFICATION_REPORT_OTF = "VERIFICATION_REPORT_OTF"; + const APPLICANT = "APPLICANT"; + const ORGANIZATION = "ORGANIZATION"; + const ADDITIONAL = "ADDITIONAL"; + const PASSPORT = "PASSPORT"; + + private function __construct() + { + } +} diff --git a/src/types/typeDocuments.php b/src/Types/typeDocuments.php similarity index 78% rename from src/types/typeDocuments.php rename to src/Types/typeDocuments.php index 2af1339..93196ba 100644 --- a/src/types/typeDocuments.php +++ b/src/Types/typeDocuments.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the documents WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeDocuments setDocument(PartnerAPITypeDocument $value) Sets the document element. This method removes all previously added document elements and creates a new set of document elements. - * @method PartnerAPITypeDocuments addDocument(PartnerAPITypeDocument $value) Adds a new document element to the existing set. - * @method PartnerAPITypeDocument|PartnerAPITypeDocument[] getDocument() Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned. - * @property PartnerAPITypeDocument|PartnerAPITypeDocument[] $document Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned. - * - * @package types - */ -class PartnerAPITypeDocuments extends PartnerAPIType { - - protected function initData() { - $n = array( - 'document' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeDocument(), 'type' => 'PartnerAPITypeDocument', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the documents WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeDocuments setDocument(PartnerAPITypeDocument $value) Sets the document element. This method removes all previously added document elements and creates a new set of document elements. + * @method PartnerAPITypeDocuments addDocument(PartnerAPITypeDocument $value) Adds a new document element to the existing set. + * @method PartnerAPITypeDocument|PartnerAPITypeDocument[] getDocument() Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned. + * @property PartnerAPITypeDocument|PartnerAPITypeDocument[] $document Gets the document element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeDocument objects will be returned. + * + * @package types + */ +class PartnerAPITypeDocuments extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'document' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeDocument(), 'type' => 'PartnerAPITypeDocument', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeDomainVerificationRequest.php b/src/Types/typeDomainVerificationRequest.php similarity index 65% rename from src/types/typeDomainVerificationRequest.php rename to src/Types/typeDomainVerificationRequest.php index d0d942c..4f9e4bc 100644 --- a/src/types/typeDomainVerificationRequest.php +++ b/src/Types/typeDomainVerificationRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the domainVerificationRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeDomainVerificationRequest setCode(string $value) Sets the code element. - * @method string getCode() Gets the code element. - * @property string $code Gets the code element. - * - * @package types - */ -class PartnerAPITypeDomainVerificationRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'code' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the domainVerificationRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeDomainVerificationRequest setCode(string $value) Sets the code element. + * @method string getCode() Gets the code element. + * @property string $code Gets the code element. + * + * @package types + */ +class PartnerAPITypeDomainVerificationRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'code' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeEmailVerification.php b/src/Types/typeEmailVerification.php similarity index 69% rename from src/types/typeEmailVerification.php rename to src/Types/typeEmailVerification.php index 5f1a485..7249a65 100644 --- a/src/types/typeEmailVerification.php +++ b/src/Types/typeEmailVerification.php @@ -1,70 +1,71 @@ - - - - - - - - - - -*/ - -/** - * This class represents the emailVerification WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeEmailVerification setEmail(string $value) Sets the email element. - * @method string getEmail() Gets the email element. - * @property string $email Gets the email element. - * - * @method PartnerAPITypeEmailVerification setVerified(boolean $value) Sets the verified element. - * @method boolean getVerified() Gets the verified element. - * @property boolean $verified Gets the verified element. - * - * @method PartnerAPITypeEmailVerification setSendDate(string $value) Sets the sendDate element. - * @method string getSendDate() Gets the sendDate element. - * @property string $sendDate Gets the sendDate element. - * - * @method PartnerAPITypeEmailVerification setVerificationLinkValidityDate(string $value) Sets the verificationLinkValidityDate element. - * @method string getVerificationLinkValidityDate() Gets the verificationLinkValidityDate element. - * @property string $verificationLinkValidityDate Gets the verificationLinkValidityDate element. - * - * @method PartnerAPITypeEmailVerification setVerificationDate(string $value) Sets the verificationDate element. - * @method string getVerificationDate() Gets the verificationDate element. - * @property string $verificationDate Gets the verificationDate element. - * - * @method PartnerAPITypeEmailVerification setVerificationValidity(string $value) Sets the verificationValidity element. - * @method string getVerificationValidity() Gets the verificationValidity element or NULL. - * @property string $verificationValidity Gets the verificationValidity element or NULL. - * - * @package types - */ -class PartnerAPITypeEmailVerification extends PartnerAPIType { - - protected function initData() { - $n = array( - 'email' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'verified' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE), - 'sendDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'verificationLinkValidityDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'verificationDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'verificationValidity' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the emailVerification WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeEmailVerification setEmail(string $value) Sets the email element. + * @method string getEmail() Gets the email element. + * @property string $email Gets the email element. + * + * @method PartnerAPITypeEmailVerification setVerified(boolean $value) Sets the verified element. + * @method boolean getVerified() Gets the verified element. + * @property boolean $verified Gets the verified element. + * + * @method PartnerAPITypeEmailVerification setSendDate(string $value) Sets the sendDate element. + * @method string getSendDate() Gets the sendDate element. + * @property string $sendDate Gets the sendDate element. + * + * @method PartnerAPITypeEmailVerification setVerificationLinkValidityDate(string $value) Sets the verificationLinkValidityDate element. + * @method string getVerificationLinkValidityDate() Gets the verificationLinkValidityDate element. + * @property string $verificationLinkValidityDate Gets the verificationLinkValidityDate element. + * + * @method PartnerAPITypeEmailVerification setVerificationDate(string $value) Sets the verificationDate element. + * @method string getVerificationDate() Gets the verificationDate element. + * @property string $verificationDate Gets the verificationDate element. + * + * @method PartnerAPITypeEmailVerification setVerificationValidity(string $value) Sets the verificationValidity element. + * @method string getVerificationValidity() Gets the verificationValidity element or NULL. + * @property string $verificationValidity Gets the verificationValidity element or NULL. + * + * @package types + */ +class PartnerAPITypeEmailVerification extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'email' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'verified' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false), + 'sendDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'verificationLinkValidityDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'verificationDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'verificationValidity' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeError.php b/src/Types/typeError.php similarity index 77% rename from src/types/typeError.php rename to src/Types/typeError.php index 8a2cb05..00a8cb8 100644 --- a/src/types/typeError.php +++ b/src/Types/typeError.php @@ -1,48 +1,47 @@ - - - - - - -*/ - -/** - * This class represents the error WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeError setErrorCode(int $value) Sets the errorCode element. - * @method int getErrorCode() Gets the errorCode element. - * @property int $errorCode Gets the errorCode element. - * - * @method PartnerAPITypeError setValue(string $value) Sets the value element. - * @method string getValue() Gets the value element or NULL. - * @property string $value Gets the value element or NULL. - * - * @package types - */ -class PartnerAPITypeError extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'errorCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'value' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + + +*/ + +/** + * This class represents the error WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeError setErrorCode(int $value) Sets the errorCode element. + * @method int getErrorCode() Gets the errorCode element. + * @property int $errorCode Gets the errorCode element. + * + * @method PartnerAPITypeError setValue(string $value) Sets the value element. + * @method string getValue() Gets the value element or NULL. + * @property string $value Gets the value element or NULL. + * + * @package types + */ +class PartnerAPITypeError extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'errorCode' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'value' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeErrors.php b/src/Types/typeErrors.php similarity index 84% rename from src/types/typeErrors.php rename to src/Types/typeErrors.php index f64533a..7ab53c5 100644 --- a/src/types/typeErrors.php +++ b/src/Types/typeErrors.php @@ -1,43 +1,42 @@ - - - - - -*/ - -/** - * This class represents the errors WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeErrors setError(PartnerAPITypeError $value) Sets the Error element. This method removes all previously added Error elements and creates a new set of Error elements. - * @method PartnerAPITypeErrors addError(PartnerAPITypeError $value) Adds a new Error element to the existing set. - * @method PartnerAPITypeError|PartnerAPITypeError[] getError() Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned. - * @property PartnerAPITypeError|PartnerAPITypeError[] $Error Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned. - * - * @package types - */ -class PartnerAPITypeErrors extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'Error' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeError(), 'type' => 'PartnerAPITypeError', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + +*/ + +/** + * This class represents the errors WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeErrors setError(PartnerAPITypeError $value) Sets the Error element. This method removes all previously added Error elements and creates a new set of Error elements. + * @method PartnerAPITypeErrors addError(PartnerAPITypeError $value) Adds a new Error element to the existing set. + * @method PartnerAPITypeError|PartnerAPITypeError[] getError() Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned. + * @property PartnerAPITypeError|PartnerAPITypeError[] $Error Gets the Error element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeError objects will be returned. + * + * @package types + */ +class PartnerAPITypeErrors extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'Error' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeError(), 'type' => 'PartnerAPITypeError', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeExpiringCertificates.php b/src/Types/typeExpiringCertificates.php similarity index 76% rename from src/types/typeExpiringCertificates.php rename to src/Types/typeExpiringCertificates.php index 19eaac1..2a14624 100644 --- a/src/types/typeExpiringCertificates.php +++ b/src/Types/typeExpiringCertificates.php @@ -1,60 +1,59 @@ - - - - - - - - -*/ - -/** - * This class represents the expiringCertificates WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeExpiringCertificates setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeExpiringCertificates setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element. - * @property string $serialNumber Gets the serialNumber element. - * - * @method PartnerAPITypeExpiringCertificates setExpiringDate(string $value) Sets the expiringDate element. - * @method string getExpiringDate() Gets the expiringDate element. - * @property string $expiringDate Gets the expiringDate element. - * - * @method PartnerAPITypeExpiringCertificates setValidityDaysLeft(int $value) Sets the validityDaysLeft element. - * @method int getValidityDaysLeft() Gets the validityDaysLeft element. - * @property int $validityDaysLeft Gets the validityDaysLeft element. - * - * @package types - */ -class PartnerAPITypeExpiringCertificates extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'expiringDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'validityDaysLeft' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + + + + +*/ + +/** + * This class represents the expiringCertificates WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeExpiringCertificates setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeExpiringCertificates setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element. + * @property string $serialNumber Gets the serialNumber element. + * + * @method PartnerAPITypeExpiringCertificates setExpiringDate(string $value) Sets the expiringDate element. + * @method string getExpiringDate() Gets the expiringDate element. + * @property string $expiringDate Gets the expiringDate element. + * + * @method PartnerAPITypeExpiringCertificates setValidityDaysLeft(int $value) Sets the validityDaysLeft element. + * @method int getValidityDaysLeft() Gets the validityDaysLeft element. + * @property int $validityDaysLeft Gets the validityDaysLeft element. + * + * @package types + */ +class PartnerAPITypeExpiringCertificates extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'expiringDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'validityDaysLeft' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeFQDNs.php b/src/Types/typeFQDNs.php similarity index 82% rename from src/types/typeFQDNs.php rename to src/Types/typeFQDNs.php index 9d5c5e4..1a589bd 100644 --- a/src/types/typeFQDNs.php +++ b/src/Types/typeFQDNs.php @@ -4,7 +4,7 @@ /** * Partner API Library - * + * * @copyright Copyright (c) 2020 Asseco Data Systems SA * @license license.txt */ @@ -12,9 +12,9 @@ /* - - - + + + */ @@ -22,21 +22,20 @@ * This class represents the FQDNs WSDL type. * * It is based on the PartnerAPIType class and derives properties and methods from that class. - * + * * @method PartnerAPITypeFQDNs setFQDN(string $value) Sets the FQDN element. This method removes all previously added FQDN elements and creates a new set of FQDN elements. * @method PartnerAPITypeFQDNs addFQDN(string $value) Adds a new FQDN element to the existing set. * @method string|string[] getFQDN() Gets the FQDN element. If there is only one element, it will be returned, otherwise an array of string values will be returned. * @property string|string[] $FQDN Gets the FQDN element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * + * * @package types */ class PartnerAPITypeFQDNs extends PartnerAPIType { - protected function initData() { $n = array( - 'FQDN' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) + 'FQDN' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) ); return $n; } diff --git a/src/types/typeFile.php b/src/Types/typeFile.php similarity index 74% rename from src/types/typeFile.php rename to src/Types/typeFile.php index 470b4f1..79d7923 100644 --- a/src/types/typeFile.php +++ b/src/Types/typeFile.php @@ -1,48 +1,47 @@ - - - - - - -*/ - -/** - * This class represents the file WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeFile setFileName(string $value) Sets the fileName element. - * @method string getFileName() Gets the fileName element. - * @property string $fileName Gets the fileName element. - * - * @method PartnerAPITypeFile setContent(string $value) Sets the content element. - * @method string getContent() Gets the content element. - * @property string $content Gets the content element. - * - * @package types - */ -class PartnerAPITypeFile extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'fileName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'content' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + + +*/ + +/** + * This class represents the file WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeFile setFileName(string $value) Sets the fileName element. + * @method string getFileName() Gets the fileName element. + * @property string $fileName Gets the fileName element. + * + * @method PartnerAPITypeFile setContent(string $value) Sets the content element. + * @method string getContent() Gets the content element. + * @property string $content Gets the content element. + * + * @package types + */ +class PartnerAPITypeFile extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'fileName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'content' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeFileName.php b/src/Types/typeFileName.php similarity index 62% rename from src/types/typeFileName.php rename to src/Types/typeFileName.php index 759b5fc..a623a55 100644 --- a/src/types/typeFileName.php +++ b/src/Types/typeFileName.php @@ -1,33 +1,31 @@ - - - - - - -*/ - -/** - * This class represents the fileName WSDL type. - * - * @package types - */ -class PartnerAPITypeFileName -{ - - - private function __construct() - { - } -} + + + + + + +*/ + +/** + * This class represents the fileName WSDL type. + * + * @package types + */ +class PartnerAPITypeFileName +{ + private function __construct() + { + } +} diff --git a/src/types/typeFiles.php b/src/Types/typeFiles.php similarity index 84% rename from src/types/typeFiles.php rename to src/Types/typeFiles.php index 783885e..023db58 100644 --- a/src/types/typeFiles.php +++ b/src/Types/typeFiles.php @@ -1,43 +1,42 @@ - - - - - -*/ - -/** - * This class represents the files WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeFiles setFile(PartnerAPITypeFile $value) Sets the file element. This method removes all previously added file elements and creates a new set of file elements. - * @method PartnerAPITypeFiles addFile(PartnerAPITypeFile $value) Adds a new file element to the existing set. - * @method PartnerAPITypeFile|PartnerAPITypeFile[] getFile() Gets the file element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeFile objects will be returned. - * @property PartnerAPITypeFile|PartnerAPITypeFile[] $file Gets the file element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeFile objects will be returned. - * - * @package types - */ -class PartnerAPITypeFiles extends PartnerAPIType -{ - - protected function initData() - { - $n = array( - 'file' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeFile(), 'type' => 'PartnerAPITypeFile', 'nillable' => FALSE) - ); - return $n; - } -} + + + + + +*/ + +/** + * This class represents the files WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeFiles setFile(PartnerAPITypeFile $value) Sets the file element. This method removes all previously added file elements and creates a new set of file elements. + * @method PartnerAPITypeFiles addFile(PartnerAPITypeFile $value) Adds a new file element to the existing set. + * @method PartnerAPITypeFile|PartnerAPITypeFile[] getFile() Gets the file element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeFile objects will be returned. + * @property PartnerAPITypeFile|PartnerAPITypeFile[] $file Gets the file element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeFile objects will be returned. + * + * @package types + */ +class PartnerAPITypeFiles extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'file' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeFile(), 'type' => 'PartnerAPITypeFile', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeGetCertificateRequest.php b/src/Types/typeGetCertificateRequest.php similarity index 73% rename from src/types/typeGetCertificateRequest.php rename to src/Types/typeGetCertificateRequest.php index 1ff09bd..ee73d72 100644 --- a/src/types/typeGetCertificateRequest.php +++ b/src/Types/typeGetCertificateRequest.php @@ -1,54 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the getCertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetCertificateRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element or NULL. - * @property string $orderID Gets the orderID element or NULL. - * - * @method PartnerAPITypeGetCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @package types - */ -class PartnerAPITypeGetCertificateRequest extends PartnerAPITypeRequest -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + + +*/ + +/** + * This class represents the getCertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetCertificateRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element or NULL. + * @property string $orderID Gets the orderID element or NULL. + * + * @method PartnerAPITypeGetCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @package types + */ +class PartnerAPITypeGetCertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetCertificateResponse.php b/src/Types/typeGetCertificateResponse.php similarity index 72% rename from src/types/typeGetCertificateResponse.php rename to src/Types/typeGetCertificateResponse.php index b3fa77a..05fa323 100644 --- a/src/types/typeGetCertificateResponse.php +++ b/src/Types/typeGetCertificateResponse.php @@ -1,54 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the getCertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetCertificateResponse setCertificateDetails(PartnerAPITypeCertificateDetails $value) Sets the certificateDetails element. - * @method PartnerAPITypeCertificateDetails getCertificateDetails() Gets the certificateDetails element or NULL. - * @property PartnerAPITypeCertificateDetails $certificateDetails Gets the certificateDetails element or NULL. - * - * @method PartnerAPITypeGetCertificateResponse setCaBundle(PartnerAPITypeCaBundle $value) Sets the caBundle element. - * @method PartnerAPITypeCaBundle getCaBundle() Gets the caBundle element or NULL. - * @property PartnerAPITypeCaBundle $caBundle Gets the caBundle element or NULL. - * - * @package types - */ -class PartnerAPITypeGetCertificateResponse extends PartnerAPITypeResponse -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeCertificateDetails', 'nillable' => FALSE), - 'caBundle' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeCaBundle', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + + +*/ + +/** + * This class represents the getCertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetCertificateResponse setCertificateDetails(PartnerAPITypeCertificateDetails $value) Sets the certificateDetails element. + * @method PartnerAPITypeCertificateDetails getCertificateDetails() Gets the certificateDetails element or NULL. + * @property PartnerAPITypeCertificateDetails $certificateDetails Gets the certificateDetails element or NULL. + * + * @method PartnerAPITypeGetCertificateResponse setCaBundle(PartnerAPITypeCaBundle $value) Sets the caBundle element. + * @method PartnerAPITypeCaBundle getCaBundle() Gets the caBundle element or NULL. + * @property PartnerAPITypeCaBundle $caBundle Gets the caBundle element or NULL. + * + * @package types + */ +class PartnerAPITypeGetCertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeCertificateDetails', 'nillable' => false), + 'caBundle' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeCaBundle', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetConfigurationRequest.php b/src/Types/typeGetConfigurationRequest.php similarity index 80% rename from src/types/typeGetConfigurationRequest.php rename to src/Types/typeGetConfigurationRequest.php index 79f55e5..d192076 100644 --- a/src/types/typeGetConfigurationRequest.php +++ b/src/Types/typeGetConfigurationRequest.php @@ -2,7 +2,7 @@ /** * Partner API Library - * + * * @copyright Copyright (c) 2015 Unizeto Technologies SA * @license license.txt */ @@ -11,11 +11,11 @@ /* - - - - - + + + + + */ @@ -23,12 +23,11 @@ * This class represents the getConfigurationRequest WSDL type. * * It is an extension to the PartnerAPITypeRequest class. - * + * * @package types */ class PartnerAPITypeGetConfigurationRequest extends PartnerAPITypeRequest { - protected function initData() { $p = parent::initData(); diff --git a/src/types/typeGetConfigurationResponse.php b/src/Types/typeGetConfigurationResponse.php similarity index 79% rename from src/types/typeGetConfigurationResponse.php rename to src/Types/typeGetConfigurationResponse.php index b17bb9a..44d462f 100644 --- a/src/types/typeGetConfigurationResponse.php +++ b/src/Types/typeGetConfigurationResponse.php @@ -4,7 +4,7 @@ /** * Partner API Library - * + * * @copyright Copyright (c) 2015 Unizeto Technologies SA * @license license.txt */ @@ -12,11 +12,11 @@ /* - - - - - + + + + + */ @@ -24,12 +24,11 @@ * This class represents the getConfigurationResponse WSDL type. * * It is an extension to the PartnerAPITypeGetProductListResponse class. - * + * * @package types */ class PartnerAPITypeGetConfigurationResponse extends PartnerAPITypeGetProductListResponse { - protected function initData() { $p = parent::initData(); diff --git a/src/types/typeGetEmailVerificationRequest.php b/src/Types/typeGetEmailVerificationRequest.php similarity index 75% rename from src/types/typeGetEmailVerificationRequest.php rename to src/Types/typeGetEmailVerificationRequest.php index 83e7197..719da5c 100644 --- a/src/types/typeGetEmailVerificationRequest.php +++ b/src/Types/typeGetEmailVerificationRequest.php @@ -1,48 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getEmailVerificationRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetEmailVerificationRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @package types - */ -class PartnerAPITypeGetEmailVerificationRequest extends PartnerAPITypeRequest -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + +*/ + +/** + * This class represents the getEmailVerificationRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetEmailVerificationRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @package types + */ +class PartnerAPITypeGetEmailVerificationRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetEmailVerificationResponse.php b/src/Types/typeGetEmailVerificationResponse.php similarity index 74% rename from src/types/typeGetEmailVerificationResponse.php rename to src/Types/typeGetEmailVerificationResponse.php index cb0b39f..51a19ad 100644 --- a/src/types/typeGetEmailVerificationResponse.php +++ b/src/Types/typeGetEmailVerificationResponse.php @@ -1,48 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getEmailVerificationResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetEmailVerificationResponse setEmailVerification(PartnerAPITypeEmailVerification $value) Sets the emailVerification element. - * @method PartnerAPITypeEmailVerification getEmailVerification() Gets the emailVerification element or NULL. - * @property PartnerAPITypeEmailVerification $emailVerification Gets the emailVerification element or NULL. - * - * @package types - */ -class PartnerAPITypeGetEmailVerificationResponse extends PartnerAPITypeResponse -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'emailVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeEmailVerification', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + +*/ + +/** + * This class represents the getEmailVerificationResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetEmailVerificationResponse setEmailVerification(PartnerAPITypeEmailVerification $value) Sets the emailVerification element. + * @method PartnerAPITypeEmailVerification getEmailVerification() Gets the emailVerification element or NULL. + * @property PartnerAPITypeEmailVerification $emailVerification Gets the emailVerification element or NULL. + * + * @package types + */ +class PartnerAPITypeGetEmailVerificationResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'emailVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeEmailVerification', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetExpiringCertificatesRequest.php b/src/Types/typeGetExpiringCertificatesRequest.php similarity index 74% rename from src/types/typeGetExpiringCertificatesRequest.php rename to src/Types/typeGetExpiringCertificatesRequest.php index f5ef637..b6c177d 100644 --- a/src/types/typeGetExpiringCertificatesRequest.php +++ b/src/Types/typeGetExpiringCertificatesRequest.php @@ -1,54 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the getExpiringCertificatesRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetExpiringCertificatesRequest setValidityDaysLeft(int $value) Sets the validityDaysLeft element. - * @method int getValidityDaysLeft() Gets the validityDaysLeft element. - * @property int $validityDaysLeft Gets the validityDaysLeft element. - * - * @method PartnerAPITypeGetExpiringCertificatesRequest setPageNumber(int $value) Sets the pageNumber element. - * @method int getPageNumber() Gets the pageNumber element or NULL. - * @property int $pageNumber Gets the pageNumber element or NULL. - * - * @package types - */ -class PartnerAPITypeGetExpiringCertificatesRequest extends PartnerAPITypeRequest -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'validityDaysLeft' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'pageNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + + +*/ + +/** + * This class represents the getExpiringCertificatesRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetExpiringCertificatesRequest setValidityDaysLeft(int $value) Sets the validityDaysLeft element. + * @method int getValidityDaysLeft() Gets the validityDaysLeft element. + * @property int $validityDaysLeft Gets the validityDaysLeft element. + * + * @method PartnerAPITypeGetExpiringCertificatesRequest setPageNumber(int $value) Sets the pageNumber element. + * @method int getPageNumber() Gets the pageNumber element or NULL. + * @property int $pageNumber Gets the pageNumber element or NULL. + * + * @package types + */ +class PartnerAPITypeGetExpiringCertificatesRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'validityDaysLeft' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'pageNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetExpiringCertificatesResponse.php b/src/Types/typeGetExpiringCertificatesResponse.php similarity index 81% rename from src/types/typeGetExpiringCertificatesResponse.php rename to src/Types/typeGetExpiringCertificatesResponse.php index a02003b..bd6da5f 100644 --- a/src/types/typeGetExpiringCertificatesResponse.php +++ b/src/Types/typeGetExpiringCertificatesResponse.php @@ -1,49 +1,48 @@ - - - - - - - - - -*/ - -/** - * This class represents the getExpiringCertificatesResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetExpiringCertificatesResponse setExpiringCertificates(PartnerAPITypeExpiringCertificates $value) Sets the expiringCertificates element. This method removes all previously added expiringCertificates elements and creates a new set of expiringCertificates elements. - * @method PartnerAPITypeGetExpiringCertificatesResponse addExpiringCertificates(PartnerAPITypeExpiringCertificates $value) Adds a new expiringCertificates element to the existing set. - * @method PartnerAPITypeExpiringCertificates|PartnerAPITypeExpiringCertificates[] getExpiringCertificates() Gets the expiringCertificates element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeExpiringCertificates objects will be returned. - * @property PartnerAPITypeExpiringCertificates|PartnerAPITypeExpiringCertificates[] $expiringCertificates Gets the expiringCertificates element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeExpiringCertificates objects will be returned. - * - * @package types - */ -class PartnerAPITypeGetExpiringCertificatesResponse extends PartnerAPITypeResponse -{ - - protected function initData() - { - $p = parent::initData(); - $n = array( - 'expiringCertificates' => array('min' => 0, 'max' => NULL, 'value' => NULL, 'type' => 'PartnerAPITypeExpiringCertificates', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } -} + + + + + + + + + +*/ + +/** + * This class represents the getExpiringCertificatesResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetExpiringCertificatesResponse setExpiringCertificates(PartnerAPITypeExpiringCertificates $value) Sets the expiringCertificates element. This method removes all previously added expiringCertificates elements and creates a new set of expiringCertificates elements. + * @method PartnerAPITypeGetExpiringCertificatesResponse addExpiringCertificates(PartnerAPITypeExpiringCertificates $value) Adds a new expiringCertificates element to the existing set. + * @method PartnerAPITypeExpiringCertificates|PartnerAPITypeExpiringCertificates[] getExpiringCertificates() Gets the expiringCertificates element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeExpiringCertificates objects will be returned. + * @property PartnerAPITypeExpiringCertificates|PartnerAPITypeExpiringCertificates[] $expiringCertificates Gets the expiringCertificates element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeExpiringCertificates objects will be returned. + * + * @package types + */ +class PartnerAPITypeGetExpiringCertificatesResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'expiringCertificates' => array('min' => 0, 'max' => null, 'value' => null, 'type' => 'PartnerAPITypeExpiringCertificates', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetModifiedOrdersRequest.php b/src/Types/typeGetModifiedOrdersRequest.php similarity index 71% rename from src/types/typeGetModifiedOrdersRequest.php rename to src/Types/typeGetModifiedOrdersRequest.php index 822899a..bbb4c64 100644 --- a/src/types/typeGetModifiedOrdersRequest.php +++ b/src/Types/typeGetModifiedOrdersRequest.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the getModifiedOrdersRequest WSDL type. - * - * It is an extension to the PartnerAPITypeGetOrdersRequest class. - * - * @package types - */ -class PartnerAPITypeGetModifiedOrdersRequest extends PartnerAPITypeGetOrdersRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the getModifiedOrdersRequest WSDL type. + * + * It is an extension to the PartnerAPITypeGetOrdersRequest class. + * + * @package types + */ +class PartnerAPITypeGetModifiedOrdersRequest extends PartnerAPITypeGetOrdersRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetOrderByOrderIDRequest.php b/src/Types/typeGetOrderByOrderIDRequest.php similarity index 70% rename from src/types/typeGetOrderByOrderIDRequest.php rename to src/Types/typeGetOrderByOrderIDRequest.php index cff5e4b..b0b4b02 100644 --- a/src/types/typeGetOrderByOrderIDRequest.php +++ b/src/Types/typeGetOrderByOrderIDRequest.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the getOrderByOrderIDRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetOrderByOrderIDRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeGetOrderByOrderIDRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. - * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. - * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. - * - * @package types - */ -class PartnerAPITypeGetOrderByOrderIDRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderOption' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderOption', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the getOrderByOrderIDRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetOrderByOrderIDRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeGetOrderByOrderIDRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. + * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. + * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. + * + * @package types + */ +class PartnerAPITypeGetOrderByOrderIDRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderOption' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrderOption', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetOrderStateRequest.php b/src/Types/typeGetOrderStateRequest.php similarity index 71% rename from src/types/typeGetOrderStateRequest.php rename to src/Types/typeGetOrderStateRequest.php index 5a5e60d..20338a4 100644 --- a/src/types/typeGetOrderStateRequest.php +++ b/src/Types/typeGetOrderStateRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getOrderStateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetOrderStateRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @package types - */ -class PartnerAPITypeGetOrderStateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the getOrderStateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetOrderStateRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @package types + */ +class PartnerAPITypeGetOrderStateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetOrderStateResponse.php b/src/Types/typeGetOrderStateResponse.php similarity index 88% rename from src/types/typeGetOrderStateResponse.php rename to src/Types/typeGetOrderStateResponse.php index 7365f18..7189dbd 100644 --- a/src/types/typeGetOrderStateResponse.php +++ b/src/Types/typeGetOrderStateResponse.php @@ -1,8 +1,10 @@ array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderVerifications', 'nillable' => FALSE), - 'lastUpdateDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderStatus' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) + 'verifications' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrderVerifications', 'nillable' => false), + 'lastUpdateDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderStatus' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) ); $n = array_merge($p, $n); return $n; } - - } diff --git a/src/types/typeGetOrdersByDateRangeRequest.php b/src/Types/typeGetOrdersByDateRangeRequest.php similarity index 70% rename from src/types/typeGetOrdersByDateRangeRequest.php rename to src/Types/typeGetOrdersByDateRangeRequest.php index a4315d9..a3f4632 100644 --- a/src/types/typeGetOrdersByDateRangeRequest.php +++ b/src/Types/typeGetOrdersByDateRangeRequest.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the getOrdersByDateRangeRequest WSDL type. - * - * It is an extension to the PartnerAPITypeGetOrdersRequest class. - * - * @package types - */ -class PartnerAPITypeGetOrdersByDateRangeRequest extends PartnerAPITypeGetOrdersRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the getOrdersByDateRangeRequest WSDL type. + * + * It is an extension to the PartnerAPITypeGetOrdersRequest class. + * + * @package types + */ +class PartnerAPITypeGetOrdersByDateRangeRequest extends PartnerAPITypeGetOrdersRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetOrdersRequest.php b/src/Types/typeGetOrdersRequest.php similarity index 69% rename from src/types/typeGetOrdersRequest.php rename to src/Types/typeGetOrdersRequest.php index eae2f35..3beb203 100644 --- a/src/types/typeGetOrdersRequest.php +++ b/src/Types/typeGetOrdersRequest.php @@ -1,64 +1,65 @@ - - - - - - - - - - - - -*/ - -/** - * This class represents the getOrdersRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetOrdersRequest setFromDate(string $value) Sets the fromDate element. - * @method string getFromDate() Gets the fromDate element. - * @property string $fromDate Gets the fromDate element. - * - * @method PartnerAPITypeGetOrdersRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. - * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. - * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. - * - * @method PartnerAPITypeGetOrdersRequest setPageNumber(int $value) Sets the pageNumber element. - * @method int getPageNumber() Gets the pageNumber element or NULL. - * @property int $pageNumber Gets the pageNumber element or NULL. - * - * @method PartnerAPITypeGetOrdersRequest setToDate(string $value) Sets the toDate element. - * @method string getToDate() Gets the toDate element. - * @property string $toDate Gets the toDate element. - * - * @package types - */ -class PartnerAPITypeGetOrdersRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'fromDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderOption' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderOption', 'nillable' => FALSE), - 'pageNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'toDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + +*/ + +/** + * This class represents the getOrdersRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetOrdersRequest setFromDate(string $value) Sets the fromDate element. + * @method string getFromDate() Gets the fromDate element. + * @property string $fromDate Gets the fromDate element. + * + * @method PartnerAPITypeGetOrdersRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. + * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. + * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. + * + * @method PartnerAPITypeGetOrdersRequest setPageNumber(int $value) Sets the pageNumber element. + * @method int getPageNumber() Gets the pageNumber element or NULL. + * @property int $pageNumber Gets the pageNumber element or NULL. + * + * @method PartnerAPITypeGetOrdersRequest setToDate(string $value) Sets the toDate element. + * @method string getToDate() Gets the toDate element. + * @property string $toDate Gets the toDate element. + * + * @package types + */ +class PartnerAPITypeGetOrdersRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'fromDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderOption' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrderOption', 'nillable' => false), + 'pageNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'toDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetOrdersResponse.php b/src/Types/typeGetOrdersResponse.php similarity index 70% rename from src/types/typeGetOrdersResponse.php rename to src/Types/typeGetOrdersResponse.php index 8e0c17b..3c7cd61 100644 --- a/src/types/typeGetOrdersResponse.php +++ b/src/Types/typeGetOrdersResponse.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getOrdersResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetOrdersResponse setOrders(PartnerAPITypeOrders $value) Sets the orders element. - * @method PartnerAPITypeOrders getOrders() Gets the orders element or NULL. - * @property PartnerAPITypeOrders $orders Gets the orders element or NULL. - * - * @package types - */ -class PartnerAPITypeGetOrdersResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orders' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrders', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the getOrdersResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetOrdersResponse setOrders(PartnerAPITypeOrders $value) Sets the orders element. + * @method PartnerAPITypeOrders getOrders() Gets the orders element or NULL. + * @property PartnerAPITypeOrders $orders Gets the orders element or NULL. + * + * @package types + */ +class PartnerAPITypeGetOrdersResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orders' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrders', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetProductListRequest.php b/src/Types/typeGetProductListRequest.php similarity index 70% rename from src/types/typeGetProductListRequest.php rename to src/Types/typeGetProductListRequest.php index ed562b9..7377fb5 100644 --- a/src/types/typeGetProductListRequest.php +++ b/src/Types/typeGetProductListRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getProductListRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetProductListRequest setHashAlgorithm(boolean $value) Sets the hashAlgorithm element. - * @method boolean getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property boolean $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @package types - */ -class PartnerAPITypeGetProductListRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the getProductListRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetProductListRequest setHashAlgorithm(boolean $value) Sets the hashAlgorithm element. + * @method boolean getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property boolean $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @package types + */ +class PartnerAPITypeGetProductListRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetProductListResponse.php b/src/Types/typeGetProductListResponse.php similarity index 60% rename from src/types/typeGetProductListResponse.php rename to src/Types/typeGetProductListResponse.php index e814a74..4c0b375 100644 --- a/src/types/typeGetProductListResponse.php +++ b/src/Types/typeGetProductListResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the getProductListResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetProductListResponse setProducts(PartnerAPITypeGetProductListResponse_Products $value) Sets the products element. - * @method PartnerAPITypeGetProductListResponse_Products getProducts() Gets the products element or NULL. - * @property PartnerAPITypeGetProductListResponse_Products $products Gets the products element or NULL. - * - * @package types - */ -class PartnerAPITypeGetProductListResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'products' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeGetProductListResponse_Products', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the getProductListResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetProductListResponse setProducts(PartnerAPITypeGetProductListResponse_Products $value) Sets the products element. + * @method PartnerAPITypeGetProductListResponse_Products getProducts() Gets the products element or NULL. + * @property PartnerAPITypeGetProductListResponse_Products $products Gets the products element or NULL. + * + * @package types + */ +class PartnerAPITypeGetProductListResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'products' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeGetProductListResponse_Products', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetProductListResponse_Products.php b/src/Types/typeGetProductListResponse_Products.php similarity index 68% rename from src/types/typeGetProductListResponse_Products.php rename to src/Types/typeGetProductListResponse_Products.php index 0d5fa2f..872dcce 100644 --- a/src/types/typeGetProductListResponse_Products.php +++ b/src/Types/typeGetProductListResponse_Products.php @@ -1,51 +1,52 @@ - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the getProductListResponse > products WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeGetProductListResponse_Products setProduct(PartnerAPITypeProduct $value) Sets the product element. This method removes all previously added product elements and creates a new set of product elements. - * @method PartnerAPITypeGetProductListResponse_Products addProduct(PartnerAPITypeProduct $value) Adds a new product element to the existing set. - * @method PartnerAPITypeProduct|PartnerAPITypeProduct[] getProduct() Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned. - * @property PartnerAPITypeProduct|PartnerAPITypeProduct[] $product Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned. - * - * @package types - */ -class PartnerAPITypeGetProductListResponse_Products extends PartnerAPIType { - - protected function initData() { - $n = array( - 'product' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeProduct(), 'type' => 'PartnerAPITypeProduct', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the getProductListResponse > products WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeGetProductListResponse_Products setProduct(PartnerAPITypeProduct $value) Sets the product element. This method removes all previously added product elements and creates a new set of product elements. + * @method PartnerAPITypeGetProductListResponse_Products addProduct(PartnerAPITypeProduct $value) Adds a new product element to the existing set. + * @method PartnerAPITypeProduct|PartnerAPITypeProduct[] getProduct() Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned. + * @property PartnerAPITypeProduct|PartnerAPITypeProduct[] $product Gets the product element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeProduct objects will be returned. + * + * @package types + */ +class PartnerAPITypeGetProductListResponse_Products extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'product' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeProduct(), 'type' => 'PartnerAPITypeProduct', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeGetSanVerificationStateRequest.php b/src/Types/typeGetSanVerificationStateRequest.php similarity index 90% rename from src/types/typeGetSanVerificationStateRequest.php rename to src/Types/typeGetSanVerificationStateRequest.php index 76d9b20..8455154 100644 --- a/src/types/typeGetSanVerificationStateRequest.php +++ b/src/Types/typeGetSanVerificationStateRequest.php @@ -1,50 +1,51 @@ - - - - - - - - - -*/ - -/** - * This class represents the getSanVerificationStateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeGetSanVerificationStateRequest setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeGetSanVerificationStateRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. - * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. - * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. - * - * @package types - */ -class PartnerAPITypeGetSanVerificationStateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the getSanVerificationStateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeGetSanVerificationStateRequest setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeGetSanVerificationStateRequest setOrderOption(PartnerAPITypeOrderOption $value) Sets the orderOption element. + * @method PartnerAPITypeOrderOption getOrderOption() Gets the orderOption element or NULL. + * @property PartnerAPITypeOrderOption $orderOption Gets the orderOption element or NULL. + * + * @package types + */ +class PartnerAPITypeGetSanVerificationStateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeGetSanVerificationStateResponse.php b/src/Types/typeGetSanVerificationStateResponse.php similarity index 87% rename from src/types/typeGetSanVerificationStateResponse.php rename to src/Types/typeGetSanVerificationStateResponse.php index 68e2f72..5b9081c 100644 --- a/src/types/typeGetSanVerificationStateResponse.php +++ b/src/Types/typeGetSanVerificationStateResponse.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the getSanVerificationStateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeGetSanVerificationStateResponse setSanVerifications(PartnerAPITypeSanVerificationStates $value) Sets the sanVerifications element. - * @method PartnerAPITypeSanVerificationStates getSanVerifications() Gets the sanVerifications element or NULL. - * @property PartnerAPITypeSanVerificationStates $sanVerifications Gets the sanVerifications element or NULL. - * - * @package types - */ -class PartnerAPITypeGetSanVerificationStateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'sanVerifications' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerificationStates', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the getSanVerificationStateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeGetSanVerificationStateResponse setSanVerifications(PartnerAPITypeSanVerificationStates $value) Sets the sanVerifications element. + * @method PartnerAPITypeSanVerificationStates getSanVerifications() Gets the sanVerifications element or NULL. + * @property PartnerAPITypeSanVerificationStates $sanVerifications Gets the sanVerifications element or NULL. + * + * @package types + */ +class PartnerAPITypeGetSanVerificationStateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'sanVerifications' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerificationStates', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeHashAlgorithmEnum.php b/src/Types/typeHashAlgorithmEnum.php similarity index 63% rename from src/types/typeHashAlgorithmEnum.php rename to src/Types/typeHashAlgorithmEnum.php index 22eda22..f916857 100644 --- a/src/types/typeHashAlgorithmEnum.php +++ b/src/Types/typeHashAlgorithmEnum.php @@ -1,37 +1,38 @@ - - - - - - - -*/ - -/** - * This class represents the hashAlgorithmEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeHashAlgorithmEnum { - - const RSA_SHA1 = "RSA-SHA1"; - const RSA_SHA256 = "RSA-SHA256"; - const ECC_SHA256 = "ECC-SHA256"; - - private function __construct() { - } - - -} + + + + + + + +*/ + +/** + * This class represents the hashAlgorithmEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeHashAlgorithmEnum +{ + const RSA_SHA1 = "RSA-SHA1"; + const RSA_SHA256 = "RSA-SHA256"; + const ECC_SHA256 = "ECC-SHA256"; + + private function __construct() + { + } +} diff --git a/src/types/typeInvalidSerialNumbers.php b/src/Types/typeInvalidSerialNumbers.php similarity index 75% rename from src/types/typeInvalidSerialNumbers.php rename to src/Types/typeInvalidSerialNumbers.php index 4f90759..1d7fbfc 100644 --- a/src/types/typeInvalidSerialNumbers.php +++ b/src/Types/typeInvalidSerialNumbers.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the invalidSerialNumbers WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeInvalidSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. - * @method PartnerAPITypeInvalidSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. - * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeInvalidSerialNumbers extends PartnerAPIType { - - protected function initData() { - $n = array( - 'serialNumber' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the invalidSerialNumbers WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeInvalidSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. + * @method PartnerAPITypeInvalidSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. + * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeInvalidSerialNumbers extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'serialNumber' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeModifySNICertificateRequest.php b/src/Types/typeModifySNICertificateRequest.php similarity index 70% rename from src/types/typeModifySNICertificateRequest.php rename to src/Types/typeModifySNICertificateRequest.php index f4a4112..c84e1f6 100644 --- a/src/types/typeModifySNICertificateRequest.php +++ b/src/Types/typeModifySNICertificateRequest.php @@ -1,70 +1,71 @@ - - - - - - - - - - - - - -*/ - -/** - * This class represents the modifySNICertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeModifySNICertificateRequest setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element. - * @property string $serialNumber Gets the serialNumber element. - * - * @method PartnerAPITypeModifySNICertificateRequest setX509Cert(string $value) Sets the X509Cert element. - * @method string getX509Cert() Gets the X509Cert element. - * @property string $X509Cert Gets the X509Cert element. - * - * @method PartnerAPITypeModifySNICertificateRequest setAddSerialNumbers(PartnerAPITypeAddSerialNumbers $value) Sets the addSerialNumbers element. - * @method PartnerAPITypeAddSerialNumbers getAddSerialNumbers() Gets the addSerialNumbers element or NULL. - * @property PartnerAPITypeAddSerialNumbers $addSerialNumbers Gets the addSerialNumbers element or NULL. - * - * @method PartnerAPITypeModifySNICertificateRequest setRemoveSerialNumbers(PartnerAPITypeRemoveSerialNumbers $value) Sets the removeSerialNumbers element. - * @method PartnerAPITypeRemoveSerialNumbers getRemoveSerialNumbers() Gets the removeSerialNumbers element or NULL. - * @property PartnerAPITypeRemoveSerialNumbers $removeSerialNumbers Gets the removeSerialNumbers element or NULL. - * - * @method PartnerAPITypeModifySNICertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. - * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @package types - */ -class PartnerAPITypeModifySNICertificateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'X509Cert' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'addSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeAddSerialNumbers', 'nillable' => FALSE), - 'removeSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeRemoveSerialNumbers', 'nillable' => FALSE), - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + + +*/ + +/** + * This class represents the modifySNICertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeModifySNICertificateRequest setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element. + * @property string $serialNumber Gets the serialNumber element. + * + * @method PartnerAPITypeModifySNICertificateRequest setX509Cert(string $value) Sets the X509Cert element. + * @method string getX509Cert() Gets the X509Cert element. + * @property string $X509Cert Gets the X509Cert element. + * + * @method PartnerAPITypeModifySNICertificateRequest setAddSerialNumbers(PartnerAPITypeAddSerialNumbers $value) Sets the addSerialNumbers element. + * @method PartnerAPITypeAddSerialNumbers getAddSerialNumbers() Gets the addSerialNumbers element or NULL. + * @property PartnerAPITypeAddSerialNumbers $addSerialNumbers Gets the addSerialNumbers element or NULL. + * + * @method PartnerAPITypeModifySNICertificateRequest setRemoveSerialNumbers(PartnerAPITypeRemoveSerialNumbers $value) Sets the removeSerialNumbers element. + * @method PartnerAPITypeRemoveSerialNumbers getRemoveSerialNumbers() Gets the removeSerialNumbers element or NULL. + * @property PartnerAPITypeRemoveSerialNumbers $removeSerialNumbers Gets the removeSerialNumbers element or NULL. + * + * @method PartnerAPITypeModifySNICertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. + * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @package types + */ +class PartnerAPITypeModifySNICertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'X509Cert' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'addSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeAddSerialNumbers', 'nillable' => false), + 'removeSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeRemoveSerialNumbers', 'nillable' => false), + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeModifySNICertificateResponse.php b/src/Types/typeModifySNICertificateResponse.php similarity index 70% rename from src/types/typeModifySNICertificateResponse.php rename to src/Types/typeModifySNICertificateResponse.php index 7f732ec..8bbfcb4 100644 --- a/src/types/typeModifySNICertificateResponse.php +++ b/src/Types/typeModifySNICertificateResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the modifySNICertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeModifySNICertificateResponse setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeModifySNICertificateResponse setInvalidSerialNumbers(PartnerAPITypeInvalidSerialNumbers $value) Sets the invalidSerialNumbers element. - * @method PartnerAPITypeInvalidSerialNumbers getInvalidSerialNumbers() Gets the invalidSerialNumbers element or NULL. - * @property PartnerAPITypeInvalidSerialNumbers $invalidSerialNumbers Gets the invalidSerialNumbers element or NULL. - * - * @package types - */ -class PartnerAPITypeModifySNICertificateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'invalidSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeInvalidSerialNumbers', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the modifySNICertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeModifySNICertificateResponse setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeModifySNICertificateResponse setInvalidSerialNumbers(PartnerAPITypeInvalidSerialNumbers $value) Sets the invalidSerialNumbers element. + * @method PartnerAPITypeInvalidSerialNumbers getInvalidSerialNumbers() Gets the invalidSerialNumbers element or NULL. + * @property PartnerAPITypeInvalidSerialNumbers $invalidSerialNumbers Gets the invalidSerialNumbers element or NULL. + * + * @package types + */ +class PartnerAPITypeModifySNICertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'invalidSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeInvalidSerialNumbers', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeOrder.php b/src/Types/typeOrder.php similarity index 69% rename from src/types/typeOrder.php rename to src/Types/typeOrder.php index 642558c..11bf9a8 100644 --- a/src/types/typeOrder.php +++ b/src/Types/typeOrder.php @@ -1,58 +1,59 @@ - - - - - - - - -*/ - -/** - * This class represents the order WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrder setReissue(boolean $value) Sets the reissue attribute. - * @method boolean getReissue() Gets the reissue attribute or NULL. - * @property boolean $reissue Gets the reissue attribute or NULL. - * - * @method PartnerAPITypeOrder setCertificateDetails(PartnerAPITypeCertificateDetails $value) Sets the certificateDetails element. - * @method PartnerAPITypeCertificateDetails getCertificateDetails() Gets the certificateDetails element or NULL. - * @property PartnerAPITypeCertificateDetails $certificateDetails Gets the certificateDetails element or NULL. - * - * @method PartnerAPITypeOrder setOrderDetails(PartnerAPITypeOrderDetails $value) Sets the orderDetails element. - * @method PartnerAPITypeOrderDetails getOrderDetails() Gets the orderDetails element or NULL. - * @property PartnerAPITypeOrderDetails $orderDetails Gets the orderDetails element or NULL. - * - * @method PartnerAPITypeOrder setOrderStatus(PartnerAPITypeOrderStatus $value) Sets the orderStatus element. - * @method PartnerAPITypeOrderStatus getOrderStatus() Gets the orderStatus element or NULL. - * @property PartnerAPITypeOrderStatus $orderStatus Gets the orderStatus element or NULL. - * - * @package types - */ -class PartnerAPITypeOrder extends PartnerAPIType { - - protected function initData() { - $n = array( - 'reissue' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE), - 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeCertificateDetails', 'nillable' => FALSE), - 'orderDetails' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderDetails', 'nillable' => FALSE), - 'orderStatus' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrderStatus', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + +*/ + +/** + * This class represents the order WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrder setReissue(boolean $value) Sets the reissue attribute. + * @method boolean getReissue() Gets the reissue attribute or NULL. + * @property boolean $reissue Gets the reissue attribute or NULL. + * + * @method PartnerAPITypeOrder setCertificateDetails(PartnerAPITypeCertificateDetails $value) Sets the certificateDetails element. + * @method PartnerAPITypeCertificateDetails getCertificateDetails() Gets the certificateDetails element or NULL. + * @property PartnerAPITypeCertificateDetails $certificateDetails Gets the certificateDetails element or NULL. + * + * @method PartnerAPITypeOrder setOrderDetails(PartnerAPITypeOrderDetails $value) Sets the orderDetails element. + * @method PartnerAPITypeOrderDetails getOrderDetails() Gets the orderDetails element or NULL. + * @property PartnerAPITypeOrderDetails $orderDetails Gets the orderDetails element or NULL. + * + * @method PartnerAPITypeOrder setOrderStatus(PartnerAPITypeOrderStatus $value) Sets the orderStatus element. + * @method PartnerAPITypeOrderStatus getOrderStatus() Gets the orderStatus element or NULL. + * @property PartnerAPITypeOrderStatus $orderStatus Gets the orderStatus element or NULL. + * + * @package types + */ +class PartnerAPITypeOrder extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'reissue' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false), + 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeCertificateDetails', 'nillable' => false), + 'orderDetails' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrderDetails', 'nillable' => false), + 'orderStatus' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrderStatus', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrderDetails.php b/src/Types/typeOrderDetails.php similarity index 73% rename from src/types/typeOrderDetails.php rename to src/Types/typeOrderDetails.php index 05d4aae..7636aa0 100644 --- a/src/types/typeOrderDetails.php +++ b/src/Types/typeOrderDetails.php @@ -1,46 +1,47 @@ - - - - - - -*/ - -/** - * This class represents the orderDetails WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrderDetails setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. - * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. - * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. - * - * @method PartnerAPITypeOrderDetails setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. - * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. - * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. - * - * @package types - */ -class PartnerAPITypeOrderDetails extends PartnerAPIType { - - protected function initData() { - $n = array( - 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => FALSE), - 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + +*/ + +/** + * This class represents the orderDetails WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrderDetails setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. + * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. + * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. + * + * @method PartnerAPITypeOrderDetails setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. + * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. + * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. + * + * @package types + */ +class PartnerAPITypeOrderDetails extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => false), + 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrderOption.php b/src/Types/typeOrderOption.php similarity index 70% rename from src/types/typeOrderOption.php rename to src/Types/typeOrderOption.php index 7ec1e3a..3998684 100644 --- a/src/types/typeOrderOption.php +++ b/src/Types/typeOrderOption.php @@ -1,52 +1,53 @@ - - - - - - - -*/ - -/** - * This class represents the orderOption WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrderOption setCertificateDetails(boolean $value) Sets the certificateDetails element. - * @method boolean getCertificateDetails() Gets the certificateDetails element or NULL. - * @property boolean $certificateDetails Gets the certificateDetails element or NULL. - * - * @method PartnerAPITypeOrderOption setOrderDetails(boolean $value) Sets the orderDetails element. - * @method boolean getOrderDetails() Gets the orderDetails element or NULL. - * @property boolean $orderDetails Gets the orderDetails element or NULL. - * - * @method PartnerAPITypeOrderOption setOrderStatus(boolean $value) Sets the orderStatus element. - * @method boolean getOrderStatus() Gets the orderStatus element or NULL. - * @property boolean $orderStatus Gets the orderStatus element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderOption extends PartnerAPIType { - - protected function initData() { - $n = array( - 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE), - 'orderDetails' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE), - 'orderStatus' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the orderOption WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrderOption setCertificateDetails(boolean $value) Sets the certificateDetails element. + * @method boolean getCertificateDetails() Gets the certificateDetails element or NULL. + * @property boolean $certificateDetails Gets the certificateDetails element or NULL. + * + * @method PartnerAPITypeOrderOption setOrderDetails(boolean $value) Sets the orderDetails element. + * @method boolean getOrderDetails() Gets the orderDetails element or NULL. + * @property boolean $orderDetails Gets the orderDetails element or NULL. + * + * @method PartnerAPITypeOrderOption setOrderStatus(boolean $value) Sets the orderStatus element. + * @method boolean getOrderStatus() Gets the orderStatus element or NULL. + * @property boolean $orderStatus Gets the orderStatus element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderOption extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'certificateDetails' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false), + 'orderDetails' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false), + 'orderStatus' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrderParameters.php b/src/Types/typeOrderParameters.php similarity index 82% rename from src/types/typeOrderParameters.php rename to src/Types/typeOrderParameters.php index c08e384..b709a9f 100644 --- a/src/types/typeOrderParameters.php +++ b/src/Types/typeOrderParameters.php @@ -1,172 +1,173 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the orderParameters WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrderParameters setCSR(string $value) Sets the CSR element. - * @method string getCSR() Gets the CSR element. - * @property string $CSR Gets the CSR element. - * - * @method PartnerAPITypeOrderParameters setCustomer(string $value) Sets the customer element. - * @method string getCustomer() Gets the customer element. - * @property string $customer Gets the customer element. - * - * @method PartnerAPITypeOrderParameters setLanguage(string $value) Sets the language element. - * @method string getLanguage() Gets the language element or NULL. - * @property string $language Gets the language element or NULL. - * - * @method PartnerAPITypeOrderParameters setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element or NULL. - * @property string $orderID Gets the orderID element or NULL. - * - * @method PartnerAPITypeOrderParameters setProductCode(string $value) Sets the productCode element. - * @method string getProductCode() Gets the productCode element. - * @property string $productCode Gets the productCode element. - * - * @method PartnerAPITypeOrderParameters setUserAgent(string $value) Sets the userAgent element. - * @method string getUserAgent() Gets the userAgent element or NULL. - * @property string $userAgent Gets the userAgent element or NULL. - * - * @method PartnerAPITypeOrderParameters setHashAlgorithm(string $value) Sets the hashAlgorithm element. - * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @method PartnerAPITypeOrderParameters setEmail(string $value) Sets the email element. - * @method string getEmail() Gets the email element or NULL. - * @property string $email Gets the email element or NULL. - * - * @method PartnerAPITypeOrderParameters setCommonName(string $value) Sets the commonName element. - * @method string getCommonName() Gets the commonName element or NULL. - * @property string $commonName Gets the commonName element or NULL. - * - * @method PartnerAPITypeOrderParameters setOrganization(string $value) Sets the organization element. - * @method string getOrganization() Gets the organization element or NULL. - * @property string $organization Gets the organization element or NULL. - * - * @method PartnerAPITypeOrderParameters setOrganizationalUnit(string $value) Sets the organizationalUnit element. - * @method string getOrganizationalUnit() Gets the organizationalUnit element or NULL. - * @property string $organizationalUnit Gets the organizationalUnit element or NULL. - * - * @method PartnerAPITypeOrderParameters setLocality(string $value) Sets the locality element. - * @method string getLocality() Gets the locality element or NULL. - * @property string $locality Gets the locality element or NULL. - * - * @method PartnerAPITypeOrderParameters setCountry(string $value) Sets the country element. - * @method string getCountry() Gets the country element or NULL. - * @property string $country Gets the country element or NULL. - * - * @method PartnerAPITypeOrderParameters setState(string $value) Sets the state element. - * @method string getState() Gets the state element or NULL. - * @property string $state Gets the state element or NULL. - * - * @method PartnerAPITypeOrderParameters setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @method PartnerAPITypeOrderParameters setBusinessCategory(string $value) Sets the businessCategory element. - * @method string getBusinessCategory() Gets the businessCategory element or NULL. - * @property string $businessCategory Gets the businessCategory element or NULL. - * - * @method PartnerAPITypeOrderParameters setStreetAddress(string $value) Sets the streetAddress element. - * @method string getStreetAddress() Gets the streetAddress element or NULL. - * @property string $streetAddress Gets the streetAddress element or NULL. - * - * @method PartnerAPITypeOrderParameters setPostalCode(string $value) Sets the postalCode element. - * @method string getPostalCode() Gets the postalCode element or NULL. - * @property string $postalCode Gets the postalCode element or NULL. - * - * @method PartnerAPITypeOrderParameters setJoiln(string $value) Sets the joiln element. - * @method string getJoiln() Gets the joiln element or NULL. - * @property string $joiln Gets the joiln element or NULL. - * - * @method PartnerAPITypeOrderParameters setJoisopn(string $value) Sets the joisopn element. - * @method string getJoisopn() Gets the joisopn element or NULL. - * @property string $joisopn Gets the joisopn element or NULL. - * - * @method PartnerAPITypeOrderParameters setJoisocn(string $value) Sets the joisocn element. - * @method string getJoisocn() Gets the joisocn element or NULL. - * @property string $joisocn Gets the joisocn element or NULL. - * - * @method PartnerAPITypeOrderParameters setRevocationContactEmail $value) Sets the revocationContactEmail element. - * @method string getRevocationContactEmail() Gets the revocationContactEmail element. - * @property string $revocationContactEmail Gets the revocationContactEmail element. - * - * @method PartnerAPITypeOrderParameters setShortenedValidityPeriod(string $value) Sets the shortenedValidityPeriod element. - * @method string getShortenedValidityPeriod() Gets the shortenedValidityPeriod element. - * @property string $shortenedValidityPeriod Gets the shortenedValidityPeriod element. - * - * @package types - */ -class PartnerAPITypeOrderParameters extends PartnerAPIType { - - protected function initData() { - $n = array( - 'CSR' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'customer' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'language' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderID' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'productCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'userAgent' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'email' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'commonName' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'organization' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'organizationalUnit' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'locality' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'country' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'state' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'businessCategory' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'streetAddress' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'postalCode' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'joiln' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'joisopn' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'joisocn' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'revocationContactEmail' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'shortenedValidityPeriod' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE) - ); - return $n; - } - - -} + + + + + + + + + + + + + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the orderParameters WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrderParameters setCSR(string $value) Sets the CSR element. + * @method string getCSR() Gets the CSR element. + * @property string $CSR Gets the CSR element. + * + * @method PartnerAPITypeOrderParameters setCustomer(string $value) Sets the customer element. + * @method string getCustomer() Gets the customer element. + * @property string $customer Gets the customer element. + * + * @method PartnerAPITypeOrderParameters setLanguage(string $value) Sets the language element. + * @method string getLanguage() Gets the language element or NULL. + * @property string $language Gets the language element or NULL. + * + * @method PartnerAPITypeOrderParameters setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element or NULL. + * @property string $orderID Gets the orderID element or NULL. + * + * @method PartnerAPITypeOrderParameters setProductCode(string $value) Sets the productCode element. + * @method string getProductCode() Gets the productCode element. + * @property string $productCode Gets the productCode element. + * + * @method PartnerAPITypeOrderParameters setUserAgent(string $value) Sets the userAgent element. + * @method string getUserAgent() Gets the userAgent element or NULL. + * @property string $userAgent Gets the userAgent element or NULL. + * + * @method PartnerAPITypeOrderParameters setHashAlgorithm(string $value) Sets the hashAlgorithm element. + * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @method PartnerAPITypeOrderParameters setEmail(string $value) Sets the email element. + * @method string getEmail() Gets the email element or NULL. + * @property string $email Gets the email element or NULL. + * + * @method PartnerAPITypeOrderParameters setCommonName(string $value) Sets the commonName element. + * @method string getCommonName() Gets the commonName element or NULL. + * @property string $commonName Gets the commonName element or NULL. + * + * @method PartnerAPITypeOrderParameters setOrganization(string $value) Sets the organization element. + * @method string getOrganization() Gets the organization element or NULL. + * @property string $organization Gets the organization element or NULL. + * + * @method PartnerAPITypeOrderParameters setOrganizationalUnit(string $value) Sets the organizationalUnit element. + * @method string getOrganizationalUnit() Gets the organizationalUnit element or NULL. + * @property string $organizationalUnit Gets the organizationalUnit element or NULL. + * + * @method PartnerAPITypeOrderParameters setLocality(string $value) Sets the locality element. + * @method string getLocality() Gets the locality element or NULL. + * @property string $locality Gets the locality element or NULL. + * + * @method PartnerAPITypeOrderParameters setCountry(string $value) Sets the country element. + * @method string getCountry() Gets the country element or NULL. + * @property string $country Gets the country element or NULL. + * + * @method PartnerAPITypeOrderParameters setState(string $value) Sets the state element. + * @method string getState() Gets the state element or NULL. + * @property string $state Gets the state element or NULL. + * + * @method PartnerAPITypeOrderParameters setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @method PartnerAPITypeOrderParameters setBusinessCategory(string $value) Sets the businessCategory element. + * @method string getBusinessCategory() Gets the businessCategory element or NULL. + * @property string $businessCategory Gets the businessCategory element or NULL. + * + * @method PartnerAPITypeOrderParameters setStreetAddress(string $value) Sets the streetAddress element. + * @method string getStreetAddress() Gets the streetAddress element or NULL. + * @property string $streetAddress Gets the streetAddress element or NULL. + * + * @method PartnerAPITypeOrderParameters setPostalCode(string $value) Sets the postalCode element. + * @method string getPostalCode() Gets the postalCode element or NULL. + * @property string $postalCode Gets the postalCode element or NULL. + * + * @method PartnerAPITypeOrderParameters setJoiln(string $value) Sets the joiln element. + * @method string getJoiln() Gets the joiln element or NULL. + * @property string $joiln Gets the joiln element or NULL. + * + * @method PartnerAPITypeOrderParameters setJoisopn(string $value) Sets the joisopn element. + * @method string getJoisopn() Gets the joisopn element or NULL. + * @property string $joisopn Gets the joisopn element or NULL. + * + * @method PartnerAPITypeOrderParameters setJoisocn(string $value) Sets the joisocn element. + * @method string getJoisocn() Gets the joisocn element or NULL. + * @property string $joisocn Gets the joisocn element or NULL. + * + * @method PartnerAPITypeOrderParameters setRevocationContactEmail $value) Sets the revocationContactEmail element. + * @method string getRevocationContactEmail() Gets the revocationContactEmail element. + * @property string $revocationContactEmail Gets the revocationContactEmail element. + * + * @method PartnerAPITypeOrderParameters setShortenedValidityPeriod(string $value) Sets the shortenedValidityPeriod element. + * @method string getShortenedValidityPeriod() Gets the shortenedValidityPeriod element. + * @property string $shortenedValidityPeriod Gets the shortenedValidityPeriod element. + * + * @package types + */ +class PartnerAPITypeOrderParameters extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'CSR' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'customer' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'language' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderID' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'productCode' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'userAgent' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'email' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'commonName' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'organization' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'organizationalUnit' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'locality' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'country' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'state' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'businessCategory' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'streetAddress' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'postalCode' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'joiln' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'joisopn' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'joisocn' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'revocationContactEmail' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'shortenedValidityPeriod' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true) + ); + return $n; + } +} diff --git a/src/types/typeOrderRequest.php b/src/Types/typeOrderRequest.php similarity index 69% rename from src/types/typeOrderRequest.php rename to src/Types/typeOrderRequest.php index c9e751a..342404e 100644 --- a/src/types/typeOrderRequest.php +++ b/src/Types/typeOrderRequest.php @@ -1,70 +1,71 @@ - - - - - - - - - - - - - -*/ - -/** - * This class represents the orderRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeOrderRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. - * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. - * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. - * - * @method PartnerAPITypeOrderRequest setOrderParameters(PartnerAPITypeOrderParameters $value) Sets the orderParameters element. - * @method PartnerAPITypeOrderParameters getOrderParameters() Gets the orderParameters element. - * @property PartnerAPITypeOrderParameters $orderParameters Gets the orderParameters element. - * - * @method PartnerAPITypeOrderRequest setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. - * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. - * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. - * - * @method PartnerAPITypeOrderRequest setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. - * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. - * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. - * - * @method PartnerAPITypeOrderRequest setSANEntries(PartnerAPITypeSanEntries $value) Sets the SANEntries element. - * @method PartnerAPITypeSanEntries getSANEntries() Gets the SANEntries element or NULL. - * @property PartnerAPITypeSanEntries $SANEntries Gets the SANEntries element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => FALSE), - 'orderParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeOrderParameters(), 'type' => 'PartnerAPITypeOrderParameters', 'nillable' => FALSE), - 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => TRUE), - 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => FALSE), - 'SANEntries' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanEntries', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + + +*/ + +/** + * This class represents the orderRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeOrderRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. + * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. + * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. + * + * @method PartnerAPITypeOrderRequest setOrderParameters(PartnerAPITypeOrderParameters $value) Sets the orderParameters element. + * @method PartnerAPITypeOrderParameters getOrderParameters() Gets the orderParameters element. + * @property PartnerAPITypeOrderParameters $orderParameters Gets the orderParameters element. + * + * @method PartnerAPITypeOrderRequest setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. + * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. + * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. + * + * @method PartnerAPITypeOrderRequest setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. + * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. + * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. + * + * @method PartnerAPITypeOrderRequest setSANEntries(PartnerAPITypeSanEntries $value) Sets the SANEntries element. + * @method PartnerAPITypeSanEntries getSANEntries() Gets the SANEntries element or NULL. + * @property PartnerAPITypeSanEntries $SANEntries Gets the SANEntries element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => false), + 'orderParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeOrderParameters(), 'type' => 'PartnerAPITypeOrderParameters', 'nillable' => false), + 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => true), + 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => false), + 'SANEntries' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanEntries', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeOrderSNICertificateRequest.php b/src/Types/typeOrderSNICertificateRequest.php similarity index 74% rename from src/types/typeOrderSNICertificateRequest.php rename to src/Types/typeOrderSNICertificateRequest.php index 72a19b8..7fbd1fc 100644 --- a/src/types/typeOrderSNICertificateRequest.php +++ b/src/Types/typeOrderSNICertificateRequest.php @@ -1,64 +1,65 @@ - - - - - - - - - - - - -*/ - -/** - * This class represents the orderSNICertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeOrderSNICertificateRequest setOrderSNIParameters(PartnerAPITypeOrderSNIParameters $value) Sets the orderSNIParameters element. - * @method PartnerAPITypeOrderSNIParameters getOrderSNIParameters() Gets the orderSNIParameters element. - * @property PartnerAPITypeOrderSNIParameters $orderSNIParameters Gets the orderSNIParameters element. - * - * @method PartnerAPITypeOrderSNICertificateRequest setSerialNumbers(PartnerAPITypeSerialNumbers $value) Sets the serialNumbers element. - * @method PartnerAPITypeSerialNumbers getSerialNumbers() Gets the serialNumbers element. - * @property PartnerAPITypeSerialNumbers $serialNumbers Gets the serialNumbers element. - * - * @method PartnerAPITypeOrderSNICertificateRequest setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. - * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. - * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. - * - * @method PartnerAPITypeOrderSNICertificateRequest setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. - * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. - * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderSNICertificateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderSNIParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeOrderSNIParameters(), 'type' => 'PartnerAPITypeOrderSNIParameters', 'nillable' => FALSE), - 'serialNumbers' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeSerialNumbers(), 'type' => 'PartnerAPITypeSerialNumbers', 'nillable' => FALSE), - 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => FALSE), - 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + +*/ + +/** + * This class represents the orderSNICertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeOrderSNICertificateRequest setOrderSNIParameters(PartnerAPITypeOrderSNIParameters $value) Sets the orderSNIParameters element. + * @method PartnerAPITypeOrderSNIParameters getOrderSNIParameters() Gets the orderSNIParameters element. + * @property PartnerAPITypeOrderSNIParameters $orderSNIParameters Gets the orderSNIParameters element. + * + * @method PartnerAPITypeOrderSNICertificateRequest setSerialNumbers(PartnerAPITypeSerialNumbers $value) Sets the serialNumbers element. + * @method PartnerAPITypeSerialNumbers getSerialNumbers() Gets the serialNumbers element. + * @property PartnerAPITypeSerialNumbers $serialNumbers Gets the serialNumbers element. + * + * @method PartnerAPITypeOrderSNICertificateRequest setRequestorInfo(PartnerAPITypeRequestorInfo $value) Sets the requestorInfo element. + * @method PartnerAPITypeRequestorInfo getRequestorInfo() Gets the requestorInfo element. + * @property PartnerAPITypeRequestorInfo $requestorInfo Gets the requestorInfo element. + * + * @method PartnerAPITypeOrderSNICertificateRequest setOrganizationInfo(PartnerAPITypeOrganizationInfo $value) Sets the organizationInfo element. + * @method PartnerAPITypeOrganizationInfo getOrganizationInfo() Gets the organizationInfo element or NULL. + * @property PartnerAPITypeOrganizationInfo $organizationInfo Gets the organizationInfo element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderSNICertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderSNIParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeOrderSNIParameters(), 'type' => 'PartnerAPITypeOrderSNIParameters', 'nillable' => false), + 'serialNumbers' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeSerialNumbers(), 'type' => 'PartnerAPITypeSerialNumbers', 'nillable' => false), + 'requestorInfo' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestorInfo(), 'type' => 'PartnerAPITypeRequestorInfo', 'nillable' => false), + 'organizationInfo' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeOrganizationInfo', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeOrderSNICertificateResponse.php b/src/Types/typeOrderSNICertificateResponse.php similarity index 70% rename from src/types/typeOrderSNICertificateResponse.php rename to src/Types/typeOrderSNICertificateResponse.php index 9bec2d1..d1bde85 100644 --- a/src/types/typeOrderSNICertificateResponse.php +++ b/src/Types/typeOrderSNICertificateResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the orderSNICertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeOrderSNICertificateResponse setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeOrderSNICertificateResponse setInvalidSerialNumbers(PartnerAPITypeInvalidSerialNumbers $value) Sets the invalidSerialNumbers element. - * @method PartnerAPITypeInvalidSerialNumbers getInvalidSerialNumbers() Gets the invalidSerialNumbers element or NULL. - * @property PartnerAPITypeInvalidSerialNumbers $invalidSerialNumbers Gets the invalidSerialNumbers element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderSNICertificateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'invalidSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeInvalidSerialNumbers', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the orderSNICertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeOrderSNICertificateResponse setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeOrderSNICertificateResponse setInvalidSerialNumbers(PartnerAPITypeInvalidSerialNumbers $value) Sets the invalidSerialNumbers element. + * @method PartnerAPITypeInvalidSerialNumbers getInvalidSerialNumbers() Gets the invalidSerialNumbers element or NULL. + * @property PartnerAPITypeInvalidSerialNumbers $invalidSerialNumbers Gets the invalidSerialNumbers element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderSNICertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'invalidSerialNumbers' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeInvalidSerialNumbers', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeOrderSNIParameters.php b/src/Types/typeOrderSNIParameters.php similarity index 70% rename from src/types/typeOrderSNIParameters.php rename to src/Types/typeOrderSNIParameters.php index cb56120..181d5b1 100644 --- a/src/types/typeOrderSNIParameters.php +++ b/src/Types/typeOrderSNIParameters.php @@ -1,52 +1,53 @@ - - - - - - - -*/ - -/** - * This class represents the orderSNIParameters WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrderSNIParameters setCSR(string $value) Sets the CSR element. - * @method string getCSR() Gets the CSR element. - * @property string $CSR Gets the CSR element. - * - * @method PartnerAPITypeOrderSNIParameters setLanguage(string $value) Sets the language element. - * @method string getLanguage() Gets the language element or NULL. - * @property string $language Gets the language element or NULL. - * - * @method PartnerAPITypeOrderSNIParameters setHashAlgorithm(string $value) Sets the hashAlgorithm element. - * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderSNIParameters extends PartnerAPIType { - - protected function initData() { - $n = array( - 'CSR' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'language' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the orderSNIParameters WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrderSNIParameters setCSR(string $value) Sets the CSR element. + * @method string getCSR() Gets the CSR element. + * @property string $CSR Gets the CSR element. + * + * @method PartnerAPITypeOrderSNIParameters setLanguage(string $value) Sets the language element. + * @method string getLanguage() Gets the language element or NULL. + * @property string $language Gets the language element or NULL. + * + * @method PartnerAPITypeOrderSNIParameters setHashAlgorithm(string $value) Sets the hashAlgorithm element. + * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderSNIParameters extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'CSR' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'language' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrderStatus.php b/src/Types/typeOrderStatus.php similarity index 70% rename from src/types/typeOrderStatus.php rename to src/Types/typeOrderStatus.php index 387735a..b38792b 100644 --- a/src/types/typeOrderStatus.php +++ b/src/Types/typeOrderStatus.php @@ -1,70 +1,71 @@ - - - - - - - - - - -*/ - -/** - * This class represents the orderStatus WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrderStatus setCustomer(string $value) Sets the customer element. - * @method string getCustomer() Gets the customer element. - * @property string $customer Gets the customer element. - * - * @method PartnerAPITypeOrderStatus setOrderDate(string $value) Sets the orderDate element. - * @method string getOrderDate() Gets the orderDate element. - * @property string $orderDate Gets the orderDate element. - * - * @method PartnerAPITypeOrderStatus setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeOrderStatus setOrderStatus(string $value) Sets the orderStatus element. - * @method string getOrderStatus() Gets the orderStatus element. - * @property string $orderStatus Gets the orderStatus element. - * - * @method PartnerAPITypeOrderStatus setProductCode(string $value) Sets the productCode element. - * @method string getProductCode() Gets the productCode element. - * @property string $productCode Gets the productCode element. - * - * @method PartnerAPITypeOrderStatus setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @package types - */ -class PartnerAPITypeOrderStatus extends PartnerAPIType { - - protected function initData() { - $n = array( - 'customer' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderDate' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderStatus' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'productCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the orderStatus WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrderStatus setCustomer(string $value) Sets the customer element. + * @method string getCustomer() Gets the customer element. + * @property string $customer Gets the customer element. + * + * @method PartnerAPITypeOrderStatus setOrderDate(string $value) Sets the orderDate element. + * @method string getOrderDate() Gets the orderDate element. + * @property string $orderDate Gets the orderDate element. + * + * @method PartnerAPITypeOrderStatus setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeOrderStatus setOrderStatus(string $value) Sets the orderStatus element. + * @method string getOrderStatus() Gets the orderStatus element. + * @property string $orderStatus Gets the orderStatus element. + * + * @method PartnerAPITypeOrderStatus setProductCode(string $value) Sets the productCode element. + * @method string getProductCode() Gets the productCode element. + * @property string $productCode Gets the productCode element. + * + * @method PartnerAPITypeOrderStatus setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @package types + */ +class PartnerAPITypeOrderStatus extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'customer' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderDate' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderStatus' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'productCode' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrderVerification.php b/src/Types/typeOrderVerification.php similarity index 84% rename from src/types/typeOrderVerification.php rename to src/Types/typeOrderVerification.php index 176a9a4..dde4379 100644 --- a/src/types/typeOrderVerification.php +++ b/src/Types/typeOrderVerification.php @@ -1,8 +1,10 @@ array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'state' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'expireDate' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) + 'type' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'state' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'expireDate' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) ); return $n; } - - } diff --git a/src/types/typeOrderVerificationStateEnum.php b/src/Types/typeOrderVerificationStateEnum.php similarity index 86% rename from src/types/typeOrderVerificationStateEnum.php rename to src/Types/typeOrderVerificationStateEnum.php index 0f8930f..f6fab33 100644 --- a/src/types/typeOrderVerificationStateEnum.php +++ b/src/Types/typeOrderVerificationStateEnum.php @@ -1,39 +1,40 @@ - - - - - - - - -*/ - -/** - * This class represents the orderVerificationStateEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeOrderVerificationStateEnum { - - const NOT_REQUIRED = "NOT_REQUIRED"; - const REQUIRED = "REQUIRED"; - const FAILED = "FAILED"; - const VERIFIED = "VERIFIED"; - - private function __construct() { - } - - -} + + + + + + + + +*/ + +/** + * This class represents the orderVerificationStateEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeOrderVerificationStateEnum +{ + const NOT_REQUIRED = "NOT_REQUIRED"; + const REQUIRED = "REQUIRED"; + const FAILED = "FAILED"; + const VERIFIED = "VERIFIED"; + + private function __construct() + { + } +} diff --git a/src/types/typeOrderVerificationTypeEnum.php b/src/Types/typeOrderVerificationTypeEnum.php similarity index 92% rename from src/types/typeOrderVerificationTypeEnum.php rename to src/Types/typeOrderVerificationTypeEnum.php index 02faa1a..b2b3fdb 100644 --- a/src/types/typeOrderVerificationTypeEnum.php +++ b/src/Types/typeOrderVerificationTypeEnum.php @@ -1,8 +1,10 @@ array('min' => 0, 'max' => NULL, 'value' => NULL, 'type' => 'PartnerAPITypeOrderVerification', 'nillable' => FALSE) + 'verification' => array('min' => 0, 'max' => null, 'value' => null, 'type' => 'PartnerAPITypeOrderVerification', 'nillable' => false) ); return $n; } - - } diff --git a/src/types/typeOrders.php b/src/Types/typeOrders.php similarity index 78% rename from src/types/typeOrders.php rename to src/Types/typeOrders.php index 5ec462a..f04a9df 100644 --- a/src/types/typeOrders.php +++ b/src/Types/typeOrders.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the orders WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrders setOrder(PartnerAPITypeOrder $value) Sets the Order element. This method removes all previously added Order elements and creates a new set of Order elements. - * @method PartnerAPITypeOrders addOrder(PartnerAPITypeOrder $value) Adds a new Order element to the existing set. - * @method PartnerAPITypeOrder|PartnerAPITypeOrder[] getOrder() Gets the Order element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeOrder objects will be returned. - * @property PartnerAPITypeOrder|PartnerAPITypeOrder[] $Order Gets the Order element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeOrder objects will be returned. - * - * @package types - */ -class PartnerAPITypeOrders extends PartnerAPIType { - - protected function initData() { - $n = array( - 'Order' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeOrder(), 'type' => 'PartnerAPITypeOrder', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the orders WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrders setOrder(PartnerAPITypeOrder $value) Sets the Order element. This method removes all previously added Order elements and creates a new set of Order elements. + * @method PartnerAPITypeOrders addOrder(PartnerAPITypeOrder $value) Adds a new Order element to the existing set. + * @method PartnerAPITypeOrder|PartnerAPITypeOrder[] getOrder() Gets the Order element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeOrder objects will be returned. + * @property PartnerAPITypeOrder|PartnerAPITypeOrder[] $Order Gets the Order element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeOrder objects will be returned. + * + * @package types + */ +class PartnerAPITypeOrders extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'Order' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeOrder(), 'type' => 'PartnerAPITypeOrder', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeOrganizationInfo.php b/src/Types/typeOrganizationInfo.php similarity index 72% rename from src/types/typeOrganizationInfo.php rename to src/Types/typeOrganizationInfo.php index a81adba..4489583 100644 --- a/src/types/typeOrganizationInfo.php +++ b/src/Types/typeOrganizationInfo.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the organizationInfo WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeOrganizationInfo setTaxIdentificationNumber(string $value) Sets the taxIdentificationNumber element. - * @method string getTaxIdentificationNumber() Gets the taxIdentificationNumber element. - * @property string $taxIdentificationNumber Gets the taxIdentificationNumber element. - * - * @package types - */ -class PartnerAPITypeOrganizationInfo extends PartnerAPIType { - - protected function initData() { - $n = array( - 'taxIdentificationNumber' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the organizationInfo WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeOrganizationInfo setTaxIdentificationNumber(string $value) Sets the taxIdentificationNumber element. + * @method string getTaxIdentificationNumber() Gets the taxIdentificationNumber element. + * @property string $taxIdentificationNumber Gets the taxIdentificationNumber element. + * + * @package types + */ +class PartnerAPITypeOrganizationInfo extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'taxIdentificationNumber' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + ); + return $n; + } +} diff --git a/src/types/typeParsedCsr.php b/src/Types/typeParsedCsr.php similarity index 70% rename from src/types/typeParsedCsr.php rename to src/Types/typeParsedCsr.php index b3fa7f9..b71d30f 100644 --- a/src/types/typeParsedCsr.php +++ b/src/Types/typeParsedCsr.php @@ -1,117 +1,118 @@ - - - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the parsedCsr WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeParsedCsr setCommonName(string $value) Sets the commonName element. - * @method string getCommonName() Gets the commonName element or NULL. - * @property string $commonName Gets the commonName element or NULL. - * - * @method PartnerAPITypeParsedCsr setCountry(string $value) Sets the country element. - * @method string getCountry() Gets the country element or NULL. - * @property string $country Gets the country element or NULL. - * - * @method PartnerAPITypeParsedCsr setEmail(string $value) Sets the email element. - * @method string getEmail() Gets the email element or NULL. - * @property string $email Gets the email element or NULL. - * - * @method PartnerAPITypeParsedCsr setJoISoCN(string $value) Sets the joISoCN element. - * @method string getJoISoCN() Gets the joISoCN element or NULL. - * @property string $joISoCN Gets the joISoCN element or NULL. - * - * @method PartnerAPITypeParsedCsr setJoILN(string $value) Sets the joILN element. - * @method string getJoILN() Gets the joILN element or NULL. - * @property string $joILN Gets the joILN element or NULL. - * - * @method PartnerAPITypeParsedCsr setJoISoPN(string $value) Sets the joISoPN element. - * @method string getJoISoPN() Gets the joISoPN element or NULL. - * @property string $joISoPN Gets the joISoPN element or NULL. - * - * @method PartnerAPITypeParsedCsr setBusinessCategory(string $value) Sets the businessCategory element. - * @method string getBusinessCategory() Gets the businessCategory element or NULL. - * @property string $businessCategory Gets the businessCategory element or NULL. - * - * @method PartnerAPITypeParsedCsr setLocality(string $value) Sets the locality element. - * @method string getLocality() Gets the locality element or NULL. - * @property string $locality Gets the locality element or NULL. - * - * @method PartnerAPITypeParsedCsr setOrganization(string $value) Sets the organization element. - * @method string getOrganization() Gets the organization element or NULL. - * @property string $organization Gets the organization element or NULL. - * - * @method PartnerAPITypeParsedCsr setOrganizationalUnit(string $value) Sets the organizationalUnit element. - * @method string getOrganizationalUnit() Gets the organizationalUnit element or NULL. - * @property string $organizationalUnit Gets the organizationalUnit element or NULL. - * - * @method PartnerAPITypeParsedCsr setPostalCode(string $value) Sets the postalCode element. - * @method string getPostalCode() Gets the postalCode element or NULL. - * @property string $postalCode Gets the postalCode element or NULL. - * - * @method PartnerAPITypeParsedCsr setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @method PartnerAPITypeParsedCsr setStreetAddress(string $value) Sets the streetAddress element. - * @method string getStreetAddress() Gets the streetAddress element or NULL. - * @property string $streetAddress Gets the streetAddress element or NULL. - * - * @method PartnerAPITypeParsedCsr setState(string $value) Sets the state element. - * @method string getState() Gets the state element or NULL. - * @property string $state Gets the state element or NULL. - * - * @package types - */ -class PartnerAPITypeParsedCsr extends PartnerAPIType { - - protected function initData() { - $n = array( - 'commonName' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'country' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'email' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'joISoCN' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'joILN' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'joISoPN' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'businessCategory' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'locality' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'organization' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'organizationalUnit' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'postalCode' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'streetAddress' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'state' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the parsedCsr WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeParsedCsr setCommonName(string $value) Sets the commonName element. + * @method string getCommonName() Gets the commonName element or NULL. + * @property string $commonName Gets the commonName element or NULL. + * + * @method PartnerAPITypeParsedCsr setCountry(string $value) Sets the country element. + * @method string getCountry() Gets the country element or NULL. + * @property string $country Gets the country element or NULL. + * + * @method PartnerAPITypeParsedCsr setEmail(string $value) Sets the email element. + * @method string getEmail() Gets the email element or NULL. + * @property string $email Gets the email element or NULL. + * + * @method PartnerAPITypeParsedCsr setJoISoCN(string $value) Sets the joISoCN element. + * @method string getJoISoCN() Gets the joISoCN element or NULL. + * @property string $joISoCN Gets the joISoCN element or NULL. + * + * @method PartnerAPITypeParsedCsr setJoILN(string $value) Sets the joILN element. + * @method string getJoILN() Gets the joILN element or NULL. + * @property string $joILN Gets the joILN element or NULL. + * + * @method PartnerAPITypeParsedCsr setJoISoPN(string $value) Sets the joISoPN element. + * @method string getJoISoPN() Gets the joISoPN element or NULL. + * @property string $joISoPN Gets the joISoPN element or NULL. + * + * @method PartnerAPITypeParsedCsr setBusinessCategory(string $value) Sets the businessCategory element. + * @method string getBusinessCategory() Gets the businessCategory element or NULL. + * @property string $businessCategory Gets the businessCategory element or NULL. + * + * @method PartnerAPITypeParsedCsr setLocality(string $value) Sets the locality element. + * @method string getLocality() Gets the locality element or NULL. + * @property string $locality Gets the locality element or NULL. + * + * @method PartnerAPITypeParsedCsr setOrganization(string $value) Sets the organization element. + * @method string getOrganization() Gets the organization element or NULL. + * @property string $organization Gets the organization element or NULL. + * + * @method PartnerAPITypeParsedCsr setOrganizationalUnit(string $value) Sets the organizationalUnit element. + * @method string getOrganizationalUnit() Gets the organizationalUnit element or NULL. + * @property string $organizationalUnit Gets the organizationalUnit element or NULL. + * + * @method PartnerAPITypeParsedCsr setPostalCode(string $value) Sets the postalCode element. + * @method string getPostalCode() Gets the postalCode element or NULL. + * @property string $postalCode Gets the postalCode element or NULL. + * + * @method PartnerAPITypeParsedCsr setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @method PartnerAPITypeParsedCsr setStreetAddress(string $value) Sets the streetAddress element. + * @method string getStreetAddress() Gets the streetAddress element or NULL. + * @property string $streetAddress Gets the streetAddress element or NULL. + * + * @method PartnerAPITypeParsedCsr setState(string $value) Sets the state element. + * @method string getState() Gets the state element or NULL. + * @property string $state Gets the state element or NULL. + * + * @package types + */ +class PartnerAPITypeParsedCsr extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'commonName' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'country' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'email' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'joISoCN' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'joILN' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'joISoPN' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'businessCategory' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'locality' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'organization' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'organizationalUnit' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'postalCode' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'streetAddress' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'state' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typePerformSanVerificationResponse.php b/src/Types/typePerformSanVerificationResponse.php similarity index 87% rename from src/types/typePerformSanVerificationResponse.php rename to src/Types/typePerformSanVerificationResponse.php index 85cc77d..aabf455 100644 --- a/src/types/typePerformSanVerificationResponse.php +++ b/src/Types/typePerformSanVerificationResponse.php @@ -1,35 +1,36 @@ - - - - - - - -*/ - -/** - * This class represents the performSanVerificationResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @package types - */ -class PartnerAPITypePerformSanVerificationResponse extends PartnerAPITypeResponse { - - protected function initData() { - return parent::initData(); - } - - -} + + + + + + + +*/ + +/** + * This class represents the performSanVerificationResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @package types + */ +class PartnerAPITypePerformSanVerificationResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + return parent::initData(); + } +} diff --git a/src/types/typeProduct.php b/src/Types/typeProduct.php similarity index 64% rename from src/types/typeProduct.php rename to src/Types/typeProduct.php index be886cc..004fa51 100644 --- a/src/types/typeProduct.php +++ b/src/Types/typeProduct.php @@ -1,72 +1,73 @@ - - - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the product WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeProduct setSupportedHashAlgorithms(PartnerAPITypeProduct_SupportedHashAlgorithms $value) Sets the supportedHashAlgorithms element. - * @method PartnerAPITypeProduct_SupportedHashAlgorithms getSupportedHashAlgorithms() Gets the supportedHashAlgorithms element or NULL. - * @property PartnerAPITypeProduct_SupportedHashAlgorithms $supportedHashAlgorithms Gets the supportedHashAlgorithms element or NULL. - * - * @method PartnerAPITypeProduct setCode(long $value) Sets the code element. - * @method long getCode() Gets the code element or NULL. - * @property long $code Gets the code element or NULL. - * - * @method PartnerAPITypeProduct setType(string $value) Sets the type element. - * @method string getType() Gets the type element or NULL. - * @property string $type Gets the type element or NULL. - * - * @method PartnerAPITypeProduct setValidityPeriod(int $value) Sets the validityPeriod element. - * @method int getValidityPeriod() Gets the validityPeriod element or NULL. - * @property int $validityPeriod Gets the validityPeriod element or NULL. - * - * @method PartnerAPITypeProduct setCertificateNotificationEnabled(boolean $value) Sets the certificateNotificationEnabled element. - * @method boolean getCertificateNotificationEnabled() Gets the certificateNotificationEnabled element or NULL. - * @property boolean $certificateNotificationEnabled Gets the certificateNotificationEnabled element or NULL. - * - * @package types - */ -class PartnerAPITypeProduct extends PartnerAPIType { - - protected function initData() { - $n = array( - 'supportedHashAlgorithms' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeProduct_SupportedHashAlgorithms', 'nillable' => FALSE), - 'code' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'long', 'nillable' => FALSE), - 'type' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'validityPeriod' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'certificateNotificationEnabled' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE), - ); - return $n; - } - - -} + + + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the product WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeProduct setSupportedHashAlgorithms(PartnerAPITypeProduct_SupportedHashAlgorithms $value) Sets the supportedHashAlgorithms element. + * @method PartnerAPITypeProduct_SupportedHashAlgorithms getSupportedHashAlgorithms() Gets the supportedHashAlgorithms element or NULL. + * @property PartnerAPITypeProduct_SupportedHashAlgorithms $supportedHashAlgorithms Gets the supportedHashAlgorithms element or NULL. + * + * @method PartnerAPITypeProduct setCode(long $value) Sets the code element. + * @method long getCode() Gets the code element or NULL. + * @property long $code Gets the code element or NULL. + * + * @method PartnerAPITypeProduct setType(string $value) Sets the type element. + * @method string getType() Gets the type element or NULL. + * @property string $type Gets the type element or NULL. + * + * @method PartnerAPITypeProduct setValidityPeriod(int $value) Sets the validityPeriod element. + * @method int getValidityPeriod() Gets the validityPeriod element or NULL. + * @property int $validityPeriod Gets the validityPeriod element or NULL. + * + * @method PartnerAPITypeProduct setCertificateNotificationEnabled(boolean $value) Sets the certificateNotificationEnabled element. + * @method boolean getCertificateNotificationEnabled() Gets the certificateNotificationEnabled element or NULL. + * @property boolean $certificateNotificationEnabled Gets the certificateNotificationEnabled element or NULL. + * + * @package types + */ +class PartnerAPITypeProduct extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'supportedHashAlgorithms' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeProduct_SupportedHashAlgorithms', 'nillable' => false), + 'code' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'long', 'nillable' => false), + 'type' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'validityPeriod' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'certificateNotificationEnabled' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false), + ); + return $n; + } +} diff --git a/src/types/typeProduct_SupportedHashAlgorithms.php b/src/Types/typeProduct_SupportedHashAlgorithms.php similarity index 59% rename from src/types/typeProduct_SupportedHashAlgorithms.php rename to src/Types/typeProduct_SupportedHashAlgorithms.php index 7e2505e..6fd2d7f 100644 --- a/src/types/typeProduct_SupportedHashAlgorithms.php +++ b/src/Types/typeProduct_SupportedHashAlgorithms.php @@ -1,53 +1,54 @@ - - - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the product > supportedHashAlgorithms WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeProduct_SupportedHashAlgorithms setHashAlgorithm(string $value) Sets the hashAlgorithm element. This method removes all previously added hashAlgorithm elements and creates a new set of hashAlgorithm elements. - * @method PartnerAPITypeProduct_SupportedHashAlgorithms addHashAlgorithm(string $value) Adds a new hashAlgorithm element to the existing set. - * @method string|string[] getHashAlgorithm() Gets the hashAlgorithm element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $hashAlgorithm Gets the hashAlgorithm element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeProduct_SupportedHashAlgorithms extends PartnerAPIType { - - protected function initData() { - $n = array( - 'hashAlgorithm' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the product > supportedHashAlgorithms WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeProduct_SupportedHashAlgorithms setHashAlgorithm(string $value) Sets the hashAlgorithm element. This method removes all previously added hashAlgorithm elements and creates a new set of hashAlgorithm elements. + * @method PartnerAPITypeProduct_SupportedHashAlgorithms addHashAlgorithm(string $value) Adds a new hashAlgorithm element to the existing set. + * @method string|string[] getHashAlgorithm() Gets the hashAlgorithm element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $hashAlgorithm Gets the hashAlgorithm element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeProduct_SupportedHashAlgorithms extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'hashAlgorithm' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeQuickOrderRequest.php b/src/Types/typeQuickOrderRequest.php similarity index 71% rename from src/types/typeQuickOrderRequest.php rename to src/Types/typeQuickOrderRequest.php index 908f87c..29ec700 100644 --- a/src/types/typeQuickOrderRequest.php +++ b/src/Types/typeQuickOrderRequest.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the quickOrderRequest WSDL type. - * - * It is an extension to the PartnerAPITypeOrderRequest class. - * - * @package types - */ -class PartnerAPITypeQuickOrderRequest extends PartnerAPITypeOrderRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the quickOrderRequest WSDL type. + * + * It is an extension to the PartnerAPITypeOrderRequest class. + * + * @package types + */ +class PartnerAPITypeQuickOrderRequest extends PartnerAPITypeOrderRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeQuickOrderResponse.php b/src/Types/typeQuickOrderResponse.php similarity index 70% rename from src/types/typeQuickOrderResponse.php rename to src/Types/typeQuickOrderResponse.php index af930cb..0ebd748 100644 --- a/src/types/typeQuickOrderResponse.php +++ b/src/Types/typeQuickOrderResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the quickOrderResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeQuickOrderResponse setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeQuickOrderResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. - * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. - * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. - * - * @package types - */ -class PartnerAPITypeQuickOrderResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the quickOrderResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeQuickOrderResponse setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeQuickOrderResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. + * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. + * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. + * + * @package types + */ +class PartnerAPITypeQuickOrderResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeReissueCertificateRequest.php b/src/Types/typeReissueCertificateRequest.php similarity index 70% rename from src/types/typeReissueCertificateRequest.php rename to src/Types/typeReissueCertificateRequest.php index 92a4b9e..79090de 100644 --- a/src/types/typeReissueCertificateRequest.php +++ b/src/Types/typeReissueCertificateRequest.php @@ -1,82 +1,83 @@ - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the reissueCertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeReissueCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setX509Cert(string $value) Sets the X509Cert element. - * @method string getX509Cert() Gets the X509Cert element or NULL. - * @property string $X509Cert Gets the X509Cert element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. - * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setCSR(string $value) Sets the CSR element. - * @method string getCSR() Gets the CSR element or NULL. - * @property string $CSR Gets the CSR element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. - * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. - * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setSANEntries(PartnerAPITypeSanEntries $value) Sets the SANEntries element. - * @method PartnerAPITypeSanEntries getSANEntries() Gets the SANEntries element or NULL. - * @property PartnerAPITypeSanEntries $SANEntries Gets the SANEntries element or NULL. - * - * @method PartnerAPITypeReissueCertificateRequest setUserAgent(string $value) Sets the UserAgent element. - * @method string getUserAgent() Gets the UserAgent element or NULL. - * @property string $userAgent Gets the UserAgent element or NULL. - * - * @package types - */ -class PartnerAPITypeReissueCertificateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'X509Cert' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'CSR' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => FALSE), - 'SANEntries' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanEntries', 'nillable' => FALSE), - 'userAgent' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the reissueCertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeReissueCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setX509Cert(string $value) Sets the X509Cert element. + * @method string getX509Cert() Gets the X509Cert element or NULL. + * @property string $X509Cert Gets the X509Cert element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. + * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setCSR(string $value) Sets the CSR element. + * @method string getCSR() Gets the CSR element or NULL. + * @property string $CSR Gets the CSR element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. + * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. + * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setSANEntries(PartnerAPITypeSanEntries $value) Sets the SANEntries element. + * @method PartnerAPITypeSanEntries getSANEntries() Gets the SANEntries element or NULL. + * @property PartnerAPITypeSanEntries $SANEntries Gets the SANEntries element or NULL. + * + * @method PartnerAPITypeReissueCertificateRequest setUserAgent(string $value) Sets the UserAgent element. + * @method string getUserAgent() Gets the UserAgent element or NULL. + * @property string $userAgent Gets the UserAgent element or NULL. + * + * @package types + */ +class PartnerAPITypeReissueCertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'X509Cert' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'CSR' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => false), + 'SANEntries' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanEntries', 'nillable' => false), + 'userAgent' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeReissueCertificateResponse.php b/src/Types/typeReissueCertificateResponse.php similarity index 71% rename from src/types/typeReissueCertificateResponse.php rename to src/Types/typeReissueCertificateResponse.php index f36f2dc..4e91896 100644 --- a/src/types/typeReissueCertificateResponse.php +++ b/src/Types/typeReissueCertificateResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the reissueCertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeReissueCertificateResponse setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeReissueCertificateResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. - * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. - * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. - * - * @package types - */ -class PartnerAPITypeReissueCertificateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the reissueCertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeReissueCertificateResponse setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeReissueCertificateResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. + * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. + * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. + * + * @package types + */ +class PartnerAPITypeReissueCertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeRemoveSerialNumbers.php b/src/Types/typeRemoveSerialNumbers.php similarity index 75% rename from src/types/typeRemoveSerialNumbers.php rename to src/Types/typeRemoveSerialNumbers.php index 1d31bf2..387597a 100644 --- a/src/types/typeRemoveSerialNumbers.php +++ b/src/Types/typeRemoveSerialNumbers.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the removeSerialNumbers WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeRemoveSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. - * @method PartnerAPITypeRemoveSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. - * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeRemoveSerialNumbers extends PartnerAPIType { - - protected function initData() { - $n = array( - 'serialNumber' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the removeSerialNumbers WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeRemoveSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. + * @method PartnerAPITypeRemoveSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. + * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeRemoveSerialNumbers extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'serialNumber' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeRenewCertificateRequest.php b/src/Types/typeRenewCertificateRequest.php similarity index 85% rename from src/types/typeRenewCertificateRequest.php rename to src/Types/typeRenewCertificateRequest.php index 54ca9bb..4d75aa1 100644 --- a/src/types/typeRenewCertificateRequest.php +++ b/src/Types/typeRenewCertificateRequest.php @@ -1,100 +1,101 @@ - - - - - - - - - - - - - - - - - - -*/ - -/** - * This class represents the renewCertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeRenewCertificateRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. - * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. - * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. - * - * @method PartnerAPITypeRenewCertificateRequest setCSR(string $value) Sets the CSR element. - * @method string getCSR() Gets the CSR element. - * @property string $CSR Gets the CSR element. - * - * @method PartnerAPITypeRenewCertificateRequest setCustomer(string $value) Sets the customer element. - * @method string getCustomer() Gets the customer element. - * @property string $customer Gets the customer element. - * - * @method PartnerAPITypeRenewCertificateRequest setProductCode(string $value) Sets the productCode element. - * @method string getProductCode() Gets the productCode element. - * @property string $productCode Gets the productCode element. - * - * @method PartnerAPITypeRenewCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element or NULL. - * @property string $serialNumber Gets the serialNumber element or NULL. - * - * @method PartnerAPITypeRenewCertificateRequest setX509Cert(string $value) Sets the X509Cert element. - * @method string getX509Cert() Gets the X509Cert element or NULL. - * @property string $X509Cert Gets the X509Cert element or NULL. - * - * @method PartnerAPITypeRenewCertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. - * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. - * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. - * - * @method PartnerAPITypeRenewCertificateRequest setUserAgent(string $value) Sets the UserAgent element. - * @method string getUserAgent() Gets the UserAgent element or NULL. - * @property string $userAgent Gets the UserAgent element or NULL. - * - * @method PartnerAPITypeOrderRequest setRevocationContactEmail $value) Sets the revocationContactEmail element. - * @method string getRevocationContactEmail() Gets the revocationContactEmail element. - * @property string $revocationContactEmail Gets the revocationContactEmail element. - * - * @method PartnerAPITypeOrderRequest setShortenedValidityPeriod(string $value) Sets the shortenedValidityPeriod element. - * @method string getShortenedValidityPeriod() Gets the shortenedValidityPeriod element. - * @property string $shortenedValidityPeriod Gets the shortenedValidityPeriod element. - * - * @package types - */ -class PartnerAPITypeRenewCertificateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => FALSE), - 'CSR' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'customer' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'productCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'X509Cert' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'userAgent' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'revocationContactEmail' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE), - 'shortenedValidityPeriod' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + + + + + + + + + +*/ + +/** + * This class represents the renewCertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeRenewCertificateRequest setSANApprover(PartnerAPITypeSanApprover $value) Sets the SANApprover element. + * @method PartnerAPITypeSanApprover getSANApprover() Gets the SANApprover element or NULL. + * @property PartnerAPITypeSanApprover $SANApprover Gets the SANApprover element or NULL. + * + * @method PartnerAPITypeRenewCertificateRequest setCSR(string $value) Sets the CSR element. + * @method string getCSR() Gets the CSR element. + * @property string $CSR Gets the CSR element. + * + * @method PartnerAPITypeRenewCertificateRequest setCustomer(string $value) Sets the customer element. + * @method string getCustomer() Gets the customer element. + * @property string $customer Gets the customer element. + * + * @method PartnerAPITypeRenewCertificateRequest setProductCode(string $value) Sets the productCode element. + * @method string getProductCode() Gets the productCode element. + * @property string $productCode Gets the productCode element. + * + * @method PartnerAPITypeRenewCertificateRequest setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element or NULL. + * @property string $serialNumber Gets the serialNumber element or NULL. + * + * @method PartnerAPITypeRenewCertificateRequest setX509Cert(string $value) Sets the X509Cert element. + * @method string getX509Cert() Gets the X509Cert element or NULL. + * @property string $X509Cert Gets the X509Cert element or NULL. + * + * @method PartnerAPITypeRenewCertificateRequest setHashAlgorithm(string $value) Sets the hashAlgorithm element. + * @method string getHashAlgorithm() Gets the hashAlgorithm element or NULL. + * @property string $hashAlgorithm Gets the hashAlgorithm element or NULL. + * + * @method PartnerAPITypeRenewCertificateRequest setUserAgent(string $value) Sets the UserAgent element. + * @method string getUserAgent() Gets the UserAgent element or NULL. + * @property string $userAgent Gets the UserAgent element or NULL. + * + * @method PartnerAPITypeOrderRequest setRevocationContactEmail $value) Sets the revocationContactEmail element. + * @method string getRevocationContactEmail() Gets the revocationContactEmail element. + * @property string $revocationContactEmail Gets the revocationContactEmail element. + * + * @method PartnerAPITypeOrderRequest setShortenedValidityPeriod(string $value) Sets the shortenedValidityPeriod element. + * @method string getShortenedValidityPeriod() Gets the shortenedValidityPeriod element. + * @property string $shortenedValidityPeriod Gets the shortenedValidityPeriod element. + * + * @package types + */ +class PartnerAPITypeRenewCertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'SANApprover' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanApprover', 'nillable' => false), + 'CSR' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'customer' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'productCode' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'X509Cert' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'hashAlgorithm' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'userAgent' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'revocationContactEmail' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true), + 'shortenedValidityPeriod' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeRenewCertificateResponse.php b/src/Types/typeRenewCertificateResponse.php similarity index 70% rename from src/types/typeRenewCertificateResponse.php rename to src/Types/typeRenewCertificateResponse.php index fbe3b1c..2a9cafe 100644 --- a/src/types/typeRenewCertificateResponse.php +++ b/src/Types/typeRenewCertificateResponse.php @@ -1,52 +1,53 @@ - - - - - - - - - - -*/ - -/** - * This class represents the renewCertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeRenewCertificateResponse setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeRenewCertificateResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. - * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. - * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. - * - * @package types - */ -class PartnerAPITypeRenewCertificateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the renewCertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeRenewCertificateResponse setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeRenewCertificateResponse setSANVerification(PartnerAPITypeSanVerification $value) Sets the SANVerification element. + * @method PartnerAPITypeSanVerification getSANVerification() Gets the SANVerification element or NULL. + * @property PartnerAPITypeSanVerification $SANVerification Gets the SANVerification element or NULL. + * + * @package types + */ +class PartnerAPITypeRenewCertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'SANVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerification', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeRequest.php b/src/Types/typeRequest.php similarity index 75% rename from src/types/typeRequest.php rename to src/Types/typeRequest.php index e6bdde8..632ec62 100644 --- a/src/types/typeRequest.php +++ b/src/Types/typeRequest.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the request WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeRequest setRequestHeader(PartnerAPITypeRequestHeader $value) Sets the requestHeader element. - * @method PartnerAPITypeRequestHeader getRequestHeader() Gets the requestHeader element. - * @property PartnerAPITypeRequestHeader $requestHeader Gets the requestHeader element. - * - * @package types - */ -class PartnerAPITypeRequest extends PartnerAPIType { - - protected function initData() { - $n = array( - 'requestHeader' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestHeader(), 'type' => 'PartnerAPITypeRequestHeader', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the request WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeRequest setRequestHeader(PartnerAPITypeRequestHeader $value) Sets the requestHeader element. + * @method PartnerAPITypeRequestHeader getRequestHeader() Gets the requestHeader element. + * @property PartnerAPITypeRequestHeader $requestHeader Gets the requestHeader element. + * + * @package types + */ +class PartnerAPITypeRequest extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'requestHeader' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRequestHeader(), 'type' => 'PartnerAPITypeRequestHeader', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeRequestHeader.php b/src/Types/typeRequestHeader.php similarity index 75% rename from src/types/typeRequestHeader.php rename to src/Types/typeRequestHeader.php index 09e5da5..9a18b07 100644 --- a/src/types/typeRequestHeader.php +++ b/src/Types/typeRequestHeader.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the requestHeader WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeRequestHeader setAuthToken(PartnerAPITypeAuthToken $value) Sets the authToken element. - * @method PartnerAPITypeAuthToken getAuthToken() Gets the authToken element. - * @property PartnerAPITypeAuthToken $authToken Gets the authToken element. - * - * @package types - */ -class PartnerAPITypeRequestHeader extends PartnerAPIType { - - protected function initData() { - $n = array( - 'authToken' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeAuthToken(), 'type' => 'PartnerAPITypeAuthToken', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the requestHeader WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeRequestHeader setAuthToken(PartnerAPITypeAuthToken $value) Sets the authToken element. + * @method PartnerAPITypeAuthToken getAuthToken() Gets the authToken element. + * @property PartnerAPITypeAuthToken $authToken Gets the authToken element. + * + * @package types + */ +class PartnerAPITypeRequestHeader extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'authToken' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeAuthToken(), 'type' => 'PartnerAPITypeAuthToken', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeRequestorInfo.php b/src/Types/typeRequestorInfo.php similarity index 70% rename from src/types/typeRequestorInfo.php rename to src/Types/typeRequestorInfo.php index 9305525..ba4266c 100644 --- a/src/types/typeRequestorInfo.php +++ b/src/Types/typeRequestorInfo.php @@ -1,58 +1,59 @@ - - - - - - - - -*/ - -/** - * This class represents the requestorInfo WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeRequestorInfo setEmail(string $value) Sets the email element. - * @method string getEmail() Gets the email element. - * @property string $email Gets the email element. - * - * @method PartnerAPITypeRequestorInfo setFirstName(string $value) Sets the firstName element. - * @method string getFirstName() Gets the firstName element. - * @property string $firstName Gets the firstName element. - * - * @method PartnerAPITypeRequestorInfo setLastName(string $value) Sets the lastName element. - * @method string getLastName() Gets the lastName element. - * @property string $lastName Gets the lastName element. - * - * @method PartnerAPITypeRequestorInfo setPhone(string $value) Sets the phone element. - * @method string getPhone() Gets the phone element. - * @property string $phone Gets the phone element. - * - * @package types - */ -class PartnerAPITypeRequestorInfo extends PartnerAPIType { - - protected function initData() { - $n = array( - 'email' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'firstName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'lastName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'phone' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => TRUE) - ); - return $n; - } - - -} + + + + + + + + +*/ + +/** + * This class represents the requestorInfo WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeRequestorInfo setEmail(string $value) Sets the email element. + * @method string getEmail() Gets the email element. + * @property string $email Gets the email element. + * + * @method PartnerAPITypeRequestorInfo setFirstName(string $value) Sets the firstName element. + * @method string getFirstName() Gets the firstName element. + * @property string $firstName Gets the firstName element. + * + * @method PartnerAPITypeRequestorInfo setLastName(string $value) Sets the lastName element. + * @method string getLastName() Gets the lastName element. + * @property string $lastName Gets the lastName element. + * + * @method PartnerAPITypeRequestorInfo setPhone(string $value) Sets the phone element. + * @method string getPhone() Gets the phone element. + * @property string $phone Gets the phone element. + * + * @package types + */ +class PartnerAPITypeRequestorInfo extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'email' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'firstName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'lastName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'phone' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => true) + ); + return $n; + } +} diff --git a/src/types/typeResponse.php b/src/Types/typeResponse.php similarity index 75% rename from src/types/typeResponse.php rename to src/Types/typeResponse.php index 089359e..88929dc 100644 --- a/src/types/typeResponse.php +++ b/src/Types/typeResponse.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the response WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeResponse setResponseHeader(PartnerAPITypeResponseHeader $value) Sets the responseHeader element. - * @method PartnerAPITypeResponseHeader getResponseHeader() Gets the responseHeader element. - * @property PartnerAPITypeResponseHeader $responseHeader Gets the responseHeader element. - * - * @package types - */ -class PartnerAPITypeResponse extends PartnerAPIType { - - protected function initData() { - $n = array( - 'responseHeader' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeResponseHeader(), 'type' => 'PartnerAPITypeResponseHeader', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the response WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeResponse setResponseHeader(PartnerAPITypeResponseHeader $value) Sets the responseHeader element. + * @method PartnerAPITypeResponseHeader getResponseHeader() Gets the responseHeader element. + * @property PartnerAPITypeResponseHeader $responseHeader Gets the responseHeader element. + * + * @package types + */ +class PartnerAPITypeResponse extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'responseHeader' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeResponseHeader(), 'type' => 'PartnerAPITypeResponseHeader', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeResponseHeader.php b/src/Types/typeResponseHeader.php similarity index 70% rename from src/types/typeResponseHeader.php rename to src/Types/typeResponseHeader.php index bdb5e9f..4689a08 100644 --- a/src/types/typeResponseHeader.php +++ b/src/Types/typeResponseHeader.php @@ -1,70 +1,71 @@ - - - - - - - - - - -*/ - -/** - * This class represents the responseHeader WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeResponseHeader setCurrentPage(int $value) Sets the currentPage element. - * @method int getCurrentPage() Gets the currentPage element or NULL. - * @property int $currentPage Gets the currentPage element or NULL. - * - * @method PartnerAPITypeResponseHeader setErrors(PartnerAPITypeErrors $value) Sets the errors element. - * @method PartnerAPITypeErrors getErrors() Gets the errors element or NULL. - * @property PartnerAPITypeErrors $errors Gets the errors element or NULL. - * - * @method PartnerAPITypeResponseHeader setPagesCount(int $value) Sets the pagesCount element. - * @method int getPagesCount() Gets the pagesCount element or NULL. - * @property int $pagesCount Gets the pagesCount element or NULL. - * - * @method PartnerAPITypeResponseHeader setReturnCount(int $value) Sets the returnCount element. - * @method int getReturnCount() Gets the returnCount element or NULL. - * @property int $returnCount Gets the returnCount element or NULL. - * - * @method PartnerAPITypeResponseHeader setSuccessCode(int $value) Sets the successCode element. - * @method int getSuccessCode() Gets the successCode element. - * @property int $successCode Gets the successCode element. - * - * @method PartnerAPITypeResponseHeader setTimestamp(string $value) Sets the timestamp element. - * @method string getTimestamp() Gets the timestamp element. - * @property string $timestamp Gets the timestamp element. - * - * @package types - */ -class PartnerAPITypeResponseHeader extends PartnerAPIType { - - protected function initData() { - $n = array( - 'currentPage' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'errors' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeErrors', 'nillable' => FALSE), - 'pagesCount' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'returnCount' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'successCode' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'int', 'nillable' => FALSE), - 'timestamp' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + + + +*/ + +/** + * This class represents the responseHeader WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeResponseHeader setCurrentPage(int $value) Sets the currentPage element. + * @method int getCurrentPage() Gets the currentPage element or NULL. + * @property int $currentPage Gets the currentPage element or NULL. + * + * @method PartnerAPITypeResponseHeader setErrors(PartnerAPITypeErrors $value) Sets the errors element. + * @method PartnerAPITypeErrors getErrors() Gets the errors element or NULL. + * @property PartnerAPITypeErrors $errors Gets the errors element or NULL. + * + * @method PartnerAPITypeResponseHeader setPagesCount(int $value) Sets the pagesCount element. + * @method int getPagesCount() Gets the pagesCount element or NULL. + * @property int $pagesCount Gets the pagesCount element or NULL. + * + * @method PartnerAPITypeResponseHeader setReturnCount(int $value) Sets the returnCount element. + * @method int getReturnCount() Gets the returnCount element or NULL. + * @property int $returnCount Gets the returnCount element or NULL. + * + * @method PartnerAPITypeResponseHeader setSuccessCode(int $value) Sets the successCode element. + * @method int getSuccessCode() Gets the successCode element. + * @property int $successCode Gets the successCode element. + * + * @method PartnerAPITypeResponseHeader setTimestamp(string $value) Sets the timestamp element. + * @method string getTimestamp() Gets the timestamp element. + * @property string $timestamp Gets the timestamp element. + * + * @package types + */ +class PartnerAPITypeResponseHeader extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'currentPage' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'errors' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeErrors', 'nillable' => false), + 'pagesCount' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'returnCount' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'successCode' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'int', 'nillable' => false), + 'timestamp' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeRevocationReasonEnum.php b/src/Types/typeRevocationReasonEnum.php similarity index 61% rename from src/types/typeRevocationReasonEnum.php rename to src/Types/typeRevocationReasonEnum.php index 4158ca5..3e95d62 100644 --- a/src/types/typeRevocationReasonEnum.php +++ b/src/Types/typeRevocationReasonEnum.php @@ -1,41 +1,42 @@ - - - - - - - - - -*/ - -/** - * This class represents the revocationReasonEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeRevocationReasonEnum { - - const UNSPECIFIED = "UNSPECIFIED"; - const KEYCOMPROMISE = "KEYCOMPROMISE"; - const AFFILIATIONCHANGED = "AFFILIATIONCHANGED"; - const CESSATIONOFOPERATION = "CESSATIONOFOPERATION"; - const PRIVILEGEWITHDRAWN = "PRIVILEGEWITHDRAWN"; - - private function __construct() { - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the revocationReasonEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeRevocationReasonEnum +{ + const UNSPECIFIED = "UNSPECIFIED"; + const KEYCOMPROMISE = "KEYCOMPROMISE"; + const AFFILIATIONCHANGED = "AFFILIATIONCHANGED"; + const CESSATIONOFOPERATION = "CESSATIONOFOPERATION"; + const PRIVILEGEWITHDRAWN = "PRIVILEGEWITHDRAWN"; + + private function __construct() + { + } +} diff --git a/src/types/typeRevokeCertificateParameters.php b/src/Types/typeRevokeCertificateParameters.php similarity index 72% rename from src/types/typeRevokeCertificateParameters.php rename to src/Types/typeRevokeCertificateParameters.php index 6f8660d..ff0220d 100644 --- a/src/types/typeRevokeCertificateParameters.php +++ b/src/Types/typeRevokeCertificateParameters.php @@ -1,58 +1,59 @@ - - - - - - - - -*/ - -/** - * This class represents the revokeCertificateParameters WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeRevokeCertificateParameters setKeyCompromitationDate(string $value) Sets the keyCompromitationDate element. - * @method string getKeyCompromitationDate() Gets the keyCompromitationDate element or NULL. - * @property string $keyCompromitationDate Gets the keyCompromitationDate element or NULL. - * - * @method PartnerAPITypeRevokeCertificateParameters setNote(string $value) Sets the note element. - * @method string getNote() Gets the note element or NULL. - * @property string $note Gets the note element or NULL. - * - * @method PartnerAPITypeRevokeCertificateParameters setRevocationReason(string $value) Sets the revocationReason element. - * @method string getRevocationReason() Gets the revocationReason element or NULL. - * @property string $revocationReason Gets the revocationReason element or NULL. - * - * @method PartnerAPITypeRevokeCertificateParameters setSerialNumber(string $value) Sets the serialNumber element. - * @method string getSerialNumber() Gets the serialNumber element. - * @property string $serialNumber Gets the serialNumber element. - * - * @package types - */ -class PartnerAPITypeRevokeCertificateParameters extends PartnerAPIType { - - protected function initData() { - $n = array( - 'keyCompromitationDate' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'note' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'revocationReason' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + + +*/ + +/** + * This class represents the revokeCertificateParameters WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeRevokeCertificateParameters setKeyCompromitationDate(string $value) Sets the keyCompromitationDate element. + * @method string getKeyCompromitationDate() Gets the keyCompromitationDate element or NULL. + * @property string $keyCompromitationDate Gets the keyCompromitationDate element or NULL. + * + * @method PartnerAPITypeRevokeCertificateParameters setNote(string $value) Sets the note element. + * @method string getNote() Gets the note element or NULL. + * @property string $note Gets the note element or NULL. + * + * @method PartnerAPITypeRevokeCertificateParameters setRevocationReason(string $value) Sets the revocationReason element. + * @method string getRevocationReason() Gets the revocationReason element or NULL. + * @property string $revocationReason Gets the revocationReason element or NULL. + * + * @method PartnerAPITypeRevokeCertificateParameters setSerialNumber(string $value) Sets the serialNumber element. + * @method string getSerialNumber() Gets the serialNumber element. + * @property string $serialNumber Gets the serialNumber element. + * + * @package types + */ +class PartnerAPITypeRevokeCertificateParameters extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'keyCompromitationDate' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'note' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'revocationReason' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'serialNumber' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeRevokeCertificateRequest.php b/src/Types/typeRevokeCertificateRequest.php similarity index 77% rename from src/types/typeRevokeCertificateRequest.php rename to src/Types/typeRevokeCertificateRequest.php index 05deb4e..53e8787 100644 --- a/src/types/typeRevokeCertificateRequest.php +++ b/src/Types/typeRevokeCertificateRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the revokeCertificateRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeRevokeCertificateRequest setRevokeCertificateParameters(PartnerAPITypeRevokeCertificateParameters $value) Sets the revokeCertificateParameters element. - * @method PartnerAPITypeRevokeCertificateParameters getRevokeCertificateParameters() Gets the revokeCertificateParameters element. - * @property PartnerAPITypeRevokeCertificateParameters $revokeCertificateParameters Gets the revokeCertificateParameters element. - * - * @package types - */ -class PartnerAPITypeRevokeCertificateRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'revokeCertificateParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRevokeCertificateParameters(), 'type' => 'PartnerAPITypeRevokeCertificateParameters', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the revokeCertificateRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeRevokeCertificateRequest setRevokeCertificateParameters(PartnerAPITypeRevokeCertificateParameters $value) Sets the revokeCertificateParameters element. + * @method PartnerAPITypeRevokeCertificateParameters getRevokeCertificateParameters() Gets the revokeCertificateParameters element. + * @property PartnerAPITypeRevokeCertificateParameters $revokeCertificateParameters Gets the revokeCertificateParameters element. + * + * @package types + */ +class PartnerAPITypeRevokeCertificateRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'revokeCertificateParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeRevokeCertificateParameters(), 'type' => 'PartnerAPITypeRevokeCertificateParameters', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeRevokeCertificateResponse.php b/src/Types/typeRevokeCertificateResponse.php similarity index 72% rename from src/types/typeRevokeCertificateResponse.php rename to src/Types/typeRevokeCertificateResponse.php index 774a2d4..43368d6 100644 --- a/src/types/typeRevokeCertificateResponse.php +++ b/src/Types/typeRevokeCertificateResponse.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the revokeCertificateResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @package types - */ -class PartnerAPITypeRevokeCertificateResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the revokeCertificateResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @package types + */ +class PartnerAPITypeRevokeCertificateResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeSanApprover.php b/src/Types/typeSanApprover.php similarity index 84% rename from src/types/typeSanApprover.php rename to src/Types/typeSanApprover.php index 5b0b7a8..4c6cd5f 100644 --- a/src/types/typeSanApprover.php +++ b/src/Types/typeSanApprover.php @@ -1,8 +1,10 @@ array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'approverEmail' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'approverMethod' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'verificationNotificationEnabled' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'boolean', 'nillable' => FALSE) + 'approverEmailPrefix' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'approverEmail' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'approverMethod' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'verificationNotificationEnabled' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'boolean', 'nillable' => false) ); return $n; } - - } diff --git a/src/types/typeSanEntries.php b/src/Types/typeSanEntries.php similarity index 78% rename from src/types/typeSanEntries.php rename to src/Types/typeSanEntries.php index 1b252f7..8594c71 100644 --- a/src/types/typeSanEntries.php +++ b/src/Types/typeSanEntries.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the sanEntries WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanEntries setSANEntry(PartnerAPITypeSanEntry $value) Sets the SANEntry element. This method removes all previously added SANEntry elements and creates a new set of SANEntry elements. - * @method PartnerAPITypeSanEntries addSANEntry(PartnerAPITypeSanEntry $value) Adds a new SANEntry element to the existing set. - * @method PartnerAPITypeSanEntry|PartnerAPITypeSanEntry[] getSANEntry() Gets the SANEntry element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanEntry objects will be returned. - * @property PartnerAPITypeSanEntry|PartnerAPITypeSanEntry[] $SANEntry Gets the SANEntry element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanEntry objects will be returned. - * - * @package types - */ -class PartnerAPITypeSanEntries extends PartnerAPIType { - - protected function initData() { - $n = array( - 'SANEntry' => array('min' => 1, 'max' => NULL, 'value' => new PartnerAPITypeSanEntry(), 'type' => 'PartnerAPITypeSanEntry', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the sanEntries WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanEntries setSANEntry(PartnerAPITypeSanEntry $value) Sets the SANEntry element. This method removes all previously added SANEntry elements and creates a new set of SANEntry elements. + * @method PartnerAPITypeSanEntries addSANEntry(PartnerAPITypeSanEntry $value) Adds a new SANEntry element to the existing set. + * @method PartnerAPITypeSanEntry|PartnerAPITypeSanEntry[] getSANEntry() Gets the SANEntry element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanEntry objects will be returned. + * @property PartnerAPITypeSanEntry|PartnerAPITypeSanEntry[] $SANEntry Gets the SANEntry element. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanEntry objects will be returned. + * + * @package types + */ +class PartnerAPITypeSanEntries extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'SANEntry' => array('min' => 1, 'max' => null, 'value' => new PartnerAPITypeSanEntry(), 'type' => 'PartnerAPITypeSanEntry', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeSanEntry.php b/src/Types/typeSanEntry.php similarity index 71% rename from src/types/typeSanEntry.php rename to src/Types/typeSanEntry.php index 3f6258d..afbc0cc 100644 --- a/src/types/typeSanEntry.php +++ b/src/Types/typeSanEntry.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the sanEntry WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanEntry setDNSName(string $value) Sets the DNSName element. - * @method string getDNSName() Gets the DNSName element. - * @property string $DNSName Gets the DNSName element. - * - * @package types - */ -class PartnerAPITypeSanEntry extends PartnerAPIType { - - protected function initData() { - $n = array( - 'DNSName' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the sanEntry WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanEntry setDNSName(string $value) Sets the DNSName element. + * @method string getDNSName() Gets the DNSName element. + * @property string $DNSName Gets the DNSName element. + * + * @package types + */ +class PartnerAPITypeSanEntry extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'DNSName' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeSanVerification.php b/src/Types/typeSanVerification.php similarity index 91% rename from src/types/typeSanVerification.php rename to src/Types/typeSanVerification.php index 6c17ff8..b0daa63 100644 --- a/src/types/typeSanVerification.php +++ b/src/Types/typeSanVerification.php @@ -4,7 +4,7 @@ /** * Partner API Library - * + * * @copyright Copyright (c) 2020 Asseco Data Systems SA * @license license.txt */ @@ -45,14 +45,13 @@ */ class PartnerAPITypeSanVerification extends PartnerAPIType { - protected function initData() { $n = array( - 'approverMethod' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'code' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'approverEmail' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'FQDNs' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeFQDNs(), 'type' => 'PartnerAPITypeFQDNs', 'nillable' => FALSE) + 'approverMethod' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'code' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'approverEmail' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'FQDNs' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeFQDNs(), 'type' => 'PartnerAPITypeFQDNs', 'nillable' => false) ); return $n; } diff --git a/src/types/typeSanVerificationManualState.php b/src/Types/typeSanVerificationManualState.php similarity index 86% rename from src/types/typeSanVerificationManualState.php rename to src/Types/typeSanVerificationManualState.php index b05093d..2219261 100644 --- a/src/types/typeSanVerificationManualState.php +++ b/src/Types/typeSanVerificationManualState.php @@ -1,52 +1,53 @@ - - - - - - - -*/ - -/** - * This class represents the sanVerificationManualState WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanVerificationManualState setState(string $value) Sets the state element. - * @method string getState() Gets the state element. - * @property string $state Gets the state element. - * - * @method PartnerAPITypeSanVerificationManualState setExpireDate(string $value) Sets the expireDate element. - * @method string getExpireDate() Gets the expireDate element. - * @property string $expireDate Gets the expireDate element. - * - * @method PartnerAPITypeSanVerificationManualState setInfo(string $value) Sets the info element. - * @method string getInfo() Gets the info element. - * @property string $info Gets the info element. - * - * @package types - */ -class PartnerAPITypeSanVerificationManualState extends PartnerAPIType { - - protected function initData() { - $n = array( - 'state' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'expireDate' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'info' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the sanVerificationManualState WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanVerificationManualState setState(string $value) Sets the state element. + * @method string getState() Gets the state element. + * @property string $state Gets the state element. + * + * @method PartnerAPITypeSanVerificationManualState setExpireDate(string $value) Sets the expireDate element. + * @method string getExpireDate() Gets the expireDate element. + * @property string $expireDate Gets the expireDate element. + * + * @method PartnerAPITypeSanVerificationManualState setInfo(string $value) Sets the info element. + * @method string getInfo() Gets the info element. + * @property string $info Gets the info element. + * + * @package types + */ +class PartnerAPITypeSanVerificationManualState extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'state' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'expireDate' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'info' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeSanVerificationState.php b/src/Types/typeSanVerificationState.php similarity index 86% rename from src/types/typeSanVerificationState.php rename to src/Types/typeSanVerificationState.php index 1e0393b..180e6db 100644 --- a/src/types/typeSanVerificationState.php +++ b/src/Types/typeSanVerificationState.php @@ -1,53 +1,54 @@ - - - - - - - -*/ - -/** - * This class represents the sanVerificationState WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanVerificationState setFQDN(string $value) Sets the FQDN element. - * @method string getFQDN() Gets the FQDN element. - * @property string $FQDN Gets the FQDN element. - * - * @method PartnerAPITypeSanVerificationState setManualVerification(PartnerAPITypeSanVerificationManualState $value) Sets the manualVerification element. - * @method PartnerAPITypeSanVerificationManualState getManualVerification() Gets the manualVerification element. - * @property PartnerAPITypeSanVerificationManualState $manualVerification Gets the manualVerification element. - * - * @method PartnerAPITypeSanVerificationState setSystemVerification(PartnerAPITypeSanVerificationSystemState $value) Sets the systemVerification element. This method removes all previously added systemVerification elements and creates a new set of systemVerification elements. - * @method PartnerAPITypeSanVerificationSystemState addSystemVerification(PartnerAPITypeSanVerificationSystemState $value) Adds a new systemVerification element to the existing set. - * @method PartnerAPITypeSanVerificationSystemState|PartnerAPITypeSanVerificationSystemState[] getSystemVerification() Gets the systemVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationSystemState objects will be returned. - * @property PartnerAPITypeSanVerificationSystemState|PartnerAPITypeSanVerificationSystemState[] $systemVerification Gets the systemVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationSystemState objects will be returned. - * - * @package types - */ -class PartnerAPITypeSanVerificationState extends PartnerAPIType { - - protected function initData() { - $n = array( - 'FQDN' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'manualVerification' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerificationManualState', 'nillable' => FALSE), - 'systemVerification' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerificationSystemState', 'nillable' => TRUE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the sanVerificationState WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanVerificationState setFQDN(string $value) Sets the FQDN element. + * @method string getFQDN() Gets the FQDN element. + * @property string $FQDN Gets the FQDN element. + * + * @method PartnerAPITypeSanVerificationState setManualVerification(PartnerAPITypeSanVerificationManualState $value) Sets the manualVerification element. + * @method PartnerAPITypeSanVerificationManualState getManualVerification() Gets the manualVerification element. + * @property PartnerAPITypeSanVerificationManualState $manualVerification Gets the manualVerification element. + * + * @method PartnerAPITypeSanVerificationState setSystemVerification(PartnerAPITypeSanVerificationSystemState $value) Sets the systemVerification element. This method removes all previously added systemVerification elements and creates a new set of systemVerification elements. + * @method PartnerAPITypeSanVerificationSystemState addSystemVerification(PartnerAPITypeSanVerificationSystemState $value) Adds a new systemVerification element to the existing set. + * @method PartnerAPITypeSanVerificationSystemState|PartnerAPITypeSanVerificationSystemState[] getSystemVerification() Gets the systemVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationSystemState objects will be returned. + * @property PartnerAPITypeSanVerificationSystemState|PartnerAPITypeSanVerificationSystemState[] $systemVerification Gets the systemVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationSystemState objects will be returned. + * + * @package types + */ +class PartnerAPITypeSanVerificationState extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'FQDN' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'manualVerification' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerificationManualState', 'nillable' => false), + 'systemVerification' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeSanVerificationSystemState', 'nillable' => true) + ); + return $n; + } +} diff --git a/src/types/typeSanVerificationStateEnum.php b/src/Types/typeSanVerificationStateEnum.php similarity index 85% rename from src/types/typeSanVerificationStateEnum.php rename to src/Types/typeSanVerificationStateEnum.php index a6a51c0..3be5d3c 100644 --- a/src/types/typeSanVerificationStateEnum.php +++ b/src/Types/typeSanVerificationStateEnum.php @@ -1,37 +1,38 @@ - - - - - - - -*/ - -/** - * This class represents the sanVerificationStateEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeSanVerificationStateEnum { - - const REQUIRED = "REQUIRED"; - const FAILED = "FAILED"; - const VERIFIED = "VERIFIED"; - - private function __construct() { - } - - -} + + + + + + + +*/ + +/** + * This class represents the sanVerificationStateEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeSanVerificationStateEnum +{ + const REQUIRED = "REQUIRED"; + const FAILED = "FAILED"; + const VERIFIED = "VERIFIED"; + + private function __construct() + { + } +} diff --git a/src/types/typeSanVerificationStates.php b/src/Types/typeSanVerificationStates.php similarity index 87% rename from src/types/typeSanVerificationStates.php rename to src/Types/typeSanVerificationStates.php index 0e6dd6e..de95f3a 100644 --- a/src/types/typeSanVerificationStates.php +++ b/src/Types/typeSanVerificationStates.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the sanVerificationStates WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanVerificationStates setSanVerification(PartnerAPITypeSanVerificationState $value) Sets the sanVerification element. This method removes all previously added sanVerification elements and creates a new set of sanVerification elements. - * @method PartnerAPITypeSanVerificationStates addSanVerification(PartnerAPITypeSanVerificationState $value) Adds a new sanVerification element to the existing set. - * @method PartnerAPITypeSanVerificationState|PartnerAPITypeSanVerificationState[] getSanVerification() Gets the sanVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationState objects will be returned. - * @property PartnerAPITypeSanVerificationState|PartnerAPITypeSanVerificationState[] $sanVerification Gets the sanVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationState objects will be returned. - * - * @package types - */ -class PartnerAPITypeSanVerificationStates extends PartnerAPIType { - - protected function initData() { - $n = array( - 'sanVerification' => array('min' => 0, 'max' => NULL, 'value' => NULL, 'type' => 'PartnerAPITypeSanVerificationState', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the sanVerificationStates WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanVerificationStates setSanVerification(PartnerAPITypeSanVerificationState $value) Sets the sanVerification element. This method removes all previously added sanVerification elements and creates a new set of sanVerification elements. + * @method PartnerAPITypeSanVerificationStates addSanVerification(PartnerAPITypeSanVerificationState $value) Adds a new sanVerification element to the existing set. + * @method PartnerAPITypeSanVerificationState|PartnerAPITypeSanVerificationState[] getSanVerification() Gets the sanVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationState objects will be returned. + * @property PartnerAPITypeSanVerificationState|PartnerAPITypeSanVerificationState[] $sanVerification Gets the sanVerification element or NULL. If there is only one element, it will be returned, otherwise an array of PartnerAPITypeSanVerificationState objects will be returned. + * + * @package types + */ +class PartnerAPITypeSanVerificationStates extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'sanVerification' => array('min' => 0, 'max' => null, 'value' => null, 'type' => 'PartnerAPITypeSanVerificationState', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeSanVerificationSystemMethodEnum.php b/src/Types/typeSanVerificationSystemMethodEnum.php similarity index 87% rename from src/types/typeSanVerificationSystemMethodEnum.php rename to src/Types/typeSanVerificationSystemMethodEnum.php index cb5134d..24af7e7 100644 --- a/src/types/typeSanVerificationSystemMethodEnum.php +++ b/src/Types/typeSanVerificationSystemMethodEnum.php @@ -1,41 +1,42 @@ - - - - - - - - - -*/ - -/** - * This class represents the sanVerificationSystemMethodEnum WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeSanVerificationSystemMethodEnum { - - const TOP_SITES = "TOP_SITES"; - const PHISHTANK = "PHISHTANK"; - const CAA = "CAA"; - const GOOGLE_SAFE_BROWSING = "GOOGLE_SAFE_BROWSING"; - const REVOKED_CERTIFICATE = "REVOKED_CERTIFICATE"; - - private function __construct() { - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the sanVerificationSystemMethodEnum WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeSanVerificationSystemMethodEnum +{ + const TOP_SITES = "TOP_SITES"; + const PHISHTANK = "PHISHTANK"; + const CAA = "CAA"; + const GOOGLE_SAFE_BROWSING = "GOOGLE_SAFE_BROWSING"; + const REVOKED_CERTIFICATE = "REVOKED_CERTIFICATE"; + + private function __construct() + { + } +} diff --git a/src/types/typeSanVerificationSystemState.php b/src/Types/typeSanVerificationSystemState.php similarity index 80% rename from src/types/typeSanVerificationSystemState.php rename to src/Types/typeSanVerificationSystemState.php index 300b47a..fb7a76a 100644 --- a/src/types/typeSanVerificationSystemState.php +++ b/src/Types/typeSanVerificationSystemState.php @@ -1,40 +1,41 @@ - - - - - -*/ - -/** - * This class represents the sanVerificationSystemState WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSanVerificationSystemState setMethod(string $value) Sets the method list. - * @method string getName() Gets the method list. - * @property string $name Gets the method list. - * - * @package types - */ -class PartnerAPITypeSanVerificationSystemState extends PartnerAPIType { - - protected function initData() { - $n = array( - 'method' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the sanVerificationSystemState WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSanVerificationSystemState setMethod(string $value) Sets the method list. + * @method string getName() Gets the method list. + * @property string $name Gets the method list. + * + * @package types + */ +class PartnerAPITypeSanVerificationSystemState extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'method' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false), + ); + return $n; + } +} diff --git a/src/types/typeSerialNumbers.php b/src/Types/typeSerialNumbers.php similarity index 75% rename from src/types/typeSerialNumbers.php rename to src/Types/typeSerialNumbers.php index 7e44cda..1ca45ee 100644 --- a/src/types/typeSerialNumbers.php +++ b/src/Types/typeSerialNumbers.php @@ -1,41 +1,42 @@ - - - - - -*/ - -/** - * This class represents the serialNumbers WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. - * @method PartnerAPITypeSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. - * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. - * - * @package types - */ -class PartnerAPITypeSerialNumbers extends PartnerAPIType { - - protected function initData() { - $n = array( - 'serialNumber' => array('min' => 1, 'max' => NULL, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + +*/ + +/** + * This class represents the serialNumbers WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeSerialNumbers setSerialNumber(string $value) Sets the serialNumber element. This method removes all previously added serialNumber elements and creates a new set of serialNumber elements. + * @method PartnerAPITypeSerialNumbers addSerialNumber(string $value) Adds a new serialNumber element to the existing set. + * @method string|string[] getSerialNumber() Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * @property string|string[] $serialNumber Gets the serialNumber element. If there is only one element, it will be returned, otherwise an array of string values will be returned. + * + * @package types + */ +class PartnerAPITypeSerialNumbers extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'serialNumber' => array('min' => 1, 'max' => null, 'value' => null, 'type' => 'string', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeValidateOrderParametersRequest.php b/src/Types/typeValidateOrderParametersRequest.php similarity index 71% rename from src/types/typeValidateOrderParametersRequest.php rename to src/Types/typeValidateOrderParametersRequest.php index c88fc1a..e8c5167 100644 --- a/src/types/typeValidateOrderParametersRequest.php +++ b/src/Types/typeValidateOrderParametersRequest.php @@ -1,39 +1,40 @@ - - - - - - - -*/ - -/** - * This class represents the validateOrderParametersRequest WSDL type. - * - * It is an extension to the PartnerAPITypeOrderRequest class. - * - * @package types - */ -class PartnerAPITypeValidateOrderParametersRequest extends PartnerAPITypeOrderRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the validateOrderParametersRequest WSDL type. + * + * It is an extension to the PartnerAPITypeOrderRequest class. + * + * @package types + */ +class PartnerAPITypeValidateOrderParametersRequest extends PartnerAPITypeOrderRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeValidateOrderParametersResponse.php b/src/Types/typeValidateOrderParametersResponse.php similarity index 70% rename from src/types/typeValidateOrderParametersResponse.php rename to src/Types/typeValidateOrderParametersResponse.php index 4d5ead7..0772507 100644 --- a/src/types/typeValidateOrderParametersResponse.php +++ b/src/Types/typeValidateOrderParametersResponse.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the validateOrderParametersResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @method PartnerAPITypeValidateOrderParametersResponse setParsedCSR(PartnerAPITypeParsedCsr $value) Sets the ParsedCSR element. - * @method PartnerAPITypeParsedCsr getParsedCSR() Gets the ParsedCSR element or NULL. - * @property PartnerAPITypeParsedCsr $ParsedCSR Gets the ParsedCSR element or NULL. - * - * @package types - */ -class PartnerAPITypeValidateOrderParametersResponse extends PartnerAPITypeResponse { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'ParsedCSR' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeParsedCsr', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the validateOrderParametersResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @method PartnerAPITypeValidateOrderParametersResponse setParsedCSR(PartnerAPITypeParsedCsr $value) Sets the ParsedCSR element. + * @method PartnerAPITypeParsedCsr getParsedCSR() Gets the ParsedCSR element or NULL. + * @property PartnerAPITypeParsedCsr $ParsedCSR Gets the ParsedCSR element or NULL. + * + * @package types + */ +class PartnerAPITypeValidateOrderParametersResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'ParsedCSR' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeParsedCsr', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeVerificationMethodType.php b/src/Types/typeVerificationMethodType.php similarity index 96% rename from src/types/typeVerificationMethodType.php rename to src/Types/typeVerificationMethodType.php index 2d92461..a366d00 100644 --- a/src/types/typeVerificationMethodType.php +++ b/src/Types/typeVerificationMethodType.php @@ -1,47 +1,46 @@ - - - - - - - - - - - -*/ - -/** - * This class represents the verificationMethodType WSDL type. - * - * This is a set of constant values representing enumeration type from WSDL file. - * - * @package types - */ -class PartnerAPITypeVerificationMethodType -{ - - const DNS = "DNS"; - const DNS_TXT = "DNS_TXT"; - const DNS_TXT_PREFIX = "DNS_TXT_PREFIX"; - const DNS_CNAME = "DNS_CNAME"; - const DNS_CNAME_PREFIX = "DNS_CNAME_PREFIX"; - const FILE = "FILE"; - const ADMIN = "ADMIN"; - - private function __construct() - { - } -} + + + + + + + + + + + +*/ + +/** + * This class represents the verificationMethodType WSDL type. + * + * This is a set of constant values representing enumeration type from WSDL file. + * + * @package types + */ +class PartnerAPITypeVerificationMethodType +{ + const DNS = "DNS"; + const DNS_TXT = "DNS_TXT"; + const DNS_TXT_PREFIX = "DNS_TXT_PREFIX"; + const DNS_CNAME = "DNS_CNAME"; + const DNS_CNAME_PREFIX = "DNS_CNAME_PREFIX"; + const FILE = "FILE"; + const ADMIN = "ADMIN"; + + private function __construct() + { + } +} diff --git a/src/types/typeVerifyOrderParameters.php b/src/Types/typeVerifyOrderParameters.php similarity index 74% rename from src/types/typeVerifyOrderParameters.php rename to src/Types/typeVerifyOrderParameters.php index db5a33a..1bb2e68 100644 --- a/src/types/typeVerifyOrderParameters.php +++ b/src/Types/typeVerifyOrderParameters.php @@ -1,52 +1,53 @@ - - - - - - - -*/ - -/** - * This class represents the verifyOrderParameters WSDL type. - * - * It is based on the PartnerAPIType class and derives properties and methods from that class. - * - * @method PartnerAPITypeVerifyOrderParameters setNote(string $value) Sets the note element. - * @method string getNote() Gets the note element. - * @property string $note Gets the note element. - * - * @method PartnerAPITypeVerifyOrderParameters setOrderID(string $value) Sets the orderID element. - * @method string getOrderID() Gets the orderID element. - * @property string $orderID Gets the orderID element. - * - * @method PartnerAPITypeVerifyOrderParameters setDocuments(PartnerAPITypeDocuments $value) Sets the documents element. - * @method PartnerAPITypeDocuments getDocuments() Gets the documents element or NULL. - * @property PartnerAPITypeDocuments $documents Gets the documents element or NULL. - * - * @package types - */ -class PartnerAPITypeVerifyOrderParameters extends PartnerAPIType { - - protected function initData() { - $n = array( - 'note' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'orderID' => array('min' => 1, 'max' => 1, 'value' => NULL, 'type' => 'string', 'nillable' => FALSE), - 'documents' => array('min' => 0, 'max' => 1, 'value' => NULL, 'type' => 'PartnerAPITypeDocuments', 'nillable' => FALSE) - ); - return $n; - } - - -} + + + + + + + +*/ + +/** + * This class represents the verifyOrderParameters WSDL type. + * + * It is based on the PartnerAPIType class and derives properties and methods from that class. + * + * @method PartnerAPITypeVerifyOrderParameters setNote(string $value) Sets the note element. + * @method string getNote() Gets the note element. + * @property string $note Gets the note element. + * + * @method PartnerAPITypeVerifyOrderParameters setOrderID(string $value) Sets the orderID element. + * @method string getOrderID() Gets the orderID element. + * @property string $orderID Gets the orderID element. + * + * @method PartnerAPITypeVerifyOrderParameters setDocuments(PartnerAPITypeDocuments $value) Sets the documents element. + * @method PartnerAPITypeDocuments getDocuments() Gets the documents element or NULL. + * @property PartnerAPITypeDocuments $documents Gets the documents element or NULL. + * + * @package types + */ +class PartnerAPITypeVerifyOrderParameters extends PartnerAPIType +{ + protected function initData() + { + $n = array( + 'note' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'orderID' => array('min' => 1, 'max' => 1, 'value' => null, 'type' => 'string', 'nillable' => false), + 'documents' => array('min' => 0, 'max' => 1, 'value' => null, 'type' => 'PartnerAPITypeDocuments', 'nillable' => false) + ); + return $n; + } +} diff --git a/src/types/typeVerifyOrderRequest.php b/src/Types/typeVerifyOrderRequest.php similarity index 73% rename from src/types/typeVerifyOrderRequest.php rename to src/Types/typeVerifyOrderRequest.php index 023e6ad..cc13e64 100644 --- a/src/types/typeVerifyOrderRequest.php +++ b/src/Types/typeVerifyOrderRequest.php @@ -1,46 +1,47 @@ - - - - - - - - - -*/ - -/** - * This class represents the verifyOrderRequest WSDL type. - * - * It is an extension to the PartnerAPITypeRequest class. - * - * @method PartnerAPITypeVerifyOrderRequest setVerifyOrderParameters(PartnerAPITypeVerifyOrderParameters $value) Sets the verifyOrderParameters element. - * @method PartnerAPITypeVerifyOrderParameters getVerifyOrderParameters() Gets the verifyOrderParameters element. - * @property PartnerAPITypeVerifyOrderParameters $verifyOrderParameters Gets the verifyOrderParameters element. - * - * @package types - */ -class PartnerAPITypeVerifyOrderRequest extends PartnerAPITypeRequest { - - protected function initData() { - $p = parent::initData(); - $n = array( - 'verifyOrderParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeVerifyOrderParameters(), 'type' => 'PartnerAPITypeVerifyOrderParameters', 'nillable' => FALSE) - ); - $n = array_merge($p, $n); - return $n; - } - - -} + + + + + + + + + +*/ + +/** + * This class represents the verifyOrderRequest WSDL type. + * + * It is an extension to the PartnerAPITypeRequest class. + * + * @method PartnerAPITypeVerifyOrderRequest setVerifyOrderParameters(PartnerAPITypeVerifyOrderParameters $value) Sets the verifyOrderParameters element. + * @method PartnerAPITypeVerifyOrderParameters getVerifyOrderParameters() Gets the verifyOrderParameters element. + * @property PartnerAPITypeVerifyOrderParameters $verifyOrderParameters Gets the verifyOrderParameters element. + * + * @package types + */ +class PartnerAPITypeVerifyOrderRequest extends PartnerAPITypeRequest +{ + protected function initData() + { + $p = parent::initData(); + $n = array( + 'verifyOrderParameters' => array('min' => 1, 'max' => 1, 'value' => new PartnerAPITypeVerifyOrderParameters(), 'type' => 'PartnerAPITypeVerifyOrderParameters', 'nillable' => false) + ); + $n = array_merge($p, $n); + return $n; + } +} diff --git a/src/types/typeVerifyOrderResponse.php b/src/Types/typeVerifyOrderResponse.php similarity index 69% rename from src/types/typeVerifyOrderResponse.php rename to src/Types/typeVerifyOrderResponse.php index 2e12dd5..8c1eccd 100644 --- a/src/types/typeVerifyOrderResponse.php +++ b/src/Types/typeVerifyOrderResponse.php @@ -1,35 +1,36 @@ - - - - - - - -*/ - -/** - * This class represents the verifyOrderResponse WSDL type. - * - * It is an extension to the PartnerAPITypeResponse class. - * - * @package types - */ -class PartnerAPITypeVerifyOrderResponse extends PartnerAPITypeResponse { - - protected function initData() { - return parent::initData(); - } - - -} + + + + + + + +*/ + +/** + * This class represents the verifyOrderResponse WSDL type. + * + * It is an extension to the PartnerAPITypeResponse class. + * + * @package types + */ +class PartnerAPITypeVerifyOrderResponse extends PartnerAPITypeResponse +{ + protected function initData() + { + return parent::initData(); + } +}