pub struct DedicatedVirtualAccountEndpoints<T: HttpClient + Default> { /* private fields */ }Implementations§
Source§impl<T: HttpClient + Default> DedicatedVirtualAccountEndpoints<T>
Handles operations related to dedicated virtual accounts in the Paystack API
impl<T: HttpClient + Default> DedicatedVirtualAccountEndpoints<T>
Handles operations related to dedicated virtual accounts in the Paystack API
Sourcepub async fn create_dedicated_virtual_account(
&self,
create_dedicated_virtual_account_request: DedicatedVirtualAccountRequest,
) -> PaystackResult<DedicatedVirtualAccountResponseData>
pub async fn create_dedicated_virtual_account( &self, create_dedicated_virtual_account_request: DedicatedVirtualAccountRequest, ) -> PaystackResult<DedicatedVirtualAccountResponseData>
Create a dedicated virtual account for an existing customer.
§Arguments
create_dedicated_virtual_account_request- The request data to create the dedicated virtual account for the customer. It should be created with theDedicatedVirtualAccountRequstBuilderstruct.
§Returns
A Result containing the dedicated virtual account response data or an error
Sourcepub async fn assign_dedicated_virtual_account(
&self,
assign_dedicated_virtual_account_request: DedicatedVirtualAccountRequest,
) -> PaystackResult<PhantomData<String>>
pub async fn assign_dedicated_virtual_account( &self, assign_dedicated_virtual_account_request: DedicatedVirtualAccountRequest, ) -> PaystackResult<PhantomData<String>>
Creates a customer, validates them and assigns a dedicated virtual account.
§Arguments
assign_dedicated_virtual_account_request- The request data to assign the dedicated virtual account. It should be created with theDedicatedVirtualAccountRequestBuilder
§Returns
A Result containing the response or an error
Sourcepub async fn list_dedicated_accounts(
&self,
filter: Option<ListDedicatedAccountFilter>,
) -> PaystackResult<Vec<DedicatedVirtualAccountResponseData>>
pub async fn list_dedicated_accounts( &self, filter: Option<ListDedicatedAccountFilter>, ) -> PaystackResult<Vec<DedicatedVirtualAccountResponseData>>
Lists dedicated virtual accounts available on your integration.
§Arguments
filter- Optional set of parameters to filter the dedicated accounts returned. It should be created with theListDedicatedAccountFilterBuilderstruct.
§Returns
A Result containing a vector of dedicated virtual account response data or an error
Sourcepub async fn fetch_dedicated_virtual_account(
&self,
dedicated_account_id: u64,
) -> PaystackResult<DedicatedVirtualAccountResponseData>
pub async fn fetch_dedicated_virtual_account( &self, dedicated_account_id: u64, ) -> PaystackResult<DedicatedVirtualAccountResponseData>
Sourcepub async fn requery_dedicated_account(
&self,
account_number: String,
provider_slug: String,
date: Option<String>,
) -> PaystackResult<PhantomData<String>>
pub async fn requery_dedicated_account( &self, account_number: String, provider_slug: String, date: Option<String>, ) -> PaystackResult<PhantomData<String>>
Sourcepub async fn deactivate_dedicated_account(
&self,
dedicated_account_id: u64,
) -> PaystackResult<DedicatedVirtualAccountResponseData>
pub async fn deactivate_dedicated_account( &self, dedicated_account_id: u64, ) -> PaystackResult<DedicatedVirtualAccountResponseData>
Sourcepub async fn split_dedicated_account_transaction(
&self,
split_dedocated_account_transaction_request: SplitDedicatedAccountTransactionRequest,
) -> PaystackResult<DedicatedVirtualAccountResponseData>
pub async fn split_dedicated_account_transaction( &self, split_dedocated_account_transaction_request: SplitDedicatedAccountTransactionRequest, ) -> PaystackResult<DedicatedVirtualAccountResponseData>
Split a dedicated virtual account transaction with one or more accounts.
§Arguments
split_dedocated_account_transaction_request- The request data to split a transaction. It should be created with theSplitDedicatedAccountTransactionRequestBuilderstruct.
§Returns
A Result containing the dedicated virtual account response data or an error
Sourcepub async fn remove_split_from_dedicated_account(
&self,
account_number: String,
) -> PaystackResult<DedicatedVirtualAccountResponseData>
pub async fn remove_split_from_dedicated_account( &self, account_number: String, ) -> PaystackResult<DedicatedVirtualAccountResponseData>
If you’ve previously set up split payment for transactions on a dedicated virtual account, you can remove it with this endpoint
§Arguments
account_number- The account number of the dedicated virtual account to remove split from
§Returns
A Result containing the dedicated virtual account response data or an error
Sourcepub async fn fetch_bank_providers(
&self,
) -> PaystackResult<Vec<BankProviderData>>
pub async fn fetch_bank_providers( &self, ) -> PaystackResult<Vec<BankProviderData>>
Trait Implementations§
Source§impl<T: Clone + HttpClient + Default> Clone for DedicatedVirtualAccountEndpoints<T>
impl<T: Clone + HttpClient + Default> Clone for DedicatedVirtualAccountEndpoints<T>
Source§fn clone(&self) -> DedicatedVirtualAccountEndpoints<T>
fn clone(&self) -> DedicatedVirtualAccountEndpoints<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more