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
tiger_stripe lib stripe params shipping_rate_update_params.ex
Raw

lib/stripe/params/shipping_rate_update_params.ex

# File generated from our OpenAPI spec
defmodule Stripe.Params.ShippingRateUpdateParams do
@moduledoc "Parameters for shipping rate update."
@typedoc """
* `active` - Whether the shipping rate can be used for new purchases. Defaults to `true`.
* `expand` - Specifies which fields in the response should be expanded.
* `fixed_amount` - Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
* `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`.
* `tax_behavior` - Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Possible values: `exclusive`, `inclusive`, `unspecified`.
"""
@type t :: %__MODULE__{
active: boolean() | nil,
expand: [String.t()] | nil,
fixed_amount: map() | nil,
metadata: map() | nil,
tax_behavior: String.t() | nil
}
defstruct [:active, :expand, :fixed_amount, :metadata, :tax_behavior]
defmodule FixedAmount do
@moduledoc "Nested parameters."
@typedoc """
* `currency_options` - Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
"""
@type t :: %__MODULE__{
currency_options: map() | nil
}
defstruct [:currency_options]
end
end