6 declare(strict_types=1);
20 const SERVICE_NAME_GET =
'inventoryLowQuantityNotificationApiGetSourceItemConfigurationV1';
29 $sourceItemsForDelete = [
47 'operation' => self::SERVICE_NAME_DELETE .
'Execute',
51 $this->
_webApiCall($serviceInfo, [
'sourceItems' => $sourceItemsForDelete]);
53 $sourceItemConfiguration = $this->getSourceItemConfiguration(
'eu-1',
'SKU-1');
54 $defaultNotifyQtyValue = 1;
56 $defaultNotifyQtyValue,
60 $sourceItemConfiguration = $this->getSourceItemConfiguration(
'eu-2',
'SKU-3');
61 $defaultNotifyQtyValue = 1;
63 $defaultNotifyQtyValue,
73 private function getSourceItemConfiguration(
string $sourceCode,
string $sku)
77 'resourcePath' => self::RESOURCE_PATH .
'/' .
$sourceCode .
'/' . $sku,
82 'operation' => self::SERVICE_NAME_GET .
'Execute',
89 self::assertInternalType(
'array', $sourceItemConfiguration);
90 self::assertNotEmpty($sourceItemConfiguration);
92 return $sourceItemConfiguration;
const INVENTORY_NOTIFY_QTY
_webApiCall( $serviceInfo, $arguments=[], $webApiAdapterCode=null, $storeCode=null, $integration=null)
const SERVICE_NAME_DELETE
testDeleteSourceItemConfiguration()
const RESOURCE_DELETE_PATH