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 TaxCategoryBuilder
builder()
builder factory method for TaxCategorystatic TaxCategoryBuilder
builder
(TaxCategory template) create builder for TaxCategory instancestatic TaxCategory
deepCopy
(TaxCategory template) factory method to create a deep copy of TaxCategory@NotNull ZonedDateTime
Date and time (UTC) the TaxCategory was initially created.@Valid CreatedBy
IDs and references that created the TaxCategory.Description of the TaxCategory.@NotNull String
getId()
Unique identifier of the TaxCategory.getKey()
User-defined unique identifier of the TaxCategory.@NotNull ZonedDateTime
Date and time (UTC) the TaxCategory was last updated.@Valid LastModifiedBy
IDs and references that last modified the TaxCategory.@NotNull String
getName()
Name of the TaxCategory.getRates()
Tax rates and subrates of states and countries.@NotNull Long
Current version of the TaxCategory.static TaxCategory
of()
factory methodstatic TaxCategory
of
(TaxCategory template) factory method to create a shallow copy TaxCategorystatic ReferenceTypeId
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the TaxCategory was initially created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the TaxCategory.void
setDescription
(String description) Description of the TaxCategory.void
Unique identifier of the TaxCategory.void
User-defined unique identifier of the TaxCategory.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the TaxCategory was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the TaxCategory.void
Name of the TaxCategory.void
Tax rates and subrates of states and countries.void
Tax rates and subrates of states and countries.void
setVersion
(Long version) Current version of the TaxCategory.static com.fasterxml.jackson.core.type.TypeReference<TaxCategory>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTaxCategory
(Function<TaxCategory, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.tax_category.TaxCategoryMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the TaxCategory.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<TaxCategory>
- Specified by:
getId
in interfaceIdentifiable<TaxCategory>
- Specified by:
getId
in interfaceVersioned<TaxCategory>
- Returns:
- id
-
getVersion
Current version of the TaxCategory.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<TaxCategory>
- Specified by:
getVersion
in interfaceVersioned<TaxCategory>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the TaxCategory was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the TaxCategory was last updated.
- Specified by:
getLastModifiedAt
in 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:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the TaxCategory.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCreatedAt
Date and time (UTC) the TaxCategory was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the TaxCategory was last updated.
- Specified by:
setLastModifiedAt
in 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
-
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
-