Class: GrowsurfRuby::Models::AffiliateApplication
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- GrowsurfRuby::Models::AffiliateApplication
- Defined in:
- lib/growsurf_ruby/models/affiliate_application.rb,
sig/growsurf_ruby/models/affiliate_application.rbs
Overview
Defined Under Namespace
Modules: RiskLevel, Status Classes: Answer
Instance Attribute Summary collapse
-
#answers ⇒ Array<GrowsurfRuby::Models::AffiliateApplication::Answer>
The applicant's answers to the saved application form.
-
#created_at ⇒ Integer
When the application was submitted, in Unix milliseconds.
-
#decided_at ⇒ Integer?
When the decision was made, in Unix milliseconds.
-
#email ⇒ String?
Required applicant email address, or
nullafter applicant data is removed under the Program's retention policy. -
#first_name ⇒ String?
Required applicant first name, or
nullafter applicant data is removed under the Program's retention policy. -
#id ⇒ String
Application ID.
-
#last_name ⇒ String?
Required applicant last name, or
nullafter applicant data is removed under the Program's retention policy. -
#participant_id ⇒ String?
ID of the participant created or upgraded by approval.
-
#reapply_allowed_at ⇒ Integer?
When a denied applicant may apply again, in Unix milliseconds.
-
#rejection_reason ⇒ String?
The structured reason recorded when the application was denied.
-
#reviewed_at ⇒ Integer?
When the application was reviewed, in Unix milliseconds.
-
#risk_level ⇒ Symbol, ...
GrowSurf risk assessment.
-
#status ⇒ Symbol, GrowsurfRuby::Models::AffiliateApplication::Status
Where the application is in review.
-
#terms_accepted_at ⇒ Integer?
When the applicant accepted the Program Terms, in Unix milliseconds, or
nullwhen acceptance was not required.
Class Method Summary collapse
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
64 |
# File 'sig/growsurf_ruby/models/affiliate_application.rbs', line 64
def initialize: (
|
Instance Attribute Details
#answers ⇒ Array<GrowsurfRuby::Models::AffiliateApplication::Answer>
The applicant's answers to the saved application form.
11 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 11 required :answers, -> { GrowsurfRuby::Internal::Type::ArrayOf[GrowsurfRuby::AffiliateApplication::Answer] } |
#created_at ⇒ Integer
When the application was submitted, in Unix milliseconds.
17 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 17 required :created_at, Integer, api_name: :createdAt |
#decided_at ⇒ Integer?
When the decision was made, in Unix milliseconds. null while pending.
23 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 23 required :decided_at, Integer, api_name: :decidedAt, nil?: true |
#email ⇒ String?
Required applicant email address, or null after applicant data is removed
under the Program's retention policy.
30 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 30 required :email, String, nil?: true |
#first_name ⇒ String?
Required applicant first name, or null after applicant data is removed under
the Program's retention policy.
37 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 37 required :first_name, String, api_name: :firstName, nil?: true |
#id ⇒ String
Application ID.
43 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 43 required :id, String |
#last_name ⇒ String?
Required applicant last name, or null after applicant data is removed under
the Program's retention policy.
50 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 50 required :last_name, String, api_name: :lastName, nil?: true |
#participant_id ⇒ String?
ID of the participant created or upgraded by approval. null until the
application is approved.
57 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 57 required :participant_id, String, api_name: :participantId, nil?: true |
#reapply_allowed_at ⇒ Integer?
When a denied applicant may apply again, in Unix milliseconds. null when not
applicable.
64 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 64 required :reapply_allowed_at, Integer, api_name: :reapplyAllowedAt, nil?: true |
#rejection_reason ⇒ String?
The structured reason recorded when the application was denied. null until
then.
71 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 71 required :rejection_reason, String, api_name: :rejectionReason, nil?: true |
#reviewed_at ⇒ Integer?
When the application was reviewed, in Unix milliseconds. null while pending.
77 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 77 required :reviewed_at, Integer, api_name: :reviewedAt, nil?: true |
#risk_level ⇒ Symbol, ...
GrowSurf risk assessment. Applications that are not LOW risk are held for
manual review; null means no assessment was recorded.
84 85 86 87 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 84 required :risk_level, enum: -> { GrowsurfRuby::AffiliateApplication::RiskLevel }, api_name: :riskLevel, nil?: true |
#status ⇒ Symbol, GrowsurfRuby::Models::AffiliateApplication::Status
Where the application is in review. Only PENDING applications can be decided.
93 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 93 required :status, enum: -> { GrowsurfRuby::AffiliateApplication::Status } |
#terms_accepted_at ⇒ Integer?
When the applicant accepted the Program Terms, in Unix milliseconds, or null
when acceptance was not required.
100 |
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 100 required :terms_accepted_at, Integer, api_name: :termsAcceptedAt, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/growsurf_ruby/models/affiliate_application.rb', line 214
|
Instance Method Details
#to_hash ⇒ {
81 |
# File 'sig/growsurf_ruby/models/affiliate_application.rbs', line 81
def to_hash: -> {
|