Discount Codes Change Types

Change types that represent data modifications made to the Discount Codes entity.

Change types

Change Cart Discounts

Change triggered by the Change CartDiscounts update action.
type
String
"ChangeCartDiscountsChange"
change
String
"changeCartDiscounts"
previousValue
Array of Reference

Value before the change.

nextValue
Array of Reference

Value after the change.

addedItems
Array of Reference

Elements added to the array.

removedItems
Array of Reference

Elements removed from the array.

Change Groups

Change triggered by the Change Groups update action.
type
String
"ChangeGroupsChange"
change
String
"changeGroups"
previousValue
Array of String

Value before the change.

nextValue
Array of String

Value after the change.

addedItems
Array of String

Elements added to the array.

removedItems
Array of String

Elements removed from the array.

Change Is Active

Change triggered by the following update actions:

type
String
"ChangeIsActiveChange"
change
String
"changeIsActive"
previousValue
Boolean

Value before the change.

nextValue
Boolean

Value after the change.

Set Application Version

This change is initiated by background processes when a discount is applied through a Discount Code.

type
String
"SetApplicationVersionChange"
change
String
"setApplicationVersion"
previousValue
Int

Value before the change.

nextValue
Int

Value after the change.

Set Cart Predicate

Change triggered by the Set Cart Predicate update action.
type
String
"SetCartPredicateChange"
change
String
"setCartPredicate"
previousValue
String

Value before the change.

nextValue
String

Value after the change.

Set Custom Field

Change triggered by the following update actions:

type
String
"SetCustomFieldChange"
change
String
"setCustomField"
previousValue
Any

Value before the change.

nextValue
Any

Value after the change.

name
String
Name of the Custom Field.
customTypeId
String
id of the referenced Type.

Set Custom Type

Change triggered by the following update actions:

type
String
"SetCustomTypeChange"
change
String
"setCustomType"
previousValue

Value before the change.

nextValue

Value after the change.

Set Key

Change triggered by the following update actions:

type
String
"SetKeyChange"
change
String
"setKey"
previousValue
String

Value before the change.

nextValue
String

Value after the change.

Set Localized Description

Change triggered by the following update actions:

type
String
"SetLocalizedDescriptionChange"
change
String
"setDescription"
previousValue

Value before the change.

nextValue

Value after the change.

Set Localized Name

Change triggered by the following update actions:

type
String
"SetLocalizedNameChange"
change
String
"setName"
previousValue

Value before the change.

nextValue

Value after the change.

Set Max Applications

Change triggered by the Set Max Applications update action.
type
String
"SetMaxApplicationsChange"
change
String
"setMaxApplications"
previousValue
Int

Value before the change.

nextValue
Int

Value after the change.

Set Max Applications Per Customer

Change triggered by the Set Max Applications Per Customer update action.
type
String
"SetMaxApplicationsPerCustomerChange"
change
String
"setMaxApplicationsPerCustomer"
previousValue
Int

Value before the change.

nextValue
Int

Value after the change.

Set References

Change is triggered when an entity referenced in a discount predicate is modified during the following actions:

type
String
"SetReferencesChange"
change
String
"setReferences"
addedItems
Array of Reference

Elements added to the array.

removedItems
Array of Reference

Elements removed from the array.

previousValue
Array of Reference

Value before the change.

nextValue
Array of Reference

Value after the change.

Set Valid From And Until

Change triggered by the following update actions:

type
String
"SetValidFromAndUntilChange"
change
String
"setValidFromAndUntil"
previousValue

Value before the change.

nextValue

Value after the change.

Set Valid From

Change triggered by the following update actions:

type
String
"SetValidFromChange"
change
String
"setValidFrom"
previousValue
String

Value before the change.

nextValue
String

Value after the change.

Set Valid Until

Change triggered by the following update actions:

type
String
"SetValidUntilChange"
change
String
"setValidUntil"
previousValue
String

Value before the change.

nextValue
String

Value after the change.