chore: remove isDeleted check in orderDomain

This commit is contained in:
Maël Gangloff
2024-10-06 20:37:56 +02:00
parent 483f33b0e1
commit 37cd4edcce
6 changed files with 10 additions and 20 deletions

View File

@@ -154,11 +154,11 @@ export function ConnectorForm({form, onCreate}: { form: FormInstance, onCreate:
<Input.Password autoComplete='off' required={true} placeholder=''/>
</Form.Item>
<Form.Item
label={t`Domain Contact Handle ID`}
label={t`Owner nic-handle`}
name={['authData', 'contactid']}
help={<Typography.Text
type='secondary'>{t`The Contact ID for ownership of registered Domains. `}<a
href="https://cloud.autodns.com/contacts/domain">{t`You got from this page`}</a></Typography.Text>}
type='secondary'>{t`The nic-handle of the domain name owner`}<a
href="https://cloud.autodns.com/contacts/domain">{t`You can get it from this page`}</a></Typography.Text>}
rules={[{required: true, message: t`Required`}]}
required={true}>
<Input autoComplete='off' required={true} placeholder=''/>

View File

@@ -21,7 +21,7 @@ export const helpGetTokenLink = (provider?: string) => {
</Typography.Link>
case ConnectorProvider.AUTODNS:
return <Typography.Link target='_blank' href="https://en.autodns.com/domain-robot-api/">
{t`Because of some limitations in API of AutoDNS, we suggest to create an dedicated user for API with limited rights.`}
{t`Because of some limitations in API of AutoDNS, we suggest to create an dedicated user for API with limited rights`}
</Typography.Link>
default:
return <></>
@@ -35,6 +35,8 @@ export const tosHyperlink = (provider?: string) => {
return 'https://www.ovhcloud.com/fr/terms-and-conditions/contracts/'
case ConnectorProvider.GANDI:
return 'https://www.gandi.net/en/contracts/terms-of-service'
case ConnectorProvider.NAMECHEAP:
return 'https://www.namecheap.com/legal/universal/universal-tos/'
case ConnectorProvider.AUTODNS:
return 'https://www.internetx.com/agb/'
default:

View File

@@ -35,10 +35,6 @@ class AutodnsProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');

View File

@@ -34,10 +34,6 @@ class GandiProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');

View File

@@ -53,10 +53,6 @@ class OvhProvider extends AbstractProvider
*/
public function orderDomain(Domain $domain, bool $dryRun = false): void
{
if (!$domain->getDeleted()) {
throw new \InvalidArgumentException('The domain name still appears in the WHOIS database');
}
$ldhName = $domain->getLdhName();
if (!$ldhName) {
throw new \InvalidArgumentException('Domain name cannot be null');

View File

@@ -242,15 +242,15 @@ msgid "AutoDNS Password"
msgstr ""
#: assets/components/tracking/connector/ConnectorForm.tsx:157
msgid "Domain Contact Handle ID"
msgid "Owner nic-handle"
msgstr ""
#: assets/components/tracking/connector/ConnectorForm.tsx:160
msgid "The Contact ID for ownership of registered Domains. "
msgid "The nic-handle of the domain name owner"
msgstr ""
#: assets/components/tracking/connector/ConnectorForm.tsx:161
msgid "You got from this page"
msgid "You can get it from this page"
msgstr ""
#: assets/components/tracking/connector/ConnectorForm.tsx:168
@@ -1102,7 +1102,7 @@ msgstr ""
#: assets/utils/providers/index.tsx:24
msgid ""
"Because of some limitations in API of AutoDNS, we suggest to create an "
"dedicated user for API with limited rights."
"dedicated user for API with limited rights"
msgstr ""
#: assets/utils/providers/ovh.tsx:5