Class: Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature

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

Defined Under Namespace

Modules: ResetPeriod Classes: MonthlyResetPeriodConfiguration, WeeklyResetPeriodConfiguration, YearlyResetPeriodConfiguration

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(id:, has_soft_limit: nil, has_unlimited_usage: nil, monthly_reset_period_configuration: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil, type: :FEATURE) ⇒ Object

Feature entitlement configuration for a subscription

Parameters:



# File 'lib/stigg/models/v1/contract_create_params.rb', line 1083

Instance Attribute Details

#has_soft_limitBoolean?

Whether the usage limit is a soft limit

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1026
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1026

optional :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit

#has_unlimited_usageBoolean?

Whether usage is unlimited

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1032
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1032

optional :has_unlimited_usage, Stigg::Internal::Type::Boolean, api_name: :hasUnlimitedUsage

#idString

The feature ID to attach the entitlement to

Parameters:

  • value (String)

Returns:

  • (String)


1014
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1014

required :id, String

#monthly_reset_period_configurationStigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration?

Configuration for monthly reset period

Parameters:

  • value (Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration, nil)

Returns:



1038
1039
1040
1041
1042
1043
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1038

optional :monthly_reset_period_configuration,
-> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration
},
api_name: :monthlyResetPeriodConfiguration,
nil?: true

#reset_periodSymbol, ...

Period at which usage resets



1049
1050
1051
1052
1053
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1049

optional :reset_period,
enum: -> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::ResetPeriod
},
api_name: :resetPeriod

#typeSymbol, :FEATURE

SubscriptionFeatureEntitlementRequest

Parameters:

  • value (:FEATURE)

Returns:

  • (Symbol, :FEATURE)


1020
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1020

required :type, const: :FEATURE

#usage_limitInteger?

Maximum allowed usage for the feature

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


1059
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1059

optional :usage_limit, Integer, api_name: :usageLimit

#weekly_reset_period_configurationStigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration?

Configuration for weekly reset period

Parameters:

  • value (Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration, nil)

Returns:



1065
1066
1067
1068
1069
1070
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1065

optional :weekly_reset_period_configuration,
-> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration
},
api_name: :weeklyResetPeriodConfiguration,
nil?: true

#yearly_reset_period_configurationStigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration?

Configuration for yearly reset period

Parameters:

  • value (Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration, nil)

Returns:



1076
1077
1078
1079
1080
1081
# File 'lib/stigg/models/v1/contract_create_params.rb', line 1076

optional :yearly_reset_period_configuration,
-> {
  Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration
},
api_name: :yearlyResetPeriodConfiguration,
nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/stigg/models/v1/contract_create_params.rb', line 1130

Instance Method Details

#to_hash{

Returns:

  • ({)


1050
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 1050

def to_hash: -> {