Stripe.Params.PaymentRecordReportPaymentAttemptParams (tiger_stripe v0.3.0)

Copy Markdown View Source

Parameters for payment record report payment attempt.

Summary

Types

failed()

@type failed() :: %{
  optional(:failed_at) => integer() | nil,
  optional(String.t()) => term()
}
  • failed_at - When the reported payment failed. Measured in seconds since the Unix epoch. Format: Unix timestamp.

guaranteed()

@type guaranteed() :: %{
  optional(:guaranteed_at) => integer() | nil,
  optional(String.t()) => term()
}
  • guaranteed_at - When the reported payment was guaranteed. Measured in seconds since the Unix epoch. Format: Unix timestamp.

payment_method_details()

@type payment_method_details() :: %{
  optional(:billing_details) => payment_method_details_billing_details() | nil,
  optional(:custom) => payment_method_details_custom() | nil,
  optional(:payment_method) => String.t() | nil,
  optional(:type) => String.t() | nil,
  optional(String.t()) => term()
}
  • billing_details - The billing details associated with the method of payment.
  • custom - Information about the custom (user-defined) payment method used to make this payment.
  • payment_method - ID of the Stripe Payment Method used to make this payment. Max length: 5000.
  • type - The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. Possible values: custom.

payment_method_details_billing_details()

@type payment_method_details_billing_details() :: %{
  optional(:address) => payment_method_details_billing_details_address() | nil,
  optional(:email) => String.t() | nil,
  optional(:name) => String.t() | nil,
  optional(:phone) => String.t() | nil,
  optional(String.t()) => term()
}
  • address - The billing address associated with the method of payment.
  • email - The billing email associated with the method of payment.
  • name - The billing name associated with the method of payment. Max length: 5000.
  • phone - The billing phone number associated with the method of payment.

payment_method_details_billing_details_address()

@type payment_method_details_billing_details_address() :: %{
  optional(:city) => String.t() | nil,
  optional(:country) => String.t() | nil,
  optional(:line1) => String.t() | nil,
  optional(:line2) => String.t() | nil,
  optional(:postal_code) => String.t() | nil,
  optional(:state) => String.t() | nil,
  optional(String.t()) => term()
}
  • city - City, district, suburb, town, or village. Max length: 5000.
  • country - Two-letter country code (ISO 3166-1 alpha-2). Max length: 5000.
  • line1 - Address line 1, such as the street, PO Box, or company name. Max length: 5000.
  • line2 - Address line 2, such as the apartment, suite, unit, or building. Max length: 5000.
  • postal_code - ZIP or postal code. Max length: 5000.
  • state - State, county, province, or region (ISO 3166-2). Max length: 5000.

payment_method_details_custom()

@type payment_method_details_custom() :: %{
  optional(:display_name) => String.t() | nil,
  optional(:type) => String.t() | nil,
  optional(String.t()) => term()
}
  • display_name - Display name for the custom (user-defined) payment method type used to make this payment. Max length: 5000.
  • type - The custom payment method type associated with this payment. Max length: 5000.

shipping_details()

@type shipping_details() :: %{
  optional(:address) => shipping_details_address() | nil,
  optional(:name) => String.t() | nil,
  optional(:phone) => String.t() | nil,
  optional(String.t()) => term()
}
  • address - The physical shipping address.
  • name - The shipping recipient's name. Max length: 5000.
  • phone - The shipping recipient's phone number.

shipping_details_address()

@type shipping_details_address() :: %{
  optional(:city) => String.t() | nil,
  optional(:country) => String.t() | nil,
  optional(:line1) => String.t() | nil,
  optional(:line2) => String.t() | nil,
  optional(:postal_code) => String.t() | nil,
  optional(:state) => String.t() | nil,
  optional(String.t()) => term()
}
  • city - City, district, suburb, town, or village. Max length: 5000.
  • country - Two-letter country code (ISO 3166-1 alpha-2). Max length: 5000.
  • line1 - Address line 1, such as the street, PO Box, or company name. Max length: 5000.
  • line2 - Address line 2, such as the apartment, suite, unit, or building. Max length: 5000.
  • postal_code - ZIP or postal code. Max length: 5000.
  • state - State, county, province, or region (ISO 3166-2). Max length: 5000.

t()

@type t() :: %Stripe.Params.PaymentRecordReportPaymentAttemptParams{
  description: String.t() | nil,
  expand: [String.t()] | nil,
  failed: failed() | nil,
  guaranteed: guaranteed() | nil,
  initiated_at: integer(),
  metadata: map() | nil,
  outcome: String.t() | nil,
  payment_method_details: payment_method_details() | nil,
  shipping_details: shipping_details() | nil
}
  • description - An arbitrary string attached to the object. Often useful for displaying to users. Max length: 5000.
  • expand - Specifies which fields in the response should be expanded.
  • failed - Information about the payment attempt failure.
  • guaranteed - Information about the payment attempt guarantee.
  • initiated_at - When the reported payment was initiated. Measured in seconds since the Unix epoch. Format: Unix timestamp.
  • metadata - Set of key-value pairs 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.
  • outcome - The outcome of the reported payment. Possible values: failed, guaranteed.
  • payment_method_details - Information about the Payment Method debited for this payment.
  • shipping_details - Shipping information for this payment.