MishkaPay.Checkout.Fields.Options (Mishka Pay v0.0.1)

Copy Markdown View Source

Summary

Types

t()

The struct that builder/1 returns.

Functions

A sample %MishkaPay.Checkout.Fields.Options{} populated from defaults + type-based fallbacks.

Types

t()

@type t() :: %MishkaPay.Checkout.Fields.Options{label: String.t(), value: String.t()}

The struct that builder/1 returns.

FieldTypeRequiredDefaultDescriptionDerives
:valueString.t()yessanitize(trim) validate(not_nil_value, string, not_empty, max_len=100)
:labelString.t()yessanitize(trim) validate(not_nil_value, string, not_empty, max_len=100)

Functions

builder(attrs_or_input, error \\ false)

enforce_keys()

enforce_keys(field)

example()

A sample %MishkaPay.Checkout.Fields.Options{} populated from defaults + type-based fallbacks.

keys()

keys(field)