DodoPayments.Payment (dodo_payments v0.1.0)

Copy Markdown View Source

A payment response.

Summary

Types

t()

@type t() :: %DodoPayments.Payment{
  billing: DodoPayments.ResponseTypes.billing_address() | nil,
  brand_id: String.t() | nil,
  business_id: String.t() | nil,
  card_holder_name: String.t() | nil,
  card_issuing_country: DodoPayments.Enums.decoded_country_code() | nil,
  card_last_four: String.t() | nil,
  card_network: String.t() | nil,
  card_type: String.t() | nil,
  checkout_session_id: String.t() | nil,
  created_at: String.t() | nil,
  currency: DodoPayments.Enums.decoded_currency() | nil,
  custom_field_responses:
    [DodoPayments.ResponseTypes.custom_field_response()] | nil,
  customer: DodoPayments.ResponseTypes.customer_limited_details() | nil,
  digital_products_delivered: boolean() | nil,
  discount_id: String.t() | nil,
  discounts: [DodoPayments.ResponseTypes.object()] | nil,
  dispute_status: DodoPayments.Enums.decoded_dispute_status() | nil,
  disputes: [DodoPayments.ResponseTypes.dispute()] | nil,
  error_code: String.t() | nil,
  error_message: String.t() | nil,
  extra: map(),
  has_license_key: boolean() | nil,
  invoice_id: String.t() | nil,
  invoice_url: String.t() | nil,
  is_update_payment_method: boolean() | nil,
  metadata: DodoPayments.ResponseTypes.metadata() | nil,
  payment_id: String.t() | nil,
  payment_link: String.t() | nil,
  payment_method: String.t() | nil,
  payment_method_id: String.t() | nil,
  payment_method_type: String.t() | nil,
  payment_provider: DodoPayments.Enums.decoded_payment_provider() | nil,
  product_cart: [DodoPayments.ResponseTypes.product_cart_item()] | nil,
  refund_status: DodoPayments.Enums.decoded_payment_refund_status() | nil,
  refunds: [DodoPayments.ResponseTypes.refund_list_item()] | nil,
  retry_attempt: number() | nil,
  settlement_amount: number() | nil,
  settlement_currency: DodoPayments.Enums.decoded_currency() | nil,
  settlement_tax: number() | nil,
  status: DodoPayments.Enums.decoded_intent_status() | nil,
  subscription_id: String.t() | nil,
  tax: number() | nil,
  total_amount: number() | nil,
  updated_at: String.t() | nil
}