All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.client.shop.model.ProductDiscountValue Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.shop.model;

import org.codehaus.jackson.annotate.JsonSubTypes;
import org.codehaus.jackson.annotate.JsonTypeInfo;

/**
 * Defines discount type with the corresponding value. The type can be relative or absolute.
 *
 * @see RelativeProductDiscount
 * @see AbsoluteProductDiscount
 */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "type")
@JsonSubTypes({
        @JsonSubTypes.Type(value = RelativeProductDiscount.class, name = "relative"),
        @JsonSubTypes.Type(value = AbsoluteProductDiscount.class, name = "absolute") })
public interface ProductDiscountValue extends DiscountValue {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy