pub struct TransactionSplitEndpoints<T: HttpClient + Default> { /* private fields */ }Expand description
A struct to hold all the functions of the transaction split API endpoint
Implementations§
Source§impl<T: HttpClient + Default> TransactionSplitEndpoints<T>
 
impl<T: HttpClient + Default> TransactionSplitEndpoints<T>
Sourcepub async fn create_transaction_split(
    &self,
    split_body: TransactionSplitRequest,
) -> PaystackResult<TransactionSplitResponseData>
 
pub async fn create_transaction_split( &self, split_body: TransactionSplitRequest, ) -> PaystackResult<TransactionSplitResponseData>
Sourcepub async fn list_transaction_splits(
    &self,
    split_name: Option<&str>,
    split_active: Option<bool>,
) -> PaystackResult<Vec<TransactionSplitResponseData>>
 
pub async fn list_transaction_splits( &self, split_name: Option<&str>, split_active: Option<bool>, ) -> PaystackResult<Vec<TransactionSplitResponseData>>
Sourcepub async fn fetch_transaction_split(
    &self,
    split_id: &str,
) -> PaystackResult<TransactionSplitResponseData>
 
pub async fn fetch_transaction_split( &self, split_id: &str, ) -> PaystackResult<TransactionSplitResponseData>
Sourcepub async fn update_transaction_split(
    &self,
    split_id: &str,
    update_body: UpdateTransactionSplitRequest,
) -> PaystackResult<TransactionSplitResponseData>
 
pub async fn update_transaction_split( &self, split_id: &str, update_body: UpdateTransactionSplitRequest, ) -> PaystackResult<TransactionSplitResponseData>
Updates a transaction split’s details on your integration
§Arguments
- split_id- ID of the split to update
- update_body- The update data for the transaction split. It should be created with the- UpdateTransactionSplitRequestBuilderstruct.
§Returns
A Result containing the updated transaction split response data or an error
Sourcepub async fn add_or_update_subaccount_split(
    &self,
    split_id: &str,
    body: SubaccountBody,
) -> PaystackResult<TransactionSplitResponseData>
 
pub async fn add_or_update_subaccount_split( &self, split_id: &str, body: SubaccountBody, ) -> PaystackResult<TransactionSplitResponseData>
Adds a subaccount to a transaction split or updates an existing subaccount’s share
§Arguments
- split_id- ID of the transaction split to update
- body- The subaccount data to add or update. It should be created with a- SubaccountBodystruct.
§Returns
A Result containing the transaction split response data or an error
Sourcepub async fn remove_subaccount_from_transaction_split(
    &self,
    split_id: &str,
    subaccount: DeleteSubAccountBody,
) -> PaystackResult<String>
 
pub async fn remove_subaccount_from_transaction_split( &self, split_id: &str, subaccount: DeleteSubAccountBody, ) -> PaystackResult<String>
Trait Implementations§
Source§impl<T: Clone + HttpClient + Default> Clone for TransactionSplitEndpoints<T>
 
impl<T: Clone + HttpClient + Default> Clone for TransactionSplitEndpoints<T>
Source§fn clone(&self) -> TransactionSplitEndpoints<T>
 
fn clone(&self) -> TransactionSplitEndpoints<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl<T> Freeze for TransactionSplitEndpoints<T>
impl<T> RefUnwindSafe for TransactionSplitEndpoints<T>where
    T: RefUnwindSafe,
impl<T> Send for TransactionSplitEndpoints<T>where
    T: Sync,
impl<T> Sync for TransactionSplitEndpoints<T>where
    T: Sync,
impl<T> Unpin for TransactionSplitEndpoints<T>
impl<T> UnwindSafe for TransactionSplitEndpoints<T>where
    T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more