Class: Dodopayments::Models::SubscriptionListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/subscription_list_response.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(billing: , cancel_at_next_billing_date: , created_at: , currency: , customer: , metadata: , next_billing_date: , on_demand: , payment_frequency_count: , payment_frequency_interval: , previous_billing_date: , product_id: , quantity: , recurring_pre_tax_amount: , status: , subscription_id: , subscription_period_count: , subscription_period_interval: , tax_inclusive: , trial_period_days: , cancelled_at: nil, discount_cycles_remaining: nil, discount_id: nil, payment_method_id: nil, tax_id: nil) ⇒ Object

Some parameter documentations has been truncated, see Dodopayments::Models::SubscriptionListResponse for more details.

Response struct representing subscription details

Parameters:

  • billing (Dodopayments::Models::BillingAddress) (defaults to: )

    Billing address details for payments

  • cancel_at_next_billing_date (Boolean) (defaults to: )

    Indicates if the subscription will cancel at the next billing date

  • created_at (Time) (defaults to: )

    Timestamp when the subscription was created

  • currency (Symbol, Dodopayments::Models::Currency) (defaults to: )

    Currency used for the subscription payments

  • customer (Dodopayments::Models::CustomerLimitedDetails) (defaults to: )

    Customer details associated with the subscription

  • metadata (Hash{Symbol=>String}) (defaults to: )

    Additional custom data associated with the subscription

  • next_billing_date (Time) (defaults to: )

    Timestamp of the next scheduled billing. Indicates the end of current billing pe

  • on_demand (Boolean) (defaults to: )

    Wether the subscription is on-demand or not

  • payment_frequency_count (Integer) (defaults to: )

    Number of payment frequency intervals

  • payment_frequency_interval (Symbol, Dodopayments::Models::TimeInterval) (defaults to: )

    Time interval for payment frequency (e.g. month, year)

  • previous_billing_date (Time) (defaults to: )

    Timestamp of the last payment. Indicates the start of current billing period

  • product_id (String) (defaults to: )

    Identifier of the product associated with this subscription

  • quantity (Integer) (defaults to: )

    Number of units/items included in the subscription

  • recurring_pre_tax_amount (Integer) (defaults to: )

    Amount charged before tax for each recurring payment in smallest currency unit (

  • status (Symbol, Dodopayments::Models::SubscriptionStatus) (defaults to: )

    Current status of the subscription

  • subscription_id (String) (defaults to: )

    Unique identifier for the subscription

  • subscription_period_count (Integer) (defaults to: )

    Number of subscription period intervals

  • subscription_period_interval (Symbol, Dodopayments::Models::TimeInterval) (defaults to: )

    Time interval for the subscription period (e.g. month, year)

  • tax_inclusive (Boolean) (defaults to: )

    Indicates if the recurring_pre_tax_amount is tax inclusive

  • trial_period_days (Integer) (defaults to: )

    Number of days in the trial period (0 if no trial)

  • cancelled_at (Time, nil) (defaults to: nil)

    Cancelled timestamp if the subscription is cancelled

  • discount_cycles_remaining (Integer, nil) (defaults to: nil)

    Number of remaining discount cycles if discount is applied

  • discount_id (String, nil) (defaults to: nil)

    The discount id if discount is applied

  • payment_method_id (String, nil) (defaults to: nil)

    Saved payment method id used for recurring charges

  • tax_id (String, nil) (defaults to: nil)

    Tax identifier provided for this subscription (if applicable)



# File 'lib/dodopayments/models/subscription_list_response.rb', line 159

Instance Attribute Details

#billingDodopayments::Models::BillingAddress

Billing address details for payments



11
# File 'lib/dodopayments/models/subscription_list_response.rb', line 11

required :billing, -> { Dodopayments::BillingAddress }

#cancel_at_next_billing_dateBoolean

Indicates if the subscription will cancel at the next billing date

Returns:

  • (Boolean)


17
# File 'lib/dodopayments/models/subscription_list_response.rb', line 17

required :cancel_at_next_billing_date, Dodopayments::Internal::Type::Boolean

#cancelled_atTime?

Cancelled timestamp if the subscription is cancelled

Returns:

  • (Time, nil)


133
# File 'lib/dodopayments/models/subscription_list_response.rb', line 133

optional :cancelled_at, Time, nil?: true

#created_atTime

Timestamp when the subscription was created

Returns:

  • (Time)


23
# File 'lib/dodopayments/models/subscription_list_response.rb', line 23

required :created_at, Time

#currencySymbol, Dodopayments::Models::Currency

Currency used for the subscription payments

Returns:



29
# File 'lib/dodopayments/models/subscription_list_response.rb', line 29

required :currency, enum: -> { Dodopayments::Currency }

#customerDodopayments::Models::CustomerLimitedDetails

Customer details associated with the subscription



35
# File 'lib/dodopayments/models/subscription_list_response.rb', line 35

required :customer, -> { Dodopayments::CustomerLimitedDetails }

#discount_cycles_remainingInteger?

Number of remaining discount cycles if discount is applied

Returns:

  • (Integer, nil)


139
# File 'lib/dodopayments/models/subscription_list_response.rb', line 139

optional :discount_cycles_remaining, Integer, nil?: true

#discount_idString?

The discount id if discount is applied

Returns:

  • (String, nil)


145
# File 'lib/dodopayments/models/subscription_list_response.rb', line 145

optional :discount_id, String, nil?: true

#metadataHash{Symbol=>String}

Additional custom data associated with the subscription

Returns:

  • (Hash{Symbol=>String})


41
# File 'lib/dodopayments/models/subscription_list_response.rb', line 41

required :metadata, Dodopayments::Internal::Type::HashOf[String]

#next_billing_dateTime

Timestamp of the next scheduled billing. Indicates the end of current billing period

Returns:

  • (Time)


48
# File 'lib/dodopayments/models/subscription_list_response.rb', line 48

required :next_billing_date, Time

#on_demandBoolean

Wether the subscription is on-demand or not

Returns:

  • (Boolean)


54
# File 'lib/dodopayments/models/subscription_list_response.rb', line 54

required :on_demand, Dodopayments::Internal::Type::Boolean

#payment_frequency_countInteger

Number of payment frequency intervals

Returns:

  • (Integer)


60
# File 'lib/dodopayments/models/subscription_list_response.rb', line 60

required :payment_frequency_count, Integer

#payment_frequency_intervalSymbol, Dodopayments::Models::TimeInterval

Time interval for payment frequency (e.g. month, year)



66
# File 'lib/dodopayments/models/subscription_list_response.rb', line 66

required :payment_frequency_interval, enum: -> { Dodopayments::TimeInterval }

#payment_method_idString?

Saved payment method id used for recurring charges

Returns:

  • (String, nil)


151
# File 'lib/dodopayments/models/subscription_list_response.rb', line 151

optional :payment_method_id, String, nil?: true

#previous_billing_dateTime

Timestamp of the last payment. Indicates the start of current billing period

Returns:

  • (Time)


72
# File 'lib/dodopayments/models/subscription_list_response.rb', line 72

required :previous_billing_date, Time

#product_idString

Identifier of the product associated with this subscription

Returns:

  • (String)


78
# File 'lib/dodopayments/models/subscription_list_response.rb', line 78

required :product_id, String

#quantityInteger

Number of units/items included in the subscription

Returns:

  • (Integer)


84
# File 'lib/dodopayments/models/subscription_list_response.rb', line 84

required :quantity, Integer

#recurring_pre_tax_amountInteger

Amount charged before tax for each recurring payment in smallest currency unit (e.g. cents)

Returns:

  • (Integer)


91
# File 'lib/dodopayments/models/subscription_list_response.rb', line 91

required :recurring_pre_tax_amount, Integer

#statusSymbol, Dodopayments::Models::SubscriptionStatus

Current status of the subscription



97
# File 'lib/dodopayments/models/subscription_list_response.rb', line 97

required :status, enum: -> { Dodopayments::SubscriptionStatus }

#subscription_idString

Unique identifier for the subscription

Returns:

  • (String)


103
# File 'lib/dodopayments/models/subscription_list_response.rb', line 103

required :subscription_id, String

#subscription_period_countInteger

Number of subscription period intervals

Returns:

  • (Integer)


109
# File 'lib/dodopayments/models/subscription_list_response.rb', line 109

required :subscription_period_count, Integer

#subscription_period_intervalSymbol, Dodopayments::Models::TimeInterval

Time interval for the subscription period (e.g. month, year)



115
# File 'lib/dodopayments/models/subscription_list_response.rb', line 115

required :subscription_period_interval, enum: -> { Dodopayments::TimeInterval }

#tax_idString?

Tax identifier provided for this subscription (if applicable)

Returns:

  • (String, nil)


157
# File 'lib/dodopayments/models/subscription_list_response.rb', line 157

optional :tax_id, String, nil?: true

#tax_inclusiveBoolean

Indicates if the recurring_pre_tax_amount is tax inclusive

Returns:

  • (Boolean)


121
# File 'lib/dodopayments/models/subscription_list_response.rb', line 121

required :tax_inclusive, Dodopayments::Internal::Type::Boolean

#trial_period_daysInteger

Number of days in the trial period (0 if no trial)

Returns:

  • (Integer)


127
# File 'lib/dodopayments/models/subscription_list_response.rb', line 127

required :trial_period_days, Integer