33 private static $discriminatorClasses = [
34 'addTransaction' => MyPaymentAddTransactionActionModel::class,
35 'changeAmountPlanned' => MyPaymentChangeAmountPlannedActionModel::class,
36 'setCustomField' => MyPaymentSetCustomFieldActionModel::class,
37 'setMethodInfoCustomField' => MyPaymentSetMethodInfoCustomFieldActionModel::class,
38 'setMethodInfoCustomType' => MyPaymentSetMethodInfoCustomTypeActionModel::class,
39 'setMethodInfoInterface' => MyPaymentSetMethodInfoInterfaceActionModel::class,
40 'setMethodInfoInterfaceAccount' => MyPaymentSetMethodInfoInterfaceAccountActionModel::class,
41 'setMethodInfoMethod' => MyPaymentSetMethodInfoMethodActionModel::class,
42 'setMethodInfoName' => MyPaymentSetMethodInfoNameActionModel::class,
43 'setTransactionCustomField' => MyPaymentSetTransactionCustomFieldActionModel::class,
61 if (is_null($this->action)) {
63 $data = $this->
raw(self::FIELD_ACTION);
67 $this->action = (string) $data;
84 if (is_object($value) && isset($value->$fieldName)) {
86 $discriminatorValue = $value->$fieldName;
87 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
88 return self::$discriminatorClasses[$discriminatorValue];
91 if (is_array($value) && isset($value[$fieldName])) {
93 $discriminatorValue = $value[$fieldName];
94 if (isset(self::$discriminatorClasses[$discriminatorValue])) {
95 return self::$discriminatorClasses[$discriminatorValue];
100 $type = MyPaymentUpdateActionModel::class;