DodoPayments.Subscription (dodo_payments v0.1.0)

Copy Markdown View Source

A subscription response.

Summary

Types

t()

@type t() :: %DodoPayments.Subscription{
  addons: [DodoPayments.ResponseTypes.object()] | nil,
  billing: DodoPayments.ResponseTypes.billing_address() | nil,
  brand_id: String.t() | nil,
  business_id: term() | nil,
  cancel_at_next_billing_date: boolean() | nil,
  cancellation_comment: String.t() | nil,
  cancellation_feedback:
    DodoPayments.Enums.decoded_cancellation_feedback() | nil,
  cancelled_at: String.t() | nil,
  created_at: String.t() | nil,
  credit_entitlement_cart: [DodoPayments.ResponseTypes.object()] | nil,
  currency: DodoPayments.Enums.decoded_currency() | nil,
  custom_field_responses:
    [DodoPayments.ResponseTypes.custom_field_response()] | nil,
  customer: DodoPayments.ResponseTypes.customer_limited_details() | nil,
  customer_business_name: String.t() | nil,
  discount_cycles_remaining: number() | nil,
  discount_id: String.t() | nil,
  discounts: [DodoPayments.ResponseTypes.object()] | nil,
  expires_at: String.t() | nil,
  extra: map(),
  metadata: DodoPayments.ResponseTypes.metadata() | nil,
  meter_credit_entitlement_cart: [DodoPayments.ResponseTypes.object()] | nil,
  meters: [DodoPayments.ResponseTypes.object()] | nil,
  next_billing_date: String.t() | nil,
  on_demand: boolean() | nil,
  paused_at: String.t() | nil,
  payment_frequency_count: number() | nil,
  payment_frequency_interval: DodoPayments.Enums.decoded_time_interval() | nil,
  payment_method_id: String.t() | nil,
  previous_billing_date: String.t() | nil,
  product_id: String.t() | nil,
  product_name: String.t() | nil,
  quantity: number() | nil,
  recurring_pre_tax_amount: number() | nil,
  scheduled_change: DodoPayments.ResponseTypes.object() | nil,
  status: DodoPayments.Enums.decoded_subscription_status() | nil,
  subscription_id: String.t() | nil,
  subscription_period_count: number() | nil,
  subscription_period_interval:
    DodoPayments.Enums.decoded_time_interval() | nil,
  tax_id: String.t() | nil,
  tax_inclusive: boolean() | nil,
  trial_amount: number() | nil,
  trial_period_days: number() | nil
}