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

io.sphere.sdk.productdiscounts.ProductDiscountValue Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.productdiscounts;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.sphere.sdk.models.Base;

/**
 * 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 abstract class ProductDiscountValue extends Base {
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy