Class Percent
java.lang.Object
com.sap.retail.sapppspricing.swagger.businessobject.dto.Percent
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2022-09-26T19:16:22.658615400+05:30[Asia/Calcutta]")
public class Percent
extends Object
Percentage discount and the action how it was applied.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies whether the percentage was added or subtracted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction(Percent.ActionEnum action) booleanSpecifies whether the percentage was added or subtracted.getValue()The value that is, for example, used for a percentage discount.inthashCode()voidsetAction(Percent.ActionEnum action) voidsetValue(BigDecimal value) toString()value(BigDecimal value)
-
Constructor Details
-
Percent
public Percent()
-
-
Method Details
-
value
-
getValue
The value that is, for example, used for a percentage discount. It has to be a positive number. minimum: 0- Returns:
- value
-
setValue
-
action
-
getAction
Specifies whether the percentage was added or subtracted.- Returns:
- action
-
setAction
-
equals
-
hashCode
public int hashCode() -
toString
-