mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Add eligibility for the Todo
This commit is contained in:
parent
46eeeb0b36
commit
d221544442
1 changed files with 7 additions and 1 deletions
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue