growsurf-ruby 1.1.2 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/growsurf_ruby/client.rb +5 -5
  5. data/lib/growsurf_ruby/models/account_create_response.rb +5 -12
  6. data/lib/growsurf_ruby/models/team.rb +48 -0
  7. data/lib/growsurf_ruby/models/team_resend_owner_verification_email_response.rb +34 -0
  8. data/lib/growsurf_ruby/models/{account_rotate_api_key_response.rb → team_rotate_api_key_response.rb} +3 -3
  9. data/lib/growsurf_ruby/models/team_update_params.rb +22 -0
  10. data/lib/growsurf_ruby/models.rb +3 -3
  11. data/lib/growsurf_ruby/resources/account.rb +18 -124
  12. data/lib/growsurf_ruby/resources/campaign/commission.rb +3 -2
  13. data/lib/growsurf_ruby/resources/campaign/design.rb +7 -11
  14. data/lib/growsurf_ruby/resources/campaign/emails.rb +9 -11
  15. data/lib/growsurf_ruby/resources/campaign/installation.rb +8 -12
  16. data/lib/growsurf_ruby/resources/campaign/options.rb +11 -13
  17. data/lib/growsurf_ruby/resources/campaign/participant.rb +45 -36
  18. data/lib/growsurf_ruby/resources/campaign/reward.rb +4 -3
  19. data/lib/growsurf_ruby/resources/campaign/rewards.rb +18 -6
  20. data/lib/growsurf_ruby/resources/campaign.rb +16 -13
  21. data/lib/growsurf_ruby/resources/team.rb +118 -0
  22. data/lib/growsurf_ruby/version.rb +1 -1
  23. data/lib/growsurf_ruby.rb +5 -4
  24. data/rbi/growsurf_ruby/client.rbi +4 -1
  25. data/rbi/growsurf_ruby/models/account_create_response.rbi +0 -8
  26. data/rbi/growsurf_ruby/models/team.rbi +65 -0
  27. data/rbi/growsurf_ruby/models/{account_resend_verification_email_response.rbi → team_resend_owner_verification_email_response.rbi} +8 -18
  28. data/rbi/growsurf_ruby/models/{account_rotate_api_key_response.rbi → team_rotate_api_key_response.rbi} +3 -7
  29. data/rbi/growsurf_ruby/models/team_update_params.rbi +35 -0
  30. data/rbi/growsurf_ruby/models.rbi +3 -3
  31. data/rbi/growsurf_ruby/resources/account.rbi +13 -85
  32. data/rbi/growsurf_ruby/resources/campaign/commission.rbi +3 -2
  33. data/rbi/growsurf_ruby/resources/campaign/design.rbi +7 -5
  34. data/rbi/growsurf_ruby/resources/campaign/emails.rbi +9 -6
  35. data/rbi/growsurf_ruby/resources/campaign/installation.rbi +8 -8
  36. data/rbi/growsurf_ruby/resources/campaign/options.rbi +11 -8
  37. data/rbi/growsurf_ruby/resources/campaign/participant.rbi +45 -36
  38. data/rbi/growsurf_ruby/resources/campaign/reward.rbi +4 -3
  39. data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +18 -6
  40. data/rbi/growsurf_ruby/resources/campaign.rbi +16 -11
  41. data/rbi/growsurf_ruby/resources/team.rbi +75 -0
  42. data/sig/growsurf_ruby/client.rbs +3 -1
  43. data/sig/growsurf_ruby/models/account_create_response.rbs +0 -5
  44. data/sig/growsurf_ruby/models/team.rbs +36 -0
  45. data/sig/growsurf_ruby/models/team_resend_owner_verification_email_response.rbs +31 -0
  46. data/sig/growsurf_ruby/models/{account_rotate_api_key_response.rbs → team_rotate_api_key_response.rbs} +2 -2
  47. data/sig/growsurf_ruby/models/team_update_params.rbs +23 -0
  48. data/sig/growsurf_ruby/models.rbs +3 -3
  49. data/sig/growsurf_ruby/resources/account.rbs +0 -23
  50. data/sig/growsurf_ruby/resources/team.rbs +28 -0
  51. metadata +17 -14
  52. data/lib/growsurf_ruby/models/account.rb +0 -90
  53. data/lib/growsurf_ruby/models/account_resend_verification_email_response.rb +0 -33
  54. data/lib/growsurf_ruby/models/account_update_params.rb +0 -35
  55. data/rbi/growsurf_ruby/models/account.rbi +0 -125
  56. data/rbi/growsurf_ruby/models/account_update_params.rbi +0 -65
  57. data/sig/growsurf_ruby/models/account.rbs +0 -67
  58. data/sig/growsurf_ruby/models/account_resend_verification_email_response.rbs +0 -35
  59. data/sig/growsurf_ruby/models/account_update_params.rbs +0 -42
@@ -0,0 +1,75 @@
1
+ # typed: strong
2
+
3
+ module GrowsurfRuby
4
+ module Resources
5
+ class Team
6
+ # Retrieves the team bound to the API key or OAuth connection.
7
+ # `verificationStatus` is `VERIFIED` once GrowSurf has verified the team, which is
8
+ # required before a program can send participant emails.
9
+ sig do
10
+ params(request_options: GrowsurfRuby::RequestOptions::OrHash).returns(
11
+ GrowsurfRuby::Models::Team
12
+ )
13
+ end
14
+ def retrieve(request_options: {})
15
+ end
16
+
17
+ # Updates the name of the team bound to the API key or OAuth connection. Any other
18
+ # property is rejected with a `400`. Personal profiles, billing, and team
19
+ # ownership are not editable here.
20
+ sig do
21
+ params(
22
+ name: String,
23
+ request_options: GrowsurfRuby::RequestOptions::OrHash
24
+ ).returns(GrowsurfRuby::Models::Team)
25
+ end
26
+ def update(name:, request_options: {})
27
+ end
28
+
29
+ # Generates a new API key and makes the key used on this request stop working when
30
+ # rotation succeeds. Send a unique, random `Idempotency-Key`. If the response is
31
+ # interrupted, immediately retry with the original API key and the same
32
+ # `Idempotency-Key` to receive the same new key. Update every integration that
33
+ # used the old key. The team owner is notified by email whenever the key is
34
+ # rotated. GrowSurf SDKs generate the idempotency key automatically. This endpoint
35
+ # accepts an API key with `api_key:rotate`. If this scope is unavailable, rotate
36
+ # the key in the authenticated dashboard instead. This operation is available only
37
+ # through the REST API or a GrowSurf API SDK, not through MCP.
38
+ sig do
39
+ params(request_options: GrowsurfRuby::RequestOptions::OrHash).returns(
40
+ GrowsurfRuby::Models::TeamRotateAPIKeyResponse
41
+ )
42
+ end
43
+ def rotate_api_key(request_options: {})
44
+ end
45
+
46
+ # Requests GrowSurf to verify the bound team (required before a program can email
47
+ # its participants). Idempotent — calling it again while a request is pending does
48
+ # not create a duplicate. Returns the team with its updated `verificationStatus`.
49
+ sig do
50
+ params(request_options: GrowsurfRuby::RequestOptions::OrHash).returns(
51
+ GrowsurfRuby::Models::Team
52
+ )
53
+ end
54
+ def request_verification(request_options: {})
55
+ end
56
+
57
+ # Resends the email-verification message to the bound team's owner. The response
58
+ # never reveals the owner's email address. A `200` with `status: SENT` is returned
59
+ # only when an email was actually dispatched. Returns `400` if the email is
60
+ # already verified, and `429` if a verification email was sent too recently — wait
61
+ # a moment, then retry.
62
+ sig do
63
+ params(request_options: GrowsurfRuby::RequestOptions::OrHash).returns(
64
+ GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse
65
+ )
66
+ end
67
+ def resend_owner_verification_email(request_options: {})
68
+ end
69
+
70
+ sig { params(client: GrowsurfRuby::Client).returns(T.attached_class) }
71
+ def self.new(client:)
72
+ end
73
+ end
74
+ end
75
+ end
@@ -8,10 +8,12 @@ module GrowsurfRuby
8
8
 
