Packages
Complete Stripe SDK for Elixir with parity to the official Ruby SDK. V1+V2 coverage (193 services, 320 resource structs, 525 documented params). Per-event modules, Finch HTTP/2, RustyJSON, automatic retries, OAuth, webhooks, telemetry, per-client config, streaming pagination.
Current section
Files
Jump to
Current section
Files
lib/stripe/resources/issuing/personalization_design.ex
# File generated from our OpenAPI spec
defmodule Stripe.Resources.Issuing.PersonalizationDesign do
@moduledoc """
IssuingPersonalizationDesign
A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line.
"""
@typedoc """
* `card_logo` - The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Nullable. Expandable.
* `carrier_text` - Hash containing carrier text, for use with physical bundles that support carrier text. Nullable. Expandable.
* `created` - Time at which the object was created. Measured in seconds since the Unix epoch. Format: Unix timestamp.
* `id` - Unique identifier for the object. Max length: 5000.
* `livemode` - Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
* `lookup_key` - A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters. Max length: 5000. Nullable.
* `metadata` - Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
* `name` - Friendly display name. Max length: 5000. Nullable.
* `object` - String representing the object's type. Objects of the same type share the same value. Possible values: `issuing.personalization_design`.
* `physical_bundle` - The physical bundle object belonging to this personalization design. Expandable.
* `preferences` - Expandable.
* `rejection_reasons` - Expandable.
* `status` - Whether this personalization design can be used to create cards. Possible values: `active`, `inactive`, `rejected`, `review`.
"""
@type t :: %__MODULE__{
card_logo: String.t() | map(),
carrier_text: map(),
created: integer(),
id: String.t(),
livemode: boolean(),
lookup_key: String.t(),
metadata: map(),
name: String.t(),
object: String.t(),
physical_bundle: String.t() | map(),
preferences: map(),
rejection_reasons: map(),
status: String.t()
}
defstruct [
:card_logo,
:carrier_text,
:created,
:id,
:livemode,
:lookup_key,
:metadata,
:name,
:object,
:physical_bundle,
:preferences,
:rejection_reasons,
:status
]
@object_name "issuing.personalization_design"
def object_name, do: @object_name
def expandable_fields,
do: ["card_logo", "carrier_text", "physical_bundle", "preferences", "rejection_reasons"]
defmodule CarrierText do
@moduledoc false
@typedoc """
* `footer_body` - The footer body text of the carrier letter. Max length: 5000. Nullable.
* `footer_title` - The footer title text of the carrier letter. Max length: 5000. Nullable.
* `header_body` - The header body text of the carrier letter. Max length: 5000. Nullable.
* `header_title` - The header title text of the carrier letter. Max length: 5000. Nullable.
"""
@type t :: %__MODULE__{
footer_body: String.t() | nil,
footer_title: String.t() | nil,
header_body: String.t() | nil,
header_title: String.t() | nil
}
defstruct [:footer_body, :footer_title, :header_body, :header_title]
end
defmodule Preferences do
@moduledoc false
@typedoc """
* `is_default` - Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
* `is_platform_default` - Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist. Nullable.
"""
@type t :: %__MODULE__{
is_default: boolean() | nil,
is_platform_default: boolean() | nil
}
defstruct [:is_default, :is_platform_default]
end
defmodule RejectionReasons do
@moduledoc false
@typedoc """
* `card_logo` - The reason(s) the card logo was rejected. Nullable.
* `carrier_text` - The reason(s) the carrier text was rejected. Nullable.
"""
@type t :: %__MODULE__{
card_logo: [String.t()] | nil,
carrier_text: [String.t()] | nil
}
defstruct [:card_logo, :carrier_text]
end
def __inner_types__ do
%{
"carrier_text" => __MODULE__.CarrierText,
"preferences" => __MODULE__.Preferences,
"rejection_reasons" => __MODULE__.RejectionReasons
}
end
end