Interface MoneyField<F extends MoneyField<F>>

All Superinterfaces:
Comparable<F>, Component<F>, Copyable<F>, Field<F>, FormComponent<F>, Serializable
All Known Implementing Classes:
DefaultMoneyField

public interface MoneyField<F extends MoneyField<F>> extends Field<F>
Represents the metadata for a FieldTypes.MONEY field component. It is expected that this field targets a money object, and not a big decimal, for example: *
 {
     "defaultPrice": {
         "amount": 10,
         "currency": "USD"
     }
 }
 
Author:
Nick Crum (ncrum)
  • Method Details

    • currencyCodeField

      default F currencyCodeField(String currencyCodeField)
    • simpleValue

      default F simpleValue(boolean isSimpleValue)
      Parameters:
      isSimpleValue - The value to set
      Returns:
      this
      Since:
      Metadata 2.0.8, Release Train 2.1.6
    • simpleValue

      default F simpleValue()
      Sets the value of MoneyField.Attributes.SIMPLE_VALUE to true.
      Returns:
      this
      Since:
      Metadata 2.0.8, Release Train 2.1.6
    • complexValue

      default F complexValue()
      Sets the value of MoneyField.Attributes.SIMPLE_VALUE to false.
      Returns:
      this
      Since:
      Metadata 2.0.8, Release Train 2.1.6