9
9
  DEFAULT_MAX_RETRY_DELAY: Float
10
10
 
11
- attr_reader api_key: String
11
+ attr_reader api_key: String?
12
12
 
13
13
  attr_reader account: GrowsurfRuby::Resources::Account
14
14
 
15
+ attr_reader team: GrowsurfRuby::Resources::Team
16
+
15
17
  attr_reader campaign: GrowsurfRuby::Resources::Campaign
16
18
 
17
19
  private def auth_headers: -> ::Hash[String, String]
@@ -4,7 +4,6 @@ module GrowsurfRuby
4
4
  {
5
5
  api_key: String,
6
6
  email: String,
7
- id: String,
8
7
  verification_status: GrowsurfRuby::Models::AccountCreateResponse::verification_status
9
8
  }
10
9
 
@@ -13,21 +12,17 @@ module GrowsurfRuby
13
12
 
14
13
  attr_accessor email: String
15
14
 
16
- attr_accessor id: String
17
-
18
15
  attr_accessor verification_status: GrowsurfRuby::Models::AccountCreateResponse::verification_status
19
16
 
20
17
  def initialize: (
21
18
  api_key: String,
22
19
  email: String,
23
- id: String,
24
20
  verification_status: GrowsurfRuby::Models::AccountCreateResponse::verification_status
25
21
  ) -> void
26
22
 
27
23
  def to_hash: -> {
28
24
  api_key: String,
29
25
  email: String,
30
- id: String,
31
26
  verification_status: GrowsurfRuby::Models::AccountCreateResponse::verification_status
32
27
  }
33
28
 
@@ -0,0 +1,36 @@
1
+ module GrowsurfRuby
2
+ module Models
3
+ type team =
4
+ {
5
+ name: String,
6
+ verification_status: GrowsurfRuby::Models::Team::verification_status,
7
+ verification_requested_at: Integer?
8
+ }
9
+
10
+ class Team < GrowsurfRuby::Internal::Type::BaseModel
11
+ attr_accessor name: String
12
+ attr_accessor verification_status: GrowsurfRuby::Models::Team::verification_status
13
+ attr_accessor verification_requested_at: Integer?
14
+
15
+ def initialize: (
16
+ name: String,
17
+ verification_status: GrowsurfRuby::Models::Team::verification_status,
18
+ verification_requested_at: Integer?
19
+ ) -> void
20
+
21
+ def to_hash: -> GrowsurfRuby::Models::team
22
+
23
+ type verification_status = :NOT_REQUESTED | :REQUESTED | :VERIFIED
24
+
25
+ module VerificationStatus
26
+ extend GrowsurfRuby::Internal::Type::Enum
27
+
28
+ NOT_REQUESTED: :NOT_REQUESTED
29
+ REQUESTED: :REQUESTED
30
+ VERIFIED: :VERIFIED
31
+
32
+ def self?.values: -> ::Array[GrowsurfRuby::Models::Team::verification_status]
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,31 @@
1
+ module GrowsurfRuby
2
+ module Models
3
+ type team_resend_owner_verification_email_response =
4
+ {
5
+ status: GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse::status,
6
+ success: bool
7
+ }
8
+
9
+ class TeamResendOwnerVerificationEmailResponse < GrowsurfRuby::Internal::Type::BaseModel
10
+ attr_accessor status: GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse::status
11
+ attr_accessor success: bool
12
+
13
+ def initialize: (
14
+ status: GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse::status,
15
+ success: bool
16
+ ) -> void
17
+
18
+ def to_hash: -> GrowsurfRuby::Models::team_resend_owner_verification_email_response
19
+
20
+ type status = :SENT
21
+
22
+ module Status
23
+ extend GrowsurfRuby::Internal::Type::Enum
24
+
25
+ SENT: :SENT
26
+
27
+ def self?.values: -> ::Array[GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse::status]
28
+ end
29
+ end
30
+ end
31
+ end
@@ -1,8 +1,8 @@
1
1
  module GrowsurfRuby
2
2
  module Models
3
- type account_rotate_api_key_response = { api_key: String }
3
+ type team_rotate_api_key_response = { api_key: String }
4
4
 
