Class: Orb::Models::BillingCycleAnchorConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/billing_cycle_anchor_configuration.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(day: , month: nil, year: nil) ⇒ Object

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

Parameters:

  • day (Integer) (defaults to: )

    The day of the month on which the billing cycle is anchored. If the maximum numb

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

    The month on which the billing cycle is anchored (e.g. a quarterly price anchore

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

    The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anc



# File 'lib/orb/models/billing_cycle_anchor_configuration.rb', line 30

Instance Attribute Details

#dayInteger

The day of the month on which the billing cycle is anchored. If the maximum number of days in a month is greater than this value, the last day of the month is the billing cycle day (e.g. billing_cycle_day=31 for April means the billing period begins on the 30th.

Returns:

  • (Integer)


13
# File 'lib/orb/models/billing_cycle_anchor_configuration.rb', line 13

required :day, Integer

#monthInteger?

The month on which the billing cycle is anchored (e.g. a quarterly price anchored in February would have cycles starting February, May, August, and November).

Returns:

  • (Integer, nil)


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

optional :month, Integer, nil?: true

#yearInteger?

The year on which the billing cycle is anchored (e.g. a 2 year billing cycle anchored on 2021 would have cycles starting on 2021, 2023, 2025, etc.).

Returns:

  • (Integer, nil)


28
# File 'lib/orb/models/billing_cycle_anchor_configuration.rb', line 28

optional :year, Integer, nil?: true