Class SetPricesChangeImpl

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

public class SetPricesChangeImpl extends Object implements SetPricesChange, io.vrap.rmf.base.client.ModelBase

Change triggered by the Set Prices update action.

  • Constructor Details

    • SetPricesChangeImpl

      public SetPricesChangeImpl()
      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 Change
      Specified by:
      getType in interface SetPricesChange
      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 Change
      Specified by:
      getChange in interface SetPricesChange
      Returns:
      change
    • getPreviousValue

      public List<Price> getPreviousValue()

      Value before the change.

      Specified by:
      getPreviousValue in interface SetPricesChange
      Returns:
      previousValue
    • getNextValue

      public List<Price> getNextValue()

      Value after the change.

      Specified by:
      getNextValue in interface SetPricesChange
      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 SetPricesChange
      Returns:
      catalogData
    • getVariant

      public String getVariant()

      sku or key of the ProductVariant.

      Specified by:
      getVariant in interface SetPricesChange
      Returns:
      variant
    • setChange

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

      public void setPreviousValue(Price... previousValue)
      Description copied from interface: SetPricesChange

      Value before the change.

      Specified by:
      setPreviousValue in interface SetPricesChange
      Parameters:
      previousValue - values to be set
    • setPreviousValue

      public void setPreviousValue(List<Price> previousValue)
      Description copied from interface: SetPricesChange

      Value before the change.

      Specified by:
      setPreviousValue in interface SetPricesChange
      Parameters:
      previousValue - values to be set
    • setNextValue

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

      Value after the change.

      Specified by:
      setNextValue in interface SetPricesChange
      Parameters:
      nextValue - values to be set
    • setNextValue

      public void setNextValue(List<Price> nextValue)
      Description copied from interface: SetPricesChange

      Value after the change.

      Specified by:
      setNextValue in interface SetPricesChange
      Parameters:
      nextValue - values to be set
    • setCatalogData

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

      public void setVariant(String variant)
      Description copied from interface: SetPricesChange

      sku or key of the ProductVariant.

      Specified by:
      setVariant in interface SetPricesChange
      Parameters:
      variant - 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