Class: Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::Beta::ExternalPlanIDCreatePlanVersionParams::AddPrice::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
- Defined in:
- lib/orb/models/beta/external_plan_id_create_plan_version_params.rb,
sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(default_unit_amount:, first_dimension:, matrix_values:, second_dimension: nil, threshold_discount_groups: nil) ⇒ Object
constructor
Configuration for matrix_with_threshold_discounts 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(default_unit_amount:, first_dimension:, matrix_values:, second_dimension: nil, threshold_discount_groups: nil) ⇒ Object
Configuration for matrix_with_threshold_discounts pricing
1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 1239 class MatrixValue < Orb::Internal::Type::BaseModel # @!attribute first_dimension_value # # @return [String] required :first_dimension_value, String # @!attribute unit_amount # # @return [String] required :unit_amount, String # @!attribute second_dimension_value # # @return [String, nil] optional :second_dimension_value, String, nil?: true # @!method initialize(first_dimension_value:, unit_amount:, second_dimension_value: nil) # @param first_dimension_value [String] # @param unit_amount [String] # @param second_dimension_value [String, nil] end |
Instance Attribute Details
#first_dimension_value ⇒ String
1243 |
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 1243 required :first_dimension_value, String |
#second_dimension_value ⇒ String?
1253 |
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 1253 optional :second_dimension_value, String, nil?: true |
#unit_amount ⇒ String
1248 |
# File 'lib/orb/models/beta/external_plan_id_create_plan_version_params.rb', line 1248 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ {
879 |
# File 'sig/orb/models/beta/external_plan_id_create_plan_version_params.rbs', line 879
def to_hash: -> {
|