From dd380c6ccc86628cbdbeca36d5d4d58041bbb3a5 Mon Sep 17 00:00:00 2001 From: Christian Pleintinger Date: Wed, 6 Nov 2024 08:48:37 +0100 Subject: [PATCH] DEV-10537 Signed-off-by: Christian Pleintinger --- src/Model/AccountManager.php | 12 +- src/Model/Article.php | 12 +- src/Model/AuEligibilityIdTypeConstants.php | 10 + src/Model/AuEligibilityTypeConstants.php | 34 + src/Model/AuRegistrantIdTypeConstants.php | 6 + src/Model/AuthSession.php | 12 +- src/Model/AutoDeleteDomain.php | 12 +- src/Model/BackupMx.php | 12 +- src/Model/BasicCustomer.php | 12 +- src/Model/BasicCustomerContact.php | 100 +-- src/Model/BasicCustomerSpoolVerification.php | 6 +- src/Model/BasicDocument.php | 12 +- src/Model/BillingEvent.php | 797 +++++++++++++++++ src/Model/BillingLimit.php | 6 +- src/Model/BillingObjectLimit.php | 10 +- src/Model/BillingObjectTerm.php | 12 +- src/Model/BulkBillingEventDeleteRequest.php | 434 +++++++++ src/Model/BulkBillingEventDropRequest.php | 434 +++++++++ .../BulkBillingEventReactivateRequest.php | 434 +++++++++ src/Model/BulkBillingEventRejectRequest.php | 434 +++++++++ src/Model/Card.php | 6 +- src/Model/Certificate.php | 12 +- src/Model/CertificateData.php | 34 +- src/Model/Comment.php | 6 +- src/Model/Contact.php | 12 +- src/Model/ContactEsExtensions.php | 404 +++++++++ src/Model/ContactExtensions.php | 40 +- src/Model/ContactType.php | 2 + src/Model/ContactVerification.php | 30 +- src/Model/ContactVerificationDomain.php | 8 +- src/Model/ContactVerificationMessage.php | 6 +- src/Model/CustomerContract.php | 40 +- src/Model/DNSSec.php | 4 +- src/Model/Domain.php | 42 +- src/Model/DomainActionConstants.php | 2 + src/Model/DomainCancelation.php | 12 +- src/Model/DomainEnvelope.php | 40 +- src/Model/DomainEnvelopeSearchRequest.php | 90 ++ src/Model/DomainExtensions.php | 40 +- src/Model/DomainMonitoring.php | 28 +- src/Model/DomainMonitoringSetup.php | 40 +- src/Model/DomainPremium.php | 62 +- src/Model/DomainPrereg.php | 12 +- src/Model/DomainPreregAddon.php | 26 +- src/Model/DomainRestore.php | 42 +- src/Model/DomainSafeAccount.php | 12 +- src/Model/DomainSafeObject.php | 12 +- src/Model/DomainSellExtensions.php | 524 +++++++++++ src/Model/DomainServices.php | 8 +- src/Model/DomainStudioDomainSource.php | 4 + src/Model/DomainStudioDomainStatus.php | 2 + src/Model/DomainStudioSourceDomainsBot.php | 824 ++++++++++++++++++ src/Model/DomainStudioSourcePlacementPlus.php | 824 ++++++++++++++++++ src/Model/DomainStudioSources.php | 60 ++ src/Model/ExchangedPrice.php | 12 +- src/Model/ExternalAccounting.php | 12 +- src/Model/ExternalCustomer.php | 12 +- src/Model/GenericCustomer.php | 6 +- src/Model/Invoice.php | 12 +- src/Model/Job.php | 22 +- src/Model/JsonResponseData.php | 8 +- src/Model/JsonResponseDataAccount.php | 8 +- src/Model/JsonResponseDataAuthSession.php | 8 +- .../JsonResponseDataAutoDeleteDomain.php | 8 +- src/Model/JsonResponseDataBackupMx.php | 8 +- src/Model/JsonResponseDataBillingEvent.php | 554 ++++++++++++ src/Model/JsonResponseDataBillingLimit.php | 8 +- .../JsonResponseDataBillingObjectTerms.php | 8 +- src/Model/JsonResponseDataCertificate.php | 8 +- src/Model/JsonResponseDataCertificateData.php | 8 +- ...ponseDataCertificateInstallCheckResult.php | 8 +- src/Model/JsonResponseDataContact.php | 8 +- src/Model/JsonResponseDataContactDocument.php | 8 +- .../JsonResponseDataContactVerification.php | 8 +- src/Model/JsonResponseDataContextHost.php | 8 +- .../JsonResponseDataCustomerPriceList.php | 8 +- src/Model/JsonResponseDataDomain.php | 8 +- .../JsonResponseDataDomainCancelation.php | 8 +- src/Model/JsonResponseDataDomainEnvelope.php | 8 +- src/Model/JsonResponseDataDomainPremium.php | 8 +- src/Model/JsonResponseDataDomainPrereg.php | 8 +- src/Model/JsonResponseDataDomainRestore.php | 8 +- .../JsonResponseDataDomainSafeAccount.php | 8 +- .../JsonResponseDataDomainSafeObject.php | 8 +- src/Model/JsonResponseDataDomainSafeUser.php | 8 +- .../JsonResponseDataExternalCustomer.php | 8 +- src/Model/JsonResponseDataInvoice.php | 8 +- src/Model/JsonResponseDataJob.php | 8 +- src/Model/JsonResponseDataJsonNoData.php | 8 +- ...sponseDataListJsonResponseDataBackupMx.php | 8 +- ...seDataListJsonResponseDataBillingEvent.php | 554 ++++++++++++ ...nseDataListJsonResponseDataCertificate.php | 8 +- ...esponseDataListJsonResponseDataContact.php | 8 +- ...aListJsonResponseDataCustomerPriceList.php | 8 +- ...ResponseDataListJsonResponseDataDomain.php | 8 +- ...aListJsonResponseDataDomainCancelation.php | 8 +- ...seDataListJsonResponseDataDomainPrereg.php | 8 +- ...taListJsonResponseDataExternalCustomer.php | 8 +- ...ponseDataListJsonResponseDataMailProxy.php | 8 +- ...stJsonResponseDataObjectUserAssignment.php | 8 +- ...nResponseDataListJsonResponseDataPrice.php | 8 +- ...sponseDataListJsonResponseDataRedirect.php | 8 +- ...onseDataListJsonResponseDataSslContact.php | 8 +- ...onResponseDataListJsonResponseDataZone.php | 8 +- src/Model/JsonResponseDataMailProxy.php | 8 +- .../JsonResponseDataMailServiceMessage.php | 8 +- src/Model/JsonResponseDataOTPAuth.php | 8 +- src/Model/JsonResponseDataObjectJob.php | 8 +- .../JsonResponseDataObjectUserAssignment.php | 8 +- src/Model/JsonResponseDataPeriodicBilling.php | 8 +- src/Model/JsonResponseDataPollMessage.php | 8 +- src/Model/JsonResponseDataPrice.php | 8 +- src/Model/JsonResponseDataRedirect.php | 8 +- .../JsonResponseDataServiceUsersProfile.php | 8 +- .../JsonResponseDataSiteSealInformation.php | 8 +- src/Model/JsonResponseDataSslContact.php | 8 +- src/Model/JsonResponseDataString.php | 8 +- src/Model/JsonResponseDataSubjectProduct.php | 8 +- src/Model/JsonResponseDataTaskUserLimit.php | 8 +- src/Model/JsonResponseDataTldProduct.php | 8 +- src/Model/JsonResponseDataTldStatistic.php | 8 +- .../JsonResponseDataTmchClaimsNotice.php | 8 +- src/Model/JsonResponseDataTmchMark.php | 8 +- .../JsonResponseDataTmchMarkDocument.php | 8 +- src/Model/JsonResponseDataTransfer.php | 8 +- src/Model/JsonResponseDataTransferOut.php | 8 +- src/Model/JsonResponseDataUser.php | 8 +- .../JsonResponseDataUserProfileViews.php | 8 +- src/Model/JsonResponseDataUserSalesReport.php | 8 +- src/Model/JsonResponseDataVmcCheckData.php | 8 +- src/Model/JsonResponseDataVoid.php | 8 +- src/Model/JsonResponseDataZone.php | 8 +- src/Model/JsonResponseDataZoneQuery.php | 8 +- src/Model/LoginData.php | 2 +- src/Model/MailProxy.php | 34 +- src/Model/Message.php | 10 +- src/Model/NiccomLog.php | 8 +- src/Model/Notification.php | 404 +++++++++ src/Model/OTPAuth.php | 12 +- src/Model/ObjectUserAssignment.php | 24 +- src/Model/Operator.php | 2 + src/Model/PeriodicBilling.php | 12 +- src/Model/PhysicalNameServerGroup.php | 8 +- src/Model/PollMessage.php | 6 +- src/Model/PreregConfig.php | 28 +- src/Model/Price.php | 12 +- src/Model/PriceChange.php | 102 ++- src/Model/PriceChangeStatusConstants.php | 2 + src/Model/PriceClassTemplate.php | 30 + src/Model/PriceList.php | 52 +- src/Model/Product.php | 12 +- src/Model/ProductPriceTemplate.php | 30 + src/Model/ProviderEntity.php | 12 +- src/Model/Redirect.php | 30 +- src/Model/RelativeConstants.php | 2 + src/Model/ResourceRecord.php | 10 +- src/Model/SellMode.php | 62 ++ src/Model/ServiceUsersProfile.php | 16 +- src/Model/SpamPolicy.php | 2 +- src/Model/SslContact.php | 12 +- src/Model/SslContactGeneralExtensions.php | 40 +- src/Model/SubjectProduct.php | 18 +- src/Model/Subscription.php | 12 +- src/Model/TaskGroup.php | 4 + src/Model/TaskLimit.php | 6 +- src/Model/TaskUserLimit.php | 6 +- src/Model/TechnicalCustomer.php | 6 +- src/Model/TldProduct.php | 70 +- src/Model/TmchClaimsNotice.php | 12 +- src/Model/TmchMark.php | 12 +- src/Model/TmchMarkComment.php | 6 +- src/Model/Transfer.php | 12 +- src/Model/TransferOut.php | 12 +- src/Model/TrustedApplication.php | 18 +- src/Model/User.php | 792 +---------------- src/Model/UserAcl.php | 18 +- src/Model/UserAcls.php | 6 +- src/Model/UserProfile.php | 18 +- src/Model/UserProfileView.php | 22 +- src/Model/UserSalesReport.php | 12 +- src/Model/VirtualNameServer.php | 12 +- src/Model/VirtualNameServerGroup.php | 12 +- src/Model/Zone.php | 12 +- src/Model/ZoneBasePatchRequest.php | 12 +- src/Service/PriceClassService.php | 53 ++ src/Service/PriceService.php | 33 + 186 files changed, 8347 insertions(+), 1688 deletions(-) create mode 100644 src/Model/BillingEvent.php create mode 100644 src/Model/BulkBillingEventDeleteRequest.php create mode 100644 src/Model/BulkBillingEventDropRequest.php create mode 100644 src/Model/BulkBillingEventReactivateRequest.php create mode 100644 src/Model/BulkBillingEventRejectRequest.php create mode 100644 src/Model/ContactEsExtensions.php create mode 100644 src/Model/DomainSellExtensions.php create mode 100644 src/Model/DomainStudioSourceDomainsBot.php create mode 100644 src/Model/DomainStudioSourcePlacementPlus.php create mode 100644 src/Model/JsonResponseDataBillingEvent.php create mode 100644 src/Model/JsonResponseDataListJsonResponseDataBillingEvent.php create mode 100644 src/Model/Notification.php create mode 100644 src/Model/SellMode.php create mode 100644 src/Service/PriceClassService.php diff --git a/src/Model/AccountManager.php b/src/Model/AccountManager.php index 4e2d5461..f958427f 100644 --- a/src/Model/AccountManager.php +++ b/src/Model/AccountManager.php @@ -59,8 +59,8 @@ class AccountManager implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'name' => 'string', 'phone' => '\Domainrobot\Model\Phone', @@ -352,7 +352,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -362,7 +362,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -376,7 +376,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -386,7 +386,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/Article.php b/src/Model/Article.php index 70832c15..a0126b98 100644 --- a/src/Model/Article.php +++ b/src/Model/Article.php @@ -59,8 +59,8 @@ class Article implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'type' => 'string', 'category' => 'string', 'label' => 'string' @@ -352,7 +352,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -362,7 +362,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -376,7 +376,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -386,7 +386,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/AuEligibilityIdTypeConstants.php b/src/Model/AuEligibilityIdTypeConstants.php index 321a6dbf..85e158a3 100644 --- a/src/Model/AuEligibilityIdTypeConstants.php +++ b/src/Model/AuEligibilityIdTypeConstants.php @@ -55,6 +55,11 @@ class AuEligibilityIdTypeConstants const QLD = 'QLD'; const TM = 'TM'; const OTHER = 'OTHER'; + const ASL = 'ASL'; + const ACECQA = 'ACECQA'; + const CRICOS = 'CRICOS'; + const RTO = 'RTO'; + const TEQSA = 'TEQSA'; /** * Gets allowable values of the enum @@ -75,6 +80,11 @@ public static function getAllowableEnumValues() self::QLD, self::TM, self::OTHER, + self::ASL, + self::ACECQA, + self::CRICOS, + self::RTO, + self::TEQSA, ]; } } diff --git a/src/Model/AuEligibilityTypeConstants.php b/src/Model/AuEligibilityTypeConstants.php index e4dd35ca..355be791 100644 --- a/src/Model/AuEligibilityTypeConstants.php +++ b/src/Model/AuEligibilityTypeConstants.php @@ -78,6 +78,23 @@ class AuEligibilityTypeConstants const PEAK_STATE_TERRITORY_BODY = 'PEAK_STATE_TERRITORY_BODY'; const NOT_FOR_PROFIT_COMMUNITY_GROUP = 'NOT_FOR_PROFIT_COMMUNITY_GROUP'; const FOREIGN_EMBASSY_OR_CONSULATE = 'FOREIGN_EMBASSY_OR_CONSULATE'; + const UNION = 'UNION'; + const BODY_SERVING_OVERSEAS_STUDENTS = 'BODY_SERVING_OVERSEAS_STUDENTS'; + const CHILD_CARE_CENTER = 'CHILD_CARE_CENTER'; + const EDUCATION_AND_CARE_SERVICES_CHILD_CARE = 'EDUCATION_AND_CARE_SERVICES_CHILD_CARE'; + const GOVERNMENT_BODY = 'GOVERNMENT_BODY'; + const GOVERNMENT_SCHOOL = 'GOVERNMENT_SCHOOL'; + const HIGHER_EDUCATION_INSTITUTION = 'HIGHER_EDUCATION_INSTITUTION'; + const NATIONAL_BODY = 'NATIONAL_BODY'; + const NON_GOVERNMENT_SCHOOL = 'NON_GOVERNMENT_SCHOOL'; + const PARENT_AND_PROFESSIONAL_ASSOCIATION_ORGANISATION = 'PARENT_AND_PROFESSIONAL_ASSOCIATION_ORGANISATION'; + const PRE_SCHOOL = 'PRE_SCHOOL'; + const PROVIDER_OF_NON_ACCREDITED_TRAINING = 'PROVIDER_OF_NON_ACCREDITED_TRAINING'; + const RESEARCH_ORGANISATION = 'RESEARCH_ORGANISATION'; + const TRAINING_ORGANISATION = 'TRAINING_ORGANISATION'; + const INDUSTRY_ORGANISATION = 'INDUSTRY_ORGANISATION'; + const CHARITY_TRADE = 'CHARITY_TRADE'; + const STATUTORY_BODY_TRADING_COOPERATIVE = 'STATUTORY_BODY_TRADING_COOPERATIVE'; /** * Gets allowable values of the enum @@ -121,6 +138,23 @@ public static function getAllowableEnumValues() self::PEAK_STATE_TERRITORY_BODY, self::NOT_FOR_PROFIT_COMMUNITY_GROUP, self::FOREIGN_EMBASSY_OR_CONSULATE, + self::UNION, + self::BODY_SERVING_OVERSEAS_STUDENTS, + self::CHILD_CARE_CENTER, + self::EDUCATION_AND_CARE_SERVICES_CHILD_CARE, + self::GOVERNMENT_BODY, + self::GOVERNMENT_SCHOOL, + self::HIGHER_EDUCATION_INSTITUTION, + self::NATIONAL_BODY, + self::NON_GOVERNMENT_SCHOOL, + self::PARENT_AND_PROFESSIONAL_ASSOCIATION_ORGANISATION, + self::PRE_SCHOOL, + self::PROVIDER_OF_NON_ACCREDITED_TRAINING, + self::RESEARCH_ORGANISATION, + self::TRAINING_ORGANISATION, + self::INDUSTRY_ORGANISATION, + self::CHARITY_TRADE, + self::STATUTORY_BODY_TRADING_COOPERATIVE, ]; } } diff --git a/src/Model/AuRegistrantIdTypeConstants.php b/src/Model/AuRegistrantIdTypeConstants.php index 71437668..6f3c8381 100644 --- a/src/Model/AuRegistrantIdTypeConstants.php +++ b/src/Model/AuRegistrantIdTypeConstants.php @@ -54,6 +54,9 @@ class AuRegistrantIdTypeConstants const NT = 'NT'; const WA = 'WA'; const SA = 'SA'; + const TM = 'TM'; + const ARBN = 'ARBN'; + const ICN = 'ICN'; /** * Gets allowable values of the enum @@ -73,6 +76,9 @@ public static function getAllowableEnumValues() self::NT, self::WA, self::SA, + self::TM, + self::ARBN, + self::ICN, ]; } } diff --git a/src/Model/AuthSession.php b/src/Model/AuthSession.php index eeeeda98..6d842854 100644 --- a/src/Model/AuthSession.php +++ b/src/Model/AuthSession.php @@ -59,8 +59,8 @@ class AuthSession implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'language' => 'string', 'configuration' => '\Domainrobot\Model\Configuration' ]; @@ -340,7 +340,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -350,7 +350,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -364,7 +364,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -374,7 +374,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/AutoDeleteDomain.php b/src/Model/AutoDeleteDomain.php index 03c02b24..43467fd8 100644 --- a/src/Model/AutoDeleteDomain.php +++ b/src/Model/AutoDeleteDomain.php @@ -59,8 +59,8 @@ class AutoDeleteDomain implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'domain' => '\Domainrobot\Model\Domain', 'changed' => '\DateTime', 'nicMemberLabel' => 'string', @@ -364,7 +364,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -374,7 +374,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -388,7 +388,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -398,7 +398,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/BackupMx.php b/src/Model/BackupMx.php index 5a799e9c..72911df5 100644 --- a/src/Model/BackupMx.php +++ b/src/Model/BackupMx.php @@ -61,8 +61,8 @@ class BackupMx implements ModelInterface, ArrayAccess 'idn' => 'string', 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser' + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User' ]; /** @@ -391,7 +391,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -401,7 +401,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -415,7 +415,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -425,7 +425,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/BasicCustomer.php b/src/Model/BasicCustomer.php index 6ef2e372..367198bb 100644 --- a/src/Model/BasicCustomer.php +++ b/src/Model/BasicCustomer.php @@ -87,7 +87,7 @@ class BasicCustomer implements ModelInterface, ArrayAccess 'taxable' => 'bool', 'card' => '\Domainrobot\Model\Card', 'contracts' => '\Domainrobot\Model\CustomerContract[]', - 'billingUsers' => '\Domainrobot\Model\BasicUser[]', + 'billingUsers' => '\Domainrobot\Model\User[]', 'comments' => '\Domainrobot\Model\Comment[]', 'contacts' => '\Domainrobot\Model\BasicCustomerContact[]', 'account' => '\Domainrobot\Model\Account', @@ -629,7 +629,7 @@ public function getNumber() /** * Sets number * - * @param int $number number + * @param int $number Customer number * * @return $this */ @@ -653,7 +653,7 @@ public function getClient() /** * Sets client * - * @param string $client client + * @param string $client Account Label. * * @return $this */ @@ -684,7 +684,7 @@ public function getGroup() /** * Sets group * - * @param int $group group + * @param int $group Customer group, first 5 numbers of the account number. e.g. * * @return $this */ @@ -1367,7 +1367,7 @@ public function setContracts($contracts) /** * Gets billingUsers * - * @return \Domainrobot\Model\BasicUser[] + * @return \Domainrobot\Model\User[] */ public function getBillingUsers() { @@ -1377,7 +1377,7 @@ public function getBillingUsers() /** * Sets billingUsers * - * @param \Domainrobot\Model\BasicUser[] $billingUsers The billing users. + * @param \Domainrobot\Model\User[] $billingUsers The billing users. * * @return $this */ diff --git a/src/Model/BasicCustomerContact.php b/src/Model/BasicCustomerContact.php index 9247679e..48309975 100644 --- a/src/Model/BasicCustomerContact.php +++ b/src/Model/BasicCustomerContact.php @@ -49,7 +49,7 @@ class BasicCustomerContact implements ModelInterface, ArrayAccess * * @var string */ - protected static $swaggerModelName = 'basicCustomerContact'; + protected static $swaggerModelName = 'BasicCustomerContact'; /** * Array of property to type mappings. Used for (de)serialization @@ -59,8 +59,8 @@ class BasicCustomerContact implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'customer' => '\Domainrobot\Model\GenericCustomer', 'type' => '\Domainrobot\Model\ContactType', @@ -74,8 +74,8 @@ class BasicCustomerContact implements ModelInterface, ArrayAccess 'city' => 'string', 'country' => 'string', 'state' => 'string', - 'phones' => '\Domainrobot\Model\Phone[]', - 'faxes' => '\Domainrobot\Model\Phone[]', + 'phone' => 'string', + 'fax' => 'string', 'email' => 'string', 'address' => 'string[]' ]; @@ -103,8 +103,8 @@ class BasicCustomerContact implements ModelInterface, ArrayAccess 'city' => null, 'country' => null, 'state' => null, - 'phones' => null, - 'faxes' => null, + 'phone' => null, + 'fax' => null, 'email' => null, 'address' => null ]; @@ -153,8 +153,8 @@ public static function swaggerFormats() 'city' => 'city', 'country' => 'country', 'state' => 'state', - 'phones' => 'phones', - 'faxes' => 'faxes', + 'phone' => 'phone', + 'fax' => 'fax', 'email' => 'email', 'address' => 'address' ]; @@ -182,8 +182,8 @@ public static function swaggerFormats() 'city' => 'setCity', 'country' => 'setCountry', 'state' => 'setState', - 'phones' => 'setPhones', - 'faxes' => 'setFaxes', + 'phone' => 'setPhone', + 'fax' => 'setFax', 'email' => 'setEmail', 'address' => 'setAddress' ]; @@ -211,8 +211,8 @@ public static function swaggerFormats() 'city' => 'getCity', 'country' => 'getCountry', 'state' => 'getState', - 'phones' => 'getPhones', - 'faxes' => 'getFaxes', + 'phone' => 'getPhone', + 'fax' => 'getFax', 'email' => 'getEmail', 'address' => 'getAddress' ]; @@ -294,8 +294,8 @@ public function __construct(array $data = null) $this->container['city'] = isset($data['city']) ? $this->createData($data['city'], 'city') : null; $this->container['country'] = isset($data['country']) ? $this->createData($data['country'], 'country') : null; $this->container['state'] = isset($data['state']) ? $this->createData($data['state'], 'state') : null; - $this->container['phones'] = isset($data['phones']) ? $this->createData($data['phones'], 'phones') : null; - $this->container['faxes'] = isset($data['faxes']) ? $this->createData($data['faxes'], 'faxes') : null; + $this->container['phone'] = isset($data['phone']) ? $this->createData($data['phone'], 'phone') : null; + $this->container['fax'] = isset($data['fax']) ? $this->createData($data['fax'], 'fax') : null; $this->container['email'] = isset($data['email']) ? $this->createData($data['email'], 'email') : null; $this->container['address'] = isset($data['address']) ? $this->createData($data['address'], 'address') : null; } @@ -436,7 +436,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -446,7 +446,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -460,7 +460,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -470,7 +470,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -494,7 +494,7 @@ public function getId() /** * Sets id * - * @param int $id The id. + * @param int $id ID of the domain contact. * * @return $this */ @@ -518,7 +518,7 @@ public function getCustomer() /** * Sets customer * - * @param \Domainrobot\Model\GenericCustomer $customer customer + * @param \Domainrobot\Model\GenericCustomer $customer Contains basic information that uniquely identifies a customer technically. * * @return $this */ @@ -542,7 +542,7 @@ public function getType() /** * Sets type * - * @param \Domainrobot\Model\ContactType $type type + * @param \Domainrobot\Model\ContactType $type Type of domain contact. e.g. * * @return $this */ @@ -566,7 +566,7 @@ public function getFirstName() /** * Sets firstName * - * @param string $firstName firstName + * @param string $firstName Contact first name. * * @return $this */ @@ -590,7 +590,7 @@ public function getLastName() /** * Sets lastName * - * @param string $lastName lastName + * @param string $lastName Contact last name. * * @return $this */ @@ -614,7 +614,7 @@ public function getTitle() /** * Sets title * - * @param string $title title + * @param string $title The title of the contact. * * @return $this */ @@ -638,7 +638,7 @@ public function getLabel() /** * Sets label * - * @param string $label label + * @param string $label Designation of the contact. In most cases the last name is used. * * @return $this */ @@ -662,7 +662,7 @@ public function getLanguage() /** * Sets language * - * @param string $language The language to use for the contact. + * @param string $language The language for communication with the contact. Supported languages: * * @return $this */ @@ -686,7 +686,7 @@ public function getGender() /** * Sets gender * - * @param \Domainrobot\Model\GenderConstants $gender gender + * @param \Domainrobot\Model\GenderConstants $gender The gender of the contact. * * @return $this */ @@ -710,7 +710,7 @@ public function getPostalCode() /** * Sets postalCode * - * @param string $postalCode postalCode + * @param string $postalCode Zip code of the contact address. * * @return $this */ @@ -734,7 +734,7 @@ public function getCity() /** * Sets city * - * @param string $city city + * @param string $city The city of the contact. * * @return $this */ @@ -758,7 +758,7 @@ public function getCountry() /** * Sets country * - * @param string $country country + * @param string $country The country of the contact. * * @return $this */ @@ -782,7 +782,7 @@ public function getState() /** * Sets state * - * @param string $state state + * @param string $state The state of the contact. * * @return $this */ @@ -794,49 +794,49 @@ public function setState($state) } /** - * Gets phones + * Gets phone * - * @return \Domainrobot\Model\Phone[] + * @return string */ - public function getPhones() + public function getPhone() { - return $this->container['phones']; + return $this->container['phone']; } /** - * Sets phones + * Sets phone * - * @param \Domainrobot\Model\Phone[] $phones phones + * @param string $phone The phone numbers of the contact * * @return $this */ - public function setPhones($phones) + public function setPhone($phone) { - $this->container['phones'] = $phones; + $this->container['phone'] = $phone; return $this; } /** - * Gets faxes + * Gets fax * - * @return \Domainrobot\Model\Phone[] + * @return string */ - public function getFaxes() + public function getFax() { - return $this->container['faxes']; + return $this->container['fax']; } /** - * Sets faxes + * Sets fax * - * @param \Domainrobot\Model\Phone[] $faxes faxes + * @param string $fax The fax numbers of the contact * * @return $this */ - public function setFaxes($faxes) + public function setFax($fax) { - $this->container['faxes'] = $faxes; + $this->container['fax'] = $fax; return $this; } @@ -854,7 +854,7 @@ public function getEmail() /** * Sets email * - * @param string $email email + * @param string $email The email address of the contact. * * @return $this */ @@ -878,7 +878,7 @@ public function getAddress() /** * Sets address * - * @param string[] $address address + * @param string[] $address The address of the contact. * * @return $this */ diff --git a/src/Model/BasicCustomerSpoolVerification.php b/src/Model/BasicCustomerSpoolVerification.php index 42463054..17558234 100644 --- a/src/Model/BasicCustomerSpoolVerification.php +++ b/src/Model/BasicCustomerSpoolVerification.php @@ -344,7 +344,7 @@ public function getEmail() /** * Sets email * - * @param string $email The email address to verify + * @param string $email The email address that will be verified. * * @return $this */ @@ -368,7 +368,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\GenericStatusConstants $status The status of the verification + * @param \Domainrobot\Model\GenericStatusConstants $status Status of the verification process. * * @return $this */ @@ -392,7 +392,7 @@ public function getCustomer() /** * Sets customer * - * @param \Domainrobot\Model\GenericCustomer $customer The related customer + * @param \Domainrobot\Model\GenericCustomer $customer The customer whose email address is being verified. * * @return $this */ diff --git a/src/Model/BasicDocument.php b/src/Model/BasicDocument.php index c1bd5f20..fd34cb99 100644 --- a/src/Model/BasicDocument.php +++ b/src/Model/BasicDocument.php @@ -69,8 +69,8 @@ class BasicDocument implements ModelInterface, ArrayAccess 'link' => 'string', 'uuid' => 'string', 'alias' => 'string', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'expire' => '\DateTime' ]; @@ -637,7 +637,7 @@ public function setAlias($alias) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -647,7 +647,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The owner of the object. + * @param \Domainrobot\Model\User $owner The owner of the object. * * @return $this */ @@ -661,7 +661,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -671,7 +671,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater The updating user of the object. + * @param \Domainrobot\Model\User $updater The updating user of the object. * * @return $this */ diff --git a/src/Model/BillingEvent.php b/src/Model/BillingEvent.php new file mode 100644 index 00000000..39fcd515 --- /dev/null +++ b/src/Model/BillingEvent.php @@ -0,0 +1,797 @@ + '\DateTime', + 'updated' => '\DateTime', + 'id' => 'int', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', + 'status' => '\Domainrobot\Model\BillingStatus', + 'object' => 'string', + 'description' => 'string', + 'period' => '\Domainrobot\Model\TimePeriod', + 'articleTypeLabel' => 'string', + 'payable' => '\DateTime', + 'articleLabel' => 'string', + 'businessCase' => 'string', + 'extensions' => '\Domainrobot\Model\BillingEventExtensions' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'created' => 'date-time', + 'updated' => 'date-time', + 'id' => 'int32', + 'owner' => null, + 'updater' => null, + 'status' => null, + 'object' => null, + 'description' => null, + 'period' => null, + 'articleTypeLabel' => null, + 'payable' => 'date-time', + 'articleLabel' => null, + 'businessCase' => null, + 'extensions' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'created' => 'created', + 'updated' => 'updated', + 'id' => 'id', + 'owner' => 'owner', + 'updater' => 'updater', + 'status' => 'status', + 'object' => 'object', + 'description' => 'description', + 'period' => 'period', + 'articleTypeLabel' => 'articleTypeLabel', + 'payable' => 'payable', + 'articleLabel' => 'articleLabel', + 'businessCase' => 'businessCase', + 'extensions' => 'extensions' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'created' => 'setCreated', + 'updated' => 'setUpdated', + 'id' => 'setId', + 'owner' => 'setOwner', + 'updater' => 'setUpdater', + 'status' => 'setStatus', + 'object' => 'setObject', + 'description' => 'setDescription', + 'period' => 'setPeriod', + 'articleTypeLabel' => 'setArticleTypeLabel', + 'payable' => 'setPayable', + 'articleLabel' => 'setArticleLabel', + 'businessCase' => 'setBusinessCase', + 'extensions' => 'setExtensions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'created' => 'getCreated', + 'updated' => 'getUpdated', + 'id' => 'getId', + 'owner' => 'getOwner', + 'updater' => 'getUpdater', + 'status' => 'getStatus', + 'object' => 'getObject', + 'description' => 'getDescription', + 'period' => 'getPeriod', + 'articleTypeLabel' => 'getArticleTypeLabel', + 'payable' => 'getPayable', + 'articleLabel' => 'getArticleLabel', + 'businessCase' => 'getBusinessCase', + 'extensions' => 'getExtensions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; + $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; + $this->container['id'] = isset($data['id']) ? $this->createData($data['id'], 'id') : null; + $this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; + $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; + $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; + $this->container['object'] = isset($data['object']) ? $this->createData($data['object'], 'object') : null; + $this->container['description'] = isset($data['description']) ? $this->createData($data['description'], 'description') : null; + $this->container['period'] = isset($data['period']) ? $this->createData($data['period'], 'period') : null; + $this->container['articleTypeLabel'] = isset($data['articleTypeLabel']) ? $this->createData($data['articleTypeLabel'], 'articleTypeLabel') : null; + $this->container['payable'] = isset($data['payable']) ? $this->createData($data['payable'], 'payable') : null; + $this->container['articleLabel'] = isset($data['articleLabel']) ? $this->createData($data['articleLabel'], 'articleLabel') : null; + $this->container['businessCase'] = isset($data['businessCase']) ? $this->createData($data['businessCase'], 'businessCase') : null; + $this->container['extensions'] = isset($data['extensions']) ? $this->createData($data['extensions'], 'extensions') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['payable'] === null) { + $invalidProperties[] = "'payable' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created Date of creation. + * + * @return $this + */ + public function setCreated($created) + { + $this->container['created'] = $created; + + return $this; + } + + /** + * Gets updated + * + * @return \DateTime + */ + public function getUpdated() + { + return $this->container['updated']; + } + + /** + * Sets updated + * + * @param \DateTime $updated Date of the last update. + * + * @return $this + */ + public function setUpdated($updated) + { + $this->container['updated'] = $updated; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id The unique identifier of the event + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets owner + * + * @return \Domainrobot\Model\User + */ + public function getOwner() + { + return $this->container['owner']; + } + + /** + * Sets owner + * + * @param \Domainrobot\Model\User $owner The object owner. + * + * @return $this + */ + public function setOwner($owner) + { + $this->container['owner'] = $owner; + + return $this; + } + + /** + * Gets updater + * + * @return \Domainrobot\Model\User + */ + public function getUpdater() + { + return $this->container['updater']; + } + + /** + * Sets updater + * + * @param \Domainrobot\Model\User $updater User who performed the last update. + * + * @return $this + */ + public function setUpdater($updater) + { + $this->container['updater'] = $updater; + + return $this; + } + + /** + * Gets status + * + * @return \Domainrobot\Model\BillingStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \Domainrobot\Model\BillingStatus $status Billing status of the subscription. + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets object + * + * @return string + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param string $object Name of the subscription or the contract number. + * + * @return $this + */ + public function setObject($object) + { + $this->container['object'] = $object; + + return $this; + } + + /** + * Gets description + * + * @return string + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param string $description The human readable name of the subscription, e.g. the name of a package + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets period + * + * @return \Domainrobot\Model\TimePeriod + */ + public function getPeriod() + { + return $this->container['period']; + } + + /** + * Sets period + * + * @param \Domainrobot\Model\TimePeriod $period The period used by the subscription, e.g. 1 month + * + * @return $this + */ + public function setPeriod($period) + { + $this->container['period'] = $period; + + return $this; + } + + /** + * Gets articleTypeLabel + * + * @return string + */ + public function getArticleTypeLabel() + { + return $this->container['articleTypeLabel']; + } + + /** + * Sets articleTypeLabel + * + * @param string $articleTypeLabel The article type label of the subscription, e.g. domain + * + * @return $this + */ + public function setArticleTypeLabel($articleTypeLabel) + { + $this->container['articleTypeLabel'] = $articleTypeLabel; + + return $this; + } + + /** + * Gets payable + * + * @return \DateTime + */ + public function getPayable() + { + return $this->container['payable']; + } + + /** + * Sets payable + * + * @param \DateTime $payable The date then the event should be billed. + * + * @return $this + */ + public function setPayable($payable) + { + $this->container['payable'] = $payable; + + return $this; + } + + /** + * Gets articleLabel + * + * @return string + */ + public function getArticleLabel() + { + return $this->container['articleLabel']; + } + + /** + * Sets articleLabel + * + * @param string $articleLabel The article label of the subscription, e.g. backup_mx + * + * @return $this + */ + public function setArticleLabel($articleLabel) + { + $this->container['articleLabel'] = $articleLabel; + + return $this; + } + + /** + * Gets businessCase + * + * @return string + */ + public function getBusinessCase() + { + return $this->container['businessCase']; + } + + /** + * Sets businessCase + * + * @param string $businessCase The businessCase of the subscription, e.g. create + * + * @return $this + */ + public function setBusinessCase($businessCase) + { + $this->container['businessCase'] = $businessCase; + + return $this; + } + + /** + * Gets extensions + * + * @return \Domainrobot\Model\BillingEventExtensions + */ + public function getExtensions() + { + return $this->container['extensions']; + } + + /** + * Sets extensions + * + * @param \Domainrobot\Model\BillingEventExtensions $extensions Additional information, such as rights and limits. + * + * @return $this + */ + public function setExtensions($extensions) + { + $this->container['extensions'] = $extensions; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/BillingLimit.php b/src/Model/BillingLimit.php index 0649458f..972e3b31 100644 --- a/src/Model/BillingLimit.php +++ b/src/Model/BillingLimit.php @@ -57,7 +57,7 @@ class BillingLimit implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'user' => '\Domainrobot\Model\BasicUser', + 'user' => '\Domainrobot\Model\User', 'entries' => '\Domainrobot\Model\BillingObjectLimit[]' ]; @@ -271,7 +271,7 @@ public function valid() /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -281,7 +281,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user user + * @param \Domainrobot\Model\User $user user * * @return $this */ diff --git a/src/Model/BillingObjectLimit.php b/src/Model/BillingObjectLimit.php index 584b2e74..d3925538 100644 --- a/src/Model/BillingObjectLimit.php +++ b/src/Model/BillingObjectLimit.php @@ -356,7 +356,7 @@ public function getArticleLabel() /** * Sets articleLabel * - * @param string $articleLabel articleLabel + * @param string $articleLabel Article name. e.g. * * @return $this */ @@ -380,7 +380,7 @@ public function getLimitSelf() /** * Sets limitSelf * - * @param int $limitSelf limitSelf + * @param int $limitSelf Limits of the user, of the daily, hourly or monthly ordering amount in currency. * * @return $this */ @@ -404,7 +404,7 @@ public function getLimitChildren() /** * Sets limitChildren * - * @param int $limitChildren limitChildren + * @param int $limitChildren Limits of the sub user, of the daily, hourly or monthly ordering amount in currency. * * @return $this */ @@ -428,7 +428,7 @@ public function getArticleTypeLabel() /** * Sets articleTypeLabel * - * @param string $articleTypeLabel articleTypeLabel + * @param string $articleTypeLabel Article Type designation e.g. * * @return $this */ @@ -452,7 +452,7 @@ public function getCount() /** * Sets count * - * @param int $count The current count if available + * @param int $count The current count if available of allowed api requests in a specific timeframe * * @return $this */ diff --git a/src/Model/BillingObjectTerm.php b/src/Model/BillingObjectTerm.php index 7108e068..10e611e4 100644 --- a/src/Model/BillingObjectTerm.php +++ b/src/Model/BillingObjectTerm.php @@ -59,8 +59,8 @@ class BillingObjectTerm implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'cancelation' => '\Domainrobot\Model\TimePeriod', 'cancelationExpireOnly' => 'bool', 'initial' => '\Domainrobot\Model\TimePeriod', @@ -400,7 +400,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -410,7 +410,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -424,7 +424,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -434,7 +434,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/BulkBillingEventDeleteRequest.php b/src/Model/BulkBillingEventDeleteRequest.php new file mode 100644 index 00000000..11725954 --- /dev/null +++ b/src/Model/BulkBillingEventDeleteRequest.php @@ -0,0 +1,434 @@ + '\Domainrobot\Model\BillingEvent[]', + 'query' => '\Domainrobot\Model\Query' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'objects' => null, + 'query' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'objects' => 'objects', + 'query' => 'query' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'objects' => 'setObjects', + 'query' => 'setQuery' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'objects' => 'getObjects', + 'query' => 'getQuery' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['objects'] = isset($data['objects']) ? $this->createData($data['objects'], 'objects') : null; + $this->container['query'] = isset($data['query']) ? $this->createData($data['query'], 'query') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets objects + * + * @return \Domainrobot\Model\BillingEvent[] + */ + public function getObjects() + { + return $this->container['objects']; + } + + /** + * Sets objects + * + * @param \Domainrobot\Model\BillingEvent[] $objects The objects to process + * + * @return $this + */ + public function setObjects($objects) + { + $this->container['objects'] = $objects; + + return $this; + } + + /** + * Gets query + * + * @return \Domainrobot\Model\Query + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param \Domainrobot\Model\Query $query The query to fetch the object instead of defined list + * + * @return $this + */ + public function setQuery($query) + { + $this->container['query'] = $query; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/BulkBillingEventDropRequest.php b/src/Model/BulkBillingEventDropRequest.php new file mode 100644 index 00000000..0972284e --- /dev/null +++ b/src/Model/BulkBillingEventDropRequest.php @@ -0,0 +1,434 @@ + '\Domainrobot\Model\BillingEvent[]', + 'query' => '\Domainrobot\Model\Query' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'objects' => null, + 'query' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'objects' => 'objects', + 'query' => 'query' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'objects' => 'setObjects', + 'query' => 'setQuery' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'objects' => 'getObjects', + 'query' => 'getQuery' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['objects'] = isset($data['objects']) ? $this->createData($data['objects'], 'objects') : null; + $this->container['query'] = isset($data['query']) ? $this->createData($data['query'], 'query') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets objects + * + * @return \Domainrobot\Model\BillingEvent[] + */ + public function getObjects() + { + return $this->container['objects']; + } + + /** + * Sets objects + * + * @param \Domainrobot\Model\BillingEvent[] $objects The objects to process + * + * @return $this + */ + public function setObjects($objects) + { + $this->container['objects'] = $objects; + + return $this; + } + + /** + * Gets query + * + * @return \Domainrobot\Model\Query + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param \Domainrobot\Model\Query $query The query to fetch the object instead of defined list + * + * @return $this + */ + public function setQuery($query) + { + $this->container['query'] = $query; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/BulkBillingEventReactivateRequest.php b/src/Model/BulkBillingEventReactivateRequest.php new file mode 100644 index 00000000..790dcc8b --- /dev/null +++ b/src/Model/BulkBillingEventReactivateRequest.php @@ -0,0 +1,434 @@ + '\Domainrobot\Model\BillingEvent[]', + 'query' => '\Domainrobot\Model\Query' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'objects' => null, + 'query' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'objects' => 'objects', + 'query' => 'query' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'objects' => 'setObjects', + 'query' => 'setQuery' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'objects' => 'getObjects', + 'query' => 'getQuery' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['objects'] = isset($data['objects']) ? $this->createData($data['objects'], 'objects') : null; + $this->container['query'] = isset($data['query']) ? $this->createData($data['query'], 'query') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets objects + * + * @return \Domainrobot\Model\BillingEvent[] + */ + public function getObjects() + { + return $this->container['objects']; + } + + /** + * Sets objects + * + * @param \Domainrobot\Model\BillingEvent[] $objects The objects to process + * + * @return $this + */ + public function setObjects($objects) + { + $this->container['objects'] = $objects; + + return $this; + } + + /** + * Gets query + * + * @return \Domainrobot\Model\Query + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param \Domainrobot\Model\Query $query The query to fetch the object instead of defined list + * + * @return $this + */ + public function setQuery($query) + { + $this->container['query'] = $query; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/BulkBillingEventRejectRequest.php b/src/Model/BulkBillingEventRejectRequest.php new file mode 100644 index 00000000..09220421 --- /dev/null +++ b/src/Model/BulkBillingEventRejectRequest.php @@ -0,0 +1,434 @@ + '\Domainrobot\Model\BillingEvent[]', + 'query' => '\Domainrobot\Model\Query' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'objects' => null, + 'query' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'objects' => 'objects', + 'query' => 'query' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'objects' => 'setObjects', + 'query' => 'setQuery' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'objects' => 'getObjects', + 'query' => 'getQuery' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['objects'] = isset($data['objects']) ? $this->createData($data['objects'], 'objects') : null; + $this->container['query'] = isset($data['query']) ? $this->createData($data['query'], 'query') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets objects + * + * @return \Domainrobot\Model\BillingEvent[] + */ + public function getObjects() + { + return $this->container['objects']; + } + + /** + * Sets objects + * + * @param \Domainrobot\Model\BillingEvent[] $objects The objects to process + * + * @return $this + */ + public function setObjects($objects) + { + $this->container['objects'] = $objects; + + return $this; + } + + /** + * Gets query + * + * @return \Domainrobot\Model\Query + */ + public function getQuery() + { + return $this->container['query']; + } + + /** + * Sets query + * + * @param \Domainrobot\Model\Query $query The query to fetch the object instead of defined list + * + * @return $this + */ + public function setQuery($query) + { + $this->container['query'] = $query; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/Card.php b/src/Model/Card.php index c93e05c4..98cc831c 100644 --- a/src/Model/Card.php +++ b/src/Model/Card.php @@ -404,7 +404,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\CardStatus $status The actual status of the credit card + * @param \Domainrobot\Model\CardStatus $status Credit card status * * @return $this */ @@ -428,7 +428,7 @@ public function getValidFrom() /** * Sets validFrom * - * @param \DateTime $validFrom The valid from date + * @param \DateTime $validFrom Start of the credit card validity period * * @return $this */ @@ -452,7 +452,7 @@ public function getValidTo() /** * Sets validTo * - * @param \DateTime $validTo The valid to date + * @param \DateTime $validTo End of the credit card validity period * * @return $this */ diff --git a/src/Model/Certificate.php b/src/Model/Certificate.php index b2a6988b..b20c7d59 100644 --- a/src/Model/Certificate.php +++ b/src/Model/Certificate.php @@ -59,8 +59,8 @@ class Certificate implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'partnerOrderId' => 'string', 'orderId' => 'string', @@ -614,7 +614,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -624,7 +624,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -638,7 +638,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -648,7 +648,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/CertificateData.php b/src/Model/CertificateData.php index 7ded07ec..0c306402 100644 --- a/src/Model/CertificateData.php +++ b/src/Model/CertificateData.php @@ -434,7 +434,7 @@ public function getPlain() /** * Sets plain * - * @param string $plain The plain csr. + * @param string $plain The CSR key as a string. * * @return $this */ @@ -458,7 +458,7 @@ public function getName() /** * Sets name * - * @param string $name The common name. + * @param string $name The name of the certificate which is contained within the CSR key. * * @return $this */ @@ -482,7 +482,7 @@ public function getSubjectAlternativeNames() /** * Sets subjectAlternativeNames * - * @param \Domainrobot\Model\SubjectAlternativeName[] $subjectAlternativeNames The subject alternative names, listed in the csr. + * @param \Domainrobot\Model\SubjectAlternativeName[] $subjectAlternativeNames The SubjectAlternativeNames contained within the CSR key. * * @return $this */ @@ -506,7 +506,7 @@ public function getHistories() /** * Sets histories * - * @param \Domainrobot\Model\CertificateHistory[] $histories The certificate history. + * @param \Domainrobot\Model\CertificateHistory[] $histories The certificate history (old version). * * @return $this */ @@ -530,7 +530,7 @@ public function getKeySize() /** * Sets keySize * - * @param int $keySize The size of the csr key. + * @param int $keySize The key length of the CSR key. * * @return $this */ @@ -554,7 +554,7 @@ public function getCountryCode() /** * Sets countryCode * - * @param string $countryCode The country code defined in the csr. + * @param string $countryCode The country code which is contained within the CSR key. * * @return $this */ @@ -626,7 +626,7 @@ public function getCity() /** * Sets city * - * @param string $city The city defined in the csr. + * @param string $city The city contained within the CSR key. * * @return $this */ @@ -650,7 +650,7 @@ public function getOrganization() /** * Sets organization * - * @param string $organization The organization defined in the csr. + * @param string $organization The organisation contained within the CSR key. * * @return $this */ @@ -674,7 +674,7 @@ public function getOrganizationUnit() /** * Sets organizationUnit * - * @param string $organizationUnit The organization unit defined in the csr. + * @param string $organizationUnit The organisation contained within the CSR key. * * @return $this */ @@ -698,7 +698,7 @@ public function getEmail() /** * Sets email * - * @param string $email The email defined in the csr. + * @param string $email The email address contained within the CSR key. * * @return $this */ @@ -722,7 +722,7 @@ public function getProduct() /** * Sets product * - * @param string $product The ssl product. + * @param string $product The SSL product. * * @return $this */ @@ -746,7 +746,7 @@ public function getAuthentication() /** * Sets authentication * - * @param \Domainrobot\Model\CertAuthentication[] $authentication The authentication data. + * @param \Domainrobot\Model\CertAuthentication[] $authentication The generated authentication data. * * @return $this */ @@ -770,7 +770,7 @@ public function getAlgorithm() /** * Sets algorithm * - * @param \Domainrobot\Model\CsrHashAlgorithmConstants $algorithm The csr algorithm. + * @param \Domainrobot\Model\CsrHashAlgorithmConstants $algorithm The algorithm used in the CSR key. * * @return $this */ @@ -794,7 +794,7 @@ public function getSignatureHashAlgorithm() /** * Sets signatureHashAlgorithm * - * @param \Domainrobot\Model\SignatureHashAlgorithmConstants $signatureHashAlgorithm The signature hash algorithm. + * @param \Domainrobot\Model\SignatureHashAlgorithmConstants $signatureHashAlgorithm The hash algorithm which was used for the CSR. * * @return $this */ @@ -818,7 +818,7 @@ public function getCertificate() /** * Sets certificate * - * @param \Domainrobot\Model\Certificate $certificate The certificat. Only necessary if used before reissue, renew and delete. + * @param \Domainrobot\Model\Certificate $certificate The certificate. * * @return $this */ @@ -842,7 +842,7 @@ public function getIdn() /** * Sets idn * - * @param string $idn The idn version of the common name. + * @param string $idn The common name written in punycode format. * * @return $this */ @@ -866,7 +866,7 @@ public function getCheckCaa() /** * Sets checkCaa * - * @param bool $checkCaa Activates the caa record check. + * @param bool $checkCaa Activates the CAA record check. false = off true = on Default value = false * * @return $this */ diff --git a/src/Model/Comment.php b/src/Model/Comment.php index d3d2be28..0c542519 100644 --- a/src/Model/Comment.php +++ b/src/Model/Comment.php @@ -62,7 +62,7 @@ class Comment implements ModelInterface, ArrayAccess 'id' => 'int', 'customer' => '\Domainrobot\Model\GenericCustomer', 'text' => 'string', - 'user' => '\Domainrobot\Model\BasicUser' + 'user' => '\Domainrobot\Model\User' ]; /** @@ -412,7 +412,7 @@ public function setText($text) /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -422,7 +422,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user user + * @param \Domainrobot\Model\User $user user * * @return $this */ diff --git a/src/Model/Contact.php b/src/Model/Contact.php index cee20558..2a62cdf9 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -60,8 +60,8 @@ class Contact implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'updated' => '\DateTime', 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'alias' => 'string', 'type' => '\Domainrobot\Model\ContactTypeConstants', 'organization' => 'string', @@ -514,7 +514,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -524,7 +524,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -538,7 +538,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -548,7 +548,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/ContactEsExtensions.php b/src/Model/ContactEsExtensions.php new file mode 100644 index 00000000..7a99ca1d --- /dev/null +++ b/src/Model/ContactEsExtensions.php @@ -0,0 +1,404 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'identificacion' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'identificacion' => 'identificacion' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'identificacion' => 'setIdentificacion' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'identificacion' => 'getIdentificacion' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['identificacion'] = isset($data['identificacion']) ? $this->createData($data['identificacion'], 'identificacion') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets identificacion + * + * @return string + */ + public function getIdentificacion() + { + return $this->container['identificacion']; + } + + /** + * Sets identificacion + * + * @param string $identificacion Fiscal Identification Number + * + * @return $this + */ + public function setIdentificacion($identificacion) + { + $this->container['identificacion'] = $identificacion; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/ContactExtensions.php b/src/Model/ContactExtensions.php index 42b99c6a..80c77fbd 100644 --- a/src/Model/ContactExtensions.php +++ b/src/Model/ContactExtensions.php @@ -79,7 +79,8 @@ class ContactExtensions implements ModelInterface, ArrayAccess 'madrid' => '\Domainrobot\Model\ContactMadridExtensions', 'scot' => '\Domainrobot\Model\ContactScotExtensions', 'ie' => '\Domainrobot\Model\ContactIeExtensions', - 'zuerich' => '\Domainrobot\Model\ContactZuerichExtensions' + 'zuerich' => '\Domainrobot\Model\ContactZuerichExtensions', + 'es' => '\Domainrobot\Model\ContactEsExtensions' ]; /** @@ -110,7 +111,8 @@ class ContactExtensions implements ModelInterface, ArrayAccess 'madrid' => null, 'scot' => null, 'ie' => null, - 'zuerich' => null + 'zuerich' => null, + 'es' => null ]; /** @@ -162,7 +164,8 @@ public static function swaggerFormats() 'madrid' => 'madrid', 'scot' => 'scot', 'ie' => 'ie', - 'zuerich' => 'zuerich' + 'zuerich' => 'zuerich', + 'es' => 'es' ]; /** @@ -193,7 +196,8 @@ public static function swaggerFormats() 'madrid' => 'setMadrid', 'scot' => 'setScot', 'ie' => 'setIe', - 'zuerich' => 'setZuerich' + 'zuerich' => 'setZuerich', + 'es' => 'setEs' ]; /** @@ -224,7 +228,8 @@ public static function swaggerFormats() 'madrid' => 'getMadrid', 'scot' => 'getScot', 'ie' => 'getIe', - 'zuerich' => 'getZuerich' + 'zuerich' => 'getZuerich', + 'es' => 'getEs' ]; /** @@ -310,6 +315,7 @@ public function __construct(array $data = null) $this->container['scot'] = isset($data['scot']) ? $this->createData($data['scot'], 'scot') : null; $this->container['ie'] = isset($data['ie']) ? $this->createData($data['ie'], 'ie') : null; $this->container['zuerich'] = isset($data['zuerich']) ? $this->createData($data['zuerich'], 'zuerich') : null; + $this->container['es'] = isset($data['es']) ? $this->createData($data['es'], 'es') : null; } /** @@ -942,6 +948,30 @@ public function setZuerich($zuerich) return $this; } + + /** + * Gets es + * + * @return \Domainrobot\Model\ContactEsExtensions + */ + public function getEs() + { + return $this->container['es']; + } + + /** + * Sets es + * + * @param \Domainrobot\Model\ContactEsExtensions $es The .es contact extensions. + * + * @return $this + */ + public function setEs($es) + { + $this->container['es'] = $es; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/ContactType.php b/src/Model/ContactType.php index b7decbc3..ae0e4778 100644 --- a/src/Model/ContactType.php +++ b/src/Model/ContactType.php @@ -50,6 +50,7 @@ class ContactType const DOMAIN = 'DOMAIN'; const SSL = 'SSL'; const SERVER = 'SERVER'; + const ABUSE = 'ABUSE'; /** * Gets allowable values of the enum @@ -65,6 +66,7 @@ public static function getAllowableEnumValues() self::DOMAIN, self::SSL, self::SERVER, + self::ABUSE, ]; } } diff --git a/src/Model/ContactVerification.php b/src/Model/ContactVerification.php index 2e3503d0..d5a0c181 100644 --- a/src/Model/ContactVerification.php +++ b/src/Model/ContactVerification.php @@ -59,8 +59,8 @@ class ContactVerification implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'reference' => 'string', 'messageSend' => '\DateTime', 'confirmed' => '\DateTime', @@ -394,7 +394,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -404,7 +404,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -418,7 +418,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -428,7 +428,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -452,7 +452,7 @@ public function getReference() /** * Sets reference * - * @param string $reference the unique reference of the Verification + * @param string $reference The unique reference of the Verification * * @return $this */ @@ -476,7 +476,7 @@ public function getMessageSend() /** * Sets messageSend * - * @param \DateTime $messageSend the messageSend date of the Verification + * @param \DateTime $messageSend The date when the last verification email was sent. * * @return $this */ @@ -500,7 +500,7 @@ public function getConfirmed() /** * Sets confirmed * - * @param \DateTime $confirmed the confirmed date of the Verification + * @param \DateTime $confirmed The date when the last verification email was confirmed. * * @return $this */ @@ -524,7 +524,7 @@ public function getConfirmIp() /** * Sets confirmIp * - * @param \Domainrobot\Model\InetAddress $confirmIp the confirmIp of the Verification + * @param \Domainrobot\Model\InetAddress $confirmIp The IP address from which the verification was confirmed. * * @return $this */ @@ -548,7 +548,7 @@ public function getFailed() /** * Sets failed * - * @param \DateTime $failed the failed date of the Verification + * @param \DateTime $failed The date on which the verification failed. * * @return $this */ @@ -572,7 +572,7 @@ public function getDomains() /** * Sets domains * - * @param \Domainrobot\Model\ContactVerificationDomain[] $domains the domains of the Verification + * @param \Domainrobot\Model\ContactVerificationDomain[] $domains Domain for which verification was/is required. * * @return $this */ @@ -596,7 +596,7 @@ public function getVerificationMails() /** * Sets verificationMails * - * @param \Domainrobot\Model\ContactVerificationMessage[] $verificationMails the messages of the Verification + * @param \Domainrobot\Model\ContactVerificationMessage[] $verificationMails The verification mails. For each mail sent, it is recorded here whether the verification was successful or not. * * @return $this */ @@ -620,7 +620,7 @@ public function getComment() /** * Sets comment * - * @param string $comment the comment of the Verification + * @param string $comment The verification comment. Can be included in the confirmation. * * @return $this */ @@ -644,7 +644,7 @@ public function getAction() /** * Sets action * - * @param string $action the action of the Verification, e.g. domain update or contact task + * @param string $action Action for which the verification was triggered or updated. * * @return $this */ diff --git a/src/Model/ContactVerificationDomain.php b/src/Model/ContactVerificationDomain.php index 32d3743c..8abd460f 100644 --- a/src/Model/ContactVerificationDomain.php +++ b/src/Model/ContactVerificationDomain.php @@ -350,7 +350,7 @@ public function getName() /** * Sets name * - * @param string $name the domain of the Verification + * @param string $name The domain name associated with the contact verification * * @return $this */ @@ -374,7 +374,7 @@ public function getIdn() /** * Sets idn * - * @param string $idn the idn domain + * @param string $idn The domain name written in Punycode syntax(IDN) * * @return $this */ @@ -398,7 +398,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\GenericStatusConstants $status the status of the domain Verification + * @param \Domainrobot\Model\GenericStatusConstants $status The status of the domain Verification * * @return $this */ @@ -422,7 +422,7 @@ public function getDeactivation() /** * Sets deactivation * - * @param \DateTime $deactivation the deactivation of the domain Verification + * @param \DateTime $deactivation The date on which the associated domain is deactivated if the contact verification is not completed * * @return $this */ diff --git a/src/Model/ContactVerificationMessage.php b/src/Model/ContactVerificationMessage.php index cbd4c4d2..e731d155 100644 --- a/src/Model/ContactVerificationMessage.php +++ b/src/Model/ContactVerificationMessage.php @@ -344,7 +344,7 @@ public function getMail() /** * Sets mail * - * @param \Domainrobot\Model\MailServiceMessage $mail the email of the VerificationMessage + * @param \Domainrobot\Model\MailServiceMessage $mail The notification that was sent for verification * * @return $this */ @@ -368,7 +368,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\GenericStatusConstants $status the status of the VerificationMessage + * @param \Domainrobot\Model\GenericStatusConstants $status The status of the verification mail * * @return $this */ @@ -392,7 +392,7 @@ public function getLastResponse() /** * Sets lastResponse * - * @param string $lastResponse The last response of the mailserver + * @param string $lastResponse The last response of the mail server * * @return $this */ diff --git a/src/Model/CustomerContract.php b/src/Model/CustomerContract.php index 1a8f26e3..cfc43c8c 100644 --- a/src/Model/CustomerContract.php +++ b/src/Model/CustomerContract.php @@ -64,7 +64,8 @@ class CustomerContract implements ModelInterface, ArrayAccess 'classification' => 'string', 'invoiceNotice' => 'string', 'notice' => 'string', - 'ticketNumber' => 'string' + 'ticketNumber' => 'string', + 'noSap' => 'bool' ]; /** @@ -80,7 +81,8 @@ class CustomerContract implements ModelInterface, ArrayAccess 'classification' => null, 'invoiceNotice' => null, 'notice' => null, - 'ticketNumber' => null + 'ticketNumber' => null, + 'noSap' => null ]; /** @@ -117,7 +119,8 @@ public static function swaggerFormats() 'classification' => 'classification', 'invoiceNotice' => 'invoiceNotice', 'notice' => 'notice', - 'ticketNumber' => 'ticketNumber' + 'ticketNumber' => 'ticketNumber', + 'noSap' => 'noSap' ]; /** @@ -133,7 +136,8 @@ public static function swaggerFormats() 'classification' => 'setClassification', 'invoiceNotice' => 'setInvoiceNotice', 'notice' => 'setNotice', - 'ticketNumber' => 'setTicketNumber' + 'ticketNumber' => 'setTicketNumber', + 'noSap' => 'setNoSap' ]; /** @@ -149,7 +153,8 @@ public static function swaggerFormats() 'classification' => 'getClassification', 'invoiceNotice' => 'getInvoiceNotice', 'notice' => 'getNotice', - 'ticketNumber' => 'getTicketNumber' + 'ticketNumber' => 'getTicketNumber', + 'noSap' => 'getNoSap' ]; /** @@ -220,6 +225,7 @@ public function __construct(array $data = null) $this->container['invoiceNotice'] = isset($data['invoiceNotice']) ? $this->createData($data['invoiceNotice'], 'invoiceNotice') : null; $this->container['notice'] = isset($data['notice']) ? $this->createData($data['notice'], 'notice') : null; $this->container['ticketNumber'] = isset($data['ticketNumber']) ? $this->createData($data['ticketNumber'], 'ticketNumber') : null; + $this->container['noSap'] = isset($data['noSap']) ? $this->createData($data['noSap'], 'noSap') : null; } /** @@ -495,6 +501,30 @@ public function setTicketNumber($ticketNumber) return $this; } + + /** + * Gets noSap + * + * @return bool + */ + public function getNoSap() + { + return $this->container['noSap']; + } + + /** + * Sets noSap + * + * @param bool $noSap If sap is set or not + * + * @return $this + */ + public function setNoSap($noSap) + { + $this->container['noSap'] = $noSap; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DNSSec.php b/src/Model/DNSSec.php index 880a7cfc..5f7dac81 100644 --- a/src/Model/DNSSec.php +++ b/src/Model/DNSSec.php @@ -338,7 +338,7 @@ public function getFlags() /** * Sets flags * - * @param int $flags The flags. + * @param int $flags DNSSEC type Supported values: 256 (zone signing key) 257 (key signing key) * * @return $this */ @@ -394,7 +394,7 @@ public function getPublicKey() /** * Sets publicKey * - * @param string $publicKey The public key. + * @param string $publicKey The public key. With the pattern ^[\\sA-Za-z0-9+/]+[=]*$ * * @return $this */ diff --git a/src/Model/Domain.php b/src/Model/Domain.php index 42aebbdb..eed2a2c9 100644 --- a/src/Model/Domain.php +++ b/src/Model/Domain.php @@ -59,8 +59,8 @@ class Domain implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'idn' => 'string', 'domainCreated' => '\DateTime', @@ -72,6 +72,7 @@ class Domain implements ModelInterface, ArrayAccess 'trustee' => 'bool', 'privacy' => 'bool', 'authinfo' => 'string', + 'authinfoExpire' => '\DateTime', 'domainsafe' => 'bool', 'parking' => '\Domainrobot\Model\ParkingProviderConstants', 'extensions' => '\Domainrobot\Model\DomainExtensions', @@ -131,6 +132,7 @@ class Domain implements ModelInterface, ArrayAccess 'trustee' => null, 'privacy' => null, 'authinfo' => null, + 'authinfoExpire' => 'date-time', 'domainsafe' => null, 'parking' => null, 'extensions' => null, @@ -211,6 +213,7 @@ public static function swaggerFormats() 'trustee' => 'trustee', 'privacy' => 'privacy', 'authinfo' => 'authinfo', + 'authinfoExpire' => 'authinfoExpire', 'domainsafe' => 'domainsafe', 'parking' => 'parking', 'extensions' => 'extensions', @@ -270,6 +273,7 @@ public static function swaggerFormats() 'trustee' => 'setTrustee', 'privacy' => 'setPrivacy', 'authinfo' => 'setAuthinfo', + 'authinfoExpire' => 'setAuthinfoExpire', 'domainsafe' => 'setDomainsafe', 'parking' => 'setParking', 'extensions' => 'setExtensions', @@ -329,6 +333,7 @@ public static function swaggerFormats() 'trustee' => 'getTrustee', 'privacy' => 'getPrivacy', 'authinfo' => 'getAuthinfo', + 'authinfoExpire' => 'getAuthinfoExpire', 'domainsafe' => 'getDomainsafe', 'parking' => 'getParking', 'extensions' => 'getExtensions', @@ -442,6 +447,7 @@ public function __construct(array $data = null) $this->container['trustee'] = isset($data['trustee']) ? $this->createData($data['trustee'], 'trustee') : null; $this->container['privacy'] = isset($data['privacy']) ? $this->createData($data['privacy'], 'privacy') : null; $this->container['authinfo'] = isset($data['authinfo']) ? $this->createData($data['authinfo'], 'authinfo') : null; + $this->container['authinfoExpire'] = isset($data['authinfoExpire']) ? $this->createData($data['authinfoExpire'], 'authinfoExpire') : null; $this->container['domainsafe'] = isset($data['domainsafe']) ? $this->createData($data['domainsafe'], 'domainsafe') : null; $this->container['parking'] = isset($data['parking']) ? $this->createData($data['parking'], 'parking') : null; $this->container['extensions'] = isset($data['extensions']) ? $this->createData($data['extensions'], 'extensions') : null; @@ -619,7 +625,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -629,7 +635,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -643,7 +649,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -653,7 +659,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -928,6 +934,30 @@ public function setAuthinfo($authinfo) return $this; } + /** + * Gets authinfoExpire + * + * @return \DateTime + */ + public function getAuthinfoExpire() + { + return $this->container['authinfoExpire']; + } + + /** + * Sets authinfoExpire + * + * @param \DateTime $authinfoExpire The expire date of the authinfo. + * + * @return $this + */ + public function setAuthinfoExpire($authinfoExpire) + { + $this->container['authinfoExpire'] = $authinfoExpire; + + return $this; + } + /** * Gets domainsafe * diff --git a/src/Model/DomainActionConstants.php b/src/Model/DomainActionConstants.php index 8df7b3be..8dbdf1e7 100644 --- a/src/Model/DomainActionConstants.php +++ b/src/Model/DomainActionConstants.php @@ -82,6 +82,7 @@ class DomainActionConstants const AUTOUPDATE_DEFERRED = 'AUTOUPDATE_DEFERRED'; const DOMAIN_BUY = 'DOMAIN_BUY'; const CONTACT_CREATE = 'CONTACT_CREATE'; + const DELETE_EXPIRE = 'DELETE_EXPIRE'; /** * Gets allowable values of the enum @@ -129,6 +130,7 @@ public static function getAllowableEnumValues() self::AUTOUPDATE_DEFERRED, self::DOMAIN_BUY, self::CONTACT_CREATE, + self::DELETE_EXPIRE, ]; } } diff --git a/src/Model/DomainCancelation.php b/src/Model/DomainCancelation.php index 008fe5b7..3e585454 100644 --- a/src/Model/DomainCancelation.php +++ b/src/Model/DomainCancelation.php @@ -59,8 +59,8 @@ class DomainCancelation implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'domain' => 'string', 'registryWhen' => '\DateTime', 'gainingRegistrar' => 'string', @@ -400,7 +400,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -410,7 +410,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -424,7 +424,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -434,7 +434,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/DomainEnvelope.php b/src/Model/DomainEnvelope.php index 1610338a..c5cae7af 100644 --- a/src/Model/DomainEnvelope.php +++ b/src/Model/DomainEnvelope.php @@ -68,7 +68,8 @@ class DomainEnvelope implements ModelInterface, ArrayAccess 'forceDnsCheck' => 'bool', 'whoisTimeout' => 'int', 'onlyAvailable' => 'bool', - 'isPrereg' => 'bool' + 'isPrereg' => 'bool', + 'notification' => '\Domainrobot\Model\Notification' ]; /** @@ -88,7 +89,8 @@ class DomainEnvelope implements ModelInterface, ArrayAccess 'forceDnsCheck' => null, 'whoisTimeout' => 'int32', 'onlyAvailable' => null, - 'isPrereg' => null + 'isPrereg' => null, + 'notification' => null ]; /** @@ -129,7 +131,8 @@ public static function swaggerFormats() 'forceDnsCheck' => 'forceDnsCheck', 'whoisTimeout' => 'whoisTimeout', 'onlyAvailable' => 'onlyAvailable', - 'isPrereg' => 'isPrereg' + 'isPrereg' => 'isPrereg', + 'notification' => 'notification' ]; /** @@ -149,7 +152,8 @@ public static function swaggerFormats() 'forceDnsCheck' => 'setForceDnsCheck', 'whoisTimeout' => 'setWhoisTimeout', 'onlyAvailable' => 'setOnlyAvailable', - 'isPrereg' => 'setIsPrereg' + 'isPrereg' => 'setIsPrereg', + 'notification' => 'setNotification' ]; /** @@ -169,7 +173,8 @@ public static function swaggerFormats() 'forceDnsCheck' => 'getForceDnsCheck', 'whoisTimeout' => 'getWhoisTimeout', 'onlyAvailable' => 'getOnlyAvailable', - 'isPrereg' => 'getIsPrereg' + 'isPrereg' => 'getIsPrereg', + 'notification' => 'getNotification' ]; /** @@ -244,6 +249,7 @@ public function __construct(array $data = null) $this->container['whoisTimeout'] = isset($data['whoisTimeout']) ? $this->createData($data['whoisTimeout'], 'whoisTimeout') : null; $this->container['onlyAvailable'] = isset($data['onlyAvailable']) ? $this->createData($data['onlyAvailable'], 'onlyAvailable') : null; $this->container['isPrereg'] = isset($data['isPrereg']) ? $this->createData($data['isPrereg'], 'isPrereg') : null; + $this->container['notification'] = isset($data['notification']) ? $this->createData($data['notification'], 'notification') : null; } /** @@ -612,6 +618,30 @@ public function setIsPrereg($isPrereg) return $this; } + + /** + * Gets notification + * + * @return \Domainrobot\Model\Notification + */ + public function getNotification() + { + return $this->container['notification']; + } + + /** + * Sets notification + * + * @param \Domainrobot\Model\Notification $notification Notification + * + * @return $this + */ + public function setNotification($notification) + { + $this->container['notification'] = $notification; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DomainEnvelopeSearchRequest.php b/src/Model/DomainEnvelopeSearchRequest.php index 0c8e5349..db1103a2 100644 --- a/src/Model/DomainEnvelopeSearchRequest.php +++ b/src/Model/DomainEnvelopeSearchRequest.php @@ -65,6 +65,9 @@ class DomainEnvelopeSearchRequest implements ModelInterface, ArrayAccess 'allowDuplicates' => 'bool', 'sources' => '\Domainrobot\Model\DomainStudioSources', 'clientIp' => 'string', + 'ctid' => 'string', + 'stid' => 'string', + 'agent' => 'string', 'onlyAvailable' => 'bool', 'whoisTimeout' => 'int', 'ignorePremium' => 'bool', @@ -85,6 +88,9 @@ class DomainEnvelopeSearchRequest implements ModelInterface, ArrayAccess 'allowDuplicates' => null, 'sources' => null, 'clientIp' => null, + 'ctid' => null, + 'stid' => null, + 'agent' => null, 'onlyAvailable' => null, 'whoisTimeout' => 'int32', 'ignorePremium' => null, @@ -126,6 +132,9 @@ public static function swaggerFormats() 'allowDuplicates' => 'allowDuplicates', 'sources' => 'sources', 'clientIp' => 'clientIp', + 'ctid' => 'ctid', + 'stid' => 'stid', + 'agent' => 'agent', 'onlyAvailable' => 'onlyAvailable', 'whoisTimeout' => 'whoisTimeout', 'ignorePremium' => 'ignorePremium', @@ -146,6 +155,9 @@ public static function swaggerFormats() 'allowDuplicates' => 'setAllowDuplicates', 'sources' => 'setSources', 'clientIp' => 'setClientIp', + 'ctid' => 'setCtid', + 'stid' => 'setStid', + 'agent' => 'setAgent', 'onlyAvailable' => 'setOnlyAvailable', 'whoisTimeout' => 'setWhoisTimeout', 'ignorePremium' => 'setIgnorePremium', @@ -166,6 +178,9 @@ public static function swaggerFormats() 'allowDuplicates' => 'getAllowDuplicates', 'sources' => 'getSources', 'clientIp' => 'getClientIp', + 'ctid' => 'getCtid', + 'stid' => 'getStid', + 'agent' => 'getAgent', 'onlyAvailable' => 'getOnlyAvailable', 'whoisTimeout' => 'getWhoisTimeout', 'ignorePremium' => 'getIgnorePremium', @@ -240,6 +255,9 @@ public function __construct(array $data = null) $this->container['allowDuplicates'] = isset($data['allowDuplicates']) ? $this->createData($data['allowDuplicates'], 'allowDuplicates') : null; $this->container['sources'] = isset($data['sources']) ? $this->createData($data['sources'], 'sources') : null; $this->container['clientIp'] = isset($data['clientIp']) ? $this->createData($data['clientIp'], 'clientIp') : null; + $this->container['ctid'] = isset($data['ctid']) ? $this->createData($data['ctid'], 'ctid') : null; + $this->container['stid'] = isset($data['stid']) ? $this->createData($data['stid'], 'stid') : null; + $this->container['agent'] = isset($data['agent']) ? $this->createData($data['agent'], 'agent') : null; $this->container['onlyAvailable'] = isset($data['onlyAvailable']) ? $this->createData($data['onlyAvailable'], 'onlyAvailable') : null; $this->container['whoisTimeout'] = isset($data['whoisTimeout']) ? $this->createData($data['whoisTimeout'], 'whoisTimeout') : null; $this->container['ignorePremium'] = isset($data['ignorePremium']) ? $this->createData($data['ignorePremium'], 'ignorePremium') : null; @@ -517,6 +535,78 @@ public function setClientIp($clientIp) return $this; } + /** + * Gets ctid + * + * @return string + */ + public function getCtid() + { + return $this->container['ctid']; + } + + /** + * Sets ctid + * + * @param string $ctid The ctid of the request. Only readable! + * + * @return $this + */ + public function setCtid($ctid) + { + $this->container['ctid'] = $ctid; + + return $this; + } + + /** + * Gets stid + * + * @return string + */ + public function getStid() + { + return $this->container['stid']; + } + + /** + * Sets stid + * + * @param string $stid The stid of the request. Only readable! + * + * @return $this + */ + public function setStid($stid) + { + $this->container['stid'] = $stid; + + return $this; + } + + /** + * Gets agent + * + * @return string + */ + public function getAgent() + { + return $this->container['agent']; + } + + /** + * Sets agent + * + * @param string $agent The user agent of the request. Only readable! + * + * @return $this + */ + public function setAgent($agent) + { + $this->container['agent'] = $agent; + + return $this; + } + /** * Gets onlyAvailable * diff --git a/src/Model/DomainExtensions.php b/src/Model/DomainExtensions.php index 204c0570..5e0ae77a 100644 --- a/src/Model/DomainExtensions.php +++ b/src/Model/DomainExtensions.php @@ -62,7 +62,8 @@ class DomainExtensions implements ModelInterface, ArrayAccess 'parkingExtensions' => '\Domainrobot\Model\DomainParkingExtensions', 'tmchClaimsNoticeExtensions' => '\Domainrobot\Model\DomainTmchClaimNoticeExtensions', 'verificationExtensions' => '\Domainrobot\Model\ContactVerificationDomain', - 'cancelationExtensions' => '\Domainrobot\Model\DomainCancelationExtensions' + 'cancelationExtensions' => '\Domainrobot\Model\DomainCancelationExtensions', + 'sellExtensions' => '\Domainrobot\Model\DomainSellExtensions' ]; /** @@ -76,7 +77,8 @@ class DomainExtensions implements ModelInterface, ArrayAccess 'parkingExtensions' => null, 'tmchClaimsNoticeExtensions' => null, 'verificationExtensions' => null, - 'cancelationExtensions' => null + 'cancelationExtensions' => null, + 'sellExtensions' => null ]; /** @@ -111,7 +113,8 @@ public static function swaggerFormats() 'parkingExtensions' => 'parkingExtensions', 'tmchClaimsNoticeExtensions' => 'tmchClaimsNoticeExtensions', 'verificationExtensions' => 'verificationExtensions', - 'cancelationExtensions' => 'cancelationExtensions' + 'cancelationExtensions' => 'cancelationExtensions', + 'sellExtensions' => 'sellExtensions' ]; /** @@ -125,7 +128,8 @@ public static function swaggerFormats() 'parkingExtensions' => 'setParkingExtensions', 'tmchClaimsNoticeExtensions' => 'setTmchClaimsNoticeExtensions', 'verificationExtensions' => 'setVerificationExtensions', - 'cancelationExtensions' => 'setCancelationExtensions' + 'cancelationExtensions' => 'setCancelationExtensions', + 'sellExtensions' => 'setSellExtensions' ]; /** @@ -139,7 +143,8 @@ public static function swaggerFormats() 'parkingExtensions' => 'getParkingExtensions', 'tmchClaimsNoticeExtensions' => 'getTmchClaimsNoticeExtensions', 'verificationExtensions' => 'getVerificationExtensions', - 'cancelationExtensions' => 'getCancelationExtensions' + 'cancelationExtensions' => 'getCancelationExtensions', + 'sellExtensions' => 'getSellExtensions' ]; /** @@ -208,6 +213,7 @@ public function __construct(array $data = null) $this->container['tmchClaimsNoticeExtensions'] = isset($data['tmchClaimsNoticeExtensions']) ? $this->createData($data['tmchClaimsNoticeExtensions'], 'tmchClaimsNoticeExtensions') : null; $this->container['verificationExtensions'] = isset($data['verificationExtensions']) ? $this->createData($data['verificationExtensions'], 'verificationExtensions') : null; $this->container['cancelationExtensions'] = isset($data['cancelationExtensions']) ? $this->createData($data['cancelationExtensions'], 'cancelationExtensions') : null; + $this->container['sellExtensions'] = isset($data['sellExtensions']) ? $this->createData($data['sellExtensions'], 'sellExtensions') : null; } /** @@ -432,6 +438,30 @@ public function setCancelationExtensions($cancelationExtensions) return $this; } + + /** + * Gets sellExtensions + * + * @return \Domainrobot\Model\DomainSellExtensions + */ + public function getSellExtensions() + { + return $this->container['sellExtensions']; + } + + /** + * Sets sellExtensions + * + * @param \Domainrobot\Model\DomainSellExtensions $sellExtensions sellExtensions + * + * @return $this + */ + public function setSellExtensions($sellExtensions) + { + $this->container['sellExtensions'] = $sellExtensions; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DomainMonitoring.php b/src/Model/DomainMonitoring.php index 9c1fbb32..cf2a1e7d 100644 --- a/src/Model/DomainMonitoring.php +++ b/src/Model/DomainMonitoring.php @@ -59,8 +59,8 @@ class DomainMonitoring implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'idn' => 'string', 'notificationMobiles' => '\Domainrobot\Model\Phone[]', @@ -379,7 +379,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -389,7 +389,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -403,7 +403,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -413,7 +413,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -437,7 +437,7 @@ public function getName() /** * Sets name * - * @param string $name The name of the domain. + * @param string $name Domain to be monitored. * * @return $this */ @@ -461,7 +461,7 @@ public function getIdn() /** * Sets idn * - * @param string $idn The idn version of the domain. + * @param string $idn The IDN version of the domain written in Punycode syntax to be monitored. * * @return $this */ @@ -485,7 +485,7 @@ public function getNotificationMobiles() /** * Sets notificationMobiles * - * @param \Domainrobot\Model\Phone[] $notificationMobiles The notification mobile phone numbers. + * @param \Domainrobot\Model\Phone[] $notificationMobiles Mobile phone number to which an SMS is sent when the status changes. * * @return $this */ @@ -509,7 +509,7 @@ public function getOcval() /** * Sets ocval * - * @param bool $ocval The ocval + * @param bool $ocval Monitoring setting for OwnerC validation. false = OwnerC validation should not be monitored. true = OwnerC validation should be monitored. Default value = false * * @return $this */ @@ -533,7 +533,7 @@ public function getCancelation() /** * Sets cancelation * - * @param bool $cancelation The cancelation + * @param bool $cancelation Monitoring setting for domain cancelations. false = Domain cancelations should not be monitored. true = Domain cancelations should be monitored. Default value = false * * @return $this */ @@ -557,7 +557,7 @@ public function getRemoved() /** * Sets removed * - * @param bool $removed The removed + * @param bool $removed Monitoring setting for domain deletions. false = Domain deletions should not be monitored. true = Domain deletions should be monitored. Default value = false * * @return $this */ @@ -581,7 +581,7 @@ public function getMonitoringSetups() /** * Sets monitoringSetups * - * @param \Domainrobot\Model\DomainMonitoringSetup[] $monitoringSetups The monitoringSetups + * @param \Domainrobot\Model\DomainMonitoringSetup[] $monitoringSetups Contains the setup data for domain monitoring. * * @return $this */ @@ -605,7 +605,7 @@ public function getNotificationEmails() /** * Sets notificationEmails * - * @param string[] $notificationEmails The notification email-addresses. + * @param string[] $notificationEmails Email addresses to which an email is sent when the status changes. * * @return $this */ diff --git a/src/Model/DomainMonitoringSetup.php b/src/Model/DomainMonitoringSetup.php index 502146b5..3978935b 100644 --- a/src/Model/DomainMonitoringSetup.php +++ b/src/Model/DomainMonitoringSetup.php @@ -58,8 +58,7 @@ class DomainMonitoringSetup implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'created' => '\DateTime', - 'updated' => '\DateTime', - 'data' => 'string' + 'updated' => '\DateTime' ]; /** @@ -69,8 +68,7 @@ class DomainMonitoringSetup implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'created' => 'date-time', - 'updated' => 'date-time', - 'data' => null + 'updated' => 'date-time' ]; /** @@ -101,8 +99,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'created' => 'created', - 'updated' => 'updated', - 'data' => 'data' + 'updated' => 'updated' ]; /** @@ -112,8 +109,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'created' => 'setCreated', - 'updated' => 'setUpdated', - 'data' => 'setData' + 'updated' => 'setUpdated' ]; /** @@ -123,8 +119,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'created' => 'getCreated', - 'updated' => 'getUpdated', - 'data' => 'getData' + 'updated' => 'getUpdated' ]; /** @@ -189,7 +184,6 @@ public function __construct(array $data = null) { $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; - $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; } /** @@ -318,30 +312,6 @@ public function setUpdated($updated) return $this; } - - /** - * Gets data - * - * @return string - */ - public function getData() - { - return $this->container['data']; - } - - /** - * Sets data - * - * @param string $data The data - * - * @return $this - */ - public function setData($data) - { - $this->container['data'] = $data; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/DomainPremium.php b/src/Model/DomainPremium.php index 490e6d33..66ecbe8a 100644 --- a/src/Model/DomainPremium.php +++ b/src/Model/DomainPremium.php @@ -68,8 +68,9 @@ class DomainPremium implements ModelInterface, ArrayAccess 'provider' => 'string', 'configuration' => '\Domainrobot\Model\Configuration', 'metric' => '\Domainrobot\Model\Metric', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', + 'minPrice' => 'double', 'premiumStatus' => '\Domainrobot\Model\PremiumStatusConstants' ]; @@ -92,6 +93,7 @@ class DomainPremium implements ModelInterface, ArrayAccess 'metric' => null, 'owner' => null, 'updater' => null, + 'minPrice' => 'double', 'premiumStatus' => null ]; @@ -135,6 +137,7 @@ public static function swaggerFormats() 'metric' => 'metric', 'owner' => 'owner', 'updater' => 'updater', + 'minPrice' => 'minPrice', 'premiumStatus' => 'premiumStatus' ]; @@ -157,6 +160,7 @@ public static function swaggerFormats() 'metric' => 'setMetric', 'owner' => 'setOwner', 'updater' => 'setUpdater', + 'minPrice' => 'setMinPrice', 'premiumStatus' => 'setPremiumStatus' ]; @@ -179,6 +183,7 @@ public static function swaggerFormats() 'metric' => 'getMetric', 'owner' => 'getOwner', 'updater' => 'getUpdater', + 'minPrice' => 'getMinPrice', 'premiumStatus' => 'getPremiumStatus' ]; @@ -255,6 +260,7 @@ public function __construct(array $data = null) $this->container['metric'] = isset($data['metric']) ? $this->createData($data['metric'], 'metric') : null; $this->container['owner'] = isset($data['owner']) ? $this->createData($data['owner'], 'owner') : null; $this->container['updater'] = isset($data['updater']) ? $this->createData($data['updater'], 'updater') : null; + $this->container['minPrice'] = isset($data['minPrice']) ? $this->createData($data['minPrice'], 'minPrice') : null; $this->container['premiumStatus'] = isset($data['premiumStatus']) ? $this->createData($data['premiumStatus'], 'premiumStatus') : null; } @@ -407,7 +413,7 @@ public function getName() /** * Sets name * - * @param string $name The domain name + * @param string $name Domain name. * * @return $this */ @@ -431,7 +437,7 @@ public function getIdn() /** * Sets idn * - * @param string $idn The unicode domain name + * @param string $idn The domain name written in Punycode syntax(IDN). * * @return $this */ @@ -455,7 +461,7 @@ public function getPriceClass() /** * Sets priceClass * - * @param string $priceClass The related price class + * @param string $priceClass The price class of the domain when registering. * * @return $this */ @@ -479,7 +485,7 @@ public function getPriceClassRenew() /** * Sets priceClassRenew * - * @param string $priceClassRenew The related price class for the domain renew + * @param string $priceClassRenew The price class of the domain at renew. * * @return $this */ @@ -503,7 +509,7 @@ public function getPrice() /** * Sets price * - * @param double $price The current price amount + * @param double $price The current domain price. * * @return $this */ @@ -527,7 +533,7 @@ public function getCurrency() /** * Sets currency * - * @param string $currency The current currency + * @param string $currency A system of money in common use within a specific environment over time. Currency codes are used in the ISO 4217 format. * * @return $this */ @@ -551,7 +557,7 @@ public function getProvider() /** * Sets provider * - * @param string $provider provider + * @param string $provider Name of the provider who provides this domain. * * @return $this */ @@ -575,7 +581,7 @@ public function getConfiguration() /** * Sets configuration * - * @param \Domainrobot\Model\Configuration $configuration Additional information + * @param \Domainrobot\Model\Configuration $configuration Additional information. * * @return $this */ @@ -599,7 +605,7 @@ public function getMetric() /** * Sets metric * - * @param \Domainrobot\Model\Metric $metric Some domain metrics + * @param \Domainrobot\Model\Metric $metric Metrics of the domain, e.g. * * @return $this */ @@ -613,7 +619,7 @@ public function setMetric($metric) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -623,7 +629,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -637,7 +643,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -647,7 +653,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -658,6 +664,30 @@ public function setUpdater($updater) return $this; } + /** + * Gets minPrice + * + * @return double + */ + public function getMinPrice() + { + return $this->container['minPrice']; + } + + /** + * Sets minPrice + * + * @param double $minPrice Sedo Make-Offer minimum price. + * + * @return $this + */ + public function setMinPrice($minPrice) + { + $this->container['minPrice'] = $minPrice; + + return $this; + } + /** * Gets premiumStatus * @@ -671,7 +701,7 @@ public function getPremiumStatus() /** * Sets premiumStatus * - * @param \Domainrobot\Model\PremiumStatusConstants $premiumStatus The actual domain premium status + * @param \Domainrobot\Model\PremiumStatusConstants $premiumStatus The domain status. * * @return $this */ diff --git a/src/Model/DomainPrereg.php b/src/Model/DomainPrereg.php index 1ae57f9e..a036dcdc 100644 --- a/src/Model/DomainPrereg.php +++ b/src/Model/DomainPrereg.php @@ -59,8 +59,8 @@ class DomainPrereg implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'ownerc' => '\Domainrobot\Model\Contact', 'adminc' => '\Domainrobot\Model\Contact', 'techc' => '\Domainrobot\Model\Contact', @@ -454,7 +454,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -464,7 +464,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -478,7 +478,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -488,7 +488,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/DomainPreregAddon.php b/src/Model/DomainPreregAddon.php index 6890d8f0..df1cd492 100644 --- a/src/Model/DomainPreregAddon.php +++ b/src/Model/DomainPreregAddon.php @@ -374,7 +374,7 @@ public function getIrpAppDate() /** * Sets irpAppDate * - * @param \DateTime $irpAppDate The Irp App Date. + * @param \DateTime $irpAppDate Date on which the trademark was applied for. * * @return $this */ @@ -398,7 +398,7 @@ public function getIrpCcLocality() /** * Sets irpCcLocality * - * @param string $irpCcLocality The Irp Cc Locality. + * @param string $irpCcLocality Country code of where the trademark is registered. * * @return $this */ @@ -422,7 +422,7 @@ public function getIrpName() /** * Sets irpName * - * @param string $irpName The Irp Name. + * @param string $irpName Name of the right or trademark. * * @return $this */ @@ -446,7 +446,7 @@ public function getIrpNumber() /** * Sets irpNumber * - * @param string $irpNumber The Irp Number. + * @param string $irpNumber Number of the right or trademark. * * @return $this */ @@ -470,7 +470,7 @@ public function getIrpPvrc() /** * Sets irpPvrc * - * @param string $irpPvrc The Irp Pvrc. + * @param string $irpPvrc The pre-validation code. * * @return $this */ @@ -494,7 +494,7 @@ public function getIrpRegDate() /** * Sets irpRegDate * - * @param \DateTime $irpRegDate The Irp Reg Date. + * @param \DateTime $irpRegDate Date on which the mark was assigned. * * @return $this */ @@ -518,7 +518,7 @@ public function getMode() /** * Sets mode * - * @param string $mode The addon update mode. + * @param string $mode The addon update mode, defining the procedure upon updating addons. * * @return $this */ @@ -542,7 +542,7 @@ public function getConfirmOrder() /** * Sets confirmOrder * - * @param bool $confirmOrder Confirm order. + * @param bool $confirmOrder Confirmation of the order false = No confirmation true = Confirmation Default value = false * * @return $this */ @@ -566,7 +566,7 @@ public function getExternalReference() /** * Sets externalReference * - * @param string $externalReference The external reference. + * @param string $externalReference Reference of the trademark entry. * * @return $this */ @@ -590,7 +590,7 @@ public function getNotAfter() /** * Sets notAfter * - * @param \DateTime $notAfter The not after date. + * @param \DateTime $notAfter Date until which the trademark registration is valid. * * @return $this */ @@ -614,7 +614,7 @@ public function getConfirmed() /** * Sets confirmed * - * @param \DateTime $confirmed The confirmed date. + * @param \DateTime $confirmed Date on which the trademark registration was confirmed. * * @return $this */ @@ -638,7 +638,7 @@ public function getConfirmIp() /** * Sets confirmIp * - * @param string $confirmIp The confirm ip. + * @param string $confirmIp IP from which the trademark registration was confirmed. * * @return $this */ @@ -662,7 +662,7 @@ public function getPriceClass() /** * Sets priceClass * - * @param string $priceClass The price class. + * @param string $priceClass Price class of the domain. * * @return $this */ diff --git a/src/Model/DomainRestore.php b/src/Model/DomainRestore.php index 00889a70..00a2b92f 100644 --- a/src/Model/DomainRestore.php +++ b/src/Model/DomainRestore.php @@ -59,8 +59,8 @@ class DomainRestore implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'idn' => 'string', 'domainCreated' => '\DateTime', @@ -72,6 +72,7 @@ class DomainRestore implements ModelInterface, ArrayAccess 'trustee' => 'bool', 'privacy' => 'bool', 'authinfo' => 'string', + 'authinfoExpire' => '\DateTime', 'domainsafe' => 'bool', 'parking' => '\Domainrobot\Model\ParkingProviderConstants', 'extensions' => '\Domainrobot\Model\DomainExtensions', @@ -133,6 +134,7 @@ class DomainRestore implements ModelInterface, ArrayAccess 'trustee' => null, 'privacy' => null, 'authinfo' => null, + 'authinfoExpire' => 'date-time', 'domainsafe' => null, 'parking' => null, 'extensions' => null, @@ -215,6 +217,7 @@ public static function swaggerFormats() 'trustee' => 'trustee', 'privacy' => 'privacy', 'authinfo' => 'authinfo', + 'authinfoExpire' => 'authinfoExpire', 'domainsafe' => 'domainsafe', 'parking' => 'parking', 'extensions' => 'extensions', @@ -276,6 +279,7 @@ public static function swaggerFormats() 'trustee' => 'setTrustee', 'privacy' => 'setPrivacy', 'authinfo' => 'setAuthinfo', + 'authinfoExpire' => 'setAuthinfoExpire', 'domainsafe' => 'setDomainsafe', 'parking' => 'setParking', 'extensions' => 'setExtensions', @@ -337,6 +341,7 @@ public static function swaggerFormats() 'trustee' => 'getTrustee', 'privacy' => 'getPrivacy', 'authinfo' => 'getAuthinfo', + 'authinfoExpire' => 'getAuthinfoExpire', 'domainsafe' => 'getDomainsafe', 'parking' => 'getParking', 'extensions' => 'getExtensions', @@ -452,6 +457,7 @@ public function __construct(array $data = null) $this->container['trustee'] = isset($data['trustee']) ? $this->createData($data['trustee'], 'trustee') : null; $this->container['privacy'] = isset($data['privacy']) ? $this->createData($data['privacy'], 'privacy') : null; $this->container['authinfo'] = isset($data['authinfo']) ? $this->createData($data['authinfo'], 'authinfo') : null; + $this->container['authinfoExpire'] = isset($data['authinfoExpire']) ? $this->createData($data['authinfoExpire'], 'authinfoExpire') : null; $this->container['domainsafe'] = isset($data['domainsafe']) ? $this->createData($data['domainsafe'], 'domainsafe') : null; $this->container['parking'] = isset($data['parking']) ? $this->createData($data['parking'], 'parking') : null; $this->container['extensions'] = isset($data['extensions']) ? $this->createData($data['extensions'], 'extensions') : null; @@ -631,7 +637,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -641,7 +647,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -655,7 +661,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -665,7 +671,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -940,6 +946,30 @@ public function setAuthinfo($authinfo) return $this; } + /** + * Gets authinfoExpire + * + * @return \DateTime + */ + public function getAuthinfoExpire() + { + return $this->container['authinfoExpire']; + } + + /** + * Sets authinfoExpire + * + * @param \DateTime $authinfoExpire The expire date of the authinfo. + * + * @return $this + */ + public function setAuthinfoExpire($authinfoExpire) + { + $this->container['authinfoExpire'] = $authinfoExpire; + + return $this; + } + /** * Gets domainsafe * diff --git a/src/Model/DomainSafeAccount.php b/src/Model/DomainSafeAccount.php index e3c7fd71..781e1ca0 100644 --- a/src/Model/DomainSafeAccount.php +++ b/src/Model/DomainSafeAccount.php @@ -59,8 +59,8 @@ class DomainSafeAccount implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'mobile' => '\Domainrobot\Model\Phone', 'pin' => 'string', @@ -364,7 +364,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -374,7 +374,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -388,7 +388,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -398,7 +398,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/DomainSafeObject.php b/src/Model/DomainSafeObject.php index 78a3e953..36763401 100644 --- a/src/Model/DomainSafeObject.php +++ b/src/Model/DomainSafeObject.php @@ -60,8 +60,8 @@ class DomainSafeObject implements ModelInterface, ArrayAccess 'type' => 'string', 'name' => 'string', 'idn' => 'string', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'updated' => '\DateTime' ]; @@ -370,7 +370,7 @@ public function setIdn($idn) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -380,7 +380,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The owner of the object + * @param \Domainrobot\Model\User $owner The owner of the object * * @return $this */ @@ -394,7 +394,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -404,7 +404,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater The updating user of the object + * @param \Domainrobot\Model\User $updater The updating user of the object * * @return $this */ diff --git a/src/Model/DomainSellExtensions.php b/src/Model/DomainSellExtensions.php new file mode 100644 index 00000000..cfe41b52 --- /dev/null +++ b/src/Model/DomainSellExtensions.php @@ -0,0 +1,524 @@ + 'string', + 'fixedPrice' => 'bool', + 'keywords' => 'string[]', + 'minPrice' => 'double', + 'mode' => '\Domainrobot\Model\SellMode' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'currency' => null, + 'fixedPrice' => null, + 'keywords' => null, + 'minPrice' => 'double', + 'mode' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'currency' => 'currency', + 'fixedPrice' => 'fixedPrice', + 'keywords' => 'keywords', + 'minPrice' => 'minPrice', + 'mode' => 'mode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'currency' => 'setCurrency', + 'fixedPrice' => 'setFixedPrice', + 'keywords' => 'setKeywords', + 'minPrice' => 'setMinPrice', + 'mode' => 'setMode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'currency' => 'getCurrency', + 'fixedPrice' => 'getFixedPrice', + 'keywords' => 'getKeywords', + 'minPrice' => 'getMinPrice', + 'mode' => 'getMode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['currency'] = isset($data['currency']) ? $this->createData($data['currency'], 'currency') : null; + $this->container['fixedPrice'] = isset($data['fixedPrice']) ? $this->createData($data['fixedPrice'], 'fixedPrice') : null; + $this->container['keywords'] = isset($data['keywords']) ? $this->createData($data['keywords'], 'keywords') : null; + $this->container['minPrice'] = isset($data['minPrice']) ? $this->createData($data['minPrice'], 'minPrice') : null; + $this->container['mode'] = isset($data['mode']) ? $this->createData($data['mode'], 'mode') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency The currency of the sale + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets fixedPrice + * + * @return bool + */ + public function getFixedPrice() + { + return $this->container['fixedPrice']; + } + + /** + * Sets fixedPrice + * + * @param bool $fixedPrice Is the price fix + * + * @return $this + */ + public function setFixedPrice($fixedPrice) + { + $this->container['fixedPrice'] = $fixedPrice; + + return $this; + } + + /** + * Gets keywords + * + * @return string[] + */ + public function getKeywords() + { + return $this->container['keywords']; + } + + /** + * Sets keywords + * + * @param string[] $keywords The keywords to use + * + * @return $this + */ + public function setKeywords($keywords) + { + $this->container['keywords'] = $keywords; + + return $this; + } + + /** + * Gets minPrice + * + * @return double + */ + public function getMinPrice() + { + return $this->container['minPrice']; + } + + /** + * Sets minPrice + * + * @param double $minPrice The minimum of price. Has to be between 0 and 16777215. + * + * @return $this + */ + public function setMinPrice($minPrice) + { + $this->container['minPrice'] = $minPrice; + + return $this; + } + + /** + * Gets mode + * + * @return \Domainrobot\Model\SellMode + */ + public function getMode() + { + return $this->container['mode']; + } + + /** + * Sets mode + * + * @param \Domainrobot\Model\SellMode $mode The mode. + * + * @return $this + */ + public function setMode($mode) + { + $this->container['mode'] = $mode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/DomainServices.php b/src/Model/DomainServices.php index 1c8893a3..01d9a321 100644 --- a/src/Model/DomainServices.php +++ b/src/Model/DomainServices.php @@ -290,7 +290,7 @@ public function getBackupMx() /** * Sets backupMx * - * @param \Domainrobot\Model\BackupMx[] $backupMx Removes pending services like BackupMX and MailProxy. + * @param \Domainrobot\Model\BackupMx[] $backupMx This object contains possible domain services that can be configured during a DomainCreate or DomainUpdate. * * @return $this */ @@ -314,7 +314,7 @@ public function getMailProxy() /** * Sets mailProxy * - * @param \Domainrobot\Model\MailProxy[] $mailProxy Removes pending services like BackupMX and MailProxy. + * @param \Domainrobot\Model\MailProxy[] $mailProxy This object contains possible domain services that can be configured during a DomainCreate or DomainUpdate. * * @return $this */ @@ -338,7 +338,7 @@ public function getRedirect() /** * Sets redirect * - * @param \Domainrobot\Model\Redirect[] $redirect Removes pending services like BackupMX and MailProxy. + * @param \Domainrobot\Model\Redirect[] $redirect This object contains possible domain services that can be configured during a DomainCreate or DomainUpdate. * * @return $this */ @@ -362,7 +362,7 @@ public function getDomainMonitoring() /** * Sets domainMonitoring * - * @param \Domainrobot\Model\DomainMonitoring[] $domainMonitoring Removes pending services like BackupMX and MailProxy. + * @param \Domainrobot\Model\DomainMonitoring[] $domainMonitoring This object contains possible domain services that can be configured during a DomainCreate or DomainUpdate. * * @return $this */ diff --git a/src/Model/DomainStudioDomainSource.php b/src/Model/DomainStudioDomainSource.php index cf3a7e9a..6ad2884e 100644 --- a/src/Model/DomainStudioDomainSource.php +++ b/src/Model/DomainStudioDomainSource.php @@ -55,6 +55,8 @@ class DomainStudioDomainSource const PERSONAL_NAMES = 'PERSONAL_NAMES'; const UPCOMING = 'UPCOMING'; const MARKET = 'MARKET'; + const DOMAINSBOT = 'DOMAINSBOT'; + const PLACEMENT_PLUS = 'PLACEMENT_PLUS'; /** * Gets allowable values of the enum @@ -75,6 +77,8 @@ public static function getAllowableEnumValues() self::PERSONAL_NAMES, self::UPCOMING, self::MARKET, + self::DOMAINSBOT, + self::PLACEMENT_PLUS, ]; } } diff --git a/src/Model/DomainStudioDomainStatus.php b/src/Model/DomainStudioDomainStatus.php index 468664c0..9758361d 100644 --- a/src/Model/DomainStudioDomainStatus.php +++ b/src/Model/DomainStudioDomainStatus.php @@ -53,6 +53,7 @@ class DomainStudioDomainStatus const RESERVED = 'RESERVED'; const PREMIUM_CLAIM = 'PREMIUM_CLAIM'; const CLAIM = 'CLAIM'; + const OFFER = 'OFFER'; /** * Gets allowable values of the enum @@ -71,6 +72,7 @@ public static function getAllowableEnumValues() self::RESERVED, self::PREMIUM_CLAIM, self::CLAIM, + self::OFFER, ]; } } diff --git a/src/Model/DomainStudioSourceDomainsBot.php b/src/Model/DomainStudioSourceDomainsBot.php new file mode 100644 index 00000000..cb739687 --- /dev/null +++ b/src/Model/DomainStudioSourceDomainsBot.php @@ -0,0 +1,824 @@ + '\Domainrobot\Model\DomainEnvelopeSearchService[]', + 'onlyAvailable' => 'bool', + 'domains' => 'string[]', + 'language' => 'string', + 'max' => 'int', + 'useDash' => 'bool', + 'useIdn' => 'bool', + 'tlds' => 'string[]', + 'func' => 'string', + 'adult' => 'bool', + 'minConfidence' => 'float', + 'defScore' => 'string[]', + 'sid' => 'string', + 'aid' => 'string', + 'rid' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'services' => null, + 'onlyAvailable' => null, + 'domains' => null, + 'language' => null, + 'max' => 'int32', + 'useDash' => null, + 'useIdn' => null, + 'tlds' => null, + 'func' => null, + 'adult' => null, + 'minConfidence' => 'float', + 'defScore' => null, + 'sid' => null, + 'aid' => null, + 'rid' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'services' => 'services', + 'onlyAvailable' => 'onlyAvailable', + 'domains' => 'domains', + 'language' => 'language', + 'max' => 'max', + 'useDash' => 'useDash', + 'useIdn' => 'useIdn', + 'tlds' => 'tlds', + 'func' => 'func', + 'adult' => 'adult', + 'minConfidence' => 'minConfidence', + 'defScore' => 'defScore', + 'sid' => 'sid', + 'aid' => 'aid', + 'rid' => 'rid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'services' => 'setServices', + 'onlyAvailable' => 'setOnlyAvailable', + 'domains' => 'setDomains', + 'language' => 'setLanguage', + 'max' => 'setMax', + 'useDash' => 'setUseDash', + 'useIdn' => 'setUseIdn', + 'tlds' => 'setTlds', + 'func' => 'setFunc', + 'adult' => 'setAdult', + 'minConfidence' => 'setMinConfidence', + 'defScore' => 'setDefScore', + 'sid' => 'setSid', + 'aid' => 'setAid', + 'rid' => 'setRid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'services' => 'getServices', + 'onlyAvailable' => 'getOnlyAvailable', + 'domains' => 'getDomains', + 'language' => 'getLanguage', + 'max' => 'getMax', + 'useDash' => 'getUseDash', + 'useIdn' => 'getUseIdn', + 'tlds' => 'getTlds', + 'func' => 'getFunc', + 'adult' => 'getAdult', + 'minConfidence' => 'getMinConfidence', + 'defScore' => 'getDefScore', + 'sid' => 'getSid', + 'aid' => 'getAid', + 'rid' => 'getRid' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['services'] = isset($data['services']) ? $this->createData($data['services'], 'services') : null; + $this->container['onlyAvailable'] = isset($data['onlyAvailable']) ? $this->createData($data['onlyAvailable'], 'onlyAvailable') : null; + $this->container['domains'] = isset($data['domains']) ? $this->createData($data['domains'], 'domains') : null; + $this->container['language'] = isset($data['language']) ? $this->createData($data['language'], 'language') : null; + $this->container['max'] = isset($data['max']) ? $this->createData($data['max'], 'max') : null; + $this->container['useDash'] = isset($data['useDash']) ? $this->createData($data['useDash'], 'useDash') : null; + $this->container['useIdn'] = isset($data['useIdn']) ? $this->createData($data['useIdn'], 'useIdn') : null; + $this->container['tlds'] = isset($data['tlds']) ? $this->createData($data['tlds'], 'tlds') : null; + $this->container['func'] = isset($data['func']) ? $this->createData($data['func'], 'func') : null; + $this->container['adult'] = isset($data['adult']) ? $this->createData($data['adult'], 'adult') : null; + $this->container['minConfidence'] = isset($data['minConfidence']) ? $this->createData($data['minConfidence'], 'minConfidence') : null; + $this->container['defScore'] = isset($data['defScore']) ? $this->createData($data['defScore'], 'defScore') : null; + $this->container['sid'] = isset($data['sid']) ? $this->createData($data['sid'], 'sid') : null; + $this->container['aid'] = isset($data['aid']) ? $this->createData($data['aid'], 'aid') : null; + $this->container['rid'] = isset($data['rid']) ? $this->createData($data['rid'], 'rid') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets services + * + * @return \Domainrobot\Model\DomainEnvelopeSearchService[] + */ + public function getServices() + { + return $this->container['services']; + } + + /** + * Sets services + * + * @param \Domainrobot\Model\DomainEnvelopeSearchService[] $services The services to fetch extra data from for this source + * + * @return $this + */ + public function setServices($services) + { + $this->container['services'] = $services; + + return $this; + } + + /** + * Gets onlyAvailable + * + * @return bool + */ + public function getOnlyAvailable() + { + return $this->container['onlyAvailable']; + } + + /** + * Sets onlyAvailable + * + * @param bool $onlyAvailable Defines whether to return only free domain names when service WHOIS is used for a source. + * + * @return $this + */ + public function setOnlyAvailable($onlyAvailable) + { + $this->container['onlyAvailable'] = $onlyAvailable; + + return $this; + } + + /** + * Gets domains + * + * @return string[] + */ + public function getDomains() + { + return $this->container['domains']; + } + + /** + * Sets domains + * + * @param string[] $domains The generated domains of this source + * + * @return $this + */ + public function setDomains($domains) + { + $this->container['domains'] = $domains; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language Suggestion language + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets max + * + * @return int + */ + public function getMax() + { + return $this->container['max']; + } + + /** + * Sets max + * + * @param int $max Maximum fetched suggested domains + * + * @return $this + */ + public function setMax($max) + { + $this->container['max'] = $max; + + return $this; + } + + /** + * Gets useDash + * + * @return bool + */ + public function getUseDash() + { + return $this->container['useDash']; + } + + /** + * Sets useDash + * + * @param bool $useDash Suggest domains with dash + * + * @return $this + */ + public function setUseDash($useDash) + { + $this->container['useDash'] = $useDash; + + return $this; + } + + /** + * Gets useIdn + * + * @return bool + */ + public function getUseIdn() + { + return $this->container['useIdn']; + } + + /** + * Sets useIdn + * + * @param bool $useIdn Suggest domains with idn + * + * @return $this + */ + public function setUseIdn($useIdn) + { + $this->container['useIdn'] = $useIdn; + + return $this; + } + + /** + * Gets tlds + * + * @return string[] + */ + public function getTlds() + { + return $this->container['tlds']; + } + + /** + * Sets tlds + * + * @param string[] $tlds Selected tlds + * + * @return $this + */ + public function setTlds($tlds) + { + $this->container['tlds'] = $tlds; + + return $this; + } + + /** + * Gets func + * + * @return string + */ + public function getFunc() + { + return $this->container['func']; + } + + /** + * Sets func + * + * @param string $func Defines the type of recommendation. Accepted values: 0 (default),1,2,3 and 4. 0 allows both TLD and Domain Recommendation. 1 allows only TLD Recommendations to be displayed. 2 allows only Domain Recommendations to be displayed 3 allows only TLD Recommendations to be displayed plus simple domain variations allows both TLD and Domain Recommendation (like func=0) BUT only returns Domains Recommendations that are either a top legacy TLD such as com, net or org or any TLD IF the confidence score is higher than a minimum threshold. + * + * @return $this + */ + public function setFunc($func) + { + $this->container['func'] = $func; + + return $this; + } + + /** + * Gets adult + * + * @return bool + */ + public function getAdult() + { + return $this->container['adult']; + } + + /** + * Sets adult + * + * @param bool $adult Exclude adult related and possibly offensive domains + * + * @return $this + */ + public function setAdult($adult) + { + $this->container['adult'] = $adult; + + return $this; + } + + /** + * Gets minConfidence + * + * @return float + */ + public function getMinConfidence() + { + return $this->container['minConfidence']; + } + + /** + * Sets minConfidence + * + * @param float $minConfidence filter our domains whose confidence score is lower than your threshold. This parameters accepts values between 0.0 and 1.0. The default value is set to 0.0. + * + * @return $this + */ + public function setMinConfidence($minConfidence) + { + $this->container['minConfidence'] = $minConfidence; + + return $this; + } + + /** + * Gets defScore + * + * @return string[] + */ + public function getDefScore() + { + return $this->container['defScore']; + } + + /** + * Sets defScore + * + * @param string[] $defScore Override the default selection of generic TLDs and their base score. TLD and their custom score must be separated by the column sign “:”. Example org:1,club:0.5,xyz:0.0 + * + * @return $this + */ + public function setDefScore($defScore) + { + $this->container['defScore'] = $defScore; + + return $this; + } + + /** + * Gets sid + * + * @return string + */ + public function getSid() + { + return $this->container['sid']; + } + + /** + * Sets sid + * + * @param string $sid The acronym for Session Identifier + * + * @return $this + */ + public function setSid($sid) + { + $this->container['sid'] = $sid; + + return $this; + } + + /** + * Gets aid + * + * @return string + */ + public function getAid() + { + return $this->container['aid']; + } + + /** + * Sets aid + * + * @param string $aid The acronym for AccountIdentifier + * + * @return $this + */ + public function setAid($aid) + { + $this->container['aid'] = $aid; + + return $this; + } + + /** + * Gets rid + * + * @return string + */ + public function getRid() + { + return $this->container['rid']; + } + + /** + * Sets rid + * + * @param string $rid The acronym for ResellerIdentifier + * + * @return $this + */ + public function setRid($rid) + { + $this->container['rid'] = $rid; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/DomainStudioSourcePlacementPlus.php b/src/Model/DomainStudioSourcePlacementPlus.php new file mode 100644 index 00000000..e66f7bb5 --- /dev/null +++ b/src/Model/DomainStudioSourcePlacementPlus.php @@ -0,0 +1,824 @@ + '\Domainrobot\Model\DomainEnvelopeSearchService[]', + 'onlyAvailable' => 'bool', + 'domains' => 'string[]', + 'language' => 'string', + 'max' => 'int', + 'useDash' => 'bool', + 'useIdn' => 'bool', + 'tlds' => 'string[]', + 'func' => 'string', + 'adult' => 'bool', + 'minConfidence' => 'float', + 'defScore' => 'string[]', + 'sid' => 'string', + 'aid' => 'string', + 'rid' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'services' => null, + 'onlyAvailable' => null, + 'domains' => null, + 'language' => null, + 'max' => 'int32', + 'useDash' => null, + 'useIdn' => null, + 'tlds' => null, + 'func' => null, + 'adult' => null, + 'minConfidence' => 'float', + 'defScore' => null, + 'sid' => null, + 'aid' => null, + 'rid' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'services' => 'services', + 'onlyAvailable' => 'onlyAvailable', + 'domains' => 'domains', + 'language' => 'language', + 'max' => 'max', + 'useDash' => 'useDash', + 'useIdn' => 'useIdn', + 'tlds' => 'tlds', + 'func' => 'func', + 'adult' => 'adult', + 'minConfidence' => 'minConfidence', + 'defScore' => 'defScore', + 'sid' => 'sid', + 'aid' => 'aid', + 'rid' => 'rid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'services' => 'setServices', + 'onlyAvailable' => 'setOnlyAvailable', + 'domains' => 'setDomains', + 'language' => 'setLanguage', + 'max' => 'setMax', + 'useDash' => 'setUseDash', + 'useIdn' => 'setUseIdn', + 'tlds' => 'setTlds', + 'func' => 'setFunc', + 'adult' => 'setAdult', + 'minConfidence' => 'setMinConfidence', + 'defScore' => 'setDefScore', + 'sid' => 'setSid', + 'aid' => 'setAid', + 'rid' => 'setRid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'services' => 'getServices', + 'onlyAvailable' => 'getOnlyAvailable', + 'domains' => 'getDomains', + 'language' => 'getLanguage', + 'max' => 'getMax', + 'useDash' => 'getUseDash', + 'useIdn' => 'getUseIdn', + 'tlds' => 'getTlds', + 'func' => 'getFunc', + 'adult' => 'getAdult', + 'minConfidence' => 'getMinConfidence', + 'defScore' => 'getDefScore', + 'sid' => 'getSid', + 'aid' => 'getAid', + 'rid' => 'getRid' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['services'] = isset($data['services']) ? $this->createData($data['services'], 'services') : null; + $this->container['onlyAvailable'] = isset($data['onlyAvailable']) ? $this->createData($data['onlyAvailable'], 'onlyAvailable') : null; + $this->container['domains'] = isset($data['domains']) ? $this->createData($data['domains'], 'domains') : null; + $this->container['language'] = isset($data['language']) ? $this->createData($data['language'], 'language') : null; + $this->container['max'] = isset($data['max']) ? $this->createData($data['max'], 'max') : null; + $this->container['useDash'] = isset($data['useDash']) ? $this->createData($data['useDash'], 'useDash') : null; + $this->container['useIdn'] = isset($data['useIdn']) ? $this->createData($data['useIdn'], 'useIdn') : null; + $this->container['tlds'] = isset($data['tlds']) ? $this->createData($data['tlds'], 'tlds') : null; + $this->container['func'] = isset($data['func']) ? $this->createData($data['func'], 'func') : null; + $this->container['adult'] = isset($data['adult']) ? $this->createData($data['adult'], 'adult') : null; + $this->container['minConfidence'] = isset($data['minConfidence']) ? $this->createData($data['minConfidence'], 'minConfidence') : null; + $this->container['defScore'] = isset($data['defScore']) ? $this->createData($data['defScore'], 'defScore') : null; + $this->container['sid'] = isset($data['sid']) ? $this->createData($data['sid'], 'sid') : null; + $this->container['aid'] = isset($data['aid']) ? $this->createData($data['aid'], 'aid') : null; + $this->container['rid'] = isset($data['rid']) ? $this->createData($data['rid'], 'rid') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets services + * + * @return \Domainrobot\Model\DomainEnvelopeSearchService[] + */ + public function getServices() + { + return $this->container['services']; + } + + /** + * Sets services + * + * @param \Domainrobot\Model\DomainEnvelopeSearchService[] $services The services to fetch extra data from for this source + * + * @return $this + */ + public function setServices($services) + { + $this->container['services'] = $services; + + return $this; + } + + /** + * Gets onlyAvailable + * + * @return bool + */ + public function getOnlyAvailable() + { + return $this->container['onlyAvailable']; + } + + /** + * Sets onlyAvailable + * + * @param bool $onlyAvailable Defines whether to return only free domain names when service WHOIS is used for a source. + * + * @return $this + */ + public function setOnlyAvailable($onlyAvailable) + { + $this->container['onlyAvailable'] = $onlyAvailable; + + return $this; + } + + /** + * Gets domains + * + * @return string[] + */ + public function getDomains() + { + return $this->container['domains']; + } + + /** + * Sets domains + * + * @param string[] $domains The generated domains of this source + * + * @return $this + */ + public function setDomains($domains) + { + $this->container['domains'] = $domains; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language Suggestion language + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets max + * + * @return int + */ + public function getMax() + { + return $this->container['max']; + } + + /** + * Sets max + * + * @param int $max Maximum fetched suggested domains + * + * @return $this + */ + public function setMax($max) + { + $this->container['max'] = $max; + + return $this; + } + + /** + * Gets useDash + * + * @return bool + */ + public function getUseDash() + { + return $this->container['useDash']; + } + + /** + * Sets useDash + * + * @param bool $useDash Suggest domains with dash + * + * @return $this + */ + public function setUseDash($useDash) + { + $this->container['useDash'] = $useDash; + + return $this; + } + + /** + * Gets useIdn + * + * @return bool + */ + public function getUseIdn() + { + return $this->container['useIdn']; + } + + /** + * Sets useIdn + * + * @param bool $useIdn Suggest domains with idn + * + * @return $this + */ + public function setUseIdn($useIdn) + { + $this->container['useIdn'] = $useIdn; + + return $this; + } + + /** + * Gets tlds + * + * @return string[] + */ + public function getTlds() + { + return $this->container['tlds']; + } + + /** + * Sets tlds + * + * @param string[] $tlds Selected tlds + * + * @return $this + */ + public function setTlds($tlds) + { + $this->container['tlds'] = $tlds; + + return $this; + } + + /** + * Gets func + * + * @return string + */ + public function getFunc() + { + return $this->container['func']; + } + + /** + * Sets func + * + * @param string $func Defines the type of recommendation. Accepted values: 0 (default),1,2,3 and 4. 0 allows both TLD and Domain Recommendation. 1 allows only TLD Recommendations to be displayed. 2 allows only Domain Recommendations to be displayed 3 allows only TLD Recommendations to be displayed plus simple domain variations allows both TLD and Domain Recommendation (like func=0) BUT only returns Domains Recommendations that are either a top legacy TLD such as com, net or org or any TLD IF the confidence score is higher than a minimum threshold. + * + * @return $this + */ + public function setFunc($func) + { + $this->container['func'] = $func; + + return $this; + } + + /** + * Gets adult + * + * @return bool + */ + public function getAdult() + { + return $this->container['adult']; + } + + /** + * Sets adult + * + * @param bool $adult Exclude adult related and possibly offensive domains + * + * @return $this + */ + public function setAdult($adult) + { + $this->container['adult'] = $adult; + + return $this; + } + + /** + * Gets minConfidence + * + * @return float + */ + public function getMinConfidence() + { + return $this->container['minConfidence']; + } + + /** + * Sets minConfidence + * + * @param float $minConfidence filter our domains whose confidence score is lower than your threshold. This parameters accepts values between 0.0 and 1.0. The default value is set to 0.0. + * + * @return $this + */ + public function setMinConfidence($minConfidence) + { + $this->container['minConfidence'] = $minConfidence; + + return $this; + } + + /** + * Gets defScore + * + * @return string[] + */ + public function getDefScore() + { + return $this->container['defScore']; + } + + /** + * Sets defScore + * + * @param string[] $defScore Override the default selection of generic TLDs and their base score. TLD and their custom score must be separated by the column sign “:”. Example org:1,club:0.5,xyz:0.0 + * + * @return $this + */ + public function setDefScore($defScore) + { + $this->container['defScore'] = $defScore; + + return $this; + } + + /** + * Gets sid + * + * @return string + */ + public function getSid() + { + return $this->container['sid']; + } + + /** + * Sets sid + * + * @param string $sid The acronym for Session Identifier + * + * @return $this + */ + public function setSid($sid) + { + $this->container['sid'] = $sid; + + return $this; + } + + /** + * Gets aid + * + * @return string + */ + public function getAid() + { + return $this->container['aid']; + } + + /** + * Sets aid + * + * @param string $aid The acronym for AccountIdentifier + * + * @return $this + */ + public function setAid($aid) + { + $this->container['aid'] = $aid; + + return $this; + } + + /** + * Gets rid + * + * @return string + */ + public function getRid() + { + return $this->container['rid']; + } + + /** + * Sets rid + * + * @param string $rid The acronym for ResellerIdentifier + * + * @return $this + */ + public function setRid($rid) + { + $this->container['rid'] = $rid; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/DomainStudioSources.php b/src/Model/DomainStudioSources.php index 609e7bc2..2d750cca 100644 --- a/src/Model/DomainStudioSources.php +++ b/src/Model/DomainStudioSources.php @@ -69,6 +69,8 @@ class DomainStudioSources implements ModelInterface, ArrayAccess 'personalNames' => '\Domainrobot\Model\DomainStudioSourcePersonalNames', 'spinWord' => '\Domainrobot\Model\DomainStudioSourceSpinWord', 'upcoming' => '\Domainrobot\Model\DomainStudioSourceUpcoming', + 'domainsbot' => '\Domainrobot\Model\DomainStudioSourceDomainsBot', + 'placementPlus' => '\Domainrobot\Model\DomainStudioSourcePlacementPlus', 'prefixSuffix' => '\Domainrobot\Model\DomainStudioSourcePrefixSuffix', 'semantic' => '\Domainrobot\Model\DomainStudioSourceSuggestion2' ]; @@ -91,6 +93,8 @@ class DomainStudioSources implements ModelInterface, ArrayAccess 'personalNames' => null, 'spinWord' => null, 'upcoming' => null, + 'domainsbot' => null, + 'placementPlus' => null, 'prefixSuffix' => null, 'semantic' => null ]; @@ -134,6 +138,8 @@ public static function swaggerFormats() 'personalNames' => 'personalNames', 'spinWord' => 'spinWord', 'upcoming' => 'upcoming', + 'domainsbot' => 'domainsbot', + 'placementPlus' => 'placementPlus', 'prefixSuffix' => 'prefixSuffix', 'semantic' => 'semantic' ]; @@ -156,6 +162,8 @@ public static function swaggerFormats() 'personalNames' => 'setPersonalNames', 'spinWord' => 'setSpinWord', 'upcoming' => 'setUpcoming', + 'domainsbot' => 'setDomainsbot', + 'placementPlus' => 'setPlacementPlus', 'prefixSuffix' => 'setPrefixSuffix', 'semantic' => 'setSemantic' ]; @@ -178,6 +186,8 @@ public static function swaggerFormats() 'personalNames' => 'getPersonalNames', 'spinWord' => 'getSpinWord', 'upcoming' => 'getUpcoming', + 'domainsbot' => 'getDomainsbot', + 'placementPlus' => 'getPlacementPlus', 'prefixSuffix' => 'getPrefixSuffix', 'semantic' => 'getSemantic' ]; @@ -254,6 +264,8 @@ public function __construct(array $data = null) $this->container['personalNames'] = isset($data['personalNames']) ? $this->createData($data['personalNames'], 'personalNames') : null; $this->container['spinWord'] = isset($data['spinWord']) ? $this->createData($data['spinWord'], 'spinWord') : null; $this->container['upcoming'] = isset($data['upcoming']) ? $this->createData($data['upcoming'], 'upcoming') : null; + $this->container['domainsbot'] = isset($data['domainsbot']) ? $this->createData($data['domainsbot'], 'domainsbot') : null; + $this->container['placementPlus'] = isset($data['placementPlus']) ? $this->createData($data['placementPlus'], 'placementPlus') : null; $this->container['prefixSuffix'] = isset($data['prefixSuffix']) ? $this->createData($data['prefixSuffix'], 'prefixSuffix') : null; $this->container['semantic'] = isset($data['semantic']) ? $this->createData($data['semantic'], 'semantic') : null; } @@ -625,6 +637,54 @@ public function setUpcoming($upcoming) return $this; } + /** + * Gets domainsbot + * + * @return \Domainrobot\Model\DomainStudioSourceDomainsBot + */ + public function getDomainsbot() + { + return $this->container['domainsbot']; + } + + /** + * Sets domainsbot + * + * @param \Domainrobot\Model\DomainStudioSourceDomainsBot $domainsbot The configuration for the domainsbot + * + * @return $this + */ + public function setDomainsbot($domainsbot) + { + $this->container['domainsbot'] = $domainsbot; + + return $this; + } + + /** + * Gets placementPlus + * + * @return \Domainrobot\Model\DomainStudioSourcePlacementPlus + */ + public function getPlacementPlus() + { + return $this->container['placementPlus']; + } + + /** + * Sets placementPlus + * + * @param \Domainrobot\Model\DomainStudioSourcePlacementPlus $placementPlus The configuration for the PlacementPlus source + * + * @return $this + */ + public function setPlacementPlus($placementPlus) + { + $this->container['placementPlus'] = $placementPlus; + + return $this; + } + /** * Gets prefixSuffix * diff --git a/src/Model/ExchangedPrice.php b/src/Model/ExchangedPrice.php index a9cce6a2..161ebc3a 100644 --- a/src/Model/ExchangedPrice.php +++ b/src/Model/ExchangedPrice.php @@ -60,8 +60,8 @@ class ExchangedPrice implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'updated' => '\DateTime', 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'amount' => 'double', 'type' => '\Domainrobot\Model\PriceTypeConstants', 'currency' => 'string', @@ -502,7 +502,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -512,7 +512,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -526,7 +526,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -536,7 +536,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/ExternalAccounting.php b/src/Model/ExternalAccounting.php index bcafd336..6a1227b5 100644 --- a/src/Model/ExternalAccounting.php +++ b/src/Model/ExternalAccounting.php @@ -59,8 +59,8 @@ class ExternalAccounting implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'provider' => '\Domainrobot\Model\ProviderEntity', 'label' => 'string', 'reportTo' => 'string', @@ -432,7 +432,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -442,7 +442,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -456,7 +456,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -466,7 +466,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/ExternalCustomer.php b/src/Model/ExternalCustomer.php index 893b80d7..22f39ff7 100644 --- a/src/Model/ExternalCustomer.php +++ b/src/Model/ExternalCustomer.php @@ -60,7 +60,7 @@ class ExternalCustomer implements ModelInterface, ArrayAccess 'number' => 'int', 'client' => 'string', 'group' => 'int', - 'billing' => '\Domainrobot\Model\BasicUser', + 'billing' => '\Domainrobot\Model\User', 'externalReference' => 'string', 'creditLimit' => 'double', 'created' => '\DateTime', @@ -340,7 +340,7 @@ public function getNumber() /** * Sets number * - * @param int $number number + * @param int $number Customer number * * @return $this */ @@ -364,7 +364,7 @@ public function getClient() /** * Sets client * - * @param string $client client + * @param string $client Account Label. * * @return $this */ @@ -395,7 +395,7 @@ public function getGroup() /** * Sets group * - * @param int $group group + * @param int $group Customer group, first 5 numbers of the account number. e.g. * * @return $this */ @@ -409,7 +409,7 @@ public function setGroup($group) /** * Gets billing * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getBilling() { @@ -419,7 +419,7 @@ public function getBilling() /** * Sets billing * - * @param \Domainrobot\Model\BasicUser $billing The billing user. + * @param \Domainrobot\Model\User $billing The billing user. * * @return $this */ diff --git a/src/Model/GenericCustomer.php b/src/Model/GenericCustomer.php index e310cd6a..011368fc 100644 --- a/src/Model/GenericCustomer.php +++ b/src/Model/GenericCustomer.php @@ -298,7 +298,7 @@ public function getNumber() /** * Sets number * - * @param int $number number + * @param int $number Customer number * * @return $this */ @@ -322,7 +322,7 @@ public function getClient() /** * Sets client * - * @param string $client client + * @param string $client Account Label. * * @return $this */ @@ -353,7 +353,7 @@ public function getGroup() /** * Sets group * - * @param int $group group + * @param int $group Customer group, first 5 numbers of the account number. e.g. * * @return $this */ diff --git a/src/Model/Invoice.php b/src/Model/Invoice.php index 62a20b16..5c00c613 100644 --- a/src/Model/Invoice.php +++ b/src/Model/Invoice.php @@ -59,8 +59,8 @@ class Invoice implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'number' => 'string', 'customer' => '\Domainrobot\Model\GenericCustomer', @@ -448,7 +448,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -458,7 +458,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -472,7 +472,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -482,7 +482,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/Job.php b/src/Model/Job.php index fb828015..f7ba655c 100644 --- a/src/Model/Job.php +++ b/src/Model/Job.php @@ -59,8 +59,8 @@ class Job implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'status' => '\Domainrobot\Model\JobStatusConstants', 'subStatus' => 'string', 'execution' => '\DateTime', @@ -370,7 +370,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -380,7 +380,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -394,7 +394,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -404,7 +404,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -428,7 +428,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\JobStatusConstants $status The status of the job. + * @param \Domainrobot\Model\JobStatusConstants $status Defines the status of a job. * * @return $this */ @@ -452,7 +452,7 @@ public function getSubStatus() /** * Sets subStatus * - * @param string $subStatus The substatus of the job. + * @param string $subStatus Substatus of the job. Substatuses exist depending on the job. * * @return $this */ @@ -476,7 +476,7 @@ public function getExecution() /** * Sets execution * - * @param \DateTime $execution The next execution date of the job. + * @param \DateTime $execution The date on which the job will be processed by the system. * * @return $this */ @@ -500,7 +500,7 @@ public function getEvents() /** * Sets events * - * @param \Domainrobot\Model\WorkflowEvent[] $events The events. + * @param \Domainrobot\Model\WorkflowEvent[] $events The workflow events generated by the job. * * @return $this */ @@ -548,7 +548,7 @@ public function getAction() /** * Sets action * - * @param string $action The job action. + * @param string $action The action, which the job is supposed to do. * * @return $this */ diff --git a/src/Model/JsonResponseData.php b/src/Model/JsonResponseData.php index abb0a06f..06ffa15b 100644 --- a/src/Model/JsonResponseData.php +++ b/src/Model/JsonResponseData.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param object[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param object[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataAccount.php b/src/Model/JsonResponseDataAccount.php index 85febb19..a25f845e 100644 --- a/src/Model/JsonResponseDataAccount.php +++ b/src/Model/JsonResponseDataAccount.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Account[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Account[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataAuthSession.php b/src/Model/JsonResponseDataAuthSession.php index a488b21f..6e96852c 100644 --- a/src/Model/JsonResponseDataAuthSession.php +++ b/src/Model/JsonResponseDataAuthSession.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\AuthSession[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\AuthSession[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataAutoDeleteDomain.php b/src/Model/JsonResponseDataAutoDeleteDomain.php index bd144726..17a9f0a1 100644 --- a/src/Model/JsonResponseDataAutoDeleteDomain.php +++ b/src/Model/JsonResponseDataAutoDeleteDomain.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\AutoDeleteDomain[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\AutoDeleteDomain[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataBackupMx.php b/src/Model/JsonResponseDataBackupMx.php index bde4a6e3..c36a3cbe 100644 --- a/src/Model/JsonResponseDataBackupMx.php +++ b/src/Model/JsonResponseDataBackupMx.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\BackupMx[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\BackupMx[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataBillingEvent.php b/src/Model/JsonResponseDataBillingEvent.php new file mode 100644 index 00000000..b152602e --- /dev/null +++ b/src/Model/JsonResponseDataBillingEvent.php @@ -0,0 +1,554 @@ + 'string', + 'messages' => '\Domainrobot\Model\Message[]', + 'status' => '\Domainrobot\Model\ResponseStatus', + 'object' => '\Domainrobot\Model\ResponseObject', + 'data' => '\Domainrobot\Model\BillingEvent[]', + 'ctid' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'stid' => null, + 'messages' => null, + 'status' => null, + 'object' => null, + 'data' => null, + 'ctid' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stid' => 'stid', + 'messages' => 'messages', + 'status' => 'status', + 'object' => 'object', + 'data' => 'data', + 'ctid' => 'ctid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stid' => 'setStid', + 'messages' => 'setMessages', + 'status' => 'setStatus', + 'object' => 'setObject', + 'data' => 'setData', + 'ctid' => 'setCtid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stid' => 'getStid', + 'messages' => 'getMessages', + 'status' => 'getStatus', + 'object' => 'getObject', + 'data' => 'getData', + 'ctid' => 'getCtid' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stid'] = isset($data['stid']) ? $this->createData($data['stid'], 'stid') : null; + $this->container['messages'] = isset($data['messages']) ? $this->createData($data['messages'], 'messages') : null; + $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; + $this->container['object'] = isset($data['object']) ? $this->createData($data['object'], 'object') : null; + $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; + $this->container['ctid'] = isset($data['ctid']) ? $this->createData($data['ctid'], 'ctid') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets stid + * + * @return string + */ + public function getStid() + { + return $this->container['stid']; + } + + /** + * Sets stid + * + * @param string $stid The server transaction ID for the response. + * + * @return $this + */ + public function setStid($stid) + { + $this->container['stid'] = $stid; + + return $this; + } + + /** + * Gets messages + * + * @return \Domainrobot\Model\Message[] + */ + public function getMessages() + { + return $this->container['messages']; + } + + /** + * Sets messages + * + * @param \Domainrobot\Model\Message[] $messages The messages belonging to the response. + * + * @return $this + */ + public function setMessages($messages) + { + $this->container['messages'] = $messages; + + return $this; + } + + /** + * Gets status + * + * @return \Domainrobot\Model\ResponseStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \Domainrobot\Model\ResponseStatus $status The status of the response. + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets object + * + * @return \Domainrobot\Model\ResponseObject + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param \Domainrobot\Model\ResponseObject $object The response object. + * + * @return $this + */ + public function setObject($object) + { + $this->container['object'] = $object; + + return $this; + } + + /** + * Gets data + * + * @return \Domainrobot\Model\BillingEvent[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Domainrobot\Model\BillingEvent[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets ctid + * + * @return string + */ + public function getCtid() + { + return $this->container['ctid']; + } + + /** + * Sets ctid + * + * @param string $ctid The CTID (Client Transaction ID) of the response. + * + * @return $this + */ + public function setCtid($ctid) + { + $this->container['ctid'] = $ctid; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/JsonResponseDataBillingLimit.php b/src/Model/JsonResponseDataBillingLimit.php index e6fc3c00..97f9637b 100644 --- a/src/Model/JsonResponseDataBillingLimit.php +++ b/src/Model/JsonResponseDataBillingLimit.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\BillingLimit[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\BillingLimit[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataBillingObjectTerms.php b/src/Model/JsonResponseDataBillingObjectTerms.php index 3f10b2b7..6543b301 100644 --- a/src/Model/JsonResponseDataBillingObjectTerms.php +++ b/src/Model/JsonResponseDataBillingObjectTerms.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\BillingObjectTerms[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\BillingObjectTerms[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataCertificate.php b/src/Model/JsonResponseDataCertificate.php index 083f9793..2ab3d8ab 100644 --- a/src/Model/JsonResponseDataCertificate.php +++ b/src/Model/JsonResponseDataCertificate.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Certificate[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Certificate[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataCertificateData.php b/src/Model/JsonResponseDataCertificateData.php index e4926cec..3f54e29f 100644 --- a/src/Model/JsonResponseDataCertificateData.php +++ b/src/Model/JsonResponseDataCertificateData.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\CertificateData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\CertificateData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataCertificateInstallCheckResult.php b/src/Model/JsonResponseDataCertificateInstallCheckResult.php index 4daf34a8..9409a336 100644 --- a/src/Model/JsonResponseDataCertificateInstallCheckResult.php +++ b/src/Model/JsonResponseDataCertificateInstallCheckResult.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\CertificateInstallCheckResult[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\CertificateInstallCheckResult[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataContact.php b/src/Model/JsonResponseDataContact.php index 95cfae1b..70cdfce2 100644 --- a/src/Model/JsonResponseDataContact.php +++ b/src/Model/JsonResponseDataContact.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Contact[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Contact[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataContactDocument.php b/src/Model/JsonResponseDataContactDocument.php index 1972c2df..cc04e5c1 100644 --- a/src/Model/JsonResponseDataContactDocument.php +++ b/src/Model/JsonResponseDataContactDocument.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ContactDocument[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ContactDocument[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataContactVerification.php b/src/Model/JsonResponseDataContactVerification.php index b435677a..afbfad53 100644 --- a/src/Model/JsonResponseDataContactVerification.php +++ b/src/Model/JsonResponseDataContactVerification.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ContactVerification[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ContactVerification[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataContextHost.php b/src/Model/JsonResponseDataContextHost.php index 5c6bec59..563945ba 100644 --- a/src/Model/JsonResponseDataContextHost.php +++ b/src/Model/JsonResponseDataContextHost.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ContextHost[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ContextHost[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataCustomerPriceList.php b/src/Model/JsonResponseDataCustomerPriceList.php index 3f6d3468..1f5101a6 100644 --- a/src/Model/JsonResponseDataCustomerPriceList.php +++ b/src/Model/JsonResponseDataCustomerPriceList.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\CustomerPriceList[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\CustomerPriceList[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomain.php b/src/Model/JsonResponseDataDomain.php index 71b79c00..6f4437e3 100644 --- a/src/Model/JsonResponseDataDomain.php +++ b/src/Model/JsonResponseDataDomain.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Domain[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Domain[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainCancelation.php b/src/Model/JsonResponseDataDomainCancelation.php index 25af18dd..b57e87ce 100644 --- a/src/Model/JsonResponseDataDomainCancelation.php +++ b/src/Model/JsonResponseDataDomainCancelation.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainCancelation[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainCancelation[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainEnvelope.php b/src/Model/JsonResponseDataDomainEnvelope.php index 2cd17753..296b8972 100644 --- a/src/Model/JsonResponseDataDomainEnvelope.php +++ b/src/Model/JsonResponseDataDomainEnvelope.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainEnvelope[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainEnvelope[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainPremium.php b/src/Model/JsonResponseDataDomainPremium.php index c96b9508..092ed4bc 100644 --- a/src/Model/JsonResponseDataDomainPremium.php +++ b/src/Model/JsonResponseDataDomainPremium.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainPremium[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainPremium[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainPrereg.php b/src/Model/JsonResponseDataDomainPrereg.php index 51b50e05..405b9398 100644 --- a/src/Model/JsonResponseDataDomainPrereg.php +++ b/src/Model/JsonResponseDataDomainPrereg.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainPrereg[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainPrereg[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainRestore.php b/src/Model/JsonResponseDataDomainRestore.php index 6b16aeb5..fa5ca6c9 100644 --- a/src/Model/JsonResponseDataDomainRestore.php +++ b/src/Model/JsonResponseDataDomainRestore.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainRestore[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainRestore[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainSafeAccount.php b/src/Model/JsonResponseDataDomainSafeAccount.php index 46742b76..e7c7fe8c 100644 --- a/src/Model/JsonResponseDataDomainSafeAccount.php +++ b/src/Model/JsonResponseDataDomainSafeAccount.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainSafeAccount[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainSafeAccount[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainSafeObject.php b/src/Model/JsonResponseDataDomainSafeObject.php index 8d7707ef..c2ff4779 100644 --- a/src/Model/JsonResponseDataDomainSafeObject.php +++ b/src/Model/JsonResponseDataDomainSafeObject.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainSafeObject[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainSafeObject[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataDomainSafeUser.php b/src/Model/JsonResponseDataDomainSafeUser.php index e2b20cad..05b8512e 100644 --- a/src/Model/JsonResponseDataDomainSafeUser.php +++ b/src/Model/JsonResponseDataDomainSafeUser.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\DomainSafeUser[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\DomainSafeUser[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataExternalCustomer.php b/src/Model/JsonResponseDataExternalCustomer.php index e999d1ba..b0b62cf5 100644 --- a/src/Model/JsonResponseDataExternalCustomer.php +++ b/src/Model/JsonResponseDataExternalCustomer.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ExternalCustomer[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ExternalCustomer[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataInvoice.php b/src/Model/JsonResponseDataInvoice.php index ee502291..298af786 100644 --- a/src/Model/JsonResponseDataInvoice.php +++ b/src/Model/JsonResponseDataInvoice.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Invoice[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Invoice[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataJob.php b/src/Model/JsonResponseDataJob.php index ad91cece..16ad9de1 100644 --- a/src/Model/JsonResponseDataJob.php +++ b/src/Model/JsonResponseDataJob.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Job[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Job[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataJsonNoData.php b/src/Model/JsonResponseDataJsonNoData.php index a7de34c8..dcf0bebe 100644 --- a/src/Model/JsonResponseDataJsonNoData.php +++ b/src/Model/JsonResponseDataJsonNoData.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonNoData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonNoData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataBackupMx.php b/src/Model/JsonResponseDataListJsonResponseDataBackupMx.php index 7d49c5e3..85e40ff1 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataBackupMx.php +++ b/src/Model/JsonResponseDataListJsonResponseDataBackupMx.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataBackupMx[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataBackupMx[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataBillingEvent.php b/src/Model/JsonResponseDataListJsonResponseDataBillingEvent.php new file mode 100644 index 00000000..b01832e5 --- /dev/null +++ b/src/Model/JsonResponseDataListJsonResponseDataBillingEvent.php @@ -0,0 +1,554 @@ + 'string', + 'messages' => '\Domainrobot\Model\Message[]', + 'status' => '\Domainrobot\Model\ResponseStatus', + 'object' => '\Domainrobot\Model\ResponseObject', + 'data' => '\Domainrobot\Model\JsonResponseDataBillingEvent[][]', + 'ctid' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'stid' => null, + 'messages' => null, + 'status' => null, + 'object' => null, + 'data' => null, + 'ctid' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'stid' => 'stid', + 'messages' => 'messages', + 'status' => 'status', + 'object' => 'object', + 'data' => 'data', + 'ctid' => 'ctid' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'stid' => 'setStid', + 'messages' => 'setMessages', + 'status' => 'setStatus', + 'object' => 'setObject', + 'data' => 'setData', + 'ctid' => 'setCtid' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'stid' => 'getStid', + 'messages' => 'getMessages', + 'status' => 'getStatus', + 'object' => 'getObject', + 'data' => 'getData', + 'ctid' => 'getCtid' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['stid'] = isset($data['stid']) ? $this->createData($data['stid'], 'stid') : null; + $this->container['messages'] = isset($data['messages']) ? $this->createData($data['messages'], 'messages') : null; + $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; + $this->container['object'] = isset($data['object']) ? $this->createData($data['object'], 'object') : null; + $this->container['data'] = isset($data['data']) ? $this->createData($data['data'], 'data') : null; + $this->container['ctid'] = isset($data['ctid']) ? $this->createData($data['ctid'], 'ctid') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets stid + * + * @return string + */ + public function getStid() + { + return $this->container['stid']; + } + + /** + * Sets stid + * + * @param string $stid The server transaction ID for the response. + * + * @return $this + */ + public function setStid($stid) + { + $this->container['stid'] = $stid; + + return $this; + } + + /** + * Gets messages + * + * @return \Domainrobot\Model\Message[] + */ + public function getMessages() + { + return $this->container['messages']; + } + + /** + * Sets messages + * + * @param \Domainrobot\Model\Message[] $messages The messages belonging to the response. + * + * @return $this + */ + public function setMessages($messages) + { + $this->container['messages'] = $messages; + + return $this; + } + + /** + * Gets status + * + * @return \Domainrobot\Model\ResponseStatus + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param \Domainrobot\Model\ResponseStatus $status The status of the response. + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets object + * + * @return \Domainrobot\Model\ResponseObject + */ + public function getObject() + { + return $this->container['object']; + } + + /** + * Sets object + * + * @param \Domainrobot\Model\ResponseObject $object The response object. + * + * @return $this + */ + public function setObject($object) + { + $this->container['object'] = $object; + + return $this; + } + + /** + * Gets data + * + * @return \Domainrobot\Model\JsonResponseDataBillingEvent[][] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Domainrobot\Model\JsonResponseDataBillingEvent[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets ctid + * + * @return string + */ + public function getCtid() + { + return $this->container['ctid']; + } + + /** + * Sets ctid + * + * @param string $ctid The CTID (Client Transaction ID) of the response. + * + * @return $this + */ + public function setCtid($ctid) + { + $this->container['ctid'] = $ctid; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/JsonResponseDataListJsonResponseDataCertificate.php b/src/Model/JsonResponseDataListJsonResponseDataCertificate.php index a2dd14d4..82e04012 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataCertificate.php +++ b/src/Model/JsonResponseDataListJsonResponseDataCertificate.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataCertificate[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataCertificate[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataContact.php b/src/Model/JsonResponseDataListJsonResponseDataContact.php index e91cf56a..d6254a37 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataContact.php +++ b/src/Model/JsonResponseDataListJsonResponseDataContact.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataContact[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataContact[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataCustomerPriceList.php b/src/Model/JsonResponseDataListJsonResponseDataCustomerPriceList.php index 50495b39..a638d414 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataCustomerPriceList.php +++ b/src/Model/JsonResponseDataListJsonResponseDataCustomerPriceList.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataCustomerPriceList[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataCustomerPriceList[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataDomain.php b/src/Model/JsonResponseDataListJsonResponseDataDomain.php index c41a4ddc..07b24c12 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataDomain.php +++ b/src/Model/JsonResponseDataListJsonResponseDataDomain.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataDomain[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataDomain[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataDomainCancelation.php b/src/Model/JsonResponseDataListJsonResponseDataDomainCancelation.php index cee13c06..0e7282f3 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataDomainCancelation.php +++ b/src/Model/JsonResponseDataListJsonResponseDataDomainCancelation.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataDomainCancelation[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataDomainCancelation[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataDomainPrereg.php b/src/Model/JsonResponseDataListJsonResponseDataDomainPrereg.php index 775b5a6b..0d59b064 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataDomainPrereg.php +++ b/src/Model/JsonResponseDataListJsonResponseDataDomainPrereg.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataDomainPrereg[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataDomainPrereg[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataExternalCustomer.php b/src/Model/JsonResponseDataListJsonResponseDataExternalCustomer.php index 2ccb7f5c..6c3c6972 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataExternalCustomer.php +++ b/src/Model/JsonResponseDataListJsonResponseDataExternalCustomer.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataExternalCustomer[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataExternalCustomer[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataMailProxy.php b/src/Model/JsonResponseDataListJsonResponseDataMailProxy.php index 6187ad71..2b9d1022 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataMailProxy.php +++ b/src/Model/JsonResponseDataListJsonResponseDataMailProxy.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataMailProxy[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataMailProxy[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataObjectUserAssignment.php b/src/Model/JsonResponseDataListJsonResponseDataObjectUserAssignment.php index b362c72e..8166633e 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataObjectUserAssignment.php +++ b/src/Model/JsonResponseDataListJsonResponseDataObjectUserAssignment.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataObjectUserAssignment[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataObjectUserAssignment[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataPrice.php b/src/Model/JsonResponseDataListJsonResponseDataPrice.php index 427f7964..b0fb93df 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataPrice.php +++ b/src/Model/JsonResponseDataListJsonResponseDataPrice.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataPrice[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataPrice[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataRedirect.php b/src/Model/JsonResponseDataListJsonResponseDataRedirect.php index 79cdf2bd..384d73bb 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataRedirect.php +++ b/src/Model/JsonResponseDataListJsonResponseDataRedirect.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataRedirect[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataRedirect[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataSslContact.php b/src/Model/JsonResponseDataListJsonResponseDataSslContact.php index 363a80a3..3aeae6f1 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataSslContact.php +++ b/src/Model/JsonResponseDataListJsonResponseDataSslContact.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataSslContact[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataSslContact[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataListJsonResponseDataZone.php b/src/Model/JsonResponseDataListJsonResponseDataZone.php index a8307058..77503787 100644 --- a/src/Model/JsonResponseDataListJsonResponseDataZone.php +++ b/src/Model/JsonResponseDataListJsonResponseDataZone.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\JsonResponseDataZone[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\JsonResponseDataZone[][] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataMailProxy.php b/src/Model/JsonResponseDataMailProxy.php index 88b5d008..8e2c9ac5 100644 --- a/src/Model/JsonResponseDataMailProxy.php +++ b/src/Model/JsonResponseDataMailProxy.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\MailProxy[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\MailProxy[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataMailServiceMessage.php b/src/Model/JsonResponseDataMailServiceMessage.php index c3ba0c43..84f78606 100644 --- a/src/Model/JsonResponseDataMailServiceMessage.php +++ b/src/Model/JsonResponseDataMailServiceMessage.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\MailServiceMessage[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\MailServiceMessage[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataOTPAuth.php b/src/Model/JsonResponseDataOTPAuth.php index 94402eb8..01173d29 100644 --- a/src/Model/JsonResponseDataOTPAuth.php +++ b/src/Model/JsonResponseDataOTPAuth.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\OTPAuth[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\OTPAuth[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataObjectJob.php b/src/Model/JsonResponseDataObjectJob.php index 465ef85a..ab219349 100644 --- a/src/Model/JsonResponseDataObjectJob.php +++ b/src/Model/JsonResponseDataObjectJob.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ObjectJob[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ObjectJob[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataObjectUserAssignment.php b/src/Model/JsonResponseDataObjectUserAssignment.php index 918bb4a2..75d29cc6 100644 --- a/src/Model/JsonResponseDataObjectUserAssignment.php +++ b/src/Model/JsonResponseDataObjectUserAssignment.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ObjectUserAssignment[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ObjectUserAssignment[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataPeriodicBilling.php b/src/Model/JsonResponseDataPeriodicBilling.php index 0870038c..6ab18233 100644 --- a/src/Model/JsonResponseDataPeriodicBilling.php +++ b/src/Model/JsonResponseDataPeriodicBilling.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\PeriodicBilling[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\PeriodicBilling[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataPollMessage.php b/src/Model/JsonResponseDataPollMessage.php index d90b6a62..cee7a5e3 100644 --- a/src/Model/JsonResponseDataPollMessage.php +++ b/src/Model/JsonResponseDataPollMessage.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\PollMessage[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\PollMessage[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataPrice.php b/src/Model/JsonResponseDataPrice.php index 8aed1508..fe23abc4 100644 --- a/src/Model/JsonResponseDataPrice.php +++ b/src/Model/JsonResponseDataPrice.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Price[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Price[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataRedirect.php b/src/Model/JsonResponseDataRedirect.php index 814287ee..61371b5b 100644 --- a/src/Model/JsonResponseDataRedirect.php +++ b/src/Model/JsonResponseDataRedirect.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Redirect[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Redirect[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataServiceUsersProfile.php b/src/Model/JsonResponseDataServiceUsersProfile.php index 6f287036..8f136be0 100644 --- a/src/Model/JsonResponseDataServiceUsersProfile.php +++ b/src/Model/JsonResponseDataServiceUsersProfile.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ServiceUsersProfile[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ServiceUsersProfile[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataSiteSealInformation.php b/src/Model/JsonResponseDataSiteSealInformation.php index ded254f7..7701ef17 100644 --- a/src/Model/JsonResponseDataSiteSealInformation.php +++ b/src/Model/JsonResponseDataSiteSealInformation.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\SiteSealInformation[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\SiteSealInformation[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataSslContact.php b/src/Model/JsonResponseDataSslContact.php index 1798c371..75923e91 100644 --- a/src/Model/JsonResponseDataSslContact.php +++ b/src/Model/JsonResponseDataSslContact.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\SslContact[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\SslContact[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataString.php b/src/Model/JsonResponseDataString.php index 35eab1fe..f7e454cb 100644 --- a/src/Model/JsonResponseDataString.php +++ b/src/Model/JsonResponseDataString.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param string[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param string[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataSubjectProduct.php b/src/Model/JsonResponseDataSubjectProduct.php index 5fdfa762..d638392f 100644 --- a/src/Model/JsonResponseDataSubjectProduct.php +++ b/src/Model/JsonResponseDataSubjectProduct.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\SubjectProduct[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\SubjectProduct[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTaskUserLimit.php b/src/Model/JsonResponseDataTaskUserLimit.php index ce629545..8eecea77 100644 --- a/src/Model/JsonResponseDataTaskUserLimit.php +++ b/src/Model/JsonResponseDataTaskUserLimit.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TaskUserLimit[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TaskUserLimit[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTldProduct.php b/src/Model/JsonResponseDataTldProduct.php index 3f4c67fc..961102fa 100644 --- a/src/Model/JsonResponseDataTldProduct.php +++ b/src/Model/JsonResponseDataTldProduct.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TldProduct[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TldProduct[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTldStatistic.php b/src/Model/JsonResponseDataTldStatistic.php index b3754a7b..0a13bbcb 100644 --- a/src/Model/JsonResponseDataTldStatistic.php +++ b/src/Model/JsonResponseDataTldStatistic.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TldStatistic[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TldStatistic[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTmchClaimsNotice.php b/src/Model/JsonResponseDataTmchClaimsNotice.php index 18145c71..391fb58e 100644 --- a/src/Model/JsonResponseDataTmchClaimsNotice.php +++ b/src/Model/JsonResponseDataTmchClaimsNotice.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TmchClaimsNotice[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TmchClaimsNotice[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTmchMark.php b/src/Model/JsonResponseDataTmchMark.php index 35c44982..8b5938f5 100644 --- a/src/Model/JsonResponseDataTmchMark.php +++ b/src/Model/JsonResponseDataTmchMark.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TmchMark[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TmchMark[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTmchMarkDocument.php b/src/Model/JsonResponseDataTmchMarkDocument.php index 1d500d1a..074fdb0c 100644 --- a/src/Model/JsonResponseDataTmchMarkDocument.php +++ b/src/Model/JsonResponseDataTmchMarkDocument.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TmchMarkDocument[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TmchMarkDocument[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTransfer.php b/src/Model/JsonResponseDataTransfer.php index 344acba0..f35837bb 100644 --- a/src/Model/JsonResponseDataTransfer.php +++ b/src/Model/JsonResponseDataTransfer.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Transfer[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Transfer[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataTransferOut.php b/src/Model/JsonResponseDataTransferOut.php index efe9c1a2..02417056 100644 --- a/src/Model/JsonResponseDataTransferOut.php +++ b/src/Model/JsonResponseDataTransferOut.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\TransferOut[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\TransferOut[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataUser.php b/src/Model/JsonResponseDataUser.php index 0c12fa1b..cf4c0abe 100644 --- a/src/Model/JsonResponseDataUser.php +++ b/src/Model/JsonResponseDataUser.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\User[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\User[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataUserProfileViews.php b/src/Model/JsonResponseDataUserProfileViews.php index 97f5fc9e..8b44115e 100644 --- a/src/Model/JsonResponseDataUserProfileViews.php +++ b/src/Model/JsonResponseDataUserProfileViews.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\UserProfileViews[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\UserProfileViews[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataUserSalesReport.php b/src/Model/JsonResponseDataUserSalesReport.php index 38f9a242..c4a9abbb 100644 --- a/src/Model/JsonResponseDataUserSalesReport.php +++ b/src/Model/JsonResponseDataUserSalesReport.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\UserSalesReport[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\UserSalesReport[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataVmcCheckData.php b/src/Model/JsonResponseDataVmcCheckData.php index 25821d47..ccdde885 100644 --- a/src/Model/JsonResponseDataVmcCheckData.php +++ b/src/Model/JsonResponseDataVmcCheckData.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\VmcCheckData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\VmcCheckData[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataVoid.php b/src/Model/JsonResponseDataVoid.php index fa867172..21158e93 100644 --- a/src/Model/JsonResponseDataVoid.php +++ b/src/Model/JsonResponseDataVoid.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Void[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Void[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataZone.php b/src/Model/JsonResponseDataZone.php index a864b0f4..307f0bfe 100644 --- a/src/Model/JsonResponseDataZone.php +++ b/src/Model/JsonResponseDataZone.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\Zone[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\Zone[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/JsonResponseDataZoneQuery.php b/src/Model/JsonResponseDataZoneQuery.php index 98d72b90..aa52eacd 100644 --- a/src/Model/JsonResponseDataZoneQuery.php +++ b/src/Model/JsonResponseDataZoneQuery.php @@ -302,7 +302,7 @@ public function getStid() /** * Sets stid * - * @param string $stid The server transaction id for the response. + * @param string $stid The server transaction ID for the response. * * @return $this */ @@ -374,7 +374,7 @@ public function getObject() /** * Sets object * - * @param \Domainrobot\Model\ResponseObject $object The object of the response. + * @param \Domainrobot\Model\ResponseObject $object The response object. * * @return $this */ @@ -398,7 +398,7 @@ public function getData() /** * Sets data * - * @param \Domainrobot\Model\ZoneQuery[] $data The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. + * @param \Domainrobot\Model\ZoneQuery[] $data The data for the response. The type of the objects are depending on the request and are also specified in the ResponseObject value of the response. * * @return $this */ @@ -422,7 +422,7 @@ public function getCtid() /** * Sets ctid * - * @param string $ctid The client transaction id for the response. + * @param string $ctid The CTID (Client Transaction ID) of the response. * * @return $this */ diff --git a/src/Model/LoginData.php b/src/Model/LoginData.php index 286eaf17..e26c87b1 100644 --- a/src/Model/LoginData.php +++ b/src/Model/LoginData.php @@ -312,7 +312,7 @@ public function getContext() /** * Sets context * - * @param int $context The context. + * @param int $context The context. A separated section. * * @return $this */ diff --git a/src/Model/MailProxy.php b/src/Model/MailProxy.php index b75938f1..8bf17462 100644 --- a/src/Model/MailProxy.php +++ b/src/Model/MailProxy.php @@ -61,8 +61,8 @@ class MailProxy implements ModelInterface, ArrayAccess 'idn' => 'string', 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'target' => 'string', 'admin' => 'string', 'protection' => '\Domainrobot\Model\ProtectionConstants', @@ -564,7 +564,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -574,7 +574,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -588,7 +588,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -598,7 +598,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -622,7 +622,7 @@ public function getTarget() /** * Sets target * - * @param string $target The hostname of the target mailserver + * @param string $target Mail server to which the MailProxy should forward the emails. Note that the MX record of your mail server must be removed from the zone. * * @return $this */ @@ -646,7 +646,7 @@ public function getAdmin() /** * Sets admin * - * @param string $admin email address of the administrator + * @param string $admin Email address of the administrator to whom notifications are sent to. * * @return $this */ @@ -670,7 +670,7 @@ public function getProtection() /** * Sets protection * - * @param \Domainrobot\Model\ProtectionConstants $protection The protection level + * @param \Domainrobot\Model\ProtectionConstants $protection Security settings for handling infected mails. * * @return $this */ @@ -694,7 +694,7 @@ public function getGreylisting() /** * Sets greylisting * - * @param string $greylisting The grey listing policy + * @param string $greylisting If greylisting is activated, the first email from an unknown sender is rejected at first. Mails from this sender will only be accepted after a further delayed delivery attempt. * * @return $this */ @@ -727,7 +727,7 @@ public function getVirus() /** * Sets virus * - * @param string $virus The virus options to use + * @param string $virus Defines whether to check for viruses and how to deal with detected viruses. * * @return $this */ @@ -760,7 +760,7 @@ public function getBannedFiles() /** * Sets bannedFiles * - * @param string $bannedFiles The banned files options to use + * @param string $bannedFiles Defines whether files should be checked and how banned files should be avoided. * * @return $this */ @@ -793,7 +793,7 @@ public function getHeader() /** * Sets header * - * @param string $header The mail header options to use + * @param string $header Defines whether headers are to be checked and how banned headers are to be handled. * * @return $this */ @@ -826,7 +826,7 @@ public function getSpam() /** * Sets spam * - * @param \Domainrobot\Model\SpamPolicy $spam The spam policy options + * @param \Domainrobot\Model\SpamPolicy $spam The spam policy options. * * @return $this */ @@ -850,7 +850,7 @@ public function getWhitelist() /** * Sets whitelist * - * @param \Domainrobot\Model\MailList $whitelist The white listed email addresses + * @param \Domainrobot\Model\MailList $whitelist Define email addresses whose mails should be trusted and never marked as spam. * * @return $this */ @@ -874,7 +874,7 @@ public function getBlacklist() /** * Sets blacklist * - * @param \Domainrobot\Model\MailList $blacklist The black listed email addresses + * @param \Domainrobot\Model\MailList $blacklist Specification of email addresses whose mails are always to be marked as spam. * * @return $this */ @@ -898,7 +898,7 @@ public function getExcludelist() /** * Sets excludelist * - * @param \Domainrobot\Model\MailList $excludelist The exculded listed email addresses + * @param \Domainrobot\Model\MailList $excludelist Definition of administrative addresses that should never be ignored by spam filters. An example of this is the \"Hostmaster\" addresses, e.g. hostmaster@example.com. * * @return $this */ diff --git a/src/Model/Message.php b/src/Model/Message.php index a710fea8..c6df82d2 100644 --- a/src/Model/Message.php +++ b/src/Model/Message.php @@ -302,7 +302,7 @@ public function getText() /** * Sets text * - * @param string $text The text. + * @param string $text Message text. * * @return $this */ @@ -350,7 +350,7 @@ public function getMessages() /** * Sets messages * - * @param \Domainrobot\Model\Message[] $messages The messages. + * @param \Domainrobot\Model\Message[] $messages Referred child messages. * * @return $this */ @@ -374,7 +374,7 @@ public function getObjects() /** * Sets objects * - * @param \Domainrobot\Model\GenericObject[] $objects The objects. + * @param \Domainrobot\Model\GenericObject[] $objects The object to which the notification refers. type - specifies the type of the object value - value of the object * * @return $this */ @@ -398,7 +398,7 @@ public function getCode() /** * Sets code * - * @param string $code The message code. + * @param string $code The task code of the order to which the notification belongs to. * * @return $this */ @@ -422,7 +422,7 @@ public function getStatus() /** * Sets status * - * @param \Domainrobot\Model\StatusType $status The status of the message code. + * @param \Domainrobot\Model\StatusType $status The status type of the response. * * @return $this */ diff --git a/src/Model/NiccomLog.php b/src/Model/NiccomLog.php index acdf8410..85402661 100644 --- a/src/Model/NiccomLog.php +++ b/src/Model/NiccomLog.php @@ -64,7 +64,7 @@ class NiccomLog implements ModelInterface, ArrayAccess 'nicTransactionId' => 'string', 'source' => '\Domainrobot\Model\NiccomSourceConstants', 'text' => 'string', - 'created' => '\DateTime' + 'created' => 'int' ]; /** @@ -80,7 +80,7 @@ class NiccomLog implements ModelInterface, ArrayAccess 'nicTransactionId' => null, 'source' => null, 'text' => null, - 'created' => 'date-time' + 'created' => 'int64' ]; /** @@ -487,7 +487,7 @@ public function setText($text) /** * Gets created * - * @return \DateTime + * @return int */ public function getCreated() { @@ -497,7 +497,7 @@ public function getCreated() /** * Sets created * - * @param \DateTime $created The created date of the niccom log. + * @param int $created The created date of the niccom log. * * @return $this */ diff --git a/src/Model/Notification.php b/src/Model/Notification.php new file mode 100644 index 00000000..a2cb813e --- /dev/null +++ b/src/Model/Notification.php @@ -0,0 +1,404 @@ + '\Domainrobot\Model\Message[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'messages' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'messages' => 'messages' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'messages' => 'setMessages' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'messages' => 'getMessages' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['messages'] = isset($data['messages']) ? $this->createData($data['messages'], 'messages') : null; + } + + /** + * create data according to types; + * non object types will just be returend as is: + * object types will return an instance of themselves or and array of instances + * + * @param mixed[] $data + * @param string $property + * @return mixed + */ + public function createData($data = null, $property = '') + { + if ($data === null || $property === '') { + return ''; + } + $swaggerType = self::$swaggerTypes[$property]; + + preg_match("/([\\\\\w\d]+)(\[\])?/", $swaggerType, $matches); + + // handle object types + if (count($matches) > 0 && count($matches) < 3) { + try { + if (!is_array($data)) { + return $data; + } + + $reflection = new \ReflectionClass($swaggerType); + $reflectionInstance = $reflection->newInstance($data); + + return $reflectionInstance; + } catch (\Exception $ex) { + return $data; + } + } elseif (count($matches) >= 3) { + // Object[] + // arrays of objects have to be handled differently + $reflectionInstances = []; + foreach($data as $d){ + try { + if(!is_array($d)){ + $reflectionInstances[] = $d; + continue; + } + $reflection = new \ReflectionClass(str_replace("[]", "", $swaggerType) ); + $reflectionInstances[] = $reflection->newInstance($d); + } catch (\Exception $ex) { + return $d; + } + } + + return $reflectionInstances; + } + + return $data; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets messages + * + * @return \Domainrobot\Model\Message[] + */ + public function getMessages() + { + return $this->container['messages']; + } + + /** + * Sets messages + * + * @param \Domainrobot\Model\Message[] $messages Notification Message + * + * @return $this + */ + public function setMessages($messages) + { + $this->container['messages'] = $messages; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } + + /** + * @param boolean $removeEmptyValues [remove all empty values if true] + * @param array $retrieveKeys [list of keys to get back in any case] + * + * Examples: + * toArray() => returns only non empty values + * toArray(true) => returns all values + */ + public function toArray($retrieveAllValues = false){ + $container = $this->container; + + $cleanContainer = []; + foreach ($container as $key => &$value) { + if ( + $retrieveAllValues === false && + empty($value) === true && + $value !== false && + $value !== '' && + $value !== 0 && + $value !== '0' + ) { + unset($container[$key]); + continue; + } + + if (gettype($value) === "object") { + if(method_exists($value, 'toArray')) { + $value = $value->toArray($retrieveAllValues); + }else{ + if(get_class($value) === "DateTime"){ + $value = $value->format("Y-m-d\TH:i:s"); + }else{ + $value = (array) $value; + } + } + } + if (is_array($value)) { + foreach ($value as &$v) { + if (gettype($v) === "object") { + $v = $v->toArray($retrieveAllValues); + } + } + } + $cleanContainer[self::$attributeMap[$key]] = $value; + }; + return $cleanContainer; + } +} + + diff --git a/src/Model/OTPAuth.php b/src/Model/OTPAuth.php index cd94cb79..d227550e 100644 --- a/src/Model/OTPAuth.php +++ b/src/Model/OTPAuth.php @@ -59,8 +59,8 @@ class OTPAuth implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'protocolType' => '\Domainrobot\Model\ProtocolTypeConstants', 'algorithm' => '\Domainrobot\Model\CryptoFormatConstants', 'timeout' => 'int', @@ -398,7 +398,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -408,7 +408,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -422,7 +422,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -432,7 +432,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/ObjectUserAssignment.php b/src/Model/ObjectUserAssignment.php index d3f6ad18..997cf2e1 100644 --- a/src/Model/ObjectUserAssignment.php +++ b/src/Model/ObjectUserAssignment.php @@ -58,11 +58,11 @@ class ObjectUserAssignment implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'type' => 'string', - 'owner' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', 'name' => 'string', 'cancelation' => '\Domainrobot\Model\ObjectAssignmentMode', - 'source' => '\Domainrobot\Model\BasicUser', - 'target' => '\Domainrobot\Model\BasicUser' + 'source' => '\Domainrobot\Model\User', + 'target' => '\Domainrobot\Model\User' ]; /** @@ -319,7 +319,7 @@ public function getType() /** * Sets type * - * @param string $type The type of the object. + * @param string $type Type of object, e.g. domain. * * @return $this */ @@ -333,7 +333,7 @@ public function setType($type) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -343,7 +343,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The owner of the object. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -367,7 +367,7 @@ public function getName() /** * Sets name * - * @param string $name The object name. + * @param string $name Name of the object to be reassigned. * * @return $this */ @@ -398,7 +398,7 @@ public function getCancelation() /** * Sets cancelation * - * @param \Domainrobot\Model\ObjectAssignmentMode $cancelation The cancelation mode. + * @param \Domainrobot\Model\ObjectAssignmentMode $cancelation Mode when assigning domains with an active cancelation. * * @return $this */ @@ -412,7 +412,7 @@ public function setCancelation($cancelation) /** * Gets source * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getSource() { @@ -422,7 +422,7 @@ public function getSource() /** * Sets source * - * @param \Domainrobot\Model\BasicUser $source The source owner. + * @param \Domainrobot\Model\User $source The user that currently has the object * * @return $this */ @@ -436,7 +436,7 @@ public function setSource($source) /** * Gets target * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getTarget() { @@ -446,7 +446,7 @@ public function getTarget() /** * Sets target * - * @param \Domainrobot\Model\BasicUser $target The target owner. + * @param \Domainrobot\Model\User $target The user that should receive the object * * @return $this */ diff --git a/src/Model/Operator.php b/src/Model/Operator.php index 8f0fe1b6..9b450c05 100644 --- a/src/Model/Operator.php +++ b/src/Model/Operator.php @@ -59,6 +59,7 @@ class Operator const NOT_LESS_EQUAL = 'NOT_LESS_EQUAL'; const NOT_GREATER_EQUAL = 'NOT_GREATER_EQUAL'; const IN = 'IN'; + const NOT_IN = 'NOT_IN'; /** * Gets allowable values of the enum @@ -83,6 +84,7 @@ public static function getAllowableEnumValues() self::NOT_LESS_EQUAL, self::NOT_GREATER_EQUAL, self::IN, + self::NOT_IN, ]; } } diff --git a/src/Model/PeriodicBilling.php b/src/Model/PeriodicBilling.php index bbe6c2ef..210bccc2 100644 --- a/src/Model/PeriodicBilling.php +++ b/src/Model/PeriodicBilling.php @@ -60,8 +60,8 @@ class PeriodicBilling implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'updated' => '\DateTime', 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'status' => '\Domainrobot\Model\BillingStatus', 'object' => 'string', 'description' => 'string', @@ -445,7 +445,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -455,7 +455,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -469,7 +469,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -479,7 +479,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/PhysicalNameServerGroup.php b/src/Model/PhysicalNameServerGroup.php index 6a82ca49..25695b1c 100644 --- a/src/Model/PhysicalNameServerGroup.php +++ b/src/Model/PhysicalNameServerGroup.php @@ -356,7 +356,7 @@ public function getName() /** * Sets name * - * @param string $name The custom label for the group + * @param string $name Custom name of the name server group. * * @return $this */ @@ -380,7 +380,7 @@ public function getArticleLabel() /** * Sets articleLabel * - * @param string $articleLabel The article label of the name server group, will be used for each created zone using these group + * @param string $articleLabel The article name that will be used when creating zones for this group. * * @return $this */ @@ -428,7 +428,7 @@ public function getDnssec() /** * Sets dnssec * - * @param bool $dnssec If the group supports dnssec + * @param bool $dnssec Support for DNSSEC by the namserver group. Possible values: false = DNSSEC is not supported true = DNSSEC is supported Default value = false * * @return $this */ @@ -452,7 +452,7 @@ public function getStatistic() /** * Sets statistic * - * @param bool $statistic If the group contains statistical data for a zone + * @param bool $statistic Support of zone statistics by the namserver group. Possible values: false = Statistics are not supported true = Statistics are supported Default value = false * * @return $this */ diff --git a/src/Model/PollMessage.php b/src/Model/PollMessage.php index 3ba8069f..d6a4c8e4 100644 --- a/src/Model/PollMessage.php +++ b/src/Model/PollMessage.php @@ -58,7 +58,7 @@ class PollMessage implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', 'job' => '\Domainrobot\Model\Job', 'notify' => '\Domainrobot\Model\NotifyMessage', 'stid' => 'string', @@ -346,7 +346,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -356,7 +356,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ diff --git a/src/Model/PreregConfig.php b/src/Model/PreregConfig.php index 959432b0..c86fcc71 100644 --- a/src/Model/PreregConfig.php +++ b/src/Model/PreregConfig.php @@ -419,7 +419,7 @@ public function getName() /** * Sets name * - * @param string $name name + * @param string $name Name of the TLD and/or SubTLD. * * @return $this */ @@ -443,7 +443,7 @@ public function getPhase() /** * Sets phase * - * @param string $phase phase + * @param string $phase Name of the phase * * @return $this */ @@ -467,7 +467,7 @@ public function getConfirmationStart() /** * Sets confirmationStart * - * @param \DateTime $confirmationStart confirmationStart + * @param \DateTime $confirmationStart Date on which preregistrations for the specified TLD can be confirmed. * * @return $this */ @@ -491,7 +491,7 @@ public function getConfirmationEnd() /** * Sets confirmationEnd * - * @param \DateTime $confirmationEnd confirmationEnd + * @param \DateTime $confirmationEnd Date on which preregistrations for the specified TLD can no longer be confirmed. * * @return $this */ @@ -539,7 +539,7 @@ public function getPeriodEnd() /** * Sets periodEnd * - * @param \DateTime $periodEnd periodEnd + * @param \DateTime $periodEnd Date on which the preregistration period begins * * @return $this */ @@ -563,7 +563,7 @@ public function getNicMemberLabel() /** * Sets nicMemberLabel * - * @param string $nicMemberLabel nicMemberLabel + * @param string $nicMemberLabel Registrar identifier at the registries. * * @return $this */ @@ -587,7 +587,7 @@ public function getNiccomStart() /** * Sets niccomStart * - * @param \DateTime $niccomStart niccomStart + * @param \DateTime $niccomStart Date on which the preregistrations for the specified TLD are processed. * * @return $this */ @@ -611,7 +611,7 @@ public function getNiccomEnd() /** * Sets niccomEnd * - * @param \DateTime $niccomEnd niccomEnd + * @param \DateTime $niccomEnd Date on which preregistrations for the specified TLD will no longer be processed. * * @return $this */ @@ -635,7 +635,7 @@ public function getAutoupdateDns() /** * Sets autoupdateDns * - * @param bool $autoupdateDns autoupdateDns + * @param bool $autoupdateDns Domain status update after registration. false = Domain will not be updated after registration true = Domain will be updated after registration Default value = false * * @return $this */ @@ -659,7 +659,7 @@ public function getCategory() /** * Sets category * - * @param string $category category + * @param string $category TLD category example: Business Travel Generic * * @return $this */ @@ -683,7 +683,7 @@ public function getUiFields() /** * Sets uiFields * - * @param string $uiFields uiFields + * @param string $uiFields Comma-separated list for fields to be displayed in the frontend UI. * * @return $this */ @@ -707,7 +707,7 @@ public function getRegistrationType() /** * Sets registrationType * - * @param \Domainrobot\Model\RegistrationTypeConstants $registrationType registrationType + * @param \Domainrobot\Model\RegistrationTypeConstants $registrationType Which type of registration has been used, FCFS, APPLICATION or OTHER. * * @return $this */ @@ -731,7 +731,7 @@ public function getMessageType() /** * Sets messageType * - * @param \Domainrobot\Model\MessageTypeConstants $messageType messageType + * @param \Domainrobot\Model\MessageTypeConstants $messageType Type of notification in the course of the preregistration process. * * @return $this */ @@ -755,7 +755,7 @@ public function getMinPeriod() /** * Sets minPeriod * - * @param \Domainrobot\Model\TimePeriod $minPeriod minPeriod + * @param \Domainrobot\Model\TimePeriod $minPeriod Default minimum registration term for a domain. * * @return $this */ diff --git a/src/Model/Price.php b/src/Model/Price.php index bd0d3135..28e537f6 100644 --- a/src/Model/Price.php +++ b/src/Model/Price.php @@ -60,8 +60,8 @@ class Price implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'updated' => '\DateTime', 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'amount' => 'double', 'type' => '\Domainrobot\Model\PriceTypeConstants', 'currency' => 'string', @@ -487,7 +487,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -497,7 +497,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -511,7 +511,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -521,7 +521,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/PriceChange.php b/src/Model/PriceChange.php index 498863b4..e0a3d2c3 100644 --- a/src/Model/PriceChange.php +++ b/src/Model/PriceChange.php @@ -59,8 +59,8 @@ class PriceChange implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'primary' => '\Domainrobot\Model\PriceChange', 'name' => 'string', @@ -82,6 +82,9 @@ class PriceChange implements ModelInterface, ArrayAccess 'worker' => 'string', 'ticketNumber' => 'string', 'priceClassPrefix' => 'string', + 'errorProductPriceTemplate' => '\Domainrobot\Model\ProductPriceTemplate', + 'errorPriceClassTemplate' => '\Domainrobot\Model\PriceClassTemplate', + 'errorMessage' => 'string', 'priceClassType' => 'string' ]; @@ -116,6 +119,9 @@ class PriceChange implements ModelInterface, ArrayAccess 'worker' => null, 'ticketNumber' => null, 'priceClassPrefix' => null, + 'errorProductPriceTemplate' => null, + 'errorPriceClassTemplate' => null, + 'errorMessage' => null, 'priceClassType' => null ]; @@ -171,6 +177,9 @@ public static function swaggerFormats() 'worker' => 'worker', 'ticketNumber' => 'ticketNumber', 'priceClassPrefix' => 'priceClassPrefix', + 'errorProductPriceTemplate' => 'errorProductPriceTemplate', + 'errorPriceClassTemplate' => 'errorPriceClassTemplate', + 'errorMessage' => 'errorMessage', 'priceClassType' => 'priceClassType' ]; @@ -205,6 +214,9 @@ public static function swaggerFormats() 'worker' => 'setWorker', 'ticketNumber' => 'setTicketNumber', 'priceClassPrefix' => 'setPriceClassPrefix', + 'errorProductPriceTemplate' => 'setErrorProductPriceTemplate', + 'errorPriceClassTemplate' => 'setErrorPriceClassTemplate', + 'errorMessage' => 'setErrorMessage', 'priceClassType' => 'setPriceClassType' ]; @@ -239,6 +251,9 @@ public static function swaggerFormats() 'worker' => 'getWorker', 'ticketNumber' => 'getTicketNumber', 'priceClassPrefix' => 'getPriceClassPrefix', + 'errorProductPriceTemplate' => 'getErrorProductPriceTemplate', + 'errorPriceClassTemplate' => 'getErrorPriceClassTemplate', + 'errorMessage' => 'getErrorMessage', 'priceClassType' => 'getPriceClassType' ]; @@ -327,6 +342,9 @@ public function __construct(array $data = null) $this->container['worker'] = isset($data['worker']) ? $this->createData($data['worker'], 'worker') : null; $this->container['ticketNumber'] = isset($data['ticketNumber']) ? $this->createData($data['ticketNumber'], 'ticketNumber') : null; $this->container['priceClassPrefix'] = isset($data['priceClassPrefix']) ? $this->createData($data['priceClassPrefix'], 'priceClassPrefix') : null; + $this->container['errorProductPriceTemplate'] = isset($data['errorProductPriceTemplate']) ? $this->createData($data['errorProductPriceTemplate'], 'errorProductPriceTemplate') : null; + $this->container['errorPriceClassTemplate'] = isset($data['errorPriceClassTemplate']) ? $this->createData($data['errorPriceClassTemplate'], 'errorPriceClassTemplate') : null; + $this->container['errorMessage'] = isset($data['errorMessage']) ? $this->createData($data['errorMessage'], 'errorMessage') : null; $this->container['priceClassType'] = isset($data['priceClassType']) ? $this->createData($data['priceClassType'], 'priceClassType') : null; } @@ -463,7 +481,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -473,7 +491,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -487,7 +505,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -497,7 +515,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -1012,6 +1030,78 @@ public function setPriceClassPrefix($priceClassPrefix) return $this; } + /** + * Gets errorProductPriceTemplate + * + * @return \Domainrobot\Model\ProductPriceTemplate + */ + public function getErrorProductPriceTemplate() + { + return $this->container['errorProductPriceTemplate']; + } + + /** + * Sets errorProductPriceTemplate + * + * @param \Domainrobot\Model\ProductPriceTemplate $errorProductPriceTemplate ProductPriceTemplate + * + * @return $this + */ + public function setErrorProductPriceTemplate($errorProductPriceTemplate) + { + $this->container['errorProductPriceTemplate'] = $errorProductPriceTemplate; + + return $this; + } + + /** + * Gets errorPriceClassTemplate + * + * @return \Domainrobot\Model\PriceClassTemplate + */ + public function getErrorPriceClassTemplate() + { + return $this->container['errorPriceClassTemplate']; + } + + /** + * Sets errorPriceClassTemplate + * + * @param \Domainrobot\Model\PriceClassTemplate $errorPriceClassTemplate PriceClassTemplate + * + * @return $this + */ + public function setErrorPriceClassTemplate($errorPriceClassTemplate) + { + $this->container['errorPriceClassTemplate'] = $errorPriceClassTemplate; + + return $this; + } + + /** + * Gets errorMessage + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['errorMessage']; + } + + /** + * Sets errorMessage + * + * @param string $errorMessage the error message from job + * + * @return $this + */ + public function setErrorMessage($errorMessage) + { + $this->container['errorMessage'] = $errorMessage; + + return $this; + } + /** * Gets priceClassType * diff --git a/src/Model/PriceChangeStatusConstants.php b/src/Model/PriceChangeStatusConstants.php index c57a8305..498edd2b 100644 --- a/src/Model/PriceChangeStatusConstants.php +++ b/src/Model/PriceChangeStatusConstants.php @@ -49,6 +49,7 @@ class PriceChangeStatusConstants const NOT_SET = 'NOT_SET'; const CONFIRMED = 'CONFIRMED'; const FINISHED = 'FINISHED'; + const PREPARE = 'PREPARE'; /** * Gets allowable values of the enum @@ -63,6 +64,7 @@ public static function getAllowableEnumValues() self::NOT_SET, self::CONFIRMED, self::FINISHED, + self::PREPARE, ]; } } diff --git a/src/Model/PriceClassTemplate.php b/src/Model/PriceClassTemplate.php index 1e746620..0cae3829 100644 --- a/src/Model/PriceClassTemplate.php +++ b/src/Model/PriceClassTemplate.php @@ -71,6 +71,7 @@ class PriceClassTemplate implements ModelInterface, ArrayAccess 'relative' => '\Domainrobot\Model\RelativeConstants', 'amount' => 'double', 'actualAmount' => 'double', + 'actualCurrency' => 'string', 'purchaseAmount' => 'double', 'margin' => 'float', 'priceConditions' => '\Domainrobot\Model\PriceServiceEntity[]', @@ -97,6 +98,7 @@ class PriceClassTemplate implements ModelInterface, ArrayAccess 'relative' => null, 'amount' => 'double', 'actualAmount' => 'double', + 'actualCurrency' => null, 'purchaseAmount' => 'double', 'margin' => 'float', 'priceConditions' => null, @@ -144,6 +146,7 @@ public static function swaggerFormats() 'relative' => 'relative', 'amount' => 'amount', 'actualAmount' => 'actualAmount', + 'actualCurrency' => 'actualCurrency', 'purchaseAmount' => 'purchaseAmount', 'margin' => 'margin', 'priceConditions' => 'priceConditions', @@ -170,6 +173,7 @@ public static function swaggerFormats() 'relative' => 'setRelative', 'amount' => 'setAmount', 'actualAmount' => 'setActualAmount', + 'actualCurrency' => 'setActualCurrency', 'purchaseAmount' => 'setPurchaseAmount', 'margin' => 'setMargin', 'priceConditions' => 'setPriceConditions', @@ -196,6 +200,7 @@ public static function swaggerFormats() 'relative' => 'getRelative', 'amount' => 'getAmount', 'actualAmount' => 'getActualAmount', + 'actualCurrency' => 'getActualCurrency', 'purchaseAmount' => 'getPurchaseAmount', 'margin' => 'getMargin', 'priceConditions' => 'getPriceConditions', @@ -276,6 +281,7 @@ public function __construct(array $data = null) $this->container['relative'] = isset($data['relative']) ? $this->createData($data['relative'], 'relative') : null; $this->container['amount'] = isset($data['amount']) ? $this->createData($data['amount'], 'amount') : null; $this->container['actualAmount'] = isset($data['actualAmount']) ? $this->createData($data['actualAmount'], 'actualAmount') : null; + $this->container['actualCurrency'] = isset($data['actualCurrency']) ? $this->createData($data['actualCurrency'], 'actualCurrency') : null; $this->container['purchaseAmount'] = isset($data['purchaseAmount']) ? $this->createData($data['purchaseAmount'], 'purchaseAmount') : null; $this->container['margin'] = isset($data['margin']) ? $this->createData($data['margin'], 'margin') : null; $this->container['priceConditions'] = isset($data['priceConditions']) ? $this->createData($data['priceConditions'], 'priceConditions') : null; @@ -718,6 +724,30 @@ public function setActualAmount($actualAmount) return $this; } + /** + * Gets actualCurrency + * + * @return string + */ + public function getActualCurrency() + { + return $this->container['actualCurrency']; + } + + /** + * Sets actualCurrency + * + * @param string $actualCurrency Actual currency + * + * @return $this + */ + public function setActualCurrency($actualCurrency) + { + $this->container['actualCurrency'] = $actualCurrency; + + return $this; + } + /** * Gets purchaseAmount * diff --git a/src/Model/PriceList.php b/src/Model/PriceList.php index 3ea732c0..3d30bf59 100644 --- a/src/Model/PriceList.php +++ b/src/Model/PriceList.php @@ -59,8 +59,8 @@ class PriceList implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'label' => 'string', 'client' => 'string', @@ -72,7 +72,8 @@ class PriceList implements ModelInterface, ArrayAccess 'comment' => 'string', 'customerPriceListsAdd' => '\Domainrobot\Model\CustomerPriceList[]', 'customerPriceListsRem' => '\Domainrobot\Model\CustomerPriceList[]', - 'hasCustomerPriceList' => 'bool' + 'hasCustomerPriceList' => 'bool', + 'excludeFromPricechange' => 'bool' ]; /** @@ -96,7 +97,8 @@ class PriceList implements ModelInterface, ArrayAccess 'comment' => null, 'customerPriceListsAdd' => null, 'customerPriceListsRem' => null, - 'hasCustomerPriceList' => null + 'hasCustomerPriceList' => null, + 'excludeFromPricechange' => null ]; /** @@ -141,7 +143,8 @@ public static function swaggerFormats() 'comment' => 'comment', 'customerPriceListsAdd' => 'customerPriceListsAdd', 'customerPriceListsRem' => 'customerPriceListsRem', - 'hasCustomerPriceList' => 'hasCustomerPriceList' + 'hasCustomerPriceList' => 'hasCustomerPriceList', + 'excludeFromPricechange' => 'excludeFromPricechange' ]; /** @@ -165,7 +168,8 @@ public static function swaggerFormats() 'comment' => 'setComment', 'customerPriceListsAdd' => 'setCustomerPriceListsAdd', 'customerPriceListsRem' => 'setCustomerPriceListsRem', - 'hasCustomerPriceList' => 'setHasCustomerPriceList' + 'hasCustomerPriceList' => 'setHasCustomerPriceList', + 'excludeFromPricechange' => 'setExcludeFromPricechange' ]; /** @@ -189,7 +193,8 @@ public static function swaggerFormats() 'comment' => 'getComment', 'customerPriceListsAdd' => 'getCustomerPriceListsAdd', 'customerPriceListsRem' => 'getCustomerPriceListsRem', - 'hasCustomerPriceList' => 'getHasCustomerPriceList' + 'hasCustomerPriceList' => 'getHasCustomerPriceList', + 'excludeFromPricechange' => 'getExcludeFromPricechange' ]; /** @@ -268,6 +273,7 @@ public function __construct(array $data = null) $this->container['customerPriceListsAdd'] = isset($data['customerPriceListsAdd']) ? $this->createData($data['customerPriceListsAdd'], 'customerPriceListsAdd') : null; $this->container['customerPriceListsRem'] = isset($data['customerPriceListsRem']) ? $this->createData($data['customerPriceListsRem'], 'customerPriceListsRem') : null; $this->container['hasCustomerPriceList'] = isset($data['hasCustomerPriceList']) ? $this->createData($data['hasCustomerPriceList'], 'hasCustomerPriceList') : null; + $this->container['excludeFromPricechange'] = isset($data['excludeFromPricechange']) ? $this->createData($data['excludeFromPricechange'], 'excludeFromPricechange') : null; } /** @@ -400,7 +406,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -410,7 +416,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -424,7 +430,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -434,7 +440,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -732,6 +738,30 @@ public function setHasCustomerPriceList($hasCustomerPriceList) return $this; } + + /** + * Gets excludeFromPricechange + * + * @return bool + */ + public function getExcludeFromPricechange() + { + return $this->container['excludeFromPricechange']; + } + + /** + * Sets excludeFromPricechange + * + * @param bool $excludeFromPricechange excludeFromPricechange + * + * @return $this + */ + public function setExcludeFromPricechange($excludeFromPricechange) + { + $this->container['excludeFromPricechange'] = $excludeFromPricechange; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/Product.php b/src/Model/Product.php index 77614886..e5457cb6 100644 --- a/src/Model/Product.php +++ b/src/Model/Product.php @@ -59,8 +59,8 @@ class Product implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'article' => '\Domainrobot\Model\Article', 'vatType' => 'string', 'priceRequired' => 'bool', @@ -364,7 +364,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -374,7 +374,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -388,7 +388,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -398,7 +398,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/ProductPriceTemplate.php b/src/Model/ProductPriceTemplate.php index d2c71a8e..d1a7d713 100644 --- a/src/Model/ProductPriceTemplate.php +++ b/src/Model/ProductPriceTemplate.php @@ -71,6 +71,7 @@ class ProductPriceTemplate implements ModelInterface, ArrayAccess 'relative' => '\Domainrobot\Model\RelativeConstants', 'priceConditions' => '\Domainrobot\Model\PriceServiceEntity[]', 'actualAmount' => 'double', + 'actualCurrency' => 'string', 'purchaseAmount' => 'double', 'margin' => 'float' ]; @@ -95,6 +96,7 @@ class ProductPriceTemplate implements ModelInterface, ArrayAccess 'relative' => null, 'priceConditions' => null, 'actualAmount' => 'double', + 'actualCurrency' => null, 'purchaseAmount' => 'double', 'margin' => 'float' ]; @@ -140,6 +142,7 @@ public static function swaggerFormats() 'relative' => 'relative', 'priceConditions' => 'priceConditions', 'actualAmount' => 'actualAmount', + 'actualCurrency' => 'actualCurrency', 'purchaseAmount' => 'purchaseAmount', 'margin' => 'margin' ]; @@ -164,6 +167,7 @@ public static function swaggerFormats() 'relative' => 'setRelative', 'priceConditions' => 'setPriceConditions', 'actualAmount' => 'setActualAmount', + 'actualCurrency' => 'setActualCurrency', 'purchaseAmount' => 'setPurchaseAmount', 'margin' => 'setMargin' ]; @@ -188,6 +192,7 @@ public static function swaggerFormats() 'relative' => 'getRelative', 'priceConditions' => 'getPriceConditions', 'actualAmount' => 'getActualAmount', + 'actualCurrency' => 'getActualCurrency', 'purchaseAmount' => 'getPurchaseAmount', 'margin' => 'getMargin' ]; @@ -266,6 +271,7 @@ public function __construct(array $data = null) $this->container['relative'] = isset($data['relative']) ? $this->createData($data['relative'], 'relative') : null; $this->container['priceConditions'] = isset($data['priceConditions']) ? $this->createData($data['priceConditions'], 'priceConditions') : null; $this->container['actualAmount'] = isset($data['actualAmount']) ? $this->createData($data['actualAmount'], 'actualAmount') : null; + $this->container['actualCurrency'] = isset($data['actualCurrency']) ? $this->createData($data['actualCurrency'], 'actualCurrency') : null; $this->container['purchaseAmount'] = isset($data['purchaseAmount']) ? $this->createData($data['purchaseAmount'], 'purchaseAmount') : null; $this->container['margin'] = isset($data['margin']) ? $this->createData($data['margin'], 'margin') : null; } @@ -700,6 +706,30 @@ public function setActualAmount($actualAmount) return $this; } + /** + * Gets actualCurrency + * + * @return string + */ + public function getActualCurrency() + { + return $this->container['actualCurrency']; + } + + /** + * Sets actualCurrency + * + * @param string $actualCurrency Actual currency + * + * @return $this + */ + public function setActualCurrency($actualCurrency) + { + $this->container['actualCurrency'] = $actualCurrency; + + return $this; + } + /** * Gets purchaseAmount * diff --git a/src/Model/ProviderEntity.php b/src/Model/ProviderEntity.php index ed25828f..e4350782 100644 --- a/src/Model/ProviderEntity.php +++ b/src/Model/ProviderEntity.php @@ -59,8 +59,8 @@ class ProviderEntity implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'types' => 'string[]' ]; @@ -340,7 +340,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -350,7 +350,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -364,7 +364,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -374,7 +374,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/Redirect.php b/src/Model/Redirect.php index 764d76d7..fc351ac1 100644 --- a/src/Model/Redirect.php +++ b/src/Model/Redirect.php @@ -59,8 +59,8 @@ class Redirect implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'source' => 'string', 'target' => 'string', 'type' => '\Domainrobot\Model\RedirectTypeConstants', @@ -400,7 +400,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -410,7 +410,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -424,7 +424,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -434,7 +434,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -458,7 +458,7 @@ public function getSource() /** * Sets source * - * @param string $source The domain/email to be redirected. Enter the domain with or without \"www\". + * @param string $source Domain that is to be redirected, e.g. test.example.com. * * @return $this */ @@ -482,7 +482,7 @@ public function getTarget() /** * Sets target * - * @param string $target The URL of the target domain/email. Enter the domain without \"http://\" + * @param string $target The URL of the target domain. Enter the domain without \"https://\". * * @return $this */ @@ -506,7 +506,7 @@ public function getType() /** * Sets type * - * @param \Domainrobot\Model\RedirectTypeConstants $type Redirect type + * @param \Domainrobot\Model\RedirectTypeConstants $type The type of redirect. * * @return $this */ @@ -530,7 +530,7 @@ public function getMode() /** * Sets mode * - * @param \Domainrobot\Model\RedirectModeConstants $mode Redirect mode + * @param \Domainrobot\Model\RedirectModeConstants $mode The redirect mode of domain and email forwarding. * * @return $this */ @@ -554,7 +554,7 @@ public function getDomain() /** * Sets domain * - * @param string $domain The domain, which the redirect belongs. + * @param string $domain Domain that is to be redirected, e.g. example.com. * * @return $this */ @@ -602,7 +602,7 @@ public function getBackups() /** * Sets backups * - * @param string[] $backups Alternative URLs for frame redirect + * @param string[] $backups Backup destinations for the redirects. If the first destination cannot be reached, the domain is automatically redirected to the substitute destination (domain redirection, frame redirect). * * @return $this */ @@ -626,7 +626,7 @@ public function getSourceIdn() /** * Sets sourceIdn * - * @param string $sourceIdn The IDN version of the domain to be redirected. Enter the domain with or without \"www\". + * @param string $sourceIdn The IDN version of the domain name. Domains can be entered with or without \"www\". * * @return $this */ @@ -650,7 +650,7 @@ public function getTargetIdn() /** * Sets targetIdn * - * @param string $targetIdn The IDN version of the URL of the target domain. Enter the domain without \"http://\" + * @param string $targetIdn The Punycode syntax (IDN) version of the target domain URL. Enter the domain without \"https://\". * * @return $this */ @@ -674,7 +674,7 @@ public function getLastSeen() /** * Sets lastSeen * - * @param \DateTime $lastSeen The last dns connection. + * @param \DateTime $lastSeen The last DNS connection. Used for analytics, to keep track of when the DNS has been used. * * @return $this */ diff --git a/src/Model/RelativeConstants.php b/src/Model/RelativeConstants.php index c588cd41..72ee5b19 100644 --- a/src/Model/RelativeConstants.php +++ b/src/Model/RelativeConstants.php @@ -47,6 +47,7 @@ class RelativeConstants const RELATIVE_PERCENT = 'RELATIVE_PERCENT'; const RELATIVE_AMOUNT = 'RELATIVE_AMOUNT'; const DELETE = 'DELETE'; + const REPLACE = 'REPLACE'; /** * Gets allowable values of the enum @@ -59,6 +60,7 @@ public static function getAllowableEnumValues() self::RELATIVE_PERCENT, self::RELATIVE_AMOUNT, self::DELETE, + self::REPLACE, ]; } } diff --git a/src/Model/ResourceRecord.php b/src/Model/ResourceRecord.php index 3a49f390..90a4fb93 100644 --- a/src/Model/ResourceRecord.php +++ b/src/Model/ResourceRecord.php @@ -309,7 +309,7 @@ public function getName() /** * Sets name * - * @param string $name The name of the record. + * @param string $name The name of the resource record. * * @return $this */ @@ -333,7 +333,7 @@ public function getTtl() /** * Sets ttl * - * @param int $ttl TTL of the record (Optionally if not set then Default SOA TTL is used) + * @param int $ttl Time-to-live value in seconds. Will be set to the default SOA value if not explicitly set. * * @return $this */ @@ -357,7 +357,7 @@ public function getType() /** * Sets type * - * @param string $type The type of the record, e.g. A + * @param string $type Resource record type Further information about resource records: https://de.wikipedia.org/wiki/Resource_Record * * @return $this */ @@ -381,7 +381,7 @@ public function getValue() /** * Sets value * - * @param string $value The value of the record. + * @param string $value The value of the resource record. * * @return $this */ @@ -405,7 +405,7 @@ public function getPref() /** * Sets pref * - * @param int $pref Preference of the record, need for some record types e.g. MX + * @param int $pref The resource record priority which may be needed by certain record types such as MX. * * @return $this */ diff --git a/src/Model/SellMode.php b/src/Model/SellMode.php new file mode 100644 index 00000000..e42e8a34 --- /dev/null +++ b/src/Model/SellMode.php @@ -0,0 +1,62 @@ + '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'key' => 'string', 'value' => 'string' ]; @@ -346,7 +346,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -356,7 +356,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -370,7 +370,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -380,7 +380,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -404,7 +404,7 @@ public function getKey() /** * Sets key * - * @param string $key The user profile key + * @param string $key The user profile key. * * @return $this */ @@ -428,7 +428,7 @@ public function getValue() /** * Sets value * - * @param string $value The value of the key + * @param string $value The value of the key. * * @return $this */ diff --git a/src/Model/SpamPolicy.php b/src/Model/SpamPolicy.php index a4bfb8a8..7996dbc8 100644 --- a/src/Model/SpamPolicy.php +++ b/src/Model/SpamPolicy.php @@ -330,7 +330,7 @@ public function getMode() /** * Sets mode * - * @param \Domainrobot\Model\PolicyMode $mode mode + * @param \Domainrobot\Model\PolicyMode $mode Allows to enable checking by policy and choose how it should be handled if it does not comply with policy. * * @return $this */ diff --git a/src/Model/SslContact.php b/src/Model/SslContact.php index ea9e361a..13712d39 100644 --- a/src/Model/SslContact.php +++ b/src/Model/SslContact.php @@ -73,8 +73,8 @@ class SslContact implements ModelInterface, ArrayAccess 'city' => 'string', 'country' => 'string', 'state' => 'string', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int' ]; @@ -787,7 +787,7 @@ public function setState($state) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -797,7 +797,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The owner of the object + * @param \Domainrobot\Model\User $owner The owner of the object * * @return $this */ @@ -811,7 +811,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -821,7 +821,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater The updating using of the object + * @param \Domainrobot\Model\User $updater The updating using of the object * * @return $this */ diff --git a/src/Model/SslContactGeneralExtensions.php b/src/Model/SslContactGeneralExtensions.php index 00df1e61..65cdd012 100644 --- a/src/Model/SslContactGeneralExtensions.php +++ b/src/Model/SslContactGeneralExtensions.php @@ -61,7 +61,8 @@ class SslContactGeneralExtensions implements ModelInterface, ArrayAccess 'joiLocality' => 'string', 'joiStateOrProvince' => 'string', 'companyNumber' => 'string', - 'businessCategory' => '\Domainrobot\Model\BusinessCategory' + 'businessCategory' => '\Domainrobot\Model\BusinessCategory', + 'organisationalIdentifier' => 'string' ]; /** @@ -74,7 +75,8 @@ class SslContactGeneralExtensions implements ModelInterface, ArrayAccess 'joiLocality' => null, 'joiStateOrProvince' => null, 'companyNumber' => null, - 'businessCategory' => null + 'businessCategory' => null, + 'organisationalIdentifier' => null ]; /** @@ -108,7 +110,8 @@ public static function swaggerFormats() 'joiLocality' => 'joiLocality', 'joiStateOrProvince' => 'joiStateOrProvince', 'companyNumber' => 'companyNumber', - 'businessCategory' => 'businessCategory' + 'businessCategory' => 'businessCategory', + 'organisationalIdentifier' => 'organisationalIdentifier' ]; /** @@ -121,7 +124,8 @@ public static function swaggerFormats() 'joiLocality' => 'setJoiLocality', 'joiStateOrProvince' => 'setJoiStateOrProvince', 'companyNumber' => 'setCompanyNumber', - 'businessCategory' => 'setBusinessCategory' + 'businessCategory' => 'setBusinessCategory', + 'organisationalIdentifier' => 'setOrganisationalIdentifier' ]; /** @@ -134,7 +138,8 @@ public static function swaggerFormats() 'joiLocality' => 'getJoiLocality', 'joiStateOrProvince' => 'getJoiStateOrProvince', 'companyNumber' => 'getCompanyNumber', - 'businessCategory' => 'getBusinessCategory' + 'businessCategory' => 'getBusinessCategory', + 'organisationalIdentifier' => 'getOrganisationalIdentifier' ]; /** @@ -202,6 +207,7 @@ public function __construct(array $data = null) $this->container['joiStateOrProvince'] = isset($data['joiStateOrProvince']) ? $this->createData($data['joiStateOrProvince'], 'joiStateOrProvince') : null; $this->container['companyNumber'] = isset($data['companyNumber']) ? $this->createData($data['companyNumber'], 'companyNumber') : null; $this->container['businessCategory'] = isset($data['businessCategory']) ? $this->createData($data['businessCategory'], 'businessCategory') : null; + $this->container['organisationalIdentifier'] = isset($data['organisationalIdentifier']) ? $this->createData($data['organisationalIdentifier'], 'organisationalIdentifier') : null; } /** @@ -402,6 +408,30 @@ public function setBusinessCategory($businessCategory) return $this; } + + /** + * Gets organisationalIdentifier + * + * @return string + */ + public function getOrganisationalIdentifier() + { + return $this->container['organisationalIdentifier']; + } + + /** + * Sets organisationalIdentifier + * + * @param string $organisationalIdentifier The Organisational Identifier is the company/organization's registration number. It can either be a VAT, NTR, LEI number. You can provide GOV-identifier ( GOV + Country Code ) if it is a governmental organisation. INTXG if none matches. + * + * @return $this + */ + public function setOrganisationalIdentifier($organisationalIdentifier) + { + $this->container['organisationalIdentifier'] = $organisationalIdentifier; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/SubjectProduct.php b/src/Model/SubjectProduct.php index a4ca5395..69bb681a 100644 --- a/src/Model/SubjectProduct.php +++ b/src/Model/SubjectProduct.php @@ -59,12 +59,12 @@ class SubjectProduct implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'period' => '\Domainrobot\Model\TimePeriod', 'customer' => '\Domainrobot\Model\GenericCustomer', - 'billing' => '\Domainrobot\Model\BasicUser', + 'billing' => '\Domainrobot\Model\User', 'product' => '\Domainrobot\Model\Product', 'subject' => '\Domainrobot\Model\Subject', 'count' => 'float', @@ -460,7 +460,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -470,7 +470,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -484,7 +484,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -494,7 +494,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -580,7 +580,7 @@ public function setCustomer($customer) /** * Gets billing * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getBilling() { @@ -590,7 +590,7 @@ public function getBilling() /** * Sets billing * - * @param \Domainrobot\Model\BasicUser $billing Billing user + * @param \Domainrobot\Model\User $billing Billing user * * @return $this */ diff --git a/src/Model/Subscription.php b/src/Model/Subscription.php index 8244f6eb..3190d193 100644 --- a/src/Model/Subscription.php +++ b/src/Model/Subscription.php @@ -60,8 +60,8 @@ class Subscription implements ModelInterface, ArrayAccess 'created' => '\DateTime', 'updated' => '\DateTime', 'id' => 'int', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'status' => '\Domainrobot\Model\BillingStatus', 'object' => 'string', 'description' => 'string', @@ -475,7 +475,7 @@ public function setId($id) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -485,7 +485,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -499,7 +499,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -509,7 +509,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/TaskGroup.php b/src/Model/TaskGroup.php index b88f19f2..0a1cd9dd 100644 --- a/src/Model/TaskGroup.php +++ b/src/Model/TaskGroup.php @@ -58,6 +58,8 @@ class TaskGroup const ZONE_UPDATE = 'ZONE_UPDATE'; const ZONE_DELETE = 'ZONE_DELETE'; const ZONE_AXFR = 'ZONE_AXFR'; + const DOMAINSTUDIO_DOMAINSBOT = 'DOMAINSTUDIO_DOMAINSBOT'; + const DOMAINSTUDIO_PLACEMENTPLUS = 'DOMAINSTUDIO_PLACEMENTPLUS'; /** * Gets allowable values of the enum @@ -81,6 +83,8 @@ public static function getAllowableEnumValues() self::ZONE_UPDATE, self::ZONE_DELETE, self::ZONE_AXFR, + self::DOMAINSTUDIO_DOMAINSBOT, + self::DOMAINSTUDIO_PLACEMENTPLUS, ]; } } diff --git a/src/Model/TaskLimit.php b/src/Model/TaskLimit.php index de0b5aee..c7307f68 100644 --- a/src/Model/TaskLimit.php +++ b/src/Model/TaskLimit.php @@ -67,7 +67,7 @@ class TaskLimit implements ModelInterface, ArrayAccess 'inclusiveChildren' => 'int', 'timeUnitChildren' => '\Domainrobot\Model\TimeUnitConstants', 'count' => 'int', - 'user' => '\Domainrobot\Model\BasicUser' + 'user' => '\Domainrobot\Model\User' ]; /** @@ -562,7 +562,7 @@ public function setCount($count) /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -572,7 +572,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user The affected user + * @param \Domainrobot\Model\User $user The affected user * * @return $this */ diff --git a/src/Model/TaskUserLimit.php b/src/Model/TaskUserLimit.php index 61e1fbf8..d52c65b1 100644 --- a/src/Model/TaskUserLimit.php +++ b/src/Model/TaskUserLimit.php @@ -57,7 +57,7 @@ class TaskUserLimit implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'user' => '\Domainrobot\Model\BasicUser', + 'user' => '\Domainrobot\Model\User', 'entries' => '\Domainrobot\Model\TaskLimit[]' ]; @@ -271,7 +271,7 @@ public function valid() /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -281,7 +281,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user user + * @param \Domainrobot\Model\User $user user * * @return $this */ diff --git a/src/Model/TechnicalCustomer.php b/src/Model/TechnicalCustomer.php index 22aee132..49c36c34 100644 --- a/src/Model/TechnicalCustomer.php +++ b/src/Model/TechnicalCustomer.php @@ -316,7 +316,7 @@ public function getNumber() /** * Sets number * - * @param int $number number + * @param int $number Customer number * * @return $this */ @@ -340,7 +340,7 @@ public function getClient() /** * Sets client * - * @param string $client client + * @param string $client Account Label. * * @return $this */ @@ -371,7 +371,7 @@ public function getGroup() /** * Sets group * - * @param int $group group + * @param int $group Customer group, first 5 numbers of the account number. e.g. * * @return $this */ diff --git a/src/Model/TldProduct.php b/src/Model/TldProduct.php index a514f7ce..9141463b 100644 --- a/src/Model/TldProduct.php +++ b/src/Model/TldProduct.php @@ -130,6 +130,7 @@ class TldProduct implements ModelInterface, ArrayAccess 'isManual' => 'bool', 'requiredFields' => 'string[]', 'transferImportedContacts' => '\Domainrobot\Model\ContactReferenceType[]', + 'allowedOcCases' => 'string[]', 'registrars' => '\Domainrobot\Model\Registrar[]', 'autoDelete' => 'bool', 'documents' => '\Domainrobot\Model\Document[]', @@ -137,7 +138,8 @@ class TldProduct implements ModelInterface, ArrayAccess 'trusteeTypes' => '\Domainrobot\Model\ContactReferenceType[]', 'sldMin' => 'int', 'sldMax' => 'int', - 'numeric' => 'bool' + 'numeric' => 'bool', + 'sedoMls' => 'bool' ]; /** @@ -219,6 +221,7 @@ class TldProduct implements ModelInterface, ArrayAccess 'isManual' => null, 'requiredFields' => null, 'transferImportedContacts' => null, + 'allowedOcCases' => null, 'registrars' => null, 'autoDelete' => null, 'documents' => null, @@ -226,7 +229,8 @@ class TldProduct implements ModelInterface, ArrayAccess 'trusteeTypes' => null, 'sldMin' => 'int32', 'sldMax' => 'int32', - 'numeric' => null + 'numeric' => null, + 'sedoMls' => null ]; /** @@ -329,6 +333,7 @@ public static function swaggerFormats() 'isManual' => 'isManual', 'requiredFields' => 'requiredFields', 'transferImportedContacts' => 'transferImportedContacts', + 'allowedOcCases' => 'allowedOcCases', 'registrars' => 'registrars', 'autoDelete' => 'autoDelete', 'documents' => 'documents', @@ -336,7 +341,8 @@ public static function swaggerFormats() 'trusteeTypes' => 'trusteeTypes', 'sldMin' => 'sldMin', 'sldMax' => 'sldMax', - 'numeric' => 'numeric' + 'numeric' => 'numeric', + 'sedoMls' => 'sedo_mls' ]; /** @@ -418,6 +424,7 @@ public static function swaggerFormats() 'isManual' => 'setIsManual', 'requiredFields' => 'setRequiredFields', 'transferImportedContacts' => 'setTransferImportedContacts', + 'allowedOcCases' => 'setAllowedOcCases', 'registrars' => 'setRegistrars', 'autoDelete' => 'setAutoDelete', 'documents' => 'setDocuments', @@ -425,7 +432,8 @@ public static function swaggerFormats() 'trusteeTypes' => 'setTrusteeTypes', 'sldMin' => 'setSldMin', 'sldMax' => 'setSldMax', - 'numeric' => 'setNumeric' + 'numeric' => 'setNumeric', + 'sedoMls' => 'setSedoMls' ]; /** @@ -507,6 +515,7 @@ public static function swaggerFormats() 'isManual' => 'getIsManual', 'requiredFields' => 'getRequiredFields', 'transferImportedContacts' => 'getTransferImportedContacts', + 'allowedOcCases' => 'getAllowedOcCases', 'registrars' => 'getRegistrars', 'autoDelete' => 'getAutoDelete', 'documents' => 'getDocuments', @@ -514,7 +523,8 @@ public static function swaggerFormats() 'trusteeTypes' => 'getTrusteeTypes', 'sldMin' => 'getSldMin', 'sldMax' => 'getSldMax', - 'numeric' => 'getNumeric' + 'numeric' => 'getNumeric', + 'sedoMls' => 'getSedoMls' ]; /** @@ -650,6 +660,7 @@ public function __construct(array $data = null) $this->container['isManual'] = isset($data['isManual']) ? $this->createData($data['isManual'], 'isManual') : null; $this->container['requiredFields'] = isset($data['requiredFields']) ? $this->createData($data['requiredFields'], 'requiredFields') : null; $this->container['transferImportedContacts'] = isset($data['transferImportedContacts']) ? $this->createData($data['transferImportedContacts'], 'transferImportedContacts') : null; + $this->container['allowedOcCases'] = isset($data['allowedOcCases']) ? $this->createData($data['allowedOcCases'], 'allowedOcCases') : null; $this->container['registrars'] = isset($data['registrars']) ? $this->createData($data['registrars'], 'registrars') : null; $this->container['autoDelete'] = isset($data['autoDelete']) ? $this->createData($data['autoDelete'], 'autoDelete') : null; $this->container['documents'] = isset($data['documents']) ? $this->createData($data['documents'], 'documents') : null; @@ -658,6 +669,7 @@ public function __construct(array $data = null) $this->container['sldMin'] = isset($data['sldMin']) ? $this->createData($data['sldMin'], 'sldMin') : null; $this->container['sldMax'] = isset($data['sldMax']) ? $this->createData($data['sldMax'], 'sldMax') : null; $this->container['numeric'] = isset($data['numeric']) ? $this->createData($data['numeric'], 'numeric') : null; + $this->container['sedoMls'] = isset($data['sedoMls']) ? $this->createData($data['sedoMls'], 'sedoMls') : null; } /** @@ -2491,6 +2503,30 @@ public function setTransferImportedContacts($transferImportedContacts) return $this; } + /** + * Gets allowedOcCases + * + * @return string[] + */ + public function getAllowedOcCases() + { + return $this->container['allowedOcCases']; + } + + /** + * Sets allowedOcCases + * + * @param string[] $allowedOcCases allowedOcCases + * + * @return $this + */ + public function setAllowedOcCases($allowedOcCases) + { + $this->container['allowedOcCases'] = $allowedOcCases; + + return $this; + } + /** * Gets registrars * @@ -2682,6 +2718,30 @@ public function setNumeric($numeric) return $this; } + + /** + * Gets sedoMls + * + * @return bool + */ + public function getSedoMls() + { + return $this->container['sedoMls']; + } + + /** + * Sets sedoMls + * + * @param bool $sedoMls sedoMls + * + * @return $this + */ + public function setSedoMls($sedoMls) + { + $this->container['sedoMls'] = $sedoMls; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/TmchClaimsNotice.php b/src/Model/TmchClaimsNotice.php index b0948145..51696107 100644 --- a/src/Model/TmchClaimsNotice.php +++ b/src/Model/TmchClaimsNotice.php @@ -59,8 +59,8 @@ class TmchClaimsNotice implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'reference' => 'string', 'name' => '\Domainrobot\Model\Domain', 'idn' => 'string', @@ -409,7 +409,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -419,7 +419,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -433,7 +433,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -443,7 +443,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/TmchMark.php b/src/Model/TmchMark.php index f9140793..49e98268 100644 --- a/src/Model/TmchMark.php +++ b/src/Model/TmchMark.php @@ -59,8 +59,8 @@ class TmchMark implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'id' => 'int', 'type' => '\Domainrobot\Model\TmchMarkTypeConstants', 'name' => 'string', @@ -472,7 +472,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -482,7 +482,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -496,7 +496,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -506,7 +506,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/TmchMarkComment.php b/src/Model/TmchMarkComment.php index 3b24b298..d4267e7b 100644 --- a/src/Model/TmchMarkComment.php +++ b/src/Model/TmchMarkComment.php @@ -61,7 +61,7 @@ class TmchMarkComment implements ModelInterface, ArrayAccess 'updated' => '\DateTime', 'status' => '\Domainrobot\Model\TmchMarkStatusConstants', 'comment' => 'string', - 'user' => '\Domainrobot\Model\BasicUser' + 'user' => '\Domainrobot\Model\User' ]; /** @@ -382,7 +382,7 @@ public function setComment($comment) /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -392,7 +392,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user user + * @param \Domainrobot\Model\User $user user * * @return $this */ diff --git a/src/Model/Transfer.php b/src/Model/Transfer.php index fe1f53a9..5f1f43c3 100644 --- a/src/Model/Transfer.php +++ b/src/Model/Transfer.php @@ -59,8 +59,8 @@ class Transfer implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'domain' => 'string', 'gainingRegistrar' => 'string', 'loosingRegistrar' => 'string', @@ -397,7 +397,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -407,7 +407,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -421,7 +421,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -431,7 +431,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/TransferOut.php b/src/Model/TransferOut.php index 3eb3afb1..b49ec147 100644 --- a/src/Model/TransferOut.php +++ b/src/Model/TransferOut.php @@ -59,8 +59,8 @@ class TransferOut implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'domain' => 'string', 'gainingRegistrar' => 'string', 'loosingRegistrar' => 'string', @@ -412,7 +412,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -422,7 +422,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -436,7 +436,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -446,7 +446,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/TrustedApplication.php b/src/Model/TrustedApplication.php index 6a0b7008..59f23d97 100644 --- a/src/Model/TrustedApplication.php +++ b/src/Model/TrustedApplication.php @@ -59,9 +59,9 @@ class TrustedApplication implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', - 'user' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', + 'user' => '\Domainrobot\Model\User', 'uuid' => 'string', 'password' => 'string', 'application' => '\Domainrobot\Model\Application', @@ -382,7 +382,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -392,7 +392,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -406,7 +406,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -416,7 +416,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -430,7 +430,7 @@ public function setUpdater($updater) /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -440,7 +440,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user The user the trusted application belongs to. + * @param \Domainrobot\Model\User $user The user the trusted application belongs to. * * @return $this */ diff --git a/src/Model/User.php b/src/Model/User.php index 4eb9866f..248ce37e 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -57,36 +57,10 @@ class User implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'created' => '\DateTime', - 'updated' => '\DateTime', 'context' => 'int', - 'password' => 'string', - 'defaultEmail' => 'string', - 'status' => 'int', - 'substatus' => 'int', - 'authType' => '\Domainrobot\Model\AuthType', - 'details' => '\Domainrobot\Model\UserDetails', - 'lock' => '\Domainrobot\Model\UserLock', - 'oldPassword' => 'string', 'passwordChanged' => '\DateTime', 'passwordExpired' => 'bool', - 'acls' => '\Domainrobot\Model\UserAcls', - 'profiles' => '\Domainrobot\Model\UserProfileViews', - 'serviceProfiles' => '\Domainrobot\Model\ServiceProfiles', - 'ancestors' => '\Domainrobot\Model\BasicUser[]', - 'customer' => '\Domainrobot\Model\BasicCustomer', - 'nameServerGroups' => '\Domainrobot\Model\VirtualNameServerGroup[]', - 'subscriptions' => '\Domainrobot\Model\Subscription[]', - 'applications' => '\Domainrobot\Model\TrustedApplication[]', - 'restrictions' => '\Domainrobot\Model\IpRestrictions', - 'customerLevel' => 'int', - 'user' => 'string', - 'language' => 'string', - 'parent' => '\Domainrobot\Model\User', - 'directCustomer' => 'bool', - 'clientAccounts' => '\Domainrobot\Model\ExternalAccounting[]', - 'tasklimits' => '\Domainrobot\Model\TaskLimit[]', - 'trusteeContacts' => '\Domainrobot\Model\TrusteeContact[]' + 'user' => 'string' ]; /** @@ -95,36 +69,10 @@ class User implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'created' => 'date-time', - 'updated' => 'date-time', 'context' => 'int32', - 'password' => null, - 'defaultEmail' => null, - 'status' => 'int32', - 'substatus' => 'int32', - 'authType' => null, - 'details' => null, - 'lock' => null, - 'oldPassword' => null, 'passwordChanged' => 'date-time', 'passwordExpired' => null, - 'acls' => null, - 'profiles' => null, - 'serviceProfiles' => null, - 'ancestors' => null, - 'customer' => null, - 'nameServerGroups' => null, - 'subscriptions' => null, - 'applications' => null, - 'restrictions' => null, - 'customerLevel' => 'int32', - 'user' => null, - 'language' => null, - 'parent' => null, - 'directCustomer' => null, - 'clientAccounts' => null, - 'tasklimits' => null, - 'trusteeContacts' => null + 'user' => null ]; /** @@ -154,36 +102,10 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'created' => 'created', - 'updated' => 'updated', 'context' => 'context', - 'password' => 'password', - 'defaultEmail' => 'defaultEmail', - 'status' => 'status', - 'substatus' => 'substatus', - 'authType' => 'authType', - 'details' => 'details', - 'lock' => 'lock', - 'oldPassword' => 'oldPassword', 'passwordChanged' => 'passwordChanged', 'passwordExpired' => 'passwordExpired', - 'acls' => 'acls', - 'profiles' => 'profiles', - 'serviceProfiles' => 'serviceProfiles', - 'ancestors' => 'ancestors', - 'customer' => 'customer', - 'nameServerGroups' => 'nameServerGroups', - 'subscriptions' => 'subscriptions', - 'applications' => 'applications', - 'restrictions' => 'restrictions', - 'customerLevel' => 'customerLevel', - 'user' => 'user', - 'language' => 'language', - 'parent' => 'parent', - 'directCustomer' => 'directCustomer', - 'clientAccounts' => 'clientAccounts', - 'tasklimits' => 'tasklimits', - 'trusteeContacts' => 'trusteeContacts' + 'user' => 'user' ]; /** @@ -192,36 +114,10 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'created' => 'setCreated', - 'updated' => 'setUpdated', 'context' => 'setContext', - 'password' => 'setPassword', - 'defaultEmail' => 'setDefaultEmail', - 'status' => 'setStatus', - 'substatus' => 'setSubstatus', - 'authType' => 'setAuthType', - 'details' => 'setDetails', - 'lock' => 'setLock', - 'oldPassword' => 'setOldPassword', 'passwordChanged' => 'setPasswordChanged', 'passwordExpired' => 'setPasswordExpired', - 'acls' => 'setAcls', - 'profiles' => 'setProfiles', - 'serviceProfiles' => 'setServiceProfiles', - 'ancestors' => 'setAncestors', - 'customer' => 'setCustomer', - 'nameServerGroups' => 'setNameServerGroups', - 'subscriptions' => 'setSubscriptions', - 'applications' => 'setApplications', - 'restrictions' => 'setRestrictions', - 'customerLevel' => 'setCustomerLevel', - 'user' => 'setUser', - 'language' => 'setLanguage', - 'parent' => 'setParent', - 'directCustomer' => 'setDirectCustomer', - 'clientAccounts' => 'setClientAccounts', - 'tasklimits' => 'setTasklimits', - 'trusteeContacts' => 'setTrusteeContacts' + 'user' => 'setUser' ]; /** @@ -230,36 +126,10 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'created' => 'getCreated', - 'updated' => 'getUpdated', 'context' => 'getContext', - 'password' => 'getPassword', - 'defaultEmail' => 'getDefaultEmail', - 'status' => 'getStatus', - 'substatus' => 'getSubstatus', - 'authType' => 'getAuthType', - 'details' => 'getDetails', - 'lock' => 'getLock', - 'oldPassword' => 'getOldPassword', 'passwordChanged' => 'getPasswordChanged', 'passwordExpired' => 'getPasswordExpired', - 'acls' => 'getAcls', - 'profiles' => 'getProfiles', - 'serviceProfiles' => 'getServiceProfiles', - 'ancestors' => 'getAncestors', - 'customer' => 'getCustomer', - 'nameServerGroups' => 'getNameServerGroups', - 'subscriptions' => 'getSubscriptions', - 'applications' => 'getApplications', - 'restrictions' => 'getRestrictions', - 'customerLevel' => 'getCustomerLevel', - 'user' => 'getUser', - 'language' => 'getLanguage', - 'parent' => 'getParent', - 'directCustomer' => 'getDirectCustomer', - 'clientAccounts' => 'getClientAccounts', - 'tasklimits' => 'getTasklimits', - 'trusteeContacts' => 'getTrusteeContacts' + 'user' => 'getUser' ]; /** @@ -322,36 +192,10 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['created'] = isset($data['created']) ? $this->createData($data['created'], 'created') : null; - $this->container['updated'] = isset($data['updated']) ? $this->createData($data['updated'], 'updated') : null; $this->container['context'] = isset($data['context']) ? $this->createData($data['context'], 'context') : null; - $this->container['password'] = isset($data['password']) ? $this->createData($data['password'], 'password') : null; - $this->container['defaultEmail'] = isset($data['defaultEmail']) ? $this->createData($data['defaultEmail'], 'defaultEmail') : null; - $this->container['status'] = isset($data['status']) ? $this->createData($data['status'], 'status') : null; - $this->container['substatus'] = isset($data['substatus']) ? $this->createData($data['substatus'], 'substatus') : null; - $this->container['authType'] = isset($data['authType']) ? $this->createData($data['authType'], 'authType') : null; - $this->container['details'] = isset($data['details']) ? $this->createData($data['details'], 'details') : null; - $this->container['lock'] = isset($data['lock']) ? $this->createData($data['lock'], 'lock') : null; - $this->container['oldPassword'] = isset($data['oldPassword']) ? $this->createData($data['oldPassword'], 'oldPassword') : null; $this->container['passwordChanged'] = isset($data['passwordChanged']) ? $this->createData($data['passwordChanged'], 'passwordChanged') : null; $this->container['passwordExpired'] = isset($data['passwordExpired']) ? $this->createData($data['passwordExpired'], 'passwordExpired') : null; - $this->container['acls'] = isset($data['acls']) ? $this->createData($data['acls'], 'acls') : null; - $this->container['profiles'] = isset($data['profiles']) ? $this->createData($data['profiles'], 'profiles') : null; - $this->container['serviceProfiles'] = isset($data['serviceProfiles']) ? $this->createData($data['serviceProfiles'], 'serviceProfiles') : null; - $this->container['ancestors'] = isset($data['ancestors']) ? $this->createData($data['ancestors'], 'ancestors') : null; - $this->container['customer'] = isset($data['customer']) ? $this->createData($data['customer'], 'customer') : null; - $this->container['nameServerGroups'] = isset($data['nameServerGroups']) ? $this->createData($data['nameServerGroups'], 'nameServerGroups') : null; - $this->container['subscriptions'] = isset($data['subscriptions']) ? $this->createData($data['subscriptions'], 'subscriptions') : null; - $this->container['applications'] = isset($data['applications']) ? $this->createData($data['applications'], 'applications') : null; - $this->container['restrictions'] = isset($data['restrictions']) ? $this->createData($data['restrictions'], 'restrictions') : null; - $this->container['customerLevel'] = isset($data['customerLevel']) ? $this->createData($data['customerLevel'], 'customerLevel') : null; $this->container['user'] = isset($data['user']) ? $this->createData($data['user'], 'user') : null; - $this->container['language'] = isset($data['language']) ? $this->createData($data['language'], 'language') : null; - $this->container['parent'] = isset($data['parent']) ? $this->createData($data['parent'], 'parent') : null; - $this->container['directCustomer'] = isset($data['directCustomer']) ? $this->createData($data['directCustomer'], 'directCustomer') : null; - $this->container['clientAccounts'] = isset($data['clientAccounts']) ? $this->createData($data['clientAccounts'], 'clientAccounts') : null; - $this->container['tasklimits'] = isset($data['tasklimits']) ? $this->createData($data['tasklimits'], 'tasklimits') : null; - $this->container['trusteeContacts'] = isset($data['trusteeContacts']) ? $this->createData($data['trusteeContacts'], 'trusteeContacts') : null; } /** @@ -443,54 +287,6 @@ public function valid() } - /** - * Gets created - * - * @return \DateTime - */ - public function getCreated() - { - return $this->container['created']; - } - - /** - * Sets created - * - * @param \DateTime $created The user created date. - * - * @return $this - */ - public function setCreated($created) - { - $this->container['created'] = $created; - - return $this; - } - - /** - * Gets updated - * - * @return \DateTime - */ - public function getUpdated() - { - return $this->container['updated']; - } - - /** - * Sets updated - * - * @param \DateTime $updated The user updated date. - * - * @return $this - */ - public function setUpdated($updated) - { - $this->container['updated'] = $updated; - - return $this; - } - /** * Gets context * @@ -504,7 +300,7 @@ public function getContext() /** * Sets context * - * @param int $context The context. + * @param int $context The context. A separated section. * * @return $this */ @@ -515,198 +311,6 @@ public function setContext($context) return $this; } - /** - * Gets password - * - * @return string - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string $password User password. - * - * @return $this - */ - public function setPassword($password) - { - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets defaultEmail - * - * @return string - */ - public function getDefaultEmail() - { - return $this->container['defaultEmail']; - } - - /** - * Sets defaultEmail - * - * @param string $defaultEmail The default email. - * - * @return $this - */ - public function setDefaultEmail($defaultEmail) - { - $this->container['defaultEmail'] = $defaultEmail; - - return $this; - } - - /** - * Gets status - * - * @return int - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param int $status User status. - * - * @return $this - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets substatus - * - * @return int - */ - public function getSubstatus() - { - return $this->container['substatus']; - } - - /** - * Sets substatus - * - * @param int $substatus User substatus of the User. - * - * @return $this - */ - public function setSubstatus($substatus) - { - $this->container['substatus'] = $substatus; - - return $this; - } - - /** - * Gets authType - * - * @return \Domainrobot\Model\AuthType - */ - public function getAuthType() - { - return $this->container['authType']; - } - - /** - * Sets authType - * - * @param \Domainrobot\Model\AuthType $authType Authentication type, e.g. password or TOTP. - * - * @return $this - */ - public function setAuthType($authType) - { - $this->container['authType'] = $authType; - - return $this; - } - - /** - * Gets details - * - * @return \Domainrobot\Model\UserDetails - */ - public function getDetails() - { - return $this->container['details']; - } - - /** - * Sets details - * - * @param \Domainrobot\Model\UserDetails $details The user details. - * - * @return $this - */ - public function setDetails($details) - { - $this->container['details'] = $details; - - return $this; - } - - /** - * Gets lock - * - * @return \Domainrobot\Model\UserLock - */ - public function getLock() - { - return $this->container['lock']; - } - - /** - * Sets lock - * - * @param \Domainrobot\Model\UserLock $lock Defines the type of user lock. - * - * @return $this - */ - public function setLock($lock) - { - $this->container['lock'] = $lock; - - return $this; - } - - /** - * Gets oldPassword - * - * @return string - */ - public function getOldPassword() - { - return $this->container['oldPassword']; - } - - /** - * Sets oldPassword - * - * @param string $oldPassword The old password. - * - * @return $this - */ - public function setOldPassword($oldPassword) - { - $this->container['oldPassword'] = $oldPassword; - - return $this; - } - /** * Gets passwordChanged * @@ -755,246 +359,6 @@ public function setPasswordExpired($passwordExpired) return $this; } - /** - * Gets acls - * - * @return \Domainrobot\Model\UserAcls - */ - public function getAcls() - { - return $this->container['acls']; - } - - /** - * Sets acls - * - * @param \Domainrobot\Model\UserAcls $acls User privileges. - * - * @return $this - */ - public function setAcls($acls) - { - $this->container['acls'] = $acls; - - return $this; - } - - /** - * Gets profiles - * - * @return \Domainrobot\Model\UserProfileViews - */ - public function getProfiles() - { - return $this->container['profiles']; - } - - /** - * Sets profiles - * - * @param \Domainrobot\Model\UserProfileViews $profiles User profile. - * - * @return $this - */ - public function setProfiles($profiles) - { - $this->container['profiles'] = $profiles; - - return $this; - } - - /** - * Gets serviceProfiles - * - * @return \Domainrobot\Model\ServiceProfiles - */ - public function getServiceProfiles() - { - return $this->container['serviceProfiles']; - } - - /** - * Sets serviceProfiles - * - * @param \Domainrobot\Model\ServiceProfiles $serviceProfiles Wrapper for the service user profiles. - * - * @return $this - */ - public function setServiceProfiles($serviceProfiles) - { - $this->container['serviceProfiles'] = $serviceProfiles; - - return $this; - } - - /** - * Gets ancestors - * - * @return \Domainrobot\Model\BasicUser[] - */ - public function getAncestors() - { - return $this->container['ancestors']; - } - - /** - * Sets ancestors - * - * @param \Domainrobot\Model\BasicUser[] $ancestors The ancestors of the user. - * - * @return $this - */ - public function setAncestors($ancestors) - { - $this->container['ancestors'] = $ancestors; - - return $this; - } - - /** - * Gets customer - * - * @return \Domainrobot\Model\BasicCustomer - */ - public function getCustomer() - { - return $this->container['customer']; - } - - /** - * Sets customer - * - * @param \Domainrobot\Model\BasicCustomer $customer Customer to which this user belongs. - * - * @return $this - */ - public function setCustomer($customer) - { - $this->container['customer'] = $customer; - - return $this; - } - - /** - * Gets nameServerGroups - * - * @return \Domainrobot\Model\VirtualNameServerGroup[] - */ - public function getNameServerGroups() - { - return $this->container['nameServerGroups']; - } - - /** - * Sets nameServerGroups - * - * @param \Domainrobot\Model\VirtualNameServerGroup[] $nameServerGroups The available name server groups - * - * @return $this - */ - public function setNameServerGroups($nameServerGroups) - { - $this->container['nameServerGroups'] = $nameServerGroups; - - return $this; - } - - /** - * Gets subscriptions - * - * @return \Domainrobot\Model\Subscription[] - */ - public function getSubscriptions() - { - return $this->container['subscriptions']; - } - - /** - * Sets subscriptions - * - * @param \Domainrobot\Model\Subscription[] $subscriptions Different subscriptions of the users. - * - * @return $this - */ - public function setSubscriptions($subscriptions) - { - $this->container['subscriptions'] = $subscriptions; - - return $this; - } - - /** - * Gets applications - * - * @return \Domainrobot\Model\TrustedApplication[] - */ - public function getApplications() - { - return $this->container['applications']; - } - - /** - * Sets applications - * - * @param \Domainrobot\Model\TrustedApplication[] $applications Trusted applications of the user. - * - * @return $this - */ - public function setApplications($applications) - { - $this->container['applications'] = $applications; - - return $this; - } - - /** - * Gets restrictions - * - * @return \Domainrobot\Model\IpRestrictions - */ - public function getRestrictions() - { - return $this->container['restrictions']; - } - - /** - * Sets restrictions - * - * @param \Domainrobot\Model\IpRestrictions $restrictions Grouping object for specifying the user's IP networks. - * - * @return $this - */ - public function setRestrictions($restrictions) - { - $this->container['restrictions'] = $restrictions; - - return $this; - } - - /** - * Gets customerLevel - * - * @return int - */ - public function getCustomerLevel() - { - return $this->container['customerLevel']; - } - - /** - * Sets customerLevel - * - * @param int $customerLevel The actual customer level for the user. - * - * @return $this - */ - public function setCustomerLevel($customerLevel) - { - $this->container['customerLevel'] = $customerLevel; - - return $this; - } - /** * Gets user * @@ -1023,150 +387,6 @@ public function setUser($user) return $this; } - - /** - * Gets language - * - * @return string - */ - public function getLanguage() - { - return $this->container['language']; - } - - /** - * Sets language - * - * @param string $language The language for the user. The setting affects the user interface language and system messages. Possible values: de en es. - * - * @return $this - */ - public function setLanguage($language) - { - $this->container['language'] = $language; - - return $this; - } - - /** - * Gets parent - * - * @return \Domainrobot\Model\User - */ - public function getParent() - { - return $this->container['parent']; - } - - /** - * Sets parent - * - * @param \Domainrobot\Model\User $parent Parent user. - * - * @return $this - */ - public function setParent($parent) - { - $this->container['parent'] = $parent; - - return $this; - } - - /** - * Gets directCustomer - * - * @return bool - */ - public function getDirectCustomer() - { - return $this->container['directCustomer']; - } - - /** - * Sets directCustomer - * - * @param bool $directCustomer Specifies whether the user is a direct customer of the user. false = No direct customer true = direct customer Default value = false For XML, 0 (false) and 1 (true) can also be used. - * - * @return $this - */ - public function setDirectCustomer($directCustomer) - { - $this->container['directCustomer'] = $directCustomer; - - return $this; - } - - /** - * Gets clientAccounts - * - * @return \Domainrobot\Model\ExternalAccounting[] - */ - public function getClientAccounts() - { - return $this->container['clientAccounts']; - } - - /** - * Sets clientAccounts - * - * @param \Domainrobot\Model\ExternalAccounting[] $clientAccounts The client accounting datas for the user. - * - * @return $this - */ - public function setClientAccounts($clientAccounts) - { - $this->container['clientAccounts'] = $clientAccounts; - - return $this; - } - - /** - * Gets tasklimits - * - * @return \Domainrobot\Model\TaskLimit[] - */ - public function getTasklimits() - { - return $this->container['tasklimits']; - } - - /** - * Sets tasklimits - * - * @param \Domainrobot\Model\TaskLimit[] $tasklimits The task limits of the user. - * - * @return $this - */ - public function setTasklimits($tasklimits) - { - $this->container['tasklimits'] = $tasklimits; - - return $this; - } - - /** - * Gets trusteeContacts - * - * @return \Domainrobot\Model\TrusteeContact[] - */ - public function getTrusteeContacts() - { - return $this->container['trusteeContacts']; - } - - /** - * Sets trusteeContacts - * - * @param \Domainrobot\Model\TrusteeContact[] $trusteeContacts The trustee Contacts of the user. - * - * @return $this - */ - public function setTrusteeContacts($trusteeContacts) - { - $this->container['trusteeContacts'] = $trusteeContacts; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Model/UserAcl.php b/src/Model/UserAcl.php index 3b11d98d..faa5a02d 100644 --- a/src/Model/UserAcl.php +++ b/src/Model/UserAcl.php @@ -58,12 +58,12 @@ class UserAcl implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'functionCode' => 'string', - 'children' => '\Domainrobot\Model\BasicUser[]', + 'children' => '\Domainrobot\Model\User[]', 'childrenLocked' => 'bool', 'userLocked' => 'bool', 'effective' => 'bool', - 'childrenRem' => '\Domainrobot\Model\BasicUser[]', - 'childrenAdd' => '\Domainrobot\Model\BasicUser[]', + 'childrenRem' => '\Domainrobot\Model\User[]', + 'childrenAdd' => '\Domainrobot\Model\User[]', 'restriction' => '\Domainrobot\Model\ACLRestriction' ]; @@ -328,7 +328,7 @@ public function setFunctionCode($functionCode) /** * Gets children * - * @return \Domainrobot\Model\BasicUser[] + * @return \Domainrobot\Model\User[] */ public function getChildren() { @@ -338,7 +338,7 @@ public function getChildren() /** * Sets children * - * @param \Domainrobot\Model\BasicUser[] $children The none locked children + * @param \Domainrobot\Model\User[] $children The none locked children * * @return $this */ @@ -424,7 +424,7 @@ public function setEffective($effective) /** * Gets childrenRem * - * @return \Domainrobot\Model\BasicUser[] + * @return \Domainrobot\Model\User[] */ public function getChildrenRem() { @@ -434,7 +434,7 @@ public function getChildrenRem() /** * Sets childrenRem * - * @param \Domainrobot\Model\BasicUser[] $childrenRem Children to remove from the exception list + * @param \Domainrobot\Model\User[] $childrenRem Children to remove from the exception list * * @return $this */ @@ -448,7 +448,7 @@ public function setChildrenRem($childrenRem) /** * Gets childrenAdd * - * @return \Domainrobot\Model\BasicUser[] + * @return \Domainrobot\Model\User[] */ public function getChildrenAdd() { @@ -458,7 +458,7 @@ public function getChildrenAdd() /** * Sets childrenAdd * - * @param \Domainrobot\Model\BasicUser[] $childrenAdd Children to add to the exception list + * @param \Domainrobot\Model\User[] $childrenAdd Children to add to the exception list * * @return $this */ diff --git a/src/Model/UserAcls.php b/src/Model/UserAcls.php index 88217c9c..c3897d5b 100644 --- a/src/Model/UserAcls.php +++ b/src/Model/UserAcls.php @@ -57,7 +57,7 @@ class UserAcls implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'user' => '\Domainrobot\Model\BasicUser', + 'user' => '\Domainrobot\Model\User', 'acls' => '\Domainrobot\Model\UserAcl[]' ]; @@ -271,7 +271,7 @@ public function valid() /** * Gets user * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUser() { @@ -281,7 +281,7 @@ public function getUser() /** * Sets user * - * @param \Domainrobot\Model\BasicUser $user The user which has been effected + * @param \Domainrobot\Model\User $user The user which has been effected * * @return $this */ diff --git a/src/Model/UserProfile.php b/src/Model/UserProfile.php index f55caeac..907447ac 100644 --- a/src/Model/UserProfile.php +++ b/src/Model/UserProfile.php @@ -59,8 +59,8 @@ class UserProfile implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'key' => 'string', 'value' => 'string', 'flag' => '\Domainrobot\Model\UserProfileFlag' @@ -355,7 +355,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -365,7 +365,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -379,7 +379,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -389,7 +389,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -413,7 +413,7 @@ public function getKey() /** * Sets key * - * @param string $key The user profile key + * @param string $key The user profile key. * * @return $this */ @@ -437,7 +437,7 @@ public function getValue() /** * Sets value * - * @param string $value The value of the key + * @param string $value The value of the key. * * @return $this */ @@ -461,7 +461,7 @@ public function getFlag() /** * Sets flag * - * @param \Domainrobot\Model\UserProfileFlag $flag The mode of the entry + * @param \Domainrobot\Model\UserProfileFlag $flag Defines to what extent the settings of a user are adopted by its subusers. * * @return $this */ diff --git a/src/Model/UserProfileView.php b/src/Model/UserProfileView.php index 18bf5289..ec83344d 100644 --- a/src/Model/UserProfileView.php +++ b/src/Model/UserProfileView.php @@ -59,8 +59,8 @@ class UserProfileView implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'key' => 'string', 'value' => 'string', 'flag' => '\Domainrobot\Model\UserProfileFlag', @@ -367,7 +367,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -377,7 +377,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -391,7 +391,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -401,7 +401,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ @@ -425,7 +425,7 @@ public function getKey() /** * Sets key * - * @param string $key The user profile key + * @param string $key The user profile key. * * @return $this */ @@ -449,7 +449,7 @@ public function getValue() /** * Sets value * - * @param string $value The value of the key + * @param string $value The value of the key. * * @return $this */ @@ -473,7 +473,7 @@ public function getFlag() /** * Sets flag * - * @param \Domainrobot\Model\UserProfileFlag $flag The mode of the entry + * @param \Domainrobot\Model\UserProfileFlag $flag Defines to what extent the settings of a user are adopted by its subusers. * * @return $this */ @@ -497,7 +497,7 @@ public function getInherited() /** * Sets inherited * - * @param bool $inherited Is true if the value was inherited + * @param bool $inherited Indicates whether the value is inherited. false = value is not inherited true = value is inherited Default value = false * * @return $this */ @@ -521,7 +521,7 @@ public function getReadonly() /** * Sets readonly * - * @param bool $readonly The read only entry + * @param bool $readonly Flag whether the value is changeable by the current user. Possible values: false = Not changeable true = Changeable Default value = false * * @return $this */ diff --git a/src/Model/UserSalesReport.php b/src/Model/UserSalesReport.php index 4f7b3a35..eaea4210 100644 --- a/src/Model/UserSalesReport.php +++ b/src/Model/UserSalesReport.php @@ -59,8 +59,8 @@ class UserSalesReport implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'date' => '\DateTime', 'domainSales' => 'double', 'domainAddonSales' => 'double', @@ -364,7 +364,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -374,7 +374,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -388,7 +388,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -398,7 +398,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/VirtualNameServer.php b/src/Model/VirtualNameServer.php index e3a43ab7..ad0b0bea 100644 --- a/src/Model/VirtualNameServer.php +++ b/src/Model/VirtualNameServer.php @@ -59,8 +59,8 @@ class VirtualNameServer implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'active' => 'bool', 'name' => '\Domainrobot\Model\Name', 'mainAddress' => '\Domainrobot\Model\InetAddress', @@ -352,7 +352,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -362,7 +362,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -376,7 +376,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -386,7 +386,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/VirtualNameServerGroup.php b/src/Model/VirtualNameServerGroup.php index ec247d1e..dee84809 100644 --- a/src/Model/VirtualNameServerGroup.php +++ b/src/Model/VirtualNameServerGroup.php @@ -59,8 +59,8 @@ class VirtualNameServerGroup implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'created' => '\DateTime', 'updated' => '\DateTime', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'name' => 'string', 'useDefaultIps' => 'bool', 'nameServers' => '\Domainrobot\Model\VirtualNameServer[]', @@ -365,7 +365,7 @@ public function setUpdated($updated) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -375,7 +375,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner The object owner. + * @param \Domainrobot\Model\User $owner The object owner. * * @return $this */ @@ -389,7 +389,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -399,7 +399,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who performed the last update. + * @param \Domainrobot\Model\User $updater User who performed the last update. * * @return $this */ diff --git a/src/Model/Zone.php b/src/Model/Zone.php index 63cbd8ff..3ad35cd0 100644 --- a/src/Model/Zone.php +++ b/src/Model/Zone.php @@ -65,8 +65,8 @@ class Zone implements ModelInterface, ArrayAccess 'dnssec' => 'bool', 'nameServerGroup' => 'string', 'allowTransfer' => 'bool', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'logId' => 'int', 'comment' => 'string', 'domainsafe' => 'bool', @@ -607,7 +607,7 @@ public function setAllowTransfer($allowTransfer) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -617,7 +617,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner Owner of the zone object + * @param \Domainrobot\Model\User $owner Owner of the zone object * * @return $this */ @@ -631,7 +631,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -641,7 +641,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who last updated the zone. + * @param \Domainrobot\Model\User $updater User who last updated the zone. * * @return $this */ diff --git a/src/Model/ZoneBasePatchRequest.php b/src/Model/ZoneBasePatchRequest.php index 27e8b0ed..b2969e96 100644 --- a/src/Model/ZoneBasePatchRequest.php +++ b/src/Model/ZoneBasePatchRequest.php @@ -65,8 +65,8 @@ class ZoneBasePatchRequest implements ModelInterface, ArrayAccess 'dnssec' => 'bool', 'nameServerGroup' => 'string', 'allowTransfer' => 'bool', - 'owner' => '\Domainrobot\Model\BasicUser', - 'updater' => '\Domainrobot\Model\BasicUser', + 'owner' => '\Domainrobot\Model\User', + 'updater' => '\Domainrobot\Model\User', 'logId' => 'int', 'comment' => 'string', 'domainsafe' => 'bool', @@ -637,7 +637,7 @@ public function setAllowTransfer($allowTransfer) /** * Gets owner * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getOwner() { @@ -647,7 +647,7 @@ public function getOwner() /** * Sets owner * - * @param \Domainrobot\Model\BasicUser $owner Owner of the zone object + * @param \Domainrobot\Model\User $owner Owner of the zone object * * @return $this */ @@ -661,7 +661,7 @@ public function setOwner($owner) /** * Gets updater * - * @return \Domainrobot\Model\BasicUser + * @return \Domainrobot\Model\User */ public function getUpdater() { @@ -671,7 +671,7 @@ public function getUpdater() /** * Sets updater * - * @param \Domainrobot\Model\BasicUser $updater User who last updated the zone. + * @param \Domainrobot\Model\User $updater User who last updated the zone. * * @return $this */ diff --git a/src/Service/PriceClassService.php b/src/Service/PriceClassService.php new file mode 100644 index 00000000..c28e3bd0 --- /dev/null +++ b/src/Service/PriceClassService.php @@ -0,0 +1,53 @@ +listAsync($body); + $domainrobotResult = $domainrobotPromise->wait(); + + Domainrobot::setLastDomainrobotResult($domainrobotResult); + + $data = $domainrobotResult->getResult()['data']; + + return $data; + + // $priceClassArticles = array(); + // foreach ($data as $d) { + // $p = new PriceClassArticle($d); + // array_push($priceClassArticles, $p); + // } + + // return $priceClassArticles; + } + + public function listAsync(Query $body = null) + { + $data = null; + if ($body != null) { + $data = $body->toArray(); + } + + return new DomainrobotPromise($this->sendRequest( + $this->domainrobotConfig->getUrl() . "/priceClass/article/_search", + 'POST', + ["json" => $data] + )); + } +} diff --git a/src/Service/PriceService.php b/src/Service/PriceService.php index a64dbf18..ac29e832 100644 --- a/src/Service/PriceService.php +++ b/src/Service/PriceService.php @@ -31,4 +31,37 @@ public function article_search($query) )); } + public function list(Query $body = null) + { + $domainrobotPromise = $this->listAsync($body); + $domainrobotResult = $domainrobotPromise->wait(); + + Domainrobot::setLastDomainrobotResult($domainrobotResult); + + $data = $domainrobotResult->getResult()['data']; + + return $data; + + // $priceArticles = array(); + // foreach ($data as $d) { + // $p = new PriceArticle($d); + // array_push($priceArticles, $p); + // } + + // return $priceArticles; + } + + public function listAsync(Query $body = null) + { + $data = null; + if ($body != null) { + $data = $body->toArray(); + } + + return new DomainrobotPromise($this->sendRequest( + $this->domainrobotConfig->getUrl() . "/price/article/_search", + 'POST', + ["json" => $data] + )); + } }