Class InapplicableTo

java.lang.Object
io.voucherify.client.model.InapplicableTo

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InapplicableTo extends Object
InapplicableTo
  • Field Details

  • Constructor Details

    • InapplicableTo

      public InapplicableTo()
  • Method Details

    • _object

      public InapplicableTo _object(InapplicableTo.ObjectEnum _object)
    • getObject

      @Nullable public InapplicableTo.ObjectEnum getObject()
      This object stores information about the resource to which the discount is applicable.
      Returns:
      _object
    • setObject

      public void setObject(InapplicableTo.ObjectEnum _object)
    • id

      public InapplicableTo id(String id)
    • getId

      @Nullable public String getId()
      Unique product collection, product, or SKU identifier assigned by Voucherify.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public InapplicableTo sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      The source identifier from your inventory system.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • productId

      public InapplicableTo productId(String productId)
    • getProductId

      @Nullable public String getProductId()
      Parent product's unique ID assigned by Voucherify.
      Returns:
      productId
    • setProductId

      public void setProductId(String productId)
    • productSourceId

      public InapplicableTo productSourceId(String productSourceId)
    • getProductSourceId

      @Nullable public String getProductSourceId()
      Parent product's source ID from your inventory system.
      Returns:
      productSourceId
    • setProductSourceId

      public void setProductSourceId(String productSourceId)
    • strict

      public InapplicableTo strict(Boolean strict)
    • getStrict

      @Nullable public Boolean getStrict()
      Get strict
      Returns:
      strict
    • setStrict

      public void setStrict(Boolean strict)
    • price

      public InapplicableTo price(BigDecimal price)
    • getPrice

      @Nullable public BigDecimal getPrice()
      New fixed price of an item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $10 price is written as 1000. In case of the fixed price being calculated by the formula, i.e. the price_formula parameter is present in the fixed price definition, this value becomes the fallback value. Such that in a case where the formula cannot be calculated due to missing metadata, for example, this value will be used as the fixed price.
      Returns:
      price
    • setPrice

      public void setPrice(BigDecimal price)
    • priceFormula

      public InapplicableTo priceFormula(BigDecimal priceFormula)
    • getPriceFormula

      @Nullable public BigDecimal getPriceFormula()
      Formula used to calculate the discounted price of an item.
      Returns:
      priceFormula
    • setPriceFormula

      public void setPriceFormula(BigDecimal priceFormula)
    • effect

      public InapplicableTo effect(ApplicableToEffect effect)
    • getEffect

      @Nonnull public ApplicableToEffect getEffect()
      Get effect
      Returns:
      effect
    • setEffect

      public void setEffect(ApplicableToEffect effect)
    • quantityLimit

      public InapplicableTo quantityLimit(Integer quantityLimit)
    • getQuantityLimit

      @Nullable public Integer getQuantityLimit()
      The maximum number of units allowed to be discounted per order line item.
      Returns:
      quantityLimit
    • setQuantityLimit

      public void setQuantityLimit(Integer quantityLimit)
    • aggregatedQuantityLimit

      public InapplicableTo aggregatedQuantityLimit(Integer aggregatedQuantityLimit)
    • getAggregatedQuantityLimit

      @Nullable public Integer getAggregatedQuantityLimit()
      The maximum number of units allowed to be discounted combined across all matched order line items.
      Returns:
      aggregatedQuantityLimit
    • setAggregatedQuantityLimit

      public void setAggregatedQuantityLimit(Integer aggregatedQuantityLimit)
    • amountLimit

      public InapplicableTo amountLimit(Integer amountLimit)
    • getAmountLimit

      @Nullable public Integer getAmountLimit()
      Upper limit allowed to be applied as a discount per order line item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount is written as 600.
      Returns:
      amountLimit
    • setAmountLimit

      public void setAmountLimit(Integer amountLimit)
    • aggregatedAmountLimit

      public InapplicableTo aggregatedAmountLimit(Integer aggregatedAmountLimit)
    • getAggregatedAmountLimit

      @Nullable public Integer getAggregatedAmountLimit()
      Maximum discount amount per order. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount on the entire order is written as 600. This value is definable for the following discount effects: - `APPLY_TO_ITEMS` (each item subtotal is discounted equally) - `APPLY_TO_ITEMS_BY_QUANTITY` (each unit of matched products has the same discount value)
      Returns:
      aggregatedAmountLimit
    • setAggregatedAmountLimit

      public void setAggregatedAmountLimit(Integer aggregatedAmountLimit)
    • orderItemIndices

      public InapplicableTo orderItemIndices(List<Integer> orderItemIndices)
    • addOrderItemIndicesItem

      public InapplicableTo addOrderItemIndicesItem(Integer orderItemIndicesItem)
    • getOrderItemIndices

      @Nullable public List<Integer> getOrderItemIndices()
      Determines the order in which the discount is applied to the products or SKUs sent in the `order` object in the request. The counting begins from `0`.
      Returns:
      orderItemIndices
    • setOrderItemIndices

      public void setOrderItemIndices(List<Integer> orderItemIndices)
    • repeat

      public InapplicableTo repeat(Integer repeat)
    • getRepeat

      @Nullable public Integer getRepeat()
      Determines the recurrence of the discount, e.g. `\"repeat\": 3` means that the discount is applied to every third item.
      Returns:
      repeat
    • setRepeat

      public void setRepeat(Integer repeat)
    • skipInitially

      public InapplicableTo skipInitially(Integer skipInitially)
    • getSkipInitially

      @Nullable public Integer getSkipInitially()
      Determines how many items are skipped before the discount is applied.
      Returns:
      skipInitially
    • setSkipInitially

      public void setSkipInitially(Integer skipInitially)
    • target

      public InapplicableTo target(String target)
    • getTarget

      @Nullable public String getTarget()
      Determines to which kinds of objects the discount is applicable. `\"ITEM\"` includes products and SKUs.
      Returns:
      target
    • setTarget

      public void setTarget(String target)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static InapplicableTo fromJson(String jsonString) throws IOException
      Create an instance of InapplicableTo given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of InapplicableTo
      Throws:
      IOException - if the JSON string is invalid with respect to InapplicableTo
    • toJson

      public String toJson()
      Convert an instance of InapplicableTo to an JSON string
      Returns:
      JSON string