5
- class AccountRotateAPIKeyResponse < GrowsurfRuby::Internal::Type::BaseModel
5
+ class TeamRotateAPIKeyResponse < GrowsurfRuby::Internal::Type::BaseModel
6
6
  attr_accessor api_key: String
7
7
 
8
8
  def initialize: (api_key: String) -> void
@@ -0,0 +1,23 @@
1
+ module GrowsurfRuby
2
+ module Models
3
+ type team_update_params =
4
+ { name: String } & GrowsurfRuby::Internal::Type::request_parameters
5
+
6
+ class TeamUpdateParams < GrowsurfRuby::Internal::Type::BaseModel
7
+ extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
8
+ include GrowsurfRuby::Internal::Type::RequestParameters
9
+
10
+ attr_accessor name: String
11
+
12
+ def initialize: (
13
+ name: String,
14
+ ?request_options: GrowsurfRuby::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ name: String,
19
+ request_options: GrowsurfRuby::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -1,9 +1,9 @@
1
1
  module GrowsurfRuby
2
- class Account = GrowsurfRuby::Models::Account
3
-
4
2
  class AccountCreateParams = GrowsurfRuby::Models::AccountCreateParams
5
3
 
6
- class AccountUpdateParams = GrowsurfRuby::Models::AccountUpdateParams
4
+ class Team = GrowsurfRuby::Models::Team
5
+
6
+ class TeamUpdateParams = GrowsurfRuby::Models::TeamUpdateParams
7
7
 
8
8
  module Campaign = GrowsurfRuby::Models::Campaign
9
9
 
@@ -9,29 +9,6 @@ module GrowsurfRuby
9
9
  ?request_options: GrowsurfRuby::request_opts
10
10
  ) -> GrowsurfRuby::Models::AccountCreateResponse
11
11
 
12
- def retrieve: (
13
- ?request_options: GrowsurfRuby::request_opts
14
- ) -> GrowsurfRuby::Account
15
-
16
- def update: (
17
- ?company: String,
18
- ?first_name: String,
19
- ?last_name: String,
20
- ?request_options: GrowsurfRuby::request_opts
21
- ) -> GrowsurfRuby::Account
22
-
23
- def rotate_api_key: (
24
- ?request_options: GrowsurfRuby::request_opts
25
- ) -> GrowsurfRuby::Models::AccountRotateAPIKeyResponse
26
-
27
- def request_verification: (
28
- ?request_options: GrowsurfRuby::request_opts
29
- ) -> GrowsurfRuby::Account
30
-
31
- def resend_verification_email: (
32
- ?request_options: GrowsurfRuby::request_opts
33
- ) -> GrowsurfRuby::Models::AccountResendVerificationEmailResponse
34
-
35
12
  def initialize: (client: GrowsurfRuby::Client) -> void
36
13
  end
37
14
  end
@@ -0,0 +1,28 @@
1
+ module GrowsurfRuby
2
+ module Resources
3
+ class Team
4
+ def retrieve: (
5
+ ?request_options: GrowsurfRuby::request_opts
6
+ ) -> GrowsurfRuby::Models::Team
7
+
8
+ def update: (
9
+ name: String,
10
+ ?request_options: GrowsurfRuby::request_opts
11
+ ) -> GrowsurfRuby::Models::Team
12
+
13
+ def rotate_api_key: (
14
+ ?request_options: GrowsurfRuby::request_opts
15
+ ) -> GrowsurfRuby::Models::TeamRotateAPIKeyResponse
16
+
17
+ def request_verification: (
18
+ ?request_options: GrowsurfRuby::request_opts
19
+ ) -> GrowsurfRuby::Models::Team
20
+
21
+ def resend_owner_verification_email: (
22
+ ?request_options: GrowsurfRuby::request_opts
23
+ ) -> GrowsurfRuby::Models::TeamResendOwnerVerificationEmailResponse
24
+
25
+ def initialize: (client: GrowsurfRuby::Client) -> void
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growsurf-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growsurf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-11 00:00:00.000000000 Z
11
+ date: 2026-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -69,12 +69,8 @@ files:
69
69
  - lib/growsurf_ruby/internal/type/unknown.rb
