diff --git a/modules/ppcp-settings/src/Service/TodosEligibilityService.php b/modules/ppcp-settings/src/Service/TodosEligibilityService.php index 94cc21fb0..61dc2eb07 100644 --- a/modules/ppcp-settings/src/Service/TodosEligibilityService.php +++ b/modules/ppcp-settings/src/Service/TodosEligibilityService.php @@ -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, ); } }