Class VoucherifyManagementService
java.lang.Object
org.bhn.promotion.voucherify.service.VoucherifyManagementService
Service class for managing metadata schemas in a Voucherify project.
This class uses the VoucherifyClient to interact with Voucherify APIs, providing functionalities to retrieve and update metadata schemas for a specific project.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.voucherify.client.model.ManagementProjectsMetadataSchemasListResponseBodyGet metadata schema for a specific project.io.voucherify.client.model.ManagementProjectsMetadataSchemasUpdateResponseBodyupdateTenantNameInMetadataSchema(String metadataSchemaId, List<Object> tenantNames, boolean isOptional) Update tenant names in metadata schema for a specific project.
-
Field Details
-
METADATA_KEY_TENANT_NAME
- See Also:
-
-
Constructor Details
-
VoucherifyManagementService
public VoucherifyManagementService()
-
-
Method Details
-
getMetadataSchema
public io.voucherify.client.model.ManagementProjectsMetadataSchemasListResponseBody getMetadataSchema() throws VoucherifyApiExceptionGet metadata schema for a specific project.- Returns:
- the metadata schema
- Throws:
VoucherifyApiException- if an error occurs while fetching the metadata schema
-
updateTenantNameInMetadataSchema
public io.voucherify.client.model.ManagementProjectsMetadataSchemasUpdateResponseBody updateTenantNameInMetadataSchema(String metadataSchemaId, List<Object> tenantNames, boolean isOptional) throws VoucherifyApiException Update tenant names in metadata schema for a specific project.- Parameters:
metadataSchemaId- the ID of the metadata schematenantNames- the list of tenant names to update- Returns:
- the updated metadata schema
- Throws:
VoucherifyApiException- if an error occurs while updating the metadata schema
-