70
70
  - lib/growsurf_ruby/internal/util.rb
71
71
  - lib/growsurf_ruby/models.rb
72
- - lib/growsurf_ruby/models/account.rb
73
72
  - lib/growsurf_ruby/models/account_create_params.rb
74
73
  - lib/growsurf_ruby/models/account_create_response.rb
75
- - lib/growsurf_ruby/models/account_resend_verification_email_response.rb
76
- - lib/growsurf_ruby/models/account_rotate_api_key_response.rb
77
- - lib/growsurf_ruby/models/account_update_params.rb
78
74
  - lib/growsurf_ruby/models/campaign.rb
79
75
  - lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb
80
76
  - lib/growsurf_ruby/models/campaign/commission_approve_params.rb
@@ -154,6 +150,10 @@ files:
154
150
  - lib/growsurf_ruby/models/participant_payout_list.rb
155
151
  - lib/growsurf_ruby/models/referral_list.rb
156
152
  - lib/growsurf_ruby/models/reward_tax_valuation.rb
153
+ - lib/growsurf_ruby/models/team.rb
154
+ - lib/growsurf_ruby/models/team_resend_owner_verification_email_response.rb
155
+ - lib/growsurf_ruby/models/team_rotate_api_key_response.rb
156
+ - lib/growsurf_ruby/models/team_update_params.rb
157
157
  - lib/growsurf_ruby/request_options.rb
158
158
  - lib/growsurf_ruby/resources/account.rb
159
159
  - lib/growsurf_ruby/resources/campaign.rb
@@ -166,6 +166,7 @@ files:
166
166
  - lib/growsurf_ruby/resources/campaign/reward.rb
167
167
  - lib/growsurf_ruby/resources/campaign/rewards.rb
168
168
  - lib/growsurf_ruby/resources/campaign/webhooks.rb
169
+ - lib/growsurf_ruby/resources/team.rb
169
170
  - lib/growsurf_ruby/version.rb
170
171
  - manifest.yaml
171
172
  - rbi/growsurf_ruby/client.rbi
@@ -187,12 +188,8 @@ files:
187
188
  - rbi/growsurf_ruby/internal/type/unknown.rbi
188
189
  - rbi/growsurf_ruby/internal/util.rbi
189
190
  - rbi/growsurf_ruby/models.rbi
190
- - rbi/growsurf_ruby/models/account.rbi
191
191
  - rbi/growsurf_ruby/models/account_create_params.rbi
192
192
  - rbi/growsurf_ruby/models/account_create_response.rbi
193
- - rbi/growsurf_ruby/models/account_resend_verification_email_response.rbi
194
- - rbi/growsurf_ruby/models/account_rotate_api_key_response.rbi
195
- - rbi/growsurf_ruby/models/account_update_params.rbi
196
193
  - rbi/growsurf_ruby/models/campaign.rbi
197
194
  - rbi/growsurf_ruby/models/campaign/campaign_reward_list_response.rbi
198
195
  - rbi/growsurf_ruby/models/campaign/commission_approve_params.rbi
@@ -272,6 +269,10 @@ files:
272
269
  - rbi/growsurf_ruby/models/participant_payout_list.rbi
273
270
  - rbi/growsurf_ruby/models/referral_list.rbi
274
271
  - rbi/growsurf_ruby/models/reward_tax_valuation.rbi
272
+ - rbi/growsurf_ruby/models/team.rbi
273
+ - rbi/growsurf_ruby/models/team_resend_owner_verification_email_response.rbi
274
+ - rbi/growsurf_ruby/models/team_rotate_api_key_response.rbi
275
+ - rbi/growsurf_ruby/models/team_update_params.rbi
275
276
  - rbi/growsurf_ruby/request_options.rbi
276
277
  - rbi/growsurf_ruby/resources/account.rbi
277
278
  - rbi/growsurf_ruby/resources/campaign.rbi
@@ -284,6 +285,7 @@ files:
284
285
  - rbi/growsurf_ruby/resources/campaign/reward.rbi
285
286
  - rbi/growsurf_ruby/resources/campaign/rewards.rbi
