Class CustomerModel
java.lang.Object
net.avalara.avatax.rest.client.models.CustomerModel
Represents a customer to whom you sell products and/or services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for alternateId A customer-configurable alternate ID number for this customer.Getter for attnName Indicates the "Attn:" component of the address for this customer, if this customer requires mailings to be shipped to the attention of a specific person or department name.Getter for attributes A list of attributes that apply to this customer.Getter for certificates A list of exemption certficates that apply to this customer.getCity()
Getter for city City component of the street address of this customer.Getter for companyId The unique ID number of the AvaTax company that recorded this customer.Getter for contactName The name of the main contact person for this customer.Getter for country Name or ISO 3166 code identifying the country.Getter for createdDate The date when this record was created.Getter for customerCode The unique code identifying this customer.Getter for customFields A list of custom fields defined on this customer.Getter for emailAddress The main email address for this customer.Getter for exposureZones A list of exposure zones where you do business with this customer.Getter for faxNumber The fax phone number for this customer, if any.getId()
Getter for id Unique ID number of this customer.Getter for isBill True if this customer record is specifically used for bill-to purposes.Getter for isShip True if this customer record is specifically used for ship-to purposes.Getter for lastTransaction Date when this customer last executed a transaction.getLine1()
Getter for line1 First line of the street address of this customer.getLine2()
Getter for line2 Second line of the street address of this customer.Getter for modifiedDate The date/time when this record was last modified.getName()
Getter for name A friendly name identifying this customer.Getter for phoneNumber The main phone number for this customer.Getter for postalCode Postal Code / Zip Code component of the address of this customer.Getter for region ISO 3166 code identifying the region within the country.Getter for shipTos A list of ship-to customer records that are connected to this bill-to customer.Getter for taxpayerIdNumber For customers in the United States, this field is the federal taxpayer ID number.void
setAlternateId
(String value) Setter for alternateId A customer-configurable alternate ID number for this customer.void
setAttnName
(String value) Setter for attnName Indicates the "Attn:" component of the address for this customer, if this customer requires mailings to be shipped to the attention of a specific person or department name.void
Setter for attributes A list of attributes that apply to this customer.void
setCertificates
(ArrayList<CertificateModel> value) Setter for certificates A list of exemption certficates that apply to this customer.void
Setter for city City component of the street address of this customer.void
setCompanyId
(Integer value) Setter for companyId The unique ID number of the AvaTax company that recorded this customer.void
setContactName
(String value) Setter for contactName The name of the main contact person for this customer.void
setCountry
(String value) Setter for country Name or ISO 3166 code identifying the country.void
setCreatedDate
(Date value) Setter for createdDate The date when this record was created.void
setCustomerCode
(String value) Setter for customerCode The unique code identifying this customer.void
setCustomFields
(ArrayList<CustomFieldModel> value) Setter for customFields A list of custom fields defined on this customer.void
setEmailAddress
(String value) Setter for emailAddress The main email address for this customer.void
Setter for exposureZones A list of exposure zones where you do business with this customer.void
setFaxNumber
(String value) Setter for faxNumber The fax phone number for this customer, if any.void
Setter for id Unique ID number of this customer.void
Setter for isBill True if this customer record is specifically used for bill-to purposes.void
Setter for isShip True if this customer record is specifically used for ship-to purposes.void
setLastTransaction
(Date value) Setter for lastTransaction Date when this customer last executed a transaction.void
Setter for line1 First line of the street address of this customer.void
Setter for line2 Second line of the street address of this customer.void
setModifiedDate
(Date value) Setter for modifiedDate The date/time when this record was last modified.void
Setter for name A friendly name identifying this customer.void
setPhoneNumber
(String value) Setter for phoneNumber The main phone number for this customer.void
setPostalCode
(String value) Setter for postalCode Postal Code / Zip Code component of the address of this customer.void
Setter for region ISO 3166 code identifying the region within the country.void
setShipTos
(ArrayList<CustomerModel> value) Setter for shipTos A list of ship-to customer records that are connected to this bill-to customer.void
setTaxpayerIdNumber
(String value) Setter for taxpayerIdNumber For customers in the United States, this field is the federal taxpayer ID number.toString()
Returns a JSON string representation of CustomerModel
-
Constructor Details
-
CustomerModel
public CustomerModel()
-
-
Method Details
-
getId
Getter for id Unique ID number of this customer. -
setId
Setter for id Unique ID number of this customer. -
getCompanyId
Getter for companyId The unique ID number of the AvaTax company that recorded this customer. -
setCompanyId
Setter for companyId The unique ID number of the AvaTax company that recorded this customer. -
getCustomerCode
Getter for customerCode The unique code identifying this customer. Must be unique within your company. This code should be used in the `customerCode` field of any call that creates or adjusts a transaction in order to ensure that all exemptions that apply to this customer are correctly considered. Note: This field is case sensitive. -
setCustomerCode
Setter for customerCode The unique code identifying this customer. Must be unique within your company. This code should be used in the `customerCode` field of any call that creates or adjusts a transaction in order to ensure that all exemptions that apply to this customer are correctly considered. Note: This field is case sensitive. -
getAlternateId
Getter for alternateId A customer-configurable alternate ID number for this customer. You may set this value to match any other system that would like to reference this customer record. -
setAlternateId
Setter for alternateId A customer-configurable alternate ID number for this customer. You may set this value to match any other system that would like to reference this customer record. -
getName
Getter for name A friendly name identifying this customer. -
setName
Setter for name A friendly name identifying this customer. -
getAttnName
Getter for attnName Indicates the "Attn:" component of the address for this customer, if this customer requires mailings to be shipped to the attention of a specific person or department name. -
setAttnName
Setter for attnName Indicates the "Attn:" component of the address for this customer, if this customer requires mailings to be shipped to the attention of a specific person or department name. -
getLine1
Getter for line1 First line of the street address of this customer. -
setLine1
Setter for line1 First line of the street address of this customer. -
getLine2
Getter for line2 Second line of the street address of this customer. -
setLine2
Setter for line2 Second line of the street address of this customer. -
getCity
Getter for city City component of the street address of this customer. -
setCity
Setter for city City component of the street address of this customer. -
getPostalCode
Getter for postalCode Postal Code / Zip Code component of the address of this customer. -
setPostalCode
Setter for postalCode Postal Code / Zip Code component of the address of this customer. -
getPhoneNumber
Getter for phoneNumber The main phone number for this customer. -
setPhoneNumber
Setter for phoneNumber The main phone number for this customer. -
getFaxNumber
Getter for faxNumber The fax phone number for this customer, if any. -
setFaxNumber
Setter for faxNumber The fax phone number for this customer, if any. -
getEmailAddress
Getter for emailAddress The main email address for this customer. -
setEmailAddress
Setter for emailAddress The main email address for this customer. -
getContactName
Getter for contactName The name of the main contact person for this customer. -
setContactName
Setter for contactName The name of the main contact person for this customer. -
getLastTransaction
Getter for lastTransaction Date when this customer last executed a transaction. -
setLastTransaction
Setter for lastTransaction Date when this customer last executed a transaction. -
getCreatedDate
Getter for createdDate The date when this record was created. -
setCreatedDate
Setter for createdDate The date when this record was created. -
getModifiedDate
Getter for modifiedDate The date/time when this record was last modified. -
setModifiedDate
Setter for modifiedDate The date/time when this record was last modified. -
getCountry
Getter for country Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`. -
setCountry
Setter for country Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`. -
getRegion
Getter for region ISO 3166 code identifying the region within the country. Two and three character ISO 3166 region codes. This is a required field if the country is US or CA. For other countries, this is an optional field. For a full list of all supported codes, please see the Definitions API `ListRegions`. -
setRegion
Setter for region ISO 3166 code identifying the region within the country. Two and three character ISO 3166 region codes. This is a required field if the country is US or CA. For other countries, this is an optional field. For a full list of all supported codes, please see the Definitions API `ListRegions`. -
getIsBill
Getter for isBill True if this customer record is specifically used for bill-to purposes. -
setIsBill
Setter for isBill True if this customer record is specifically used for bill-to purposes. -
getIsShip
Getter for isShip True if this customer record is specifically used for ship-to purposes. -
setIsShip
Setter for isShip True if this customer record is specifically used for ship-to purposes. -
getTaxpayerIdNumber
Getter for taxpayerIdNumber For customers in the United States, this field is the federal taxpayer ID number. For businesses, this is a Federal Employer Identification Number. For individuals, this will be a Social Security Number. -
setTaxpayerIdNumber
Setter for taxpayerIdNumber For customers in the United States, this field is the federal taxpayer ID number. For businesses, this is a Federal Employer Identification Number. For individuals, this will be a Social Security Number. -
getCertificates
Getter for certificates A list of exemption certficates that apply to this customer. You can fetch this data by specifying `$include=certificates` when calling a customer fetch API. -
setCertificates
Setter for certificates A list of exemption certficates that apply to this customer. You can fetch this data by specifying `$include=certificates` when calling a customer fetch API. -
getCustomFields
Getter for customFields A list of custom fields defined on this customer. For more information about custom fields, see the [Avalara Help Center article about custom fields](https://help.avalara.com/0021_Avalara_CertCapture/All_About_CertCapture/Edit_or_Remove_Details_about_Customers). -
setCustomFields
Setter for customFields A list of custom fields defined on this customer. For more information about custom fields, see the [Avalara Help Center article about custom fields](https://help.avalara.com/0021_Avalara_CertCapture/All_About_CertCapture/Edit_or_Remove_Details_about_Customers). -
getExposureZones
Getter for exposureZones A list of exposure zones where you do business with this customer. To keep track of certificates that are needed for each customer, set this value to a list of all exposure zones where you sell products to this customer. You can find a list of exposure zones by calling `ListExposureZones`. This field is often called "Ship-To States" or "Ship-To Zones", since it generally refers to locations where you ship products when this customer makes a purchase. This field is useful for audit purposes since it helps you ensure you have the necessary certificates for each customer. -
setExposureZones
Setter for exposureZones A list of exposure zones where you do business with this customer. To keep track of certificates that are needed for each customer, set this value to a list of all exposure zones where you sell products to this customer. You can find a list of exposure zones by calling `ListExposureZones`. This field is often called "Ship-To States" or "Ship-To Zones", since it generally refers to locations where you ship products when this customer makes a purchase. This field is useful for audit purposes since it helps you ensure you have the necessary certificates for each customer. -
getShipTos
Getter for shipTos A list of ship-to customer records that are connected to this bill-to customer. Customer records represent businesses or individuals who can provide exemption certificates. Some customers may have certificates that are linked to their shipping address or their billing address. To group these customer records together, you may link multiple bill-to and ship-to addresses together to represent a single entity that has multiple different addresses of different kinds. -
setShipTos
Setter for shipTos A list of ship-to customer records that are connected to this bill-to customer. Customer records represent businesses or individuals who can provide exemption certificates. Some customers may have certificates that are linked to their shipping address or their billing address. To group these customer records together, you may link multiple bill-to and ship-to addresses together to represent a single entity that has multiple different addresses of different kinds. -
getAttributes
Getter for attributes A list of attributes that apply to this customer. You can fetch this data by specifying `$include=attributes` when calling a customer fetch API. -
setAttributes
Setter for attributes A list of attributes that apply to this customer. You can fetch this data by specifying `$include=attributes` when calling a customer fetch API. -
toString
Returns a JSON string representation of CustomerModel
-