Package io.voucherify.client.model
Class InapplicableTo
java.lang.Object
io.voucherify.client.model.InapplicableTo
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class InapplicableTo
extends Object
InapplicableTo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThis object stores information about the resource to which the discount is applicable. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(InapplicableTo.ObjectEnum _object) addOrderItemIndicesItem(Integer orderItemIndicesItem) aggregatedAmountLimit(Integer aggregatedAmountLimit) aggregatedQuantityLimit(Integer aggregatedQuantityLimit) amountLimit(Integer amountLimit) effect(ApplicableToEffect effect) booleanstatic InapplicableToCreate an instance of InapplicableTo given an JSON stringMaximum discount amount per order.The maximum number of units allowed to be discounted combined across all matched order line items.Upper limit allowed to be applied as a discount per order line item.Get effectgetId()Unique product collection, product, or SKU identifier assigned by Voucherify.This object stores information about the resource to which the discount is applicable.Determines the order in which the discount is applied to the products or SKUs sent in the `order` object in the request.getPrice()New fixed price of an item.Formula used to calculate the discounted price of an item.Parent product's unique ID assigned by Voucherify.Parent product's source ID from your inventory system.The maximum number of units allowed to be discounted per order line item.Determines the recurrence of the discount, e.g.Determines how many items are skipped before the discount is applied.The source identifier from your inventory system.Get strictDetermines to which kinds of objects the discount is applicable.inthashCode()orderItemIndices(List<Integer> orderItemIndices) price(BigDecimal price) priceFormula(BigDecimal priceFormula) productSourceId(String productSourceId) quantityLimit(Integer quantityLimit) voidsetAggregatedAmountLimit(Integer aggregatedAmountLimit) voidsetAggregatedQuantityLimit(Integer aggregatedQuantityLimit) voidsetAmountLimit(Integer amountLimit) voidsetEffect(ApplicableToEffect effect) voidvoidsetObject(InapplicableTo.ObjectEnum _object) voidsetOrderItemIndices(List<Integer> orderItemIndices) voidsetPrice(BigDecimal price) voidsetPriceFormula(BigDecimal priceFormula) voidsetProductId(String productId) voidsetProductSourceId(String productSourceId) voidsetQuantityLimit(Integer quantityLimit) voidvoidsetSkipInitially(Integer skipInitially) voidsetSourceId(String sourceId) voidvoidskipInitially(Integer skipInitially) toJson()Convert an instance of InapplicableTo to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_PRODUCT_ID
- See Also:
-
SERIALIZED_NAME_PRODUCT_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_STRICT
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_PRICE_FORMULA
- See Also:
-
SERIALIZED_NAME_EFFECT
- See Also:
-
SERIALIZED_NAME_QUANTITY_LIMIT
- See Also:
-
SERIALIZED_NAME_AGGREGATED_QUANTITY_LIMIT
- See Also:
-
SERIALIZED_NAME_AMOUNT_LIMIT
- See Also:
-
SERIALIZED_NAME_AGGREGATED_AMOUNT_LIMIT
- See Also:
-
SERIALIZED_NAME_ORDER_ITEM_INDICES
- See Also:
-
SERIALIZED_NAME_REPEAT
- See Also:
-
SERIALIZED_NAME_SKIP_INITIALLY
- See Also:
-
SERIALIZED_NAME_TARGET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
InapplicableTo
public InapplicableTo()
-
-
Method Details
-
_object
-
getObject
This object stores information about the resource to which the discount is applicable.- Returns:
- _object
-
setObject
-
id
-
getId
Unique product collection, product, or SKU identifier assigned by Voucherify.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
The source identifier from your inventory system.- Returns:
- sourceId
-
setSourceId
-
productId
-
getProductId
Parent product's unique ID assigned by Voucherify.- Returns:
- productId
-
setProductId
-
productSourceId
-
getProductSourceId
Parent product's source ID from your inventory system.- Returns:
- productSourceId
-
setProductSourceId
-
strict
-
getStrict
Get strict- Returns:
- strict
-
setStrict
-
price
-
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
-
priceFormula
-
getPriceFormula
Formula used to calculate the discounted price of an item.- Returns:
- priceFormula
-
setPriceFormula
-
effect
-
getEffect
Get effect- Returns:
- effect
-
setEffect
-
quantityLimit
-
getQuantityLimit
The maximum number of units allowed to be discounted per order line item.- Returns:
- quantityLimit
-
setQuantityLimit
-
aggregatedQuantityLimit
-
getAggregatedQuantityLimit
The maximum number of units allowed to be discounted combined across all matched order line items.- Returns:
- aggregatedQuantityLimit
-
setAggregatedQuantityLimit
-
amountLimit
-
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
-
aggregatedAmountLimit
-
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
-
orderItemIndices
-
addOrderItemIndicesItem
-
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
-
repeat
-
getRepeat
Determines the recurrence of the discount, e.g. `\"repeat\": 3` means that the discount is applied to every third item.- Returns:
- repeat
-
setRepeat
-
skipInitially
-
getSkipInitially
Determines how many items are skipped before the discount is applied.- Returns:
- skipInitially
-
setSkipInitially
-
target
-
getTarget
Determines to which kinds of objects the discount is applicable. `\"ITEM\"` includes products and SKUs.- Returns:
- target
-
setTarget
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
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
Convert an instance of InapplicableTo to an JSON string- Returns:
- JSON string
-