Package com.xero.models.accounting
Class ContactGroup
java.lang.Object
com.xero.models.accounting.ContactGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe Status of a contact group. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContactsItem(Contact contactsItem) The ContactID and Name of Contacts in a contact group.contactGroupID(UUID contactGroupID) The Xero identifier for an contact group – specified as a string following the endpoint name.The ContactID and Name of Contacts in a contact group.booleanThe Xero identifier for an contact group – specified as a string following the endpoint name.The ContactID and Name of Contacts in a contact group.getName()The Name of the contact group.The Status of a contact group.inthashCode()The Name of the contact group.voidsetContactGroupID(UUID contactGroupID) The Xero identifier for an contact group – specified as a string following the endpoint name.voidsetContacts(List<Contact> contacts) The ContactID and Name of Contacts in a contact group.voidThe Name of the contact group.voidsetStatus(ContactGroup.StatusEnum status) The Status of a contact group.status(ContactGroup.StatusEnum status) The Status of a contact group.toString()
-
Constructor Details
-
ContactGroup
public ContactGroup()
-
-
Method Details
-
name
The Name of the contact group. Required when creating a new contact group- Parameters:
name- String- Returns:
- ContactGroup
-
getName
The Name of the contact group. Required when creating a new contact group- Returns:
- name
-
setName
The Name of the contact group. Required when creating a new contact group- Parameters:
name- String
-
status
The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.- Parameters:
status- StatusEnum- Returns:
- ContactGroup
-
getStatus
The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.- Returns:
- status
-
setStatus
The Status of a contact group. To delete a contact group update the status to DELETED. Only contact groups with a status of ACTIVE are returned on GETs.- Parameters:
status- StatusEnum
-
contactGroupID
The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9- Parameters:
contactGroupID- UUID- Returns:
- ContactGroup
-
getContactGroupID
The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9- Returns:
- contactGroupID
-
setContactGroupID
The Xero identifier for an contact group – specified as a string following the endpoint name. e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9- Parameters:
contactGroupID- UUID
-
contacts
The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.- Parameters:
contacts- List<Contact>- Returns:
- ContactGroup
-
addContactsItem
The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.- Parameters:
contactsItem- Contact- Returns:
- ContactGroup
-
getContacts
-
setContacts
-
equals
-
hashCode
-
toString
-