Add TodoEligibility for working capital

This commit is contained in:
Narek Zakarian 2025-08-04 18:12:36 +04:00
parent b97da8dda0
commit cdf43b5023
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -129,6 +129,8 @@ class TodosEligibilityService {
*/
private bool $is_enable_installments_eligible;
private bool $is_working_capital_eligible;
/**
* Constructor.
*
@ -148,6 +150,7 @@ class TodosEligibilityService {
* @param bool $is_enable_apple_pay_eligible Whether enabling Apple Pay is eligible.
* @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.
*/
public function __construct(
bool $is_fastlane_eligible,
@ -165,7 +168,8 @@ class TodosEligibilityService {
bool $is_google_pay_eligible,
bool $is_enable_apple_pay_eligible,
bool $is_enable_google_pay_eligible,
bool $is_enable_installments_eligible
bool $is_enable_installments_eligible,
bool $is_working_capital_eligible
) {
$this->is_fastlane_eligible = $is_fastlane_eligible;
$this->is_pay_later_messaging_eligible = $is_pay_later_messaging_eligible;
@ -183,6 +187,7 @@ class TodosEligibilityService {
$this->is_enable_apple_pay_eligible = $is_enable_apple_pay_eligible;
$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;
}
/**
@ -208,6 +213,7 @@ class TodosEligibilityService {
'enable_apple_pay' => fn() => $this->is_enable_apple_pay_eligible,
'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,
);
}
}