Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Quote\Api\CartRepositoryInterface $quoteRepository, Cart\ShippingMethodConverter $converter, \Magento\Customer\Api\AddressRepositoryInterface $addressRepository, \Magento\Quote\Model\Quote\TotalsCollector $totalsCollector, AddressInterfaceFactory $addressFactory=null, QuoteAddressResource $quoteAddressResource=null) | |
![]() | |
estimateByAddress ($cartId, \Magento\Quote\Api\Data\EstimateAddressInterface $address) | |
estimateByAddressId ($cartId, $addressId) | |
getList ($cartId) | |
![]() | |
set ($cartId, $carrierCode, $methodCode) | |
get ($cartId) | |
![]() | |
estimateByExtendedAddress ($cartId, AddressInterface $address) | |
Protected Member Functions | |
getEstimatedRates (\Magento\Quote\Model\Quote $quote, $country, $postcode, $regionId, $region, $address=null) | |
Protected Attributes | |
$quoteRepository | |
$converter | |
$addressRepository | |
$totalsCollector | |
Shipping method read service
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 26 of file ShippingMethodManagement.php.
__construct | ( | \Magento\Quote\Api\CartRepositoryInterface | $quoteRepository, |
Cart\ShippingMethodConverter | $converter, | ||
\Magento\Customer\Api\AddressRepositoryInterface | $addressRepository, | ||
\Magento\Quote\Model\Quote\TotalsCollector | $totalsCollector, | ||
AddressInterfaceFactory | $addressFactory = null , |
||
QuoteAddressResource | $quoteAddressResource = null |
||
) |
Constructor
\Magento\Quote\Api\CartRepositoryInterface | $quoteRepository | |
Cart\ShippingMethodConverter | $converter | |
\Magento\Customer\Api\AddressRepositoryInterface | $addressRepository | |
Quote\TotalsCollector | $totalsCollector | |
AddressInterfaceFactory | null | $addressFactory | |
QuoteAddressResource | null | $quoteAddressResource |
Definition at line 82 of file ShippingMethodManagement.php.
|
protected |
Get estimated rates
Quote | $quote | |
int | $country | |
string | $postcode | |
int | $regionId | |
string | $region | |
\Magento\Framework\Api\ExtensibleDataInterface | null | $address |
Definition at line 271 of file ShippingMethodManagement.php.
|
protected |
Definition at line 50 of file ShippingMethodManagement.php.
|
protected |
Definition at line 43 of file ShippingMethodManagement.php.
|
protected |
Definition at line 36 of file ShippingMethodManagement.php.
|
protected |
Definition at line 55 of file ShippingMethodManagement.php.