ShoppingCartItem Constructor |
Constructor
Namespace:
MaxMind.MinFraud.Request
Assembly:
MaxMind.MinFraud (in MaxMind.MinFraud.dll) Version: 2.0.0
Syntaxpublic ShoppingCartItem(
string category = null,
string itemId = null,
Nullable<int> quantity = null,
Nullable<decimal> price = null
)
Public Sub New (
Optional category As String = Nothing,
Optional itemId As String = Nothing,
Optional quantity As Nullable(Of Integer) = Nothing,
Optional price As Nullable(Of Decimal) = Nothing
)
public:
ShoppingCartItem(
String^ category = nullptr,
String^ itemId = nullptr,
Nullable<int> quantity = nullptr,
Nullable<Decimal> price = nullptr
)
new :
?category : string *
?itemId : string *
?quantity : Nullable<int> *
?price : Nullable<decimal>
(* Defaults:
let _category = defaultArg category null
let _itemId = defaultArg itemId null
let _quantity = defaultArg quantity null
let _price = defaultArg price null
*)
-> ShoppingCartItem
Parameters
- category (Optional)
- Type: SystemString
The category of the item. - itemId (Optional)
- Type: SystemString
Your internal ID for the item. - quantity (Optional)
- Type: SystemNullableInt32
The quantity of the item in the shopping cart.
This must be positive - price (Optional)
- Type: SystemNullableDecimal
The price of the item in the shopping cart. This
should be the same currency as the order currency.
See Also