growsurf-ruby 1.2.1 → 1.3.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 +14 -0
- data/LICENSE +201 -0
- data/README.md +1 -1
- data/lib/growsurf_ruby/internal/transport/base_client.rb +21 -4
- data/lib/growsurf_ruby/models/affiliate_application.rb +249 -0
- data/lib/growsurf_ruby/models/affiliate_application_list_response.rb +42 -0
- data/lib/growsurf_ruby/models/affiliate_invite.rb +109 -0
- data/lib/growsurf_ruby/models/affiliate_invite_list_response.rb +41 -0
- data/lib/growsurf_ruby/models/campaign/create.rb +12 -1
- data/lib/growsurf_ruby/models/campaign/participant.rb +79 -4
- data/lib/growsurf_ruby/models/campaign/participant_analytics_response.rb +28 -17
- data/lib/growsurf_ruby/models/campaign/participant_get_payout_destination_params.rb +28 -0
- data/lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb +126 -0
- data/lib/growsurf_ruby/models/campaign/participant_list_payouts_params.rb +1 -0
- data/lib/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_params.rb +50 -0
- data/lib/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rb +56 -0
- data/lib/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rb +14 -17
- data/lib/growsurf_ruby/models/campaign/participant_update_params.rb +25 -9
- data/lib/growsurf_ruby/models/campaign/referral_source.rb +3 -0
- data/lib/growsurf_ruby/models/campaign/reward.rb +20 -3
- data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +3 -3
- data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +3 -3
- data/lib/growsurf_ruby/models/campaign.rb +2 -2
- data/lib/growsurf_ruby/models/campaign_create_affiliate_invite_params.rb +45 -0
- data/lib/growsurf_ruby/models/campaign_list_affiliate_applications_params.rb +57 -0
- data/lib/growsurf_ruby/models/campaign_list_affiliate_invites_params.rb +58 -0
- data/lib/growsurf_ruby/models/campaign_list_payouts_params.rb +1 -0
- data/lib/growsurf_ruby/models/campaign_resend_affiliate_invite_params.rb +26 -0
- data/lib/growsurf_ruby/models/campaign_retrieve_affiliate_application_params.rb +26 -0
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_params.rb +9 -6
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_response.rb +59 -11
- data/lib/growsurf_ruby/models/campaign_review_affiliate_application_params.rb +94 -0
- data/lib/growsurf_ruby/models/campaign_revoke_affiliate_invite_params.rb +26 -0
- data/lib/growsurf_ruby/models/email_analytics.rb +41 -0
- data/lib/growsurf_ruby/models/participant_payout_list.rb +8 -1
- data/lib/growsurf_ruby/models/reward_tax_valuation.rb +24 -9
- data/lib/growsurf_ruby/models.rb +19 -0
- data/lib/growsurf_ruby/resources/campaign/design.rb +14 -12
- data/lib/growsurf_ruby/resources/campaign/options.rb +7 -7
- data/lib/growsurf_ruby/resources/campaign/participant.rb +96 -11
- data/lib/growsurf_ruby/resources/campaign/rewards.rb +2 -2
- data/lib/growsurf_ruby/resources/campaign.rb +231 -4
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +16 -0
- data/rbi/growsurf_ruby/models/affiliate_application.rbi +431 -0
- data/rbi/growsurf_ruby/models/affiliate_application_list_response.rbi +70 -0
- data/rbi/growsurf_ruby/models/affiliate_invite.rbi +167 -0
- data/rbi/growsurf_ruby/models/affiliate_invite_list_response.rbi +70 -0
- data/rbi/growsurf_ruby/models/campaign/create.rbi +17 -0
- data/rbi/growsurf_ruby/models/campaign/participant.rbi +169 -3
- data/rbi/growsurf_ruby/models/campaign/participant_activity_logs_response.rbi +3 -5
- data/rbi/growsurf_ruby/models/campaign/participant_analytics_response.rbi +35 -20
- data/rbi/growsurf_ruby/models/campaign/participant_bulk_delete_response.rbi +3 -1
- data/rbi/growsurf_ruby/models/campaign/participant_get_payout_destination_params.rbi +48 -0
- data/rbi/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbi +243 -0
- data/rbi/growsurf_ruby/models/campaign/participant_list_payouts_params.rbi +5 -0
- data/rbi/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_params.rbi +100 -0
- data/rbi/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rbi +118 -0
- data/rbi/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbi +22 -52
- data/rbi/growsurf_ruby/models/campaign/participant_update_params.rbi +67 -11
- data/rbi/growsurf_ruby/models/campaign/referral_source.rbi +9 -0
- data/rbi/growsurf_ruby/models/campaign/reward.rbi +23 -2
- data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +4 -4
- data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +4 -4
- data/rbi/growsurf_ruby/models/campaign.rbi +2 -2
- data/rbi/growsurf_ruby/models/campaign_create_affiliate_invite_params.rbi +74 -0
- data/rbi/growsurf_ruby/models/campaign_list_affiliate_applications_params.rbi +130 -0
- data/rbi/growsurf_ruby/models/campaign_list_affiliate_invites_params.rbi +135 -0
- data/rbi/growsurf_ruby/models/campaign_list_payouts_params.rbi +5 -0
- data/rbi/growsurf_ruby/models/campaign_resend_affiliate_invite_params.rbi +46 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_affiliate_application_params.rbi +46 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_params.rbi +15 -10
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_response.rbi +68 -18
- data/rbi/growsurf_ruby/models/campaign_review_affiliate_application_params.rbi +167 -0
- data/rbi/growsurf_ruby/models/campaign_revoke_affiliate_invite_params.rbi +46 -0
- data/rbi/growsurf_ruby/models/email_analytics.rbi +200 -0
- data/rbi/growsurf_ruby/models/participant_payout_list.rbi +17 -3
- data/rbi/growsurf_ruby/models/reward_tax_valuation.rbi +66 -9
- data/rbi/growsurf_ruby/models.rbi +25 -0
- data/rbi/growsurf_ruby/resources/campaign/design.rbi +9 -8
- data/rbi/growsurf_ruby/resources/campaign/options.rbi +7 -7
- data/rbi/growsurf_ruby/resources/campaign/participant.rbi +89 -13
- data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +4 -4
- data/rbi/growsurf_ruby/resources/campaign.rbi +188 -10
- data/sig/growsurf_ruby/models/affiliate_application.rbs +192 -0
- data/sig/growsurf_ruby/models/affiliate_application_list_response.rbs +39 -0
- data/sig/growsurf_ruby/models/affiliate_invite.rbs +92 -0
- data/sig/growsurf_ruby/models/affiliate_invite_list_response.rbs +39 -0
- data/sig/growsurf_ruby/models/campaign/create.rbs +7 -0
- data/sig/growsurf_ruby/models/campaign/participant.rbs +62 -2
- data/sig/growsurf_ruby/models/campaign/participant_activity_logs_response.rbs +2 -11
- data/sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs +12 -12
- data/sig/growsurf_ruby/models/campaign/participant_get_payout_destination_params.rbs +30 -0
- data/sig/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbs +107 -0
- data/sig/growsurf_ruby/models/campaign/participant_list_payouts_params.rbs +2 -1
- data/sig/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_params.rbs +49 -0
- data/sig/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rbs +57 -0
- data/sig/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbs +5 -13
- data/sig/growsurf_ruby/models/campaign/participant_update_params.rbs +21 -7
- data/sig/growsurf_ruby/models/campaign/referral_source.rbs +4 -1
- data/sig/growsurf_ruby/models/campaign/reward.rbs +12 -0
- data/sig/growsurf_ruby/models/campaign_create_affiliate_invite_params.rbs +40 -0
- data/sig/growsurf_ruby/models/campaign_list_affiliate_applications_params.rbs +61 -0
- data/sig/growsurf_ruby/models/campaign_list_affiliate_invites_params.rbs +62 -0
- data/sig/growsurf_ruby/models/campaign_list_payouts_params.rbs +2 -1
- data/sig/growsurf_ruby/models/campaign_resend_affiliate_invite_params.rbs +28 -0
- data/sig/growsurf_ruby/models/campaign_retrieve_affiliate_application_params.rbs +28 -0
- data/sig/growsurf_ruby/models/campaign_retrieve_analytics_response.rbs +36 -16
- data/sig/growsurf_ruby/models/campaign_review_affiliate_application_params.rbs +79 -0
- data/sig/growsurf_ruby/models/campaign_revoke_affiliate_invite_params.rbs +28 -0
- data/sig/growsurf_ruby/models/email_analytics.rbs +92 -0
- data/sig/growsurf_ruby/models/participant_payout_list.rbs +12 -4
- data/sig/growsurf_ruby/models/reward_tax_valuation.rbs +26 -4
- data/sig/growsurf_ruby/models.rbs +18 -0
- data/sig/growsurf_ruby/resources/campaign/participant.rbs +16 -2
- data/sig/growsurf_ruby/resources/campaign.rbs +53 -0
- metadata +54 -3
|
@@ -12,6 +12,7 @@ module GrowsurfRuby
|
|
|
12
12
|
coupon_code: String?,
|
|
13
13
|
description: String?,
|
|
14
14
|
image_url: String?,
|
|
15
|
+
is_visible: bool,
|
|
15
16
|
limit: Integer?,
|
|
16
17
|
limit_duration: GrowsurfRuby::Models::Campaign::Reward::limit_duration?,
|
|
17
18
|
next_milestone_prefix: String?,
|
|
@@ -22,6 +23,7 @@ module GrowsurfRuby
|
|
|
22
23
|
referral_description: String?,
|
|
23
24
|
referred_reward_upfront: bool,
|
|
24
25
|
referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
26
|
+
title: String?,
|
|
25
27
|
value: GrowsurfRuby::RewardTaxValuation?
|
|
26
28
|
}
|
|
27
29
|
|
|
@@ -44,6 +46,10 @@ module GrowsurfRuby
|
|
|
44
46
|
|
|
45
47
|
attr_accessor image_url: String?
|
|
46
48
|
|
|
49
|
+
attr_reader is_visible: bool?
|
|
50
|
+
|
|
51
|
+
def is_visible=: (bool) -> bool
|
|
52
|
+
|
|
47
53
|
attr_accessor limit: Integer?
|
|
48
54
|
|
|
49
55
|
attr_accessor limit_duration: GrowsurfRuby::Models::Campaign::Reward::limit_duration?
|
|
@@ -66,6 +72,8 @@ module GrowsurfRuby
|
|
|
66
72
|
|
|
67
73
|
attr_accessor referred_value: GrowsurfRuby::RewardTaxValuation?
|
|
68
74
|
|
|
75
|
+
attr_accessor title: String?
|
|
76
|
+
|
|
69
77
|
attr_accessor value: GrowsurfRuby::RewardTaxValuation?
|
|
70
78
|
|
|
71
79
|
def initialize: (
|
|
@@ -78,6 +86,7 @@ module GrowsurfRuby
|
|
|
78
86
|
?coupon_code: String?,
|
|
79
87
|
?description: String?,
|
|
80
88
|
?image_url: String?,
|
|
89
|
+
?is_visible: bool,
|
|
81
90
|
?limit: Integer?,
|
|
82
91
|
?limit_duration: GrowsurfRuby::Models::Campaign::Reward::limit_duration?,
|
|
83
92
|
?next_milestone_prefix: String?,
|
|
@@ -88,6 +97,7 @@ module GrowsurfRuby
|
|
|
88
97
|
?referral_description: String?,
|
|
89
98
|
?referred_reward_upfront: bool,
|
|
90
99
|
?referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
100
|
+
?title: String?,
|
|
91
101
|
?value: GrowsurfRuby::RewardTaxValuation?
|
|
92
102
|
) -> void
|
|
93
103
|
|
|
@@ -101,6 +111,7 @@ module GrowsurfRuby
|
|
|
101
111
|
coupon_code: String?,
|
|
102
112
|
description: String?,
|
|
103
113
|
image_url: String?,
|
|
114
|
+
is_visible: bool,
|
|
104
115
|
limit: Integer?,
|
|
105
116
|
limit_duration: GrowsurfRuby::Models::Campaign::Reward::limit_duration?,
|
|
106
117
|
next_milestone_prefix: String?,
|
|
@@ -111,6 +122,7 @@ module GrowsurfRuby
|
|
|
111
122
|
referral_description: String?,
|
|
112
123
|
referred_reward_upfront: bool,
|
|
113
124
|
referred_value: GrowsurfRuby::RewardTaxValuation?,
|
|
125
|
+
title: String?,
|
|
114
126
|
value: GrowsurfRuby::RewardTaxValuation?
|
|
115
127
|
}
|
|
116
128
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_create_affiliate_invite_params =
|
|
4
|
+
{ id: String, email: String, first_name: String, last_name: String }
|
|
5
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CampaignCreateAffiliateInviteParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor email: String
|
|
14
|
+
|
|
15
|
+
attr_reader first_name: String?
|
|
16
|
+
|
|
17
|
+
def first_name=: (String) -> String
|
|
18
|
+
|
|
19
|
+
attr_reader last_name: String?
|
|
20
|
+
|
|
21
|
+
def last_name=: (String) -> String
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
email: String,
|
|
26
|
+
?first_name: String,
|
|
27
|
+
?last_name: String,
|
|
28
|
+
?request_options: GrowsurfRuby::request_opts
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
email: String,
|
|
34
|
+
first_name: String,
|
|
35
|
+
last_name: String,
|
|
36
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_list_affiliate_applications_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
limit: Integer,
|
|
7
|
+
offset: Integer,
|
|
8
|
+
status: GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status
|
|
9
|
+
}
|
|
10
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class CampaignListAffiliateApplicationsParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
13
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_reader limit: Integer?
|
|
19
|
+
|
|
20
|
+
def limit=: (Integer) -> Integer
|
|
21
|
+
|
|
22
|
+
attr_reader offset: Integer?
|
|
23
|
+
|
|
24
|
+
def offset=: (Integer) -> Integer
|
|
25
|
+
|
|
26
|
+
attr_reader status: GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status?
|
|
27
|
+
|
|
28
|
+
def status=: (
|
|
29
|
+
GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status
|
|
30
|
+
) -> GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
?limit: Integer,
|
|
35
|
+
?offset: Integer,
|
|
36
|
+
?status: GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status,
|
|
37
|
+
?request_options: GrowsurfRuby::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
id: String,
|
|
42
|
+
limit: Integer,
|
|
43
|
+
offset: Integer,
|
|
44
|
+
status: GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status,
|
|
45
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type status = :PENDING | :APPROVED | :DENIED
|
|
49
|
+
|
|
50
|
+
module Status
|
|
51
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
PENDING: :PENDING
|
|
54
|
+
APPROVED: :APPROVED
|
|
55
|
+
DENIED: :DENIED
|
|
56
|
+
|
|
57
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status]
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_list_affiliate_invites_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
limit: Integer,
|
|
7
|
+
offset: Integer,
|
|
8
|
+
status: GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status
|
|
9
|
+
}
|
|
10
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class CampaignListAffiliateInvitesParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
13
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor id: String
|
|
17
|
+
|
|
18
|
+
attr_reader limit: Integer?
|
|
19
|
+
|
|
20
|
+
def limit=: (Integer) -> Integer
|
|
21
|
+
|
|
22
|
+
attr_reader offset: Integer?
|
|
23
|
+
|
|
24
|
+
def offset=: (Integer) -> Integer
|
|
25
|
+
|
|
26
|
+
attr_reader status: GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status?
|
|
27
|
+
|
|
28
|
+
def status=: (
|
|
29
|
+
GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status
|
|
30
|
+
) -> GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
id: String,
|
|
34
|
+
?limit: Integer,
|
|
35
|
+
?offset: Integer,
|
|
36
|
+
?status: GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status,
|
|
37
|
+
?request_options: GrowsurfRuby::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
id: String,
|
|
42
|
+
limit: Integer,
|
|
43
|
+
offset: Integer,
|
|
44
|
+
status: GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status,
|
|
45
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type status = :PENDING | :ACCEPTED | :EXPIRED | :REVOKED
|
|
49
|
+
|
|
50
|
+
module Status
|
|
51
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
52
|
+
|
|
53
|
+
PENDING: :PENDING
|
|
54
|
+
ACCEPTED: :ACCEPTED
|
|
55
|
+
EXPIRED: :EXPIRED
|
|
56
|
+
REVOKED: :REVOKED
|
|
57
|
+
|
|
58
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -45,7 +45,7 @@ module GrowsurfRuby
|
|
|
45
45
|
request_options: GrowsurfRuby::RequestOptions
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
type status = :UPCOMING | :QUEUED | :ISSUED | :FAILED
|
|
48
|
+
type status = :UPCOMING | :QUEUED | :ISSUED | :FAILED | :REVERSED
|
|
49
49
|
|
|
50
50
|
module Status
|
|
51
51
|
extend GrowsurfRuby::Internal::Type::Enum
|
|
@@ -54,6 +54,7 @@ module GrowsurfRuby
|
|
|
54
54
|
QUEUED: :QUEUED
|
|
55
55
|
ISSUED: :ISSUED
|
|
56
56
|
FAILED: :FAILED
|
|
57
|
+
REVERSED: :REVERSED
|
|
57
58
|
|
|
58
59
|
def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignListPayoutsParams::status]
|
|
59
60
|
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_resend_affiliate_invite_params =
|
|
4
|
+
{ id: String, invite_id: String }
|
|
5
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CampaignResendAffiliateInviteParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor invite_id: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
invite_id: String,
|
|
18
|
+
?request_options: GrowsurfRuby::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
23
|
+
invite_id: String,
|
|
24
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_retrieve_affiliate_application_params =
|
|
4
|
+
{ id: String, application_id: String }
|
|
5
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CampaignRetrieveAffiliateApplicationParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor application_id: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
application_id: String,
|
|
18
|
+
?request_options: GrowsurfRuby::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
23
|
+
application_id: String,
|
|
24
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -89,6 +89,7 @@ module GrowsurfRuby
|
|
|
89
89
|
total_revenue: Integer,
|
|
90
90
|
tumblr_shares: Integer,
|
|
91
91
|
twitter_shares: Integer,
|
|
92
|
+
unique_commission_referrals: Integer,
|
|
92
93
|
unique_impressions: Integer,
|
|
93
94
|
wechat_shares: Integer,
|
|
94
95
|
whats_app_shares: Integer
|
|
@@ -195,6 +196,10 @@ module GrowsurfRuby
|
|
|
195
196
|
|
|
196
197
|
def twitter_shares=: (Integer) -> Integer
|
|
197
198
|
|
|
199
|
+
attr_reader unique_commission_referrals: Integer?
|
|
200
|
+
|
|
201
|
+
def unique_commission_referrals=: (Integer) -> Integer
|
|
202
|
+
|
|
198
203
|
attr_reader unique_impressions: Integer?
|
|
199
204
|
|
|
200
205
|
def unique_impressions=: (Integer) -> Integer
|
|
@@ -233,6 +238,7 @@ module GrowsurfRuby
|
|
|
233
238
|
?total_revenue: Integer,
|
|
234
239
|
?tumblr_shares: Integer,
|
|
235
240
|
?twitter_shares: Integer,
|
|
241
|
+
?unique_commission_referrals: Integer,
|
|
236
242
|
?unique_impressions: Integer,
|
|
237
243
|
?wechat_shares: Integer,
|
|
238
244
|
?whats_app_shares: Integer
|
|
@@ -264,6 +270,7 @@ module GrowsurfRuby
|
|
|
264
270
|
total_revenue: Integer,
|
|
265
271
|
tumblr_shares: Integer,
|
|
266
272
|
twitter_shares: Integer,
|
|
273
|
+
unique_commission_referrals: Integer,
|
|
267
274
|
unique_impressions: Integer,
|
|
268
275
|
wechat_shares: Integer,
|
|
269
276
|
whats_app_shares: Integer
|
|
@@ -358,6 +365,7 @@ module GrowsurfRuby
|
|
|
358
365
|
total_revenue: Integer,
|
|
359
366
|
tumblr_shares: Integer,
|
|
360
367
|
twitter_shares: Integer,
|
|
368
|
+
unique_commission_referrals: Integer,
|
|
361
369
|
unique_impressions: Integer,
|
|
362
370
|
wechat_shares: Integer,
|
|
363
371
|
whats_app_shares: Integer
|
|
@@ -468,6 +476,10 @@ module GrowsurfRuby
|
|
|
468
476
|
|
|
469
477
|
def twitter_shares=: (Integer) -> Integer
|
|
470
478
|
|
|
479
|
+
attr_reader unique_commission_referrals: Integer?
|
|
480
|
+
|
|
481
|
+
def unique_commission_referrals=: (Integer) -> Integer
|
|
482
|
+
|
|
471
483
|
attr_reader unique_impressions: Integer?
|
|
472
484
|
|
|
473
485
|
def unique_impressions=: (Integer) -> Integer
|
|
@@ -507,6 +519,7 @@ module GrowsurfRuby
|
|
|
507
519
|
?total_revenue: Integer,
|
|
508
520
|
?tumblr_shares: Integer,
|
|
509
521
|
?twitter_shares: Integer,
|
|
522
|
+
?unique_commission_referrals: Integer,
|
|
510
523
|
?unique_impressions: Integer,
|
|
511
524
|
?wechat_shares: Integer,
|
|
512
525
|
?whats_app_shares: Integer
|
|
@@ -539,6 +552,7 @@ module GrowsurfRuby
|
|
|
539
552
|
total_revenue: Integer,
|
|
540
553
|
tumblr_shares: Integer,
|
|
541
554
|
twitter_shares: Integer,
|
|
555
|
+
unique_commission_referrals: Integer,
|
|
542
556
|
unique_impressions: Integer,
|
|
543
557
|
wechat_shares: Integer,
|
|
544
558
|
whats_app_shares: Integer
|
|
@@ -647,11 +661,7 @@ module GrowsurfRuby
|
|
|
647
661
|
}
|
|
648
662
|
|
|
649
663
|
type commission_status_metric =
|
|
650
|
-
{
|
|
651
|
-
count: Integer,
|
|
652
|
-
total_amount: Integer,
|
|
653
|
-
total_revenue: Integer
|
|
654
|
-
}
|
|
664
|
+
{ count: Integer, total_amount: Integer, total_revenue: Integer }
|
|
655
665
|
|
|
656
666
|
class CommissionStatusMetric < GrowsurfRuby::Internal::Type::BaseModel
|
|
657
667
|
attr_reader count: Integer?
|
|
@@ -685,6 +695,7 @@ module GrowsurfRuby
|
|
|
685
695
|
failed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
686
696
|
issued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
687
697
|
queued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
698
|
+
reversed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
688
699
|
upcoming: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
689
700
|
}
|
|
690
701
|
|
|
@@ -707,6 +718,12 @@ module GrowsurfRuby
|
|
|
707
718
|
GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
708
719
|
) -> GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
709
720
|
|
|
721
|
+
attr_reader reversed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric?
|
|
722
|
+
|
|
723
|
+
def reversed=: (
|
|
724
|
+
GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
725
|
+
) -> GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
726
|
+
|
|
710
727
|
attr_reader upcoming: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric?
|
|
711
728
|
|
|
712
729
|
def upcoming=: (
|
|
@@ -717,6 +734,7 @@ module GrowsurfRuby
|
|
|
717
734
|
?failed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
718
735
|
?issued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
719
736
|
?queued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
737
|
+
?reversed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
720
738
|
?upcoming: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
721
739
|
) -> void
|
|
722
740
|
|
|
@@ -724,6 +742,7 @@ module GrowsurfRuby
|
|
|
724
742
|
failed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
725
743
|
issued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
726
744
|
queued: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
745
|
+
reversed: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric,
|
|
727
746
|
upcoming: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::PayoutStatus::PayoutStatusMetric
|
|
728
747
|
}
|
|
729
748
|
|
|
@@ -738,29 +757,30 @@ module GrowsurfRuby
|
|
|
738
757
|
|
|
739
758
|
def total_amount=: (Integer) -> Integer
|
|
740
759
|
|
|
741
|
-
def initialize: (
|
|
742
|
-
?count: Integer,
|
|
743
|
-
?total_amount: Integer
|
|
744
|
-
) -> void
|
|
760
|
+
def initialize: (?count: Integer, ?total_amount: Integer) -> void
|
|
745
761
|
|
|
746
762
|
def to_hash: -> { count: Integer, total_amount: Integer }
|
|
747
763
|
end
|
|
748
764
|
end
|
|
749
765
|
|
|
750
|
-
type reward_status = {
|
|
766
|
+
type reward_status = { completed: Integer, unapproved: Integer, unfulfilled: Integer }
|
|
751
767
|
|
|
752
768
|
class RewardStatus < GrowsurfRuby::Internal::Type::BaseModel
|
|
753
|
-
attr_reader
|
|
769
|
+
attr_reader completed: Integer?
|
|
770
|
+
|
|
771
|
+
def completed=: (Integer) -> Integer
|
|
772
|
+
|
|
773
|
+
attr_reader unapproved: Integer?
|
|
754
774
|
|
|
755
|
-
def
|
|
775
|
+
def unapproved=: (Integer) -> Integer
|
|
756
776
|
|
|
757
|
-
attr_reader
|
|
777
|
+
attr_reader unfulfilled: Integer?
|
|
758
778
|
|
|
759
|
-
def
|
|
779
|
+
def unfulfilled=: (Integer) -> Integer
|
|
760
780
|
|
|
761
|
-
def initialize: (?
|
|
781
|
+
def initialize: (?completed: Integer, ?unapproved: Integer, ?unfulfilled: Integer) -> void
|
|
762
782
|
|
|
763
|
-
def to_hash: -> {
|
|
783
|
+
def to_hash: -> { completed: Integer, unapproved: Integer, unfulfilled: Integer }
|
|
764
784
|
end
|
|
765
785
|
end
|
|
766
786
|
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_review_affiliate_application_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
application_id: String,
|
|
7
|
+
allow_immediate_reapply: bool,
|
|
8
|
+
reapply_allowed_at: Integer,
|
|
9
|
+
rejection_reason: String,
|
|
10
|
+
review_note: String,
|
|
11
|
+
status: GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status
|
|
12
|
+
}
|
|
13
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class CampaignReviewAffiliateApplicationParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
16
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor application_id: String
|
|
22
|
+
|
|
23
|
+
attr_reader allow_immediate_reapply: bool?
|
|
24
|
+
|
|
25
|
+
def allow_immediate_reapply=: (bool) -> bool
|
|
26
|
+
|
|
27
|
+
attr_reader reapply_allowed_at: Integer?
|
|
28
|
+
|
|
29
|
+
def reapply_allowed_at=: (Integer) -> Integer
|
|
30
|
+
|
|
31
|
+
attr_reader rejection_reason: String?
|
|
32
|
+
|
|
33
|
+
def rejection_reason=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader review_note: String?
|
|
36
|
+
|
|
37
|
+
def review_note=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_reader status: GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status?
|
|
40
|
+
|
|
41
|
+
def status=: (
|
|
42
|
+
GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status
|
|
43
|
+
) -> GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status
|
|
44
|
+
|
|
45
|
+
def initialize: (
|
|
46
|
+
id: String,
|
|
47
|
+
application_id: String,
|
|
48
|
+
?allow_immediate_reapply: bool,
|
|
49
|
+
?reapply_allowed_at: Integer,
|
|
50
|
+
?rejection_reason: String,
|
|
51
|
+
?review_note: String,
|
|
52
|
+
?status: GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status,
|
|
53
|
+
?request_options: GrowsurfRuby::request_opts
|
|
54
|
+
) -> void
|
|
55
|
+
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
id: String,
|
|
58
|
+
application_id: String,
|
|
59
|
+
allow_immediate_reapply: bool,
|
|
60
|
+
reapply_allowed_at: Integer,
|
|
61
|
+
rejection_reason: String,
|
|
62
|
+
review_note: String,
|
|
63
|
+
status: GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status,
|
|
64
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type status = :APPROVED | :DENIED
|
|
68
|
+
|
|
69
|
+
module Status
|
|
70
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
APPROVED: :APPROVED
|
|
73
|
+
DENIED: :DENIED
|
|
74
|
+
|
|
75
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type campaign_revoke_affiliate_invite_params =
|
|
4
|
+
{ id: String, invite_id: String }
|
|
5
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class CampaignRevokeAffiliateInviteParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor invite_id: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
id: String,
|
|
17
|
+
invite_id: String,
|
|
18
|
+
?request_options: GrowsurfRuby::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
id: String,
|
|
23
|
+
invite_id: String,
|
|
24
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
type email_analytics =
|
|
4
|
+
{
|
|
5
|
+
sent: Integer,
|
|
6
|
+
delivered: Integer,
|
|
7
|
+
opened: Integer,
|
|
8
|
+
clicked: Integer,
|
|
9
|
+
bounced: Integer,
|
|
10
|
+
spam_complaints: Integer,
|
|
11
|
+
delivery_rate: Float,
|
|
12
|
+
open_rate: Float,
|
|
13
|
+
click_rate: Float,
|
|
14
|
+
bounce_rate: Float,
|
|
15
|
+
by_type: Array[GrowsurfRuby::Models::EmailAnalytics::ByType],
|
|
16
|
+
coverage_start_date: Integer?,
|
|
17
|
+
is_partial: bool
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class EmailAnalytics < GrowsurfRuby::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor sent: Integer
|
|
22
|
+
attr_accessor delivered: Integer
|
|
23
|
+
attr_accessor opened: Integer
|
|
24
|
+
attr_accessor clicked: Integer
|
|
25
|
+
attr_accessor bounced: Integer
|
|
26
|
+
attr_accessor spam_complaints: Integer
|
|
27
|
+
attr_accessor delivery_rate: Float
|
|
28
|
+
attr_accessor open_rate: Float
|
|
29
|
+
attr_accessor click_rate: Float
|
|
30
|
+
attr_accessor bounce_rate: Float
|
|
31
|
+
attr_accessor by_type: Array[GrowsurfRuby::Models::EmailAnalytics::ByType]
|
|
32
|
+
attr_accessor coverage_start_date: Integer?
|
|
33
|
+
attr_accessor is_partial: bool
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
sent: Integer,
|
|
37
|
+
delivered: Integer,
|
|
38
|
+
opened: Integer,
|
|
39
|
+
clicked: Integer,
|
|
40
|
+
bounced: Integer,
|
|
41
|
+
spam_complaints: Integer,
|
|
42
|
+
delivery_rate: Float,
|
|
43
|
+
open_rate: Float,
|
|
44
|
+
click_rate: Float,
|
|
45
|
+
bounce_rate: Float,
|
|
46
|
+
by_type: Array[GrowsurfRuby::Models::EmailAnalytics::ByType],
|
|
47
|
+
coverage_start_date: Integer?,
|
|
48
|
+
is_partial: bool
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
class Counts < GrowsurfRuby::Internal::Type::BaseModel
|
|
52
|
+
attr_accessor sent: Integer
|
|
53
|
+
attr_accessor delivered: Integer
|
|
54
|
+
attr_accessor opened: Integer
|
|
55
|
+
attr_accessor clicked: Integer
|
|
56
|
+
attr_accessor bounced: Integer
|
|
57
|
+
attr_accessor spam_complaints: Integer
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
sent: Integer,
|
|
61
|
+
delivered: Integer,
|
|
62
|
+
opened: Integer,
|
|
63
|
+
clicked: Integer,
|
|
64
|
+
bounced: Integer,
|
|
65
|
+
spam_complaints: Integer
|
|
66
|
+
) -> void
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class ByType < GrowsurfRuby::Models::EmailAnalytics::Counts
|
|
70
|
+
attr_accessor email_type: String
|
|
71
|
+
attr_accessor delivery_rate: Float
|
|
72
|
+
attr_accessor open_rate: Float
|
|
73
|
+
attr_accessor click_rate: Float
|
|
74
|
+
attr_accessor bounce_rate: Float
|
|
75
|
+
|
|
76
|
+
def initialize: (
|
|
77
|
+
sent: Integer,
|
|
78
|
+
delivered: Integer,
|
|
79
|
+
opened: Integer,
|
|
80
|
+
clicked: Integer,
|
|
81
|
+
bounced: Integer,
|
|
82
|
+
spam_complaints: Integer,
|
|
83
|
+
email_type: String,
|
|
84
|
+
delivery_rate: Float,
|
|
85
|
+
open_rate: Float,
|
|
86
|
+
click_rate: Float,
|
|
87
|
+
bounce_rate: Float
|
|
88
|
+
) -> void
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|