pub struct Invoices { /* private fields */ }Implementations§
Source§impl Invoices
impl Invoices
pub fn create( &self, customer_id: String, order_id: Option<String>, due_days: Option<i32>, ) -> PhpResult<Invoice>
pub fn get(&self, id: String) -> PhpResult<Option<Invoice>>
pub fn list(&self) -> PhpResult<Vec<Invoice>>
pub fn for_customer(&self, customer_id: String) -> PhpResult<Vec<Invoice>>
pub fn send(&self, id: String) -> PhpResult<Invoice>
pub fn record_payment(&self, id: String, amount: f64) -> PhpResult<Invoice>
pub fn void(&self, id: String) -> PhpResult<Invoice>
pub fn get_overdue(&self) -> PhpResult<Vec<Invoice>>
pub fn customer_balance(&self, customer_id: String) -> PhpResult<f64>
pub fn count(&self) -> PhpResult<i64>
Trait Implementations§
Source§impl<'a> FromZendObject<'a> for &'a Invoices
impl<'a> FromZendObject<'a> for &'a Invoices
Source§fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
fn from_zend_object(obj: &'a ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZendObjectMut<'a> for &'a mut Invoices
impl<'a> FromZendObjectMut<'a> for &'a mut Invoices
Source§fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
fn from_zend_object_mut(obj: &'a mut ZendObject) -> Result<Self>
Extracts
Self from the source ZendObject.Source§impl<'a> FromZvalMut<'a> for &'a mut Invoices
impl<'a> FromZvalMut<'a> for &'a mut Invoices
Source§impl IntoZendObject for Invoices
impl IntoZendObject for Invoices
Source§fn into_zend_object(self) -> Result<ZBox<ZendObject>>
fn into_zend_object(self) -> Result<ZBox<ZendObject>>
Attempts to convert
self into a Zend object.Source§impl IntoZval for Invoices
impl IntoZval for Invoices
Source§impl RegisteredClass for Invoices
impl RegisteredClass for Invoices
Source§const CLASS_NAME: &'static str = "StateSet\\Invoices"
const CLASS_NAME: &'static str = "StateSet\\Invoices"
PHP class name of the registered class.
Source§const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
const CONSTRUCTOR: Option<ConstructorMeta<Self>> = None
Optional class constructor.
Source§fn get_metadata() -> &'static ClassMetadata<Self>
fn get_metadata() -> &'static ClassMetadata<Self>
Returns a reference to the class metadata, which stores the class entry
and handlers. Read more
Auto Trait Implementations§
impl Freeze for Invoices
impl RefUnwindSafe for Invoices
impl Send for Invoices
impl Sync for Invoices
impl Unpin for Invoices
impl UnsafeUnpin for Invoices
impl UnwindSafe for Invoices
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