io.sphere.sdk.productdiscounts.RelativeProductDiscount Maven / Gradle / Ivy
package io.sphere.sdk.productdiscounts;
import io.sphere.sdk.models.Base;
/**
* A relative product discount with the corresponding basis point value.
*/
public class RelativeProductDiscount extends Base implements ProductDiscountValue {
private final int permyriad;
private RelativeProductDiscount(final int permyriad) {
this.permyriad = permyriad;
}
/**
* Per ten thousand. The fraction the price is reduced. 1000 will result in a 10% price reduction.
* @return permyriad
*/
public int getPermyriad() {
return permyriad;
}
/**
* Alias for {@link RelativeProductDiscount#getPermyriad()}
* @return permyriad
*/
public int getBasisPoint() {
return getPermyriad();
}
public static RelativeProductDiscount of(final int permyriad) {
return new RelativeProductDiscount(permyriad);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy