Package com.maxmind.minfraud.request
Class ShoppingCartItem.Builder
java.lang.Object
com.maxmind.minfraud.request.ShoppingCartItem.Builder
- Enclosing class:
- ShoppingCartItem
Builder creates instances of ShippingCartItem
from values set by the builder's methods.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
category
- Parameters:
category- The category of the item.- Returns:
- The builder object.
-
itemId
- Parameters:
id- Your internal ID for the item- Returns:
- The builder object.
-
quantity
- Parameters:
quantity- The quantity of the item in the shopping cart.- Returns:
- The builder object.
- Throws:
IllegalArgumentException- when quantity is not positive.
-
price
- Parameters:
price- The per-unit price of the item in the shopping cart. This should use the same currency as the order currency.- Returns:
- The builder object.
-
price
- Parameters:
price- The price of the item in the shopping cart. This should be the same currency as the order currency.- Returns:
- The builder object.
-
build
- Returns:
- An instance of
ShoppingCartItemcreated from the fields set on this builder.
-