growsurf-ruby 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 605534d947eac522a949503f9572694007413ef9040a32a96bea535a2584be47
4
- data.tar.gz: aef15c880bbfa43c46f5c29f5299179909325b12d7211e1320a03cab1d28a6fe
3
+ metadata.gz: 90493bdc8baea2e327326d29aa004fe7a57766653641f6ad80ac4cef4057b0b4
4
+ data.tar.gz: 18f679b7fc93472b3be00394c42cc31e2df266f0c2e0b7222cabc654c88025aa
5
5
  SHA512:
6
- metadata.gz: 06c6a1595b1d6778efd78c9d01237364471f023f2163d8f3b663aaa27cdf684d1d0ea714023b03b2398d65a07b971fd5902712640016166dee9e116c35f40580
7
- data.tar.gz: 3761201606953175d138cbed0e948d6e2b069183e9584faefe841f9dfe7a0a9c5d9f0e190c69776bb1cf424f872e95a23122d1ed77c55721967c73202a569160
6
+ metadata.gz: c80ae52984154a91eb9887e9da0305fc03cc7c3877437bb034b27d7e7b2f5ac05b124f67808eeeadd51e7c148ace51fa2c7a4b653a2fd1d6ecb054d4854fe492
7
+ data.tar.gz: acfce9a0ef800f4627bd6dddccdc7c1ad3dcf0ef12b49ff0f3e4561de1dd2ee256ba40dcc92800f82286f958fc6284e7a864a92c882faac304a99c7e004335b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0 (2026-05-20)
4
+
5
+ Full Changelog: [v0.3.0...v0.4.0](https://github.com/growsurf/growsurf-ruby/compare/v0.3.0...v0.4.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** Add Participant.mobileInstanceId ([c5ca7c3](https://github.com/growsurf/growsurf-ruby/commit/c5ca7c3334d28caf6d28afa9baf71cd9cfbfee11))
10
+
3
11
  ## 0.3.0 (2026-05-19)
4
12
 
5
13
  Full Changelog: [v0.2.0...v0.3.0](https://github.com/growsurf/growsurf-ruby/compare/v0.2.0...v0.3.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "growsurf-ruby", "~> 0.3.0"
20
+ gem "growsurf-ruby", "~> 0.4.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -35,6 +35,13 @@ module GrowsurfRuby
35
35
  # @return [Hash{Symbol=>Object}, nil]
36
36
  optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
37
37
 
38
+ # @!attribute mobile_instance_id
39
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
40
+ # for mobile participant creation and mobile participant token flows.
41
+ #
42
+ # @return [String, nil]
43
+ optional :mobile_instance_id, String, api_name: :mobileInstanceId
44
+
38
45
  # @!attribute referral_status
39
46
  #
40
47
  # @return [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus, nil]
@@ -48,7 +55,10 @@ module GrowsurfRuby
48
55
  # @return [String, nil]
49
56
  optional :referred_by, String, api_name: :referredBy
50
57
 
51
- # @!method initialize(email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil)
58
+ # @!method initialize(email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil)
59
+ # Some parameter documentations has been truncated, see
60
+ # {GrowsurfRuby::Models::Campaign::Create} for more details.
61
+ #
52
62
  # @param email [String]
53
63
  #
54
64
  # @param fingerprint [String]
@@ -61,6 +71,8 @@ module GrowsurfRuby
61
71
  #
62
72
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
63
73
  #
74
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
75
+ #
64
76
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
65
77
  #
66
78
  # @param referred_by [String] Referrer participant ID or email address.
@@ -117,6 +117,13 @@ module GrowsurfRuby
117
117
  # @return [Hash{Symbol=>Object}, nil]
118
118
  optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
119
119
 
120
+ # @!attribute mobile_instance_id
121
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
122
+ # by native mobile apps. Not stored when strict GDPR/CCPA mode is enabled.
123
+ #
124
+ # @return [String, nil]
125
+ optional :mobile_instance_id, String, api_name: :mobileInstanceId, nil?: true
126
+
120
127
  # @!attribute monthly_referrals
121
128
  #
122
129
  # @return [Array<String>, nil]
@@ -207,7 +214,10 @@ module GrowsurfRuby
207
214
  # @return [Array<String>, nil]
208
215
  optional :vanity_keys, GrowsurfRuby::Internal::Type::ArrayOf[String], api_name: :vanityKeys
209
216
 
210
- # @!method initialize(id:, email:, monthly_rank:, monthly_referral_count:, rank:, referral_count:, rewards:, share_url:, all_matching_fraudsters: nil, created_at: nil, fingerprint: nil, first_name: nil, fraud_reason_code: nil, fraud_risk_level: nil, impression_count: nil, invite_count: nil, ip_address: nil, is_new: nil, is_winner: nil, last_name: nil, metadata: nil, monthly_referrals: nil, notes: nil, paypal_email_address: nil, prev_monthly_rank: nil, prev_monthly_referral_count: nil, referrals: nil, referral_source: nil, referral_status: nil, referred_by: nil, referrer: nil, share_count: nil, unique_impression_count: nil, unread_commissions_count: nil, unread_payouts_count: nil, unsubscribed: nil, vanity_keys: nil)
217
+ # @!method initialize(id:, email:, monthly_rank:, monthly_referral_count:, rank:, referral_count:, rewards:, share_url:, all_matching_fraudsters: nil, created_at: nil, fingerprint: nil, first_name: nil, fraud_reason_code: nil, fraud_risk_level: nil, impression_count: nil, invite_count: nil, ip_address: nil, is_new: nil, is_winner: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, monthly_referrals: nil, notes: nil, paypal_email_address: nil, prev_monthly_rank: nil, prev_monthly_referral_count: nil, referrals: nil, referral_source: nil, referral_status: nil, referred_by: nil, referrer: nil, share_count: nil, unique_impression_count: nil, unread_commissions_count: nil, unread_payouts_count: nil, unsubscribed: nil, vanity_keys: nil)
218
+ # Some parameter documentations has been truncated, see
219
+ # {GrowsurfRuby::Models::Campaign::CampaignParticipant} for more details.
220
+ #
211
221
  # @param id [String]
212
222
  #
213
223
  # @param email [String]
@@ -250,6 +260,8 @@ module GrowsurfRuby
250
260
  #
251
261
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
252
262
  #
263
+ # @param mobile_instance_id [String, nil] App-install scoped mobile identifier used for anti-fraud matching when provided
264
+ #
253
265
  # @param monthly_referrals [Array<String>]
254
266
  #
255
267
  # @param notes [String, nil]
@@ -102,10 +102,13 @@ module GrowsurfRuby
102
102
  )
103
103
  end
104
104
 
105
+ # Some parameter documentations has been truncated, see
106
+ # {GrowsurfRuby::Models::Campaign::ParticipantAddParams} for more details.
107
+ #
105
108
  # Adds a new participant to the program. If the email already exists, the existing
106
109
  # participant is returned.
107
110
  #
108
- # @overload add(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil, request_options: {})
111
+ # @overload add(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil, request_options: {})
109
112
  #
110
113
  # @param id [String] GrowSurf program ID.
111
114
  #
@@ -121,6 +124,8 @@ module GrowsurfRuby
121
124
  #
122
125
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
123
126
  #
127
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
128
+ #
124
129
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
125
130
  #
126
131
  # @param referred_by [String] Referrer participant ID or email address.
@@ -52,12 +52,16 @@ module GrowsurfRuby
52
52
  )
