Class: Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::PriceEvaluatePreviewEventsParams::PriceEvaluation::Price::MatrixWithThresholdDiscounts::MatrixWithThresholdDiscountsConfig::MatrixValue
- Defined in:
- lib/orb/models/price_evaluate_preview_events_params.rb,
sig/orb/models/price_evaluate_preview_events_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
1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 |
# File 'lib/orb/models/price_evaluate_preview_events_params.rb', line 1000 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
1004 |
# File 'lib/orb/models/price_evaluate_preview_events_params.rb', line 1004 required :first_dimension_value, String |
#second_dimension_value ⇒ String?
1014 |
# File 'lib/orb/models/price_evaluate_preview_events_params.rb', line 1014 optional :second_dimension_value, String, nil?: true |
#unit_amount ⇒ String
1009 |
# File 'lib/orb/models/price_evaluate_preview_events_params.rb', line 1009 required :unit_amount, String |
Instance Method Details
#to_hash ⇒ {
715 |
# File 'sig/orb/models/price_evaluate_preview_events_params.rbs', line 715
def to_hash: -> {
|