Class: Orb::Models::PriceEvaluatePreviewEventsResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::PriceEvaluatePreviewEventsResponse::Data
- Defined in:
- lib/orb/models/price_evaluate_preview_events_response.rb
Instance Attribute Summary collapse
-
#currency ⇒ String
The currency of the price.
-
#external_price_id ⇒ String?
The external ID of the price.
-
#inline_price_index ⇒ Integer?
The index of the inline price.
-
#price_groups ⇒ Array<Orb::Models::EvaluatePriceGroup>
The computed price groups associated with input price.
-
#price_id ⇒ String?
The ID of the price.
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(currency: , price_groups: , external_price_id: nil, inline_price_index: nil, price_id: nil) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 15 class Data < Orb::Internal::Type::BaseModel # @!attribute currency # The currency of the price # # @return [String] required :currency, String # @!attribute price_groups # The computed price groups associated with input price. # # @return [Array<Orb::Models::EvaluatePriceGroup>] required :price_groups, -> { Orb::Internal::Type::ArrayOf[Orb::EvaluatePriceGroup] } # @!attribute external_price_id # The external ID of the price # # @return [String, nil] optional :external_price_id, String, nil?: true # @!attribute inline_price_index # The index of the inline price # # @return [Integer, nil] optional :inline_price_index, Integer, nil?: true # @!attribute price_id # The ID of the price # # @return [String, nil] optional :price_id, String, nil?: true # @!method initialize(currency:, price_groups:, external_price_id: nil, inline_price_index: nil, price_id: nil) # @param currency [String] The currency of the price # # @param price_groups [Array<Orb::Models::EvaluatePriceGroup>] The computed price groups associated with input price. # # @param external_price_id [String, nil] The external ID of the price # # @param inline_price_index [Integer, nil] The index of the inline price # # @param price_id [String, nil] The ID of the price end |
Instance Attribute Details
#currency ⇒ String
The currency of the price
20 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 20 required :currency, String |
#external_price_id ⇒ String?
The external ID of the price
32 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 32 optional :external_price_id, String, nil?: true |
#inline_price_index ⇒ Integer?
The index of the inline price
38 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 38 optional :inline_price_index, Integer, nil?: true |
#price_groups ⇒ Array<Orb::Models::EvaluatePriceGroup>
The computed price groups associated with input price.
26 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 26 required :price_groups, -> { Orb::Internal::Type::ArrayOf[Orb::EvaluatePriceGroup] } |
#price_id ⇒ String?
The ID of the price
44 |
# File 'lib/orb/models/price_evaluate_preview_events_response.rb', line 44 optional :price_id, String, nil?: true |