Class: MetronomeSDK::Models::V1::Customers::PlanAddParams::OverageRateAdjustment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/customers/plan_add_params.rb

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(customer_id: , plan_id: , starting_on: , ending_before: nil, net_payment_terms_days: nil, overage_rate_adjustments: nil, price_adjustments: nil, trial_spec: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Customers::PlanAddParams for more details.

Parameters:



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 91

class OverageRateAdjustment < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute custom_credit_type_id
  #
  #   @return [String]
  required :custom_credit_type_id, String

  # @!attribute fiat_currency_credit_type_id
  #
  #   @return [String]
  required :fiat_currency_credit_type_id, String

  # @!attribute to_fiat_conversion_factor
  #   The overage cost in fiat currency for each credit of the custom credit type.
  #
  #   @return [Float]
  required :to_fiat_conversion_factor, Float

  # @!method initialize(custom_credit_type_id:, fiat_currency_credit_type_id:, to_fiat_conversion_factor:)
  #   @param custom_credit_type_id [String]
  #
  #   @param fiat_currency_credit_type_id [String]
  #
  #   @param to_fiat_conversion_factor [Float] The overage cost in fiat currency for each credit of the custom credit type.
end

Instance Attribute Details

#custom_credit_type_idString

Returns:

  • (String)


95
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 95

required :custom_credit_type_id, String

#fiat_currency_credit_type_idString

Returns:

  • (String)


100
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 100

required :fiat_currency_credit_type_id, String

#to_fiat_conversion_factorFloat

The overage cost in fiat currency for each credit of the custom credit type.

Returns:

  • (Float)


106
# File 'lib/metronome_sdk/models/v1/customers/plan_add_params.rb', line 106

required :to_fiat_conversion_factor, Float