Class: Stigg::Models::V1::Subscriptions::UsageChargeUsageResponse::Data::UsageCharged

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/subscriptions/usage_charge_usage_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(feature_id:, usage_amount:) ⇒ Object

A single usage item that was charged.

Parameters:

  • feature_id (String, nil)

    The feature ID for which usage was charged

  • usage_amount (Float)

    The number of units charged



72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb', line 72

class UsageCharged < Stigg::Internal::Type::BaseModel
  # @!attribute feature_id
  #   The feature ID for which usage was charged
  #
  #   @return [String, nil]
  required :feature_id, String, api_name: :featureId, nil?: true

  # @!attribute usage_amount
  #   The number of units charged
  #
  #   @return [Float]
  required :usage_amount, Float, api_name: :usageAmount

  # @!method initialize(feature_id:, usage_amount:)
  #   A single usage item that was charged.
  #
  #   @param feature_id [String, nil] The feature ID for which usage was charged
  #
  #   @param usage_amount [Float] The number of units charged
end

Instance Attribute Details

#feature_idString?

The feature ID for which usage was charged

Returns:

  • (String, nil)


77
# File 'lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb', line 77

required :feature_id, String, api_name: :featureId, nil?: true

#usage_amountFloat

The number of units charged

Returns:

  • (Float)


83
# File 'lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb', line 83

required :usage_amount, Float, api_name: :usageAmount