Liking cljdoc? Tell your friends :D

lupapiste-invoice-commons.states


Actionsclj/s


admin-ui-rule-setclj/s


backend-rule-setclj/s


billedclj/s


billing-ui-rule-setclj/s


can-move-to?clj/s≠

clj
(can-move-to? current-state wanted-state transition-key rule-set-key)
(can-move-to? current-state wanted-state transition-key rule-set-key rule-sets)
cljs
(can-move-to? G__3366 G__3367 G__3368 G__3369)
(can-move-to? G__3358 G__3359 G__3360 G__3361 G__3362)

Inputs: ([current-state :- StateName wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword]) Returns: s/Bool

Inputs: ([current-state :- StateName wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword])
Returns: s/Bool
raw docstring

checkedclj/s


confirmedclj/s


default-rule-setsclj/s


draftclj/s


get-state-by-nameclj/s≠

clj
(get-state-by-name state-name rule-set-key)
(get-state-by-name state-name rule-set-key rule-sets)
cljs
(get-state-by-name G__3322 G__3323)
(get-state-by-name G__3316 G__3317 G__3318)

Inputs: ([state-name :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [state-name :- StateName rule-set-key :- s/Keyword]) Returns: StateName

Inputs: ([state-name :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [state-name :- StateName rule-set-key :- s/Keyword])
Returns: StateName
raw docstring

move-to-stateclj/s≠

clj
(move-to-state path-to-update target wanted-state transition-key rule-set-key)
(move-to-state path-to-update
               target
               wanted-state
               transition-key
               rule-set-key
               rule-sets)
cljs
(move-to-state G__3385 G__3386 G__3387 G__3388 G__3389)
(move-to-state G__3376 G__3377 G__3378 G__3379 G__3380 G__3381)

Inputs: ([path-to-update :- [s/Keyword] target :- s/Any wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword rule-sets :- RuleSets] [path-to-update :- [s/Keyword] target :- s/Any wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword]) Returns: MoveToStateResponse

Inputs: ([path-to-update :- [s/Keyword] target :- s/Any wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword rule-sets :- RuleSets] [path-to-update :- [s/Keyword] target :- s/Any wanted-state :- StateName transition-key :- (s/enum :next :previous) rule-set-key :- s/Keyword])
Returns: MoveToStateResponse
raw docstring

MoveToStateResponseclj/s


next-stateclj/s≠

clj
(next-state current-state rule-set-key)
(next-state current-state rule-set-key rule-sets)
cljs
(next-state G__3336 G__3337)
(next-state G__3330 G__3331 G__3332)

Inputs: ([current-state :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName rule-set-key :- s/Keyword]) Returns: (s/maybe StateName)

Inputs: ([current-state :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName rule-set-key :- s/Keyword])
Returns: (s/maybe StateName)
raw docstring

previous-stateclj/s≠

clj
(previous-state current-state rule-set-key)
(previous-state current-state rule-set-key rule-sets)
cljs
(previous-state G__3350 G__3351)
(previous-state G__3344 G__3345 G__3346)

Inputs: ([current-state :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName rule-set-key :- s/Keyword]) Returns: (s/maybe StateName)

Inputs: ([current-state :- StateName rule-set-key :- s/Keyword rule-sets :- RuleSets] [current-state :- StateName rule-set-key :- s/Keyword])
Returns: (s/maybe StateName)
raw docstring

RuleActionsclj/s


RuleSetclj/s


RuleSetsclj/s


state-change-directionclj/s

(state-change-direction current-state to-state rule-set-key)
(state-change-direction current-state to-state rule-set-key rule-sets)

Returns direction of state change. Parameters: current-state to-state rule-set-key rule-sets Optional, if not given we use default rulesets

Returns :next :previous :same or nil (when transition is not valid for some reason)

Returns direction of state change.
Parameters:
  `current-state`
  `to-state`
  `rule-set-key`
  `rule-sets` Optional, if not given we use default rulesets

Returns :next :previous :same or nil (when transition is not valid for some reason)
raw docstring

StateNameclj/s


statesclj/s


Statesclj/s


transferredclj/s


valid-for-next-state?clj/s≠

clj
(valid-for-next-state? invoice rule-set-key)
(valid-for-next-state? invoice rule-set-key rule-sets)
cljs
(valid-for-next-state? G__3398 G__3399)
(valid-for-next-state? G__3403 G__3404 G__3405)

Inputs: ([invoice :- #:s{Keyword s/Any} rule-set-key :- s/Keyword] [invoice :- #:s{Keyword s/Any} rule-set-key :- s/Keyword rule-sets :- RuleSets])

Checks if invoice is valid for the transition to the next state from the current state. Returns true if no validator is found for the transition.

Inputs: ([invoice :- #:s{Keyword s/Any} rule-set-key :- s/Keyword] [invoice :- #:s{Keyword s/Any} rule-set-key :- s/Keyword rule-sets :- RuleSets])

Checks if invoice is valid for the transition to the next state from the current state.
 Returns true if no validator is found for the transition.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close