Add eligibility for the Todo

This commit is contained in:
Narek Zakarian 2025-08-25 15:05:31 +04:00
parent 46eeeb0b36
commit d221544442
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -131,6 +131,8 @@ class TodosEligibilityService {
private bool $is_working_capital_eligible;
private bool $is_pay_later_messaging_auto_enabled;
/**
* Constructor.
*
@ -151,6 +153,7 @@ class TodosEligibilityService {
* @param bool $is_enable_google_pay_eligible Whether enabling Google Pay is eligible.
* @param bool $is_enable_installments_eligible Whether enabling Installments is eligible.
* @param bool $is_working_capital_eligible Whether applying for Working Capital is eligible.
* @param bool $is_pay_later_messaging_auto_enabled Whether the Pay later messaging is force enabled.
*/
public function __construct(
bool $is_fastlane_eligible,
@ -169,7 +172,8 @@ class TodosEligibilityService {
bool $is_enable_apple_pay_eligible,
bool $is_enable_google_pay_eligible,
bool $is_enable_installments_eligible,
bool $is_working_capital_eligible
bool $is_working_capital_eligible,
bool $is_pay_later_messaging_auto_enabled
) {
$this->is_fastlane_eligible = $is_fastlane_eligible;
$this->is_pay_later_messaging_eligible = $is_pay_later_messaging_eligible;
@ -188,6 +192,7 @@ class TodosEligibilityService {
$this->is_enable_google_pay_eligible = $is_enable_google_pay_eligible;
$this->is_enable_installments_eligible = $is_enable_installments_eligible;
$this->is_working_capital_eligible = $is_working_capital_eligible;
$this->is_pay_later_messaging_auto_enabled = $is_pay_later_messaging_auto_enabled;
}
/**
@ -214,6 +219,7 @@ class TodosEligibilityService {
'enable_google_pay' => fn() => $this->is_enable_google_pay_eligible,
'enable_installments' => fn() => $this->is_enable_installments_eligible,
'apply_for_working_capital' => fn() => $this->is_working_capital_eligible,
'pay_later_messaging_is_auto_enabled' => fn() => $this->is_pay_later_messaging_auto_enabled,
);
}
}