Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getCarrierCode () | |
setCarrierCode ($carrierCode) | |
getMethodCode () | |
setMethodCode ($methodCode) | |
getCarrierTitle () | |
setCarrierTitle ($carrierTitle) | |
getMethodTitle () | |
setMethodTitle ($methodTitle) | |
getAmount () | |
setAmount ($amount) | |
getBaseAmount () | |
setBaseAmount ($baseAmount) | |
getAvailable () | |
setAvailable ($available) | |
getExtensionAttributes () | |
setExtensionAttributes (\Magento\Quote\Api\Data\ShippingMethodExtensionInterface $extensionAttributes) | |
getErrorMessage () | |
setErrorMessage ($errorMessage) | |
getPriceExclTax () | |
setPriceExclTax ($priceExclTax) | |
getPriceInclTax () | |
setPriceInclTax ($priceInclTax) | |
Data Fields | |
const | KEY_CARRIER_CODE = 'carrier_code' |
const | KEY_METHOD_CODE = 'method_code' |
const | KEY_CARRIER_TITLE = 'carrier_title' |
const | KEY_METHOD_TITLE = 'method_title' |
const | KEY_SHIPPING_AMOUNT = 'amount' |
const | KEY_BASE_SHIPPING_AMOUNT = 'base_amount' |
const | KEY_AVAILABLE = 'available' |
const | KEY_ERROR_MESSAGE = 'error_message' |
const | KEY_PRICE_EXCL_TAX = 'price_excl_tax' |
const | KEY_PRICE_INCL_TAX = 'price_incl_tax' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Interface ShippingMethodInterface @api
Definition at line 13 of file ShippingMethodInterface.php.
getAmount | ( | ) |
Returns the shipping amount in store currency.
Implemented in ShippingMethod.
getAvailable | ( | ) |
Returns the value of the availability flag for the current shipping method.
Implemented in ShippingMethod.
getBaseAmount | ( | ) |
Returns the shipping amount in base currency.
Implemented in ShippingMethod.
getCarrierCode | ( | ) |
Returns the shipping carrier code.
Implemented in ShippingMethod.
getCarrierTitle | ( | ) |
Returns the shipping carrier title.
Implemented in ShippingMethod.
getErrorMessage | ( | ) |
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implemented in ShippingMethod.
getMethodCode | ( | ) |
Returns the shipping method code.
Implemented in ShippingMethod.
getMethodTitle | ( | ) |
Returns the shipping method title.
Implemented in ShippingMethod.
getPriceExclTax | ( | ) |
getPriceInclTax | ( | ) |
setAmount | ( | $amount | ) |
Sets the shipping amount in store currency.
float | $amount |
Implemented in ShippingMethod.
setAvailable | ( | $available | ) |
Sets the value of the availability flag for the current shipping method.
bool | $available |
Implemented in ShippingMethod.
setBaseAmount | ( | $baseAmount | ) |
Sets the shipping amount in base currency.
float | $baseAmount |
Implemented in ShippingMethod.
setCarrierCode | ( | $carrierCode | ) |
Sets the shipping carrier code.
string | $carrierCode |
Implemented in ShippingMethod.
setCarrierTitle | ( | $carrierTitle | ) |
Sets the shipping carrier title.
string | $carrierTitle |
Implemented in ShippingMethod.
setErrorMessage | ( | $errorMessage | ) |
setExtensionAttributes | ( | \Magento\Quote\Api\Data\ShippingMethodExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
\Magento\Quote\Api\Data\ShippingMethodExtensionInterface | $extensionAttributes |
setMethodCode | ( | $methodCode | ) |
Sets the shipping method code.
string | $methodCode |
Implemented in ShippingMethod.
setMethodTitle | ( | $methodTitle | ) |
Sets the shipping method title.
string | $methodTitle |
Implemented in ShippingMethod.
setPriceExclTax | ( | $priceExclTax | ) |
Set a shipping price excl tax.
float | $priceExclTax |
Implemented in ShippingMethod.
setPriceInclTax | ( | $priceInclTax | ) |
Set a shipping price incl tax.
float | $priceInclTax |
Implemented in ShippingMethod.
const KEY_AVAILABLE = 'available' |
Available.
Definition at line 48 of file ShippingMethodInterface.php.
const KEY_BASE_SHIPPING_AMOUNT = 'base_amount' |
Shipping amount in base currency.
Definition at line 43 of file ShippingMethodInterface.php.
const KEY_CARRIER_CODE = 'carrier_code' |
Shipping carrier code.
Definition at line 18 of file ShippingMethodInterface.php.
const KEY_CARRIER_TITLE = 'carrier_title' |
Shipping carrier title.
Definition at line 28 of file ShippingMethodInterface.php.
const KEY_ERROR_MESSAGE = 'error_message' |
Shipping error message.
Definition at line 53 of file ShippingMethodInterface.php.
const KEY_METHOD_CODE = 'method_code' |
Shipping method code.
Definition at line 23 of file ShippingMethodInterface.php.
const KEY_METHOD_TITLE = 'method_title' |
Shipping method title.
Definition at line 33 of file ShippingMethodInterface.php.
const KEY_PRICE_EXCL_TAX = 'price_excl_tax' |
Shipping error message.
Definition at line 58 of file ShippingMethodInterface.php.
const KEY_PRICE_INCL_TAX = 'price_incl_tax' |
Shipping error message.
Definition at line 63 of file ShippingMethodInterface.php.
const KEY_SHIPPING_AMOUNT = 'amount' |
Shipping amount in store currency.
Definition at line 38 of file ShippingMethodInterface.php.