File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,6 +200,14 @@ class Order
200200 */
201201 public $ loyaltyLevel ;
202202
203+ /**
204+ * @var int
205+ *
206+ * @JMS\Type("int")
207+ * @JMS\SerializedName("loyaltyEventDiscountId")
208+ */
209+ public $ loyaltyEventDiscountId ;
210+
203211 /**
204212 * @var \RetailCrm\Api\Model\Entity\Loyalty\LoyaltyEventDiscount
205213 *
Original file line number Diff line number Diff line change @@ -967,6 +967,7 @@ public function testCreate(): void
967967 $ order ->shipmentStore = 'main12 ' ;
968968 $ order ->shipmentDate = (new DateTime ())->add (new DateInterval ('P7D ' ));
969969 $ order ->shipped = false ;
970+ $ order ->loyaltyEventDiscountId = 7 ;
970971 $ order ->customFields = [
971972 "galka " => false ,
972973 "test_number " => 0 ,
@@ -988,6 +989,7 @@ public function testCreate(): void
988989 ],
989990 $ encodedOrder ['items ' ][0 ]['markingObjects ' ]
990991 );
992+ self ::assertSame (7 , $ encodedOrder ['loyaltyEventDiscountId ' ]);
991993 self ::assertArrayNotHasKey ('markingCodes ' , $ encodedOrder ['items ' ][0 ]);
992994
993995 $ mock = static ::createApiMockBuilder ('orders/create ' );
You can’t perform that action at this time.
0 commit comments