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

io.sphere.sdk.cartdiscounts.RelativeCartDiscountValue Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.cartdiscounts;

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

public class RelativeCartDiscountValue extends Base implements CartDiscountValue {
    private final Integer permyriad;

    @JsonCreator
    private RelativeCartDiscountValue(final Integer permyriad) {
        this.permyriad = permyriad;
    }

    public Integer getPermyriad() {
        return permyriad;
    }

    public Integer getBasisPoint() {
        return getPermyriad();
    }

    public static RelativeCartDiscountValue of(final Integer permyriad) {
        return new RelativeCartDiscountValue(permyriad);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy