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

io.sphere.sdk.shippingmethods.ShippingRatePriceTier Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import javax.annotation.Nullable;
import javax.money.MonetaryAmount;


@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "type",
        visible = true
)
@JsonSubTypes({
        @JsonSubTypes.Type(value = CartValueImpl.class, name = "CartValue"),
        @JsonSubTypes.Type(value = CartClassificationImpl.class, name = "CartClassification"),
        @JsonSubTypes.Type(value = CartScoreImpl.class, name = "CartScore")
})
@JsonIgnoreProperties(value = {"type"})
public interface ShippingRatePriceTier{

    String getType();

    MonetaryAmount getPrice();

    @Nullable
    @JsonProperty("isMatching")
    Boolean isMatching();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy