Class AddPriceChangeImpl

java.lang.Object
com.commercetools.history.models.change.AddPriceChangeImpl
All Implemented Interfaces:
AddPriceChange, Change, io.vrap.rmf.base.client.ModelBase

public class AddPriceChangeImpl extends Object implements AddPriceChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the Add Price update action.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.history.models.change.AddPriceChange

    ADD_PRICE_CHANGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    staged, if the staged ProductCatalogData was updated. current, if the current ProductCatalogData was updated.
    Type of change on a resource that is similar to the update action it relates to, where possible.
    Value after the change.
    id of the Embedded Price.
    Unique discriminator value to reliably deserialize the data type.
    int
     
    void
    setCatalogData(String catalogData)
    staged, if the staged ProductCatalogData was updated. current, if the current ProductCatalogData was updated.
    void
    setChange(String change)
    set change
    void
    setNextValue(Price nextValue)
    Value after the change.
    void
    setPriceId(String priceId)
    id of the Embedded Price.
     

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.commercetools.history.models.change.AddPriceChange

    withAddPriceChange

    Methods inherited from interface com.commercetools.history.models.change.Change

    withChange

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • AddPriceChangeImpl

      public AddPriceChangeImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Change

      Unique discriminator value to reliably deserialize the data type.

      Specified by:
      getType in interface AddPriceChange
      Specified by:
      getType in interface Change
      Returns:
      type
    • getChange

      public String getChange()
      Description copied from interface: Change

      Type of change on a resource that is similar to the update action it relates to, where possible. It is not a unique identifier for the data structure, for example, the setDescription change can occur with a localized and non-localized representation.

      Records can be filtered by this value using the changes query parameter.

      Specified by:
      getChange in interface AddPriceChange
      Specified by:
      getChange in interface Change
      Returns:
      change
    • getNextValue

      public Price getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface AddPriceChange
      Returns:
      nextValue
    • getCatalogData

      public String getCatalogData()
      • staged, if the staged ProductCatalogData was updated.
      • current, if the current ProductCatalogData was updated.
      Specified by:
      getCatalogData in interface AddPriceChange
      Returns:
      catalogData
    • getPriceId

      public String getPriceId()

      id of the Embedded Price.

      Specified by:
      getPriceId in interface AddPriceChange
      Returns:
      priceId
    • setChange

      public void setChange(String change)
      Description copied from interface: AddPriceChange
      set change
      Specified by:
      setChange in interface AddPriceChange
      Specified by:
      setChange in interface Change
      Parameters:
      change - value to be set
    • setNextValue

      public void setNextValue(Price nextValue)
      Description copied from interface: AddPriceChange

      Value after the change.

      Specified by:
      setNextValue in interface AddPriceChange
      Parameters:
      nextValue - value to be set
    • setCatalogData

      public void setCatalogData(String catalogData)
      Description copied from interface: AddPriceChange
      • staged, if the staged ProductCatalogData was updated.
      • current, if the current ProductCatalogData was updated.
      Specified by:
      setCatalogData in interface AddPriceChange
      Parameters:
      catalogData - value to be set
    • setPriceId

      public void setPriceId(String priceId)
      Description copied from interface: AddPriceChange

      id of the Embedded Price.

      Specified by:
      setPriceId in interface AddPriceChange
      Parameters:
      priceId - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object