Class: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge

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

Overview

See Also:

Defined Under Namespace

Modules: LineItem Classes: Summary

Instance Attribute Summary collapse

Class Method 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(id:, chargeable_units:, currency:, free_threshold:, name:, price_per_unit:, subtotal:, tax_inclusive:, tax_rate:, units_consumed:, description: nil, tax: nil, type: :meter) ⇒ Object

Parameters:

  • id (String)
  • chargeable_units (String)
  • currency (Symbol, Dodopayments::Models::Currency)
  • free_threshold (Integer)
  • name (String)
  • price_per_unit (String)
  • subtotal (Integer)
  • tax_inclusive (Boolean)
  • tax_rate (Float)
  • units_consumed (String)
  • description (String, nil) (defaults to: nil)
  • tax (Integer, nil) (defaults to: nil)
  • type (Symbol, :meter) (defaults to: :meter)


# File 'lib/dodopayments/models/subscription_preview_change_plan_response.rb', line 300

Instance Attribute Details

#effective_atTime

When the plan change will be effective

Returns:

  • (Time)


30
# File 'lib/dodopayments/models/subscription_preview_change_plan_response.rb', line 30

required :effective_at, Time