io.sphere.sdk.shippingmethods.ShippingRateImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.shippingmethods;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.sphere.sdk.models.Base;
import java.lang.Boolean;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
import javax.money.MonetaryAmount;
@Generated(
value = "io.sphere.sdk.annotations.processors.generators.ResourceValueImplGenerator",
comments = "Generated from: io.sphere.sdk.shippingmethods.ShippingRate"
)
final class ShippingRateImpl extends Base implements ShippingRate {
@Nullable
private MonetaryAmount freeAbove;
@Nullable
@JsonProperty("isMatching")
private Boolean matching;
private MonetaryAmount price;
@Nullable
private List tiers;
@JsonCreator
ShippingRateImpl(@Nullable final MonetaryAmount freeAbove,
@Nullable @JsonProperty("isMatching") final Boolean matching, final MonetaryAmount price,
@Nullable final List tiers) {
this.freeAbove = freeAbove;
this.matching = matching;
this.price = price;
this.tiers = tiers;
}
@Nullable
public MonetaryAmount getFreeAbove() {
return freeAbove;
}
@Nullable
@JsonProperty("isMatching")
public Boolean isMatching() {
return matching;
}
public MonetaryAmount getPrice() {
return price;
}
@Nullable
public List getTiers() {
return tiers;
}
}