ShippingRateService
in package
Class ShippingRateService
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $loadedRates : mixed
Methods
- __construct() : mixed
- ShippingRateService constructor.
- getRepo() : BigbuyShippingRateRepository
- getShippingRate() : void
- Get shipping rate and carrier
- isEligibleChrono() : mixed
- isEligibleGls() : mixed
- isEligibleTnt() : mixed
- save() : BigbuyShippingRate
- Save The Entity
- loadAllRates() : mixed
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$loadedRates
private
mixed
$loadedRates
= []
Methods
__construct()
ShippingRateService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
getRepo()
public
getRepo() : BigbuyShippingRateRepository
Return values
BigbuyShippingRateRepositorygetShippingRate()
Get shipping rate and carrier
public
getShippingRate(mixed $weight, mixed $width, mixed $height, mixed $depth, mixed $countryId) : void
Parameters
- $weight : mixed
- $width : mixed
- $height : mixed
- $depth : mixed
- $countryId : mixed
isEligibleChrono()
public
isEligibleChrono(mixed $weight, mixed $width, mixed $height, mixed $depth) : mixed
Parameters
- $weight : mixed
- $width : mixed
- $height : mixed
- $depth : mixed
isEligibleGls()
public
isEligibleGls(mixed $width, mixed $height, mixed $depth) : mixed
Parameters
- $width : mixed
- $height : mixed
- $depth : mixed
isEligibleTnt()
public
isEligibleTnt(mixed $width, mixed $height, mixed $depth) : mixed
Parameters
- $width : mixed
- $height : mixed
- $depth : mixed
save()
Save The Entity
public
save(BigbuyShippingRate $bigbuyShippingRate) : BigbuyShippingRate
Parameters
- $bigbuyShippingRate : BigbuyShippingRate
Return values
BigbuyShippingRateloadAllRates()
private
loadAllRates() : mixed