pub struct AccountsPayable { /* private fields */ }Implementations§
Source§impl AccountsPayable
impl AccountsPayable
pub fn into_reference( val: AccountsPayable, env: Env, ) -> Result<Reference<AccountsPayable>>
pub fn into_instance(self, env: Env) -> Result<ClassInstance<AccountsPayable>>
Source§impl AccountsPayable
impl AccountsPayable
Sourcepub async fn create_bill(&self, input: CreateBillInput) -> Result<BillOutput>
pub async fn create_bill(&self, input: CreateBillInput) -> Result<BillOutput>
Create a bill
Sourcepub async fn get_bill_by_number(
&self,
number: String,
) -> Result<Option<BillOutput>>
pub async fn get_bill_by_number( &self, number: String, ) -> Result<Option<BillOutput>>
Get a bill by bill number
Sourcepub async fn list_bills(&self) -> Result<Vec<BillOutput>>
pub async fn list_bills(&self) -> Result<Vec<BillOutput>>
List all bills
Sourcepub async fn approve_bill(&self, id: String) -> Result<BillOutput>
pub async fn approve_bill(&self, id: String) -> Result<BillOutput>
Approve a bill
Sourcepub async fn cancel_bill(&self, id: String) -> Result<BillOutput>
pub async fn cancel_bill(&self, id: String) -> Result<BillOutput>
Cancel a bill
Sourcepub async fn get_overdue_bills(&self) -> Result<Vec<BillOutput>>
pub async fn get_overdue_bills(&self) -> Result<Vec<BillOutput>>
Get overdue bills
Sourcepub async fn get_bills_due_soon(&self, days: i32) -> Result<Vec<BillOutput>>
pub async fn get_bills_due_soon(&self, days: i32) -> Result<Vec<BillOutput>>
Get bills due soon
Sourcepub async fn get_aging_summary(&self) -> Result<ApAgingSummaryOutput>
pub async fn get_aging_summary(&self) -> Result<ApAgingSummaryOutput>
Get aging summary
Sourcepub async fn get_total_outstanding(&self) -> Result<f64>
pub async fn get_total_outstanding(&self) -> Result<f64>
Get total outstanding
Sourcepub async fn count_bills(&self) -> Result<u32>
pub async fn count_bills(&self) -> Result<u32>
Count bills
Trait Implementations§
Source§impl FromNapiMutRef for AccountsPayable
impl FromNapiMutRef for AccountsPayable
Source§unsafe fn from_napi_mut_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static mut Self>
unsafe fn from_napi_mut_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static mut Self>
Safety Read more
Source§impl FromNapiRef for AccountsPayable
impl FromNapiRef for AccountsPayable
Source§unsafe fn from_napi_ref(
env: napi_env,
napi_val: napi_value,
) -> Result<&'static Self>
unsafe fn from_napi_ref( env: napi_env, napi_val: napi_value, ) -> Result<&'static Self>
Safety Read more
Source§impl FromNapiValue for &AccountsPayable
impl FromNapiValue for &AccountsPayable
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl FromNapiValue for &mut AccountsPayable
impl FromNapiValue for &mut AccountsPayable
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl ObjectFinalize for AccountsPayable
impl ObjectFinalize for AccountsPayable
Source§impl ToNapiValue for AccountsPayable
impl ToNapiValue for AccountsPayable
Source§unsafe fn to_napi_value(
env: napi_env,
val: AccountsPayable,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: AccountsPayable, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &AccountsPayable
impl TypeName for &AccountsPayable
Source§impl TypeName for &mut AccountsPayable
impl TypeName for &mut AccountsPayable
Source§impl TypeName for AccountsPayable
impl TypeName for AccountsPayable
Source§impl ValidateNapiValue for &AccountsPayable
impl ValidateNapiValue for &AccountsPayable
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Source§impl ValidateNapiValue for &mut AccountsPayable
impl ValidateNapiValue for &mut AccountsPayable
Source§unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
Auto Trait Implementations§
impl Freeze for AccountsPayable
impl !RefUnwindSafe for AccountsPayable
impl Send for AccountsPayable
impl Sync for AccountsPayable
impl Unpin for AccountsPayable
impl UnsafeUnpin for AccountsPayable
impl !UnwindSafe for AccountsPayable
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