You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: paypal.rs
    path of file: ./repos/hyperswitch/crates/router/src/utils/connector_onboarding
    
    the code of the file until where you have to start completion: use common_utils::request::{Method, Request, RequestBuilder, RequestContent};
use error_stack::{IntoReport, ResultExt};
use http::header
    
pub async fn generate_access_token(state: AppState) -> RouterResult<types::AccessToken> {
    let connector = enums::Connector::Paypal;
    let boxed_connector = types::api::ConnectorData::convert_connector(
        &state.conf.connectors,
        connector.to_string().as_str(),
    )?;
    let connector_auth =
        super::get_connector_auth(connector, state.conf.connector_onboarding.get_inner())?;

    connector::Paypal::get_access_token(
        &state,
        verify_connector_types::VerifyConnectorData {
            connector: *boxed_connector,
            connector_auth,
            card_details: verify_connector_utils::get_test_card_details(connector)?
                .ok_or(ApiErrorResponse::FlowNotSupported {
                    flow: "Connector onboarding".to_string(),
                    connector: connector.to_string(),
                })
                .into_report()?,
        },
    )
    .await?
    .ok_or(ApiErrorResponse::InternalServerError)
    .into_report()
    .attach_printable("Error occurred while retrieving access token")
}