pub struct AccountsReceivable { /* private fields */ }Implementations§
Source§impl AccountsReceivable
impl AccountsReceivable
pub fn into_reference( val: AccountsReceivable, env: Env, ) -> Result<Reference<AccountsReceivable>>
pub fn into_instance( self, env: Env, ) -> Result<ClassInstance<AccountsReceivable>>
Source§impl AccountsReceivable
impl AccountsReceivable
Sourcepub async fn get_aging_summary(&self) -> Result<ArAgingSummaryOutput>
pub async fn get_aging_summary(&self) -> Result<ArAgingSummaryOutput>
Get AR 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 create_credit_memo(
&self,
input: CreateCreditMemoInput,
) -> Result<CreditMemoOutput>
pub async fn create_credit_memo( &self, input: CreateCreditMemoInput, ) -> Result<CreditMemoOutput>
Create a credit memo
Sourcepub async fn get_credit_memo(
&self,
id: String,
) -> Result<Option<CreditMemoOutput>>
pub async fn get_credit_memo( &self, id: String, ) -> Result<Option<CreditMemoOutput>>
Get a credit memo by ID
Sourcepub async fn list_credit_memos(&self) -> Result<Vec<CreditMemoOutput>>
pub async fn list_credit_memos(&self) -> Result<Vec<CreditMemoOutput>>
List credit memos
Sourcepub async fn void_credit_memo(&self, id: String) -> Result<CreditMemoOutput>
pub async fn void_credit_memo(&self, id: String) -> Result<CreditMemoOutput>
Void a credit memo
Sourcepub async fn get_unapplied_credits(
&self,
customer_id: String,
) -> Result<Vec<CreditMemoOutput>>
pub async fn get_unapplied_credits( &self, customer_id: String, ) -> Result<Vec<CreditMemoOutput>>
Get unapplied credits for a customer
Trait Implementations§
Source§impl FromNapiMutRef for AccountsReceivable
impl FromNapiMutRef for AccountsReceivable
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 AccountsReceivable
impl FromNapiRef for AccountsReceivable
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 &AccountsReceivable
impl FromNapiValue for &AccountsReceivable
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 AccountsReceivable
impl FromNapiValue for &mut AccountsReceivable
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 AccountsReceivable
impl ObjectFinalize for AccountsReceivable
Source§impl ToNapiValue for AccountsReceivable
impl ToNapiValue for AccountsReceivable
Source§unsafe fn to_napi_value(
env: napi_env,
val: AccountsReceivable,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: AccountsReceivable, ) -> Result<napi_value>
Safety Read more
Source§impl TypeName for &AccountsReceivable
impl TypeName for &AccountsReceivable
Source§impl TypeName for &mut AccountsReceivable
impl TypeName for &mut AccountsReceivable
Source§impl TypeName for AccountsReceivable
impl TypeName for AccountsReceivable
Source§impl ValidateNapiValue for &AccountsReceivable
impl ValidateNapiValue for &AccountsReceivable
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 AccountsReceivable
impl ValidateNapiValue for &mut AccountsReceivable
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 AccountsReceivable
impl !RefUnwindSafe for AccountsReceivable
impl Send for AccountsReceivable
impl Sync for AccountsReceivable
impl Unpin for AccountsReceivable
impl UnsafeUnpin for AccountsReceivable
impl !UnwindSafe for AccountsReceivable
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