Skip to content

Commit

Permalink
Merge pull request Bemmu#13 from rxwx/master
Browse files Browse the repository at this point in the history
Add WhoisGuard option to domains_create
  • Loading branch information
agrrh committed Aug 7, 2017
2 parents 79d8cd3 + 91b185d commit 7e434af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion namecheap.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def domains_create(
self,
DomainName, FirstName, LastName,
Address1, City, StateProvince, PostalCode, Country, Phone,
EmailAddress, Address2=None, years=1
EmailAddress, Address2=None, years=1, WhoisGuard=False
):
"""
Registers a domain name with the given contact info.
Expand All @@ -54,6 +54,12 @@ def domains_create(
'DomainName': DomainName,
'years': years
}

if WhoisGuard:
extra_payload.update({
'AddFreeWhoisguard': 'yes',
'WGEnabled': 'yes',
})

for contact_type in contact_types:
extra_payload.update({
Expand Down

0 comments on commit 7e434af

Please sign in to comment.