commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
MessagePayloadModel.php
1 <?php
2 
3 declare(strict_types=1);
10 
15 use stdClass;
16 
20 final class MessagePayloadModel extends JsonObjectModel implements MessagePayload
21 {
22  public const DISCRIMINATOR_VALUE = '';
27  protected $type;
28 
33  private static $discriminatorClasses = [
34  'ApprovalFlowApproved' => ApprovalFlowApprovedMessagePayloadModel::class,
35  'ApprovalFlowCompleted' => ApprovalFlowCompletedMessagePayloadModel::class,
36  'ApprovalFlowCreated' => ApprovalFlowCreatedMessagePayloadModel::class,
37  'ApprovalFlowRejected' => ApprovalFlowRejectedMessagePayloadModel::class,
38  'ApprovalRuleApproversSet' => ApprovalRuleApproversSetMessagePayloadModel::class,
39  'ApprovalRuleCreated' => ApprovalRuleCreatedMessagePayloadModel::class,
40  'ApprovalRuleDescriptionSet' => ApprovalRuleDescriptionSetMessagePayloadModel::class,
41  'ApprovalRuleKeySet' => ApprovalRuleKeySetMessagePayloadModel::class,
42  'ApprovalRuleNameSet' => ApprovalRuleNameSetMessagePayloadModel::class,
43  'ApprovalRulePredicateSet' => ApprovalRulePredicateSetMessagePayloadModel::class,
44  'ApprovalRuleRequestersSet' => ApprovalRuleRequestersSetMessagePayloadModel::class,
45  'ApprovalRuleStatusSet' => ApprovalRuleStatusSetMessagePayloadModel::class,
46  'AssociateRoleBuyerAssignableChanged' => AssociateRoleBuyerAssignableChangedMessagePayloadModel::class,
47  'AssociateRoleCreated' => AssociateRoleCreatedMessagePayloadModel::class,
48  'AssociateRoleDeleted' => AssociateRoleDeletedMessagePayloadModel::class,
49  'AssociateRoleNameSet' => AssociateRoleNameChangedMessagePayloadModel::class,
50  'AssociateRolePermissionAdded' => AssociateRolePermissionAddedMessagePayloadModel::class,
51  'AssociateRolePermissionRemoved' => AssociateRolePermissionRemovedMessagePayloadModel::class,
52  'AssociateRolePermissionsSet' => AssociateRolePermissionsSetMessagePayloadModel::class,
53  'BusinessUnitAddressAdded' => BusinessUnitAddressAddedMessagePayloadModel::class,
54  'BusinessUnitAddressChanged' => BusinessUnitAddressChangedMessagePayloadModel::class,
55  'BusinessUnitAddressCustomFieldAdded' => BusinessUnitAddressCustomFieldAddedMessagePayloadModel::class,
56  'BusinessUnitAddressCustomFieldChanged' => BusinessUnitAddressCustomFieldChangedMessagePayloadModel::class,
57  'BusinessUnitAddressCustomFieldRemoved' => BusinessUnitAddressCustomFieldRemovedMessagePayloadModel::class,
58  'BusinessUnitAddressCustomTypeRemoved' => BusinessUnitAddressCustomTypeRemovedMessagePayloadModel::class,
59  'BusinessUnitAddressCustomTypeSet' => BusinessUnitAddressCustomTypeSetMessagePayloadModel::class,
60  'BusinessUnitAddressRemoved' => BusinessUnitAddressRemovedMessagePayloadModel::class,
61  'BusinessUnitApprovalRuleModeChanged' => BusinessUnitApprovalRuleModeChangedMessagePayloadModel::class,
62  'BusinessUnitAssociateAdded' => BusinessUnitAssociateAddedMessagePayloadModel::class,
63  'BusinessUnitAssociateChanged' => BusinessUnitAssociateChangedMessagePayloadModel::class,
64  'BusinessUnitAssociateModeChanged' => BusinessUnitAssociateModeChangedMessagePayloadModel::class,
65  'BusinessUnitAssociateRemoved' => BusinessUnitAssociateRemovedMessagePayloadModel::class,
66  'BusinessUnitAssociatesSet' => BusinessUnitAssociatesSetMessagePayloadModel::class,
67  'BusinessUnitBillingAddressAdded' => BusinessUnitBillingAddressAddedMessagePayloadModel::class,
68  'BusinessUnitBillingAddressRemoved' => BusinessUnitBillingAddressRemovedMessagePayloadModel::class,
69  'BusinessUnitContactEmailSet' => BusinessUnitContactEmailSetMessagePayloadModel::class,
70  'BusinessUnitCreated' => BusinessUnitCreatedMessagePayloadModel::class,
71  'BusinessUnitCustomFieldAdded' => BusinessUnitCustomFieldAddedMessagePayloadModel::class,
72  'BusinessUnitCustomFieldChanged' => BusinessUnitCustomFieldChangedMessagePayloadModel::class,
73  'BusinessUnitCustomFieldRemoved' => BusinessUnitCustomFieldRemovedMessagePayloadModel::class,
74  'BusinessUnitCustomTypeRemoved' => BusinessUnitCustomTypeRemovedMessagePayloadModel::class,
75  'BusinessUnitCustomTypeSet' => BusinessUnitCustomTypeSetMessagePayloadModel::class,
76  'BusinessUnitDefaultBillingAddressSet' => BusinessUnitDefaultBillingAddressSetMessagePayloadModel::class,
77  'BusinessUnitDefaultShippingAddressSet' => BusinessUnitDefaultShippingAddressSetMessagePayloadModel::class,
78  'BusinessUnitDeleted' => BusinessUnitDeletedMessagePayloadModel::class,
79  'BusinessUnitNameChanged' => BusinessUnitNameChangedMessagePayloadModel::class,
80  'BusinessUnitParentChanged' => BusinessUnitParentChangedMessagePayloadModel::class,
81  'BusinessUnitShippingAddressAdded' => BusinessUnitShippingAddressAddedMessagePayloadModel::class,
82  'BusinessUnitShippingAddressRemoved' => BusinessUnitShippingAddressRemovedMessagePayloadModel::class,
83  'BusinessUnitStatusChanged' => BusinessUnitStatusChangedMessagePayloadModel::class,
84  'BusinessUnitStoreAdded' => BusinessUnitStoreAddedMessagePayloadModel::class,
85  'BusinessUnitStoreModeChanged' => BusinessUnitStoreModeChangedMessagePayloadModel::class,
86  'BusinessUnitStoreRemoved' => BusinessUnitStoreRemovedMessagePayloadModel::class,
87  'BusinessUnitStoresSet' => BusinessUnitStoresSetMessagePayloadModel::class,
88  'CartDiscountCreated' => CartDiscountCreatedMessagePayloadModel::class,
89  'CartDiscountDeleted' => CartDiscountDeletedMessagePayloadModel::class,
90  'CartDiscountStoreAdded' => CartDiscountStoreAddedMessagePayloadModel::class,
91  'CartDiscountStoreRemoved' => CartDiscountStoreRemovedMessagePayloadModel::class,
92  'CartDiscountStoresSet' => CartDiscountStoresSetMessagePayloadModel::class,
93  'CategoryCreated' => CategoryCreatedMessagePayloadModel::class,
94  'CategorySlugChanged' => CategorySlugChangedMessagePayloadModel::class,
95  'CustomLineItemStateTransition' => CustomLineItemStateTransitionMessagePayloadModel::class,
96  'CustomerAddressAdded' => CustomerAddressAddedMessagePayloadModel::class,
97  'CustomerAddressChanged' => CustomerAddressChangedMessagePayloadModel::class,
98  'CustomerAddressCustomFieldAdded' => CustomerAddressCustomFieldAddedMessagePayloadModel::class,
99  'CustomerAddressCustomFieldChanged' => CustomerAddressCustomFieldChangedMessagePayloadModel::class,
100  'CustomerAddressCustomFieldRemoved' => CustomerAddressCustomFieldRemovedMessagePayloadModel::class,
101  'CustomerAddressCustomTypeRemoved' => CustomerAddressCustomTypeRemovedMessagePayloadModel::class,
102  'CustomerAddressCustomTypeSet' => CustomerAddressCustomTypeSetMessagePayloadModel::class,
103  'CustomerAddressRemoved' => CustomerAddressRemovedMessagePayloadModel::class,
104  'CustomerCompanyNameSet' => CustomerCompanyNameSetMessagePayloadModel::class,
105  'CustomerCreated' => CustomerCreatedMessagePayloadModel::class,
106  'CustomerCustomFieldAdded' => CustomerCustomFieldAddedMessagePayloadModel::class,
107  'CustomerCustomFieldChanged' => CustomerCustomFieldChangedMessagePayloadModel::class,
108  'CustomerCustomFieldRemoved' => CustomerCustomFieldRemovedMessagePayloadModel::class,
109  'CustomerCustomTypeRemoved' => CustomerCustomTypeRemovedMessagePayloadModel::class,
110  'CustomerCustomTypeSet' => CustomerCustomTypeSetMessagePayloadModel::class,
111  'CustomerDateOfBirthSet' => CustomerDateOfBirthSetMessagePayloadModel::class,
112  'CustomerDeleted' => CustomerDeletedMessagePayloadModel::class,
113  'CustomerEmailChanged' => CustomerEmailChangedMessagePayloadModel::class,
114  'CustomerEmailTokenCreated' => CustomerEmailTokenCreatedMessagePayloadModel::class,
115  'CustomerEmailVerified' => CustomerEmailVerifiedMessagePayloadModel::class,
116  'CustomerFirstNameSet' => CustomerFirstNameSetMessagePayloadModel::class,
117  'CustomerGroupCustomFieldAdded' => CustomerGroupCustomFieldAddedMessagePayloadModel::class,
118  'CustomerGroupCustomFieldChanged' => CustomerGroupCustomFieldChangedMessagePayloadModel::class,
119  'CustomerGroupCustomFieldRemoved' => CustomerGroupCustomFieldRemovedMessagePayloadModel::class,
120  'CustomerGroupCustomTypeRemoved' => CustomerGroupCustomTypeRemovedMessagePayloadModel::class,
121  'CustomerGroupCustomTypeSet' => CustomerGroupCustomTypeSetMessagePayloadModel::class,
122  'CustomerGroupSet' => CustomerGroupSetMessagePayloadModel::class,
123  'CustomerLastNameSet' => CustomerLastNameSetMessagePayloadModel::class,
124  'CustomerPasswordTokenCreated' => CustomerPasswordTokenCreatedMessagePayloadModel::class,
125  'CustomerPasswordUpdated' => CustomerPasswordUpdatedMessagePayloadModel::class,
126  'CustomerTitleSet' => CustomerTitleSetMessagePayloadModel::class,
127  'DeliveryAdded' => DeliveryAddedMessagePayloadModel::class,
128  'DeliveryAddressSet' => DeliveryAddressSetMessagePayloadModel::class,
129  'DeliveryCustomFieldAdded' => DeliveryCustomFieldAddedMessagePayloadModel::class,
130  'DeliveryCustomFieldChanged' => DeliveryCustomFieldChangedMessagePayloadModel::class,
131  'DeliveryCustomFieldRemoved' => DeliveryCustomFieldRemovedMessagePayloadModel::class,
132  'DeliveryCustomTypeRemoved' => DeliveryCustomTypeRemovedMessagePayloadModel::class,
133  'DeliveryCustomTypeSet' => DeliveryCustomTypeSetMessagePayloadModel::class,
134  'DeliveryItemsUpdated' => DeliveryItemsUpdatedMessagePayloadModel::class,
135  'DeliveryRemoved' => DeliveryRemovedMessagePayloadModel::class,
136  'DiscountCodeCreated' => DiscountCodeCreatedMessagePayloadModel::class,
137  'DiscountCodeDeleted' => DiscountCodeDeletedMessagePayloadModel::class,
138  'DiscountCodeKeySet' => DiscountCodeKeySetMessagePayloadModel::class,
139  'InventoryEntryCreated' => InventoryEntryCreatedMessagePayloadModel::class,
140  'InventoryEntryDeleted' => InventoryEntryDeletedMessagePayloadModel::class,
141  'InventoryEntryQuantitySet' => InventoryEntryQuantitySetMessagePayloadModel::class,
142  'LineItemStateTransition' => LineItemStateTransitionMessagePayloadModel::class,
143  'OrderBillingAddressSet' => OrderBillingAddressSetMessagePayloadModel::class,
144  'OrderCreated' => OrderCreatedMessagePayloadModel::class,
145  'OrderCustomFieldAdded' => OrderCustomFieldAddedMessagePayloadModel::class,
146  'OrderCustomFieldChanged' => OrderCustomFieldChangedMessagePayloadModel::class,
147  'OrderCustomFieldRemoved' => OrderCustomFieldRemovedMessagePayloadModel::class,
148  'OrderCustomLineItemAdded' => OrderCustomLineItemAddedMessagePayloadModel::class,
149  'OrderCustomLineItemDiscountSet' => OrderCustomLineItemDiscountSetMessagePayloadModel::class,
150  'OrderCustomLineItemQuantityChanged' => OrderCustomLineItemQuantityChangedMessagePayloadModel::class,
151  'OrderCustomLineItemRemoved' => OrderCustomLineItemRemovedMessagePayloadModel::class,
152  'OrderCustomTypeRemoved' => OrderCustomTypeRemovedMessagePayloadModel::class,
153  'OrderCustomTypeSet' => OrderCustomTypeSetMessagePayloadModel::class,
154  'OrderCustomerEmailSet' => OrderCustomerEmailSetMessagePayloadModel::class,
155  'OrderCustomerGroupSet' => OrderCustomerGroupSetMessagePayloadModel::class,
156  'OrderCustomerSet' => OrderCustomerSetMessagePayloadModel::class,
157  'OrderDeleted' => OrderDeletedMessagePayloadModel::class,
158  'OrderDiscountCodeAdded' => OrderDiscountCodeAddedMessagePayloadModel::class,
159  'OrderDiscountCodeRemoved' => OrderDiscountCodeRemovedMessagePayloadModel::class,
160  'OrderDiscountCodeStateSet' => OrderDiscountCodeStateSetMessagePayloadModel::class,
161  'OrderEditApplied' => OrderEditAppliedMessagePayloadModel::class,
162  'OrderImported' => OrderImportedMessagePayloadModel::class,
163  'OrderLineItemAdded' => OrderLineItemAddedMessagePayloadModel::class,
164  'OrderLineItemDiscountSet' => OrderLineItemDiscountSetMessagePayloadModel::class,
165  'OrderLineItemDistributionChannelSet' => OrderLineItemDistributionChannelSetMessagePayloadModel::class,
166  'OrderLineItemRemoved' => OrderLineItemRemovedMessagePayloadModel::class,
167  'OrderPaymentAdded' => OrderPaymentAddedMessagePayloadModel::class,
168  'OrderPaymentStateChanged' => OrderPaymentStateChangedMessagePayloadModel::class,
169  'OrderPurchaseOrderNumberSet' => OrderPurchaseOrderNumberSetMessagePayloadModel::class,
170  'OrderReturnShipmentStateChanged' => OrderReturnShipmentStateChangedMessagePayloadModel::class,
171  'OrderShipmentStateChanged' => OrderShipmentStateChangedMessagePayloadModel::class,
172  'OrderShippingAddressSet' => OrderShippingAddressSetMessagePayloadModel::class,
173  'OrderShippingInfoSet' => OrderShippingInfoSetMessagePayloadModel::class,
174  'OrderShippingRateInputSet' => OrderShippingRateInputSetMessagePayloadModel::class,
175  'OrderStateChanged' => OrderStateChangedMessagePayloadModel::class,
176  'OrderStateTransition' => OrderStateTransitionMessagePayloadModel::class,
177  'OrderStoreSet' => OrderStoreSetMessagePayloadModel::class,
178  'ParcelAddedToDelivery' => ParcelAddedToDeliveryMessagePayloadModel::class,
179  'ParcelItemsUpdated' => ParcelItemsUpdatedMessagePayloadModel::class,
180  'ParcelMeasurementsUpdated' => ParcelMeasurementsUpdatedMessagePayloadModel::class,
181  'ParcelRemovedFromDelivery' => ParcelRemovedFromDeliveryMessagePayloadModel::class,
182  'ParcelTrackingDataUpdated' => ParcelTrackingDataUpdatedMessagePayloadModel::class,
183  'PaymentCreated' => PaymentCreatedMessagePayloadModel::class,
184  'PaymentInteractionAdded' => PaymentInteractionAddedMessagePayloadModel::class,
185  'PaymentStatusInterfaceCodeSet' => PaymentStatusInterfaceCodeSetMessagePayloadModel::class,
186  'PaymentStatusStateTransition' => PaymentStatusStateTransitionMessagePayloadModel::class,
187  'PaymentTransactionAdded' => PaymentTransactionAddedMessagePayloadModel::class,
188  'PaymentTransactionStateChanged' => PaymentTransactionStateChangedMessagePayloadModel::class,
189  'ProductAddedToCategory' => ProductAddedToCategoryMessagePayloadModel::class,
190  'ProductCreated' => ProductCreatedMessagePayloadModel::class,
191  'ProductDeleted' => ProductDeletedMessagePayloadModel::class,
192  'ProductImageAdded' => ProductImageAddedMessagePayloadModel::class,
193  'ProductPriceAdded' => ProductPriceAddedMessagePayloadModel::class,
194  'ProductPriceChanged' => ProductPriceChangedMessagePayloadModel::class,
195  'ProductPriceCustomFieldAdded' => ProductPriceCustomFieldAddedMessagePayloadModel::class,
196  'ProductPriceCustomFieldChanged' => ProductPriceCustomFieldChangedMessagePayloadModel::class,
197  'ProductPriceCustomFieldRemoved' => ProductPriceCustomFieldRemovedMessagePayloadModel::class,
198  'ProductPriceCustomFieldsRemoved' => ProductPriceCustomFieldsRemovedMessagePayloadModel::class,
199  'ProductPriceCustomFieldsSet' => ProductPriceCustomFieldsSetMessagePayloadModel::class,
200  'ProductPriceDiscountsSet' => ProductPriceDiscountsSetMessagePayloadModel::class,
201  'ProductPriceExternalDiscountSet' => ProductPriceExternalDiscountSetMessagePayloadModel::class,
202  'ProductPriceKeySet' => ProductPriceKeySetMessagePayloadModel::class,
203  'ProductPriceModeSet' => ProductPriceModeSetMessagePayloadModel::class,
204  'ProductPriceRemoved' => ProductPriceRemovedMessagePayloadModel::class,
205  'ProductPricesSet' => ProductPricesSetMessagePayloadModel::class,
206  'ProductPublished' => ProductPublishedMessagePayloadModel::class,
207  'ProductRemovedFromCategory' => ProductRemovedFromCategoryMessagePayloadModel::class,
208  'ProductRevertedStagedChanges' => ProductRevertedStagedChangesMessagePayloadModel::class,
209  'ProductSelectionCreated' => ProductSelectionCreatedMessagePayloadModel::class,
210  'ProductSelectionDeleted' => ProductSelectionDeletedMessagePayloadModel::class,
211  'ProductSelectionProductAdded' => ProductSelectionProductAddedMessagePayloadModel::class,
212  'ProductSelectionProductExcluded' => ProductSelectionProductExcludedMessagePayloadModel::class,
213  'ProductSelectionProductRemoved' => ProductSelectionProductRemovedMessagePayloadModel::class,
214  'ProductSelectionVariantExclusionChanged' => ProductSelectionVariantExclusionChangedMessagePayloadModel::class,
215  'ProductSelectionVariantSelectionChanged' => ProductSelectionVariantSelectionChangedMessagePayloadModel::class,
216  'ProductSlugChanged' => ProductSlugChangedMessagePayloadModel::class,
217  'ProductStateTransition' => ProductStateTransitionMessagePayloadModel::class,
218  'ProductTailoringCreated' => ProductTailoringCreatedMessagePayloadModel::class,
219  'ProductTailoringDeleted' => ProductTailoringDeletedMessagePayloadModel::class,
220  'ProductTailoringDescriptionSet' => ProductTailoringDescriptionSetMessagePayloadModel::class,
221  'ProductTailoringImageAdded' => ProductTailoringImageAddedMessagePayloadModel::class,
222  'ProductTailoringImagesSet' => ProductTailoringImagesSetMessagePayloadModel::class,
223  'ProductTailoringNameSet' => ProductTailoringNameSetMessagePayloadModel::class,
224  'ProductTailoringPublished' => ProductTailoringPublishedMessagePayloadModel::class,
225  'ProductTailoringSlugSet' => ProductTailoringSlugSetMessagePayloadModel::class,
226  'ProductTailoringUnpublished' => ProductTailoringUnpublishedMessagePayloadModel::class,
227  'ProductUnpublished' => ProductUnpublishedMessagePayloadModel::class,
228  'ProductVariantAdded' => ProductVariantAddedMessagePayloadModel::class,
229  'ProductVariantDeleted' => ProductVariantDeletedMessagePayloadModel::class,
230  'ProductVariantTailoringAdded' => ProductVariantTailoringAddedMessagePayloadModel::class,
231  'ProductVariantTailoringRemoved' => ProductVariantTailoringRemovedMessagePayloadModel::class,
232  'QuoteCreated' => QuoteCreatedMessagePayloadModel::class,
233  'QuoteCustomerChanged' => QuoteCustomerChangedMessagePayloadModel::class,
234  'QuoteDeleted' => QuoteDeletedMessagePayloadModel::class,
235  'QuoteRenegotiationRequested' => QuoteRenegotiationRequestedMessagePayloadModel::class,
236  'QuoteRequestCreated' => QuoteRequestCreatedMessagePayloadModel::class,
237  'QuoteRequestCustomerChanged' => QuoteRequestCustomerChangedMessagePayloadModel::class,
238  'QuoteRequestDeleted' => QuoteRequestDeletedMessagePayloadModel::class,
239  'QuoteRequestStateChanged' => QuoteRequestStateChangedMessagePayloadModel::class,
240  'QuoteRequestStateTransition' => QuoteRequestStateTransitionMessagePayloadModel::class,
241  'QuoteStateChanged' => QuoteStateChangedMessagePayloadModel::class,
242  'QuoteStateTransition' => QuoteStateTransitionMessagePayloadModel::class,
243  'ReturnInfoAdded' => ReturnInfoAddedMessagePayloadModel::class,
244  'ReturnInfoSet' => ReturnInfoSetMessagePayloadModel::class,
245  'ReviewCreated' => ReviewCreatedMessagePayloadModel::class,
246  'ReviewRatingSet' => ReviewRatingSetMessagePayloadModel::class,
247  'ReviewStateTransition' => ReviewStateTransitionMessagePayloadModel::class,
248  'ShoppingListStoreSet' => ShoppingListStoreSetMessagePayloadModel::class,
249  'StagedQuoteCreated' => StagedQuoteCreatedMessagePayloadModel::class,
250  'StagedQuoteDeleted' => StagedQuoteDeletedMessagePayloadModel::class,
251  'StagedQuoteSellerCommentSet' => StagedQuoteSellerCommentSetMessagePayloadModel::class,
252  'StagedQuoteStateChanged' => StagedQuoteStateChangedMessagePayloadModel::class,
253  'StagedQuoteStateTransition' => StagedQuoteStateTransitionMessagePayloadModel::class,
254  'StagedQuoteValidToSet' => StagedQuoteValidToSetMessagePayloadModel::class,
255  'StandalonePriceActiveChanged' => StandalonePriceActiveChangedMessagePayloadModel::class,
256  'StandalonePriceCreated' => StandalonePriceCreatedMessagePayloadModel::class,
257  'StandalonePriceDeleted' => StandalonePriceDeletedMessagePayloadModel::class,
258  'StandalonePriceDiscountSet' => StandalonePriceDiscountSetMessagePayloadModel::class,
259  'StandalonePriceExternalDiscountSet' => StandalonePriceExternalDiscountSetMessagePayloadModel::class,
260  'StandalonePriceKeySet' => StandalonePriceKeySetMessagePayloadModel::class,
261  'StandalonePriceStagedChangesApplied' => StandalonePriceStagedChangesAppliedMessagePayloadModel::class,
262  'StandalonePriceStagedChangesRemoved' => StandalonePriceStagedChangesRemovedMessagePayloadModel::class,
263  'StandalonePriceTierAdded' => StandalonePriceTierAddedMessagePayloadModel::class,
264  'StandalonePriceTierRemoved' => StandalonePriceTierRemovedMessagePayloadModel::class,
265  'StandalonePriceTiersSet' => StandalonePriceTiersSetMessagePayloadModel::class,
266  'StandalonePriceValidFromAndUntilSet' => StandalonePriceValidFromAndUntilSetMessagePayloadModel::class,
267  'StandalonePriceValidFromSet' => StandalonePriceValidFromSetMessagePayloadModel::class,
268  'StandalonePriceValidUntilSet' => StandalonePriceValidUntilSetMessagePayloadModel::class,
269  'StandalonePriceValueChanged' => StandalonePriceValueChangedMessagePayloadModel::class,
270  'StoreCountriesChanged' => StoreCountriesChangedMessagePayloadModel::class,
271  'StoreCreated' => StoreCreatedMessagePayloadModel::class,
272  'StoreDeleted' => StoreDeletedMessagePayloadModel::class,
273  'StoreDistributionChannelsChanged' => StoreDistributionChannelsChangedMessagePayloadModel::class,
274  'StoreLanguagesChanged' => StoreLanguagesChangedMessagePayloadModel::class,
275  'StoreNameSet' => StoreNameSetMessagePayloadModel::class,
276  'StoreProductSelectionsChanged' => StoreProductSelectionsChangedMessagePayloadModel::class,
277  'StoreSupplyChannelsChanged' => StoreSupplyChannelsChangedMessagePayloadModel::class,
278  ];
279 
283  public function __construct(
284  ?string $type = null
285  ) {
286  $this->type = $type;
287  }
288 
293  public function getType()
294  {
295  if (is_null($this->type)) {
297  $data = $this->raw(self::FIELD_TYPE);
298  if (is_null($data)) {
299  return null;
300  }
301  $this->type = (string) $data;
302  }
303 
304  return $this->type;
305  }
306 
307 
308 
309 
310 
315  public static function resolveDiscriminatorClass($value): string
316  {
318  if (is_object($value) && isset($value->$fieldName)) {
320  $discriminatorValue = $value->$fieldName;
321  if (isset(self::$discriminatorClasses[$discriminatorValue])) {
322  return self::$discriminatorClasses[$discriminatorValue];
323  }
324  }
325  if (is_array($value) && isset($value[$fieldName])) {
327  $discriminatorValue = $value[$fieldName];
328  if (isset(self::$discriminatorClasses[$discriminatorValue])) {
329  return self::$discriminatorClasses[$discriminatorValue];
330  }
331  }
332 
334  $type = MessagePayloadModel::class;
335  return $type;
336  }
337 }