Class: GrowsurfRuby::Models::Campaign::ParticipantReward

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/growsurf_ruby/models/campaign/participant_reward.rb

Defined Under Namespace

Modules: Status

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:, reward_id:, status:, approved: nil, approved_at: nil, commission_structure: nil, fulfilled_at: nil, is_available: nil, is_fulfilled: nil, is_referrer: nil, referred_id: nil, referrer_id: nil, unread: nil) ⇒ Object

Parameters:

  • id (String)
  • reward_id (String)
  • status (Symbol, GrowsurfRuby::Models::Campaign::ParticipantReward::Status)
  • approved (Boolean) (defaults to: nil)
  • approved_at (Integer) (defaults to: nil)
  • commission_structure (GrowsurfRuby::Models::CommissionStructure, nil) (defaults to: nil)
  • fulfilled_at (Integer) (defaults to: nil)
  • is_available (Boolean) (defaults to: nil)
  • is_fulfilled (Boolean) (defaults to: nil)
  • is_referrer (Boolean) (defaults to: nil)
  • referred_id (String) (defaults to: nil)
  • referrer_id (String) (defaults to: nil)
  • unread (Boolean) (defaults to: nil)


# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 75

Instance Attribute Details

#approvedBoolean?

Returns:

  • (Boolean, nil)


25
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 25

optional :approved, GrowsurfRuby::Internal::Type::Boolean

#approved_atInteger?

Returns:

  • (Integer, nil)


30
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 30

optional :approved_at, Integer, api_name: :approvedAt

#commission_structureGrowsurfRuby::Models::CommissionStructure?



35
36
37
38
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 35

optional :commission_structure,
-> { GrowsurfRuby::CommissionStructure },
api_name: :commissionStructure,
nil?: true

#fulfilled_atInteger?

Returns:

  • (Integer, nil)


43
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 43

optional :fulfilled_at, Integer, api_name: :fulfilledAt

#idString

Returns:

  • (String)


10
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 10

required :id, String

#is_availableBoolean?

Returns:

  • (Boolean, nil)


48
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 48

optional :is_available, GrowsurfRuby::Internal::Type::Boolean, api_name: :isAvailable

#is_fulfilledBoolean?

Returns:

  • (Boolean, nil)


53
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 53

optional :is_fulfilled, GrowsurfRuby::Internal::Type::Boolean, api_name: :isFulfilled

#is_referrerBoolean?

Returns:

  • (Boolean, nil)


58
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 58

optional :is_referrer, GrowsurfRuby::Internal::Type::Boolean, api_name: :isReferrer

#referred_idString?

Returns:

  • (String, nil)


63
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 63

optional :referred_id, String, api_name: :referredId

#referrer_idString?

Returns:

  • (String, nil)


68
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 68

optional :referrer_id, String, api_name: :referrerId

#reward_idString

Returns:

  • (String)


15
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 15

required :reward_id, String, api_name: :rewardId

#statusSymbol, GrowsurfRuby::Models::Campaign::ParticipantReward::Status



20
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 20

required :status, enum: -> { GrowsurfRuby::Campaign::ParticipantReward::Status }

#unreadBoolean?

Returns:

  • (Boolean, nil)


73
# File 'lib/growsurf_ruby/models/campaign/participant_reward.rb', line 73

optional :unread, GrowsurfRuby::Internal::Type::Boolean