growsurf-ruby 1.2.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -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 +25 -25
- data/lib/growsurf_ruby/models/campaign/participant_reward.rb +1 -0
- 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 +41 -3
- data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +26 -4
- data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +26 -4
- data/lib/growsurf_ruby/models/campaign.rb +24 -3
- 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/commission_structure.rb +16 -3
- data/lib/growsurf_ruby/models/email_analytics.rb +41 -0
- data/lib/growsurf_ruby/models/participant_commission_list.rb +19 -1
- 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 +101 -14
- data/lib/growsurf_ruby/resources/campaign/rewards.rb +8 -4
- 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 +38 -62
- data/rbi/growsurf_ruby/models/campaign/participant_reward.rbi +5 -0
- 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 +78 -2
- data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +68 -4
- data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +68 -4
- data/rbi/growsurf_ruby/models/campaign.rbi +48 -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/commission_structure.rbi +34 -3
- data/rbi/growsurf_ruby/models/email_analytics.rbi +200 -0
- data/rbi/growsurf_ruby/models/participant_commission_list.rbi +48 -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 +99 -18
- data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +18 -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_reward.rbs +2 -1
- 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 +28 -0
- data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +20 -0
- data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +20 -0
- data/sig/growsurf_ruby/models/campaign.rbs +16 -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/commission_structure.rbs +16 -4
- data/sig/growsurf_ruby/models/email_analytics.rbs +92 -0
- data/sig/growsurf_ruby/models/participant_commission_list.rbs +16 -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/rewards.rbs +2 -0
- data/sig/growsurf_ruby/resources/campaign.rbs +53 -0
- metadata +54 -3
|
@@ -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
|
|
@@ -7,7 +7,7 @@ module GrowsurfRuby
|
|
|
7
7
|
approval_required: bool?,
|
|
8
8
|
duration: String?,
|
|
9
9
|
duration_in_months: Integer?,
|
|
10
|
-
event:
|
|
10
|
+
event: GrowsurfRuby::Models::CommissionStructure::event?,
|
|
11
11
|
has_intro: bool?,
|
|
12
12
|
has_max_amount: bool?,
|
|
13
13
|
hold_duration: Integer?,
|
|
@@ -35,7 +35,7 @@ module GrowsurfRuby
|
|
|
35
35
|
|
|
36
36
|
attr_accessor duration_in_months: Integer?
|
|
37
37
|
|
|
38
|
-
attr_accessor event:
|
|
38
|
+
attr_accessor event: GrowsurfRuby::Models::CommissionStructure::event?
|
|
39
39
|
|
|
40
40
|
attr_accessor has_intro: bool?
|
|
41
41
|
|
|
@@ -71,7 +71,7 @@ module GrowsurfRuby
|
|
|
71
71
|
?approval_required: bool?,
|
|
72
72
|
?duration: String?,
|
|
73
73
|
?duration_in_months: Integer?,
|
|
74
|
-
?event:
|
|
74
|
+
?event: GrowsurfRuby::Models::CommissionStructure::event?,
|
|
75
75
|
?has_intro: bool?,
|
|
76
76
|
?has_max_amount: bool?,
|
|
77
77
|
?hold_duration: Integer?,
|
|
@@ -94,7 +94,7 @@ module GrowsurfRuby
|
|
|
94
94
|
approval_required: bool?,
|
|
95
95
|
duration: String?,
|
|
96
96
|
duration_in_months: Integer?,
|
|
97
|
-
event:
|
|
97
|
+
event: GrowsurfRuby::Models::CommissionStructure::event?,
|
|
98
98
|
has_intro: bool?,
|
|
99
99
|
has_max_amount: bool?,
|
|
100
100
|
hold_duration: Integer?,
|
|
@@ -111,6 +111,18 @@ module GrowsurfRuby
|
|
|
111
111
|
type: GrowsurfRuby::Models::CommissionStructure::type_?
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
type event = :CLICK | :LEAD | :SALE
|
|
115
|
+
|
|
116
|
+
module Event
|
|
117
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
CLICK: :CLICK
|
|
120
|
+
LEAD: :LEAD
|
|
121
|
+
SALE: :SALE
|
|
122
|
+
|
|
123
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::CommissionStructure::event]
|
|
124
|
+
end
|
|
125
|
+
|
|
114
126
|
type type_ = :PERCENT | :FIXED
|
|
115
127
|
|
|
116
128
|
module Type
|
|
@@ -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
|
|
@@ -32,6 +32,7 @@ module GrowsurfRuby
|
|
|
32
32
|
amount: Integer?,
|
|
33
33
|
created_at: Integer,
|
|
34
34
|
currency_iso: String,
|
|
35
|
+
event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
|
|
35
36
|
referred_id: String,
|
|
36
37
|
referrer_id: String,
|
|
37
38
|
sale_amount: Integer?,
|
|
@@ -59,6 +60,8 @@ module GrowsurfRuby
|
|
|
59
60
|
|
|
60
61
|
attr_accessor currency_iso: String
|
|
61
62
|
|
|
63
|
+
attr_accessor event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event
|
|
64
|
+
|
|
62
65
|
attr_accessor referred_id: String
|
|
63
66
|
|
|
64
67
|
attr_accessor referrer_id: String
|
|
@@ -106,6 +109,7 @@ module GrowsurfRuby
|
|
|
106
109
|
amount: Integer?,
|
|
107
110
|
created_at: Integer,
|
|
108
111
|
currency_iso: String,
|
|
112
|
+
event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
|
|
109
113
|
referred_id: String,
|
|
110
114
|
referrer_id: String,
|
|
111
115
|
sale_amount: Integer?,
|
|
@@ -129,6 +133,7 @@ module GrowsurfRuby
|
|
|
129
133
|
amount: Integer?,
|
|
130
134
|
created_at: Integer,
|
|
131
135
|
currency_iso: String,
|
|
136
|
+
event: GrowsurfRuby::Models::ParticipantCommissionList::Commission::event,
|
|
132
137
|
referred_id: String,
|
|
133
138
|
referrer_id: String,
|
|
134
139
|
sale_amount: Integer?,
|
|
@@ -147,6 +152,17 @@ module GrowsurfRuby
|
|
|
147
152
|
sale_amount_in_campaign_currency: Integer?
|
|
148
153
|
}
|
|
149
154
|
|
|
155
|
+
type event = :LEAD | :SALE
|
|
156
|
+
|
|
157
|
+
module Event
|
|
158
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
159
|
+
|
|
160
|
+
LEAD: :LEAD
|
|
161
|
+
SALE: :SALE
|
|
162
|
+
|
|
163
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::ParticipantCommissionList::Commission::event]
|
|
164
|
+
end
|
|
165
|
+
|
|
150
166
|
type status = :PENDING | :APPROVED | :PAID | :REVERSED | :DELETED
|
|
151
167
|
|
|
152
168
|
module Status
|
|
@@ -43,7 +43,8 @@ module GrowsurfRuby
|
|
|
43
43
|
fx_error: String?,
|
|
44
44
|
issued_at: Integer,
|
|
45
45
|
provider: String?,
|
|
46
|
-
queued_at: Integer
|
|
46
|
+
queued_at: Integer,
|
|
47
|
+
reversed_at: Integer
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
class Payout < GrowsurfRuby::Internal::Type::BaseModel
|
|
@@ -87,6 +88,10 @@ module GrowsurfRuby
|
|
|
87
88
|
|
|
88
89
|
def queued_at=: (Integer) -> Integer
|
|
89
90
|
|
|
91
|
+
attr_reader reversed_at: Integer?
|
|
92
|
+
|
|
93
|
+
def reversed_at=: (Integer) -> Integer
|
|
94
|
+
|
|
90
95
|
def initialize: (
|
|
91
96
|
id: String,
|
|
92
97
|
amount: Integer,
|
|
@@ -103,7 +108,8 @@ module GrowsurfRuby
|
|
|
103
108
|
?fx_error: String?,
|
|
104
109
|
?issued_at: Integer,
|
|
105
110
|
?provider: String?,
|
|
106
|
-
?queued_at: Integer
|
|
111
|
+
?queued_at: Integer,
|
|
112
|
+
?reversed_at: Integer
|
|
107
113
|
) -> void
|
|
108
114
|
|
|
109
115
|
def to_hash: -> {
|
|
@@ -122,10 +128,11 @@ module GrowsurfRuby
|
|
|
122
128
|
fx_error: String?,
|
|
123
129
|
issued_at: Integer,
|
|
124
130
|
provider: String?,
|
|
125
|
-
queued_at: Integer
|
|
131
|
+
queued_at: Integer,
|
|
132
|
+
reversed_at: Integer
|
|
126
133
|
}
|
|
127
134
|
|
|
128
|
-
type status = :UPCOMING | :QUEUED | :ISSUED | :FAILED
|
|
135
|
+
type status = :UPCOMING | :QUEUED | :ISSUED | :FAILED | :REVERSED
|
|
129
136
|
|
|
130
137
|
module Status
|
|
131
138
|
extend GrowsurfRuby::Internal::Type::Enum
|
|
@@ -134,6 +141,7 @@ module GrowsurfRuby
|
|
|
134
141
|
QUEUED: :QUEUED
|
|
135
142
|
ISSUED: :ISSUED
|
|
136
143
|
FAILED: :FAILED
|
|
144
|
+
REVERSED: :REVERSED
|
|
137
145
|
|
|
138
146
|
def self?.values: -> ::Array[GrowsurfRuby::Models::ParticipantPayoutList::Payout::status]
|
|
139
147
|
end
|
|
@@ -1,22 +1,44 @@
|
|
|
1
1
|
module GrowsurfRuby
|
|
2
2
|
module Models
|
|
3
3
|
type reward_tax_valuation =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
fair_market_value_usd: Float?,
|
|
6
|
+
tax_character: GrowsurfRuby::Models::RewardTaxValuation::tax_character?
|
|
7
|
+
}
|
|
5
8
|
|
|
6
9
|
class RewardTaxValuation < GrowsurfRuby::Internal::Type::BaseModel
|
|
7
10
|
attr_accessor fair_market_value_usd: Float?
|
|
8
11
|
|
|
9
|
-
attr_accessor
|
|
12
|
+
attr_accessor tax_character: GrowsurfRuby::Models::RewardTaxValuation::tax_character?
|
|
10
13
|
|
|
11
14
|
def initialize: (
|
|
12
15
|
?fair_market_value_usd: Float?,
|
|
13
|
-
?
|
|
16
|
+
?tax_character: GrowsurfRuby::Models::RewardTaxValuation::tax_character?
|
|
14
17
|
) -> void
|
|
15
18
|
|
|
16
19
|
def to_hash: -> {
|
|
17
20
|
fair_market_value_usd: Float?,
|
|
18
|
-
|
|
21
|
+
tax_character: GrowsurfRuby::Models::RewardTaxValuation::tax_character?
|
|
19
22
|
}
|
|
23
|
+
|
|
24
|
+
type tax_character =
|
|
25
|
+
:NONEMPLOYEE_SERVICES
|
|
26
|
+
| :PRIZE_OR_AWARD
|
|
27
|
+
| :PURCHASE_REBATE
|
|
28
|
+
| :OTHER_INCOME
|
|
29
|
+
| :REVIEW_REQUIRED
|
|
30
|
+
|
|
31
|
+
module TaxCharacter
|
|
32
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
33
|
+
|
|
34
|
+
NONEMPLOYEE_SERVICES: :NONEMPLOYEE_SERVICES
|
|
35
|
+
PRIZE_OR_AWARD: :PRIZE_OR_AWARD
|
|
36
|
+
PURCHASE_REBATE: :PURCHASE_REBATE
|
|
37
|
+
OTHER_INCOME: :OTHER_INCOME
|
|
38
|
+
REVIEW_REQUIRED: :REVIEW_REQUIRED
|
|
39
|
+
|
|
40
|
+
def self?.values: -> ::Array[GrowsurfRuby::Models::RewardTaxValuation::tax_character]
|
|
41
|
+
end
|
|
20
42
|
end
|
|
21
43
|
end
|
|
22
44
|
end
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
module GrowsurfRuby
|
|
2
2
|
class AccountCreateParams = GrowsurfRuby::Models::AccountCreateParams
|
|
3
3
|
|
|
4
|
+
class AffiliateApplication = GrowsurfRuby::Models::AffiliateApplication
|
|
5
|
+
|
|
6
|
+
class AffiliateInvite = GrowsurfRuby::Models::AffiliateInvite
|
|
7
|
+
|
|
4
8
|
class Team = GrowsurfRuby::Models::Team
|
|
5
9
|
|
|
6
10
|
class TeamUpdateParams = GrowsurfRuby::Models::TeamUpdateParams
|
|
@@ -9,10 +13,16 @@ module GrowsurfRuby
|
|
|
9
13
|
|
|
10
14
|
class CampaignAPI = GrowsurfRuby::Models::CampaignAPI
|
|
11
15
|
|
|
16
|
+
class CampaignCreateAffiliateInviteParams = GrowsurfRuby::Models::CampaignCreateAffiliateInviteParams
|
|
17
|
+
|
|
12
18
|
class CampaignCreateMobileParticipantTokenParams = GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenParams
|
|
13
19
|
|
|
14
20
|
class CampaignCreateParams = GrowsurfRuby::Models::CampaignCreateParams
|
|
15
21
|
|
|
22
|
+
class CampaignListAffiliateApplicationsParams = GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams
|
|
23
|
+
|
|
24
|
+
class CampaignListAffiliateInvitesParams = GrowsurfRuby::Models::CampaignListAffiliateInvitesParams
|
|
25
|
+
|
|
16
26
|
class CampaignListCommissionsParams = GrowsurfRuby::Models::CampaignListCommissionsParams
|
|
17
27
|
|
|
18
28
|
class CampaignListLeaderboardParams = GrowsurfRuby::Models::CampaignListLeaderboardParams
|
|
@@ -25,10 +35,18 @@ module GrowsurfRuby
|
|
|
25
35
|
|
|
26
36
|
class CampaignListReferralsParams = GrowsurfRuby::Models::CampaignListReferralsParams
|
|
27
37
|
|
|
38
|
+
class CampaignResendAffiliateInviteParams = GrowsurfRuby::Models::CampaignResendAffiliateInviteParams
|
|
39
|
+
|
|
40
|
+
class CampaignRetrieveAffiliateApplicationParams = GrowsurfRuby::Models::CampaignRetrieveAffiliateApplicationParams
|
|
41
|
+
|
|
28
42
|
class CampaignRetrieveAnalyticsParams = GrowsurfRuby::Models::CampaignRetrieveAnalyticsParams
|
|
29
43
|
|
|
30
44
|
class CampaignRetrieveParams = GrowsurfRuby::Models::CampaignRetrieveParams
|
|
31
45
|
|
|
46
|
+
class CampaignReviewAffiliateApplicationParams = GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams
|
|
47
|
+
|
|
48
|
+
class CampaignRevokeAffiliateInviteParams = GrowsurfRuby::Models::CampaignRevokeAffiliateInviteParams
|
|
49
|
+
|
|
32
50
|
class CampaignUpdateParams = GrowsurfRuby::Models::CampaignUpdateParams
|
|
33
51
|
|
|
34
52
|
class CommissionStructure = GrowsurfRuby::Models::CommissionStructure
|
|
@@ -11,12 +11,12 @@ module GrowsurfRuby
|
|
|
11
11
|
def update: (
|
|
12
12
|
String participant_id_or_email,
|
|
13
13
|
id: String,
|
|
14
|
+
?affiliate_status: GrowsurfRuby::Models::Campaign::ParticipantUpdateParams::affiliate_status,
|
|
14
15
|
?email: String,
|
|
15
16
|
?first_name: String,
|
|
16
17
|
?last_name: String,
|
|
17
18
|
?metadata: ::Hash[Symbol, top],
|
|
18
19
|
?notes: String,
|
|
19
|
-
?paypal_email: String,
|
|
20
20
|
?referral_status: GrowsurfRuby::Models::Campaign::ParticipantUpdateParams::referral_status,
|
|
21
21
|
?referred_by: String,
|
|
22
22
|
?unsubscribed: bool,
|
|
@@ -42,6 +42,7 @@ module GrowsurfRuby
|
|
|
42
42
|
?fingerprint: String,
|
|
43
43
|
?first_name: String,
|
|
44
44
|
?ip_address: String,
|
|
45
|
+
?is_affiliate: bool,
|
|
45
46
|
?last_name: String,
|
|
46
47
|
?metadata: ::Hash[Symbol, top],
|
|
47
48
|
?mobile_instance_id: String,
|
|
@@ -186,12 +187,25 @@ module GrowsurfRuby
|
|
|
186
187
|
id: String,
|
|
187
188
|
?days: Integer,
|
|
188
189
|
?end_date: Integer,
|
|
189
|
-
?include:
|
|
190
|
+
?include: String,
|
|
190
191
|
?interval: GrowsurfRuby::Models::Campaign::ParticipantRetrieveAnalyticsParams::interval,
|
|
191
192
|
?start_date: Integer,
|
|
192
193
|
?request_options: GrowsurfRuby::request_opts
|
|
193
194
|
) -> GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse
|
|
194
195
|
|
|
196
|
+
def get_payout_destination: (
|
|
197
|
+
String participant_id_or_email,
|
|
198
|
+
id: String,
|
|
199
|
+
?request_options: GrowsurfRuby::request_opts
|
|
200
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse
|
|
201
|
+
|
|
202
|
+
def request_payout_destination_confirmation: (
|
|
203
|
+
String participant_id_or_email,
|
|
204
|
+
id: String,
|
|
205
|
+
provider: GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationParams::provider,
|
|
206
|
+
?request_options: GrowsurfRuby::request_opts
|
|
207
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse
|
|
208
|
+
|
|
195
209
|
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
196
210
|
end
|
|
197
211
|
end
|
|
@@ -14,6 +14,7 @@ module GrowsurfRuby
|
|
|
14
14
|
?conversions_required: Integer,
|
|
15
15
|
?coupon_code: String,
|
|
16
16
|
?description: String,
|
|
17
|
+
?event: GrowsurfRuby::Models::Campaign::RewardCreateParams::event,
|
|
17
18
|
?image_url: String,
|
|
18
19
|
?is_unlimited: bool,
|
|
19
20
|
?is_visible: bool,
|
|
@@ -40,6 +41,7 @@ module GrowsurfRuby
|
|
|
40
41
|
?conversions_required: Integer,
|
|
41
42
|
?coupon_code: String,
|
|
42
43
|
?description: String,
|
|
44
|
+
?event: GrowsurfRuby::Models::Campaign::RewardUpdateParams::event,
|
|
43
45
|
?image_url: String,
|
|
44
46
|
?is_unlimited: bool,
|
|
45
47
|
?is_visible: bool,
|
|
@@ -52,6 +52,14 @@ module GrowsurfRuby
|
|
|
52
52
|
?request_options: GrowsurfRuby::request_opts
|
|
53
53
|
) -> GrowsurfRuby::CampaignAPI
|
|
54
54
|
|
|
55
|
+
def create_affiliate_invite: (
|
|
56
|
+
String id,
|
|
57
|
+
email: String,
|
|
58
|
+
?first_name: String,
|
|
59
|
+
?last_name: String,
|
|
60
|
+
?request_options: GrowsurfRuby::request_opts
|
|
61
|
+
) -> GrowsurfRuby::AffiliateInvite
|
|
62
|
+
|
|
55
63
|
def create_mobile_participant_token: (
|
|
56
64
|
String id,
|
|
57
65
|
email: String,
|
|
@@ -66,6 +74,22 @@ module GrowsurfRuby
|
|
|
66
74
|
?request_options: GrowsurfRuby::request_opts
|
|
67
75
|
) -> GrowsurfRuby::Models::CampaignCreateMobileParticipantTokenResponse
|
|
68
76
|
|
|
77
|
+
def list_affiliate_applications: (
|
|
78
|
+
String id,
|
|
79
|
+
?limit: Integer,
|
|
80
|
+
?offset: Integer,
|
|
81
|
+
?status: GrowsurfRuby::Models::CampaignListAffiliateApplicationsParams::status,
|
|
82
|
+
?request_options: GrowsurfRuby::request_opts
|
|
83
|
+
) -> GrowsurfRuby::Models::AffiliateApplicationListResponse
|
|
84
|
+
|
|
85
|
+
def list_affiliate_invites: (
|
|
86
|
+
String id,
|
|
87
|
+
?limit: Integer,
|
|
88
|
+
?offset: Integer,
|
|
89
|
+
?status: GrowsurfRuby::Models::CampaignListAffiliateInvitesParams::status,
|
|
90
|
+
?request_options: GrowsurfRuby::request_opts
|
|
91
|
+
) -> GrowsurfRuby::Models::AffiliateInviteListResponse
|
|
92
|
+
|
|
69
93
|
def list_commissions: (
|
|
70
94
|
String id,
|
|
71
95
|
?limit: Integer,
|
|
@@ -112,6 +136,18 @@ module GrowsurfRuby
|
|
|
112
136
|
?request_options: GrowsurfRuby::request_opts
|
|
113
137
|
) -> GrowsurfRuby::ReferralList
|
|
114
138
|
|
|
139
|
+
def resend_affiliate_invite: (
|
|
140
|
+
String invite_id,
|
|
141
|
+
id: String,
|
|
142
|
+
?request_options: GrowsurfRuby::request_opts
|
|
143
|
+
) -> GrowsurfRuby::AffiliateInvite
|
|
144
|
+
|
|
145
|
+
def retrieve_affiliate_application: (
|
|
146
|
+
String application_id,
|
|
147
|
+
id: String,
|
|
148
|
+
?request_options: GrowsurfRuby::request_opts
|
|
149
|
+
) -> GrowsurfRuby::AffiliateApplication
|
|
150
|
+
|
|
115
151
|
def retrieve_analytics: (
|
|
116
152
|
String id,
|
|
117
153
|
?days: Integer,
|
|
@@ -122,6 +158,23 @@ module GrowsurfRuby
|
|
|
122
158
|
?request_options: GrowsurfRuby::request_opts
|
|
123
159
|
) -> GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse
|
|
124
160
|
|
|
161
|
+
def review_affiliate_application: (
|
|
162
|
+
String application_id,
|
|
163
|
+
id: String,
|
|
164
|
+
?allow_immediate_reapply: bool,
|
|
165
|
+
?reapply_allowed_at: Integer,
|
|
166
|
+
?rejection_reason: String,
|
|
167
|
+
?review_note: String,
|
|
168
|
+
?status: GrowsurfRuby::Models::CampaignReviewAffiliateApplicationParams::status,
|
|
169
|
+
?request_options: GrowsurfRuby::request_opts
|
|
170
|
+
) -> GrowsurfRuby::AffiliateApplication
|
|
171
|
+
|
|
172
|
+
def revoke_affiliate_invite: (
|
|
173
|
+
String invite_id,
|
|
174
|
+
id: String,
|
|
175
|
+
?request_options: GrowsurfRuby::request_opts
|
|
176
|
+
) -> GrowsurfRuby::AffiliateInvite
|
|
177
|
+
|
|
125
178
|
def initialize: (client: GrowsurfRuby::Client) -> void
|
|
126
179
|
end
|
|
127
180
|
end
|