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 resources mandate.ex
Raw

lib/stripe/resources/mandate.ex

# File generated from our OpenAPI spec
defmodule Stripe.Resources.Mandate do
@moduledoc """
Mandate
A Mandate is a record of the permission that your customer gives you to debit their payment method.
"""
@typedoc """
* `customer_acceptance` - Expandable.
* `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.
* `multi_use` - Expandable.
* `object` - String representing the object's type. Objects of the same type share the same value. Possible values: `mandate`.
* `on_behalf_of` - The account (if any) that the mandate is intended for. Max length: 5000.
* `payment_method` - ID of the payment method associated with this mandate. Expandable.
* `payment_method_details` - Expandable.
* `single_use` - Expandable.
* `status` - The mandate status indicates whether or not you can use it to initiate a payment. Possible values: `active`, `inactive`, `pending`.
* `type` - The type of the mandate. Possible values: `multi_use`, `single_use`.
"""
@type t :: %__MODULE__{
customer_acceptance: map(),
id: String.t(),
livemode: boolean(),
multi_use: map() | nil,
object: String.t(),
on_behalf_of: String.t() | nil,
payment_method: String.t() | map(),
payment_method_details: map(),
single_use: map() | nil,
status: String.t(),
type: String.t()
}
defstruct [
:customer_acceptance,
:id,
:livemode,
:multi_use,
:object,
:on_behalf_of,
:payment_method,
:payment_method_details,
:single_use,
:status,
:type
]
@object_name "mandate"
def object_name, do: @object_name
def expandable_fields,
do: [
"customer_acceptance",
"multi_use",
"payment_method",
"payment_method_details",
"single_use"
]
end