LatticeStripe.BillingPortal.Session.FlowData.AfterCompletion (LatticeStripe v1.1.0)

Copy Markdown View Source

The after_completion sub-object of a LatticeStripe.BillingPortal.Session.FlowData.

Applies to all flow types. Describes what happens when a customer completes a portal flow. type is one of "hosted_confirmation" (show an in-portal confirmation page) or "redirect" (redirect the customer to a return_url).

The redirect and hosted_confirmation sub-objects are intentionally kept as raw map() values per D-02 — shallow leaf objects do not warrant dedicated modules. Parent struct: LatticeStripe.BillingPortal.Session.FlowData.

Summary

Types

t()

@type t() :: %LatticeStripe.BillingPortal.Session.FlowData.AfterCompletion{
  extra: map(),
  hosted_confirmation: map() | nil,
  redirect: map() | nil,
  type: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map() | nil) :: t() | nil