pub struct AccountingInfoClient { /* private fields */ }Expand description
Client for the Yuki AccountingInfo SOAP service.
Implementations§
Source§impl AccountingInfoClient
impl AccountingInfoClient
pub fn new() -> Self
Sourcepub async fn authenticate(&mut self, api_key: &str) -> Result<String, YukiError>
pub async fn authenticate(&mut self, api_key: &str) -> Result<String, YukiError>
Authenticate with the Yuki API and store the session ID.
Sourcepub async fn get_transaction_details(
&self,
transaction_id: &str,
) -> Result<Vec<TransactionDetail>, YukiError>
pub async fn get_transaction_details( &self, transaction_id: &str, ) -> Result<Vec<TransactionDetail>, YukiError>
Retrieve full details for a single transaction by ID.
Sourcepub fn parse_transaction_details(
xml: &str,
) -> Result<Vec<TransactionDetail>, YukiError>
pub fn parse_transaction_details( xml: &str, ) -> Result<Vec<TransactionDetail>, YukiError>
Parse a GetTransactionDetails SOAP response into a list of TransactionDetail values.
Each TransactionInfo element carries child elements id, transactionDate,
description, transactionAmount, currency, and glAccountCode.
Sourcepub async fn get_gl_account_scheme(
&self,
administration_id: &str,
) -> Result<Vec<GlAccount>, YukiError>
pub async fn get_gl_account_scheme( &self, administration_id: &str, ) -> Result<Vec<GlAccount>, YukiError>
Retrieve the full GL account scheme (chart of accounts).
Sourcepub async fn get_transaction_document(
&self,
administration_id: &str,
transaction_id: &str,
) -> Result<String, YukiError>
pub async fn get_transaction_document( &self, administration_id: &str, transaction_id: &str, ) -> Result<String, YukiError>
Retrieve the document linked to a transaction.
Sourcepub async fn get_period_date_table(
&self,
year: &str,
) -> Result<String, YukiError>
pub async fn get_period_date_table( &self, year: &str, ) -> Result<String, YukiError>
Retrieve the period date table for a given fiscal year.
Sourcepub async fn get_start_balance_by_gl_account(
&self,
administration_id: &str,
bookyear: &str,
) -> Result<Vec<AccountStartBalance>, YukiError>
pub async fn get_start_balance_by_gl_account( &self, administration_id: &str, bookyear: &str, ) -> Result<Vec<AccountStartBalance>, YukiError>
Retrieve opening balances per GL account for a book year.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccountingInfoClient
impl !RefUnwindSafe for AccountingInfoClient
impl Send for AccountingInfoClient
impl Sync for AccountingInfoClient
impl Unpin for AccountingInfoClient
impl UnsafeUnpin for AccountingInfoClient
impl !UnwindSafe for AccountingInfoClient
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