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