growsurf-ruby 1.3.0 → 1.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rb +11 -8
  5. data/lib/growsurf_ruby/models/campaign/participant_reward.rb +1 -0
  6. data/lib/growsurf_ruby/models/campaign/reward.rb +22 -1
  7. data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +23 -1
  8. data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +23 -1
  9. data/lib/growsurf_ruby/models/campaign.rb +22 -1
  10. data/lib/growsurf_ruby/models/commission_structure.rb +16 -3
  11. data/lib/growsurf_ruby/models/participant_commission_list.rb +19 -1
  12. data/lib/growsurf_ruby/resources/campaign/participant.rb +6 -4
  13. data/lib/growsurf_ruby/resources/campaign/rewards.rb +6 -2
  14. data/lib/growsurf_ruby/version.rb +1 -1
  15. data/rbi/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbi +16 -10
  16. data/rbi/growsurf_ruby/models/campaign/participant_reward.rbi +5 -0
  17. data/rbi/growsurf_ruby/models/campaign/reward.rbi +55 -0
  18. data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +64 -0
  19. data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +64 -0
  20. data/rbi/growsurf_ruby/models/campaign.rbi +46 -0
  21. data/rbi/growsurf_ruby/models/commission_structure.rbi +34 -3
  22. data/rbi/growsurf_ruby/models/participant_commission_list.rbi +48 -0
  23. data/rbi/growsurf_ruby/resources/campaign/participant.rbi +11 -6
  24. data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +14 -0
  25. data/sig/growsurf_ruby/models/campaign/participant_reward.rbs +2 -1
  26. data/sig/growsurf_ruby/models/campaign/reward.rbs +16 -0
  27. data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +20 -0
  28. data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +20 -0
  29. data/sig/growsurf_ruby/models/campaign.rbs +16 -0
  30. data/sig/growsurf_ruby/models/commission_structure.rbs +16 -4
  31. data/sig/growsurf_ruby/models/participant_commission_list.rbs +16 -0
  32. data/sig/growsurf_ruby/resources/campaign/rewards.rbs +2 -0
  33. metadata +2 -2
@@ -78,6 +78,7 @@ module GrowsurfRuby
78
78
  conversions_required: Integer?,
79
79
  coupon_code: String?,
80
80
  description: String?,
81
+ event: GrowsurfRuby::Models::CampaignAPI::Reward::event?,
81
82
  image_url: String?,
82
83
  limit: Integer?,
83
84
  limit_duration: GrowsurfRuby::Models::CampaignAPI::Reward::limit_duration?,
@@ -109,6 +110,8 @@ module GrowsurfRuby
109
110
 
110
111
  attr_accessor description: String?
111
112
 
113
+ attr_accessor event: GrowsurfRuby::Models::CampaignAPI::Reward::event?
114
+
112
115
  attr_accessor image_url: String?
113
116
 
114
117
  attr_accessor limit: Integer?
@@ -144,6 +147,7 @@ module GrowsurfRuby
144
147
  ?conversions_required: Integer?,
145
148
  ?coupon_code: String?,
146
149
  ?description: String?,
150
+ ?event: GrowsurfRuby::Models::CampaignAPI::Reward::event?,
147
151
  ?image_url: String?,
148
152
  ?limit: Integer?,
149
153
  ?limit_duration: GrowsurfRuby::Models::CampaignAPI::Reward::limit_duration?,
@@ -167,6 +171,7 @@ module GrowsurfRuby
167
171
  conversions_required: Integer?,
168
172
  coupon_code: String?,
169
173
  description: String?,
174
+ event: GrowsurfRuby::Models::CampaignAPI::Reward::event?,
170
175
  image_url: String?,
171
176
  limit: Integer?,
172
177
  limit_duration: GrowsurfRuby::Models::CampaignAPI::Reward::limit_duration?,
@@ -196,6 +201,17 @@ module GrowsurfRuby
196
201
  def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignAPI::Reward::type_]
197
202
  end
198
203
 
204
+ type event = :LEAD | :CONVERSION
205
+
206
+ module Event
207
+ extend GrowsurfRuby::Internal::Type::Enum
208
+
209
+ LEAD: :LEAD
210
+ CONVERSION: :CONVERSION
211
+
212
+ def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignAPI::Reward::event]
213
+ end
214
+
199
215
  type limit_duration = :IN_TOTAL | :PER_MONTH
200
216
 
201
217
  module LimitDuration
@@ -7,7 +7,7 @@ module GrowsurfRuby
7
7
  approval_required: bool?,
8
8
  duration: String?,
9
9
  duration_in_months: Integer?,
10
- event: String?,
10
+ event: GrowsurfRuby::Models::CommissionStructure::event?,
11
11
  has_intro: bool?,
12
12
  has_max_amount: bool?,
