The ShoppingCartItemCheckResult type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| ShoppingCartItemCheckResult |
Methods
| Name | Description | |
|---|---|---|
| CombineWithResult |
Includes specified check result into this object in order to find the most restrictive values.
No action is taken when results belong to different SKUs.
| |
| (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| GetFormattedMessage |
Returns formatted result message when check has failed. Message is HTML-formatted: each error on its own line.
Returns empty string if check passed.
| |
Serves as a hash function for a particular type. (Inherited from | ||
| GetMax |
Returns larger value from params. Values below 0 are considered to be "not specified".
| |
| GetMessage |
Returns check result formatted as string. Message contains individual
error messages separated with specified separator. Empty string is returned when no errors found.
| |
| GetMin |
Returns smaller value from params. Values below 0 are considered to be "not specified".
| |
Gets the (Inherited from | ||
| MarkMaxUnitsFailed |
Marks this result as "Maximum unit count not reached".
| |
| MarkMinUnitsFailed |
Marks this result as "Minimum unit count not reached".
| |
| MarkNotEnoughUnits |
Marks this result as "Not enough units available".
| |
| MarkOtherError |
Marks this result with error message. Use this method to report custom errors. Duplicate entries are removed.
| |
Creates a shallow copy of the current (Inherited from | ||
Returns a string that represents the current object. (Inherited from |
Extension Methods
| Name | Description | |
|---|---|---|
| GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
| ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
| ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Properties
| Name | Description | |
|---|---|---|
| CartItem |
Affected shopping cart item object.
| |
| HasOtherErrors |
Indicates whether result has any other (custom) errors.
| |
| CheckFailed |
Indicates whether the check has failed.
| |
| InventoryUnits |
Number of available units when not enough. Value is set to -1 when all requested units are available.
| |
| MaxUnits |
Maximum unit count in one order. Value is set to -1 when maximum units in order condition is met.
| |
| MaxUnitsExceeded |
Indicates that maximum unit count in one order condition is not met.
| |
| MinUnits |
Minimum unit count in one order. Value is set to -1 when minimum units in order condition is met.
| |
| MinUnitsNotReached |
Indicates that minimum unit count in one order condition is not met.
| |
| NotEnoughUnits |
Indicates that requested unit count is not available.
| |
| OtherErrors |
List of other (custom) error messages.
| |
| ProductDisabled |
Indicates that product is disabled.
| |
| ProductValidityExpired |
Indicates that product has expired.
| |
| RegisteredCustomerRequired |
Indicates that product can not be purchased, because it requires registered customer.
|
See Also