286
287
  - rbi/growsurf_ruby/resources/campaign/webhooks.rbi
288
+ - rbi/growsurf_ruby/resources/team.rbi
287
289
  - rbi/growsurf_ruby/version.rbi
288
290
  - sig/growsurf_ruby/client.rbs
289
291
  - sig/growsurf_ruby/errors.rbs
@@ -304,12 +306,8 @@ files:
304
306
  - sig/growsurf_ruby/internal/type/unknown.rbs
305
307
  - sig/growsurf_ruby/internal/util.rbs
306
308
  - sig/growsurf_ruby/models.rbs
307
- - sig/growsurf_ruby/models/account.rbs
308
309
  - sig/growsurf_ruby/models/account_create_params.rbs
309
310
  - sig/growsurf_ruby/models/account_create_response.rbs
310
- - sig/growsurf_ruby/models/account_resend_verification_email_response.rbs
311
- - sig/growsurf_ruby/models/account_rotate_api_key_response.rbs
312
- - sig/growsurf_ruby/models/account_update_params.rbs
313
311
  - sig/growsurf_ruby/models/campaign.rbs
314
312
  - sig/growsurf_ruby/models/campaign/campaign_reward_list_response.rbs
315
313
  - sig/growsurf_ruby/models/campaign/commission_approve_params.rbs
@@ -389,6 +387,10 @@ files:
389
387
  - sig/growsurf_ruby/models/participant_payout_list.rbs
390
388
  - sig/growsurf_ruby/models/referral_list.rbs
391
389
  - sig/growsurf_ruby/models/reward_tax_valuation.rbs
390
+ - sig/growsurf_ruby/models/team.rbs
391
+ - sig/growsurf_ruby/models/team_resend_owner_verification_email_response.rbs
392
+ - sig/growsurf_ruby/models/team_rotate_api_key_response.rbs
393
+ - sig/growsurf_ruby/models/team_update_params.rbs
392
394
  - sig/growsurf_ruby/request_options.rbs
393
395
  - sig/growsurf_ruby/resources/account.rbs
394
396
  - sig/growsurf_ruby/resources/campaign.rbs
@@ -401,6 +403,7 @@ files:
401
403
  - sig/growsurf_ruby/resources/campaign/reward.rbs
402
404
  - sig/growsurf_ruby/resources/campaign/rewards.rbs
403
405
  - sig/growsurf_ruby/resources/campaign/webhooks.rbs
406
+ - sig/growsurf_ruby/resources/team.rbs
404
407
  - sig/growsurf_ruby/version.rbs
405
408
  homepage: https://gemdocs.org/gems/growsurf-ruby
406
409
  licenses: []
