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

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

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






OrderPromotion (Content API for Shopping v2.1-rev20220413-1.32.1)












com.google.api.services.content.model

Class OrderPromotion

    • Constructor Detail

      • OrderPromotion

        public OrderPromotion()
    • Method Detail

      • getApplicableItems

        public List<OrderPromotionItem> getApplicableItems()
        Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
        Returns:
        value or null for none
      • setApplicableItems

        public OrderPromotion setApplicableItems(List<OrderPromotionItem> applicableItems)
        Items that this promotion may be applied to. If empty, there are no restrictions on applicable items and quantity. This field will also be empty for shipping promotions because shipping is not tied to any specific item.
        Parameters:
        applicableItems - applicableItems or null for none
      • getAppliedItems

        public List<OrderPromotionItem> getAppliedItems()
        Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
        Returns:
        value or null for none
      • setAppliedItems

        public OrderPromotion setAppliedItems(List<OrderPromotionItem> appliedItems)
        Items that this promotion have been applied to. Do not provide for `orders.createtestorder`. This field will be empty for shipping promotions because shipping is not tied to any specific item.
        Parameters:
        appliedItems - appliedItems or null for none
      • getEndTime

        public String getEndTime()
        Promotion end time in ISO 8601 format. Date, time, and offset required, for example, "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
        Returns:
        value or null for none
      • setEndTime

        public OrderPromotion setEndTime(String endTime)
        Promotion end time in ISO 8601 format. Date, time, and offset required, for example, "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
        Parameters:
        endTime - endTime or null for none
      • getFunder

        public String getFunder()
        Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`"
        Returns:
        value or null for none
      • setFunder

        public OrderPromotion setFunder(String funder)
        Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`"
        Parameters:
        funder - funder or null for none
      • getMerchantPromotionId

        public String getMerchantPromotionId()
        Required. This field is used to identify promotions within merchants' own systems.
        Returns:
        value or null for none
      • setMerchantPromotionId

        public OrderPromotion setMerchantPromotionId(String merchantPromotionId)
        Required. This field is used to identify promotions within merchants' own systems.
        Parameters:
        merchantPromotionId - merchantPromotionId or null for none
      • getPriceValue

        public Price getPriceValue()
        Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
        Returns:
        value or null for none
      • setPriceValue

        public OrderPromotion setPriceValue(Price priceValue)
        Estimated discount applied to price. Amount is pre-tax or post-tax depending on location of order.
        Parameters:
        priceValue - priceValue or null for none
      • getShortTitle

        public String getShortTitle()
        A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
        Returns:
        value or null for none
      • setShortTitle

        public OrderPromotion setShortTitle(String shortTitle)
        A short title of the promotion to be shown on the checkout page. Do not provide for `orders.createtestorder`.
        Parameters:
        shortTitle - shortTitle or null for none
      • getStartTime

        public String getStartTime()
        Promotion start time in ISO 8601 format. Date, time, and offset required, for example, "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
        Returns:
        value or null for none
      • setStartTime

        public OrderPromotion setStartTime(String startTime)
        Promotion start time in ISO 8601 format. Date, time, and offset required, for example, "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z".
        Parameters:
        startTime - startTime or null for none
      • getSubtype

        public String getSubtype()
        Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeShippingOvernight`" - "`freeShippingStandard`" - "`freeShippingTwoDay`" - "`moneyOff`" - "`percentOff`" - "`rewardPoints`" - "`salePrice`"
        Returns:
        value or null for none
      • setSubtype

        public OrderPromotion setSubtype(String subtype)
        Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeShippingOvernight`" - "`freeShippingStandard`" - "`freeShippingTwoDay`" - "`moneyOff`" - "`percentOff`" - "`rewardPoints`" - "`salePrice`"
        Parameters:
        subtype - subtype or null for none
      • getTaxValue

        public Price getTaxValue()
        Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
        Returns:
        value or null for none
      • setTaxValue

        public OrderPromotion setTaxValue(Price taxValue)
        Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`.
        Parameters:
        taxValue - taxValue or null for none
      • getTitle

        public String getTitle()
        Required. The title of the promotion.
        Returns:
        value or null for none
      • setTitle

        public OrderPromotion setTitle(String title)
        Required. The title of the promotion.
        Parameters:
        title - title or null for none
      • getType

        public String getType()
        Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`"
        Returns:
        value or null for none
      • setType

        public OrderPromotion setType(String type)
        Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. 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