Class: Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::NewSubscriptionMatrixWithDisplayNamePrice::MatrixWithDisplayNameConfig::UnitAmount
- Defined in:
- lib/orb/models/new_subscription_matrix_with_display_name_price.rb,
sig/orb/models/new_subscription_matrix_with_display_name_price.rbs
Instance Attribute Summary collapse
-
#dimension_value ⇒ String
The dimension value.
-
#display_name ⇒ String
Display name for this dimension value.
-
#unit_amount ⇒ String
Per unit amount.
Instance Method Summary collapse
-
#initialize(dimension:, unit_amounts:) ⇒ Object
constructor
Configuration for matrix_with_display_name pricing.
- #to_hash ⇒ {
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(dimension:, unit_amounts:) ⇒ Object
Configuration for matrix_with_display_name pricing
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/orb/models/new_subscription_matrix_with_display_name_price.rb', line 211 class UnitAmount < Orb::Internal::Type::BaseModel # @!attribute dimension_value # The dimension value # # @return [String] required :dimension_value, String # @!attribute display_name # Display name for this dimension value # # @return [String] required :display_name, String # @!attribute unit_amount # Per unit amount # # @return [String] required :unit_amount, String # @!method initialize(dimension_value:, display_name:, unit_amount:) # Configuration for a unit amount item # # @param dimension_value [String] The dimension value # # @param display_name [String] Display name for this dimension value # # @param unit_amount [String] Per unit amount end |
Instance Attribute Details
#dimension_value ⇒ String
The dimension value
216 |
# File 'lib/orb/models/new_subscription_matrix_with_display_name_price.rb', line 216 required :dimension_value, String |
#display_name ⇒ String
Display name for this dimension value
222 |
# File 'lib/orb/models/new_subscription_matrix_with_display_name_price.rb', line 222 required :display_name, String |
#unit_amount ⇒ String
Per unit amount
228 |
# File 'lib/orb/models/new_subscription_matrix_with_display_name_price.rb', line 228 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ {
162 |
# File 'sig/orb/models/new_subscription_matrix_with_display_name_price.rbs', line 162
def to_hash: -> {
|