Class: Dodopayments::Models::SubscriptionPreviewChangePlanResponse::ImmediateCharge::LineItem::Meter

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

Defined Under Namespace

Modules: Type

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

Parameters:



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

Instance Attribute Details

#chargeable_unitsString

Returns:

  • (String)


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

required :chargeable_units, String

#currencySymbol, Dodopayments::Models::Currency

Returns:



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

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

#descriptionString?

Returns:

  • (String, nil)


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

optional :description, String, nil?: true

#free_thresholdInteger

Returns:

  • (Integer)


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

required :free_threshold, Integer

#idString

Returns:

  • (String)


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

required :id, String

#nameString

Returns:

  • (String)


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

required :name, String

#price_per_unitString

Returns:

  • (String)


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

required :price_per_unit, String

#subtotalInteger

Returns:

  • (Integer)


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

required :subtotal, Integer

#taxInteger?

Returns:

  • (Integer, nil)


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

optional :tax, Integer, nil?: true

#tax_inclusiveBoolean

Returns:

  • (Boolean)


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

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

#tax_rateFloat

Returns:

  • (Float)


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

required :tax_rate, Float

#units_consumedString

Returns:

  • (String)


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

required :units_consumed, String