Class: Orb::Models::PriceEvaluateMultipleResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/price_evaluate_multiple_response.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(currency: , price_groups: , external_price_id: nil, inline_price_index: nil, price_id: nil) ⇒ Object

Parameters:

  • currency (String) (defaults to: )

    The currency of the price

  • price_groups (Array<Orb::Models::EvaluatePriceGroup>) (defaults to: )

    The computed price groups associated with input price.

  • external_price_id (String, nil) (defaults to: nil)

    The external ID of the price

  • inline_price_index (Integer, nil) (defaults to: nil)

    The index of the inline price

  • price_id (String, nil) (defaults to: nil)

    The ID of the price



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_multiple_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

#currencyString

The currency of the price

Returns:

  • (String)


20
# File 'lib/orb/models/price_evaluate_multiple_response.rb', line 20

required :currency, String

#external_price_idString?

The external ID of the price

Returns:

  • (String, nil)


32
# File 'lib/orb/models/price_evaluate_multiple_response.rb', line 32

optional :external_price_id, String, nil?: true

#inline_price_indexInteger?

The index of the inline price

Returns:

  • (Integer, nil)


38
# File 'lib/orb/models/price_evaluate_multiple_response.rb', line 38

optional :inline_price_index, Integer, nil?: true

#price_groupsArray<Orb::Models::EvaluatePriceGroup>

The computed price groups associated with input price.



26
# File 'lib/orb/models/price_evaluate_multiple_response.rb', line 26

required :price_groups, -> { Orb::Internal::Type::ArrayOf[Orb::EvaluatePriceGroup] }

#price_idString?

The ID of the price

Returns:

  • (String, nil)


44
# File 'lib/orb/models/price_evaluate_multiple_response.rb', line 44

optional :price_id, String, nil?: true