22 $productSku =
'bundle-product';
33 $this->assertArrayHasKey(0,
$result);
34 $this->assertArrayHasKey(
'option_id',
$result[0]);
35 $this->assertArrayHasKey(
'is_default',
$result[0]);
36 $this->assertArrayHasKey(
'can_change_quantity',
$result[0]);
37 $this->assertArrayHasKey(
'price',
$result[0]);
38 $this->assertArrayHasKey(
'price_type',
$result[0]);
39 $this->assertNotNull(
$result[0][
'id']);
46 $this->assertEquals($expected,
$result);
54 $productSku =
'bundle-product';
67 $productSku =
'bundle-product';
73 'sku' =>
'virtual-product',
80 'can_change_quantity' => 1,
84 $this->assertGreaterThan(0, $childId);
93 $productSku =
'bundle-product';
114 $resourcePath = self::RESOURCE_PATH .
'/:sku/links/:id';
117 'resourcePath' => str_replace(
127 'operation' => self::SERVICE_NAME .
'SaveChild',
144 $resourcePath = self::RESOURCE_PATH .
'/:sku/links/:optionId';
147 'resourcePath' => str_replace(
148 [
':sku',
':optionId'],
157 'operation' => self::SERVICE_NAME .
'AddChildByProductSku',
166 protected function getProductOptions(
$productId)
178 $resourcePath = self::RESOURCE_PATH .
'/%s/options/%s/children/%s';
181 'resourcePath' => sprintf($resourcePath, $productSku,
$optionId, $childSku),
187 'operation' => self::SERVICE_NAME .
'removeChild',
202 'resourcePath' => self::RESOURCE_PATH .
'/' . $productSku .
'/children',
208 'operation' => self::SERVICE_NAME .
'getChildren',
211 return $this->
_webApiCall($serviceInfo, [
'productSku' => $productSku]);
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
removeChild($productSku, $optionId, $childSku)
static getObjectManager()