13
13
  hold_duration: Integer?,
@@ -35,7 +35,7 @@ module GrowsurfRuby
35
35
 
36
36
  attr_accessor duration_in_months: Integer?
37
37
 
38
- attr_accessor event: String?
38
+ attr_accessor event: GrowsurfRuby::Models::CommissionStructure::event?
39
39
 
40
40
  attr_accessor has_intro: bool?
41
41
 
@@ -71,7 +71,7 @@ module GrowsurfRuby
71
71
  ?approval_required: bool?,
72
72
  ?duration: String?,
73
73
  ?duration_in_months: Integer?,
74
- ?event: String?,
74
+ ?event: GrowsurfRuby::Models::CommissionStructure::event?,
75
75
  ?has_intro: bool?,
76
76
  ?has_max_amount: bool?,
77
77
  ?hold_duration: Integer?,
@@ -94,7 +94,7 @@ module GrowsurfRuby
94
94
  approval_required: bool?,
95
95
  duration: String?,
96
96
  duration_in_months: Integer?,
97
- event: String?,
97
+ event: GrowsurfRuby::Models::CommissionStructure::event?,
98
98
  has_intro: bool?,
99
99
  has_max_amount: bool?,
100
100
  hold_duration: Integer?,
@@ -111,6 +111,18 @@ module GrowsurfRuby
111
111
  type: GrowsurfRuby::Models::CommissionStructure::type_?
112
112
  }
113
113
 
114
+ type event = :CLICK | :LEAD | :SALE
115
+
116
+ module Event
117
+ extend GrowsurfRuby::Internal::Type::Enum
118
+
119
+ CLICK: :CLICK
120
+ LEAD: :LEAD
121
+ SALE: :SALE
122
+
123
+ def self?.values: -> ::Array[GrowsurfRuby::Models::CommissionStructure::event]
124
+ end
125
+
114
126
  type type_ = :PERCENT | :FIXED
115
127
 
116
128
  module Type
@@ -32,6 +32,7 @@ module GrowsurfRuby
32
32
  amount: Integer?,
33
33
  created_at: Integer,
34
34
  currency_iso: String,
35
+ event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
35
36
  referred_id: String,
36
37
  referrer_id: String,
37
38
  sale_amount: Integer?,
@@ -59,6 +60,8 @@ module GrowsurfRuby
59
60
 
60
61
  attr_accessor currency_iso: String
61
62
 
63
+ attr_accessor event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event
64
+
62
65
  attr_accessor referred_id: String
63
66
 
64
67
  attr_accessor referrer_id: String
@@ -106,6 +109,7 @@ module GrowsurfRuby
106
109
  amount: Integer?,
107
110
  created_at: Integer,
108
111
  currency_iso: String,
112
+ event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
109
113
  referred_id: String,
110
114
  referrer_id: String,
111
115
  sale_amount: Integer?,
@@ -129,6 +133,7 @@ module GrowsurfRuby
129
133
  amount: Integer?,
130
134
  created_at: Integer,
131
135
  currency_iso: String,
136
+ event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
132
137
  referred_id: String,
133
138
  referrer_id: String,
134
139
  sale_amount: Integer?,
@@ -147,6 +152,17 @@ module GrowsurfRuby
147
152
  sale_amount_in_campaign_currency: Integer?
148
153
  }
149
154
 
155
+ type event = :LEAD | :SALE
156
+
157
+ module Event
158
+ extend GrowsurfRuby::Internal::Type::Enum
159
+
160
+ LEAD: :LEAD
161
+ SALE: :SALE
162
+
163
+ def self?.values: -> ::Array[GrowsurfRuby::Models::ParticipantCommissionList::Commission::event]
164
+ end
165
+
150
166
  type status = :PENDING | :APPROVED | :PAID | :REVERSED | :DELETED
151
167
 
152
168
  module Status
@@ -14,6 +14,7 @@ module GrowsurfRuby
14
14
  ?conversions_required: Integer,
15
15
  ?coupon_code: String,
16
16
  ?description: String,
17
+ ?event: GrowsurfRuby::Models::Campaign::RewardCreateParams::event,
17
18
  ?image_url: String,
18
19
  ?is_unlimited: bool,
19
20
  ?is_visible: bool,
@@ -40,6 +41,7 @@ module GrowsurfRuby
40
41
  ?conversions_required: Integer,
41
42
  ?coupon_code: String,
42
43
  ?description: String,
44
+ ?event: GrowsurfRuby::Models::Campaign::RewardUpdateParams::event,
43
45
  ?image_url: String,
44
46
  ?is_unlimited: bool,
45
47
  ?is_visible: bool,
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.3.0
4
+ version: 1.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-08-23 00:00:00.000000000 Z
11
+ date: 2026-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi