File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ class Item
2222 */
2323 protected $ sku ;
2424
25+ /**
26+ * @var string
27+ */
28+ protected $ channelSku ;
29+
2530 /**
2631 * @var string
2732 */
@@ -96,6 +101,14 @@ public function getSku(): ?string
96101 return $ this ->sku ;
97102 }
98103
104+ /**
105+ * @return string|null
106+ */
107+ public function getChannelSku (): ?string
108+ {
109+ return $ this ->channelSku ;
110+ }
111+
99112 /**
100113 * @param string $sku
101114 * @return Item
@@ -106,6 +119,16 @@ public function setSku(string $sku): Item
106119 return $ this ;
107120 }
108121
122+ /**
123+ * @param string $channelSku
124+ * @return Item
125+ */
126+ public function setChannelSku (string $ channelSku ): Item
127+ {
128+ $ this ->channelSku = $ channelSku ;
129+ return $ this ;
130+ }
131+
109132 /**
110133 * @return string|null
111134 */
@@ -229,6 +252,7 @@ public function getRawData(): array
229252 'quantity ' => $ this ->getQuantity (),
230253 'billing_text ' => $ this ->getBillingText (),
231254 'sku ' => $ this ->getSku (),
255+ 'channel_sku ' => $ this ->getChannelSku (),
232256 'transfer_price ' => $ this ->getTransferPrice (),
233257 ];
234258 }
Original file line number Diff line number Diff line change @@ -636,6 +636,7 @@ public function fillFromSimpleXMLElement(SimpleXMLElement $xmlElement)
636636 $ item ->setId ((int )$ xmlItem ->TB_ID );
637637 $ item ->setChannelId ((string )$ xmlItem ->CHANNEL_ID );
638638 $ item ->setSku ((string )$ xmlItem ->SKU );
639+ $ item ->setChannelSku ((string )$ xmlItem ->CHANNEL_SKU );
639640 $ item ->setEan ((string )$ xmlItem ->EAN );
640641 $ item ->setQuantity ((int )$ xmlItem ->QUANTITY );
641642 $ item ->setBillingText ((string )$ xmlItem ->BILLING_TEXT );
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ public function testOrderGetRawData(): void
7878 ->setQuantity (10 )
7979 ->setBillingText ('article test ' )
8080 ->setSku ('12345 ' )
81+ ->setChannelSku ('54321 ' )
8182 ->setChannelId ('12345 ' )
8283 ->setTransferPrice (50.0 );
8384 $ order ->setItems ([$ item ]);
@@ -181,6 +182,7 @@ public function testOrderGetRawData(): void
181182 'quantity ' => 10 ,
182183 'billing_text ' => 'article test ' ,
183184 'sku ' => '12345 ' ,
185+ 'channel_sku ' => '54321 ' ,
184186 'transfer_price ' => 50.0
185187 ]
186188 ],
You can’t perform that action at this time.
0 commit comments