Package io.voucherify.client.model
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowDefinedOnly(Boolean allowDefinedOnly) createdAt(OffsetDateTime createdAt) booleanstatic MetadataSchemaDeprecatedCreate an instance of MetadataSchemaDeprecated given an JSON stringRestricts the creation of metadata fields when set to `true`.Timestamp representing the date and time when the metadata schema was created.getId()Unique identifier of the metadata schema.The type of the object represented by the JSON.Contains metadata definitions.The resource type.Timestamp representing the date and time when the metadata schema was updated.inthashCode()properties(Map<String, MetadataSchemaDefinitionDeprecated> properties) putPropertiesItem(String key, MetadataSchemaDefinitionDeprecated propertiesItem) relatedObject(String relatedObject) voidsetAllowDefinedOnly(Boolean allowDefinedOnly) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetProperties(Map<String, MetadataSchemaDefinitionDeprecated> properties) voidsetRelatedObject(String relatedObject) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of MetadataSchemaDeprecated to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
SERIALIZED_NAME_ALLOW_DEFINED_ONLY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
MetadataSchemaDeprecated
public MetadataSchemaDeprecated()
-
-
Method Details
-
id
-
getId
Unique identifier of the metadata schema.- Returns:
- id
-
setId
-
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
-
properties
public MetadataSchemaDeprecated properties(Map<String, MetadataSchemaDefinitionDeprecated> properties) -
putPropertiesItem
public MetadataSchemaDeprecated putPropertiesItem(String key, MetadataSchemaDefinitionDeprecated propertiesItem) -
getProperties
Contains metadata definitions.- Returns:
- properties
-
setProperties
-
allowDefinedOnly
-
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
-
createdAt
-
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
-
updatedAt
-
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
-
_object
-
getObject
The type of the object represented by the JSON. This object stores information about the metadata schema.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of MetadataSchemaDeprecated to an JSON string- Returns:
- JSON string
-