Accrue.Connect.LoginLink (accrue v0.3.0)

Copy Markdown View Source

Express dashboard return credential for a connected account.

The :url field is a single-use, short-lived bearer credential that logs the Express connected account owner into their Stripe Express dashboard. Login Links are only valid for type: "express" connected accounts — calling Stripe with a Standard or Custom account returns HTTP 400. Accrue.Connect.create_login_link/2 fails fast locally before reaching the processor.

As with Accrue.Connect.AccountLink, the :url field is masked in Inspect output. Create-only resource.

Summary

Functions

Projects a raw processor response (atom- or string-keyed map, or a bare processor struct unwrapped to map form) into a tightly-typed t(). The Unix integer created timestamp is converted to DateTime via DateTime.from_unix!/1.

Types

t()

@type t() :: %Accrue.Connect.LoginLink{
  created: DateTime.t(),
  object: String.t(),
  url: String.t()
}

Functions

from_stripe(struct)

@spec from_stripe(map() | struct()) :: t()

Projects a raw processor response (atom- or string-keyed map, or a bare processor struct unwrapped to map form) into a tightly-typed t(). The Unix integer created timestamp is converted to DateTime via DateTime.from_unix!/1.