53
53
  end
54
54
 
55
+ # Some parameter documentations has been truncated, see
56
+ # {GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams} for more
57
+ # details.
58
+ #
55
59
  # Creates or returns a participant using the same input behavior as Add
56
60
  # Participant, then returns a participant-scoped token for GrowSurf mobile SDK
57
61
  # participant endpoints. Use this endpoint from your backend after your mobile app
58
62
  # authenticates a signed-in user. The program must have mobile SDK access enabled.
59
63
  #
60
- # @overload create_mobile_participant_token(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, referral_status: nil, referred_by: nil, request_options: {})
64
+ # @overload create_mobile_participant_token(id, email:, fingerprint: nil, first_name: nil, ip_address: nil, last_name: nil, metadata: nil, mobile_instance_id: nil, referral_status: nil, referred_by: nil, request_options: {})
61
65
  #
62
66
  # @param id [String] GrowSurf program ID.
63
67
  #
@@ -73,6 +77,8 @@ module GrowsurfRuby
73
77
  #
74
78
  # @param metadata [Hash{Symbol=>Object}] Shallow custom metadata object.
75
79
  #
80
+ # @param mobile_instance_id [String] Optional app-install scoped identifier for native mobile anti-fraud. Recommended
81
+ #
76
82
  # @param referral_status [Symbol, GrowsurfRuby::Models::Campaign::Create::ReferralStatus]
