growsurf-ruby 0.6.1 → 0.8.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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb +21 -0
  5. data/lib/growsurf_ruby/models/campaign/delete_reward_response.rb +26 -0
  6. data/lib/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_params.rb +28 -0
  7. data/lib/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_response.rb +24 -0
  8. data/lib/growsurf_ruby/models/campaign/participant_refund_transaction_params.rb +130 -0
  9. data/lib/growsurf_ruby/models/campaign/participant_refund_transaction_response.rb +81 -0
  10. data/lib/growsurf_ruby/models/campaign/participant_trigger_referral_params.rb +19 -1
  11. data/lib/growsurf_ruby/models/campaign/reward.rb +166 -0
  12. data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +189 -0
  13. data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +182 -0
  14. data/lib/growsurf_ruby/models/campaign_create_params.rb +82 -0
  15. data/lib/growsurf_ruby/models/campaign_update_params.rb +112 -0
  16. data/lib/growsurf_ruby/models.rb +4 -0
  17. data/lib/growsurf_ruby/resources/campaign/participant.rb +98 -3
  18. data/lib/growsurf_ruby/resources/campaign/rewards.rb +191 -0
  19. data/lib/growsurf_ruby/resources/campaign.rb +105 -0
  20. data/lib/growsurf_ruby/version.rb +1 -1
  21. data/lib/growsurf_ruby.rb +12 -0
  22. data/rbi/growsurf_ruby/models/campaign/campaign_reward_list_response.rbi +41 -0
  23. data/rbi/growsurf_ruby/models/campaign/delete_reward_response.rbi +38 -0
  24. data/rbi/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_params.rbi +48 -0
  25. data/rbi/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_response.rbi +36 -0
  26. data/rbi/growsurf_ruby/models/campaign/participant_refund_transaction_params.rbi +234 -0
  27. data/rbi/growsurf_ruby/models/campaign/participant_refund_transaction_response.rbi +131 -0
  28. data/rbi/growsurf_ruby/models/campaign/participant_trigger_referral_params.rbi +24 -1
  29. data/rbi/growsurf_ruby/models/campaign/reward.rbi +252 -0
  30. data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +330 -0
  31. data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +281 -0
  32. data/rbi/growsurf_ruby/models/campaign_create_params.rbi +143 -0
  33. data/rbi/growsurf_ruby/models/campaign_update_params.rbi +193 -0
  34. data/rbi/growsurf_ruby/models.rbi +4 -0
  35. data/rbi/growsurf_ruby/resources/campaign/participant.rbi +94 -0
  36. data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +200 -0
  37. data/rbi/growsurf_ruby/resources/campaign.rbi +99 -0
  38. data/sig/growsurf_ruby/models/campaign/campaign_reward_list_response.rbs +18 -0
  39. data/sig/growsurf_ruby/models/campaign/delete_reward_response.rbs +17 -0
  40. data/sig/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_params.rbs +30 -0
  41. data/sig/growsurf_ruby/models/campaign/participant_cancel_delayed_referral_response.rbs +20 -0
  42. data/sig/growsurf_ruby/models/campaign/participant_refund_transaction_params.rbs +151 -0
  43. data/sig/growsurf_ruby/models/campaign/participant_refund_transaction_response.rbs +75 -0
  44. data/sig/growsurf_ruby/models/campaign/participant_trigger_referral_params.rbs +7 -1
  45. data/sig/growsurf_ruby/models/campaign/reward.rbs +131 -0
  46. data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +192 -0
  47. data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +182 -0
  48. data/sig/growsurf_ruby/models/campaign_create_params.rbs +88 -0
  49. data/sig/growsurf_ruby/models/campaign_update_params.rbs +119 -0
  50. data/sig/growsurf_ruby/models.rbs +4 -0
  51. data/sig/growsurf_ruby/resources/campaign/participant.rbs +28 -0
  52. data/sig/growsurf_ruby/resources/campaign/rewards.rbs +70 -0
  53. data/sig/growsurf_ruby/resources/campaign.rbs +35 -0
  54. metadata +38 -2
