Class: Orb::Models::MonetaryMaximumAdjustment

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

Defined Under Namespace

Modules: AdjustmentType

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(id: , adjustment_type: , amount: , applies_to_price_ids: , filters: , is_invoice_level: , maximum_amount: , reason: , replaces_adjustment_id: ) ⇒ Object

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

Parameters:

  • id (String) (defaults to: )
  • adjustment_type (Symbol, Orb::Models::MonetaryMaximumAdjustment::AdjustmentType) (defaults to: )
  • amount (String) (defaults to: )

    The value applied by an adjustment.

  • applies_to_price_ids (Array<String>) (defaults to: )

    The price IDs that this adjustment applies to.

  • filters (Array<Orb::Models::TransformPriceFilter>) (defaults to: )

    The filters that determine which prices to apply this adjustment to.

  • is_invoice_level (Boolean) (defaults to: )

    True for adjustments that apply to an entire invocice, false for adjustments tha

  • maximum_amount (String) (defaults to: )

    The maximum amount to charge in a given billing period for the prices this adjus

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

    The reason for the adjustment.

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

    The adjustment id this adjustment replaces. This adjustment will take the place



# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 63

Instance Attribute Details

#adjustment_typeSymbol, Orb::Models::MonetaryMaximumAdjustment::AdjustmentType



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

required :adjustment_type, enum: -> { Orb::MonetaryMaximumAdjustment::AdjustmentType }

#amountString

The value applied by an adjustment.

Returns:

  • (String)


20
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 20

required :amount, String

#applies_to_price_idsArray<String>

Deprecated.

The price IDs that this adjustment applies to.

Returns:

  • (Array<String>)


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

required :applies_to_price_ids, Orb::Internal::Type::ArrayOf[String]

#filtersArray<Orb::Models::TransformPriceFilter>

The filters that determine which prices to apply this adjustment to.



34
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 34

required :filters, -> { Orb::Internal::Type::ArrayOf[Orb::TransformPriceFilter] }

#idString

Returns:

  • (String)


9
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 9

required :id, String

#is_invoice_levelBoolean

True for adjustments that apply to an entire invocice, false for adjustments that apply to only one price.

Returns:

  • (Boolean)


41
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 41

required :is_invoice_level, Orb::Internal::Type::Boolean

#maximum_amountString

The maximum amount to charge in a given billing period for the prices this adjustment applies to.

Returns:

  • (String)


48
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 48

required :maximum_amount, String

#reasonString?

The reason for the adjustment.

Returns:

  • (String, nil)


54
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 54

required :reason, String, nil?: true

#replaces_adjustment_idString?

The adjustment id this adjustment replaces. This adjustment will take the place of the replaced adjustment in plan version migrations.

Returns:

  • (String, nil)


61
# File 'lib/orb/models/monetary_maximum_adjustment.rb', line 61

required :replaces_adjustment_id, String, nil?: true