CartExtension.CartValidationOutput
This Apex object represents an in-memory CartValidationOutput record and its relationships with other records. All formula and roll-up summary standard fields are updated at runtime. By default, the UI renders CartValidationOutput messages if the value of level is error and the value of type is Inventory, Pricing, Promotions, or Entitlement.
Loading and saving this object is not possible in Apex but is done by Salesforce.
See Object Reference: CartValidationOutput
Constructor for CartValidationOutput object. All arguments are required. The WebCart.Id will be saved in CartValidationOutput.RelatedEntityId.
| Param | Description |
|---|---|
type | Initial value for CartValidationOutput.Type. |
level | Initial value for CartValidationOutput.Level. |
Constructor for CartValidationOutput object. All arguments are required.
| Param | Description |
|---|---|
type | Initial value for CartValidationOutput.Type. |
level | Initial value for CartValidationOutput.Level. |
cartDeliveryGroup | Initial CartExtension.CartDeliveryGroup object related to this object. Its ID will be saved in CartValidationOutput.RelatedEntityId. |
Constructor for CartValidationOutput object. All arguments are required.
| Param | Description |
|---|---|
type | Initial value for CartValidationOutput.Type. |
level | Initial value for CartValidationOutput.Level. |
cartItem | Initial CartExtension.CartItem object related to this object. Its ID will be saved in CartValidationOutput.RelatedEntityId. |
Constructor for CartValidationOutput object. All arguments are required.
| Param | Description |
|---|---|
type | Initial value for CartValidationOutput.Type. |
level | Initial value for CartValidationOutput.Level. |
cartTax | Initial CartExtension.CartTax object related to this object. Its ID will be saved in CartValidationOutput.RelatedEntityId. |
Get CartValidationOutput.Type.
| Type | Description |
|---|---|
CartValidationOutputTypeEnum | CartExtension.CartValidationOutputTypeEnum |
Get CartValidationOutput.Level.
| Type | Description |
|---|---|
CartValidationOutputLevelEnum | CartExtension.CartValidationOutputLevelEnum |
Set CartValidationOutput.Type.
| Type | Description |
|---|---|
void |
Set CartValidationOutput.Level.
| Type | Description |
|---|---|
void |
Get CartValidationOutput.Message.
| Type | Description |
|---|---|
String |
Set CartValidationOutput.Message.
| Type | Description |
|---|---|
void |
Get CartValidationOutput.IsDismissed.
| Type | Description |
|---|---|
Boolean |
Get CartValidationOutput.IsDismissed.
| Type | Description |
|---|---|
void |
Get CartValidationOutput.RelatedEntityId.
| Type | Description |
|---|---|
ID | ID of related entity. Can be "null" if related entity for this CartValidationOutput has been created during processing of the current request and has not been saved into the DB yet. |
Get Id.
| Type | Description |
|---|---|
ID |
Get System Field CreatedDate.
| Type | Description |
|---|---|
Datetime |
Get System Field LastModifiedDate.
| Type | Description |
|---|---|
Datetime |
Get System Field CreatedById.
| Type | Description |
|---|---|
ID |
Get System Field LastModifiedById.
| Type | Description |
|---|---|
ID |
Get value of the given custom field (needs to be api name)
| Type | Description |
|---|---|
Object |
Set the value of the given custom field (needs to be api name)
| Type | Description |
|---|---|
void |