import{A as n}from"./p-C2jRLMNW.js";import"./p-DaIKrQry.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=n();class i{async getLinkToken(n,i,a,e){return t.post({endpoint:`plaid/${i}/link`,body:{checkout_id:a},authToken:n,signal:e})}async getLinkTokenForVerification(n,i,a){return t.post({endpoint:`entities/plaid/${i}/link_token`,body:{},authToken:n,signal:a})}async getBankAccountData(n,i,a){return t.get({endpoint:`entities/plaid/${i}/bank_account`,authToken:n,signal:a})}async postPlaidVerifiedBankAccountData(n,i,a,e){return t.post({endpoint:`entities/plaid/${i}/bank_account`,body:a,authToken:n,signal:e})}async tokenizeBankAccount(n,i,a,e,o,s){const c=`plaid/${i}/tokenize`,k={public_token:a};return e&&(k.link_token_id=e),o&&(k.payment_method_group_id=o),t.post({endpoint:c,body:k,authToken:n,signal:s})}}export{i as P}