Class: Orb::Models::Customers::CostListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/orb/models/customers/cost_list_params.rb

Overview

Defined Under Namespace

Modules: ViewMode

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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: nil, timeframe_end: nil, timeframe_start: nil, view_mode: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Orb::Models::Customers::CostListParams for more details.

Parameters:

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

    The currency or custom pricing unit to use.

  • timeframe_end (Time, nil) (defaults to: nil)

    Costs returned are exclusive of ‘timeframe_end`.

  • timeframe_start (Time, nil) (defaults to: nil)

    Costs returned are inclusive of ‘timeframe_start`.

  • view_mode (Symbol, Orb::Models::Customers::CostListParams::ViewMode, nil) (defaults to: nil)

    Controls whether Orb returns cumulative costs since the start of the billing per

  • request_options (Orb::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


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


Instance Attribute Details

#currencyString?

The currency or custom pricing unit to use.

Returns:

  • (String, nil)


15
# File 'lib/orb/models/customers/cost_list_params.rb', line 15

optional :currency, String, nil?: true

#timeframe_endTime?

Costs returned are exclusive of ‘timeframe_end`.

Returns:

  • (Time, nil)


21
# File 'lib/orb/models/customers/cost_list_params.rb', line 21

optional :timeframe_end, Time, nil?: true

#timeframe_startTime?

Costs returned are inclusive of ‘timeframe_start`.

Returns:

  • (Time, nil)


27
# File 'lib/orb/models/customers/cost_list_params.rb', line 27

optional :timeframe_start, Time, nil?: true

#view_modeSymbol, ...

Controls whether Orb returns cumulative costs since the start of the billing period, or incremental day-by-day costs. If your customer has minimums or discounts, it’s strongly recommended that you use the default cumulative behavior.



36
# File 'lib/orb/models/customers/cost_list_params.rb', line 36

optional :view_mode, enum: -> { Orb::Customers::CostListParams::ViewMode }, nil?: true