Class MetadataSchemaDeprecated

java.lang.Object
io.voucherify.client.model.MetadataSchemaDeprecated

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class MetadataSchemaDeprecated extends Object
Object representing a metadata schema.
  • Field Details

  • Constructor Details

    • MetadataSchemaDeprecated

      public MetadataSchemaDeprecated()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique identifier of the metadata schema.
      Returns:
      id
    • setId

      public void setId(String id)
    • relatedObject

      public MetadataSchemaDeprecated relatedObject(String relatedObject)
    • getRelatedObject

      @Nullable public String getRelatedObject()
      The resource type. You can define custom metadata schemas, which have a custom `\"related_object\"` resource type. The standard metadata schemas are: `\"campaign\"`, `\"customer\"`, `\"earning_rule\"`, `\"loyalty_tier\"`, `\"order\"`, `\"order_item\"`, `\"product\"`, `\"promotion_tier\"`, `\"publication\"`, `\"redemption\"`, `\"reward\"`, `\"voucher\"`.
      Returns:
      relatedObject
    • setRelatedObject

      public void setRelatedObject(String relatedObject)
    • properties

    • putPropertiesItem

      public MetadataSchemaDeprecated putPropertiesItem(String key, MetadataSchemaDefinitionDeprecated propertiesItem)
    • getProperties

      @Nullable public Map<String,MetadataSchemaDefinitionDeprecated> getProperties()
      Contains metadata definitions.
      Returns:
      properties
    • setProperties

      public void setProperties(Map<String,MetadataSchemaDefinitionDeprecated> properties)
    • allowDefinedOnly

      public MetadataSchemaDeprecated allowDefinedOnly(Boolean allowDefinedOnly)
    • getAllowDefinedOnly

      @Nullable public Boolean getAllowDefinedOnly()
      Restricts the creation of metadata fields when set to `true`. It indicates whether or not you can create new metadata definitions, e.g. in the campaign or publication manager. If set to `true`, then only the defined fields are available for assigning values.
      Returns:
      allowDefinedOnly
    • setAllowDefinedOnly

      public void setAllowDefinedOnly(Boolean allowDefinedOnly)
    • createdAt

      public MetadataSchemaDeprecated createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Timestamp representing the date and time when the metadata schema was created. The value for this parameter is shown in the ISO 8601 format.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • updatedAt

      public MetadataSchemaDeprecated updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      Timestamp representing the date and time when the metadata schema was updated. The value for this parameter is shown in the ISO 8601 format.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • _object

      public MetadataSchemaDeprecated _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented by the JSON. This object stores information about the metadata schema.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • 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
    • fromJson

      public static MetadataSchemaDeprecated fromJson(String jsonString) throws IOException
      Create an instance of MetadataSchemaDeprecated given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of MetadataSchemaDeprecated
      Throws:
      IOException - if the JSON string is invalid with respect to MetadataSchemaDeprecated
    • toJson

      public String toJson()
      Convert an instance of MetadataSchemaDeprecated to an JSON string
      Returns:
      JSON string