Package io.voucherify.client.model
Class MetadataSchemasGetResponseBody
java.lang.Object
io.voucherify.client.model.MetadataSchemasGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class MetadataSchemasGetResponseBody
extends Object
Response body schema for **GET** `/v1/metadata-schemas/{resource}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowDefinedOnly(Boolean allowDefinedOnly) createdAt(OffsetDateTime createdAt) booleanCreate an instance of MetadataSchemasGetResponseBody 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 MetadataSchemasGetResponseBody 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
-
MetadataSchemasGetResponseBody
public MetadataSchemasGetResponseBody()
-
-
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 MetadataSchemasGetResponseBody properties(Map<String, MetadataSchemaDefinitionDeprecated> properties) -
putPropertiesItem
public MetadataSchemasGetResponseBody 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 MetadataSchemasGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MetadataSchemasGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to MetadataSchemasGetResponseBody
-
toJson
Convert an instance of MetadataSchemasGetResponseBody to an JSON string- Returns:
- JSON string
-