Class: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb

Overview

See Also:

Defined Under Namespace

Modules: Period, ResetPeriod, ResetPeriodConfiguration, Status

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:, created_at:, description:, end_date:, enum_values:, environment_id:, feature_group_ids:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, period:, reset_period:, reset_period_configuration:, start_date:, status:, updated_at:, usage_limit:) ⇒ Object

Granted feature entitlement

Parameters:



# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 144

Instance Attribute Details

#created_atTime

Timestamp of when the record was created

Returns:

  • (Time)


32
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 32

required :created_at, Time, api_name: :createdAt

#descriptionString?

The description of the entitlement

Returns:

  • (String, nil)


38
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 38

required :description, String, nil?: true

#end_dateTime?

The end date of the promotional entitlement

Returns:

  • (Time, nil)


44
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 44

required :end_date, Time, api_name: :endDate, nil?: true

#enum_valuesArray<String>?

The enum values of the entitlement

Returns:

  • (Array<String>, nil)


50
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 50

required :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues, nil?: true

#environment_idString

The unique identifier for the environment

Returns:

  • (String)


56
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 56

required :environment_id, String, api_name: :environmentId

#feature_group_idsArray<String>?

Feature group IDs associated with this entitlement

Returns:

  • (Array<String>, nil)


62
63
64
65
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 62

required :feature_group_ids,
Stigg::Internal::Type::ArrayOf[String],
api_name: :featureGroupIds,
nil?: true

#feature_idString

The unique identifier of the entitlement feature

Returns:

  • (String)


71
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 71

required :feature_id, String, api_name: :featureId

#has_soft_limitBoolean?

Whether the entitlement has a soft limit

Returns:

  • (Boolean, nil)


77
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 77

required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit, nil?: true

#has_unlimited_usageBoolean?

Whether the entitlement has an unlimited usage

Returns:

  • (Boolean, nil)


83
84
85
86
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 83

required :has_unlimited_usage,
Stigg::Internal::Type::Boolean,
api_name: :hasUnlimitedUsage,
nil?: true

#idString

Unique identifier for the entity

Returns:

  • (String)


26
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 26

required :id, String

#is_visibleBoolean

Whether the entitlement is visible

Returns:

  • (Boolean)


92
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 92

required :is_visible, Stigg::Internal::Type::Boolean, api_name: :isVisible

#periodSymbol, Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::Period

The grant period of the promotional entitlement



98
99
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 98

required :period,
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::Period }

#reset_periodSymbol, ...

The reset period of the entitlement



105
106
107
108
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 105

required :reset_period,
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriod },
api_name: :resetPeriod,
nil?: true

#start_dateTime

The start date of the entitlement

Returns:

  • (Time)


123
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 123

required :start_date, Time, api_name: :startDate

#statusSymbol, Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::Status

The status of the entitlement



129
130
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 129

required :status,
enum: -> { Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::Status }

#updated_atTime

Timestamp of when the record was last updated

Returns:

  • (Time)


136
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 136

required :updated_at, Time, api_name: :updatedAt

#usage_limitFloat?

The usage limit of the entitlement

Returns:

  • (Float, nil)


142
# File 'lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb', line 142

required :usage_limit, Float, api_name: :usageLimit, nil?: true