Class PriceCalculateBase
java.lang.Object
com.sap.retail.sapppspricing.swagger.businessobject.dto.PriceCalculateBase
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2022-09-26T19:16:22.658615400+05:30[Asia/Calcutta]")
public class PriceCalculateBase
extends Object
Contains relevant information for the price calculation like the items, date and time, and more.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumControls if the items of the ShoppingBasket element are considered as part of a shared basket (\"Basket\") or if they are treated as separate items (\"LineItem\").static enumControls which price derivation rules are used for the price calculation.static enumIndicates whether in this transaction items are sold or returned. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnyItem(Object anyItem) addLoyaltyItem(LoyaltyAccountCommonData loyaltyItem) addTxAttributeItem(TransactionAttributeType txAttributeItem) calculationMode(PriceCalculateBase.CalculationModeEnum calculationMode) calculationScheme(PriceCalculateBase.CalculationSchemeEnum calculationScheme) dateTime(DateTimeCommonData dateTime) booleangetAny()This is currently not supported.Controls if the items of the ShoppingBasket element are considered as part of a shared basket (\"Basket\") or if they are treated as separate items (\"LineItem\").Controls which price derivation rules are used for the price calculation.Get dateTimeRefers to the end customer.Get regularSalesUnitPriceRoundingRuleGet shoppingBasketGet transactionIDIndicates whether in this transaction items are sold or returned.Generic attributes on transaction level in the price calculation request.inthashCode()If set to true, the net regular prices are used for the price calculation.loyalty(List<LoyaltyAccountCommonData> loyalty) netPriceFlag(Boolean netPriceFlag) regularSalesUnitPriceRoundingRule(RoundingRuleType regularSalesUnitPriceRoundingRule) voidvoidsetCalculationMode(PriceCalculateBase.CalculationModeEnum calculationMode) voidsetCalculationScheme(PriceCalculateBase.CalculationSchemeEnum calculationScheme) voidsetDateTime(DateTimeCommonData dateTime) voidsetLoyalty(List<LoyaltyAccountCommonData> loyalty) voidsetNetPriceFlag(Boolean netPriceFlag) voidsetRegularSalesUnitPriceRoundingRule(RoundingRuleType regularSalesUnitPriceRoundingRule) voidsetShoppingBasket(ShoppingBasketBase shoppingBasket) voidsetTransactionID(IDCommonData transactionID) voidsetTransactionType(PriceCalculateBase.TransactionTypeEnum transactionType) voidsetTxAttribute(List<TransactionAttributeType> txAttribute) shoppingBasket(ShoppingBasketBase shoppingBasket) toString()transactionID(IDCommonData transactionID) transactionType(PriceCalculateBase.TransactionTypeEnum transactionType) txAttribute(List<TransactionAttributeType> txAttribute)
-
Constructor Details
-
PriceCalculateBase
public PriceCalculateBase()
-
-
Method Details
-
transactionID
-
getTransactionID
Get transactionID- Returns:
- transactionID
-
setTransactionID
-
dateTime
-
getDateTime
Get dateTime- Returns:
- dateTime
-
setDateTime
-
loyalty
-
addLoyaltyItem
-
getLoyalty
Refers to the end customer.- Returns:
- loyalty
-
setLoyalty
-
shoppingBasket
-
getShoppingBasket
Get shoppingBasket- Returns:
- shoppingBasket
-
setShoppingBasket
-
regularSalesUnitPriceRoundingRule
public PriceCalculateBase regularSalesUnitPriceRoundingRule(RoundingRuleType regularSalesUnitPriceRoundingRule) -
getRegularSalesUnitPriceRoundingRule
Get regularSalesUnitPriceRoundingRule- Returns:
- regularSalesUnitPriceRoundingRule
-
setRegularSalesUnitPriceRoundingRule
public void setRegularSalesUnitPriceRoundingRule(RoundingRuleType regularSalesUnitPriceRoundingRule) -
any
-
addAnyItem
-
getAny
This is currently not supported.- Returns:
- any
-
setAny
-
transactionType
-
getTransactionType
Indicates whether in this transaction items are sold or returned.- Returns:
- transactionType
-
setTransactionType
-
netPriceFlag
-
isNetPriceFlag
If set to true, the net regular prices are used for the price calculation. Otherwise, the gross prices are considered.- Returns:
- netPriceFlag
-
setNetPriceFlag
-
calculationMode
-
getCalculationMode
Controls if the items of the ShoppingBasket element are considered as part of a shared basket (\"Basket\") or if they are treated as separate items (\"LineItem\"). If not specified, \"Basket\" is used as default.- Returns:
- calculationMode
-
setCalculationMode
-
calculationScheme
public PriceCalculateBase calculationScheme(PriceCalculateBase.CalculationSchemeEnum calculationScheme) -
getCalculationScheme
Controls which price derivation rules are used for the price calculation. This is defined by the transaction control break code/price rule control code and the point in time for the application of price derivation rules (immediately or after subtotal). For the calculation scheme type 'CalcAll', all transaction control break codes/price rule control codes can be applied (PC, PO, SP, SU). For the calculation scheme type \"CalcForItem\", only rules with transaction control break code/price rule control code PO and SP can be applied. If not specified, \"CalcAll\" is used as default. The calculation scheme is available as of version 4.0.- Returns:
- calculationScheme
-
setCalculationScheme
-
txAttribute
-
addTxAttributeItem
-
getTxAttribute
Generic attributes on transaction level in the price calculation request. These generic attributes can be used as trigger for a promotional rule.- Returns:
- txAttribute
-
setTxAttribute
-
equals
-
hashCode
public int hashCode() -
toString
-