Class: Dodopayments::Models::SubscriptionListResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::SubscriptionListResponse
- Defined in:
- lib/dodopayments/models/subscription_list_response.rb
Overview
Instance Attribute Summary collapse
-
#billing ⇒ Dodopayments::Models::BillingAddress
Billing address details for payments.
-
#cancel_at_next_billing_date ⇒ Boolean
Indicates if the subscription will cancel at the next billing date.
-
#cancelled_at ⇒ Time?
Cancelled timestamp if the subscription is cancelled.
-
#created_at ⇒ Time
Timestamp when the subscription was created.
-
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency used for the subscription payments.
-
#customer ⇒ Dodopayments::Models::CustomerLimitedDetails
Customer details associated with the subscription.
-
#discount_cycles_remaining ⇒ Integer?
Number of remaining discount cycles if discount is applied.
-
#discount_id ⇒ String?
The discount id if discount is applied.
-
#metadata ⇒ Hash{Symbol=>String}
Additional custom data associated with the subscription.
-
#next_billing_date ⇒ Time
Timestamp of the next scheduled billing.
-
#on_demand ⇒ Boolean
Wether the subscription is on-demand or not.
-
#payment_frequency_count ⇒ Integer
Number of payment frequency intervals.
-
#payment_frequency_interval ⇒ Symbol, Dodopayments::Models::TimeInterval
Time interval for payment frequency (e.g. month, year).
-
#payment_method_id ⇒ String?
Saved payment method id used for recurring charges.
-
#previous_billing_date ⇒ Time
Timestamp of the last payment.
-
#product_id ⇒ String
Identifier of the product associated with this subscription.
-
#quantity ⇒ Integer
Number of units/items included in the subscription.
-
#recurring_pre_tax_amount ⇒ Integer
Amount charged before tax for each recurring payment in smallest currency unit (e.g. cents).
-
#status ⇒ Symbol, Dodopayments::Models::SubscriptionStatus
Current status of the subscription.
-
#subscription_id ⇒ String
Unique identifier for the subscription.
-
#subscription_period_count ⇒ Integer
Number of subscription period intervals.
-
#subscription_period_interval ⇒ Symbol, Dodopayments::Models::TimeInterval
Time interval for the subscription period (e.g. month, year).
-
#tax_id ⇒ String?
Tax identifier provided for this subscription (if applicable).
-
#tax_inclusive ⇒ Boolean
Indicates if the recurring_pre_tax_amount is tax inclusive.
-
#trial_period_days ⇒ Integer
Number of days in the trial period (0 if no trial).
Instance Method Summary collapse
-
#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
constructor
Some parameter documentations has been truncated, see SubscriptionListResponse for more details.
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
|
|
# File 'lib/dodopayments/models/subscription_list_response.rb', line 159
|
Instance Attribute Details
#billing ⇒ Dodopayments::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_date ⇒ Boolean
Indicates if the subscription will cancel at the next billing date
17 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 17 required :cancel_at_next_billing_date, Dodopayments::Internal::Type::Boolean |
#cancelled_at ⇒ Time?
Cancelled timestamp if the subscription is cancelled
133 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 133 optional :cancelled_at, Time, nil?: true |
#created_at ⇒ Time
Timestamp when the subscription was created
23 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 23 required :created_at, Time |
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency used for the subscription payments
29 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 29 required :currency, enum: -> { Dodopayments::Currency } |
#customer ⇒ Dodopayments::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_remaining ⇒ Integer?
Number of remaining discount cycles if discount is applied
139 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 139 optional :discount_cycles_remaining, Integer, nil?: true |
#discount_id ⇒ String?
The discount id if discount is applied
145 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 145 optional :discount_id, String, nil?: true |
#metadata ⇒ Hash{Symbol=>String}
Additional custom data associated with the subscription
41 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 41 required :metadata, Dodopayments::Internal::Type::HashOf[String] |
#next_billing_date ⇒ Time
Timestamp of the next scheduled billing. Indicates the end of current billing period
48 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 48 required :next_billing_date, Time |
#on_demand ⇒ Boolean
Wether the subscription is on-demand or not
54 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 54 required :on_demand, Dodopayments::Internal::Type::Boolean |
#payment_frequency_count ⇒ Integer
Number of payment frequency intervals
60 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 60 required :payment_frequency_count, Integer |
#payment_frequency_interval ⇒ Symbol, 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_id ⇒ String?
Saved payment method id used for recurring charges
151 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 151 optional :payment_method_id, String, nil?: true |
#previous_billing_date ⇒ Time
Timestamp of the last payment. Indicates the start of current billing period
72 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 72 required :previous_billing_date, Time |
#product_id ⇒ String
Identifier of the product associated with this subscription
78 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 78 required :product_id, String |
#quantity ⇒ Integer
Number of units/items included in the subscription
84 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 84 required :quantity, Integer |
#recurring_pre_tax_amount ⇒ Integer
Amount charged before tax for each recurring payment in smallest currency unit (e.g. cents)
91 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 91 required :recurring_pre_tax_amount, Integer |
#status ⇒ Symbol, 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_id ⇒ String
Unique identifier for the subscription
103 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 103 required :subscription_id, String |
#subscription_period_count ⇒ Integer
Number of subscription period intervals
109 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 109 required :subscription_period_count, Integer |
#subscription_period_interval ⇒ Symbol, 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_id ⇒ String?
Tax identifier provided for this subscription (if applicable)
157 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 157 optional :tax_id, String, nil?: true |
#tax_inclusive ⇒ Boolean
Indicates if the recurring_pre_tax_amount is tax inclusive
121 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 121 required :tax_inclusive, Dodopayments::Internal::Type::Boolean |
#trial_period_days ⇒ Integer
Number of days in the trial period (0 if no trial)
127 |
# File 'lib/dodopayments/models/subscription_list_response.rb', line 127 required :trial_period_days, Integer |