LatticeStripe.Account.BusinessProfile (LatticeStripe v1.1.0)

Copy Markdown View Source

Represents the business_profile nested object on a Stripe Account.

This struct is promoted from the Account API response per Phase 17 D-01, which identifies business_profile as a high-frequency pattern-match target — developers frequently read name, url, mcc, support_email, support_phone, and product_description in onboarding and dashboard flows.

Unknown fields from the Stripe API response are preserved in :extra per the F-001 forward-compatibility pattern, ensuring unknown fields are never silently dropped.

See Stripe Account API.

Summary

Types

t()

Business profile settings for a Stripe Account.

Functions

Converts a decoded Stripe API map to a %BusinessProfile{} struct.

Types

t()

@type t() :: %LatticeStripe.Account.BusinessProfile{
  extra: map(),
  mcc: String.t() | nil,
  monthly_estimated_revenue: map() | nil,
  name: String.t() | nil,
  product_description: String.t() | nil,
  support_address: map() | nil,
  support_email: String.t() | nil,
  support_phone: String.t() | nil,
  support_url: String.t() | nil,
  url: String.t() | nil
}

Business profile settings for a Stripe Account.

Functions

from_map(map)

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

Converts a decoded Stripe API map to a %BusinessProfile{} struct.

Returns nil when given nil.

Unknown fields from the Stripe API are captured in :extra (F-001 pattern) for forward compatibility.