pub struct FiscalYearsEndpoint<'a> { /* private fields */ }Expand description
Fiscal years endpoint for managing accounting periods.
Implementations§
Source§impl<'a> FiscalYearsEndpoint<'a>
impl<'a> FiscalYearsEndpoint<'a>
Sourcepub async fn list(
&self,
params: Option<PaginationParams>,
) -> Result<PaginatedResponse<FiscalYear>>
pub async fn list( &self, params: Option<PaginationParams>, ) -> Result<PaginatedResponse<FiscalYear>>
List all fiscal years with optional pagination.
Sourcepub async fn get(&self, id: &str) -> Result<FiscalYear>
pub async fn get(&self, id: &str) -> Result<FiscalYear>
Get a specific fiscal year by ID.
Sourcepub async fn create(&self, fiscal_year: &FiscalYear) -> Result<FiscalYear>
pub async fn create(&self, fiscal_year: &FiscalYear) -> Result<FiscalYear>
Create a new fiscal year.
Sourcepub async fn get_opening_balances(&self) -> Result<Vec<OpeningBalance>>
pub async fn get_opening_balances(&self) -> Result<Vec<OpeningBalance>>
Get opening balances for the first fiscal year.
Sourcepub async fn update_opening_balances(
&self,
balances: &[OpeningBalance],
) -> Result<Vec<OpeningBalance>>
pub async fn update_opening_balances( &self, balances: &[OpeningBalance], ) -> Result<Vec<OpeningBalance>>
Update opening balances for the first fiscal year.
Note: This replaces all opening balances, not adds to them.
Auto Trait Implementations§
impl<'a> Freeze for FiscalYearsEndpoint<'a>
impl<'a> !RefUnwindSafe for FiscalYearsEndpoint<'a>
impl<'a> Send for FiscalYearsEndpoint<'a>
impl<'a> Sync for FiscalYearsEndpoint<'a>
impl<'a> Unpin for FiscalYearsEndpoint<'a>
impl<'a> !UnwindSafe for FiscalYearsEndpoint<'a>
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