From 5398a81d2440b784478f2e6bdb5644d868523f16 Mon Sep 17 00:00:00 2001 From: Alysia Broddrick Date: Thu, 15 Jun 2023 07:59:02 -0700 Subject: [PATCH] cleaned up code comments --- src/registrar/models/domain.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index 59ddd5902..8a8ba8b9e 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -256,18 +256,12 @@ class Domain(TimeStampedModel, DomainHelper): @Cache def registrant_contact(self) -> PublicContact: """Get or set the registrant for this domain.""" - # [admin, billing, tech, security] raise NotImplementedError() @registrant_contact.setter # type: ignore def registrant_contact(self, contact: PublicContact): - - #get id PC.registry_id - #trystart - #request = common.DomainContact(contact=id, type="tech")]) - #send request - #registrant for billing? registrant tag in infordomainResult - #UpdateDomain(takes registrant) + #get id from PublicContact->.registry_id + #call UpdateDomain() command with registrant as parameter raise NotImplementedError() @Cache @@ -277,6 +271,10 @@ class Domain(TimeStampedModel, DomainHelper): @administrative_contact.setter # type: ignore def administrative_contact(self, contact: PublicContact): + #call CreateContact, if contact doesn't exist yet for domain + # call UpdateDomain with contact, + # type options are[admin, billing, tech, security] + #use admin as type parameter for this contact raise NotImplementedError() @Cache