BexioApiClient.SalesOrderManagement.OrderRepetition (bexio_api_client v2.0.0)

Copy Markdown

Repetition of an order

Summary

Types

Repetition of an order

t()

Functions

Create a new order repetition

Types

repetition()

@type repetition() :: %{type: repetition_type(), interval: pos_integer()}

repetition_type()

@type repetition_type() :: :daily | :weekly | :monthly | :yearly

Repetition of an order

Fields:

  • :start - date the repetition starts
  • :end - date until the repetition is supposed to run. If empty an indefinite repetition is assumed.
  • :repetition - the repetition itself: either type daily, weekly, monthly or yearly with the according parameters (e.g. %{type: :daily, interval: 1})

t()

@type t() :: %BexioApiClient.SalesOrderManagement.OrderRepetition{
  end: Date.t() | nil,
  repetition: repetition(),
  start: Date.t()
}

Functions

new(attrs \\ %{})

@spec new(map()) :: t()

Create a new order repetition