Class PriceDerivationRuleBase
java.lang.Object
com.sap.retail.sapppspricing.swagger.businessobject.dto.PriceDerivationRuleBase
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2022-09-26T19:16:22.658615400+05:30[Asia/Calcutta]")
public class PriceDerivationRuleBase
extends Object
Contains information of an applied price derivation rule.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDescribes the type of the applied price derivation rule.static enumIndicates whether this is a line-item-related price derivation rule (PO/PC) or a transaction-related price derivation rule (SU/SP). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAnyItem(Object anyItem) addCustomerDisplayTextItem(DescriptionCommonData customerDisplayTextItem) addEligibilityItem(PriceDerivationRuleEligibility eligibilityItem) addOperatorDisplayTextItem(DescriptionCommonData operatorDisplayTextItem) addPromotionDescriptionMultiLanguageItem(DescriptionCommonData promotionDescriptionMultiLanguageItem) addReceiptLineMultiLanguageItem(DescriptionCommonData receiptLineMultiLanguageItem) applicationType(PriceDerivationRuleBase.ApplicationTypeEnum applicationType) appliedCount(BigDecimal appliedCount) calculationBaseSequence(String calculationBaseSequence) concurrenceControlVector(String concurrenceControlVector) couponPrintoutID(String couponPrintoutID) couponPrintoutRule(String couponPrintoutRule) couponPrintoutText(String couponPrintoutText) customerDisplayText(List<DescriptionCommonData> customerDisplayText) customerGroupLoyaltyPointsDefaultQuantity(BigDecimal customerGroupLoyaltyPointsDefaultQuantity) discountMethodCode(String discountMethodCode) eligibility(List<PriceDerivationRuleEligibility> eligibility) booleanexclusiveFlag(Boolean exclusiveFlag) externalAction(ExternalActionType externalAction) externalPriceDerivationRuleID(String externalPriceDerivationRuleID) externalPromotionID(String externalPromotionID) frequentShopperPointsFlag(Boolean frequentShopperPointsFlag) getAny()This is currently not supported.Describes the type of the applied price derivation rule.Describes how often the current price derivation rule was applied.The sequence value of the price derivation rule of which the result is taken as the basis for this price derivation rule.This is currently not supported.The coupon number of the printout coupon.Describes how the printout of the coupon is to be done.The (formatted) text to be printed.Texts shown to the customer in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader.Reserved for future use.Determines how the discount impacts the calculation of the transaction.Only relevant for of coupon eligibilities.Get externalActionDecimal representation of a 64 bit integer value.Identifies an external promotion that was the origin for the corresponding OPP promotion.Reserved for future use.Texts shown to the operator in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader.Get pointsConversionAmountReserved for future use.Identifies the price derivation rule.Describes for how many days the coupon will be valid.Exists for compatibility reasons with earlier versions of the Client API (1.0).Promotion descriptions in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader.Promotion identifier.Contains information about the origin of the promotion as specifed in the promotion master data.This is specified in the promotion master data and controls which rule is applied if several rules have the same sequence value.This is specified in the promotion master data and controls in which order rules are applied.Holds the condition type if this promotion discount should be mapped into an SAP ERP or SAP S/4HANA condition record.Can be used to control further processing on client side.Exists for compatibility reasons with earlier versions of the Client API (1.0).The texts to be printed on the receipt in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader.Type code of the tender.Indicates whether this is a line-item-related price derivation rule (PO/PC) or a transaction-related price derivation rule (SU/SP).The total quantity that needs to be purchased in order to trigger the price derivation rule.giftCertificateExpirationDate(String giftCertificateExpirationDate) inthashCode()Determines whether this price derivation rule is an exclusive one.Determines whether a discount (false) or loyalty points (true) are granted by the price derivation ruleDetermines whether applying this price derivation rule influences the calculation base of subsequent price derivation rules (false) or not (true).Determines if the result of the applied price derivation rule is to be suppressed on displays and accordingly not printed on the receipt.Determines whether applying this price derivation rule influences the calculation base of subsequent transaction-related price derivation rules (false) or not (true).noEffectOnSubsequentPriceDerivationRulesFlag(Boolean noEffectOnSubsequentPriceDerivationRulesFlag) operatorDisplayText(List<DescriptionCommonData> operatorDisplayText) pointsConversionAmount(AmountCommonData pointsConversionAmount) priceDerivationRuleDescription(String priceDerivationRuleDescription) priceDerivationRuleID(String priceDerivationRuleID) printoutValidityPeriod(Integer printoutValidityPeriod) prohibitPrintFlag(Boolean prohibitPrintFlag) prohibitTransactionRelatedPriceDerivationRulesFlag(Boolean prohibitTransactionRelatedPriceDerivationRulesFlag) promotionDescription(String promotionDescription) promotionDescriptionMultiLanguage(List<DescriptionCommonData> promotionDescriptionMultiLanguage) promotionID(String promotionID) promotionOriginatorTypeCode(String promotionOriginatorTypeCode) promotionPriceDerivationRuleResolution(Long promotionPriceDerivationRuleResolution) promotionPriceDerivationRuleSequence(Long promotionPriceDerivationRuleSequence) promotionPriceDerivationRuleTypeCode(String promotionPriceDerivationRuleTypeCode) promotionType(String promotionType) receiptLine(String receiptLine) receiptLineMultiLanguage(List<DescriptionCommonData> receiptLineMultiLanguage) voidvoidsetApplicationType(PriceDerivationRuleBase.ApplicationTypeEnum applicationType) voidsetAppliedCount(BigDecimal appliedCount) voidsetCalculationBaseSequence(String calculationBaseSequence) voidsetConcurrenceControlVector(String concurrenceControlVector) voidsetCouponPrintoutID(String couponPrintoutID) voidsetCouponPrintoutRule(String couponPrintoutRule) voidsetCouponPrintoutText(String couponPrintoutText) voidsetCustomerDisplayText(List<DescriptionCommonData> customerDisplayText) voidsetCustomerGroupLoyaltyPointsDefaultQuantity(BigDecimal customerGroupLoyaltyPointsDefaultQuantity) voidsetDiscountMethodCode(String discountMethodCode) voidsetEligibility(List<PriceDerivationRuleEligibility> eligibility) voidsetExclusiveFlag(Boolean exclusiveFlag) voidsetExternalAction(ExternalActionType externalAction) voidsetExternalPriceDerivationRuleID(String externalPriceDerivationRuleID) voidsetExternalPromotionID(String externalPromotionID) voidsetFrequentShopperPointsFlag(Boolean frequentShopperPointsFlag) voidsetGiftCertificateExpirationDate(String giftCertificateExpirationDate) voidsetNoEffectOnSubsequentPriceDerivationRulesFlag(Boolean noEffectOnSubsequentPriceDerivationRulesFlag) voidsetOperatorDisplayText(List<DescriptionCommonData> operatorDisplayText) voidsetPointsConversionAmount(AmountCommonData pointsConversionAmount) voidsetPriceDerivationRuleDescription(String priceDerivationRuleDescription) voidsetPriceDerivationRuleID(String priceDerivationRuleID) voidsetPrintoutValidityPeriod(Integer printoutValidityPeriod) voidsetProhibitPrintFlag(Boolean prohibitPrintFlag) voidsetProhibitTransactionRelatedPriceDerivationRulesFlag(Boolean prohibitTransactionRelatedPriceDerivationRulesFlag) voidsetPromotionDescription(String promotionDescription) voidsetPromotionDescriptionMultiLanguage(List<DescriptionCommonData> promotionDescriptionMultiLanguage) voidsetPromotionID(String promotionID) voidsetPromotionOriginatorTypeCode(String promotionOriginatorTypeCode) voidsetPromotionPriceDerivationRuleResolution(Long promotionPriceDerivationRuleResolution) voidsetPromotionPriceDerivationRuleSequence(Long promotionPriceDerivationRuleSequence) voidsetPromotionPriceDerivationRuleTypeCode(String promotionPriceDerivationRuleTypeCode) voidsetPromotionType(String promotionType) voidsetReceiptLine(String receiptLine) voidsetReceiptLineMultiLanguage(List<DescriptionCommonData> receiptLineMultiLanguage) voidsetTenderTypeCode(String tenderTypeCode) voidsetTransactionControlBreakCode(PriceDerivationRuleBase.TransactionControlBreakCodeEnum transactionControlBreakCode) voidsetTriggerQuantity(BigDecimal triggerQuantity) tenderTypeCode(String tenderTypeCode) toString()transactionControlBreakCode(PriceDerivationRuleBase.TransactionControlBreakCodeEnum transactionControlBreakCode) triggerQuantity(BigDecimal triggerQuantity)
-
Constructor Details
-
PriceDerivationRuleBase
public PriceDerivationRuleBase()
-
-
Method Details
-
priceDerivationRuleID
-
getPriceDerivationRuleID
Identifies the price derivation rule. Decimal representation of a 64 bit integer value- Returns:
- priceDerivationRuleID
-
setPriceDerivationRuleID
-
eligibility
-
addEligibilityItem
-
getEligibility
Only relevant for of coupon eligibilities. Each coupon that is used results in a separate eligibility element.- Returns:
- eligibility
-
setEligibility
-
any
-
addAnyItem
-
getAny
This is currently not supported.- Returns:
- any
-
setAny
-
promotionDescription
-
getPromotionDescription
Exists for compatibility reasons with earlier versions of the Client API (1.0). As of Client API 2.0, use PromotionDescriptionMultiLanguage instead of PromotionDescription.- Returns:
- promotionDescription
-
setPromotionDescription
-
promotionDescriptionMultiLanguage
public PriceDerivationRuleBase promotionDescriptionMultiLanguage(List<DescriptionCommonData> promotionDescriptionMultiLanguage) -
addPromotionDescriptionMultiLanguageItem
public PriceDerivationRuleBase addPromotionDescriptionMultiLanguageItem(DescriptionCommonData promotionDescriptionMultiLanguageItem) -
getPromotionDescriptionMultiLanguage
Promotion descriptions in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader. Only provided with Client API version 2.0 or higher.- Returns:
- promotionDescriptionMultiLanguage
-
setPromotionDescriptionMultiLanguage
public void setPromotionDescriptionMultiLanguage(List<DescriptionCommonData> promotionDescriptionMultiLanguage) -
promotionPriceDerivationRuleSequence
public PriceDerivationRuleBase promotionPriceDerivationRuleSequence(Long promotionPriceDerivationRuleSequence) -
getPromotionPriceDerivationRuleSequence
This is specified in the promotion master data and controls in which order rules are applied. Line-item-related price derivation rules and transaction-related price derivation rules are treated independently (all line-item-related promotions are applied first).- Returns:
- promotionPriceDerivationRuleSequence
-
setPromotionPriceDerivationRuleSequence
-
promotionPriceDerivationRuleResolution
public PriceDerivationRuleBase promotionPriceDerivationRuleResolution(Long promotionPriceDerivationRuleResolution) -
getPromotionPriceDerivationRuleResolution
This is specified in the promotion master data and controls which rule is applied if several rules have the same sequence value. If there are price derivation rules with an identical sequence number and identical highest resolution, the service tries to perform a best-price calculation. It is not guaranteed that this will succeed. minimum: 0- Returns:
- promotionPriceDerivationRuleResolution
-
setPromotionPriceDerivationRuleResolution
-
promotionPriceDerivationRuleTypeCode
public PriceDerivationRuleBase promotionPriceDerivationRuleTypeCode(String promotionPriceDerivationRuleTypeCode) -
getPromotionPriceDerivationRuleTypeCode
Holds the condition type if this promotion discount should be mapped into an SAP ERP or SAP S/4HANA condition record.- Returns:
- promotionPriceDerivationRuleTypeCode
-
setPromotionPriceDerivationRuleTypeCode
-
transactionControlBreakCode
public PriceDerivationRuleBase transactionControlBreakCode(PriceDerivationRuleBase.TransactionControlBreakCodeEnum transactionControlBreakCode) -
getTransactionControlBreakCode
Indicates whether this is a line-item-related price derivation rule (PO/PC) or a transaction-related price derivation rule (SU/SP).- Returns:
- transactionControlBreakCode
-
setTransactionControlBreakCode
public void setTransactionControlBreakCode(PriceDerivationRuleBase.TransactionControlBreakCodeEnum transactionControlBreakCode) -
priceDerivationRuleDescription
public PriceDerivationRuleBase priceDerivationRuleDescription(String priceDerivationRuleDescription) -
getPriceDerivationRuleDescription
Reserved for future use.- Returns:
- priceDerivationRuleDescription
-
setPriceDerivationRuleDescription
-
promotionOriginatorTypeCode
-
getPromotionOriginatorTypeCode
Contains information about the origin of the promotion as specifed in the promotion master data.- Returns:
- promotionOriginatorTypeCode
-
setPromotionOriginatorTypeCode
-
triggerQuantity
-
getTriggerQuantity
The total quantity that needs to be purchased in order to trigger the price derivation rule. minimum: 0- Returns:
- triggerQuantity
-
setTriggerQuantity
-
discountMethodCode
-
getDiscountMethodCode
Determines how the discount impacts the calculation of the transaction. Possible values are: 00 - The discount reduces the transaction total. 01 - The discount does not influence the transaction total or the amount that the customer has to pay. However, the customer gets a gift certificate for the discount amount that he can use to pay for the next purchase. 02 - The discount is used as a tender for the current transaction, for example it reduces the remaining amount that the customer has to pay. 03 - The discount reduces the transaction total but is counterbalanced by some gift certificate sale. 04 - A coupon is given to the customer instead of a discount. Transaction total is not reduced.- Returns:
- discountMethodCode
-
setDiscountMethodCode
-
frequentShopperPointsFlag
-
isFrequentShopperPointsFlag
Determines whether a discount (false) or loyalty points (true) are granted by the price derivation rule- Returns:
- frequentShopperPointsFlag
-
setFrequentShopperPointsFlag
-
customerGroupLoyaltyPointsDefaultQuantity
public PriceDerivationRuleBase customerGroupLoyaltyPointsDefaultQuantity(BigDecimal customerGroupLoyaltyPointsDefaultQuantity) -
getCustomerGroupLoyaltyPointsDefaultQuantity
Reserved for future use.- Returns:
- customerGroupLoyaltyPointsDefaultQuantity
-
setCustomerGroupLoyaltyPointsDefaultQuantity
public void setCustomerGroupLoyaltyPointsDefaultQuantity(BigDecimal customerGroupLoyaltyPointsDefaultQuantity) -
prohibitPrintFlag
-
isProhibitPrintFlag
Determines if the result of the applied price derivation rule is to be suppressed on displays and accordingly not printed on the receipt. If this element is missing in the request, the default value is set to false and the applied price derivation is printed on the receipt.- Returns:
- prohibitPrintFlag
-
setProhibitPrintFlag
-
tenderTypeCode
-
getTenderTypeCode
Type code of the tender. This value is needed only for DiscountMethodCode = 02.- Returns:
- tenderTypeCode
-
setTenderTypeCode
-
pointsConversionAmount
-
getPointsConversionAmount
Get pointsConversionAmount- Returns:
- pointsConversionAmount
-
setPointsConversionAmount
-
noEffectOnSubsequentPriceDerivationRulesFlag
public PriceDerivationRuleBase noEffectOnSubsequentPriceDerivationRulesFlag(Boolean noEffectOnSubsequentPriceDerivationRulesFlag) -
isNoEffectOnSubsequentPriceDerivationRulesFlag
Determines whether applying this price derivation rule influences the calculation base of subsequent price derivation rules (false) or not (true). This is only relevant for line-item-related monetary price derivation rules.- Returns:
- noEffectOnSubsequentPriceDerivationRulesFlag
-
setNoEffectOnSubsequentPriceDerivationRulesFlag
public void setNoEffectOnSubsequentPriceDerivationRulesFlag(Boolean noEffectOnSubsequentPriceDerivationRulesFlag) -
prohibitTransactionRelatedPriceDerivationRulesFlag
public PriceDerivationRuleBase prohibitTransactionRelatedPriceDerivationRulesFlag(Boolean prohibitTransactionRelatedPriceDerivationRulesFlag) -
isProhibitTransactionRelatedPriceDerivationRulesFlag
Determines whether applying this price derivation rule influences the calculation base of subsequent transaction-related price derivation rules (false) or not (true). This is only relevant for line-item-related monetary price derivation rules.- Returns:
- prohibitTransactionRelatedPriceDerivationRulesFlag
-
setProhibitTransactionRelatedPriceDerivationRulesFlag
public void setProhibitTransactionRelatedPriceDerivationRulesFlag(Boolean prohibitTransactionRelatedPriceDerivationRulesFlag) -
exclusiveFlag
-
isExclusiveFlag
Determines whether this price derivation rule is an exclusive one. This impacts the application of further price derivation rules with a higher sequence.- Returns:
- exclusiveFlag
-
setExclusiveFlag
-
concurrenceControlVector
-
getConcurrenceControlVector
This is currently not supported.- Returns:
- concurrenceControlVector
-
setConcurrenceControlVector
-
appliedCount
-
getAppliedCount
Describes how often the current price derivation rule was applied.- Returns:
- appliedCount
-
setAppliedCount
-
receiptLine
-
getReceiptLine
Exists for compatibility reasons with earlier versions of the Client API (1.0). As of Client API 2.0, use ReceiptLineMultiLanguage instead of ReceiptLine.- Returns:
- receiptLine
-
setReceiptLine
-
receiptLineMultiLanguage
public PriceDerivationRuleBase receiptLineMultiLanguage(List<DescriptionCommonData> receiptLineMultiLanguage) -
addReceiptLineMultiLanguageItem
public PriceDerivationRuleBase addReceiptLineMultiLanguageItem(DescriptionCommonData receiptLineMultiLanguageItem) -
getReceiptLineMultiLanguage
The texts to be printed on the receipt in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader. Only provided with Client API version 2.0 or higher.- Returns:
- receiptLineMultiLanguage
-
setReceiptLineMultiLanguage
-
externalPromotionID
-
getExternalPromotionID
Identifies an external promotion that was the origin for the corresponding OPP promotion.- Returns:
- externalPromotionID
-
setExternalPromotionID
-
externalPriceDerivationRuleID
-
getExternalPriceDerivationRuleID
Decimal representation of a 64 bit integer value. Not used.- Returns:
- externalPriceDerivationRuleID
-
setExternalPriceDerivationRuleID
-
couponPrintoutID
-
getCouponPrintoutID
The coupon number of the printout coupon. Only relevant for DiscountMethodCode = 04.- Returns:
- couponPrintoutID
-
setCouponPrintoutID
-
couponPrintoutRule
-
getCouponPrintoutRule
Describes how the printout of the coupon is to be done. Only relevant for DiscountMethodCode = 04. Possible values are: 00 - A separate receipt is to be printed. 01 - The coupon is to be printed at the end of the receipt of the current transaction.- Returns:
- couponPrintoutRule
-
setCouponPrintoutRule
-
couponPrintoutText
-
getCouponPrintoutText
The (formatted) text to be printed. Only relevant for DiscountMethodCode = 04.- Returns:
- couponPrintoutText
-
setCouponPrintoutText
-
printoutValidityPeriod
-
getPrintoutValidityPeriod
Describes for how many days the coupon will be valid. Only relevant for DiscountMethodCode = 04. minimum: 0- Returns:
- printoutValidityPeriod
-
setPrintoutValidityPeriod
-
giftCertificateExpirationDate
-
getGiftCertificateExpirationDate
Reserved for future use.- Returns:
- giftCertificateExpirationDate
-
setGiftCertificateExpirationDate
-
externalAction
-
getExternalAction
Get externalAction- Returns:
- externalAction
-
setExternalAction
-
operatorDisplayText
-
addOperatorDisplayTextItem
public PriceDerivationRuleBase addOperatorDisplayTextItem(DescriptionCommonData operatorDisplayTextItem) -
getOperatorDisplayText
Texts shown to the operator in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader. Only provided with Client API version 2.0 or higher.- Returns:
- operatorDisplayText
-
setOperatorDisplayText
-
customerDisplayText
-
addCustomerDisplayTextItem
public PriceDerivationRuleBase addCustomerDisplayTextItem(DescriptionCommonData customerDisplayTextItem) -
getCustomerDisplayText
Texts shown to the customer in the languages requested by the client via RequestedMultiLanguage in the ARTSHeader. Only provided with Client API version 2.0 or higher.- Returns:
- customerDisplayText
-
setCustomerDisplayText
-
promotionType
-
getPromotionType
Can be used to control further processing on client side. Only provided with Client API version 2.0 or higher.- Returns:
- promotionType
-
setPromotionType
-
calculationBaseSequence
-
getCalculationBaseSequence
The sequence value of the price derivation rule of which the result is taken as the basis for this price derivation rule. Only provided with Client API version 2.0 or higher. The type of this element is a string although its content has a numeric value. It could also contain a negative value. In that case the corresponding sign is reflected as a postfix. For example value \"-1\" is reflected in this element by type string as follows: \"1-\".- Returns:
- calculationBaseSequence
-
setCalculationBaseSequence
-
promotionID
-
getPromotionID
Promotion identifier. This is filled if the provided Client API version of the calculation request is 5.0 or higher. Has the same content as the PromotionID of the RetailPriceModifier etc. but should be preferred over the other fields to support cases where an applied promotion does not lead to the creation of a RetailPriceModifier, FrequentShopperPointsModifier etc.- Returns:
- promotionID
-
setPromotionID
-
applicationType
public PriceDerivationRuleBase applicationType(PriceDerivationRuleBase.ApplicationTypeEnum applicationType) -
getApplicationType
Describes the type of the applied price derivation rule.- Returns:
- applicationType
-
setApplicationType
-
equals
-
hashCode
public int hashCode() -
toString
-