Struct lexoffice::model::recurring_templates::RecurringTemplateSettings[][src]

pub struct RecurringTemplateSettings {
    pub id: ReadOnly<Uuid>,
    pub start_date: Option<Date>,
    pub end_date: Option<Date>,
    pub finalize: Option<bool>,
    pub shipping_type: Option<ShippingType>,
    pub execution_interval: Option<ExecutionInterval>,
    pub last_execution_failed: ReadOnly<bool>,
    pub last_execution_error_message: ReadOnly<String>,
    pub execution_status: ReadOnly<ExecutionStatus>,
}

Fields

id: ReadOnly<Uuid>

The id of the recurring template settings.
Read-only.

start_date: Option<Date>

(Optional) The start date of the first recurring invoice in short iso date yyyy-MM-dd. If null, recurring template is PAUSED.

end_date: Option<Date>

(Optional) The end date of the first recurring invoice in short iso date yyyy-MM-dd.

finalize: Option<bool>

Specifies the status of the invoice. If false recurring invoices are created as draft (is editable), otherwise they are finalized as open (finalized and no longer editable but yet unpaid or only partially paid). In contrast to the invoice endpoint, finalized recurring invoices will immediately and automatically be sent to the customer via email.

shipping_type: Option<ShippingType>

The same shipping types defined in the shipping conditions of invoices. Can be either one of: service, serviceperiod, delivery, deliveryperiod, none. The shipping dates/date range will be calculated automatically during execution.

execution_interval: Option<ExecutionInterval>

The execution interval defined as WEEKLY, BIWEEKLY, MONTHLY, QUARTERLY, BIANNUALLY, ANNUALLY.

last_execution_failed: ReadOnly<bool>

Whether the last execution of the recurring template was successful or not.
Read-only.

last_execution_error_message: ReadOnly<String>

Describes the problem briefly when the last execution has failed.
Read-only.

execution_status: ReadOnly<ExecutionStatus>

The status of the recurring template defined as ACTIVE, PAUSED, ENDED. Note, that there is no error state.
Read-only.

Implementations

impl RecurringTemplateSettings[src]

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

Create a builder for building RecurringTemplateSettings. On the builder, call .start_date(...)(optional), .end_date(...)(optional), .finalize(...)(optional), .shipping_type(...)(optional), .execution_interval(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of RecurringTemplateSettings.

Trait Implementations

impl Clone for RecurringTemplateSettings[src]

impl Debug for RecurringTemplateSettings[src]

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

impl HasId for RecurringTemplateSettings[src]

impl PartialEq<RecurringTemplateSettings> for RecurringTemplateSettings[src]

impl Serialize for RecurringTemplateSettings[src]

impl StructuralPartialEq for RecurringTemplateSettings[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.