growsurf-ruby 0.8.0 → 1.1.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 +18 -0
- data/README.md +1 -1
- data/lib/growsurf_ruby/client.rb +4 -0
- data/lib/growsurf_ruby/models/account.rb +90 -0
- data/lib/growsurf_ruby/models/account_create_params.rb +46 -0
- data/lib/growsurf_ruby/models/account_create_response.rb +64 -0
- data/lib/growsurf_ruby/models/account_resend_verification_email_response.rb +33 -0
- data/lib/growsurf_ruby/models/account_rotate_api_key_response.rb +17 -0
- data/lib/growsurf_ruby/models/account_update_params.rb +35 -0
- data/lib/growsurf_ruby/models/campaign/campaign_reward_list_response.rb +2 -2
- data/lib/growsurf_ruby/models/campaign/create.rb +5 -1
- data/lib/growsurf_ruby/models/campaign/participant_activity_logs_response.rb +65 -0
- data/lib/growsurf_ruby/models/campaign/participant_analytics_response.rb +421 -0
- data/lib/growsurf_ruby/models/campaign/participant_bulk_delete_params.rb +35 -0
- data/lib/growsurf_ruby/models/campaign/participant_bulk_delete_response.rb +151 -0
- data/lib/growsurf_ruby/models/campaign/participant_email_params.rb +76 -0
- data/lib/growsurf_ruby/models/campaign/participant_email_response.rb +38 -0
- data/lib/growsurf_ruby/models/campaign/participant_list_activity_logs_params.rb +46 -0
- data/lib/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rb +98 -0
- data/lib/growsurf_ruby/models/campaign/participant_update_params.rb +21 -1
- data/lib/growsurf_ruby/models/campaign/reward.rb +43 -5
- data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +48 -15
- data/lib/growsurf_ruby/models/campaign/reward_delete_params.rb +4 -4
- data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +51 -18
- data/lib/growsurf_ruby/models/campaign/webhook.rb +72 -0
- data/lib/growsurf_ruby/models/campaign/webhook_create_params.rb +52 -0
- data/lib/growsurf_ruby/models/campaign/webhook_delete_params.rb +28 -0
- data/lib/growsurf_ruby/models/campaign/webhook_delete_response.rb +24 -0
- data/lib/growsurf_ruby/models/campaign/webhook_event.rb +23 -0
- data/lib/growsurf_ruby/models/campaign/webhook_list_response.rb +18 -0
- data/lib/growsurf_ruby/models/campaign/webhook_test_params.rb +42 -0
- data/lib/growsurf_ruby/models/campaign/webhook_test_response.rb +50 -0
- data/lib/growsurf_ruby/models/campaign/webhook_update_params.rb +59 -0
- data/lib/growsurf_ruby/models/campaign.rb +43 -5
- data/lib/growsurf_ruby/models/campaign_create_params.rb +1 -15
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_params.rb +36 -1
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_response.rb +538 -1
- data/lib/growsurf_ruby/models/campaign_update_params.rb +1 -53
- data/lib/growsurf_ruby/models/commission_structure.rb +8 -2
- data/lib/growsurf_ruby/models/referral_flow_screenshots_response.rb +72 -0
- data/lib/growsurf_ruby/models/reward_tax_valuation.rb +35 -0
- data/lib/growsurf_ruby/models.rb +10 -0
- data/lib/growsurf_ruby/resources/account.rb +159 -0
- data/lib/growsurf_ruby/resources/campaign/design.rb +68 -0
- data/lib/growsurf_ruby/resources/campaign/emails.rb +66 -0
- data/lib/growsurf_ruby/resources/campaign/installation.rb +67 -0
- data/lib/growsurf_ruby/resources/campaign/options.rb +66 -0
- data/lib/growsurf_ruby/resources/campaign/participant.rb +170 -2
- data/lib/growsurf_ruby/resources/campaign/rewards.rb +36 -32
- data/lib/growsurf_ruby/resources/campaign/webhooks.rb +157 -0
- data/lib/growsurf_ruby/resources/campaign.rb +62 -27
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +31 -0
- data/rbi/growsurf_ruby/client.rbi +3 -0
- data/rbi/growsurf_ruby/models/account.rbi +125 -0
- data/rbi/growsurf_ruby/models/account_create_params.rbi +73 -0
- data/rbi/growsurf_ruby/models/account_create_response.rbi +115 -0
- data/rbi/growsurf_ruby/models/account_resend_verification_email_response.rbi +76 -0
- data/rbi/growsurf_ruby/models/account_rotate_api_key_response.rbi +30 -0
- data/rbi/growsurf_ruby/models/account_update_params.rbi +65 -0
- data/rbi/growsurf_ruby/models/campaign/campaign_reward_list_response.rbi +2 -2
- data/rbi/growsurf_ruby/models/campaign/create.rbi +8 -0
- data/rbi/growsurf_ruby/models/campaign/participant_activity_logs_response.rbi +111 -0
- data/rbi/growsurf_ruby/models/campaign/participant_analytics_response.rbi +630 -0
- data/rbi/growsurf_ruby/models/campaign/participant_bulk_delete_params.rbi +56 -0
- data/rbi/growsurf_ruby/models/campaign/participant_bulk_delete_response.rbi +285 -0
- data/rbi/growsurf_ruby/models/campaign/participant_email_params.rbi +118 -0
- data/rbi/growsurf_ruby/models/campaign/participant_email_response.rbi +84 -0
- data/rbi/growsurf_ruby/models/campaign/participant_list_activity_logs_params.rbi +74 -0
- data/rbi/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbi +207 -0
- data/rbi/growsurf_ruby/models/campaign/participant_update_params.rbi +24 -0
- data/rbi/growsurf_ruby/models/campaign/reward.rbi +63 -3
- data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +62 -9
- data/rbi/growsurf_ruby/models/campaign/reward_delete_params.rbi +4 -4
- data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +66 -13
- data/rbi/growsurf_ruby/models/campaign/webhook.rbi +93 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_create_params.rbi +91 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_delete_params.rbi +48 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_delete_response.rbi +33 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_event.rbi +60 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_list_response.rbi +36 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_test_params.rbi +69 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_test_response.rbi +102 -0
- data/rbi/growsurf_ruby/models/campaign/webhook_update_params.rbi +98 -0
- data/rbi/growsurf_ruby/models/campaign.rbi +63 -3
- data/rbi/growsurf_ruby/models/campaign_create_params.rbi +0 -18
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_params.rbi +91 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_response.rbi +1011 -3
- data/rbi/growsurf_ruby/models/campaign_update_params.rbi +0 -78
- data/rbi/growsurf_ruby/models/commission_structure.rbi +8 -2
- data/rbi/growsurf_ruby/models/referral_flow_screenshots_response.rbi +94 -0
- data/rbi/growsurf_ruby/models/reward_tax_valuation.rbi +56 -0
- data/rbi/growsurf_ruby/models.rbi +11 -0
- data/rbi/growsurf_ruby/resources/account.rbi +112 -0
- data/rbi/growsurf_ruby/resources/campaign/design.rbi +52 -0
- data/rbi/growsurf_ruby/resources/campaign/emails.rbi +51 -0
- data/rbi/growsurf_ruby/resources/campaign/installation.rbi +53 -0
- data/rbi/growsurf_ruby/resources/campaign/options.rbi +51 -0
- data/rbi/growsurf_ruby/resources/campaign/participant.rbi +160 -0
- data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +61 -29
- data/rbi/growsurf_ruby/resources/campaign/webhooks.rbi +123 -0
- data/rbi/growsurf_ruby/resources/campaign.rbi +58 -32
- data/sig/growsurf_ruby/client.rbs +2 -0
- data/sig/growsurf_ruby/models/account.rbs +67 -0
- data/sig/growsurf_ruby/models/account_create_params.rbs +42 -0
- data/sig/growsurf_ruby/models/account_create_response.rbs +47 -0
- data/sig/growsurf_ruby/models/account_resend_verification_email_response.rbs +35 -0
- data/sig/growsurf_ruby/models/account_rotate_api_key_response.rbs +13 -0
- data/sig/growsurf_ruby/models/account_update_params.rbs +42 -0
- data/sig/growsurf_ruby/models/campaign/participant_activity_logs_response.rbs +59 -0
- data/sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs +407 -0
- data/sig/growsurf_ruby/models/campaign/participant_bulk_delete_params.rbs +30 -0
- data/sig/growsurf_ruby/models/campaign/participant_bulk_delete_response.rbs +125 -0
- data/sig/growsurf_ruby/models/campaign/participant_email_params.rbs +61 -0
- data/sig/growsurf_ruby/models/campaign/participant_email_response.rbs +37 -0
- data/sig/growsurf_ruby/models/campaign/participant_list_activity_logs_params.rbs +47 -0
- data/sig/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbs +90 -0
- data/sig/growsurf_ruby/models/campaign/participant_update_params.rbs +14 -0
- data/sig/growsurf_ruby/models/campaign/reward.rbs +18 -3
- data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +19 -8
- data/sig/growsurf_ruby/models/campaign/reward_delete_params.rbs +4 -4
- data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +23 -12
- data/sig/growsurf_ruby/models/campaign/webhook.rbs +52 -0
- data/sig/growsurf_ruby/models/campaign/webhook_create_params.rbs +51 -0
- data/sig/growsurf_ruby/models/campaign/webhook_delete_params.rbs +30 -0
- data/sig/growsurf_ruby/models/campaign/webhook_delete_response.rbs +17 -0
- data/sig/growsurf_ruby/models/campaign/webhook_event.rbs +28 -0
- data/sig/growsurf_ruby/models/campaign/webhook_list_response.rbs +18 -0
- data/sig/growsurf_ruby/models/campaign/webhook_test_params.rbs +42 -0
- data/sig/growsurf_ruby/models/campaign/webhook_test_response.rbs +54 -0
- data/sig/growsurf_ruby/models/campaign/webhook_update_params.rbs +63 -0
- 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_retrieve_analytics_params.rbs +35 -1
- data/sig/growsurf_ruby/models/campaign_retrieve_analytics_response.rbs +533 -3
- data/sig/growsurf_ruby/models/campaign_update_params.rbs +1 -53
- data/sig/growsurf_ruby/models/commission_structure.rbs +7 -2
- data/sig/growsurf_ruby/models/referral_flow_screenshots_response.rbs +54 -0
- data/sig/growsurf_ruby/models/reward_tax_valuation.rbs +22 -0
- data/sig/growsurf_ruby/models.rbs +10 -0
- data/sig/growsurf_ruby/resources/account.rbs +38 -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/participant.rbs +37 -0
- data/sig/growsurf_ruby/resources/campaign/rewards.rbs +6 -4
- data/sig/growsurf_ruby/resources/campaign/webhooks.rbs +46 -0
- data/sig/growsurf_ruby/resources/campaign.rbs +17 -9
- metadata +95 -2
|
@@ -3,6 +3,7 @@ module GrowsurfRuby
|
|
|
3
3
|
type commission_structure =
|
|
4
4
|
{
|
|
5
5
|
amount: Integer?,
|
|
6
|
+
amount_iso: String?,
|
|
6
7
|
approval_required: bool?,
|
|
7
8
|
duration: String?,
|
|
8
9
|
duration_in_months: Integer?,
|
|
@@ -26,6 +27,8 @@ module GrowsurfRuby
|
|
|
26
27
|
class CommissionStructure < GrowsurfRuby::Internal::Type::BaseModel
|
|
27
28
|
attr_accessor amount: Integer?
|
|
28
29
|
|
|
30
|
+
attr_accessor amount_iso: String?
|
|
31
|
+
|
|
29
32
|
attr_accessor approval_required: bool?
|
|
30
33
|
|
|
31
34
|
attr_accessor duration: String?
|
|
@@ -64,6 +67,7 @@ module GrowsurfRuby
|
|
|
64
67
|
|
|
65
68
|
def initialize: (
|
|
66
69
|
?amount: Integer?,
|
|
70
|
+
?amount_iso: String?,
|
|
67
71
|
?approval_required: bool?,
|
|
68
72
|
?duration: String?,
|
|
69
73
|
?duration_in_months: Integer?,
|
|
@@ -86,6 +90,7 @@ module GrowsurfRuby
|
|
|
86
90
|
|
|
87
91
|
def to_hash: -> {
|
|
88
92
|
amount: Integer?,
|
|
93
|
+
amount_iso: String?,
|
|
89
94
|
approval_required: bool?,
|
|
90
95
|
duration: String?,
|
|
91
96
|
duration_in_months: Integer?,
|
|
@@ -106,13 +111,13 @@ module GrowsurfRuby
|
|
|
106
111
|
type: GrowsurfRuby::Models::CommissionStructure::type_?
|
|
107
112
|
}
|
|
108
113
|
|
|
109
|
-
type type_ = :PERCENT | :
|
|
114
|
+
type type_ = :PERCENT | :FIXED
|
|
110
115
|
|
|
111
116
|
module Type
|
|
112
117
|
extend GrowsurfRuby::Internal::Type::Enum
|
|
113
118
|
|
|
114
119
|
PERCENT: :PERCENT
|
|
115
|
-
|
|
120
|
+
FIXED: :FIXED
|
|
116
121
|
|
|
117
122
|
def self?.values: -> ::Array[GrowsurfRuby::Models::CommissionStructure::type_]
|
|
118
123
|
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type referral_flow_screenshots_response =
|
|
4
|
+
{
|
|
5
|
+
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
6
|
+
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
7
|
+
generated_at: Integer
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ReferralFlowScreenshotsResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot
|
|
12
|
+
|
|
13
|
+
attr_accessor referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot
|
|
14
|
+
|
|
15
|
+
attr_accessor generated_at: Integer
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
19
|
+
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
20
|
+
generated_at: Integer
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
referrer: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
25
|
+
referred_friend: GrowsurfRuby::Models::ReferralFlowScreenshotsResponse::ReferralFlowScreenshot,
|
|
26
|
+
generated_at: Integer
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class ReferralFlowScreenshot < GrowsurfRuby::Internal::Type::BaseModel
|
|
30
|
+
attr_accessor view: String
|
|
31
|
+
|
|
32
|
+
attr_accessor url: String
|
|
33
|
+
|
|
34
|
+
attr_accessor width: Integer
|
|
35
|
+
|
|
36
|
+
attr_accessor height: Integer
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
view: String,
|
|
40
|
+
url: String,
|
|
41
|
+
width: Integer,
|
|
42
|
+
height: Integer
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
view: String,
|
|
47
|
+
url: String,
|
|
48
|
+
width: Integer,
|
|
49
|
+
height: Integer
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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: -> {
|
|
17
|
+
fair_market_value_usd: Float?,
|
|
18
|
+
is_tax_reportable: bool?
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
module GrowsurfRuby
|
|
2
|
+
class Account = GrowsurfRuby::Models::Account
|
|
3
|
+
|
|
4
|
+
class AccountCreateParams = GrowsurfRuby::Models::AccountCreateParams
|
|
5
|
+
|
|
6
|
+
class AccountUpdateParams = GrowsurfRuby::Models::AccountUpdateParams
|
|
7
|
+
|
|
2
8
|
module Campaign = GrowsurfRuby::Models::Campaign
|
|
3
9
|
|
|
4
10
|
class CampaignAPI = GrowsurfRuby::Models::CampaignAPI
|
|
@@ -34,4 +40,8 @@ module GrowsurfRuby
|
|
|
34
40
|
class ParticipantPayoutList = GrowsurfRuby::Models::ParticipantPayoutList
|
|
35
41
|
|
|
36
42
|
class ReferralList = GrowsurfRuby::Models::ReferralList
|
|
43
|
+
|
|
44
|
+
class ReferralFlowScreenshotsResponse = GrowsurfRuby::Models::ReferralFlowScreenshotsResponse
|
|
45
|
+
|
|
46
|
+
class RewardTaxValuation = GrowsurfRuby::Models::RewardTaxValuation
|
|
37
47
|
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Account
|
|
4
|
+
def create: (
|
|
5
|
+
email: String,
|
|
6
|
+
?company: String,
|
|
7
|
+
?first_name: String,
|
|
8
|
+
?last_name: String,
|
|
9
|
+
?request_options: GrowsurfRuby::request_opts
|
|
10
|
+
) -> GrowsurfRuby::Models::AccountCreateResponse
|
|
11
|
+
|
|
12
|
+
def retrieve: (
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> GrowsurfRuby::Account
|
|
15
|
+
|
|
16
|
+
def update: (
|
|
17
|
+
?company: String,
|
|
18
|
+
?first_name: String,
|
|
19
|
+
?last_name: String,
|
|
20
|
+
?request_options: GrowsurfRuby::request_opts
|
|
21
|
+
) -> GrowsurfRuby::Account
|
|
22
|
+
|
|
23
|
+
def rotate_api_key: (
|
|
24
|
+
?request_options: GrowsurfRuby::request_opts
|
|
25
|
+
) -> GrowsurfRuby::Models::AccountRotateAPIKeyResponse
|
|
26
|
+
|
|
27
|
+
def request_verification: (
|
|
28
|
+
?request_options: GrowsurfRuby::request_opts
|
|
29
|
+
) -> GrowsurfRuby::Account
|
|
30
|
+
|
|
31
|
+
def resend_verification_email: (
|
|
32
|
+
?request_options: GrowsurfRuby::request_opts
|
|
33
|
+
) -> GrowsurfRuby::Models::AccountResendVerificationEmailResponse
|
|
34
|
+
|
|
35
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
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
|
|
@@ -15,6 +15,8 @@ module GrowsurfRuby
|
|
|
15
15
|
?first_name: String,
|
|
16
16
|
?last_name: String,
|
|
17
17
|
?metadata: ::Hash[Symbol, top],
|
|
18
|
+
?notes: String,
|
|
19
|
+
?paypal_email: String,
|
|
18
20
|
?referral_status: GrowsurfRuby::Models::Campaign::ParticipantUpdateParams::referral_status,
|
|
19
21
|
?referred_by: String,
|
|
20
22
|
?unsubscribed: bool,
|
|
@@ -28,6 +30,12 @@ module GrowsurfRuby
|
|
|
28
30
|
?request_options: GrowsurfRuby::request_opts
|
|
29
31
|
) -> GrowsurfRuby::Models::Campaign::ParticipantDeleteResponse
|
|
30
32
|
|
|
33
|
+
def bulk_delete: (
|
|
34
|
+
String id,
|
|
35
|
+
participants: ::Array[String],
|
|
36
|
+
?request_options: GrowsurfRuby::request_opts
|
|
37
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantBulkDeleteResponse
|
|
38
|
+
|
|
31
39
|
def add: (
|
|
32
40
|
String id,
|
|
33
41
|
email: String,
|
|
@@ -155,6 +163,35 @@ module GrowsurfRuby
|
|
|
155
163
|
?request_options: GrowsurfRuby::request_opts
|
|
156
164
|
) -> GrowsurfRuby::Models::Campaign::ParticipantCancelDelayedReferralResponse
|
|
157
165
|
|
|
166
|
+
def email: (
|
|
167
|
+
String participant_id_or_email,
|
|
168
|
+
id: String,
|
|
169
|
+
?body: String,
|
|
170
|
+
?email_type: String,
|
|
171
|
+
?preheader: String,
|
|
172
|
+
?subject: String,
|
|
173
|
+
?request_options: GrowsurfRuby::request_opts
|
|
174
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantEmailResponse
|
|
175
|
+
|
|
176
|
+
def list_activity_logs: (
|
|
177
|
+
String participant_id_or_email,
|
|
178
|
+
id: String,
|
|
179
|
+
?limit: Integer,
|
|
180
|
+
?offset: Integer,
|
|
181
|
+
?request_options: GrowsurfRuby::request_opts
|
|
182
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantActivityLogsResponse
|
|
183
|
+
|
|
184
|
+
def retrieve_analytics: (
|
|
185
|
+
String participant_id_or_email,
|
|
186
|
+
id: String,
|
|
187
|
+
?days: Integer,
|
|
188
|
+
?end_date: Integer,
|
|
189
|
+
?include: :series,
|
|
190
|
+
?interval: GrowsurfRuby::Models::Campaign::ParticipantRetrieveAnalyticsParams::interval,
|
|
191
|
+
?start_date: Integer,
|
|
192
|
+
?request_options: GrowsurfRuby::request_opts
|
|
193
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse
|
|
194
|
+
|
|
158
195
|
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
159
196
|
end
|
|
160
197
|
end
|
|
@@ -15,7 +15,6 @@ module GrowsurfRuby
|
|
|
15
15
|
?coupon_code: String,
|
|
16
16
|
?description: String,
|
|
17
17
|
?image_url: String,
|
|
18
|
-
?is_active: bool,
|
|
19
18
|
?is_unlimited: bool,
|
|
20
19
|
?is_visible: bool,
|
|
21
20
|
?limit: Integer,
|
|
@@ -28,19 +27,20 @@ module GrowsurfRuby
|
|
|
28
27
|
?referral_coupon_code: String,
|
|
29
28
|
?referral_description: String,
|
|
30
29
|
?referred_reward_upfront: bool,
|
|
30
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
31
31
|
?title: String,
|
|
32
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
32
33
|
?request_options: GrowsurfRuby::request_opts
|
|
33
34
|
) -> GrowsurfRuby::Models::Campaign::Reward
|
|
34
35
|
|
|
35
36
|
def update: (
|
|
36
|
-
String
|
|
37
|
+
String campaign_reward_id,
|
|
37
38
|
id: String,
|
|
38
39
|
?commission_structure: GrowsurfRuby::CommissionStructure,
|
|
39
40
|
?conversions_required: Integer,
|
|
40
41
|
?coupon_code: String,
|
|
41
42
|
?description: String,
|
|
42
43
|
?image_url: String,
|
|
43
|
-
?is_active: bool,
|
|
44
44
|
?is_unlimited: bool,
|
|
45
45
|
?is_visible: bool,
|
|
46
46
|
?limit: Integer,
|
|
@@ -53,12 +53,14 @@ module GrowsurfRuby
|
|
|
53
53
|
?referral_coupon_code: String,
|
|
54
54
|
?referral_description: String,
|
|
55
55
|
?referred_reward_upfront: bool,
|
|
56
|
+
?referred_value: GrowsurfRuby::RewardTaxValuation,
|
|
56
57
|
?title: String,
|
|
58
|
+
?value: GrowsurfRuby::RewardTaxValuation,
|
|
57
59
|
?request_options: GrowsurfRuby::request_opts
|
|
58
60
|
) -> GrowsurfRuby::Models::Campaign::Reward
|
|
59
61
|
|
|
60
62
|
def delete: (
|
|
61
|
-
String
|
|
63
|
+
String campaign_reward_id,
|
|
62
64
|
id: String,
|
|
63
65
|
?request_options: GrowsurfRuby::request_opts
|
|
64
66
|
) -> GrowsurfRuby::Models::Campaign::DeleteRewardResponse
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Resources
|
|
3
|
+
class Campaign
|
|
4
|
+
class Webhooks
|
|
5
|
+
def list: (
|
|
6
|
+
String id,
|
|
7
|
+
?request_options: GrowsurfRuby::request_opts
|
|
8
|
+
) -> GrowsurfRuby::Models::Campaign::WebhookListResponse
|
|
9
|
+
|
|
10
|
+
def create: (
|
|
11
|
+
String id,
|
|
12
|
+
payload_url: String,
|
|
13
|
+
?events: ::Array[GrowsurfRuby::Models::Campaign::webhook_event],
|
|
14
|
+
?is_enabled: bool,
|
|
15
|
+
?secret: String,
|
|
16
|
+
?request_options: GrowsurfRuby::request_opts
|
|
17
|
+
) -> GrowsurfRuby::Models::Campaign::Webhook
|
|
18
|
+
|
|
19
|
+
def update: (
|
|
20
|
+
String webhook_id,
|
|
21
|
+
id: String,
|
|
22
|
+
?events: ::Array[GrowsurfRuby::Models::Campaign::webhook_event],
|
|
23
|
+
?is_enabled: bool,
|
|
24
|
+
?payload_url: String,
|
|
25
|
+
?secret: String,
|
|
26
|
+
?request_options: GrowsurfRuby::request_opts
|
|
27
|
+
) -> GrowsurfRuby::Models::Campaign::Webhook
|
|
28
|
+
|
|
29
|
+
def delete: (
|
|
30
|
+
String webhook_id,
|
|
31
|
+
id: String,
|
|
32
|
+
?request_options: GrowsurfRuby::request_opts
|
|
33
|
+
) -> GrowsurfRuby::Models::Campaign::WebhookDeleteResponse
|
|
34
|
+
|
|
35
|
+
def test: (
|
|
36
|
+
String webhook_id,
|
|
37
|
+
id: String,
|
|
38
|
+
?event: GrowsurfRuby::Models::Campaign::webhook_event,
|
|
39
|
+
?request_options: GrowsurfRuby::request_opts
|
|
40
|
+
) -> GrowsurfRuby::Models::Campaign::WebhookTestResponse
|
|
41
|
+
|
|
42
|
+
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -9,6 +9,16 @@ 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
|
+
|
|
20
|
+
attr_reader webhooks: GrowsurfRuby::Resources::Campaign::Webhooks
|
|
21
|
+
|
|
12
22
|
def retrieve: (
|
|
13
23
|
String id,
|
|
14
24
|
?request_options: GrowsurfRuby::request_opts
|
|
@@ -23,9 +33,7 @@ module GrowsurfRuby
|
|
|
23
33
|
?company_logo_image_url: String,
|
|
24
34
|
?company_name: String,
|
|
25
35
|
?currency_iso: String,
|
|
26
|
-
?goal: String,
|
|
27
36
|
?name: String,
|
|
28
|
-
?options: ::Hash[Symbol, top],
|
|
29
37
|
?rewards: ::Array[GrowsurfRuby::Campaign::RewardCreateParams],
|
|
30
38
|
?request_options: GrowsurfRuby::request_opts
|
|
31
39
|
) -> GrowsurfRuby::CampaignAPI
|
|
@@ -34,14 +42,7 @@ module GrowsurfRuby
|
|
|
34
42
|
String id,
|
|
35
43
|
?company_logo_image_url: String,
|
|
36
44
|
?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
45
|
?name: String,
|
|
43
|
-
?notifications: ::Hash[Symbol, top],
|
|
44
|
-
?options: ::Hash[Symbol, top],
|
|
45
46
|
?status: GrowsurfRuby::Models::CampaignUpdateParams::status,
|
|
46
47
|
?request_options: GrowsurfRuby::request_opts
|
|
47
48
|
) -> GrowsurfRuby::CampaignAPI
|
|
@@ -51,6 +52,11 @@ module GrowsurfRuby
|
|
|
51
52
|
?request_options: GrowsurfRuby::request_opts
|
|
52
53
|
) -> GrowsurfRuby::CampaignAPI
|
|
53
54
|
|
|
55
|
+
def get_referral_flow_screenshots: (
|
|
56
|
+
String id,
|
|
57
|
+
?request_options: GrowsurfRuby::request_opts
|
|
58
|
+
) -> GrowsurfRuby::Models::ReferralFlowScreenshotsResponse
|
|
59
|
+
|
|
54
60
|
def create_mobile_participant_token: (
|
|
55
61
|
String id,
|
|
56
62
|
email: String,
|
|
@@ -115,6 +121,8 @@ module GrowsurfRuby
|
|
|
115
121
|
String id,
|
|
116
122
|
?days: Integer,
|
|
117
123
|
?end_date: Integer,
|
|
124
|
+
?include: String,
|
|
125
|
+
?interval: GrowsurfRuby::Models::CampaignRetrieveAnalyticsParams::interval,
|
|
118
126
|
?start_date: Integer,
|
|
119
127
|
?request_options: GrowsurfRuby::request_opts
|
|
120
128
|
) -> GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse
|