Class: Orb::Models::SubscriptionPriceIntervalsParams::EditAdjustment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/orb/models/subscription_price_intervals_params.rb

Defined Under Namespace

Modules: EndDate, StartDate

Instance Attribute Summary collapse

Class Method 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(adjustment_interval_id: , end_date: nil, start_date: nil) ⇒ Object

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

Parameters:

  • adjustment_interval_id (String) (defaults to: )

    The id of the adjustment interval to edit.

  • end_date (Time, Symbol, Orb::Models::BillingCycleRelativeDate, nil) (defaults to: nil)

    The updated end date of this adjustment interval. If not specified, the end date

  • start_date (Time, Symbol, Orb::Models::BillingCycleRelativeDate) (defaults to: nil)

    The updated start date of this adjustment interval. If not specified, the start



# File 'lib/orb/models/subscription_price_intervals_params.rb', line 624

Instance Attribute Details

#adjustment_interval_idString

The id of the adjustment interval to edit.

Returns:

  • (String)


606
# File 'lib/orb/models/subscription_price_intervals_params.rb', line 606

required :adjustment_interval_id, String

#end_dateTime, ...

The updated end date of this adjustment interval. If not specified, the end date will not be updated.

Returns:



613
614
615
# File 'lib/orb/models/subscription_price_intervals_params.rb', line 613

optional :end_date,
union: -> { Orb::SubscriptionPriceIntervalsParams::EditAdjustment::EndDate },
nil?: true

#start_dateTime, ...

The updated start date of this adjustment interval. If not specified, the start date will not be updated.

Returns:



622
# File 'lib/orb/models/subscription_price_intervals_params.rb', line 622

optional :start_date, union: -> { Orb::SubscriptionPriceIntervalsParams::EditAdjustment::StartDate }

Class Method Details

.variantsArray(Time, Symbol, Orb::Models::BillingCycleRelativeDate)

Returns:



# File 'lib/orb/models/subscription_price_intervals_params.rb', line 646