@@ -0,0 +1,189 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ module Campaign
6
+ # @see GrowsurfRuby::Resources::Campaign::Rewards#create
7
+ class RewardCreateParams < GrowsurfRuby::Internal::Type::BaseModel
8
+ extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
9
+ include GrowsurfRuby::Internal::Type::RequestParameters
10
+
11
+ # @!attribute type
12
+ #
13
+ # @return [Symbol, GrowsurfRuby::Models::Campaign::RewardCreateParams::Type]
14
+ required :type, enum: -> { GrowsurfRuby::Campaign::RewardCreateParams::Type }
15
+
16
+ # @!attribute commission_structure
17
+ #
18
+ # @return [GrowsurfRuby::Models::CommissionStructure, nil]
19
+ optional :commission_structure,
20
+ -> { GrowsurfRuby::CommissionStructure },
21
+ api_name: :commissionStructure
22
+
23
+ # @!attribute conversions_required
24
+ #
25
+ # @return [Integer, nil]
26
+ optional :conversions_required, Integer, api_name: :conversionsRequired
27
+
28
+ # @!attribute coupon_code
29
+ #
30
+ # @return [String, nil]
31
+ optional :coupon_code, String, api_name: :couponCode
32
+
33
+ # @!attribute description
34
+ #
35
+ # @return [String, nil]
36
+ optional :description, String
37
+
38
+ # @!attribute image_url
39
+ #
40
+ # @return [String, nil]
41
+ optional :image_url, String, api_name: :imageUrl
42
+
43
+ # @!attribute is_active
44
+ #
45
+ # @return [Boolean, nil]
46
+ optional :is_active, GrowsurfRuby::Internal::Type::Boolean, api_name: :isActive
47
+
48
+ # @!attribute is_unlimited
49
+ #
50
+ # @return [Boolean, nil]
51
+ optional :is_unlimited, GrowsurfRuby::Internal::Type::Boolean, api_name: :isUnlimited
52
+
53
+ # @!attribute is_visible
54
+ #
55
+ # @return [Boolean, nil]
56
+ optional :is_visible, GrowsurfRuby::Internal::Type::Boolean, api_name: :isVisible
57
+
58
+ # @!attribute limit
59
+ #
60
+ # @return [Integer, nil]
61
+ optional :limit, Integer
62
+
63
+ # @!attribute limit_duration
64
+ #
65
+ # @return [Symbol, GrowsurfRuby::Models::Campaign::RewardCreateParams::LimitDuration, nil]
66
+ optional :limit_duration,
67
+ enum: -> { GrowsurfRuby::Campaign::RewardCreateParams::LimitDuration },
68
+ api_name: :limitDuration
69
+
70
+ # @!attribute metadata
71
+ # Custom key/value metadata (single-level; values are stored as strings).
72
+ #
73
+ # @return [Hash{Symbol=>Object}, nil]
74
+ optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
75
+
76
+ # @!attribute next_milestone_prefix
77
+ #
78
+ # @return [String, nil]
79
+ optional :next_milestone_prefix, String, api_name: :nextMilestonePrefix
80
+
81
+ # @!attribute next_milestone_suffix
82
+ #
83
+ # @return [String, nil]
84
+ optional :next_milestone_suffix, String, api_name: :nextMilestoneSuffix
85
+
86
+ # @!attribute number_of_winners
87
+ #
88
+ # @return [Integer, nil]
89
+ optional :number_of_winners, Integer, api_name: :numberOfWinners
90
+
91
+ # @!attribute order
92
+ #
93
+ # @return [Integer, nil]
94
+ optional :order, Integer
95
+
96
+ # @!attribute referral_coupon_code
97
+ #
98
+ # @return [String, nil]
99
+ optional :referral_coupon_code, String, api_name: :referralCouponCode
100
+
101
+ # @!attribute referral_description
102
+ #
103
+ # @return [String, nil]
104
+ optional :referral_description, String, api_name: :referralDescription
105
+
106
+ # @!attribute referred_reward_upfront
107
+ #
108
+ # @return [Boolean, nil]
109
+ optional :referred_reward_upfront,
110
+ GrowsurfRuby::Internal::Type::Boolean,
111
+ api_name: :referredRewardUpfront
112
+
113
+ # @!attribute title
114
+ #
115
+ # @return [String, nil]
116
+ optional :title, String
117
+
118
+ # @!method initialize(type:, commission_structure: nil, conversions_required: nil, coupon_code: nil, description: nil, image_url: nil, is_active: nil, is_unlimited: nil, is_visible: nil, limit: nil, limit_duration: nil, metadata: nil, next_milestone_prefix: nil, next_milestone_suffix: nil, number_of_winners: nil, order: nil, referral_coupon_code: nil, referral_description: nil, referred_reward_upfront: nil, title: nil, request_options: {})
119
+ # @param type [Symbol, GrowsurfRuby::Models::Campaign::RewardCreateParams::Type]
120
+ #
121
+ # @param commission_structure [GrowsurfRuby::Models::CommissionStructure]
122
+ #
123
+ # @param conversions_required [Integer]
124
+ #
125
+ # @param coupon_code [String]
126
+ #
127
+ # @param description [String]
128
+ #
129
+ # @param image_url [String]
130
+ #
131
+ # @param is_active [Boolean]
132
+ #
133
+ # @param is_unlimited [Boolean]
134
+ #
135
+ # @param is_visible [Boolean]
136
+ #
137
+ # @param limit [Integer]
138
+ #
139
+ # @param limit_duration [Symbol, GrowsurfRuby::Models::Campaign::RewardCreateParams::LimitDuration]
140
+ #
141
+ # @param metadata [Hash{Symbol=>Object}] Custom key/value metadata (single-level; values are stored as strings).
142
+ #
143
+ # @param next_milestone_prefix [String]
144
+ #
145
+ # @param next_milestone_suffix [String]
146
+ #
147
+ # @param number_of_winners [Integer]
148
+ #
149
+ # @param order [Integer]
150
+ #
151
+ # @param referral_coupon_code [String]
152
+ #
153
+ # @param referral_description [String]
154
+ #
155
+ # @param referred_reward_upfront [Boolean]
156
+ #
157
+ # @param title [String]
158
+ #
159
+ # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
160
+
161
+ # @see GrowsurfRuby::Models::Campaign::RewardCreateParams#type
162
+ module Type
163
+ extend GrowsurfRuby::Internal::Type::Enum
164
+
165
+ SINGLE_SIDED = :SINGLE_SIDED
166
+ DOUBLE_SIDED = :DOUBLE_SIDED
167
+ MILESTONE = :MILESTONE
168
+ LEADERBOARD = :LEADERBOARD
169
+ AFFILIATE = :AFFILIATE
170
+
171
+ # @!method self.values
172
+ # @return [Array<Symbol>]
173
+ end
174
+
175
+ # @see GrowsurfRuby::Models::Campaign::RewardCreateParams#limit_duration
176
+ module LimitDuration
177
+ extend GrowsurfRuby::Internal::Type::Enum
178
+
179
+ IN_TOTAL = :IN_TOTAL
180
+ PER_MONTH = :PER_MONTH
181
+ PER_YEAR = :PER_YEAR
182
+
183
+ # @!method self.values
184
+ # @return [Array<Symbol>]
185
+ end
186
+ end
187
+ end
188
+ end
189
+ end
@@ -0,0 +1,182 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ module Campaign
6
+ # @see GrowsurfRuby::Resources::Campaign::Rewards#update
7
+ class RewardUpdateParams < 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 reward_id
17
+ #
18
+ # @return [String]
19
+ required :reward_id, String
20
+
21
+ # @!attribute commission_structure
22
+ #
23
+ # @return [GrowsurfRuby::Models::CommissionStructure, nil]
24
+ optional :commission_structure,
25
+ -> { GrowsurfRuby::CommissionStructure },
26
+ api_name: :commissionStructure
27
+
28
+ # @!attribute conversions_required
29
+ #
30
+ # @return [Integer, nil]
31
+ optional :conversions_required, Integer, api_name: :conversionsRequired
32
+
33
+ # @!attribute coupon_code
34
+ #
35
+ # @return [String, nil]
36
+ optional :coupon_code, String, api_name: :couponCode
37
+
38
+ # @!attribute description
39
+ #
40
+ # @return [String, nil]
41
+ optional :description, String
42
+
43
+ # @!attribute image_url
44
+ #
45
+ # @return [String, nil]
46
+ optional :image_url, String, api_name: :imageUrl
47
+
48
+ # @!attribute is_active
49
+ #
50
+ # @return [Boolean, nil]
51
+ optional :is_active, GrowsurfRuby::Internal::Type::Boolean, api_name: :isActive
52
+
53
+ # @!attribute is_unlimited
54
+ #
55
+ # @return [Boolean, nil]
56
+ optional :is_unlimited, GrowsurfRuby::Internal::Type::Boolean, api_name: :isUnlimited
57
+
58
+ # @!attribute is_visible
59
+ #
60
+ # @return [Boolean, nil]
61
+ optional :is_visible, GrowsurfRuby::Internal::Type::Boolean, api_name: :isVisible
62
+
63
+ # @!attribute limit
64
+ #
65
+ # @return [Integer, nil]
66
+ optional :limit, Integer
67
+
68
+ # @!attribute limit_duration
69
+ #
70
+ # @return [Symbol, GrowsurfRuby::Models::Campaign::RewardUpdateParams::LimitDuration, nil]
71
+ optional :limit_duration,
72
+ enum: -> { GrowsurfRuby::Campaign::RewardUpdateParams::LimitDuration },
73
+ api_name: :limitDuration
74
+
75
+ # @!attribute metadata
76
+ # Custom key/value metadata (single-level; values are stored as strings).
77
+ #
78
+ # @return [Hash{Symbol=>Object}, nil]
79
+ optional :metadata, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
80
+
81
+ # @!attribute next_milestone_prefix
82
+ #
83
+ # @return [String, nil]
84
+ optional :next_milestone_prefix, String, api_name: :nextMilestonePrefix
85
+
86
+ # @!attribute next_milestone_suffix
87
+ #
88
+ # @return [String, nil]
89
+ optional :next_milestone_suffix, String, api_name: :nextMilestoneSuffix
90
+
91
+ # @!attribute number_of_winners
92
+ #
93
+ # @return [Integer, nil]
94
+ optional :number_of_winners, Integer, api_name: :numberOfWinners
95
+
96
+ # @!attribute order
97
+ #
98
+ # @return [Integer, nil]
99
+ optional :order, Integer
100
+
101
+ # @!attribute referral_coupon_code
102
+ #
103
+ # @return [String, nil]
104
+ optional :referral_coupon_code, String, api_name: :referralCouponCode
105
+
106
+ # @!attribute referral_description
107
+ #
108
+ # @return [String, nil]
109
+ optional :referral_description, String, api_name: :referralDescription
110
+
111
+ # @!attribute referred_reward_upfront
112
+ #
113
+ # @return [Boolean, nil]
114
+ optional :referred_reward_upfront,
115
+ GrowsurfRuby::Internal::Type::Boolean,
116
+ api_name: :referredRewardUpfront
117
+
118
+ # @!attribute title
119
+ #
120
+ # @return [String, nil]
121
+ optional :title, String
122
+
123
+ # @!method initialize(id:, reward_id:, commission_structure: nil, conversions_required: nil, coupon_code: nil, description: nil, image_url: nil, is_active: nil, is_unlimited: nil, is_visible: nil, limit: nil, limit_duration: nil, metadata: nil, next_milestone_prefix: nil, next_milestone_suffix: nil, number_of_winners: nil, order: nil, referral_coupon_code: nil, referral_description: nil, referred_reward_upfront: nil, title: nil, request_options: {})
124
+ # @param id [String]
125
+ #
126
+ # @param reward_id [String]
127
+ #
128
+ # @param commission_structure [GrowsurfRuby::Models::CommissionStructure]
129
+ #
130
+ # @param conversions_required [Integer]
131
+ #
132
+ # @param coupon_code [String]
133
+ #
134
+ # @param description [String]
135
+ #
136
+ # @param image_url [String]
137
+ #
138
+ # @param is_active [Boolean]
139
+ #
140
+ # @param is_unlimited [Boolean]
141
+ #
142
+ # @param is_visible [Boolean]
143
+ #
144
+ # @param limit [Integer]
145
+ #
146
+ # @param limit_duration [Symbol, GrowsurfRuby::Models::Campaign::RewardUpdateParams::LimitDuration]
147
+ #
148
+ # @param metadata [Hash{Symbol=>Object}] Custom key/value metadata (single-level; values are stored as strings).
149
+ #
150
+ # @param next_milestone_prefix [String]
151
+ #
152
+ # @param next_milestone_suffix [String]
153
+ #
154
+ # @param number_of_winners [Integer]
155
+ #
156
+ # @param order [Integer]
157
+ #
158
+ # @param referral_coupon_code [String]
159
+ #
160
+ # @param referral_description [String]
161
+ #
162
+ # @param referred_reward_upfront [Boolean]
163
+ #
164
+ # @param title [String]
165
+ #
166
+ # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
167
+
168
+ # @see GrowsurfRuby::Models::Campaign::RewardUpdateParams#limit_duration
169
+ module LimitDuration
170
+ extend GrowsurfRuby::Internal::Type::Enum
171
+
172
+ IN_TOTAL = :IN_TOTAL
173
+ PER_MONTH = :PER_MONTH
174
+ PER_YEAR = :PER_YEAR
175
+
176
+ # @!method self.values
177
+ # @return [Array<Symbol>]
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end
@@ -0,0 +1,82 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ # @see GrowsurfRuby::Resources::Campaign#create
6
+ class CampaignCreateParams < GrowsurfRuby::Internal::Type::BaseModel
7
+ extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
8
+ include GrowsurfRuby::Internal::Type::RequestParameters
9
+
10
+ # @!attribute type
11
+ #
12
+ # @return [Symbol, GrowsurfRuby::Models::CampaignCreateParams::Type]
13
+ required :type, enum: -> { GrowsurfRuby::CampaignCreateParams::Type }
14
+
15
+ # @!attribute company_logo_image_url
16
+ #
17
+ # @return [String, nil]
18
+ optional :company_logo_image_url, String, api_name: :companyLogoImageUrl
19
+
20
+ # @!attribute company_name
21
+ #
22
+ # @return [String, nil]
23
+ optional :company_name, String, api_name: :companyName
24
+
25
+ # @!attribute currency_iso
26
+ #
27
+ # @return [String, nil]
28
+ optional :currency_iso, String, api_name: :currencyISO
29
+
30
+ # @!attribute goal
31
+ #
32
+ # @return [String, nil]
33
+ optional :goal, String
34
+
35
+ # @!attribute name
36
+ #
37
+ # @return [String, nil]
38
+ optional :name, String
39
+
40
+ # @!attribute options
41
+ #
42
+ # @return [Hash{Symbol=>Object}, nil]
43
+ optional :options, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
44
+
45
+ # @!attribute rewards
46
+ #
47
+ # @return [Array<GrowsurfRuby::Models::Campaign::RewardCreateParams>, nil]
48
+ optional :rewards,
49
+ -> { GrowsurfRuby::Internal::Type::ArrayOf[GrowsurfRuby::Campaign::RewardCreateParams] }
50
+
51
+ # @!method initialize(type:, company_logo_image_url: nil, company_name: nil, currency_iso: nil, goal: nil, name: nil, options: nil, rewards: nil, request_options: {})
52
+ # @param type [Symbol, GrowsurfRuby::Models::CampaignCreateParams::Type]
53
+ #
54
+ # @param company_logo_image_url [String]
55
+ #
56
+ # @param company_name [String]
57
+ #
58
+ # @param currency_iso [String]
59
+ #
60
+ # @param goal [String]
61
+ #
62
+ # @param name [String]
63
+ #
64
+ # @param options [Hash{Symbol=>Object}]
65
+ #
66
+ # @param rewards [Array<GrowsurfRuby::Models::Campaign::RewardCreateParams>]
67
+ #
68
+ # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
69
+
70
+ # @see GrowsurfRuby::Models::CampaignCreateParams#type
71
+ module Type
72
+ extend GrowsurfRuby::Internal::Type::Enum
73
+
74
+ REFERRAL = :REFERRAL
75
+ AFFILIATE = :AFFILIATE
76
+
77
+ # @!method self.values
78
+ # @return [Array<Symbol>]
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GrowsurfRuby
4
+ module Models
5
+ # @see GrowsurfRuby::Resources::Campaign#update
6
+ class CampaignUpdateParams < GrowsurfRuby::Internal::Type::BaseModel
7
+ extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
8
+ include GrowsurfRuby::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!attribute company_logo_image_url
16
+ #
17
+ # @return [String, nil]
18
+ optional :company_logo_image_url, String, api_name: :companyLogoImageUrl
19
+
20
+ # @!attribute company_name
21
+ #
22
+ # @return [String, nil]
23
+ optional :company_name, String, api_name: :companyName
24
+
25
+ # @!attribute currency_iso
26
+ #
27
+ # @return [String, nil]
28
+ optional :currency_iso, String, api_name: :currencyISO
29
+
30
+ # @!attribute design
31
+ #
32
+ # @return [Hash{Symbol=>Object}, nil]
33
+ optional :design, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
34
+
35
+ # @!attribute emails
36
+ #
37
+ # @return [Hash{Symbol=>Object}, nil]
38
+ optional :emails, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
39
+
40
+ # @!attribute goal
41
+ #
42
+ # @return [String, nil]
43
+ optional :goal, String
44
+
45
+ # @!attribute installation
46
+ #
47
+ # @return [Hash{Symbol=>Object}, nil]
48
+ optional :installation, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
49
+
50
+ # @!attribute name
51
+ #
52
+ # @return [String, nil]
53
+ optional :name, String
54
+
55
+ # @!attribute notifications
56
+ #
57
+ # @return [Hash{Symbol=>Object}, nil]
58
+ optional :notifications, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
59
+
60
+ # @!attribute options
61
+ #
62
+ # @return [Hash{Symbol=>Object}, nil]
63
+ optional :options, GrowsurfRuby::Internal::Type::HashOf[GrowsurfRuby::Internal::Type::Unknown]
64
+
65
+ # @!attribute status
66
+ #
67
+ # @return [Symbol, GrowsurfRuby::Models::CampaignUpdateParams::Status, nil]
68
+ optional :status, enum: -> { GrowsurfRuby::CampaignUpdateParams::Status }
69
+
70
+ # @!method initialize(id:, company_logo_image_url: nil, company_name: nil, currency_iso: nil, design: nil, emails: nil, goal: nil, installation: nil, name: nil, notifications: nil, options: nil, status: nil, request_options: {})
71
+ # @param id [String]
72
+ #
73
+ # @param company_logo_image_url [String]
74
+ #
75
+ # @param company_name [String]
76
+ #
77
+ # @param currency_iso [String]
78
+ #
79
+ # @param design [Hash{Symbol=>Object}]
80
+ #
81
+ # @param emails [Hash{Symbol=>Object}]
82
+ #
83
+ # @param goal [String]
84
+ #
85
+ # @param installation [Hash{Symbol=>Object}]
86
+ #
87
+ # @param name [String]
88
+ #
89
+ # @param notifications [Hash{Symbol=>Object}]
90
+ #
91
+ # @param options [Hash{Symbol=>Object}]
92
+ #
93
+ # @param status [Symbol, GrowsurfRuby::Models::CampaignUpdateParams::Status]
94
+ #
95
+ # @param request_options [GrowsurfRuby::RequestOptions, Hash{Symbol=>Object}]
96
+
97
+ # @see GrowsurfRuby::Models::CampaignUpdateParams#status
98
+ module Status
99
+ extend GrowsurfRuby::Internal::Type::Enum
100
+
101
+ DRAFT = :DRAFT
102
+ PENDING = :PENDING
103
+ IN_PROGRESS = :IN_PROGRESS
104
+ COMPLETE = :COMPLETE
105
+ CANCELLED = :CANCELLED
106
+
107
+ # @!method self.values
108
+ # @return [Array<Symbol>]
109
+ end
110
+ end
111
+ end
112
+ end
@@ -46,6 +46,8 @@ module GrowsurfRuby
46
46
  CampaignCreateMobileParticipantTokenParams =
47
47
  GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams
48
48
 
49
+ CampaignCreateParams = GrowsurfRuby::Models::CampaignCreateParams
50
+
49
51
  CampaignListCommissionsParams = GrowsurfRuby::Models::CampaignListCommissionsParams
50
52
 
51
53
  CampaignListLeaderboardParams = GrowsurfRuby::Models::CampaignListLeaderboardParams
@@ -62,6 +64,8 @@ module GrowsurfRuby
62
64
 
63
65
  CampaignRetrieveParams = GrowsurfRuby::Models::CampaignRetrieveParams
64
66
 
67
+ CampaignUpdateParams = GrowsurfRuby::Models::CampaignUpdateParams
68
+
65
69
  CommissionStructure = GrowsurfRuby::Models::CommissionStructure
66
70
 
67
71
  ParticipantCommissionList = GrowsurfRuby::Models::ParticipantCommissionList