Package com.xero.models.accounting
Class ContactGroup
- java.lang.Object
-
- com.xero.models.accounting.ContactGroup
-
public class ContactGroup extends Object
ContactGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContactGroup.StatusEnumThe Status of a contact group.
-
Constructor Summary
Constructors Constructor Description ContactGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactGroupaddContactsItem(Contact contactsItem)The ContactID and Name of Contacts in a contact group.ContactGroupcontactGroupID(UUID contactGroupID)The Xero identifier for an contact group – specified as a string following the endpoint name.ContactGroupcontacts(List<Contact> contacts)The ContactID and Name of Contacts in a contact group.booleanequals(Object o)UUIDgetContactGroupID()The Xero identifier for an contact group – specified as a string following the endpoint name.List<Contact>getContacts()The ContactID and Name of Contacts in a contact group.StringgetName()The Name of the contact group.ContactGroup.StatusEnumgetStatus()The Status of a contact group.inthashCode()ContactGroupname(String name)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.voidsetName(String name)The Name of the contact group.voidsetStatus(ContactGroup.StatusEnum status)The Status of a contact group.ContactGroupstatus(ContactGroup.StatusEnum status)The Status of a contact group.StringtoString()
-
-
-
Method Detail
-
name
public ContactGroup name(String name)
The Name of the contact group. Required when creating a new contact group- Parameters:
name- String- Returns:
- ContactGroup
-
getName
public String getName()
The Name of the contact group. Required when creating a new contact group- Returns:
- name
-
setName
public void setName(String name)
The Name of the contact group. Required when creating a new contact group- Parameters:
name- String
-
status
public ContactGroup status(ContactGroup.StatusEnum 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
public ContactGroup.StatusEnum 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
public void setStatus(ContactGroup.StatusEnum 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
-
contactGroupID
public ContactGroup contactGroupID(UUID 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
public UUID 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
public void setContactGroupID(UUID 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
-
contacts
public ContactGroup contacts(List<Contact> 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
public ContactGroup addContactsItem(Contact contactsItem)
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
public List<Contact> getContacts()
The ContactID and Name of Contacts in a contact group. Returned on GETs when the ContactGroupID is supplied in the URL.- Returns:
- contacts
-
setContacts
public void setContacts(List<Contact> 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>
-
-