3 declare(strict_types=1);
33 private static $discriminatorClasses = [
34 'changeCartsConfiguration' => ProjectChangeCartsConfigurationActionModel::class,
35 'changeCountries' => ProjectChangeCountriesActionModel::class,
36 'changeCountryTaxRateFallbackEnabled' => ProjectChangeCountryTaxRateFallbackEnabledActionModel::class,
37 'changeCurrencies' => ProjectChangeCurrenciesActionModel::class,
38 'changeCustomerSearchStatus' => ProjectChangeCustomerSearchStatusActionModel::class,
39 'changeLanguages' => ProjectChangeLanguagesActionModel::class,
40 'changeMessagesConfiguration' => ProjectChangeMessagesConfigurationActionModel::class,
41 'changeMyBusinessUnitStatusOnCreation' => ProjectChangeBusinessUnitStatusOnCreationActionModel::class,
42 'changeName' => ProjectChangeNameActionModel::class,
43 'changeOrderSearchStatus' => ProjectChangeOrderSearchStatusActionModel::class,
44 'changeProductSearchIndexingEnabled' => ProjectChangeProductSearchIndexingEnabledActionModel::class,
45 'changeShoppingListsConfiguration' => ProjectChangeShoppingListsConfigurationActionModel::class,
46 'setExternalOAuth' => ProjectSetExternalOAuthActionModel::class,
47 'setMyBusinessUnitAssociateRoleOnCreation' => ProjectSetBusinessUnitAssociateRoleOnCreationActionModel::class,
48 'setShippingRateInputType' => ProjectSetShippingRateInputTypeActionModel::class,
66 if (is_null($this->action)) {
68 $data = $this->
raw(self::FIELD_ACTION);
72 $this->action = (string) $data;
89 if (is_object($value) && isset($value->$fieldName)) {
91 $discriminatorValue = $value->$fieldName;
92 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
93 return self::$discriminatorClasses[$discriminatorValue];
96 if (is_array($value) && isset($value[$fieldName])) {
98 $discriminatorValue = $value[$fieldName];
99 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
100 return self::$discriminatorClasses[$discriminatorValue];
105 $type = ProjectUpdateActionModel::class;