Struct gusto_api::company_bank_accounts_beta::CompanyBankAccountsBeta [−][src]
pub struct CompanyBankAccountsBeta { /* fields omitted */ }
Implementations
pub async fn get_company_bank_accounts(
&self,
company_id_or_uuid: &str
) -> Result<Vec<CompanyBankAccount>>
pub async fn get_company_bank_accounts(
&self,
company_id_or_uuid: &str
) -> Result<Vec<CompanyBankAccount>>
Get all company bank accounts.
This function performs a GET
to the /v1/companies/{company_id_or_uuid}/bank_accounts
endpoint.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Returns all company bank accounts
pub async fn get_all_company_bank_accounts(
&self,
company_id_or_uuid: &str
) -> Result<Vec<CompanyBankAccount>>
pub async fn get_all_company_bank_accounts(
&self,
company_id_or_uuid: &str
) -> Result<Vec<CompanyBankAccount>>
Get all company bank accounts.
This function performs a GET
to the /v1/companies/{company_id_or_uuid}/bank_accounts
endpoint.
As opposed to get_company_bank_accounts
, this function returns all the pages of the request at once.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Returns all company bank accounts
pub async fn post_company_bank_account(
&self,
company_id_or_uuid: &str,
body: &PostCompanyBankAccountRequest
) -> Result<CompanyBankAccount>
pub async fn post_company_bank_account(
&self,
company_id_or_uuid: &str,
body: &PostCompanyBankAccountRequest
) -> Result<CompanyBankAccount>
Create a company bank account.
This function performs a POST
to the /v1/companies/{company_id_or_uuid}/bank_accounts
endpoint.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Create a company bank account. The new bank account will replace an existing bank account as the default company funding method.
pub async fn put_company_bank_accounts_verify(
&self,
company_id_or_uuid: &str,
bank_account_uuid: &str,
body: &PutCompanyBankAccountsVerifyRequest
) -> Result<CompanyBankAccount>
pub async fn put_company_bank_accounts_verify(
&self,
company_id_or_uuid: &str,
bank_account_uuid: &str,
body: &PutCompanyBankAccountsVerifyRequest
) -> Result<CompanyBankAccount>
Verify a company bank account.
This function performs a PUT
to the /v1/companies/{company_id_or_uuid}/bank_accounts/{bank_account_uuid}/verify
endpoint.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Verify a company bank account by confirming the two micro-deposits sent to the bank account. Note that the order of the two deposits specified in request parameters does not matter.