Class DiscountBase
java.lang.Object
com.sap.retail.sapppspricing.swagger.businessobject.dto.DiscountBase
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2022-09-26T19:16:22.658615400+05:30[Asia/Calcutta]")
public class DiscountBase
extends Object
Generated during the price calculation as a separate line item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnyItem(Object anyItem) addItemLinkItem(Integer itemLinkItem) addPriceDerivationRuleItem(PriceDerivationRuleBase priceDerivationRuleItem) computationBaseAmount(AmountCommonData computationBaseAmount) booleanexternalSystemOriginatorFlag(Boolean externalSystemOriginatorFlag) extraAmount(AmountCommonData extraAmount) Get amountgetAny()This is currently not supported.Get computationBaseAmountGet extraAmountThe link to the discount line item that triggered the creation of this RetailPriceModifier in order to keep the prorated transaction-related discount for the current line item.The sequence number for the trigger that allows more than one trigger to be assigned to a single RetailPriceModifier.Get newPriceGet percentGet previousPriceAlthough this is an array, onyl exactly 1 entry is supporedGet promotionIDGet quantityGet roundingIdentifies this retail price modifier in the corresponding line item.inthashCode()Determines if this discount was created by an external system.Specifies whether the discount amount applies to the whole transaction or is prorated to the discountable line items of the transaction.manualTriggerSequenceNumber(Integer manualTriggerSequenceNumber) previousPrice(PreviousPrice previousPrice) priceDerivationRule(List<PriceDerivationRuleBase> priceDerivationRule) promotionID(PromotionID promotionID) proratedFlag(Boolean proratedFlag) quantity(QuantityCommonData quantity) rounding(RoundingCommonData rounding) sequenceNumber(Integer sequenceNumber) voidvoidvoidsetComputationBaseAmount(AmountCommonData computationBaseAmount) voidsetExternalSystemOriginatorFlag(Boolean externalSystemOriginatorFlag) voidsetExtraAmount(AmountCommonData extraAmount) voidsetItemLink(List<Integer> itemLink) voidsetManualTriggerSequenceNumber(Integer manualTriggerSequenceNumber) voidsetNewPrice(NewPrice newPrice) voidsetPercent(Percent percent) voidsetPreviousPrice(PreviousPrice previousPrice) voidsetPriceDerivationRule(List<PriceDerivationRuleBase> priceDerivationRule) voidsetPromotionID(PromotionID promotionID) voidsetProratedFlag(Boolean proratedFlag) voidsetQuantity(QuantityCommonData quantity) voidsetRounding(RoundingCommonData rounding) voidsetSequenceNumber(Integer sequenceNumber) toString()
-
Constructor Details
-
DiscountBase
public DiscountBase()
-
-
Method Details
-
priceDerivationRule
-
addPriceDerivationRuleItem
-
getPriceDerivationRule
Although this is an array, onyl exactly 1 entry is suppored- Returns:
- priceDerivationRule
-
setPriceDerivationRule
-
any
-
addAnyItem
-
getAny
This is currently not supported.- Returns:
- any
-
setAny
-
manualTriggerSequenceNumber
-
getManualTriggerSequenceNumber
The sequence number for the trigger that allows more than one trigger to be assigned to a single RetailPriceModifier. It references the ManualTriggerSequenceNumber of PromotionManualTriggerType that triggered this price modifier. minimum: 0 maximum: 32767- Returns:
- manualTriggerSequenceNumber
-
setManualTriggerSequenceNumber
-
extraAmount
-
getExtraAmount
Get extraAmount- Returns:
- extraAmount
-
setExtraAmount
-
externalSystemOriginatorFlag
-
isExternalSystemOriginatorFlag
Determines if this discount was created by an external system. If yes, it must not be changed, but its own modifications with higher sequence may be applied. Default value is false.- Returns:
- externalSystemOriginatorFlag
-
setExternalSystemOriginatorFlag
-
sequenceNumber
-
getSequenceNumber
Identifies this retail price modifier in the corresponding line item. minimum: 0 maximum: 32767- Returns:
- sequenceNumber
-
setSequenceNumber
-
amount
-
getAmount
Get amount- Returns:
- amount
-
setAmount
-
percent
-
getPercent
Get percent- Returns:
- percent
-
setPercent
-
previousPrice
-
getPreviousPrice
Get previousPrice- Returns:
- previousPrice
-
setPreviousPrice
-
newPrice
-
getNewPrice
Get newPrice- Returns:
- newPrice
-
setNewPrice
-
promotionID
-
getPromotionID
Get promotionID- Returns:
- promotionID
-
setPromotionID
-
itemLink
-
addItemLinkItem
-
getItemLink
The link to the discount line item that triggered the creation of this RetailPriceModifier in order to keep the prorated transaction-related discount for the current line item. Is not used in the context of the modification of the price of a single line item (item-related discount). Although this is an array, it contains at most one entry.- Returns:
- itemLink
-
setItemLink
-
quantity
-
getQuantity
Get quantity- Returns:
- quantity
-
setQuantity
-
rounding
-
getRounding
Get rounding- Returns:
- rounding
-
setRounding
-
computationBaseAmount
-
getComputationBaseAmount
Get computationBaseAmount- Returns:
- computationBaseAmount
-
setComputationBaseAmount
-
proratedFlag
-
isProratedFlag
Specifies whether the discount amount applies to the whole transaction or is prorated to the discountable line items of the transaction. Currently always true.- Returns:
- proratedFlag
-
setProratedFlag
-
equals
-
hashCode
public int hashCode() -
toString
-