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/forwarding/request_create_params.ex
# File generated from our OpenAPI spec
defmodule Stripe.Params.Forwarding.RequestCreateParams do
@moduledoc "Parameters for request create."
@typedoc """
* `expand` - Specifies which fields in the response should be expanded.
* `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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
* `payment_method` - The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. Max length: 5000.
* `replacements` - The field kinds to be replaced in the forwarded request.
* `request` - The request body and headers to be sent to the destination endpoint.
* `url` - The destination URL for the forwarded request. Must be supported by the config. Max length: 5000.
"""
@type t :: %__MODULE__{
expand: [String.t()] | nil,
metadata: %{String.t() => String.t()} | nil,
payment_method: String.t(),
replacements: [String.t()],
request: request() | nil,
url: String.t()
}
defstruct [:expand, :metadata, :payment_method, :replacements, :request, :url]
@typedoc """
* `body` - The body payload to send to the destination endpoint. Max length: 5000.
* `headers` - The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.
"""
@type request :: %{
optional(:body) => String.t() | nil,
optional(:headers) => [request_headers()] | nil,
optional(String.t()) => term()
}
@typedoc """
* `name` - The header name. Max length: 5000.
* `value` - The header value. Max length: 5000.
"""
@type request_headers :: %{
optional(:name) => String.t() | nil,
optional(:value) => String.t() | nil,
optional(String.t()) => term()
}
end