Package com.xero.models.accounting
Class Contact
- java.lang.Object
-
- com.xero.models.accounting.Contact
-
public class Contact extends Object
Contact
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContact.ContactStatusEnumCurrent status of a contact – see contact status types
-
Constructor Summary
Constructors Constructor Description Contact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactaccountNumber(String accountNumber)A user defined account number.ContactaccountsPayableTaxType(String accountsPayableTaxType)The tax type from TaxRatesContactaccountsReceivableTaxType(String accountsReceivableTaxType)The tax type from TaxRatesContactaddAddressesItem(Address addressesItem)Store certain address types for a contact – see address typesContactaddAttachmentsItem(Attachment attachmentsItem)Displays array of attachments from the APIContactaddContactGroupsItem(ContactGroup contactGroupsItem)Displays which contact groups a contact is included inContactaddContactPersonsItem(ContactPerson contactPersonsItem)See contact personsContactaddPhonesItem(Phone phonesItem)Store certain phone types for a contact – see phone typesContactaddPurchasesTrackingCategoriesItem(SalesTrackingCategory purchasesTrackingCategoriesItem)The default purchases tracking categories for contactsContactaddresses(List<Address> addresses)Store certain address types for a contact – see address typesContactaddSalesTrackingCategoriesItem(SalesTrackingCategory salesTrackingCategoriesItem)The default sales tracking categories for contactsContactaddValidationErrorsItem(ValidationError validationErrorsItem)Displays validation errors returned from the APIContactattachments(List<Attachment> attachments)Displays array of attachments from the APIContactbalances(Balances balances)balancesContactbankAccountDetails(String bankAccountDetails)Bank account number of contactContactbatchPayments(BatchPaymentDetails batchPayments)batchPaymentsContactbrandingTheme(BrandingTheme brandingTheme)brandingThemeContactcontactGroups(List<ContactGroup> contactGroups)Displays which contact groups a contact is included inContactcontactID(UUID contactID)Xero identifierContactcontactNumber(String contactNumber)This can be updated via the API only i.e.ContactcontactPersons(List<ContactPerson> contactPersons)See contact personsContactcontactStatus(Contact.ContactStatusEnum contactStatus)Current status of a contact – see contact status typesContactdefaultCurrency(CurrencyCode defaultCurrency)defaultCurrencyContactemailAddress(String emailAddress)Email address of contact person (umlauts not supported) (max length = 255)booleanequals(Object o)ContactfirstName(String firstName)First name of contact person (max length = 255)StringgetAccountNumber()A user defined account number.StringgetAccountsPayableTaxType()The tax type from TaxRatesStringgetAccountsReceivableTaxType()The tax type from TaxRatesList<Address>getAddresses()Store certain address types for a contact – see address typesList<Attachment>getAttachments()Displays array of attachments from the APIBalancesgetBalances()Get balancesStringgetBankAccountDetails()Bank account number of contactBatchPaymentDetailsgetBatchPayments()Get batchPaymentsBrandingThemegetBrandingTheme()Get brandingThemeList<ContactGroup>getContactGroups()Displays which contact groups a contact is included inUUIDgetContactID()Xero identifierStringgetContactNumber()This can be updated via the API only i.e.List<ContactPerson>getContactPersons()See contact personsContact.ContactStatusEnumgetContactStatus()Current status of a contact – see contact status typesCurrencyCodegetDefaultCurrency()Get defaultCurrencyDoublegetDiscount()The default discount rate for the contact (read only)StringgetEmailAddress()Email address of contact person (umlauts not supported) (max length = 255)StringgetFirstName()First name of contact person (max length = 255)BooleangetHasAttachments()A boolean to indicate if a contact has an attachmentBooleangetHasValidationErrors()A boolean to indicate if a contact has an validation errorsBooleangetIsCustomer()true or false – Boolean that describes if a contact has any AR invoices entered against them.BooleangetIsSupplier()true or false – Boolean that describes if a contact that has any AP invoices entered against them.StringgetLastName()Last name of contact person (max length = 255)StringgetName()Full name of contact/organisation (max length = 255)PaymentTermgetPaymentTerms()Get paymentTermsList<Phone>getPhones()Store certain phone types for a contact – see phone typesStringgetPurchasesDefaultAccountCode()The default purchases account code for contactsList<SalesTrackingCategory>getPurchasesTrackingCategories()The default purchases tracking categories for contactsStringgetSalesDefaultAccountCode()The default sales account code for contactsList<SalesTrackingCategory>getSalesTrackingCategories()The default sales tracking categories for contactsStringgetSkypeUserName()Skype user name of contactStringgetStatusAttributeString()Status of objectStringgetTaxNumber()Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)StringgetTrackingCategoryName()The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesStringgetTrackingCategoryOption()The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesStringgetUpdatedDateUTC()UTC timestamp of last update to contactorg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()UTC timestamp of last update to contactList<ValidationError>getValidationErrors()Displays validation errors returned from the APIStringgetWebsite()Website address for contact (read only)StringgetXeroNetworkKey()Store XeroNetworkKey for contacts.ContacthasAttachments(Boolean hasAttachments)A boolean to indicate if a contact has an attachmentinthashCode()ContacthasValidationErrors(Boolean hasValidationErrors)A boolean to indicate if a contact has an validation errorsContactisCustomer(Boolean isCustomer)true or false – Boolean that describes if a contact has any AR invoices entered against them.ContactisSupplier(Boolean isSupplier)true or false – Boolean that describes if a contact that has any AP invoices entered against them.ContactlastName(String lastName)Last name of contact person (max length = 255)Contactname(String name)Full name of contact/organisation (max length = 255)ContactpaymentTerms(PaymentTerm paymentTerms)paymentTermsContactphones(List<Phone> phones)Store certain phone types for a contact – see phone typesContactpurchasesDefaultAccountCode(String purchasesDefaultAccountCode)The default purchases account code for contactsContactpurchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories)The default purchases tracking categories for contactsContactsalesDefaultAccountCode(String salesDefaultAccountCode)The default sales account code for contactsContactsalesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories)The default sales tracking categories for contactsvoidsetAccountNumber(String accountNumber)A user defined account number.voidsetAccountsPayableTaxType(String accountsPayableTaxType)The tax type from TaxRatesvoidsetAccountsReceivableTaxType(String accountsReceivableTaxType)The tax type from TaxRatesvoidsetAddresses(List<Address> addresses)Store certain address types for a contact – see address typesvoidsetAttachments(List<Attachment> attachments)Displays array of attachments from the APIvoidsetBalances(Balances balances)balancesvoidsetBankAccountDetails(String bankAccountDetails)Bank account number of contactvoidsetBatchPayments(BatchPaymentDetails batchPayments)batchPaymentsvoidsetBrandingTheme(BrandingTheme brandingTheme)brandingThemevoidsetContactGroups(List<ContactGroup> contactGroups)Displays which contact groups a contact is included invoidsetContactID(UUID contactID)Xero identifiervoidsetContactNumber(String contactNumber)This can be updated via the API only i.e.voidsetContactPersons(List<ContactPerson> contactPersons)See contact personsvoidsetContactStatus(Contact.ContactStatusEnum contactStatus)Current status of a contact – see contact status typesvoidsetDefaultCurrency(CurrencyCode defaultCurrency)defaultCurrencyvoidsetEmailAddress(String emailAddress)Email address of contact person (umlauts not supported) (max length = 255)voidsetFirstName(String firstName)First name of contact person (max length = 255)voidsetHasAttachments(Boolean hasAttachments)A boolean to indicate if a contact has an attachmentvoidsetHasValidationErrors(Boolean hasValidationErrors)A boolean to indicate if a contact has an validation errorsvoidsetIsCustomer(Boolean isCustomer)true or false – Boolean that describes if a contact has any AR invoices entered against them.voidsetIsSupplier(Boolean isSupplier)true or false – Boolean that describes if a contact that has any AP invoices entered against them.voidsetLastName(String lastName)Last name of contact person (max length = 255)voidsetName(String name)Full name of contact/organisation (max length = 255)voidsetPaymentTerms(PaymentTerm paymentTerms)paymentTermsvoidsetPhones(List<Phone> phones)Store certain phone types for a contact – see phone typesvoidsetPurchasesDefaultAccountCode(String purchasesDefaultAccountCode)The default purchases account code for contactsvoidsetPurchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories)The default purchases tracking categories for contactsvoidsetSalesDefaultAccountCode(String salesDefaultAccountCode)The default sales account code for contactsvoidsetSalesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories)The default sales tracking categories for contactsvoidsetSkypeUserName(String skypeUserName)Skype user name of contactvoidsetStatusAttributeString(String statusAttributeString)Status of objectvoidsetTaxNumber(String taxNumber)Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)voidsetTrackingCategoryName(String trackingCategoryName)The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesvoidsetTrackingCategoryOption(String trackingCategoryOption)The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesvoidsetValidationErrors(List<ValidationError> validationErrors)Displays validation errors returned from the APIvoidsetXeroNetworkKey(String xeroNetworkKey)Store XeroNetworkKey for contacts.ContactskypeUserName(String skypeUserName)Skype user name of contactContactstatusAttributeString(String statusAttributeString)Status of objectContacttaxNumber(String taxNumber)Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)StringtoString()ContacttrackingCategoryName(String trackingCategoryName)The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesContacttrackingCategoryOption(String trackingCategoryOption)The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategoriesContactvalidationErrors(List<ValidationError> validationErrors)Displays validation errors returned from the APIContactxeroNetworkKey(String xeroNetworkKey)Store XeroNetworkKey for contacts.
-
-
-
Method Detail
-
contactID
public Contact contactID(UUID contactID)
Xero identifier- Parameters:
contactID- UUID- Returns:
- Contact
-
getContactID
public UUID getContactID()
Xero identifier- Returns:
- contactID
-
setContactID
public void setContactID(UUID contactID)
Xero identifier- Parameters:
contactID- UUID
-
contactNumber
public Contact contactNumber(String contactNumber)
This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.- Parameters:
contactNumber- String- Returns:
- Contact
-
getContactNumber
public String getContactNumber()
This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.- Returns:
- contactNumber
-
setContactNumber
public void setContactNumber(String contactNumber)
This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero.- Parameters:
contactNumber- String
-
accountNumber
public Contact accountNumber(String accountNumber)
A user defined account number. This can be updated via the API and the Xero UI (max length = 50)- Parameters:
accountNumber- String- Returns:
- Contact
-
getAccountNumber
public String getAccountNumber()
A user defined account number. This can be updated via the API and the Xero UI (max length = 50)- Returns:
- accountNumber
-
setAccountNumber
public void setAccountNumber(String accountNumber)
A user defined account number. This can be updated via the API and the Xero UI (max length = 50)- Parameters:
accountNumber- String
-
contactStatus
public Contact contactStatus(Contact.ContactStatusEnum contactStatus)
Current status of a contact – see contact status types- Parameters:
contactStatus- ContactStatusEnum- Returns:
- Contact
-
getContactStatus
public Contact.ContactStatusEnum getContactStatus()
Current status of a contact – see contact status types- Returns:
- contactStatus
-
setContactStatus
public void setContactStatus(Contact.ContactStatusEnum contactStatus)
Current status of a contact – see contact status types- Parameters:
contactStatus- ContactStatusEnum
-
name
public Contact name(String name)
Full name of contact/organisation (max length = 255)- Parameters:
name- String- Returns:
- Contact
-
getName
public String getName()
Full name of contact/organisation (max length = 255)- Returns:
- name
-
setName
public void setName(String name)
Full name of contact/organisation (max length = 255)- Parameters:
name- String
-
firstName
public Contact firstName(String firstName)
First name of contact person (max length = 255)- Parameters:
firstName- String- Returns:
- Contact
-
getFirstName
public String getFirstName()
First name of contact person (max length = 255)- Returns:
- firstName
-
setFirstName
public void setFirstName(String firstName)
First name of contact person (max length = 255)- Parameters:
firstName- String
-
lastName
public Contact lastName(String lastName)
Last name of contact person (max length = 255)- Parameters:
lastName- String- Returns:
- Contact
-
getLastName
public String getLastName()
Last name of contact person (max length = 255)- Returns:
- lastName
-
setLastName
public void setLastName(String lastName)
Last name of contact person (max length = 255)- Parameters:
lastName- String
-
emailAddress
public Contact emailAddress(String emailAddress)
Email address of contact person (umlauts not supported) (max length = 255)- Parameters:
emailAddress- String- Returns:
- Contact
-
getEmailAddress
public String getEmailAddress()
Email address of contact person (umlauts not supported) (max length = 255)- Returns:
- emailAddress
-
setEmailAddress
public void setEmailAddress(String emailAddress)
Email address of contact person (umlauts not supported) (max length = 255)- Parameters:
emailAddress- String
-
skypeUserName
public Contact skypeUserName(String skypeUserName)
Skype user name of contact- Parameters:
skypeUserName- String- Returns:
- Contact
-
getSkypeUserName
public String getSkypeUserName()
Skype user name of contact- Returns:
- skypeUserName
-
setSkypeUserName
public void setSkypeUserName(String skypeUserName)
Skype user name of contact- Parameters:
skypeUserName- String
-
contactPersons
public Contact contactPersons(List<ContactPerson> contactPersons)
See contact persons- Parameters:
contactPersons- List<ContactPerson>- Returns:
- Contact
-
addContactPersonsItem
public Contact addContactPersonsItem(ContactPerson contactPersonsItem)
See contact persons- Parameters:
contactPersonsItem- ContactPerson- Returns:
- Contact
-
getContactPersons
public List<ContactPerson> getContactPersons()
See contact persons- Returns:
- contactPersons
-
setContactPersons
public void setContactPersons(List<ContactPerson> contactPersons)
See contact persons- Parameters:
contactPersons- List<ContactPerson>
-
bankAccountDetails
public Contact bankAccountDetails(String bankAccountDetails)
Bank account number of contact- Parameters:
bankAccountDetails- String- Returns:
- Contact
-
getBankAccountDetails
public String getBankAccountDetails()
Bank account number of contact- Returns:
- bankAccountDetails
-
setBankAccountDetails
public void setBankAccountDetails(String bankAccountDetails)
Bank account number of contact- Parameters:
bankAccountDetails- String
-
taxNumber
public Contact taxNumber(String taxNumber)
Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)- Parameters:
taxNumber- String- Returns:
- Contact
-
getTaxNumber
public String getTaxNumber()
Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)- Returns:
- taxNumber
-
setTaxNumber
public void setTaxNumber(String taxNumber)
Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50)- Parameters:
taxNumber- String
-
accountsReceivableTaxType
public Contact accountsReceivableTaxType(String accountsReceivableTaxType)
The tax type from TaxRates- Parameters:
accountsReceivableTaxType- String- Returns:
- Contact
-
getAccountsReceivableTaxType
public String getAccountsReceivableTaxType()
The tax type from TaxRates- Returns:
- accountsReceivableTaxType
-
setAccountsReceivableTaxType
public void setAccountsReceivableTaxType(String accountsReceivableTaxType)
The tax type from TaxRates- Parameters:
accountsReceivableTaxType- String
-
accountsPayableTaxType
public Contact accountsPayableTaxType(String accountsPayableTaxType)
The tax type from TaxRates- Parameters:
accountsPayableTaxType- String- Returns:
- Contact
-
getAccountsPayableTaxType
public String getAccountsPayableTaxType()
The tax type from TaxRates- Returns:
- accountsPayableTaxType
-
setAccountsPayableTaxType
public void setAccountsPayableTaxType(String accountsPayableTaxType)
The tax type from TaxRates- Parameters:
accountsPayableTaxType- String
-
addresses
public Contact addresses(List<Address> addresses)
Store certain address types for a contact – see address types- Parameters:
addresses- List<Address>- Returns:
- Contact
-
addAddressesItem
public Contact addAddressesItem(Address addressesItem)
Store certain address types for a contact – see address types- Parameters:
addressesItem- Address- Returns:
- Contact
-
getAddresses
public List<Address> getAddresses()
Store certain address types for a contact – see address types- Returns:
- addresses
-
setAddresses
public void setAddresses(List<Address> addresses)
Store certain address types for a contact – see address types- Parameters:
addresses- List<Address>
-
phones
public Contact phones(List<Phone> phones)
Store certain phone types for a contact – see phone types- Parameters:
phones- List<Phone>- Returns:
- Contact
-
addPhonesItem
public Contact addPhonesItem(Phone phonesItem)
Store certain phone types for a contact – see phone types- Parameters:
phonesItem- Phone- Returns:
- Contact
-
getPhones
public List<Phone> getPhones()
Store certain phone types for a contact – see phone types- Returns:
- phones
-
setPhones
public void setPhones(List<Phone> phones)
Store certain phone types for a contact – see phone types- Parameters:
phones- List<Phone>
-
isSupplier
public Contact isSupplier(Boolean isSupplier)
true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.- Parameters:
isSupplier- Boolean- Returns:
- Contact
-
getIsSupplier
public Boolean getIsSupplier()
true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.- Returns:
- isSupplier
-
setIsSupplier
public void setIsSupplier(Boolean isSupplier)
true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact.- Parameters:
isSupplier- Boolean
-
isCustomer
public Contact isCustomer(Boolean isCustomer)
true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.- Parameters:
isCustomer- Boolean- Returns:
- Contact
-
getIsCustomer
public Boolean getIsCustomer()
true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.- Returns:
- isCustomer
-
setIsCustomer
public void setIsCustomer(Boolean isCustomer)
true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact.- Parameters:
isCustomer- Boolean
-
defaultCurrency
public Contact defaultCurrency(CurrencyCode defaultCurrency)
defaultCurrency- Parameters:
defaultCurrency- CurrencyCode- Returns:
- Contact
-
getDefaultCurrency
public CurrencyCode getDefaultCurrency()
Get defaultCurrency- Returns:
- defaultCurrency
-
setDefaultCurrency
public void setDefaultCurrency(CurrencyCode defaultCurrency)
defaultCurrency- Parameters:
defaultCurrency- CurrencyCode
-
xeroNetworkKey
public Contact xeroNetworkKey(String xeroNetworkKey)
Store XeroNetworkKey for contacts.- Parameters:
xeroNetworkKey- String- Returns:
- Contact
-
getXeroNetworkKey
public String getXeroNetworkKey()
Store XeroNetworkKey for contacts.- Returns:
- xeroNetworkKey
-
setXeroNetworkKey
public void setXeroNetworkKey(String xeroNetworkKey)
Store XeroNetworkKey for contacts.- Parameters:
xeroNetworkKey- String
-
salesDefaultAccountCode
public Contact salesDefaultAccountCode(String salesDefaultAccountCode)
The default sales account code for contacts- Parameters:
salesDefaultAccountCode- String- Returns:
- Contact
-
getSalesDefaultAccountCode
public String getSalesDefaultAccountCode()
The default sales account code for contacts- Returns:
- salesDefaultAccountCode
-
setSalesDefaultAccountCode
public void setSalesDefaultAccountCode(String salesDefaultAccountCode)
The default sales account code for contacts- Parameters:
salesDefaultAccountCode- String
-
purchasesDefaultAccountCode
public Contact purchasesDefaultAccountCode(String purchasesDefaultAccountCode)
The default purchases account code for contacts- Parameters:
purchasesDefaultAccountCode- String- Returns:
- Contact
-
getPurchasesDefaultAccountCode
public String getPurchasesDefaultAccountCode()
The default purchases account code for contacts- Returns:
- purchasesDefaultAccountCode
-
setPurchasesDefaultAccountCode
public void setPurchasesDefaultAccountCode(String purchasesDefaultAccountCode)
The default purchases account code for contacts- Parameters:
purchasesDefaultAccountCode- String
-
salesTrackingCategories
public Contact salesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories)
The default sales tracking categories for contacts- Parameters:
salesTrackingCategories- List<SalesTrackingCategory>- Returns:
- Contact
-
addSalesTrackingCategoriesItem
public Contact addSalesTrackingCategoriesItem(SalesTrackingCategory salesTrackingCategoriesItem)
The default sales tracking categories for contacts- Parameters:
salesTrackingCategoriesItem- SalesTrackingCategory- Returns:
- Contact
-
getSalesTrackingCategories
public List<SalesTrackingCategory> getSalesTrackingCategories()
The default sales tracking categories for contacts- Returns:
- salesTrackingCategories
-
setSalesTrackingCategories
public void setSalesTrackingCategories(List<SalesTrackingCategory> salesTrackingCategories)
The default sales tracking categories for contacts- Parameters:
salesTrackingCategories- List<SalesTrackingCategory>
-
purchasesTrackingCategories
public Contact purchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories)
The default purchases tracking categories for contacts- Parameters:
purchasesTrackingCategories- List<SalesTrackingCategory>- Returns:
- Contact
-
addPurchasesTrackingCategoriesItem
public Contact addPurchasesTrackingCategoriesItem(SalesTrackingCategory purchasesTrackingCategoriesItem)
The default purchases tracking categories for contacts- Parameters:
purchasesTrackingCategoriesItem- SalesTrackingCategory- Returns:
- Contact
-
getPurchasesTrackingCategories
public List<SalesTrackingCategory> getPurchasesTrackingCategories()
The default purchases tracking categories for contacts- Returns:
- purchasesTrackingCategories
-
setPurchasesTrackingCategories
public void setPurchasesTrackingCategories(List<SalesTrackingCategory> purchasesTrackingCategories)
The default purchases tracking categories for contacts- Parameters:
purchasesTrackingCategories- List<SalesTrackingCategory>
-
trackingCategoryName
public Contact trackingCategoryName(String trackingCategoryName)
The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Parameters:
trackingCategoryName- String- Returns:
- Contact
-
getTrackingCategoryName
public String getTrackingCategoryName()
The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Returns:
- trackingCategoryName
-
setTrackingCategoryName
public void setTrackingCategoryName(String trackingCategoryName)
The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Parameters:
trackingCategoryName- String
-
trackingCategoryOption
public Contact trackingCategoryOption(String trackingCategoryOption)
The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Parameters:
trackingCategoryOption- String- Returns:
- Contact
-
getTrackingCategoryOption
public String getTrackingCategoryOption()
The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Returns:
- trackingCategoryOption
-
setTrackingCategoryOption
public void setTrackingCategoryOption(String trackingCategoryOption)
The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories- Parameters:
trackingCategoryOption- String
-
paymentTerms
public Contact paymentTerms(PaymentTerm paymentTerms)
paymentTerms- Parameters:
paymentTerms- PaymentTerm- Returns:
- Contact
-
getPaymentTerms
public PaymentTerm getPaymentTerms()
Get paymentTerms- Returns:
- paymentTerms
-
setPaymentTerms
public void setPaymentTerms(PaymentTerm paymentTerms)
paymentTerms- Parameters:
paymentTerms- PaymentTerm
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
UTC timestamp of last update to contact- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
UTC timestamp of last update to contact- Returns:
- OffsetDateTime
-
contactGroups
public Contact contactGroups(List<ContactGroup> contactGroups)
Displays which contact groups a contact is included in- Parameters:
contactGroups- List<ContactGroup>- Returns:
- Contact
-
addContactGroupsItem
public Contact addContactGroupsItem(ContactGroup contactGroupsItem)
Displays which contact groups a contact is included in- Parameters:
contactGroupsItem- ContactGroup- Returns:
- Contact
-
getContactGroups
public List<ContactGroup> getContactGroups()
Displays which contact groups a contact is included in- Returns:
- contactGroups
-
setContactGroups
public void setContactGroups(List<ContactGroup> contactGroups)
Displays which contact groups a contact is included in- Parameters:
contactGroups- List<ContactGroup>
-
getWebsite
public String getWebsite()
Website address for contact (read only)- Returns:
- website
-
brandingTheme
public Contact brandingTheme(BrandingTheme brandingTheme)
brandingTheme- Parameters:
brandingTheme- BrandingTheme- Returns:
- Contact
-
getBrandingTheme
public BrandingTheme getBrandingTheme()
Get brandingTheme- Returns:
- brandingTheme
-
setBrandingTheme
public void setBrandingTheme(BrandingTheme brandingTheme)
brandingTheme- Parameters:
brandingTheme- BrandingTheme
-
batchPayments
public Contact batchPayments(BatchPaymentDetails batchPayments)
batchPayments- Parameters:
batchPayments- BatchPaymentDetails- Returns:
- Contact
-
getBatchPayments
public BatchPaymentDetails getBatchPayments()
Get batchPayments- Returns:
- batchPayments
-
setBatchPayments
public void setBatchPayments(BatchPaymentDetails batchPayments)
batchPayments- Parameters:
batchPayments- BatchPaymentDetails
-
getDiscount
public Double getDiscount()
The default discount rate for the contact (read only)- Returns:
- discount
-
balances
public Contact balances(Balances balances)
balances- Parameters:
balances- Balances- Returns:
- Contact
-
getBalances
public Balances getBalances()
Get balances- Returns:
- balances
-
setBalances
public void setBalances(Balances balances)
balances- Parameters:
balances- Balances
-
attachments
public Contact attachments(List<Attachment> attachments)
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>- Returns:
- Contact
-
addAttachmentsItem
public Contact addAttachmentsItem(Attachment attachmentsItem)
Displays array of attachments from the API- Parameters:
attachmentsItem- Attachment- Returns:
- Contact
-
getAttachments
public List<Attachment> getAttachments()
Displays array of attachments from the API- Returns:
- attachments
-
setAttachments
public void setAttachments(List<Attachment> attachments)
Displays array of attachments from the API- Parameters:
attachments- List<Attachment>
-
hasAttachments
public Contact hasAttachments(Boolean hasAttachments)
A boolean to indicate if a contact has an attachment- Parameters:
hasAttachments- Boolean- Returns:
- Contact
-
getHasAttachments
public Boolean getHasAttachments()
A boolean to indicate if a contact has an attachment- Returns:
- hasAttachments
-
setHasAttachments
public void setHasAttachments(Boolean hasAttachments)
A boolean to indicate if a contact has an attachment- Parameters:
hasAttachments- Boolean
-
validationErrors
public Contact validationErrors(List<ValidationError> validationErrors)
Displays validation errors returned from the API- Parameters:
validationErrors- List<ValidationError>- Returns:
- Contact
-
addValidationErrorsItem
public Contact addValidationErrorsItem(ValidationError validationErrorsItem)
Displays validation errors returned from the API- Parameters:
validationErrorsItem- ValidationError- Returns:
- Contact
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Displays validation errors returned from the API- Returns:
- validationErrors
-
setValidationErrors
public void setValidationErrors(List<ValidationError> validationErrors)
Displays validation errors returned from the API- Parameters:
validationErrors- List<ValidationError>
-
hasValidationErrors
public Contact hasValidationErrors(Boolean hasValidationErrors)
A boolean to indicate if a contact has an validation errors- Parameters:
hasValidationErrors- Boolean- Returns:
- Contact
-
getHasValidationErrors
public Boolean getHasValidationErrors()
A boolean to indicate if a contact has an validation errors- Returns:
- hasValidationErrors
-
setHasValidationErrors
public void setHasValidationErrors(Boolean hasValidationErrors)
A boolean to indicate if a contact has an validation errors- Parameters:
hasValidationErrors- Boolean
-
statusAttributeString
public Contact statusAttributeString(String statusAttributeString)
Status of object- Parameters:
statusAttributeString- String- Returns:
- Contact
-
getStatusAttributeString
public String getStatusAttributeString()
Status of object- Returns:
- statusAttributeString
-
setStatusAttributeString
public void setStatusAttributeString(String statusAttributeString)
Status of object- Parameters:
statusAttributeString- String
-
-