Struct lexoffice::model::voucherlist::Voucherlist[][src]

pub struct Voucherlist {
    pub id: ReadOnly<Uuid>,
    pub voucher_type: Option<VoucherType>,
    pub voucher_status: Option<VoucherStatus>,
    pub voucher_number: Option<String>,
    pub voucher_date: Option<DateTime>,
    pub updated_date: Option<DateTime>,
    pub due_date: Option<DateTime>,
    pub contact_name: Option<String>,
    pub total_amount: Option<f64>,
    pub open_amount: Option<f64>,
    pub currency: Option<Currency>,
    pub archived: Option<bool>,
}

This section describes the properties of the meta data object for vouchers returned by this endpoint.

Fields

id: ReadOnly<Uuid>

Unique id of the voucher in lexoffice.

voucher_type: Option<VoucherType>

Type of the voucher. Possible values are salesinvoice, salescreditnote, purchaseinvoice, purchasecreditnote, invoice, downpaymentinvoice, creditnote, orderconfirmation, and quotation.

voucher_status: Option<VoucherStatus>

Showing the current workflow status of the voucher in lexoffice. Possible values are draft, open, paid, paidoff, voided, transferred, sepadebit, overdue, accepted, and rejected.

voucher_number: Option<String>

Identification/Reference number of the voucher.

voucher_date: Option<DateTime>

Date when the voucher was issued. Value in format yyyy-MM-ddTHH:mm:ss.SSSXXX as described in RFC 3339/ISO 8601 (e.g. 2020-02-21T00:00:00.000+01:00).

updated_date: Option<DateTime>

Date when the voucher was last changed (or status changed) in lexoffice. Value in format yyyy-MM-ddTHH:mm:ss.SSSXXX as described in RFC 3339/ISO 8601 (e.g. 2020-02-21T00:00:00.000+01:00).

due_date: Option<DateTime>

Date when the voucher’s payment has to be settled. Value in format yyyy-MM-ddTHH:mm:ss.SSSXXX as described in RFC 3339/ISO 8601 (e.g. 2020-02-21T00:00:00.000+01:00).

contact_name: Option<String>

Name of the recipient or invoicing party. Further information on the contact can be retrieved by using the corresponding voucher endpoint (see below).

total_amount: Option<f64>

Total amount of the voucher (may include taxes). Format is ##.00 (119.00).

open_amount: Option<f64>

Open amount of the voucher. May be null (e.g., for invoices in draft, or various non-invoice vouchers). Format is ##.00 (123.00).

currency: Option<Currency>

Currency of the voucher. Only possible value is EUR.

archived: Option<bool>

Indicates if the voucher is marked as archived in lexoffice.

Implementations

impl Voucherlist[src]

pub fn builder(
) -> VoucherlistBuilder<((), (), (), (), (), (), (), (), (), (), ())>
[src]

Create a builder for building Voucherlist. On the builder, call .voucher_type(...)(optional), .voucher_status(...)(optional), .voucher_number(...)(optional), .voucher_date(...)(optional), .updated_date(...)(optional), .due_date(...)(optional), .contact_name(...)(optional), .total_amount(...)(optional), .open_amount(...)(optional), .currency(...)(optional), .archived(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of Voucherlist.

Trait Implementations

impl Clone for Voucherlist[src]

impl Debug for Voucherlist[src]

impl<'de> Deserialize<'de> for Voucherlist[src]

impl HasId for Voucherlist[src]

impl PartialEq<Voucherlist> for Voucherlist[src]

impl Serialize for Voucherlist[src]

impl StructuralPartialEq for Voucherlist[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.