PolarExpress.Schemas.GenericPayment (polar_express v0.2.2)

Copy Markdown View Source

GenericPayment

Schema of a payment with a generic payment method.

Summary

Types

t()

@type t() :: %PolarExpress.Schemas.GenericPayment{
  amount: term(),
  checkout_id: term(),
  created_at: term(),
  currency: term(),
  decline_message: term(),
  decline_reason: term(),
  id: term(),
  method: term(),
  modified_at: term(),
  order_id: term(),
  organization_id: term(),
  processor: term(),
  processor_metadata: term(),
  status: term()
}
  • amount - The payment amount in cents.
  • checkout_id - The ID of the checkout session associated with this payment. Nullable.
  • created_at - Creation timestamp of the object. Format: date-time.
  • currency - The payment currency. Currently, only usd is supported.
  • decline_message - Human-readable error message, if the payment was declined. Nullable.
  • decline_reason - Error code, if the payment was declined. Nullable.
  • id - The ID of the object. Format: uuid4.
  • method - The payment method used.
  • modified_at - Last modification timestamp of the object. Nullable.
  • order_id - The ID of the order associated with this payment. Nullable.
  • organization_id - The ID of the organization that owns the payment. Format: uuid4.
  • processor - The payment processor.
  • processor_metadata - Additional metadata from the payment processor for internal use.
  • status - The payment status.

Functions

schema_name()