Summary of the Organization class
The class represents an Organization inside eLegere. An Organization is a container for multiple domains.
The class builds a new Domain. From a Domain name, the class identifies the Domain id. Afterwards, the class instantiates a new Domain using the Domain id. The organization class does not currently offer methods other than the getDomain method. The Organization class works only as an intermediary class for the Domain class. It exist mostly for forward compatibility reasons. You can use the environment.getOrganization method to create an Organization object in its place.
The class requires the initialization through the elegere object.
getDomain() fetches the Id of the Domain through the Domain name within the current Organization. The method instantiates a new Domain using the previous identified Domain as example.
string The name of the Domain.
Returns a Promise for a Domain object.