MishkaPay.PortalSession.Configuration.Plans (Mishka Pay v0.0.1)

Copy Markdown View Source

Summary

Types

t()

The struct that builder/1 returns.

Functions

A sample %MishkaPay.PortalSession.Configuration.Plans{} populated from defaults + type-based fallbacks.

Types

t()

@type t() :: %MishkaPay.PortalSession.Configuration.Plans{
  price_ids: list(),
  product_id: String.t()
}

The struct that builder/1 returns.

FieldTypeRequiredDefaultDescriptionDerives
:product_idString.t()yessanitize(trim) validate(not_nil_value, string, not_empty)
:price_idslist()yesvalidate(not_nil_value, list, not_empty, each=[string, not_empty])

Functions

builder(attrs_or_input, error \\ false)

enforce_keys()

enforce_keys(field)

example()

A sample %MishkaPay.PortalSession.Configuration.Plans{} populated from defaults + type-based fallbacks.

keys()

keys(field)