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 payment_method_domain.ex
Raw

lib/stripe/resources/payment_method_domain.ex

# File generated from our OpenAPI spec
defmodule Stripe.Resources.PaymentMethodDomain do
@moduledoc """
PaymentMethodDomainResourcePaymentMethodDomain
A payment method domain represents a web domain that you have registered with Stripe.
Stripe Elements use registered payment method domains to control where certain payment methods are shown.
Related guide: [Payment method domains](https://docs.stripe.com/payments/payment-methods/pmd-registration).
"""
@typedoc """
* `amazon_pay` - Expandable.
* `apple_pay` - Expandable.
* `created` - Time at which the object was created. Measured in seconds since the Unix epoch. Format: Unix timestamp.
* `domain_name` - The domain name that this payment method domain object represents. Max length: 5000.
* `enabled` - Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
* `google_pay` - Expandable.
* `id` - Unique identifier for the object. Max length: 5000.
* `klarna` - Expandable.
* `link` - Expandable.
* `livemode` - If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
* `object` - String representing the object's type. Objects of the same type share the same value. Possible values: `payment_method_domain`.
* `paypal` - Expandable.
"""
@type t :: %__MODULE__{}
defstruct [
:amazon_pay,
:apple_pay,
:created,
:domain_name,
:enabled,
:google_pay,
:id,
:klarna,
:link,
:livemode,
:object,
:paypal
]
@object_name "payment_method_domain"
def object_name, do: @object_name
def expandable_fields, do: ["amazon_pay", "apple_pay", "google_pay", "klarna", "link", "paypal"]
def __nested_fields__ do
%{
"amazon_pay" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
},
"apple_pay" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
},
"google_pay" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
},
"klarna" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
},
"link" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
},
"paypal" => %{
fields: %{
"status" => :scalar,
"status_details" => %{
fields: %{
"error_message" => :scalar
}
}
}
}
}
end
end