@@ -1,90 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module GrowsurfRuby
4
- module Models
5
- # @see GrowsurfRuby::Resources::Account#retrieve
6
- class Account < GrowsurfRuby::Internal::Type::BaseModel
7
- # @!attribute email
8
- #
9
- # @return [String]
10
- required :email, String
11
-
12
- # @!attribute id
13
- # The account's unique identifier.
14
- #
15
- # @return [String]
16
- required :id, String
17
-
18
- # @!attribute verification_status
19
- # GrowSurf-team verification state. `VERIFIED` is required before a program can
20
- # send participant emails.
21
- #
22
- # @return [Symbol, GrowsurfRuby::Models::Account::VerificationStatus]
23
- required :verification_status,
24
- enum: -> { GrowsurfRuby::Account::VerificationStatus },
25
- api_name: :verificationStatus
26
-
27
- # @!attribute company
28
- #
29
- # @return [String, nil]
30
- optional :company, String, nil?: true
31
-
32
- # @!attribute created_at
33
- # When the account was created, as a Unix timestamp in milliseconds.
34
- #
35
- # @return [Integer, nil]
36
- optional :created_at, Integer, api_name: :createdAt, nil?: true
37
-
38
- # @!attribute first_name
39
- #
40
- # @return [String, nil]
41
- optional :first_name, String, api_name: :firstName, nil?: true
42
-
43
- # @!attribute last_name
44
- #
45
- # @return [String, nil]
46
- optional :last_name, String, api_name: :lastName, nil?: true
47
-
48
- # @!attribute verification_requested_at
49
- # When team verification was last requested, as a Unix timestamp in milliseconds.
50
- #
51
- # @return [Integer, nil]
52
- optional :verification_requested_at, Integer, api_name: :verificationRequestedAt, nil?: true
53
-
54
- # @!method initialize(email:, id:, verification_status:, company: nil, created_at: nil, first_name: nil, last_name: nil, verification_requested_at: nil)
55
- # Some parameter documentations has been truncated, see
56
- # {GrowsurfRuby::Models::Account} for more details.
57
- #
58
- # @param email [String]
59
- #
60
- # @param id [String] The account's unique identifier.
61
- #
62
- # @param verification_status [Symbol, GrowsurfRuby::Models::Account::VerificationStatus] GrowSurf-team verification state. `VERIFIED` is required before a program can send
63
- #
64
- # @param company [String, nil]
65
- #
66
- # @param created_at [Integer, nil] When the account was created, as a Unix timestamp in milliseconds.
67
- #
68
- # @param first_name [String, nil]
69
- #
70
- # @param last_name [String, nil]
71
- #
72
- # @param verification_requested_at [Integer, nil] When team verification was last requested, as a Unix timestamp in milliseconds.
73
-
74
- # GrowSurf-team verification state. `VERIFIED` is required before a program can
75
- # send participant emails.
76
- #
77
- # @see GrowsurfRuby::Models::Account#verification_status
78
- module VerificationStatus
79
- extend GrowsurfRuby::Internal::Type::Enum
80
-
81
- NOT_REQUESTED = :NOT_REQUESTED
82
- REQUESTED = :REQUESTED
83
- VERIFIED = :VERIFIED
84
-
85
- # @!method self.values
86
- # @return [Array<Symbol>]
87
- end
88
- end
89
- end
90
- end
@@ -1,33 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module GrowsurfRuby
4
- module Models
5
- # @see GrowsurfRuby::Resources::Account#resend_verification_email
6
- class AccountResendVerificationEmailResponse < GrowsurfRuby::Internal::Type::BaseModel
7
- # @!attribute status
8
- #
9
- # @return [Symbol, GrowsurfRuby::Models::AccountResendVerificationEmailResponse::Status]
10
- required :status, enum: -> { GrowsurfRuby::Models::AccountResendVerificationEmailResponse::Status }
11
-
12
- # @!attribute success
13
- #
14
- # @return [Boolean]
15
- required :success, GrowsurfRuby::Internal::Type::Boolean
16
-
17
- # @!method initialize(status:, success:)
18
- # @param status [Symbol, GrowsurfRuby::Models::AccountResendVerificationEmailResponse::Status]
19
- #
20
- # @param success [Boolean]
21
-
22
- # @see GrowsurfRuby::Models::AccountResendVerificationEmailResponse#status
23
- module Status
24
- extend GrowsurfRuby::Internal::Type::Enum
25
-
26
- SENT = :SENT
27
-
28
- # @!method self.values
29
- # @return [Array<Symbol>]
30
- end
31
- end
32
- end
33
- end
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module GrowsurfRuby
4
- module Models
5
- # @see GrowsurfRuby::Resources::Account#update
6
- class AccountUpdateParams < GrowsurfRuby::Internal::Type::BaseModel
7
- extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
8
- include GrowsurfRuby::Internal::Type::RequestParameters
9
-
10
- # @!attribute company
11
- #
12
- # @return [String, nil]
13
- optional :company, String
14
-
15
- # @!attribute first_name
16
- #
17
- # @return [String, nil]
18
- optional :first_name, String, api_name: :firstName
19
-
20
- # @!attribute last_name
21
- #
22
- # @return [String, nil]
23
- optional :last_name, String, api_name: :lastName
24
-
25
- # @!method initialize(company: nil, first_name: nil, last_name: nil, request_options: {})
26
- # @param company [String]
27
- #
28
- # @param first_name [String]
29
- #
30
- # @param last_name [String]
31
- #
32
- # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
33
- end
34
- end
35
- end