growsurf-ruby 0.1.1 → 0.3.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +9 -9
- data/lib/growsurf_ruby/internal/transport/base_client.rb +2 -0
- data/lib/growsurf_ruby/models/campaign/create.rb +81 -0
- data/lib/growsurf_ruby/models/campaign/participant_add_params.rb +2 -73
- data/lib/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rb +20 -0
- data/lib/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rb +45 -0
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_response.rb +22 -1
- data/lib/growsurf_ruby/models.rb +3 -0
- data/lib/growsurf_ruby/resources/campaign/participant.rb +1 -29
- data/lib/growsurf_ruby/resources/campaign.rb +41 -0
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +3 -2
- data/rbi/growsurf_ruby/models/campaign/create.rbi +149 -0
- data/rbi/growsurf_ruby/models/campaign/participant_add_params.rbi +3 -129
- data/rbi/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rbi +38 -0
- data/rbi/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rbi +71 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_response.rbi +27 -0
- data/rbi/growsurf_ruby/models.rbi +3 -0
- data/rbi/growsurf_ruby/resources/campaign/participant.rbi +1 -21
- data/rbi/growsurf_ruby/resources/campaign.rbi +38 -0
- data/sig/growsurf_ruby/models/campaign/create.rbs +84 -0
- data/sig/growsurf_ruby/models/campaign/participant_add_params.rbs +4 -72
- data/sig/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rbs +25 -0
- data/sig/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rbs +35 -0
- data/sig/growsurf_ruby/models/campaign_retrieve_analytics_response.rbs +21 -0
- data/sig/growsurf_ruby/models.rbs +2 -0
- data/sig/growsurf_ruby/resources/campaign/participant.rbs +1 -7
- data/sig/growsurf_ruby/resources/campaign.rbs +13 -0
- metadata +11 -8
- data/lib/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rb +0 -28
- data/lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb +0 -27
- data/rbi/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rbi +0 -48
- data/rbi/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rbi +0 -44
- data/sig/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rbs +0 -30
- data/sig/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rbs +0 -18
|
@@ -28,11 +28,14 @@ module GrowsurfRuby
|
|
|
28
28
|
|
|
29
29
|
type analytics =
|
|
30
30
|
{
|
|
31
|
+
android_native_shares: Integer,
|
|
31
32
|
bluesky_shares: Integer,
|
|
33
|
+
copy_ref_link_shares: Integer,
|
|
32
34
|
email_shares: Integer,
|
|
33
35
|
facebook_shares: Integer,
|
|
34
36
|
impressions: Integer,
|
|
35
37
|
invites: Integer,
|
|
38
|
+
ios_native_shares: Integer,
|
|
36
39
|
linked_in_shares: Integer,
|
|
37
40
|
messenger_shares: Integer,
|
|
38
41
|
participants: Integer,
|
|
@@ -56,10 +59,18 @@ module GrowsurfRuby
|
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
class Analytics < GrowsurfRuby::Internal::Type::BaseModel
|
|
62
|
+
attr_reader android_native_shares: Integer?
|
|
63
|
+
|
|
64
|
+
def android_native_shares=: (Integer) -> Integer
|
|
65
|
+
|
|
59
66
|
attr_reader bluesky_shares: Integer?
|
|
60
67
|
|
|
61
68
|
def bluesky_shares=: (Integer) -> Integer
|
|
62
69
|
|
|
70
|
+
attr_reader copy_ref_link_shares: Integer?
|
|
71
|
+
|
|
72
|
+
def copy_ref_link_shares=: (Integer) -> Integer
|
|
73
|
+
|
|
63
74
|
attr_reader email_shares: Integer?
|
|
64
75
|
|
|
65
76
|
def email_shares=: (Integer) -> Integer
|
|
@@ -76,6 +87,10 @@ module GrowsurfRuby
|
|
|
76
87
|
|
|
77
88
|
def invites=: (Integer) -> Integer
|
|
78
89
|
|
|
90
|
+
attr_reader ios_native_shares: Integer?
|
|
91
|
+
|
|
92
|
+
def ios_native_shares=: (Integer) -> Integer
|
|
93
|
+
|
|
79
94
|
attr_reader linked_in_shares: Integer?
|
|
80
95
|
|
|
81
96
|
def linked_in_shares=: (Integer) -> Integer
|
|
@@ -157,11 +172,14 @@ module GrowsurfRuby
|
|
|
157
172
|
def whats_app_shares=: (Integer) -> Integer
|
|
158
173
|
|
|
159
174
|
def initialize: (
|
|
175
|
+
?android_native_shares: Integer,
|
|
160
176
|
?bluesky_shares: Integer,
|
|
177
|
+
?copy_ref_link_shares: Integer,
|
|
161
178
|
?email_shares: Integer,
|
|
162
179
|
?facebook_shares: Integer,
|
|
163
180
|
?impressions: Integer,
|
|
164
181
|
?invites: Integer,
|
|
182
|
+
?ios_native_shares: Integer,
|
|
165
183
|
?linked_in_shares: Integer,
|
|
166
184
|
?messenger_shares: Integer,
|
|
167
185
|
?participants: Integer,
|
|
@@ -185,11 +203,14 @@ module GrowsurfRuby
|
|
|
185
203
|
) -> void
|
|
186
204
|
|
|
187
205
|
def to_hash: -> {
|
|
206
|
+
android_native_shares: Integer,
|
|
188
207
|
bluesky_shares: Integer,
|
|
208
|
+
copy_ref_link_shares: Integer,
|
|
189
209
|
email_shares: Integer,
|
|
190
210
|
facebook_shares: Integer,
|
|
191
211
|
impressions: Integer,
|
|
192
212
|
invites: Integer,
|
|
213
|
+
ios_native_shares: Integer,
|
|
193
214
|
linked_in_shares: Integer,
|
|
194
215
|
messenger_shares: Integer,
|
|
195
216
|
participants: Integer,
|
|
@@ -3,6 +3,8 @@ module GrowsurfRuby
|
|
|
3
3
|
|
|
4
4
|
class CampaignAPI = GrowsurfRuby::Models::CampaignAPI
|
|
5
5
|
|
|
6
|
+
class CampaignCreateMobileParticipantTokenParams = GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams
|
|
7
|
+
|
|
6
8
|
class CampaignListCommissionsParams = GrowsurfRuby::Models::CampaignListCommissionsParams
|
|
7
9
|
|
|
8
10
|
class CampaignListLeaderboardParams = GrowsurfRuby::Models::CampaignListLeaderboardParams
|
|
@@ -36,17 +36,11 @@ module GrowsurfRuby
|
|
|
36
36
|
?ip_address: String,
|
|
37
37
|
?last_name: String,
|
|
38
38
|
?metadata: ::Hash[Symbol, top],
|
|
39
|
-
?referral_status: GrowsurfRuby::Models::Campaign::
|
|
39
|
+
?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
|
|
40
40
|
?referred_by: String,
|
|
41
41
|
?request_options: GrowsurfRuby::request_opts
|
|
42
42
|
) -> GrowsurfRuby::Campaign::CampaignParticipant
|
|
43
43
|
|
|
44
|
-
def create_mobile_token: (
|
|
45
|
-
String participant_id_or_email,
|
|
46
|
-
id: String,
|
|
47
|
-
?request_options: GrowsurfRuby::request_opts
|
|
48
|
-
) -> GrowsurfRuby::Models::Campaign::ParticipantCreateMobileTokenResponse
|
|
49
|
-
|
|
50
44
|
def list_commissions: (
|
|
51
45
|
String participant_id_or_email,
|
|
52
46
|
id: String,
|
|
@@ -16,6 +16,19 @@ module GrowsurfRuby
|
|
|
16
16
|
?request_options: GrowsurfRuby::request_opts
|
|
17
17
|
) -> GrowsurfRuby::Models::CampaignListResponse
|
|
18
18
|
|
|
19
|
+
def create_mobile_participant_token: (
|
|
20
|
+
String id,
|
|
21
|
+
email: String,
|
|
22
|
+
?fingerprint: String,
|
|
23
|
+
?first_name: String,
|
|
24
|
+
?ip_address: String,
|
|
25
|
+
?last_name: String,
|
|
26
|
+
?metadata: ::Hash[Symbol, top],
|
|
27
|
+
?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
|
|
28
|
+
?referred_by: String,
|
|
29
|
+
?request_options: GrowsurfRuby::request_opts
|
|
30
|
+
) -> GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenResponse
|
|
31
|
+
|
|
19
32
|
def list_commissions: (
|
|
20
33
|
String id,
|
|
21
34
|
?limit: Integer,
|
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: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Growsurf
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -74,11 +74,10 @@ files:
|
|
|
74
74
|
- lib/growsurf_ruby/models/campaign/commission_approve_response.rb
|
|
75
75
|
- lib/growsurf_ruby/models/campaign/commission_delete_params.rb
|
|
76
76
|
- lib/growsurf_ruby/models/campaign/commission_delete_response.rb
|
|
77
|
+
- lib/growsurf_ruby/models/campaign/create.rb
|
|
77
78
|
- lib/growsurf_ruby/models/campaign/fraud_risk_level.rb
|
|
78
79
|
- lib/growsurf_ruby/models/campaign/participant.rb
|
|
79
80
|
- lib/growsurf_ruby/models/campaign/participant_add_params.rb
|
|
80
|
-
- lib/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rb
|
|
81
|
-
- lib/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rb
|
|
82
81
|
- lib/growsurf_ruby/models/campaign/participant_delete_params.rb
|
|
83
82
|
- lib/growsurf_ruby/models/campaign/participant_delete_response.rb
|
|
84
83
|
- lib/growsurf_ruby/models/campaign/participant_list_commissions_params.rb
|
|
@@ -103,6 +102,8 @@ files:
|
|
|
103
102
|
- lib/growsurf_ruby/models/campaign/reward_delete_response.rb
|
|
104
103
|
- lib/growsurf_ruby/models/campaign/reward_fulfill_params.rb
|
|
105
104
|
- lib/growsurf_ruby/models/campaign/reward_fulfill_response.rb
|
|
105
|
+
- lib/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rb
|
|
106
|
+
- lib/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rb
|
|
106
107
|
- lib/growsurf_ruby/models/campaign_list_commissions_params.rb
|
|
107
108
|
- lib/growsurf_ruby/models/campaign_list_leaderboard_params.rb
|
|
108
109
|
- lib/growsurf_ruby/models/campaign_list_params.rb
|
|
@@ -149,11 +150,10 @@ files:
|
|
|
149
150
|
- rbi/growsurf_ruby/models/campaign/commission_approve_response.rbi
|
|
150
151
|
- rbi/growsurf_ruby/models/campaign/commission_delete_params.rbi
|
|
151
152
|
- rbi/growsurf_ruby/models/campaign/commission_delete_response.rbi
|
|
153
|
+
- rbi/growsurf_ruby/models/campaign/create.rbi
|
|
152
154
|
- rbi/growsurf_ruby/models/campaign/fraud_risk_level.rbi
|
|
153
155
|
- rbi/growsurf_ruby/models/campaign/participant.rbi
|
|
154
156
|
- rbi/growsurf_ruby/models/campaign/participant_add_params.rbi
|
|
155
|
-
- rbi/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rbi
|
|
156
|
-
- rbi/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rbi
|
|
157
157
|
- rbi/growsurf_ruby/models/campaign/participant_delete_params.rbi
|
|
158
158
|
- rbi/growsurf_ruby/models/campaign/participant_delete_response.rbi
|
|
159
159
|
- rbi/growsurf_ruby/models/campaign/participant_list_commissions_params.rbi
|
|
@@ -178,6 +178,8 @@ files:
|
|
|
178
178
|
- rbi/growsurf_ruby/models/campaign/reward_delete_response.rbi
|
|
179
179
|
- rbi/growsurf_ruby/models/campaign/reward_fulfill_params.rbi
|
|
180
180
|
- rbi/growsurf_ruby/models/campaign/reward_fulfill_response.rbi
|
|
181
|
+
- rbi/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rbi
|
|
182
|
+
- rbi/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rbi
|
|
181
183
|
- rbi/growsurf_ruby/models/campaign_list_commissions_params.rbi
|
|
182
184
|
- rbi/growsurf_ruby/models/campaign_list_leaderboard_params.rbi
|
|
183
185
|
- rbi/growsurf_ruby/models/campaign_list_params.rbi
|
|
@@ -223,11 +225,10 @@ files:
|
|
|
223
225
|
- sig/growsurf_ruby/models/campaign/commission_approve_response.rbs
|
|
224
226
|
- sig/growsurf_ruby/models/campaign/commission_delete_params.rbs
|
|
225
227
|
- sig/growsurf_ruby/models/campaign/commission_delete_response.rbs
|
|
228
|
+
- sig/growsurf_ruby/models/campaign/create.rbs
|
|
226
229
|
- sig/growsurf_ruby/models/campaign/fraud_risk_level.rbs
|
|
227
230
|
- sig/growsurf_ruby/models/campaign/participant.rbs
|
|
228
231
|
- sig/growsurf_ruby/models/campaign/participant_add_params.rbs
|
|
229
|
-
- sig/growsurf_ruby/models/campaign/participant_create_mobile_token_params.rbs
|
|
230
|
-
- sig/growsurf_ruby/models/campaign/participant_create_mobile_token_response.rbs
|
|
231
232
|
- sig/growsurf_ruby/models/campaign/participant_delete_params.rbs
|
|
232
233
|
- sig/growsurf_ruby/models/campaign/participant_delete_response.rbs
|
|
233
234
|
- sig/growsurf_ruby/models/campaign/participant_list_commissions_params.rbs
|
|
@@ -252,6 +253,8 @@ files:
|
|
|
252
253
|
- sig/growsurf_ruby/models/campaign/reward_delete_response.rbs
|
|
253
254
|
- sig/growsurf_ruby/models/campaign/reward_fulfill_params.rbs
|
|
254
255
|
- sig/growsurf_ruby/models/campaign/reward_fulfill_response.rbs
|
|
256
|
+
- sig/growsurf_ruby/models/campaign_create_mobile_participant_token_params.rbs
|
|
257
|
+
- sig/growsurf_ruby/models/campaign_create_mobile_participant_token_response.rbs
|
|
255
258
|
- sig/growsurf_ruby/models/campaign_list_commissions_params.rbs
|
|
256
259
|
- sig/growsurf_ruby/models/campaign_list_leaderboard_params.rbs
|
|
257
260
|
- sig/growsurf_ruby/models/campaign_list_params.rbs
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
module Campaign
|
|
6
|
-
# @see GrowsurfRuby::Resources::Campaign::Participant#create_mobile_token
|
|
7
|
-
class ParticipantCreateMobileTokenParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
-
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
-
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
-
|
|
11
|
-
# @!attribute id
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute participant_id_or_email
|
|
17
|
-
#
|
|
18
|
-
# @return [String]
|
|
19
|
-
required :participant_id_or_email, String
|
|
20
|
-
|
|
21
|
-
# @!method initialize(id:, participant_id_or_email:, request_options: {})
|
|
22
|
-
# @param id [String]
|
|
23
|
-
# @param participant_id_or_email [String]
|
|
24
|
-
# @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
module Campaign
|
|
6
|
-
# @see GrowsurfRuby::Resources::Campaign::Participant#create_mobile_token
|
|
7
|
-
class ParticipantCreateMobileTokenResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
-
# @!attribute expires_in
|
|
9
|
-
# Token lifetime in seconds.
|
|
10
|
-
#
|
|
11
|
-
# @return [Integer]
|
|
12
|
-
required :expires_in, Integer, api_name: :expiresIn
|
|
13
|
-
|
|
14
|
-
# @!attribute participant_token
|
|
15
|
-
# Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.
|
|
16
|
-
#
|
|
17
|
-
# @return [String]
|
|
18
|
-
required :participant_token, String, api_name: :participantToken
|
|
19
|
-
|
|
20
|
-
# @!method initialize(expires_in:, participant_token:)
|
|
21
|
-
# @param expires_in [Integer] Token lifetime in seconds.
|
|
22
|
-
#
|
|
23
|
-
# @param participant_token [String] Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
module Campaign
|
|
6
|
-
class ParticipantCreateMobileTokenParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
7
|
-
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
OrHash =
|
|
11
|
-
T.type_alias do
|
|
12
|
-
T.any(
|
|
13
|
-
GrowsurfRuby::Campaign::ParticipantCreateMobileTokenParams,
|
|
14
|
-
GrowsurfRuby::Internal::AnyHash
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
|
-
sig { returns(String) }
|
|
22
|
-
attr_accessor :participant_id_or_email
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
id: String,
|
|
27
|
-
participant_id_or_email: String,
|
|
28
|
-
request_options: GrowsurfRuby::RequestOptions::OrHash
|
|
29
|
-
).returns(T.attached_class)
|
|
30
|
-
end
|
|
31
|
-
def self.new(id:, participant_id_or_email:, request_options: {})
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
override.returns(
|
|
36
|
-
{
|
|
37
|
-
id: String,
|
|
38
|
-
participant_id_or_email: String,
|
|
39
|
-
request_options: GrowsurfRuby::RequestOptions
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
def to_hash
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
48
|
-
end
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module GrowsurfRuby
|
|
4
|
-
module Models
|
|
5
|
-
module Campaign
|
|
6
|
-
class ParticipantCreateMobileTokenResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
7
|
-
OrHash =
|
|
8
|
-
T.type_alias do
|
|
9
|
-
T.any(
|
|
10
|
-
GrowsurfRuby::Models::Campaign::ParticipantCreateMobileTokenResponse,
|
|
11
|
-
GrowsurfRuby::Internal::AnyHash
|
|
12
|
-
)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Token lifetime in seconds.
|
|
16
|
-
sig { returns(Integer) }
|
|
17
|
-
attr_accessor :expires_in
|
|
18
|
-
|
|
19
|
-
# Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.
|
|
20
|
-
sig { returns(String) }
|
|
21
|
-
attr_accessor :participant_token
|
|
22
|
-
|
|
23
|
-
sig do
|
|
24
|
-
params(expires_in: Integer, participant_token: String).returns(
|
|
25
|
-
T.attached_class
|
|
26
|
-
)
|
|
27
|
-
end
|
|
28
|
-
def self.new(
|
|
29
|
-
# Token lifetime in seconds.
|
|
30
|
-
expires_in:,
|
|
31
|
-
# Participant-scoped bearer token for GrowSurf mobile SDK participant endpoints.
|
|
32
|
-
participant_token:
|
|
33
|
-
)
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
sig do
|
|
37
|
-
override.returns({ expires_in: Integer, participant_token: String })
|
|
38
|
-
end
|
|
39
|
-
def to_hash
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
module GrowsurfRuby
|
|
2
|
-
module Models
|
|
3
|
-
module Campaign
|
|
4
|
-
type participant_create_mobile_token_params =
|
|
5
|
-
{ id: String, participant_id_or_email: String }
|
|
6
|
-
& GrowsurfRuby::Internal::Type::request_parameters
|
|
7
|
-
|
|
8
|
-
class ParticipantCreateMobileTokenParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
9
|
-
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
10
|
-
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
11
|
-
|
|
12
|
-
attr_accessor id: String
|
|
13
|
-
|
|
14
|
-
attr_accessor participant_id_or_email: String
|
|
15
|
-
|
|
16
|
-
def initialize: (
|
|
17
|
-
id: String,
|
|
18
|
-
participant_id_or_email: String,
|
|
19
|
-
?request_options: GrowsurfRuby::request_opts
|
|
20
|
-
) -> void
|
|
21
|
-
|
|
22
|
-
def to_hash: -> {
|
|
23
|
-
id: String,
|
|
24
|
-
participant_id_or_email: String,
|
|
25
|
-
request_options: GrowsurfRuby::RequestOptions
|
|
26
|
-
}
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module GrowsurfRuby
|
|
2
|
-
module Models
|
|
3
|
-
module Campaign
|
|
4
|
-
type participant_create_mobile_token_response =
|
|
5
|
-
{ expires_in: Integer, participant_token: String }
|
|
6
|
-
|
|
7
|
-
class ParticipantCreateMobileTokenResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor expires_in: Integer
|
|
9
|
-
|
|
10
|
-
attr_accessor participant_token: String
|
|
11
|
-
|
|
12
|
-
def initialize: (expires_in: Integer, participant_token: String) -> void
|
|
13
|
-
|
|
14
|
-
def to_hash: -> { expires_in: Integer, participant_token: String }
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|