Method | Description | |
---|---|---|
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodTranslationFactory, Doctrine\Common\Persistence\ObjectManager $shippingMethodManager ) | ||
shippingMethodBelongsToTaxCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Taxation\Model\TaxCategoryInterface $taxCategory ) | ||
storeHasDisabledShippingMethodWithFee ( $shippingMethodName, $fee ) | ||
storeHasShippingMethodWithFee ( $shippingMethodName, $fee, Sylius\Component\Addressing\Model\ZoneInterface $zone = null ) | ||
storeHasShippingMethodWithFeeNotAssignedToAnyChannel ( $shippingMethodName, $fee ) | ||
storeHasShippingMethodWithFeePerShipmentForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel ) | ||
storeHasShippingMethodWithFeePerUnitForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel ) | ||
storeShipsEverythingForFree ( Sylius\Component\Addressing\Model\ZoneInterface $zone = null ) | ||
theShippingMethodIsDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod ) | ||
theShippingMethodIsEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod ) | ||
theStoreAllowsShippingMethod ( $name, $code = null, $position = null ) | ||
theStoreAllowsShippingWithAnd ( $firstName, $secondName ) | ||
theStoreHasShippingMethodWithFeePerUnit ( $shippingMethodName, $fee ) | ||
theStoreShipsEverywhereForFree ( ) | ||
theStoreShipsEverywhereForFreeForAllChannels ( array $channels ) | ||
thisShippingMethodIsNamedInLocale ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $name, $locale ) | ||
thisShippingMethodRequiresAtLeastOneUnitMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) | ||
thisShippingMethodRequiresThatAllUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) | ||
thisShippingMethodRequiresThatNoUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) |
Method | Description | |
---|---|---|
createShippingMethod ( string $name, string | null $code = null, integer | null $position = null, Sylius\Component\Addressing\Model\ZoneInterface $zone = null, string $locale = 'en', array $configuration = [], string $calculator = DefaultCalculators::FLAT_RATE, boolean $enabled = true, boolean $addForCurrentChannel = true, array $channels = [] ) : Sylius\Component\Core\Model\ShippingMethodInterface | ||
generateCodeFromNameAndZone ( string $shippingMethodName, string | null $zoneCode = null ) : string | ||
getConfigurationByChannels ( array $channels, integer $amount ) : array |
public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface $shippingMethodRepository, Sylius\Component\Resource\Repository\RepositoryInterface $zoneRepository, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodFactory, Sylius\Component\Resource\Factory\FactoryInterface $shippingMethodTranslationFactory, Doctrine\Common\Persistence\ObjectManager $shippingMethodManager ) | ||
$sharedStorage | Sylius\Behat\Service\SharedStorageInterface | |
$shippingMethodRepository | Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface | |
$zoneRepository | Sylius\Component\Resource\Repository\RepositoryInterface | |
$shippingMethodFactory | Sylius\Component\Resource\Factory\FactoryInterface | |
$shippingMethodTranslationFactory | Sylius\Component\Resource\Factory\FactoryInterface | |
$shippingMethodManager | Doctrine\Common\Persistence\ObjectManager |
public shippingMethodBelongsToTaxCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Taxation\Model\TaxCategoryInterface $taxCategory ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface | |
$taxCategory | Sylius\Component\Taxation\Model\TaxCategoryInterface |
public storeHasDisabledShippingMethodWithFee ( $shippingMethodName, $fee ) |
public storeHasShippingMethodWithFee ( $shippingMethodName, $fee, Sylius\Component\Addressing\Model\ZoneInterface $zone = null ) | ||
$zone | Sylius\Component\Addressing\Model\ZoneInterface |
public storeHasShippingMethodWithFeeNotAssignedToAnyChannel ( $shippingMethodName, $fee ) |
public storeHasShippingMethodWithFeePerShipmentForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel ) | ||
$firstChannel | Sylius\Component\Core\Model\ChannelInterface | |
$secondChannel | Sylius\Component\Core\Model\ChannelInterface |
public storeHasShippingMethodWithFeePerUnitForChannels ( $shippingMethodName, $firstFee, Sylius\Component\Core\Model\ChannelInterface $firstChannel, $secondFee, Sylius\Component\Core\Model\ChannelInterface $secondChannel ) | ||
$firstChannel | Sylius\Component\Core\Model\ChannelInterface | |
$secondChannel | Sylius\Component\Core\Model\ChannelInterface |
public storeShipsEverythingForFree ( Sylius\Component\Addressing\Model\ZoneInterface $zone = null ) | ||
$zone | Sylius\Component\Addressing\Model\ZoneInterface |
public theShippingMethodIsDisabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface |
public theShippingMethodIsEnabled ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface |
public theStoreAllowsShippingMethod ( $name, $code = null, $position = null ) |
public theStoreAllowsShippingWithAnd ( $firstName, $secondName ) |
public theStoreHasShippingMethodWithFeePerUnit ( $shippingMethodName, $fee ) |
public theStoreShipsEverywhereForFreeForAllChannels ( array $channels ) | ||
$channels | array |
public thisShippingMethodIsNamedInLocale ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, $name, $locale ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface |
public thisShippingMethodRequiresAtLeastOneUnitMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface | |
$shippingCategory | Sylius\Component\Shipping\Model\ShippingCategoryInterface |
public thisShippingMethodRequiresThatAllUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface | |
$shippingCategory | Sylius\Component\Shipping\Model\ShippingCategoryInterface |
public thisShippingMethodRequiresThatNoUnitsMatchToShippingCategory ( Sylius\Component\Core\Model\ShippingMethodInterface $shippingMethod, Sylius\Component\Shipping\Model\ShippingCategoryInterface $shippingCategory ) | ||
$shippingMethod | Sylius\Component\Core\Model\ShippingMethodInterface | |
$shippingCategory | Sylius\Component\Shipping\Model\ShippingCategoryInterface |