Interface TaxCategory
- All Superinterfaces:
BaseResource,DomainResource<TaxCategory>,Identifiable<TaxCategory>,Referencable<TaxCategory>,ResourceIdentifiable<TaxCategory>,TaxCategoryMixin,Versioned<TaxCategory>,WithKey
Example to create an instance using the builder pattern
TaxCategory taxCategory = TaxCategory.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.name("{name}")
.plusRates(ratesBuilder -> ratesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaxCategoryBuilderbuilder()builder factory method for TaxCategorystatic TaxCategoryBuilderbuilder(TaxCategory template) create builder for TaxCategory instancecopyDeep()static TaxCategorydeepCopy(TaxCategory template) factory method to create a deep copy of TaxCategory@NotNull ZonedDateTimeDate and time (UTC) the TaxCategory was initially created.@Valid CreatedByIDs and references that created the TaxCategory.Description of the TaxCategory.@NotNull StringgetId()Unique identifier of the TaxCategory.getKey()User-defined unique identifier of the TaxCategory.@NotNull ZonedDateTimeDate and time (UTC) the TaxCategory was last updated.@Valid LastModifiedByIDs and references that last modified the TaxCategory.@NotNull StringgetName()Name of the TaxCategory.getRates()Tax rates and subrates of states and countries.@NotNull LongCurrent version of the TaxCategory.static TaxCategoryof()factory methodstatic TaxCategoryof(TaxCategory template) factory method to create a shallow copy TaxCategorystatic ReferenceTypeIdvoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the TaxCategory was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the TaxCategory.voidsetDescription(String description) Description of the TaxCategory.voidUnique identifier of the TaxCategory.voidUser-defined unique identifier of the TaxCategory.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the TaxCategory was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the TaxCategory.voidName of the TaxCategory.voidTax rates and subrates of states and countries.voidTax rates and subrates of states and countries.voidsetVersion(Long version) Current version of the TaxCategory.static com.fasterxml.jackson.core.type.TypeReference<TaxCategory>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithTaxCategory(Function<TaxCategory, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.tax_category.TaxCategoryMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the TaxCategory.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<TaxCategory>- Specified by:
getIdin interfaceIdentifiable<TaxCategory>- Specified by:
getIdin interfaceVersioned<TaxCategory>- Returns:
- id
-
getVersion
Current version of the TaxCategory.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<TaxCategory>- Specified by:
getVersionin interfaceVersioned<TaxCategory>- Returns:
- version
-
getCreatedAt
Date and time (UTC) the TaxCategory was initially created.
- Specified by:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the TaxCategory was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the TaxCategory.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the TaxCategory.
- Returns:
- createdBy
-
getName
Name of the TaxCategory.
- Returns:
- name
-
getDescription
String getDescription()Description of the TaxCategory.
- Returns:
- description
-
getRates
Tax rates and subrates of states and countries. Each TaxRate in the array has a unique ID.
- Returns:
- rates
-
getKey
String getKey()User-defined unique identifier of the TaxCategory.
-
setId
Unique identifier of the TaxCategory.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the TaxCategory.
- Specified by:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCreatedAt
Date and time (UTC) the TaxCategory was initially created.
- Specified by:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the TaxCategory was last updated.
- Specified by:
setLastModifiedAtin interfaceBaseResource- Parameters:
lastModifiedAt- value to be set
-
setLastModifiedBy
IDs and references that last modified the TaxCategory.
- Parameters:
lastModifiedBy- value to be set
-
setCreatedBy
IDs and references that created the TaxCategory.
- Parameters:
createdBy- value to be set
-
setName
Name of the TaxCategory.
- Parameters:
name- value to be set
-
setDescription
Description of the TaxCategory.
- Parameters:
description- value to be set
-
setRates
Tax rates and subrates of states and countries. Each TaxRate in the array has a unique ID.
- Parameters:
rates- values to be set
-
setRates
Tax rates and subrates of states and countries. Each TaxRate in the array has a unique ID.
- Parameters:
rates- values to be set
-
setKey
User-defined unique identifier of the TaxCategory.
- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of TaxCategory
-
of
factory method to create a shallow copy TaxCategory- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
TaxCategory copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
deepCopy
factory method to create a deep copy of TaxCategory- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TaxCategory- Returns:
- builder
-
builder
create builder for TaxCategory instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withTaxCategory
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-