77use igorbunov \Checkbox \Mappers \Receipts \ReceiptMapper ;
88use igorbunov \Checkbox \Mappers \Receipts \SellReceiptMapper ;
99use igorbunov \Checkbox \Mappers \Receipts \Taxes \GoodTaxMapper ;
10+ use igorbunov \Checkbox \Models \Receipts \Delivery ;
1011use igorbunov \Checkbox \Models \Receipts \Goods \GoodItemModel ;
1112use igorbunov \Checkbox \Models \Receipts \Goods \GoodModel ;
1213use igorbunov \Checkbox \Models \Receipts \Goods \Goods ;
@@ -34,7 +35,7 @@ public function setUp(): void
3435 'er":"","footer":"","price":5000,"tax":["123123"],"uktzed":""},"quantity":1000,"is_return":false, ' .
3536 '"discounts":[]},{"good":{"code":"vm-124","name":"\u0411\u0438\u043e\u0432\u0430\u043a 2", ' .
3637 '"barcode":"","header":"","footer":"","price":2000,"tax":["123123"],"uktzed":""}, ' .
37- '"quantity":2000,"is_return":false,"discounts":[]}],"delivery":{"email": "[email protected] "}, ' .
38+ '"quantity":2000,"is_return":false,"discounts":[]}],"delivery":{"emails":[ "[email protected] "] }, ' .
3839 '"discounts":[],"payments":[{"type":"CASHLESS","value":"4000","la ' .
3940 'bel":"\u0411\u0435\u0437\u0433\u043e\u0442\u0456\u0432\u043a\u043e\u0432\u0438\u0439"},{"ty ' .
4041 'pe":"CASH","value":"5000","label":"\u0413\u043e\u0442\u0456\u0432\u043a\u043e\u044e"}],"head ' .
@@ -405,7 +406,7 @@ public function testMap(): void
405406 )
406407 ]
407408 ),
408- 409+ new Delivery ([ '[email protected] ' ]) ,
409410 new Payments ([
410411 new CardPaymentPayload (
411412 "4000 " // 40 грн
@@ -472,7 +473,7 @@ public function testMapWithId()
472473 )
473474 ]
474475 ),
475- 476+ new Delivery ([ '[email protected] ' ]) ,
476477 new Payments ([
477478 new CardPaymentPayload (
478479 "4000 " // 40 грн
@@ -496,7 +497,7 @@ public function testMapWithId()
496497 $ this ->assertEquals (json_encode ($ mappedJsonString ), $ result );
497498 }
498499
499- public function testMapReceiptReuslt ()
500+ public function testMapReceiptResult ()
500501 {
501502 $ jsonResponse = json_decode ($ this ->jsonString , true );
502503
0 commit comments