io.sphere.sdk.shippingmethods.CartScoreImpl 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.lang.Long;
import java.lang.String;
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.CartScore"
)
final class CartScoreImpl extends Base implements CartScore {
@Nullable
@JsonProperty("isMatching")
private Boolean matching;
private MonetaryAmount price;
@Nullable
private PriceFunction priceFunction;
@Nullable
private Long score;
private String type;
@JsonCreator
CartScoreImpl(@Nullable @JsonProperty("isMatching") final Boolean matching,
final MonetaryAmount price, @Nullable final PriceFunction priceFunction,
@Nullable final Long score, final String type) {
this.matching = matching;
this.price = price;
this.priceFunction = priceFunction;
this.score = score;
this.type = type;
}
@Nullable
@JsonProperty("isMatching")
public Boolean isMatching() {
return matching;
}
public MonetaryAmount getPrice() {
return price;
}
@Nullable
public PriceFunction getPriceFunction() {
return priceFunction;
}
@Nullable
public Long getScore() {
return score;
}
public String getType() {
return type;
}
}