33 private static $discriminatorClasses = [
34 'changeBusinessUnitSearchStatus' => ProjectChangeBusinessUnitSearchStatusActionModel::class,
35 'changeCartsConfiguration' => ProjectChangeCartsConfigurationActionModel::class,
36 'changeCountries' => ProjectChangeCountriesActionModel::class,
37 'changeCountryTaxRateFallbackEnabled' => ProjectChangeCountryTaxRateFallbackEnabledActionModel::class,
38 'changeCurrencies' => ProjectChangeCurrenciesActionModel::class,
39 'changeCustomerSearchStatus' => ProjectChangeCustomerSearchStatusActionModel::class,
40 'changeLanguages' => ProjectChangeLanguagesActionModel::class,
41 'changeMessagesConfiguration' => ProjectChangeMessagesConfigurationActionModel::class,
42 'changeMyBusinessUnitStatusOnCreation' => ProjectChangeBusinessUnitStatusOnCreationActionModel::class,
43 'changeName' => ProjectChangeNameActionModel::class,
44 'changeOrderSearchStatus' => ProjectChangeOrderSearchStatusActionModel::class,
45 'changeProductSearchIndexingEnabled' => ProjectChangeProductSearchIndexingEnabledActionModel::class,
46 'changeShoppingListsConfiguration' => ProjectChangeShoppingListsConfigurationActionModel::class,
47 'setExternalOAuth' => ProjectSetExternalOAuthActionModel::class,
48 'setMyBusinessUnitAssociateRoleOnCreation' => ProjectSetBusinessUnitAssociateRoleOnCreationActionModel::class,
49 'setShippingRateInputType' => ProjectSetShippingRateInputTypeActionModel::class,
67 if (is_null($this->action)) {
69 $data = $this->
raw(self::FIELD_ACTION);
73 $this->action = (string) $data;
90 if (is_object($value) && isset($value->$fieldName)) {
92 $discriminatorValue = $value->$fieldName;
93 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
94 return self::$discriminatorClasses[$discriminatorValue];
97 if (is_array($value) && isset($value[$fieldName])) {
99 $discriminatorValue = $value[$fieldName];
100 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
101 return self::$discriminatorClasses[$discriminatorValue];
106 $type = ProjectUpdateActionModel::class;