77
83
  #
78
84
  # @param referred_by [String] Referrer participant ID or email address.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrowsurfRuby
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
@@ -46,6 +46,14 @@ module GrowsurfRuby
46
46
  sig { params(metadata: T::Hash[Symbol, T.anything]).void }
47
47
  attr_writer :metadata
48
48
 
49
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
50
+ # for mobile participant creation and mobile participant token flows.
51
+ sig { returns(T.nilable(String)) }
52
+ attr_reader :mobile_instance_id
53
+
54
+ sig { params(mobile_instance_id: String).void }
55
+ attr_writer :mobile_instance_id
56
+
49
57
  sig do
50
58
  returns(
51
59
  T.nilable(GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol)
@@ -76,6 +84,7 @@ module GrowsurfRuby
76
84
  ip_address: String,
77
85
  last_name: String,
78
86
  metadata: T::Hash[Symbol, T.anything],
87
+ mobile_instance_id: String,
79
88
  referral_status:
80
89
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
81
90
  referred_by: String
@@ -89,6 +98,9 @@ module GrowsurfRuby
89
98
  last_name: nil,
90
99
  # Shallow custom metadata object.
91
100
  metadata: nil,
101
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
102
+ # for mobile participant creation and mobile participant token flows.
103
+ mobile_instance_id: nil,
92
104
  referral_status: nil,
93
105
  # Referrer participant ID or email address.
94
106
  referred_by: nil
@@ -104,6 +116,7 @@ module GrowsurfRuby
104
116
  ip_address: String,
105
117
  last_name: String,
106
118
  metadata: T::Hash[Symbol, T.anything],
119
+ mobile_instance_id: String,
107
120
  referral_status:
108
121
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
109
122
  referred_by: String
@@ -115,6 +115,11 @@ module GrowsurfRuby
115
115
  sig { params(metadata: T::Hash[Symbol, T.anything]).void }
116
116
  attr_writer :metadata
117
117
 
118
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
119
+ # by native mobile apps. Not stored when strict GDPR/CCPA mode is enabled.
120
+ sig { returns(T.nilable(String)) }
121
+ attr_accessor :mobile_instance_id
122
+
118
123
  sig { returns(T.nilable(T::Array[String])) }
119
124
  attr_reader :monthly_referrals
120
125
 
@@ -259,6 +264,7 @@ module GrowsurfRuby
259
264
  is_winner: T::Boolean,
260
265
  last_name: T.nilable(String),
261
266
  metadata: T::Hash[Symbol, T.anything],
267
+ mobile_instance_id: T.nilable(String),
262
268
  monthly_referrals: T::Array[String],
263
269
  notes: T.nilable(String),
264
270
  paypal_email_address: String,
@@ -303,6 +309,9 @@ module GrowsurfRuby
303
309
  last_name: nil,
304
310
  # Shallow custom metadata object.
305
311
  metadata: nil,
312
+ # App-install scoped mobile identifier used for anti-fraud matching when provided
313
+ # by native mobile apps. Not stored when strict GDPR/CCPA mode is enabled.
314
+ mobile_instance_id: nil,
306
315
  monthly_referrals: nil,
307
316
  notes: nil,
308
317
  paypal_email_address: nil,
@@ -347,6 +356,7 @@ module GrowsurfRuby
347
356
  is_winner: T::Boolean,
348
357
  last_name: T.nilable(String),
349
358
  metadata: T::Hash[Symbol, T.anything],
359
+ mobile_instance_id: T.nilable(String),
350
360
  monthly_referrals: T::Array[String],
351
361
  notes: T.nilable(String),
352
362
  paypal_email_address: String,
@@ -91,6 +91,7 @@ module GrowsurfRuby
91
91
  ip_address: String,
92
92
  last_name: String,
93
93
  metadata: T::Hash[Symbol, T.anything],
94
+ mobile_instance_id: String,
94
95
  referral_status:
95
96
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
96
97
  referred_by: String,
@@ -107,6 +108,9 @@ module GrowsurfRuby
107
108
  last_name: nil,
108
109
  # Shallow custom metadata object.
109
110
  metadata: nil,
111
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
112
+ # for mobile participant creation and mobile participant token flows.
113
+ mobile_instance_id: nil,
110
114
  referral_status: nil,
111
115
  # Referrer participant ID or email address.
112
116
  referred_by: nil,
@@ -50,6 +50,7 @@ module GrowsurfRuby
50
50
  ip_address: String,
51
51
  last_name: String,
52
52
  metadata: T::Hash[Symbol, T.anything],
53
+ mobile_instance_id: String,
53
54
  referral_status:
54
55
  GrowsurfRuby::Campaign::Create::ReferralStatus::OrSymbol,
55
56
  referred_by: String,
@@ -68,6 +69,9 @@ module GrowsurfRuby
68
69
  last_name: nil,
69
70
  # Shallow custom metadata object.
70
71
  metadata: nil,
72
+ # Optional app-install scoped identifier for native mobile anti-fraud. Recommended
73
+ # for mobile participant creation and mobile participant token flows.
74
+ mobile_instance_id: nil,
71
75
  referral_status: nil,
72
76
  # Referrer participant ID or email address.
73
77
  referred_by: nil,
@@ -9,6 +9,7 @@ module GrowsurfRuby
9
9
  ip_address: String,
10
10
  last_name: String,
11
11
  metadata: ::Hash[Symbol, top],
12
+ mobile_instance_id: String,
12
13
  referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
13
14
  referred_by: String
14
15
  }
