WarrantyNoticeConfigurationService
in package
implements
WarrantyNoticeConfigurationService
Class ConfigurationService
Interfaces, Classes and Traits
- WarrantyNoticeConfigurationService
- Interface WarrantyNoticeConfigurationService
Table of Contents
- PRODUCT_CONDITION_NOTICE_IS_MANDATORY = 'product_warranty_notice_is_mandatory'
- PRODUCT_CONDITION_NOTICE_TEXT = 'product_warranty_notice_text/'
- SHOW_PRODUCT_CONDITION_NOTICE = 'show_product_warranty_notice'
- $configurationStorage : ConfigurationStorage
- __construct() : mixed
- deleteStoredConfiguration() : void
- Deletes all stored module configurations.
- disableWarrantyNotice() : void
- Disables the product warranty notice in the checkout.
- enableWarrantyNotice() : void
- Enables the product warranty notice in the checkout.
- getAllWarrantyNoticeTexts() : array<string|int, string>
- Returns all product warranty notice texts.
- getWarrantyNoticeText() : string
- Returns the product warranty notice text shown in the checkout process.
- isWarrantyNoticeEnabled() : bool
- Returns the "product warranty notice is enabled" state.
- isWarrantyNoticeMandatory() : bool
- Returns the "product warranty notice is mandatory" state.
- setWarrantyNoticeAsMandatory() : void
- Marks the product warranty notice as mandatory.
- setWarrantyNoticeAsNotMandatory() : void
- Marks the product warranty notice as not mandatory.
- setWarrantyNoticeText() : void
- Sets the product warranty notice text shown in the checkout process.
- setWarrantyNoticeTexts() : void
- Sets the product warranty notice texts shown in the checkout process.
Constants
PRODUCT_CONDITION_NOTICE_IS_MANDATORY
private
mixed
PRODUCT_CONDITION_NOTICE_IS_MANDATORY
= 'product_warranty_notice_is_mandatory'
PRODUCT_CONDITION_NOTICE_TEXT
private
mixed
PRODUCT_CONDITION_NOTICE_TEXT
= 'product_warranty_notice_text/'
SHOW_PRODUCT_CONDITION_NOTICE
private
mixed
SHOW_PRODUCT_CONDITION_NOTICE
= 'show_product_warranty_notice'
Properties
$configurationStorage
private
ConfigurationStorage
$configurationStorage
Methods
__construct()
public
__construct(ConfigurationStorage $configurationStorage) : mixed
Parameters
- $configurationStorage : ConfigurationStorage
Return values
mixed —deleteStoredConfiguration()
Deletes all stored module configurations.
public
deleteStoredConfiguration() : void
Tags
Return values
void —disableWarrantyNotice()
Disables the product warranty notice in the checkout.
public
disableWarrantyNotice() : void
Tags
Return values
void —enableWarrantyNotice()
Enables the product warranty notice in the checkout.
public
enableWarrantyNotice() : void
Tags
Return values
void —getAllWarrantyNoticeTexts()
Returns all product warranty notice texts.
public
getAllWarrantyNoticeTexts() : array<string|int, string>
Tags
Return values
array<string|int, string> —getWarrantyNoticeText()
Returns the product warranty notice text shown in the checkout process.
public
getWarrantyNoticeText(string $languageCode) : string
Parameters
- $languageCode : string
Tags
Return values
string —isWarrantyNoticeEnabled()
Returns the "product warranty notice is enabled" state.
public
isWarrantyNoticeEnabled() : bool
Tags
Return values
bool —isWarrantyNoticeMandatory()
Returns the "product warranty notice is mandatory" state.
public
isWarrantyNoticeMandatory() : bool
Tags
Return values
bool —setWarrantyNoticeAsMandatory()
Marks the product warranty notice as mandatory.
public
setWarrantyNoticeAsMandatory() : void
Tags
Return values
void —setWarrantyNoticeAsNotMandatory()
Marks the product warranty notice as not mandatory.
public
setWarrantyNoticeAsNotMandatory() : void
Tags
Return values
void —setWarrantyNoticeText()
Sets the product warranty notice text shown in the checkout process.
public
setWarrantyNoticeText(string $languageCode, string $text) : void
Parameters
- $languageCode : string
- $text : string
Tags
Return values
void —setWarrantyNoticeTexts()
Sets the product warranty notice texts shown in the checkout process.
public
setWarrantyNoticeTexts(array<string|int, mixed> $texts) : void
Parameters
- $texts : array<string|int, mixed>