Package io.voucherify.client.model
Class ManagementProjectsMetadataSchemasCreateResponseBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsMetadataSchemasCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsMetadataSchemasCreateResponseBody
extends Object
Response body schema for **POST** `management/v1/projects/{projectId}/metadata-schemas`.
-
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 ManagementProjectsMetadataSchemasCreateResponseBody 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, ManagementProjectsMetadataSchemaDefinition> properties) putPropertiesItem(String key, ManagementProjectsMetadataSchemaDefinition propertiesItem) relatedObject(String relatedObject) voidsetAllowDefinedOnly(Boolean allowDefinedOnly) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetProperties(Map<String, ManagementProjectsMetadataSchemaDefinition> properties) voidsetRelatedObject(String relatedObject) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ManagementProjectsMetadataSchemasCreateResponseBody 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
-
ManagementProjectsMetadataSchemasCreateResponseBody
public ManagementProjectsMetadataSchemasCreateResponseBody()
-
-
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 ManagementProjectsMetadataSchemasCreateResponseBody properties(Map<String, ManagementProjectsMetadataSchemaDefinition> properties) -
putPropertiesItem
public ManagementProjectsMetadataSchemasCreateResponseBody putPropertiesItem(String key, ManagementProjectsMetadataSchemaDefinition propertiesItem) -
getProperties
Contains metadata definitions.- Returns:
- properties
-
setProperties
-
allowDefinedOnly
public ManagementProjectsMetadataSchemasCreateResponseBody allowDefinedOnly(Boolean 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
public static ManagementProjectsMetadataSchemasCreateResponseBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsMetadataSchemasCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsMetadataSchemasCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsMetadataSchemasCreateResponseBody
-
toJson
Convert an instance of ManagementProjectsMetadataSchemasCreateResponseBody to an JSON string- Returns:
- JSON string
-