All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.content.model.OrderLegacyPromotionBenefit.html Maven / Gradle / Ivy

There is a newer version: v2.1-rev20241217-2.0.0
Show newest version






OrderLegacyPromotionBenefit (Content API for Shopping v2-rev20220105-1.32.1)












com.google.api.services.content.model

Class OrderLegacyPromotionBenefit

    • Constructor Detail

      • OrderLegacyPromotionBenefit

        public OrderLegacyPromotionBenefit()
    • Method Detail

      • getDiscount

        public Price getDiscount()
        The discount in the order price when the promotion is applied.
        Returns:
        value or null for none
      • setDiscount

        public OrderLegacyPromotionBenefit setDiscount(Price discount)
        The discount in the order price when the promotion is applied.
        Parameters:
        discount - discount or null for none
      • getOfferIds

        public List<String> getOfferIds()
        The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.
        Returns:
        value or null for none
      • setOfferIds

        public OrderLegacyPromotionBenefit setOfferIds(List<String> offerIds)
        The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.
        Parameters:
        offerIds - offerIds or null for none
      • getSubType

        public String getSubType()
        Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeOvernightShipping`" - "`freeShipping`" - "`freeTwoDayShipping`" - "`moneyOff`" - "`percentageOff`" - "`rewardPoints`" - "`salePrice`"
        Returns:
        value or null for none
      • setSubType

        public OrderLegacyPromotionBenefit setSubType(String subType)
        Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeOvernightShipping`" - "`freeShipping`" - "`freeTwoDayShipping`" - "`moneyOff`" - "`percentageOff`" - "`rewardPoints`" - "`salePrice`"
        Parameters:
        subType - subType or null for none
      • getTaxImpact

        public Price getTaxImpact()
        The impact on tax when the promotion is applied.
        Returns:
        value or null for none
      • setTaxImpact

        public OrderLegacyPromotionBenefit setTaxImpact(Price taxImpact)
        The impact on tax when the promotion is applied.
        Parameters:
        taxImpact - taxImpact or null for none
      • getType

        public String getType()
        Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping). Acceptable values are: - "`product`" - "`shipping`"
        Returns:
        value or null for none
      • setType

        public OrderLegacyPromotionBenefit setType(String type)
        Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping). Acceptable values are: - "`product`" - "`shipping`"
        Parameters:
        type - type or null for none

Copyright © 2011–2022 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy