Details
Description
We currently sync expiration dates for domains, so this could probably piggy back on that.
Two things
- Detect whether a domain has been transferred
- Cancel the domain in Blesta and note the reason
NOTE that Generic Domains doesn't use an API, so we will ignore domains using Generic Domains entirely.
To detect that a domain has been transferred.
- During an expiration date sync, if the domain is not found with the registrar we should note that somewhere in the database, possibly a new column under domains_domains called last_sync (store date of last successful sync
of any kindwith registrar) and another called found (true/false) for whether the domain was found with the registrar, and another called last_found with the date it was last found. Continue to do sync's, as the staff may change the registrar of a domain manually, or the domain may be being transferred in to us, so we may need to switch it back to true from false. - Flag any domains in the domains widgets if they are not found to be with the registrar per domains_domains.found
LETS DO THE CANCEL/SCHEDULE CANCEL ACTION IN A FUTURE TASK. THE FOLLOWING INFORMATION IS JUST A SUGGESTION AND WE SHOULD DISCUSS FOR THE OTHER TASK.
When to cancel a domain
- If a domain is at least 6 days old and has never been found with the registrar. Registrars have 5 days to release a domain from initial transfer, so if it's been more than that the transfer has probably failed. If possible, check the registrar module API to check the status of the transfer, if it has failed, cancel the domain.
- If a domain has been found with the registrar, but has not been found in at least 6 days, schedule the domain for cancellation at the end of the current term.