growsurf-ruby 0.8.0 → 1.0.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 +11 -0
- data/README.md +1 -1
- data/lib/growsurf_ruby/models/campaign/reward.rb +28 -1
- data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +24 -1
- data/lib/growsurf_ruby/models/campaign/reward_delete_params.rb +4 -4
- data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +27 -4
- data/lib/growsurf_ruby/models/campaign.rb +28 -1
- data/lib/growsurf_ruby/models/campaign_create_params.rb +1 -15
- data/lib/growsurf_ruby/models/campaign_update_params.rb +1 -50
- data/lib/growsurf_ruby/models/reward_tax_valuation.rb +35 -0
- data/lib/growsurf_ruby/models.rb +2 -0
- data/lib/growsurf_ruby/resources/campaign/design.rb +66 -0
- data/lib/growsurf_ruby/resources/campaign/emails.rb +63 -0
- data/lib/growsurf_ruby/resources/campaign/installation.rb +65 -0
- data/lib/growsurf_ruby/resources/campaign/options.rb +63 -0
- data/lib/growsurf_ruby/resources/campaign/rewards.rb +21 -13
- data/lib/growsurf_ruby/resources/campaign.rb +32 -25
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +5 -0
- data/rbi/growsurf_ruby/models/campaign/reward.rbi +42 -3
- data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +28 -0
- data/rbi/growsurf_ruby/models/campaign/reward_delete_params.rbi +4 -4
- data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +32 -4
- data/rbi/growsurf_ruby/models/campaign.rbi +42 -3
- data/rbi/growsurf_ruby/models/campaign_create_params.rbi +0 -18
- data/rbi/growsurf_ruby/models/campaign_update_params.rbi +0 -63
- data/rbi/growsurf_ruby/models/reward_tax_valuation.rbi +56 -0
- data/rbi/growsurf_ruby/models.rbi +2 -0
- data/rbi/growsurf_ruby/resources/campaign/design.rbi +50 -0
- data/rbi/growsurf_ruby/resources/campaign/emails.rbi +49 -0
- data/rbi/growsurf_ruby/resources/campaign/installation.rbi +50 -0
- data/rbi/growsurf_ruby/resources/campaign/options.rbi +49 -0
- data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +24 -8
- data/rbi/growsurf_ruby/resources/campaign.rbi +25 -30
- data/sig/growsurf_ruby/models/campaign/reward.rbs +18 -3
- data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +19 -1
- data/sig/growsurf_ruby/models/campaign/reward_delete_params.rbs +4 -4
- data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +23 -5
- data/sig/growsurf_ruby/models/campaign.rbs +18 -3
- data/sig/growsurf_ruby/models/campaign_create_params.rbs +0 -14
- data/sig/growsurf_ruby/models/campaign_update_params.rbs +0 -49
- data/sig/growsurf_ruby/models/reward_tax_valuation.rbs +19 -0
- data/sig/growsurf_ruby/models.rbs +2 -0
- data/sig/growsurf_ruby/resources/campaign/design.rbs +20 -0
- data/sig/growsurf_ruby/resources/campaign/emails.rbs +20 -0
- data/sig/growsurf_ruby/resources/campaign/installation.rbs +20 -0
- data/sig/growsurf_ruby/resources/campaign/options.rbs +20 -0
- data/sig/growsurf_ruby/resources/campaign/rewards.rbs +6 -2
- data/sig/growsurf_ruby/resources/campaign.rbs +8 -9
- metadata +17 -2
|
@@ -22,7 +22,9 @@ module GrowsurfRuby
|
|
|
22
22
|
referral_coupon_code: String,
|
|
23
23
|
referral_description: String,
|
|
24
24
|
referred_reward_upfront: bool,
|
|
25
|
-
|
|
25
|
+
referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
26
|
+
title: String,
|
|
27
|
+
value: GrowsurfRuby::RewardTaxValuation
|
|
26
28
|
}
|
|
27
29
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
28
30
|
|
|
@@ -108,10 +110,22 @@ module GrowsurfRuby
|
|
|
108
110
|
|
|
109
111
|
def referred_reward_upfront=: (bool) -> bool
|
|
110
112
|
|
|
113
|
+
attr_reader referred_value: GrowsurfRuby::RewardTaxValuation?
|
|
114
|
+
|
|
115
|
+
def referred_value=: (
|
|
116
|
+
GrowsurfRuby::RewardTaxValuation
|
|
117
|
+
) -> GrowsurfRuby::RewardTaxValuation
|
|
118
|
+
|
|
111
119
|
attr_reader title: String?
|
|
112
120
|
|
|
113
121
|
def title=: (String) -> String
|
|
114
122
|
|
|
123
|
+
attr_reader value: GrowsurfRuby::RewardTaxValuation?
|
|
124
|
+
|
|
125
|
+
def value=: (
|
|
126
|
+
GrowsurfRuby::RewardTaxValuation
|
|
127
|
+
) -> GrowsurfRuby::RewardTaxValuation
|
|
128
|
+
|
|
115
129
|
def initialize: (
|
|
116
130
|
type: GrowsurfRuby::Models::Campaign::RewardCreateParams::type_,
|
|
117
131
|
?commission_structure: GrowsurfRuby::CommissionStructure,
|
|
@@ -132,7 +146,9 @@ module GrowsurfRuby
|
|
|
132
146
|
?referral_coupon_code: String,
|
|
133
147
|
?referral_description: String,
|
|
134
148
|
?referred_reward_upfront: bool,
|
|
149
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
135
150
|
?title: String,
|
|
151
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
136
152
|
?request_options: GrowsurfRuby::request_opts
|
|
137
153
|
) -> void
|
|
138
154
|
|
|
@@ -156,7 +172,9 @@ module GrowsurfRuby
|
|
|
156
172
|
referral_coupon_code: String,
|
|
157
173
|
referral_description: String,
|
|
158
174
|
referred_reward_upfront: bool,
|
|
175
|
+
referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
159
176
|
title: String,
|
|
177
|
+
value: GrowsurfRuby::RewardTaxValuation,
|
|
160
178
|
request_options: GrowsurfRuby::RequestOptions
|
|
161
179
|
}
|
|
162
180
|
|
|
@@ -2,7 +2,7 @@ module GrowsurfRuby
|
|
|
2
2
|
module Models
|
|
3
3
|
module Campaign
|
|
4
4
|
type reward_delete_params =
|
|
5
|
-
{ id: String,
|
|
5
|
+
{ id: String, campaign_reward_id: String }
|
|
6
6
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class RewardDeleteParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
@@ -11,17 +11,17 @@ module GrowsurfRuby
|
|
|
11
11
|
|
|
12
12
|
attr_accessor id: String
|
|
13
13
|
|
|
14
|
-
attr_accessor
|
|
14
|
+
attr_accessor campaign_reward_id: String
|
|
15
15
|
|
|
16
16
|
def initialize: (
|
|
17
17
|
id: String,
|
|
18
|
-
|
|
18
|
+
campaign_reward_id: String,
|
|
19
19
|
?request_options: GrowsurfRuby::request_opts
|
|
20
20
|
) -> void
|
|
21
21
|
|
|
22
22
|
def to_hash: -> {
|
|
23
23
|
id: String,
|
|
24
|
-
|
|
24
|
+
campaign_reward_id: String,
|
|
25
25
|
request_options: GrowsurfRuby::RequestOptions
|
|
26
26
|
}
|
|
27
27
|
end
|
|
@@ -4,7 +4,7 @@ module GrowsurfRuby
|
|
|
4
4
|
type reward_update_params =
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
|
-
|
|
7
|
+
campaign_reward_id: String,
|
|
8
8
|
commission_structure: GrowsurfRuby::CommissionStructure,
|
|
9
9
|
conversions_required: Integer,
|
|
10
10
|
coupon_code: String,
|
|
@@ -23,7 +23,9 @@ module GrowsurfRuby
|
|
|
23
23
|
referral_coupon_code: String,
|
|
24
24
|
referral_description: String,
|
|
25
25
|
referred_reward_upfront: bool,
|
|
26
|
-
|
|
26
|
+
referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
27
|
+
title: String,
|
|
28
|
+
value: GrowsurfRuby::RewardTaxValuation
|
|
27
29
|
}
|
|
28
30
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
29
31
|
|
|
@@ -33,7 +35,7 @@ module GrowsurfRuby
|
|
|
33
35
|
|
|
34
36
|
attr_accessor id: String
|
|
35
37
|
|
|
36
|
-
attr_accessor
|
|
38
|
+
attr_accessor campaign_reward_id: String
|
|
37
39
|
|
|
38
40
|
attr_reader commission_structure: GrowsurfRuby::CommissionStructure?
|
|
39
41
|
|
|
@@ -111,13 +113,25 @@ module GrowsurfRuby
|
|
|
111
113
|
|
|
112
114
|
def referred_reward_upfront=: (bool) -> bool
|
|
113
115
|
|
|
116
|
+
attr_reader referred_value: GrowsurfRuby::RewardTaxValuation?
|
|
117
|
+
|
|
118
|
+
def referred_value=: (
|
|
119
|
+
GrowsurfRuby::RewardTaxValuation
|
|
120
|
+
) -> GrowsurfRuby::RewardTaxValuation
|
|
121
|
+
|
|
114
122
|
attr_reader title: String?
|
|
115
123
|
|
|
116
124
|
def title=: (String) -> String
|
|
117
125
|
|
|
126
|
+
attr_reader value: GrowsurfRuby::RewardTaxValuation?
|
|
127
|
+
|
|
128
|
+
def value=: (
|
|
129
|
+
GrowsurfRuby::RewardTaxValuation
|
|
130
|
+
) -> GrowsurfRuby::RewardTaxValuation
|
|
131
|
+
|
|
118
132
|
def initialize: (
|
|
119
133
|
id: String,
|
|
120
|
-
|
|
134
|
+
campaign_reward_id: String,
|
|
121
135
|
?commission_structure: GrowsurfRuby::CommissionStructure,
|
|
122
136
|
?conversions_required: Integer,
|
|
123
137
|
?coupon_code: String,
|
|
@@ -136,13 +150,15 @@ module GrowsurfRuby
|
|
|
136
150
|
?referral_coupon_code: String,
|
|
137
151
|
?referral_description: String,
|
|
138
152
|
?referred_reward_upfront: bool,
|
|
153
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
139
154
|
?title: String,
|
|
155
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
140
156
|
?request_options: GrowsurfRuby::request_opts
|
|
141
157
|
) -> void
|
|
142
158
|
|
|
143
159
|
def to_hash: -> {
|
|
144
160
|
id: String,
|
|
145
|
-
|
|
161
|
+
campaign_reward_id: String,
|
|
146
162
|
commission_structure: GrowsurfRuby::CommissionStructure,
|
|
147
163
|
conversions_required: Integer,
|
|
148
164
|
coupon_code: String,
|
|
@@ -161,7 +177,9 @@ module GrowsurfRuby
|
|
|
161
177
|
referral_coupon_code: String,
|
|
162
178
|
referral_description: String,
|
|
163
179
|
referred_reward_upfront: bool,
|
|
180
|
+
referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
164
181
|
title: String,
|
|
182
|
+
value: GrowsurfRuby::RewardTaxValuation,
|
|
165
183
|
request_options: GrowsurfRuby::RequestOptions
|
|
166
184
|
}
|
|
167
185
|
|
|
@@ -85,8 +85,11 @@ module GrowsurfRuby
|
|
|
85
85
|
next_milestone_suffix: String?,
|
|
86
86
|
number_of_winners: Integer?,
|
|
87
87
|
order: Integer?,
|
|
88
|
+
referral_coupon_code: String?,
|
|
88
89
|
referral_description: String?,
|
|
89
|
-
referred_reward_upfront: bool
|
|
90
|
+
referred_reward_upfront: bool,
|
|
91
|
+
referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
92
|
+
value: GrowsurfRuby::RewardTaxValuation?
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
class Reward < GrowsurfRuby::Internal::Type::BaseModel
|
|
@@ -120,12 +123,18 @@ module GrowsurfRuby
|
|
|
120
123
|
|
|
121
124
|
attr_accessor order: Integer?
|
|
122
125
|
|
|
126
|
+
attr_accessor referral_coupon_code: String?
|
|
127
|
+
|
|
123
128
|
attr_accessor referral_description: String?
|
|
124
129
|
|
|
125
130
|
attr_reader referred_reward_upfront: bool?
|
|
126
131
|
|
|
127
132
|
def referred_reward_upfront=: (bool) -> bool
|
|
128
133
|
|
|
134
|
+
attr_accessor referred_value: GrowsurfRuby::RewardTaxValuation?
|
|
135
|
+
|
|
136
|
+
attr_accessor value: GrowsurfRuby::RewardTaxValuation?
|
|
137
|
+
|
|
129
138
|
def initialize: (
|
|
130
139
|
id: String,
|
|
131
140
|
is_unlimited: bool,
|
|
@@ -142,8 +151,11 @@ module GrowsurfRuby
|
|
|
142
151
|
?next_milestone_suffix: String?,
|
|
143
152
|
?number_of_winners: Integer?,
|
|
144
153
|
?order: Integer?,
|
|
154
|
+
?referral_coupon_code: String?,
|
|
145
155
|
?referral_description: String?,
|
|
146
|
-
?referred_reward_upfront: bool
|
|
156
|
+
?referred_reward_upfront: bool,
|
|
157
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
158
|
+
?value: GrowsurfRuby::RewardTaxValuation?
|
|
147
159
|
) -> void
|
|
148
160
|
|
|
149
161
|
def to_hash: -> {
|
|
@@ -162,8 +174,11 @@ module GrowsurfRuby
|
|
|
162
174
|
next_milestone_suffix: String?,
|
|
163
175
|
number_of_winners: Integer?,
|
|
164
176
|
order: Integer?,
|
|
177
|
+
referral_coupon_code: String?,
|
|
165
178
|
referral_description: String?,
|
|
166
|
-
referred_reward_upfront: bool
|
|
179
|
+
referred_reward_upfront: bool,
|
|
180
|
+
referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
181
|
+
value: GrowsurfRuby::RewardTaxValuation?
|
|
167
182
|
}
|
|
168
183
|
|
|
169
184
|
type type_ =
|
|
@@ -6,9 +6,7 @@ module GrowsurfRuby
|
|
|
6
6
|
company_logo_image_url: String,
|
|
7
7
|
company_name: String,
|
|
8
8
|
currency_iso: String,
|
|
9
|
-
goal: String,
|
|
10
9
|
name: String,
|
|
11
|
-
options: ::Hash[Symbol, top],
|
|
12
10
|
rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams]
|
|
13
11
|
}
|
|
14
12
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
@@ -31,18 +29,10 @@ module GrowsurfRuby
|
|
|
31
29
|
|
|
32
30
|
def currency_iso=: (String) -> String
|
|
33
31
|
|
|
34
|
-
attr_reader goal: String?
|
|
35
|
-
|
|
36
|
-
def goal=: (String) -> String
|
|
37
|
-
|
|
38
32
|
attr_reader name: String?
|
|
39
33
|
|
|
40
34
|
def name=: (String) -> String
|
|
41
35
|
|
|
42
|
-
attr_reader options: ::Hash[Symbol, top]?
|
|
43
|
-
|
|
44
|
-
def options=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
45
|
-
|
|
46
36
|
attr_reader rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams]?
|
|
47
37
|
|
|
48
38
|
def rewards=: (
|
|
@@ -54,9 +44,7 @@ module GrowsurfRuby
|
|
|
54
44
|
?company_logo_image_url: String,
|
|
55
45
|
?company_name: String,
|
|
56
46
|
?currency_iso: String,
|
|
57
|
-
?goal: String,
|
|
58
47
|
?name: String,
|
|
59
|
-
?options: ::Hash[Symbol, top],
|
|
60
48
|
?rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams],
|
|
61
49
|
?request_options: GrowsurfRuby::request_opts
|
|
62
50
|
) -> void
|
|
@@ -66,9 +54,7 @@ module GrowsurfRuby
|
|
|
66
54
|
company_logo_image_url: String,
|
|
67
55
|
company_name: String,
|
|
68
56
|
currency_iso: String,
|
|
69
|
-
goal: String,
|
|
70
57
|
name: String,
|
|
71
|
-
options: ::Hash[Symbol, top],
|
|
72
58
|
rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams],
|
|
73
59
|
request_options: GrowsurfRuby::RequestOptions
|
|
74
60
|
}
|
|
@@ -5,14 +5,7 @@ module GrowsurfRuby
|
|
|
5
5
|
id: String,
|
|
6
6
|
company_logo_image_url: String,
|
|
7
7
|
company_name: String,
|
|
8
|
-
currency_iso: String,
|
|
9
|
-
design: ::Hash[Symbol, top],
|
|
10
|
-
emails: ::Hash[Symbol, top],
|
|
11
|
-
goal: String,
|
|
12
|
-
installation: ::Hash[Symbol, top],
|
|
13
8
|
name: String,
|
|
14
|
-
notifications: ::Hash[Symbol, top],
|
|
15
|
-
options: ::Hash[Symbol, top],
|
|
16
9
|
status: GrowsurfRuby::Models::CampaignUpdateParams::status
|
|
17
10
|
}
|
|
18
11
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
@@ -31,38 +24,10 @@ module GrowsurfRuby
|
|
|
31
24
|
|
|
32
25
|
def company_name=: (String) -> String
|
|
33
26
|
|
|
34
|
-
attr_reader currency_iso: String?
|
|
35
|
-
|
|
36
|
-
def currency_iso=: (String) -> String
|
|
37
|
-
|
|
38
|
-
attr_reader design: ::Hash[Symbol, top]?
|
|
39
|
-
|
|
40
|
-
def design=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
41
|
-
|
|
42
|
-
attr_reader emails: ::Hash[Symbol, top]?
|
|
43
|
-
|
|
44
|
-
def emails=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
45
|
-
|
|
46
|
-
attr_reader goal: String?
|
|
47
|
-
|
|
48
|
-
def goal=: (String) -> String
|
|
49
|
-
|
|
50
|
-
attr_reader installation: ::Hash[Symbol, top]?
|
|
51
|
-
|
|
52
|
-
def installation=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
|
-
|
|
54
27
|
attr_reader name: String?
|
|
55
28
|
|
|
56
29
|
def name=: (String) -> String
|
|
57
30
|
|
|
58
|
-
attr_reader notifications: ::Hash[Symbol, top]?
|
|
59
|
-
|
|
60
|
-
def notifications=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
61
|
-
|
|
62
|
-
attr_reader options: ::Hash[Symbol, top]?
|
|
63
|
-
|
|
64
|
-
def options=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
65
|
-
|
|
66
31
|
attr_reader status: GrowsurfRuby::Models::CampaignUpdateParams::status?
|
|
67
32
|
|
|
68
33
|
def status=: (
|
|
@@ -73,14 +38,7 @@ module GrowsurfRuby
|
|
|
73
38
|
id: String,
|
|
74
39
|
?company_logo_image_url: String,
|
|
75
40
|
?company_name: String,
|
|
76
|
-
?currency_iso: String,
|
|
77
|
-
?design: ::Hash[Symbol, top],
|
|
78
|
-
?emails: ::Hash[Symbol, top],
|
|
79
|
-
?goal: String,
|
|
80
|
-
?installation: ::Hash[Symbol, top],
|
|
81
41
|
?name: String,
|
|
82
|
-
?notifications: ::Hash[Symbol, top],
|
|
83
|
-
?options: ::Hash[Symbol, top],
|
|
84
42
|
?status: GrowsurfRuby::Models::CampaignUpdateParams::status,
|
|
85
43
|
?request_options: GrowsurfRuby::request_opts
|
|
86
44
|
) -> void
|
|
@@ -89,14 +47,7 @@ module GrowsurfRuby
|
|
|
89
47
|
id: String,
|
|
90
48
|
company_logo_image_url: String,
|
|
91
49
|
company_name: String,
|
|
92
|
-
currency_iso: String,
|
|
93
|
-
design: ::Hash[Symbol, top],
|
|
94
|
-
emails: ::Hash[Symbol, top],
|
|
95
|
-
goal: String,
|
|
96
|
-
installation: ::Hash[Symbol, top],
|
|
97
50
|
name: String,
|
|
98
|
-
notifications: ::Hash[Symbol, top],
|
|
99
|
-
options: ::Hash[Symbol, top],
|
|
100
51
|
status: GrowsurfRuby::Models::CampaignUpdateParams::status,
|
|
101
52
|
request_options: GrowsurfRuby::RequestOptions
|
|
102
53
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type reward_tax_valuation =
|
|
4
|
+
{ fair_market_value_usd: Float?, is_tax_reportable: bool? }
|
|
5
|
+
|
|
6
|
+
class RewardTaxValuation < GrowsurfRuby::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor fair_market_value_usd: Float?
|
|
8
|
+
|
|
9
|
+
attr_accessor is_tax_reportable: bool?
|
|
10
|
+
|
|
11
|
+
def initialize: (
|
|
12
|
+
?fair_market_value_usd: Float?,
|
|
13
|
+
?is_tax_reportable: bool?
|
|
14
|
+
) -> void
|
|
15
|
+
|
|
16
|
+
def to_hash: -> { fair_market_value_usd: Float?, is_tax_reportable: bool? }
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Campaign
|
|
4
|
+
class Design
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: GrowsurfRuby::request_opts
|
|
8
|
+
) -> ::Hash[Symbol, top]
|
|
9
|
+
|
|
10
|
+
def update: (
|
|
11
|
+
String id,
|
|
12
|
+
::Hash[Symbol, top] body,
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> ::Hash[Symbol, top]
|
|
15
|
+
|
|
16
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Campaign
|
|
4
|
+
class Emails
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: GrowsurfRuby::request_opts
|
|
8
|
+
) -> ::Hash[Symbol, top]
|
|
9
|
+
|
|
10
|
+
def update: (
|
|
11
|
+
String id,
|
|
12
|
+
::Hash[Symbol, top] body,
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> ::Hash[Symbol, top]
|
|
15
|
+
|
|
16
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Campaign
|
|
4
|
+
class Installation
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: GrowsurfRuby::request_opts
|
|
8
|
+
) -> ::Hash[Symbol, top]
|
|
9
|
+
|
|
10
|
+
def update: (
|
|
11
|
+
String id,
|
|
12
|
+
::Hash[Symbol, top] body,
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> ::Hash[Symbol, top]
|
|
15
|
+
|
|
16
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Campaign
|
|
4
|
+
class Options
|
|
5
|
+
def retrieve: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: GrowsurfRuby::request_opts
|
|
8
|
+
) -> ::Hash[Symbol, top]
|
|
9
|
+
|
|
10
|
+
def update: (
|
|
11
|
+
String id,
|
|
12
|
+
::Hash[Symbol, top] body,
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> ::Hash[Symbol, top]
|
|
15
|
+
|
|
16
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -28,12 +28,14 @@ module GrowsurfRuby
|
|
|
28
28
|
?referral_coupon_code: String,
|
|
29
29
|
?referral_description: String,
|
|
30
30
|
?referred_reward_upfront: bool,
|
|
31
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
31
32
|
?title: String,
|
|
33
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
32
34
|
?request_options: GrowsurfRuby::request_opts
|
|
33
35
|
) -> GrowsurfRuby::Models::Campaign::Reward
|
|
34
36
|
|
|
35
37
|
def update: (
|
|
36
|
-
String
|
|
38
|
+
String campaign_reward_id,
|
|
37
39
|
id: String,
|
|
38
40
|
?commission_structure: GrowsurfRuby::CommissionStructure,
|
|
39
41
|
?conversions_required: Integer,
|
|
@@ -53,12 +55,14 @@ module GrowsurfRuby
|
|
|
53
55
|
?referral_coupon_code: String,
|
|
54
56
|
?referral_description: String,
|
|
55
57
|
?referred_reward_upfront: bool,
|
|
58
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
56
59
|
?title: String,
|
|
60
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
57
61
|
?request_options: GrowsurfRuby::request_opts
|
|
58
62
|
) -> GrowsurfRuby::Models::Campaign::Reward
|
|
59
63
|
|
|
60
64
|
def delete: (
|
|
61
|
-
String
|
|
65
|
+
String campaign_reward_id,
|
|
62
66
|
id: String,
|
|
63
67
|
?request_options: GrowsurfRuby::request_opts
|
|
64
68
|
) -> GrowsurfRuby::Models::Campaign::DeleteRewardResponse
|
|
@@ -9,6 +9,14 @@ module GrowsurfRuby
|
|
|
9
9
|
|
|
10
10
|
attr_reader rewards: GrowsurfRuby::Resources::Campaign::Rewards
|
|
11
11
|
|
|
12
|
+
attr_reader design: GrowsurfRuby::Resources::Campaign::Design
|
|
13
|
+
|
|
14
|
+
attr_reader emails: GrowsurfRuby::Resources::Campaign::Emails
|
|
15
|
+
|
|
16
|
+
attr_reader options: GrowsurfRuby::Resources::Campaign::Options
|
|
17
|
+
|
|
18
|
+
attr_reader installation: GrowsurfRuby::Resources::Campaign::Installation
|
|
19
|
+
|
|
12
20
|
def retrieve: (
|
|
13
21
|
String id,
|
|
14
22
|
?request_options: GrowsurfRuby::request_opts
|
|
@@ -23,9 +31,7 @@ module GrowsurfRuby
|
|
|
23
31
|
?company_logo_image_url: String,
|
|
24
32
|
?company_name: String,
|
|
25
33
|
?currency_iso: String,
|
|
26
|
-
?goal: String,
|
|
27
34
|
?name: String,
|
|
28
|
-
?options: ::Hash[Symbol, top],
|
|
29
35
|
?rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams],
|
|
30
36
|
?request_options: GrowsurfRuby::request_opts
|
|
31
37
|
) -> GrowsurfRuby::CampaignAPI
|
|
@@ -34,14 +40,7 @@ module GrowsurfRuby
|
|
|
34
40
|
String id,
|
|
35
41
|
?company_logo_image_url: String,
|
|
36
42
|
?company_name: String,
|
|
37
|
-
?currency_iso: String,
|
|
38
|
-
?design: ::Hash[Symbol, top],
|
|
39
|
-
?emails: ::Hash[Symbol, top],
|
|
40
|
-
?goal: String,
|
|
41
|
-
?installation: ::Hash[Symbol, top],
|
|
42
43
|
?name: String,
|
|
43
|
-
?notifications: ::Hash[Symbol, top],
|
|
44
|
-
?options: ::Hash[Symbol, top],
|
|
45
44
|
?status: GrowsurfRuby::Models::CampaignUpdateParams::status,
|
|
46
45
|
?request_options: GrowsurfRuby::request_opts
|
|
47
46
|
) -> GrowsurfRuby::CampaignAPI
|
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: 1.0.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-07-
|
|
11
|
+
date: 2026-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -130,9 +130,14 @@ files:
|
|
|
130
130
|
- lib/growsurf_ruby/models/participant_list.rb
|
|
131
131
|
- lib/growsurf_ruby/models/participant_payout_list.rb
|
|
132
132
|
- lib/growsurf_ruby/models/referral_list.rb
|
|
133
|
+
- lib/growsurf_ruby/models/reward_tax_valuation.rb
|
|
133
134
|
- lib/growsurf_ruby/request_options.rb
|
|
134
135
|
- lib/growsurf_ruby/resources/campaign.rb
|
|
135
136
|
- lib/growsurf_ruby/resources/campaign/commission.rb
|
|
137
|
+
- lib/growsurf_ruby/resources/campaign/design.rb
|
|
138
|
+
- lib/growsurf_ruby/resources/campaign/emails.rb
|
|
139
|
+
- lib/growsurf_ruby/resources/campaign/installation.rb
|
|
140
|
+
- lib/growsurf_ruby/resources/campaign/options.rb
|
|
136
141
|
- lib/growsurf_ruby/resources/campaign/participant.rb
|
|
137
142
|
- lib/growsurf_ruby/resources/campaign/reward.rb
|
|
138
143
|
- lib/growsurf_ruby/resources/campaign/rewards.rb
|
|
@@ -218,9 +223,14 @@ files:
|
|
|
218
223
|
- rbi/growsurf_ruby/models/participant_list.rbi
|
|
219
224
|
- rbi/growsurf_ruby/models/participant_payout_list.rbi
|
|
220
225
|
- rbi/growsurf_ruby/models/referral_list.rbi
|
|
226
|
+
- rbi/growsurf_ruby/models/reward_tax_valuation.rbi
|
|
221
227
|
- rbi/growsurf_ruby/request_options.rbi
|
|
222
228
|
- rbi/growsurf_ruby/resources/campaign.rbi
|
|
223
229
|
- rbi/growsurf_ruby/resources/campaign/commission.rbi
|
|
230
|
+
- rbi/growsurf_ruby/resources/campaign/design.rbi
|
|
231
|
+
- rbi/growsurf_ruby/resources/campaign/emails.rbi
|
|
232
|
+
- rbi/growsurf_ruby/resources/campaign/installation.rbi
|
|
233
|
+
- rbi/growsurf_ruby/resources/campaign/options.rbi
|
|
224
234
|
- rbi/growsurf_ruby/resources/campaign/participant.rbi
|
|
225
235
|
- rbi/growsurf_ruby/resources/campaign/reward.rbi
|
|
226
236
|
- rbi/growsurf_ruby/resources/campaign/rewards.rbi
|
|
@@ -305,9 +315,14 @@ files:
|
|
|
305
315
|
- sig/growsurf_ruby/models/participant_list.rbs
|
|
306
316
|
- sig/growsurf_ruby/models/participant_payout_list.rbs
|
|
307
317
|
- sig/growsurf_ruby/models/referral_list.rbs
|
|
318
|
+
- sig/growsurf_ruby/models/reward_tax_valuation.rbs
|
|
308
319
|
- sig/growsurf_ruby/request_options.rbs
|
|
309
320
|
- sig/growsurf_ruby/resources/campaign.rbs
|
|
310
321
|
- sig/growsurf_ruby/resources/campaign/commission.rbs
|
|
322
|
+
- sig/growsurf_ruby/resources/campaign/design.rbs
|
|
323
|
+
- sig/growsurf_ruby/resources/campaign/emails.rbs
|
|
324
|
+
- sig/growsurf_ruby/resources/campaign/installation.rbs
|
|
325
|
+
- sig/growsurf_ruby/resources/campaign/options.rbs
|
|
311
326
|
- sig/growsurf_ruby/resources/campaign/participant.rbs
|
|
312
327
|
- sig/growsurf_ruby/resources/campaign/reward.rbs
|
|
313
328
|
- sig/growsurf_ruby/resources/campaign/rewards.rbs
|