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 Change IsActive update action.
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 Set Custom Field update action.
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 Set Custom Type update action.
type​
String​
"SetCustomTypeChange"
change​
String​
"setCustomType"
previousValue​

Value before the change.

nextValue​

Value after the change.

Set Key

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 Set Description update action.
type​
String​
"SetLocalizedDescriptionChange"
change​
String​
"setDescription"
previousValue​

Value before the change.

nextValue​

Value after the change.

catalogData​
String​

Product data that was updated.

This field is only present if the change is related to the Product entity.

Set Localized Name

Change triggered by the Set Name update action.
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

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 Set Valid From and Until update action.
type​
String​
"SetValidFromAndUntilChange"
change​
String​
"setValidFromAndUntil"
previousValue​

Value before the change.

nextValue​

Value after the change.

Set Valid From

Change triggered by the Set Valid From update action.
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 Set Valid Until update action.
type​
String​
"SetValidUntilChange"
change​
String​
"setValidUntil"
previousValue​
String​

Value before the change.

nextValue​
String​

Value after the change.