@@ -36,6 +37,10 @@ module GrowsurfRuby
36
37
 
37
38
  def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
38
39
 
40
+ attr_reader mobile_instance_id: String?
41
+
42
+ def mobile_instance_id=: (String) -> String
43
+
39
44
  attr_reader referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status?
40
45
 
41
46
  def referral_status=: (
@@ -53,6 +58,7 @@ module GrowsurfRuby
53
58
  ?ip_address: String,
54
59
  ?last_name: String,
55
60
  ?metadata: ::Hash[Symbol, top],
61
+ ?mobile_instance_id: String,
56
62
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
57
63
  ?referred_by: String
58
64
  ) -> void
@@ -64,6 +70,7 @@ module GrowsurfRuby
64
70
  ip_address: String,
65
71
  last_name: String,
66
72
  metadata: ::Hash[Symbol, top],
73
+ mobile_instance_id: String,
67
74
  referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
68
75
  referred_by: String
69
76
  }
@@ -24,6 +24,7 @@ module GrowsurfRuby
24
24
  is_winner: bool,
25
25
  last_name: String?,
26
26
  metadata: ::Hash[Symbol, top],
27
+ mobile_instance_id: String?,
27
28
  monthly_referrals: ::Array[String],
28
29
  notes: String?,
29
30
  paypal_email_address: String,
@@ -107,6 +108,8 @@ module GrowsurfRuby
107
108
 
108
109
  def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
109
110
 
111
+ attr_accessor mobile_instance_id: String?
112
+
110
113
  attr_reader monthly_referrals: ::Array[String]?
111
114
 
112
115
  def monthly_referrals=: (::Array[String]) -> ::Array[String]
@@ -193,6 +196,7 @@ module GrowsurfRuby
193
196
  ?is_winner: bool,
194
197
  ?last_name: String?,
195
198
  ?metadata: ::Hash[Symbol, top],
199
+ ?mobile_instance_id: String?,
196
200
  ?monthly_referrals: ::Array[String],
197
201
  ?notes: String?,
198
202
  ?paypal_email_address: String,
@@ -233,6 +237,7 @@ module GrowsurfRuby
233
237
  is_winner: bool,
234
238
  last_name: String?,
235
239
  metadata: ::Hash[Symbol, top],
240
+ mobile_instance_id: String?,
236
241
  monthly_referrals: ::Array[String],
237
242
  notes: String?,
238
243
  paypal_email_address: String,
@@ -36,6 +36,7 @@ module GrowsurfRuby
36
36
  ?ip_address: String,
37
37
  ?last_name: String,
38
38
  ?metadata: ::Hash[Symbol, top],
39
+ ?mobile_instance_id: String,
39
40
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
40
41
  ?referred_by: String,
41
42
  ?request_options: GrowsurfRuby::request_opts
@@ -24,6 +24,7 @@ module GrowsurfRuby
24
24
  ?ip_address: String,
25
25
  ?last_name: String,
26
26
  ?metadata: ::Hash[Symbol, top],
27
+ ?mobile_instance_id: String,
27
28
  ?referral_status: GrowsurfRuby::Models::Campaign::Create::referral_status,
28
29
  ?referred_by: String,
29
30
  ?request_options: GrowsurfRuby::request_opts
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.3.0
4
+ version: 0.4.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-19 00:00:00.000000000 Z
11
+ date: 2026-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi