All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xero.models.accounting.Contact Maven / Gradle / Ivy

/*
 * Xero Accounting API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package com.xero.models.accounting;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
import org.threeten.bp.OffsetDateTime;

/** Contact */
public class Contact {
  StringUtil util = new StringUtil();

  @JsonProperty("ContactID")
  private UUID contactID;

  @JsonProperty("MergedToContactID")
  private UUID mergedToContactID;

  @JsonProperty("ContactNumber")
  private String contactNumber;

  @JsonProperty("AccountNumber")
  private String accountNumber;
  /** Current status of a contact – see contact status types */
  public enum ContactStatusEnum {
    /** ACTIVE */
    ACTIVE("ACTIVE"),

    /** ARCHIVED */
    ARCHIVED("ARCHIVED"),

    /** GDPRREQUEST */
    GDPRREQUEST("GDPRREQUEST");

    private String value;

    ContactStatusEnum(String value) {
      this.value = value;
    }

    /**
     * getValue
     *
     * @return String value
     */
    @JsonValue
    public String getValue() {
      return value;
    }

    /**
     * toString
     *
     * @return String value
     */
    @Override
    public String toString() {
      return String.valueOf(value);
    }

    /**
     * fromValue
     *
     * @param value String
     */
    @JsonCreator
    public static ContactStatusEnum fromValue(String value) {
      for (ContactStatusEnum b : ContactStatusEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  @JsonProperty("ContactStatus")
  private ContactStatusEnum contactStatus;

  @JsonProperty("Name")
  private String name;

  @JsonProperty("FirstName")
  private String firstName;

  @JsonProperty("LastName")
  private String lastName;

  @JsonProperty("CompanyNumber")
  private String companyNumber;

  @JsonProperty("EmailAddress")
  private String emailAddress;

  @JsonProperty("ContactPersons")
  private List contactPersons = new ArrayList();

  @JsonProperty("BankAccountDetails")
  private String bankAccountDetails;

  @JsonProperty("TaxNumber")
  private String taxNumber;

  @JsonProperty("AccountsReceivableTaxType")
  private String accountsReceivableTaxType;

  @JsonProperty("AccountsPayableTaxType")
  private String accountsPayableTaxType;

  @JsonProperty("Addresses")
  private List
addresses = new ArrayList
(); @JsonProperty("Phones") private List phones = new ArrayList(); @JsonProperty("IsSupplier") private Boolean isSupplier; @JsonProperty("IsCustomer") private Boolean isCustomer; /** * The default sales line amount type for a contact. Only available when summaryOnly parameter or * paging is used, or when fetch by ContactId or ContactNumber. */ public enum SalesDefaultLineAmountTypeEnum { /** INCLUSIVE */ INCLUSIVE("INCLUSIVE"), /** EXCLUSIVE */ EXCLUSIVE("EXCLUSIVE"), /** NONE */ NONE("NONE"); private String value; SalesDefaultLineAmountTypeEnum(String value) { this.value = value; } /** * getValue * * @return String value */ @JsonValue public String getValue() { return value; } /** * toString * * @return String value */ @Override public String toString() { return String.valueOf(value); } /** * fromValue * * @param value String */ @JsonCreator public static SalesDefaultLineAmountTypeEnum fromValue(String value) { for (SalesDefaultLineAmountTypeEnum b : SalesDefaultLineAmountTypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } @JsonProperty("SalesDefaultLineAmountType") private SalesDefaultLineAmountTypeEnum salesDefaultLineAmountType; /** * The default purchases line amount type for a contact Only available when summaryOnly parameter * or paging is used, or when fetch by ContactId or ContactNumber. */ public enum PurchasesDefaultLineAmountTypeEnum { /** INCLUSIVE */ INCLUSIVE("INCLUSIVE"), /** EXCLUSIVE */ EXCLUSIVE("EXCLUSIVE"), /** NONE */ NONE("NONE"); private String value; PurchasesDefaultLineAmountTypeEnum(String value) { this.value = value; } /** * getValue * * @return String value */ @JsonValue public String getValue() { return value; } /** * toString * * @return String value */ @Override public String toString() { return String.valueOf(value); } /** * fromValue * * @param value String */ @JsonCreator public static PurchasesDefaultLineAmountTypeEnum fromValue(String value) { for (PurchasesDefaultLineAmountTypeEnum b : PurchasesDefaultLineAmountTypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } @JsonProperty("PurchasesDefaultLineAmountType") private PurchasesDefaultLineAmountTypeEnum purchasesDefaultLineAmountType; @JsonProperty("DefaultCurrency") private CurrencyCode defaultCurrency; @JsonProperty("XeroNetworkKey") private String xeroNetworkKey; @JsonProperty("SalesDefaultAccountCode") private String salesDefaultAccountCode; @JsonProperty("PurchasesDefaultAccountCode") private String purchasesDefaultAccountCode; @JsonProperty("SalesTrackingCategories") private List salesTrackingCategories = new ArrayList(); @JsonProperty("PurchasesTrackingCategories") private List purchasesTrackingCategories = new ArrayList(); @JsonProperty("TrackingCategoryName") private String trackingCategoryName; @JsonProperty("TrackingCategoryOption") private String trackingCategoryOption; @JsonProperty("PaymentTerms") private PaymentTerm paymentTerms; @JsonProperty("UpdatedDateUTC") private String updatedDateUTC; @JsonProperty("ContactGroups") private List contactGroups = new ArrayList(); @JsonProperty("Website") private String website; @JsonProperty("BrandingTheme") private BrandingTheme brandingTheme; @JsonProperty("BatchPayments") private BatchPaymentDetails batchPayments; @JsonProperty("Discount") private Double discount; @JsonProperty("Balances") private Balances balances; @JsonProperty("Attachments") private List attachments = new ArrayList(); @JsonProperty("HasAttachments") private Boolean hasAttachments = false; @JsonProperty("ValidationErrors") private List validationErrors = new ArrayList(); @JsonProperty("HasValidationErrors") private Boolean hasValidationErrors = false; @JsonProperty("StatusAttributeString") private String statusAttributeString; /** * Xero identifier * * @param contactID UUID * @return Contact */ public Contact contactID(UUID contactID) { this.contactID = contactID; return this; } /** * Xero identifier * * @return contactID */ @ApiModelProperty(value = "Xero identifier") /** * Xero identifier * * @return contactID UUID */ public UUID getContactID() { return contactID; } /** * Xero identifier * * @param contactID UUID */ public void setContactID(UUID contactID) { this.contactID = contactID; } /** * ID for the destination of a merged contact. Only returned when using paging or when fetching a * contact by ContactId or ContactNumber. * * @param mergedToContactID UUID * @return Contact */ public Contact mergedToContactID(UUID mergedToContactID) { this.mergedToContactID = mergedToContactID; return this; } /** * ID for the destination of a merged contact. Only returned when using paging or when fetching a * contact by ContactId or ContactNumber. * * @return mergedToContactID */ @ApiModelProperty( value = "ID for the destination of a merged contact. Only returned when using paging or when" + " fetching a contact by ContactId or ContactNumber.") /** * ID for the destination of a merged contact. Only returned when using paging or when fetching a * contact by ContactId or ContactNumber. * * @return mergedToContactID UUID */ public UUID getMergedToContactID() { return mergedToContactID; } /** * ID for the destination of a merged contact. Only returned when using paging or when fetching a * contact by ContactId or ContactNumber. * * @param mergedToContactID UUID */ public void setMergedToContactID(UUID mergedToContactID) { this.mergedToContactID = mergedToContactID; } /** * 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. * * @param contactNumber String * @return Contact */ public Contact contactNumber(String contactNumber) { this.contactNumber = contactNumber; return this; } /** * 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. * * @return contactNumber */ @ApiModelProperty( value = "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.") /** * 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. * * @return contactNumber String */ public String getContactNumber() { return 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. * * @param contactNumber String */ public void setContactNumber(String contactNumber) { this.contactNumber = contactNumber; } /** * A user defined account number. This can be updated via the API and the Xero UI (max length * = 50) * * @param accountNumber String * @return Contact */ public Contact accountNumber(String accountNumber) { this.accountNumber = accountNumber; return this; } /** * A user defined account number. This can be updated via the API and the Xero UI (max length * = 50) * * @return accountNumber */ @ApiModelProperty( value = "A user defined account number. This can be updated via the API and the Xero UI (max" + " length = 50)") /** * A user defined account number. This can be updated via the API and the Xero UI (max length * = 50) * * @return accountNumber String */ public String getAccountNumber() { return accountNumber; } /** * A user defined account number. This can be updated via the API and the Xero UI (max length * = 50) * * @param accountNumber String */ public void setAccountNumber(String accountNumber) { this.accountNumber = accountNumber; } /** * Current status of a contact – see contact status types * * @param contactStatus ContactStatusEnum * @return Contact */ public Contact contactStatus(ContactStatusEnum contactStatus) { this.contactStatus = contactStatus; return this; } /** * Current status of a contact – see contact status types * * @return contactStatus */ @ApiModelProperty(value = "Current status of a contact – see contact status types") /** * Current status of a contact – see contact status types * * @return contactStatus ContactStatusEnum */ public ContactStatusEnum getContactStatus() { return contactStatus; } /** * Current status of a contact – see contact status types * * @param contactStatus ContactStatusEnum */ public void setContactStatus(ContactStatusEnum contactStatus) { this.contactStatus = contactStatus; } /** * Full name of contact/organisation (max length = 255) * * @param name String * @return Contact */ public Contact name(String name) { this.name = name; return this; } /** * Full name of contact/organisation (max length = 255) * * @return name */ @ApiModelProperty(value = "Full name of contact/organisation (max length = 255)") /** * Full name of contact/organisation (max length = 255) * * @return name String */ public String getName() { return name; } /** * Full name of contact/organisation (max length = 255) * * @param name String */ public void setName(String name) { this.name = name; } /** * First name of contact person (max length = 255) * * @param firstName String * @return Contact */ public Contact firstName(String firstName) { this.firstName = firstName; return this; } /** * First name of contact person (max length = 255) * * @return firstName */ @ApiModelProperty(value = "First name of contact person (max length = 255)") /** * First name of contact person (max length = 255) * * @return firstName String */ public String getFirstName() { return firstName; } /** * First name of contact person (max length = 255) * * @param firstName String */ public void setFirstName(String firstName) { this.firstName = firstName; } /** * Last name of contact person (max length = 255) * * @param lastName String * @return Contact */ public Contact lastName(String lastName) { this.lastName = lastName; return this; } /** * Last name of contact person (max length = 255) * * @return lastName */ @ApiModelProperty(value = "Last name of contact person (max length = 255)") /** * Last name of contact person (max length = 255) * * @return lastName String */ public String getLastName() { return lastName; } /** * Last name of contact person (max length = 255) * * @param lastName String */ public void setLastName(String lastName) { this.lastName = lastName; } /** * Company registration number (max length = 50) * * @param companyNumber String * @return Contact */ public Contact companyNumber(String companyNumber) { this.companyNumber = companyNumber; return this; } /** * Company registration number (max length = 50) * * @return companyNumber */ @ApiModelProperty(value = "Company registration number (max length = 50)") /** * Company registration number (max length = 50) * * @return companyNumber String */ public String getCompanyNumber() { return companyNumber; } /** * Company registration number (max length = 50) * * @param companyNumber String */ public void setCompanyNumber(String companyNumber) { this.companyNumber = companyNumber; } /** * Email address of contact person (umlauts not supported) (max length = 255) * * @param emailAddress String * @return Contact */ public Contact emailAddress(String emailAddress) { this.emailAddress = emailAddress; return this; } /** * Email address of contact person (umlauts not supported) (max length = 255) * * @return emailAddress */ @ApiModelProperty( value = "Email address of contact person (umlauts not supported) (max length = 255)") /** * Email address of contact person (umlauts not supported) (max length = 255) * * @return emailAddress String */ public String getEmailAddress() { return emailAddress; } /** * Email address of contact person (umlauts not supported) (max length = 255) * * @param emailAddress String */ public void setEmailAddress(String emailAddress) { this.emailAddress = emailAddress; } /** * See contact persons * * @param contactPersons List<ContactPerson> * @return Contact */ public Contact contactPersons(List contactPersons) { this.contactPersons = contactPersons; return this; } /** * See contact persons * * @param contactPersonsItem ContactPerson * @return Contact */ public Contact addContactPersonsItem(ContactPerson contactPersonsItem) { if (this.contactPersons == null) { this.contactPersons = new ArrayList(); } this.contactPersons.add(contactPersonsItem); return this; } /** * See contact persons * * @return contactPersons */ @ApiModelProperty(value = "See contact persons") /** * See contact persons * * @return contactPersons List */ public List getContactPersons() { return contactPersons; } /** * See contact persons * * @param contactPersons List<ContactPerson> */ public void setContactPersons(List contactPersons) { this.contactPersons = contactPersons; } /** * Bank account number of contact * * @param bankAccountDetails String * @return Contact */ public Contact bankAccountDetails(String bankAccountDetails) { this.bankAccountDetails = bankAccountDetails; return this; } /** * Bank account number of contact * * @return bankAccountDetails */ @ApiModelProperty(value = "Bank account number of contact") /** * Bank account number of contact * * @return bankAccountDetails String */ public String getBankAccountDetails() { return bankAccountDetails; } /** * Bank account number of contact * * @param bankAccountDetails String */ public void setBankAccountDetails(String bankAccountDetails) { this.bankAccountDetails = bankAccountDetails; } /** * 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) * * @param taxNumber String * @return Contact */ public Contact taxNumber(String taxNumber) { this.taxNumber = taxNumber; return this; } /** * 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) * * @return taxNumber */ @ApiModelProperty( value = "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)") /** * 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) * * @return taxNumber String */ public String getTaxNumber() { return 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) * * @param taxNumber String */ public void setTaxNumber(String taxNumber) { this.taxNumber = taxNumber; } /** * The tax type from TaxRates * * @param accountsReceivableTaxType String * @return Contact */ public Contact accountsReceivableTaxType(String accountsReceivableTaxType) { this.accountsReceivableTaxType = accountsReceivableTaxType; return this; } /** * The tax type from TaxRates * * @return accountsReceivableTaxType */ @ApiModelProperty(value = "The tax type from TaxRates") /** * The tax type from TaxRates * * @return accountsReceivableTaxType String */ public String getAccountsReceivableTaxType() { return accountsReceivableTaxType; } /** * The tax type from TaxRates * * @param accountsReceivableTaxType String */ public void setAccountsReceivableTaxType(String accountsReceivableTaxType) { this.accountsReceivableTaxType = accountsReceivableTaxType; } /** * The tax type from TaxRates * * @param accountsPayableTaxType String * @return Contact */ public Contact accountsPayableTaxType(String accountsPayableTaxType) { this.accountsPayableTaxType = accountsPayableTaxType; return this; } /** * The tax type from TaxRates * * @return accountsPayableTaxType */ @ApiModelProperty(value = "The tax type from TaxRates") /** * The tax type from TaxRates * * @return accountsPayableTaxType String */ public String getAccountsPayableTaxType() { return accountsPayableTaxType; } /** * The tax type from TaxRates * * @param accountsPayableTaxType String */ public void setAccountsPayableTaxType(String accountsPayableTaxType) { this.accountsPayableTaxType = accountsPayableTaxType; } /** * Store certain address types for a contact – see address types * * @param addresses List<Address> * @return Contact */ public Contact addresses(List
addresses) { this.addresses = addresses; return this; } /** * Store certain address types for a contact – see address types * * @param addressesItem Address * @return Contact */ public Contact addAddressesItem(Address addressesItem) { if (this.addresses == null) { this.addresses = new ArrayList
(); } this.addresses.add(addressesItem); return this; } /** * Store certain address types for a contact – see address types * * @return addresses */ @ApiModelProperty(value = "Store certain address types for a contact – see address types") /** * Store certain address types for a contact – see address types * * @return addresses List
*/ public List
getAddresses() { return addresses; } /** * Store certain address types for a contact – see address types * * @param addresses List<Address> */ public void setAddresses(List
addresses) { this.addresses = addresses; } /** * Store certain phone types for a contact – see phone types * * @param phones List<Phone> * @return Contact */ public Contact phones(List phones) { this.phones = phones; return this; } /** * Store certain phone types for a contact – see phone types * * @param phonesItem Phone * @return Contact */ public Contact addPhonesItem(Phone phonesItem) { if (this.phones == null) { this.phones = new ArrayList(); } this.phones.add(phonesItem); return this; } /** * Store certain phone types for a contact – see phone types * * @return phones */ @ApiModelProperty(value = "Store certain phone types for a contact – see phone types") /** * Store certain phone types for a contact – see phone types * * @return phones List */ public List getPhones() { return phones; } /** * Store certain phone types for a contact – see phone types * * @param phones List<Phone> */ public void setPhones(List phones) { this.phones = phones; } /** * 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. * * @param isSupplier Boolean * @return Contact */ public Contact isSupplier(Boolean isSupplier) { this.isSupplier = isSupplier; return this; } /** * 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. * * @return isSupplier */ @ApiModelProperty( value = "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.") /** * 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. * * @return isSupplier Boolean */ public Boolean getIsSupplier() { return 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. * * @param isSupplier Boolean */ public void setIsSupplier(Boolean isSupplier) { this.isSupplier = isSupplier; } /** * 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. * * @param isCustomer Boolean * @return Contact */ public Contact isCustomer(Boolean isCustomer) { this.isCustomer = isCustomer; return this; } /** * 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. * * @return isCustomer */ @ApiModelProperty( value = "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.") /** * 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. * * @return isCustomer Boolean */ public Boolean getIsCustomer() { return 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. * * @param isCustomer Boolean */ public void setIsCustomer(Boolean isCustomer) { this.isCustomer = isCustomer; } /** * The default sales line amount type for a contact. Only available when summaryOnly parameter or * paging is used, or when fetch by ContactId or ContactNumber. * * @param salesDefaultLineAmountType SalesDefaultLineAmountTypeEnum * @return Contact */ public Contact salesDefaultLineAmountType( SalesDefaultLineAmountTypeEnum salesDefaultLineAmountType) { this.salesDefaultLineAmountType = salesDefaultLineAmountType; return this; } /** * The default sales line amount type for a contact. Only available when summaryOnly parameter or * paging is used, or when fetch by ContactId or ContactNumber. * * @return salesDefaultLineAmountType */ @ApiModelProperty( value = "The default sales line amount type for a contact. Only available when summaryOnly" + " parameter or paging is used, or when fetch by ContactId or ContactNumber.") /** * The default sales line amount type for a contact. Only available when summaryOnly parameter or * paging is used, or when fetch by ContactId or ContactNumber. * * @return salesDefaultLineAmountType SalesDefaultLineAmountTypeEnum */ public SalesDefaultLineAmountTypeEnum getSalesDefaultLineAmountType() { return salesDefaultLineAmountType; } /** * The default sales line amount type for a contact. Only available when summaryOnly parameter or * paging is used, or when fetch by ContactId or ContactNumber. * * @param salesDefaultLineAmountType SalesDefaultLineAmountTypeEnum */ public void setSalesDefaultLineAmountType( SalesDefaultLineAmountTypeEnum salesDefaultLineAmountType) { this.salesDefaultLineAmountType = salesDefaultLineAmountType; } /** * The default purchases line amount type for a contact Only available when summaryOnly parameter * or paging is used, or when fetch by ContactId or ContactNumber. * * @param purchasesDefaultLineAmountType PurchasesDefaultLineAmountTypeEnum * @return Contact */ public Contact purchasesDefaultLineAmountType( PurchasesDefaultLineAmountTypeEnum purchasesDefaultLineAmountType) { this.purchasesDefaultLineAmountType = purchasesDefaultLineAmountType; return this; } /** * The default purchases line amount type for a contact Only available when summaryOnly parameter * or paging is used, or when fetch by ContactId or ContactNumber. * * @return purchasesDefaultLineAmountType */ @ApiModelProperty( value = "The default purchases line amount type for a contact Only available when summaryOnly" + " parameter or paging is used, or when fetch by ContactId or ContactNumber.") /** * The default purchases line amount type for a contact Only available when summaryOnly parameter * or paging is used, or when fetch by ContactId or ContactNumber. * * @return purchasesDefaultLineAmountType PurchasesDefaultLineAmountTypeEnum */ public PurchasesDefaultLineAmountTypeEnum getPurchasesDefaultLineAmountType() { return purchasesDefaultLineAmountType; } /** * The default purchases line amount type for a contact Only available when summaryOnly parameter * or paging is used, or when fetch by ContactId or ContactNumber. * * @param purchasesDefaultLineAmountType PurchasesDefaultLineAmountTypeEnum */ public void setPurchasesDefaultLineAmountType( PurchasesDefaultLineAmountTypeEnum purchasesDefaultLineAmountType) { this.purchasesDefaultLineAmountType = purchasesDefaultLineAmountType; } /** * defaultCurrency * * @param defaultCurrency CurrencyCode * @return Contact */ public Contact defaultCurrency(CurrencyCode defaultCurrency) { this.defaultCurrency = defaultCurrency; return this; } /** * Get defaultCurrency * * @return defaultCurrency */ @ApiModelProperty(value = "") /** * defaultCurrency * * @return defaultCurrency CurrencyCode */ public CurrencyCode getDefaultCurrency() { return defaultCurrency; } /** * defaultCurrency * * @param defaultCurrency CurrencyCode */ public void setDefaultCurrency(CurrencyCode defaultCurrency) { this.defaultCurrency = defaultCurrency; } /** * Store XeroNetworkKey for contacts. * * @param xeroNetworkKey String * @return Contact */ public Contact xeroNetworkKey(String xeroNetworkKey) { this.xeroNetworkKey = xeroNetworkKey; return this; } /** * Store XeroNetworkKey for contacts. * * @return xeroNetworkKey */ @ApiModelProperty(value = "Store XeroNetworkKey for contacts.") /** * Store XeroNetworkKey for contacts. * * @return xeroNetworkKey String */ public String getXeroNetworkKey() { return xeroNetworkKey; } /** * Store XeroNetworkKey for contacts. * * @param xeroNetworkKey String */ public void setXeroNetworkKey(String xeroNetworkKey) { this.xeroNetworkKey = xeroNetworkKey; } /** * The default sales account code for contacts * * @param salesDefaultAccountCode String * @return Contact */ public Contact salesDefaultAccountCode(String salesDefaultAccountCode) { this.salesDefaultAccountCode = salesDefaultAccountCode; return this; } /** * The default sales account code for contacts * * @return salesDefaultAccountCode */ @ApiModelProperty(value = "The default sales account code for contacts") /** * The default sales account code for contacts * * @return salesDefaultAccountCode String */ public String getSalesDefaultAccountCode() { return salesDefaultAccountCode; } /** * The default sales account code for contacts * * @param salesDefaultAccountCode String */ public void setSalesDefaultAccountCode(String salesDefaultAccountCode) { this.salesDefaultAccountCode = salesDefaultAccountCode; } /** * The default purchases account code for contacts * * @param purchasesDefaultAccountCode String * @return Contact */ public Contact purchasesDefaultAccountCode(String purchasesDefaultAccountCode) { this.purchasesDefaultAccountCode = purchasesDefaultAccountCode; return this; } /** * The default purchases account code for contacts * * @return purchasesDefaultAccountCode */ @ApiModelProperty(value = "The default purchases account code for contacts") /** * The default purchases account code for contacts * * @return purchasesDefaultAccountCode String */ public String getPurchasesDefaultAccountCode() { return purchasesDefaultAccountCode; } /** * The default purchases account code for contacts * * @param purchasesDefaultAccountCode String */ public void setPurchasesDefaultAccountCode(String purchasesDefaultAccountCode) { this.purchasesDefaultAccountCode = purchasesDefaultAccountCode; } /** * The default sales tracking categories for contacts * * @param salesTrackingCategories List<SalesTrackingCategory> * @return Contact */ public Contact salesTrackingCategories(List salesTrackingCategories) { this.salesTrackingCategories = salesTrackingCategories; return this; } /** * The default sales tracking categories for contacts * * @param salesTrackingCategoriesItem SalesTrackingCategory * @return Contact */ public Contact addSalesTrackingCategoriesItem(SalesTrackingCategory salesTrackingCategoriesItem) { if (this.salesTrackingCategories == null) { this.salesTrackingCategories = new ArrayList(); } this.salesTrackingCategories.add(salesTrackingCategoriesItem); return this; } /** * The default sales tracking categories for contacts * * @return salesTrackingCategories */ @ApiModelProperty(value = "The default sales tracking categories for contacts") /** * The default sales tracking categories for contacts * * @return salesTrackingCategories List */ public List getSalesTrackingCategories() { return salesTrackingCategories; } /** * The default sales tracking categories for contacts * * @param salesTrackingCategories List<SalesTrackingCategory> */ public void setSalesTrackingCategories(List salesTrackingCategories) { this.salesTrackingCategories = salesTrackingCategories; } /** * The default purchases tracking categories for contacts * * @param purchasesTrackingCategories List<SalesTrackingCategory> * @return Contact */ public Contact purchasesTrackingCategories( List purchasesTrackingCategories) { this.purchasesTrackingCategories = purchasesTrackingCategories; return this; } /** * The default purchases tracking categories for contacts * * @param purchasesTrackingCategoriesItem SalesTrackingCategory * @return Contact */ public Contact addPurchasesTrackingCategoriesItem( SalesTrackingCategory purchasesTrackingCategoriesItem) { if (this.purchasesTrackingCategories == null) { this.purchasesTrackingCategories = new ArrayList(); } this.purchasesTrackingCategories.add(purchasesTrackingCategoriesItem); return this; } /** * The default purchases tracking categories for contacts * * @return purchasesTrackingCategories */ @ApiModelProperty(value = "The default purchases tracking categories for contacts") /** * The default purchases tracking categories for contacts * * @return purchasesTrackingCategories List */ public List getPurchasesTrackingCategories() { return purchasesTrackingCategories; } /** * The default purchases tracking categories for contacts * * @param purchasesTrackingCategories List<SalesTrackingCategory> */ public void setPurchasesTrackingCategories( List purchasesTrackingCategories) { this.purchasesTrackingCategories = purchasesTrackingCategories; } /** * The name of the Tracking Category assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @param trackingCategoryName String * @return Contact */ public Contact trackingCategoryName(String trackingCategoryName) { this.trackingCategoryName = trackingCategoryName; return this; } /** * The name of the Tracking Category assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @return trackingCategoryName */ @ApiModelProperty( value = "The name of the Tracking Category assigned to the contact under SalesTrackingCategories" + " and PurchasesTrackingCategories") /** * The name of the Tracking Category assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @return trackingCategoryName String */ public String getTrackingCategoryName() { return trackingCategoryName; } /** * The name of the Tracking Category assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @param trackingCategoryName String */ public void setTrackingCategoryName(String trackingCategoryName) { this.trackingCategoryName = trackingCategoryName; } /** * The name of the Tracking Option assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @param trackingCategoryOption String * @return Contact */ public Contact trackingCategoryOption(String trackingCategoryOption) { this.trackingCategoryOption = trackingCategoryOption; return this; } /** * The name of the Tracking Option assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @return trackingCategoryOption */ @ApiModelProperty( value = "The name of the Tracking Option assigned to the contact under SalesTrackingCategories" + " and PurchasesTrackingCategories") /** * The name of the Tracking Option assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @return trackingCategoryOption String */ public String getTrackingCategoryOption() { return trackingCategoryOption; } /** * The name of the Tracking Option assigned to the contact under SalesTrackingCategories and * PurchasesTrackingCategories * * @param trackingCategoryOption String */ public void setTrackingCategoryOption(String trackingCategoryOption) { this.trackingCategoryOption = trackingCategoryOption; } /** * paymentTerms * * @param paymentTerms PaymentTerm * @return Contact */ public Contact paymentTerms(PaymentTerm paymentTerms) { this.paymentTerms = paymentTerms; return this; } /** * Get paymentTerms * * @return paymentTerms */ @ApiModelProperty(value = "") /** * paymentTerms * * @return paymentTerms PaymentTerm */ public PaymentTerm getPaymentTerms() { return paymentTerms; } /** * paymentTerms * * @param paymentTerms PaymentTerm */ public void setPaymentTerms(PaymentTerm paymentTerms) { this.paymentTerms = paymentTerms; } /** * UTC timestamp of last update to contact * * @return updatedDateUTC */ @ApiModelProperty( example = "/Date(1573755038314)/", value = "UTC timestamp of last update to contact") /** * UTC timestamp of last update to contact * * @return updatedDateUTC String */ public String getUpdatedDateUTC() { return updatedDateUTC; } /** * UTC timestamp of last update to contact * * @return OffsetDateTime */ public OffsetDateTime getUpdatedDateUTCAsDate() { if (this.updatedDateUTC != null) { try { return util.convertStringToOffsetDateTime(this.updatedDateUTC); } catch (IOException e) { e.printStackTrace(); } } return null; } /** * Displays which contact groups a contact is included in * * @param contactGroups List<ContactGroup> * @return Contact */ public Contact contactGroups(List contactGroups) { this.contactGroups = contactGroups; return this; } /** * Displays which contact groups a contact is included in * * @param contactGroupsItem ContactGroup * @return Contact */ public Contact addContactGroupsItem(ContactGroup contactGroupsItem) { if (this.contactGroups == null) { this.contactGroups = new ArrayList(); } this.contactGroups.add(contactGroupsItem); return this; } /** * Displays which contact groups a contact is included in * * @return contactGroups */ @ApiModelProperty(value = "Displays which contact groups a contact is included in") /** * Displays which contact groups a contact is included in * * @return contactGroups List */ public List getContactGroups() { return contactGroups; } /** * Displays which contact groups a contact is included in * * @param contactGroups List<ContactGroup> */ public void setContactGroups(List contactGroups) { this.contactGroups = contactGroups; } /** * Website address for contact (read only) * * @return website */ @ApiModelProperty(value = "Website address for contact (read only)") /** * Website address for contact (read only) * * @return website String */ public String getWebsite() { return website; } /** * brandingTheme * * @param brandingTheme BrandingTheme * @return Contact */ public Contact brandingTheme(BrandingTheme brandingTheme) { this.brandingTheme = brandingTheme; return this; } /** * Get brandingTheme * * @return brandingTheme */ @ApiModelProperty(value = "") /** * brandingTheme * * @return brandingTheme BrandingTheme */ public BrandingTheme getBrandingTheme() { return brandingTheme; } /** * brandingTheme * * @param brandingTheme BrandingTheme */ public void setBrandingTheme(BrandingTheme brandingTheme) { this.brandingTheme = brandingTheme; } /** * batchPayments * * @param batchPayments BatchPaymentDetails * @return Contact */ public Contact batchPayments(BatchPaymentDetails batchPayments) { this.batchPayments = batchPayments; return this; } /** * Get batchPayments * * @return batchPayments */ @ApiModelProperty(value = "") /** * batchPayments * * @return batchPayments BatchPaymentDetails */ public BatchPaymentDetails getBatchPayments() { return batchPayments; } /** * batchPayments * * @param batchPayments BatchPaymentDetails */ public void setBatchPayments(BatchPaymentDetails batchPayments) { this.batchPayments = batchPayments; } /** * The default discount rate for the contact (read only) * * @return discount */ @ApiModelProperty(value = "The default discount rate for the contact (read only)") /** * The default discount rate for the contact (read only) * * @return discount Double */ public Double getDiscount() { return discount; } /** * balances * * @param balances Balances * @return Contact */ public Contact balances(Balances balances) { this.balances = balances; return this; } /** * Get balances * * @return balances */ @ApiModelProperty(value = "") /** * balances * * @return balances Balances */ public Balances getBalances() { return balances; } /** * balances * * @param balances Balances */ public void setBalances(Balances balances) { this.balances = balances; } /** * Displays array of attachments from the API * * @param attachments List<Attachment> * @return Contact */ public Contact attachments(List attachments) { this.attachments = attachments; return this; } /** * Displays array of attachments from the API * * @param attachmentsItem Attachment * @return Contact */ public Contact addAttachmentsItem(Attachment attachmentsItem) { if (this.attachments == null) { this.attachments = new ArrayList(); } this.attachments.add(attachmentsItem); return this; } /** * Displays array of attachments from the API * * @return attachments */ @ApiModelProperty(value = "Displays array of attachments from the API") /** * Displays array of attachments from the API * * @return attachments List */ public List getAttachments() { return attachments; } /** * Displays array of attachments from the API * * @param attachments List<Attachment> */ public void setAttachments(List attachments) { this.attachments = attachments; } /** * A boolean to indicate if a contact has an attachment * * @param hasAttachments Boolean * @return Contact */ public Contact hasAttachments(Boolean hasAttachments) { this.hasAttachments = hasAttachments; return this; } /** * A boolean to indicate if a contact has an attachment * * @return hasAttachments */ @ApiModelProperty( example = "false", value = "A boolean to indicate if a contact has an attachment") /** * A boolean to indicate if a contact has an attachment * * @return hasAttachments Boolean */ public Boolean getHasAttachments() { return hasAttachments; } /** * A boolean to indicate if a contact has an attachment * * @param hasAttachments Boolean */ public void setHasAttachments(Boolean hasAttachments) { this.hasAttachments = hasAttachments; } /** * Displays validation errors returned from the API * * @param validationErrors List<ValidationError> * @return Contact */ public Contact validationErrors(List validationErrors) { this.validationErrors = validationErrors; return this; } /** * Displays validation errors returned from the API * * @param validationErrorsItem ValidationError * @return Contact */ public Contact addValidationErrorsItem(ValidationError validationErrorsItem) { if (this.validationErrors == null) { this.validationErrors = new ArrayList(); } this.validationErrors.add(validationErrorsItem); return this; } /** * Displays validation errors returned from the API * * @return validationErrors */ @ApiModelProperty(value = "Displays validation errors returned from the API") /** * Displays validation errors returned from the API * * @return validationErrors List */ public List getValidationErrors() { return validationErrors; } /** * Displays validation errors returned from the API * * @param validationErrors List<ValidationError> */ public void setValidationErrors(List validationErrors) { this.validationErrors = validationErrors; } /** * A boolean to indicate if a contact has an validation errors * * @param hasValidationErrors Boolean * @return Contact */ public Contact hasValidationErrors(Boolean hasValidationErrors) { this.hasValidationErrors = hasValidationErrors; return this; } /** * A boolean to indicate if a contact has an validation errors * * @return hasValidationErrors */ @ApiModelProperty( example = "false", value = "A boolean to indicate if a contact has an validation errors") /** * A boolean to indicate if a contact has an validation errors * * @return hasValidationErrors Boolean */ public Boolean getHasValidationErrors() { return hasValidationErrors; } /** * A boolean to indicate if a contact has an validation errors * * @param hasValidationErrors Boolean */ public void setHasValidationErrors(Boolean hasValidationErrors) { this.hasValidationErrors = hasValidationErrors; } /** * Status of object * * @param statusAttributeString String * @return Contact */ public Contact statusAttributeString(String statusAttributeString) { this.statusAttributeString = statusAttributeString; return this; } /** * Status of object * * @return statusAttributeString */ @ApiModelProperty(value = "Status of object") /** * Status of object * * @return statusAttributeString String */ public String getStatusAttributeString() { return statusAttributeString; } /** * Status of object * * @param statusAttributeString String */ public void setStatusAttributeString(String statusAttributeString) { this.statusAttributeString = statusAttributeString; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Contact contact = (Contact) o; return Objects.equals(this.contactID, contact.contactID) && Objects.equals(this.mergedToContactID, contact.mergedToContactID) && Objects.equals(this.contactNumber, contact.contactNumber) && Objects.equals(this.accountNumber, contact.accountNumber) && Objects.equals(this.contactStatus, contact.contactStatus) && Objects.equals(this.name, contact.name) && Objects.equals(this.firstName, contact.firstName) && Objects.equals(this.lastName, contact.lastName) && Objects.equals(this.companyNumber, contact.companyNumber) && Objects.equals(this.emailAddress, contact.emailAddress) && Objects.equals(this.contactPersons, contact.contactPersons) && Objects.equals(this.bankAccountDetails, contact.bankAccountDetails) && Objects.equals(this.taxNumber, contact.taxNumber) && Objects.equals(this.accountsReceivableTaxType, contact.accountsReceivableTaxType) && Objects.equals(this.accountsPayableTaxType, contact.accountsPayableTaxType) && Objects.equals(this.addresses, contact.addresses) && Objects.equals(this.phones, contact.phones) && Objects.equals(this.isSupplier, contact.isSupplier) && Objects.equals(this.isCustomer, contact.isCustomer) && Objects.equals(this.salesDefaultLineAmountType, contact.salesDefaultLineAmountType) && Objects.equals( this.purchasesDefaultLineAmountType, contact.purchasesDefaultLineAmountType) && Objects.equals(this.defaultCurrency, contact.defaultCurrency) && Objects.equals(this.xeroNetworkKey, contact.xeroNetworkKey) && Objects.equals(this.salesDefaultAccountCode, contact.salesDefaultAccountCode) && Objects.equals(this.purchasesDefaultAccountCode, contact.purchasesDefaultAccountCode) && Objects.equals(this.salesTrackingCategories, contact.salesTrackingCategories) && Objects.equals(this.purchasesTrackingCategories, contact.purchasesTrackingCategories) && Objects.equals(this.trackingCategoryName, contact.trackingCategoryName) && Objects.equals(this.trackingCategoryOption, contact.trackingCategoryOption) && Objects.equals(this.paymentTerms, contact.paymentTerms) && Objects.equals(this.updatedDateUTC, contact.updatedDateUTC) && Objects.equals(this.contactGroups, contact.contactGroups) && Objects.equals(this.website, contact.website) && Objects.equals(this.brandingTheme, contact.brandingTheme) && Objects.equals(this.batchPayments, contact.batchPayments) && Objects.equals(this.discount, contact.discount) && Objects.equals(this.balances, contact.balances) && Objects.equals(this.attachments, contact.attachments) && Objects.equals(this.hasAttachments, contact.hasAttachments) && Objects.equals(this.validationErrors, contact.validationErrors) && Objects.equals(this.hasValidationErrors, contact.hasValidationErrors) && Objects.equals(this.statusAttributeString, contact.statusAttributeString); } @Override public int hashCode() { return Objects.hash( contactID, mergedToContactID, contactNumber, accountNumber, contactStatus, name, firstName, lastName, companyNumber, emailAddress, contactPersons, bankAccountDetails, taxNumber, accountsReceivableTaxType, accountsPayableTaxType, addresses, phones, isSupplier, isCustomer, salesDefaultLineAmountType, purchasesDefaultLineAmountType, defaultCurrency, xeroNetworkKey, salesDefaultAccountCode, purchasesDefaultAccountCode, salesTrackingCategories, purchasesTrackingCategories, trackingCategoryName, trackingCategoryOption, paymentTerms, updatedDateUTC, contactGroups, website, brandingTheme, batchPayments, discount, balances, attachments, hasAttachments, validationErrors, hasValidationErrors, statusAttributeString); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Contact {\n"); sb.append(" contactID: ").append(toIndentedString(contactID)).append("\n"); sb.append(" mergedToContactID: ").append(toIndentedString(mergedToContactID)).append("\n"); sb.append(" contactNumber: ").append(toIndentedString(contactNumber)).append("\n"); sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); sb.append(" contactStatus: ").append(toIndentedString(contactStatus)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" companyNumber: ").append(toIndentedString(companyNumber)).append("\n"); sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n"); sb.append(" contactPersons: ").append(toIndentedString(contactPersons)).append("\n"); sb.append(" bankAccountDetails: ").append(toIndentedString(bankAccountDetails)).append("\n"); sb.append(" taxNumber: ").append(toIndentedString(taxNumber)).append("\n"); sb.append(" accountsReceivableTaxType: ") .append(toIndentedString(accountsReceivableTaxType)) .append("\n"); sb.append(" accountsPayableTaxType: ") .append(toIndentedString(accountsPayableTaxType)) .append("\n"); sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); sb.append(" phones: ").append(toIndentedString(phones)).append("\n"); sb.append(" isSupplier: ").append(toIndentedString(isSupplier)).append("\n"); sb.append(" isCustomer: ").append(toIndentedString(isCustomer)).append("\n"); sb.append(" salesDefaultLineAmountType: ") .append(toIndentedString(salesDefaultLineAmountType)) .append("\n"); sb.append(" purchasesDefaultLineAmountType: ") .append(toIndentedString(purchasesDefaultLineAmountType)) .append("\n"); sb.append(" defaultCurrency: ").append(toIndentedString(defaultCurrency)).append("\n"); sb.append(" xeroNetworkKey: ").append(toIndentedString(xeroNetworkKey)).append("\n"); sb.append(" salesDefaultAccountCode: ") .append(toIndentedString(salesDefaultAccountCode)) .append("\n"); sb.append(" purchasesDefaultAccountCode: ") .append(toIndentedString(purchasesDefaultAccountCode)) .append("\n"); sb.append(" salesTrackingCategories: ") .append(toIndentedString(salesTrackingCategories)) .append("\n"); sb.append(" purchasesTrackingCategories: ") .append(toIndentedString(purchasesTrackingCategories)) .append("\n"); sb.append(" trackingCategoryName: ") .append(toIndentedString(trackingCategoryName)) .append("\n"); sb.append(" trackingCategoryOption: ") .append(toIndentedString(trackingCategoryOption)) .append("\n"); sb.append(" paymentTerms: ").append(toIndentedString(paymentTerms)).append("\n"); sb.append(" updatedDateUTC: ").append(toIndentedString(updatedDateUTC)).append("\n"); sb.append(" contactGroups: ").append(toIndentedString(contactGroups)).append("\n"); sb.append(" website: ").append(toIndentedString(website)).append("\n"); sb.append(" brandingTheme: ").append(toIndentedString(brandingTheme)).append("\n"); sb.append(" batchPayments: ").append(toIndentedString(batchPayments)).append("\n"); sb.append(" discount: ").append(toIndentedString(discount)).append("\n"); sb.append(" balances: ").append(toIndentedString(balances)).append("\n"); sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n"); sb.append(" hasAttachments: ").append(toIndentedString(hasAttachments)).append("\n"); sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n"); sb.append(" hasValidationErrors: ") .append(toIndentedString(hasValidationErrors)) .append("\n"); sb.append(" statusAttributeString: ") .append(toIndentedString(statusAttributeString)) .append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy