Class: Stigg::Models::V1::SubscriptionPreviewResponse::Data::RecurringInvoice::BillingPeriodRange

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/stigg/models/v1/subscription_preview_response.rb,
sig/stigg/models/v1/subscription_preview_response.rbs

Overview

See Also:

  • Stigg::Models::V1::SubscriptionPreviewResponse::Data::RecurringInvoice#billing_period_range

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

#initializeBillingPeriodRange

Returns a new instance of BillingPeriodRange.

Parameters:

  • end_: (Time)
  • start: (Time)


366
# File 'sig/stigg/models/v1/subscription_preview_response.rbs', line 366

def initialize: (end_: Time, start: Time) -> void

Instance Attribute Details

#end_Time

Billing period end date

Parameters:

  • value (Time)

Returns:

  • (Time)


422
# File 'lib/stigg/models/v1/subscription_preview_response.rb', line 422

required :end_, Time, api_name: :end

#startTime

Billing period start date

Parameters:

  • value (Time)

Returns:

  • (Time)


428
# File 'lib/stigg/models/v1/subscription_preview_response.rb', line 428

required :start, Time

Instance Method Details

#to_hash{ end_: Time, start: Time }

Returns:

  • ({ end_: Time, start: Time })


368
# File 'sig/stigg/models/v1/subscription_preview_response.rbs', line 368

def to_hash: -> { end_: Time, start: Time }