class CheckoutSettingsManager implements JQGridInterface, BasicEntityManagerInterface

Class CheckoutSettingsManager is injected as alligator.checkout_settings_manager service. CheckoutSettingsManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait

Properties

protected CheckoutSettingsRepository $repository
protected CheckoutSettingsEventContainer $container
protected array|null $cached List of checkout steps
protected array|null $paymentTypesCached List of payment types
protected bool $pickUpInTheStoreCached Pick up in the store option
protected bool $findMyLocationCached Find my location option
protected array $possiblePaymentTypesCached List of possible payment types
protected bool $oneStepCheckoutCached One step checkout option
protected float|null $freeDeliveryAmountCached Free delivery amount

Methods

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

__construct(CheckoutSettingsRepository $repository, CheckoutSettingsEventContainer $container)

CheckoutSettingsManager constructor.

saveSettings(CheckoutSettings $settings)

Check for all preconditions, create references to all foreign entities and persist new checkout settings

array
returnCurrentSettings()

Find current checkout settings

array
returnCurrentSettingsOrCacheIt()

Find cached checkout settings or cache it

mixed
returnCurrentPaymentTypesOrCacheIt()

Find cached payment types or cache it

bool
returnCurrentPickUpInTheStoreOrCacheIt()

Find cached pick up in the store option or cache it

mixed
returnPossiblePaymentsTypesOrCacheIt()

Find cached possible payment types or cache it

array
getPossibleShippingProviders()

Find all possible shipping providers

mixed
returnCurrentFindMyLocationOrCacheIt()

Find cached find my location option or cache it

returnSettingsById(int $id)

Find checkout settings by id

mixed
returnPossiblePaymentTypes()

Find possible payment types from database and set to cache

editSetting(CheckoutSettings $settings)

Check for all preconditions, create references to all foreign entities and merge checkout settings

mixed
deleteSettings(array $items)

Find reference and delete all checkout settings for provided array

array|null
getCashCheckoutSettings()

Find cached checkout settings

mixed
setCashCheckoutSettings(mixed $data)

Set checkout settings to cache

mixed
setCashPaymentTypes(null $checkoutSettingsId = null)

Set payment types to cache

mixed
setCashPickUpInTheStore(mixed $data)

Set pick up in to store option to cache

mixed
setCashFindMyLocation(mixed $data)

Set find my location option to cache

dispatchCheckoutSettingsGenerateSignal()

Dispatch signal to re-cache checkout settings

float|null
getCashInternetDiscount()

Find cached Internet discount or cache it

mixed
setCashInternetDiscount(mixed $data)

Set Internet discount to cache

mixed
setCashOneStepCheckout(mixed $data)

Set one step checkout option to cache

bool
getCashOneStepCheckout()

Find cached one step checkout option or cache it

setAllToCache()

Set all checkout settings properties to cache

mixed
setCheckoutSettingObjectToCache(mixed $currentSettings)

Set checkout settings object to cache

getCheckoutSettingObjectFromCache()

Find cached checkout settings or empty object

IdentityTranslator
getTranslator()

No description

dispatchShipToOtherAddressCustomEvent()

Dispatch ship to other address event

mixed
returnCurrentFreeDeliveryAmountOrCacheIt()

Find cached free delivery amount or cache it

mixed
setCashFreeDeliveryAmount(mixed $data)

Set free delivery amount to cache

Details

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

at line 84
__construct(CheckoutSettingsRepository $repository, CheckoutSettingsEventContainer $container)

CheckoutSettingsManager constructor.

at line 98
CheckoutSettings saveSettings(CheckoutSettings $settings)

Check for all preconditions, create references to all foreign entities and persist new checkout settings

Parameters

CheckoutSettings $settings

Return Value

CheckoutSettings

Exceptions

ORMException

at line 123
array returnCurrentSettings()

Find current checkout settings

Return Value

array

at line 132
array returnCurrentSettingsOrCacheIt()

Find cached checkout settings or cache it

Return Value

array

at line 154
mixed returnCurrentPaymentTypesOrCacheIt()

Find cached payment types or cache it

Return Value

mixed

at line 169
bool returnCurrentPickUpInTheStoreOrCacheIt()

Find cached pick up in the store option or cache it

Return Value

bool

at line 190
mixed returnPossiblePaymentsTypesOrCacheIt()

Find cached possible payment types or cache it

Return Value

mixed

at line 209
array getPossibleShippingProviders()

Find all possible shipping providers

Return Value

array

at line 218
mixed returnCurrentFindMyLocationOrCacheIt()

Find cached find my location option or cache it

Return Value

mixed

at line 241
CheckoutSettings returnSettingsById(int $id)

Find checkout settings by id

Parameters

int $id

Return Value

CheckoutSettings

at line 250
mixed returnPossiblePaymentTypes()

Find possible payment types from database and set to cache

Return Value

mixed

at line 263
CheckoutSettings editSetting(CheckoutSettings $settings)

Check for all preconditions, create references to all foreign entities and merge checkout settings

Parameters

CheckoutSettings $settings

Return Value

CheckoutSettings

Exceptions

ORMException

at line 306
mixed deleteSettings(array $items)

Find reference and delete all checkout settings for provided array

Parameters

array $items

Return Value

mixed

at line 318
array|null getCashCheckoutSettings()

Find cached checkout settings

Return Value

array|null

at line 329
mixed setCashCheckoutSettings(mixed $data)

Set checkout settings to cache

Parameters

mixed $data

Return Value

mixed

at line 340
mixed setCashPaymentTypes(null $checkoutSettingsId = null)

Set payment types to cache

Parameters

null $checkoutSettingsId

Return Value

mixed

at line 351
mixed setCashPickUpInTheStore(mixed $data)

Set pick up in to store option to cache

Parameters

mixed $data

Return Value

mixed

at line 362
mixed setCashFindMyLocation(mixed $data)

Set find my location option to cache

Parameters

mixed $data

Return Value

mixed

at line 370
dispatchCheckoutSettingsGenerateSignal()

Dispatch signal to re-cache checkout settings

at line 380
float|null getCashInternetDiscount()

Find cached Internet discount or cache it

Return Value

float|null

at line 400
mixed setCashInternetDiscount(mixed $data)

Set Internet discount to cache

Parameters

mixed $data

Return Value

mixed

at line 410
mixed setCashOneStepCheckout(mixed $data)

Set one step checkout option to cache

Parameters

mixed $data

Return Value

mixed

at line 420
bool getCashOneStepCheckout()

Find cached one step checkout option or cache it

Return Value

bool

at line 440
setAllToCache()

Set all checkout settings properties to cache

at line 470
mixed setCheckoutSettingObjectToCache(mixed $currentSettings)

Set checkout settings object to cache

Parameters

mixed $currentSettings

Return Value

mixed

at line 479
CheckoutSettings getCheckoutSettingObjectFromCache()

Find cached checkout settings or empty object

Return Value

CheckoutSettings

at line 487
IdentityTranslator getTranslator()

Return Value

IdentityTranslator

at line 496
EventWithResult dispatchShipToOtherAddressCustomEvent()

Dispatch ship to other address event

Return Value

EventWithResult

at line 505
mixed returnCurrentFreeDeliveryAmountOrCacheIt()

Find cached free delivery amount or cache it

Return Value

mixed

at line 530
mixed setCashFreeDeliveryAmount(mixed $data)

Set free delivery amount to cache

Parameters

mixed $data

Return Value

mixed