Class: Orb::Models::EventUpdateParams

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

Overview

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(event_name: , properties: , timestamp: , customer_id: nil, external_customer_id: nil, request_options: {}) ⇒ Object

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

Parameters:

  • event_name (String) (defaults to: )

    A name to meaningfully identify the action or event type.

  • properties (Hash{Symbol=>Object}) (defaults to: )

    A dictionary of custom properties. Values in this dictionary must be numeric, bo

  • timestamp (Time) (defaults to: )

    An ISO 8601 format date with no timezone offset (i.e. UTC). This should represen

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

    The Orb Customer identifier

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

    An alias for the Orb customer, whose mapping is specified when creating the cust

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


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

Instance Attribute Details

#customer_idString?

The Orb Customer identifier

Returns:

  • (String, nil)


35
# File 'lib/orb/models/event_update_params.rb', line 35

optional :customer_id, String, nil?: true

#event_nameString

A name to meaningfully identify the action or event type.

Returns:

  • (String)


14
# File 'lib/orb/models/event_update_params.rb', line 14

required :event_name, String

#external_customer_idString?

An alias for the Orb customer, whose mapping is specified when creating the customer

Returns:

  • (String, nil)


42
# File 'lib/orb/models/event_update_params.rb', line 42

optional :external_customer_id, String, nil?: true

#propertiesHash{Symbol=>Object}

A dictionary of custom properties. Values in this dictionary must be numeric, boolean, or strings. Nested dictionaries are disallowed.

Returns:

  • (Hash{Symbol=>Object})


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

required :properties, Orb::Internal::Type::HashOf[Orb::Internal::Type::Unknown]

#timestampTime

An ISO 8601 format date with no timezone offset (i.e. UTC). This should represent the time that usage was recorded, and is particularly important to attribute usage to a given billing period.

Returns:

  • (Time)


29
# File 'lib/orb/models/event_update_params.rb', line 29

required :timestamp, Time