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/params/apps/secret_create_params.ex
# File generated from our OpenAPI spec
defmodule Stripe.Params.Apps.SecretCreateParams do
@moduledoc "Parameters for secret create."
@typedoc """
* `expand` - Specifies which fields in the response should be expanded.
* `expires_at` - The Unix timestamp for the expiry time of the secret, after which the secret deletes. Format: Unix timestamp.
* `name` - A name for the secret that's unique within the scope. Max length: 5000.
* `payload` - The plaintext secret value to be stored. Max length: 5000.
* `scope` - Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
"""
@type t :: %__MODULE__{
expand: [String.t()] | nil,
expires_at: integer() | nil,
name: String.t(),
payload: String.t(),
scope: scope()
}
defstruct [:expand, :expires_at, :name, :payload, :scope]
@typedoc """
* `type` - The secret scope type. Possible values: `account`, `user`.
* `user` - The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. Max length: 5000.
"""
@type scope :: %{
optional(:type) => String.t() | nil,
optional(:user) => String.t() | nil,
optional(String.t()) => term()
}
end