=> true, self::REDIRECT_TO_ONBOARDING => true, self::SITE_VERIFICATION => true, self::SYNCABLE_PRODUCTS_COUNT => true, self::SYNCABLE_PRODUCTS_COUNT_INTERMEDIATE_DATA => true, self::PRODUCT_STATUSES_COUNT_INTERMEDIATE_DATA => true, self::TARGET_AUDIENCE => true, self::TOURS => true, self::UPDATE_ALL_PRODUCTS_LAST_SYNC => true, self::WP_TOS_ACCEPTED => true, ]; public const OPTION_TYPES = [ self::ADS_ID => PositiveInteger::class, self::MERCHANT_ID => PositiveInteger::class, ]; /** * Get an option. * * @param string $name The option name. * @param mixed $default_value A default value for the option. * * @return mixed */ public function get( string $name, $default_value = null ); /** * Add an option. * * @param string $name The option name. * @param mixed $value The option value. * * @return bool */ public function add( string $name, $value ): bool; /** * Update an option. * * @param string $name The option name. * @param mixed $value The option value. * * @return bool */ public function update( string $name, $value ): bool; /** * Delete an option. * * @param string $name The option name. * * @return bool */ public function delete( string $name ): bool; /** * Helper function to retrieve the Merchant Account ID. * * @return int */ public function get_merchant_id(): int; /** * Returns all available option keys. * * @return array */ public static function get_all_option_keys(): array; /** * Helper function to retrieve the Ads Account ID. * * @return int */ public function get_ads_id(): int; }