Class ShippingMethodImpl
- All Implemented Interfaces:
BaseResource
,Customizable<ShippingMethod>
,DomainResource<ShippingMethod>
,Identifiable<ShippingMethod>
,Referencable<ShippingMethod>
,ResourceIdentifiable<ShippingMethod>
,ShippingMethod
,ShippingMethodMixin
,Versioned<ShippingMethod>
,WithKey
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Date and time (UTC) the ShippingMethod was initially created.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields of the ShippingMethod.Deprecated.getId()
Unique identifier of the ShippingMethod.Iftrue
this ShippingMethod is the Project's default ShippingMethod.getKey()
User-defined unique identifier of the ShippingMethod.Date and time (UTC) the ShippingMethod was last updated.Present on resources created after 1 February 2019 except for events not tracked.Localized description of the ShippingMethod.Localized name of the ShippingMethod.getName()
Unique name of the ShippingMethod within a Project.Valid Cart predicate to select a ShippingMethod for a Cart.TaxCategory of all ZoneRates of the ShippingMethod.Current version of the ShippingMethod.Defines ShippingRates (prices) for specific Zones.int
hashCode()
void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ShippingMethod was initially created.void
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) Custom Fields of the ShippingMethod.void
setDescription
(String description) Deprecated.void
Unique identifier of the ShippingMethod.void
setIsDefault
(Boolean isDefault) Iftrue
this ShippingMethod is the Project's default ShippingMethod.void
User-defined unique identifier of the ShippingMethod.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ShippingMethod was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setLocalizedDescription
(LocalizedString localizedDescription) Localized description of the ShippingMethod.void
setLocalizedName
(LocalizedString localizedName) Localized name of the ShippingMethod.void
Unique name of the ShippingMethod within a Project.void
setPredicate
(String predicate) Valid Cart predicate to select a ShippingMethod for a Cart.void
setTaxCategory
(TaxCategoryReference taxCategory) TaxCategory of all ZoneRates of the ShippingMethod.void
setVersion
(Long version) Current version of the ShippingMethod.void
setZoneRates
(ZoneRate... zoneRates) Defines ShippingRates (prices) for specific Zones.void
setZoneRates
(List<ZoneRate> zoneRates) Defines ShippingRates (prices) for specific Zones.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethod
withShippingMethod
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingMethodMixin
toReference, toResourceIdentifier
-
Constructor Details
-
ShippingMethodImpl
public ShippingMethodImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the ShippingMethod.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<ShippingMethod>
- Specified by:
getId
in interfaceIdentifiable<ShippingMethod>
- Specified by:
getId
in interfaceShippingMethod
- Specified by:
getId
in interfaceVersioned<ShippingMethod>
- Returns:
- id
-
getVersion
Current version of the ShippingMethod.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<ShippingMethod>
- Specified by:
getVersion
in interfaceShippingMethod
- Specified by:
getVersion
in interfaceVersioned<ShippingMethod>
- Returns:
- version
-
getCreatedAt
Date and time (UTC) the ShippingMethod was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceShippingMethod
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ShippingMethod was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceShippingMethod
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceShippingMethod
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceShippingMethod
- Returns:
- createdBy
-
getKey
User-defined unique identifier of the ShippingMethod.
- Specified by:
getKey
in interfaceShippingMethod
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getName
Unique name of the ShippingMethod within a Project.
- Specified by:
getName
in interfaceShippingMethod
- Returns:
- name
-
getLocalizedName
Localized name of the ShippingMethod.
- Specified by:
getLocalizedName
in interfaceShippingMethod
- Returns:
- localizedName
-
getDescription
Deprecated.Description of the ShippingMethod.
- Specified by:
getDescription
in interfaceShippingMethod
- Returns:
- description
-
getLocalizedDescription
Localized description of the ShippingMethod.
- Specified by:
getLocalizedDescription
in interfaceShippingMethod
- Returns:
- localizedDescription
-
getTaxCategory
TaxCategory of all ZoneRates of the ShippingMethod.
- Specified by:
getTaxCategory
in interfaceShippingMethod
- Returns:
- taxCategory
-
getZoneRates
Defines ShippingRates (prices) for specific Zones.
- Specified by:
getZoneRates
in interfaceShippingMethod
- Returns:
- zoneRates
-
getIsDefault
If
true
this ShippingMethod is the Project's default ShippingMethod.- Specified by:
getIsDefault
in interfaceShippingMethod
- Returns:
- isDefault
-
getPredicate
Valid Cart predicate to select a ShippingMethod for a Cart.
- Specified by:
getPredicate
in interfaceShippingMethod
- Returns:
- predicate
-
getCustom
Custom Fields of the ShippingMethod.
- Specified by:
getCustom
in interfaceCustomizable<ShippingMethod>
- Specified by:
getCustom
in interfaceShippingMethod
- Returns:
- custom
-
setId
Description copied from interface:ShippingMethod
Unique identifier of the ShippingMethod.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceShippingMethod
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:ShippingMethod
Current version of the ShippingMethod.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceShippingMethod
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:ShippingMethod
Date and time (UTC) the ShippingMethod was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceShippingMethod
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:ShippingMethod
Date and time (UTC) the ShippingMethod was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceShippingMethod
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:ShippingMethod
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceShippingMethod
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:ShippingMethod
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceShippingMethod
- Parameters:
createdBy
- value to be set
-
setKey
Description copied from interface:ShippingMethod
User-defined unique identifier of the ShippingMethod.
- Specified by:
setKey
in interfaceShippingMethod
- Parameters:
key
- value to be set
-
setName
Description copied from interface:ShippingMethod
Unique name of the ShippingMethod within a Project.
- Specified by:
setName
in interfaceShippingMethod
- Parameters:
name
- value to be set
-
setLocalizedName
Description copied from interface:ShippingMethod
Localized name of the ShippingMethod.
- Specified by:
setLocalizedName
in interfaceShippingMethod
- Parameters:
localizedName
- value to be set
-
setDescription
Deprecated.Description copied from interface:ShippingMethod
Description of the ShippingMethod.
- Specified by:
setDescription
in interfaceShippingMethod
- Parameters:
description
- value to be set
-
setLocalizedDescription
Description copied from interface:ShippingMethod
Localized description of the ShippingMethod.
- Specified by:
setLocalizedDescription
in interfaceShippingMethod
- Parameters:
localizedDescription
- value to be set
-
setTaxCategory
Description copied from interface:ShippingMethod
TaxCategory of all ZoneRates of the ShippingMethod.
- Specified by:
setTaxCategory
in interfaceShippingMethod
- Parameters:
taxCategory
- value to be set
-
setZoneRates
Description copied from interface:ShippingMethod
Defines ShippingRates (prices) for specific Zones.
- Specified by:
setZoneRates
in interfaceShippingMethod
- Parameters:
zoneRates
- values to be set
-
setZoneRates
Description copied from interface:ShippingMethod
Defines ShippingRates (prices) for specific Zones.
- Specified by:
setZoneRates
in interfaceShippingMethod
- Parameters:
zoneRates
- values to be set
-
setIsDefault
Description copied from interface:ShippingMethod
If
true
this ShippingMethod is the Project's default ShippingMethod.- Specified by:
setIsDefault
in interfaceShippingMethod
- Parameters:
isDefault
- value to be set
-
setPredicate
Description copied from interface:ShippingMethod
Valid Cart predicate to select a ShippingMethod for a Cart.
- Specified by:
setPredicate
in interfaceShippingMethod
- Parameters:
predicate
- value to be set
-
setCustom
Description copied from interface:ShippingMethod
Custom Fields of the ShippingMethod.
- Specified by:
setCustom
in interfaceCustomizable<ShippingMethod>
- Specified by:
setCustom
in interfaceShippingMethod
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-