Merge pull request #2748 from woocommerce/PCP-3820-casual-selling-country-list

Update country list to determine casual selling availability (3813)
This commit is contained in:
Emili Castells 2024-11-04 14:05:34 +01:00 committed by GitHub
commit d5745709d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,16 +50,53 @@ return array(
return new ConnectManualRestEndpoint();
},
'settings.casual-selling.supported-countries' => static function ( ContainerInterface $container ) : array {
// TODO: This is a dummy list, while we wait for the official eligibility list.
return array(
'US',
'CA',
'DE',
'ES',
'AR',
'AU',
'AT',
'CH',
'BE',
'BR',
'CA',
'CL',
'CN',
'CY',
'CZ',
'DK',
'EE',
'FI',
'FR',
'GR',
'HU',
'ID',
'IE',
'IT',
'JP',
'LV',
'LI',
'LU',
'MY',
'MT',
'NL',
'NZ',
'NO',
'PH',
'PL',
'PT',
'RO',
'RU',
'SM',
'SA',
'SG',
'SK',
'SI',
'ZA',
'KR',
'ES',
'SE',
'TW',
'GB',
'US',
'VN',
);
},
'settings.casual-selling.eligible' => static function ( ContainerInterface $container ) : bool {