growsurf-ruby 1.3.0 → 1.5.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 +29 -0
- data/README.md +10 -7
- data/lib/growsurf_ruby/internal/transport/base_client.rb +6 -1
- data/lib/growsurf_ruby/internal/type/base_model.rb +26 -0
- data/lib/growsurf_ruby/internal/type/base_page.rb +6 -0
- data/lib/growsurf_ruby/models/account_create_response.rb +3 -3
- data/lib/growsurf_ruby/models/analytics_availability.rb +16 -0
- data/lib/growsurf_ruby/models/analytics_unavailable_reason.rb +20 -0
- data/lib/growsurf_ruby/models/campaign/delete_program_resource_response.rb +12 -0
- data/lib/growsurf_ruby/models/campaign/integration.rb +69 -0
- data/lib/growsurf_ruby/models/campaign/integration_list_response.rb +24 -0
- data/lib/growsurf_ruby/models/campaign/participant_activation_analytics.rb +75 -0
- data/lib/growsurf_ruby/models/campaign/participant_analytics_response.rb +11 -0
- data/lib/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rb +17 -17
- data/lib/growsurf_ruby/models/campaign/participant_record_transaction_params.rb +9 -1
- data/lib/growsurf_ruby/models/campaign/participant_refund_transaction_params.rb +17 -1
- data/lib/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rb +8 -8
- data/lib/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rb +15 -11
- data/lib/growsurf_ruby/models/campaign/participant_reward.rb +16 -3
- data/lib/growsurf_ruby/models/campaign/program_resource.rb +51 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_create_params.rb +32 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_delete_params.rb +14 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_list_response.rb +12 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_update_params.rb +35 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_upload_result.rb +33 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_upload_ticket.rb +26 -0
- data/lib/growsurf_ruby/models/campaign/program_resource_upload_ticket_params.rb +17 -0
- data/lib/growsurf_ruby/models/campaign/reward.rb +22 -1
- data/lib/growsurf_ruby/models/campaign/reward_create_params.rb +32 -9
- data/lib/growsurf_ruby/models/campaign/reward_update_params.rb +32 -9
- data/lib/growsurf_ruby/models/campaign.rb +25 -2
- data/lib/growsurf_ruby/models/campaign_activation_analytics_response.rb +186 -0
- data/lib/growsurf_ruby/models/campaign_create_params.rb +37 -1
- data/lib/growsurf_ruby/models/campaign_engagement_analytics.rb +174 -0
- data/lib/growsurf_ruby/models/campaign_retrieve_activation_analytics_params.rb +35 -0
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_params.rb +37 -4
- data/lib/growsurf_ruby/models/campaign_retrieve_analytics_response.rb +3 -0
- data/lib/growsurf_ruby/models/commission_structure.rb +19 -3
- data/lib/growsurf_ruby/models/participant_commission_list.rb +24 -6
- data/lib/growsurf_ruby/models/participant_payout_list.rb +5 -5
- data/lib/growsurf_ruby/models.rb +7 -0
- data/lib/growsurf_ruby/resources/account.rb +17 -11
- data/lib/growsurf_ruby/resources/campaign/design.rb +11 -5
- data/lib/growsurf_ruby/resources/campaign/emails.rb +2 -1
- data/lib/growsurf_ruby/resources/campaign/integrations.rb +41 -0
- data/lib/growsurf_ruby/resources/campaign/participant.rb +28 -25
- data/lib/growsurf_ruby/resources/campaign/program_resources.rb +112 -0
- data/lib/growsurf_ruby/resources/campaign/rewards.rb +12 -6
- data/lib/growsurf_ruby/resources/campaign.rb +53 -7
- data/lib/growsurf_ruby/resources/team.rb +7 -5
- data/lib/growsurf_ruby/version.rb +1 -1
- data/lib/growsurf_ruby.rb +19 -0
- data/rbi/growsurf_ruby/internal/type/base_model.rbi +10 -0
- data/rbi/growsurf_ruby/internal/type/base_page.rbi +3 -0
- data/rbi/growsurf_ruby/models/analytics_availability.rbi +19 -0
- data/rbi/growsurf_ruby/models/analytics_unavailable_reason.rbi +23 -0
- data/rbi/growsurf_ruby/models/campaign/delete_program_resource_response.rbi +33 -0
- data/rbi/growsurf_ruby/models/campaign/integration.rbi +93 -0
- data/rbi/growsurf_ruby/models/campaign/integration_list_response.rbi +46 -0
- data/rbi/growsurf_ruby/models/campaign/participant_activation_analytics.rbi +133 -0
- data/rbi/growsurf_ruby/models/campaign/participant_analytics_response.rbi +35 -0
- data/rbi/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbi +17 -23
- data/rbi/growsurf_ruby/models/campaign/participant_record_transaction_params.rbi +18 -0
- data/rbi/growsurf_ruby/models/campaign/participant_refund_transaction_params.rbi +18 -0
- data/rbi/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rbi +7 -9
- data/rbi/growsurf_ruby/models/campaign/participant_retrieve_analytics_params.rbi +16 -10
- data/rbi/growsurf_ruby/models/campaign/participant_reward.rbi +29 -6
- data/rbi/growsurf_ruby/models/campaign/program_resource.rbi +186 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_create_params.rbi +95 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_delete_params.rbi +37 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_list_response.rbi +29 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_update_params.rbi +105 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_upload_result.rbi +94 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_upload_ticket.rbi +57 -0
- data/rbi/growsurf_ruby/models/campaign/program_resource_upload_ticket_params.rbi +53 -0
- data/rbi/growsurf_ruby/models/campaign/reward.rbi +55 -0
- data/rbi/growsurf_ruby/models/campaign/reward_create_params.rbi +97 -24
- data/rbi/growsurf_ruby/models/campaign/reward_update_params.rbi +97 -24
- data/rbi/growsurf_ruby/models/campaign.rbi +52 -3
- data/rbi/growsurf_ruby/models/campaign_activation_analytics_response.rbi +325 -0
- data/rbi/growsurf_ruby/models/campaign_create_params.rbi +91 -0
- data/rbi/growsurf_ruby/models/campaign_engagement_analytics.rbi +369 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_activation_analytics_params.rbi +59 -0
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_params.rbi +56 -3
- data/rbi/growsurf_ruby/models/campaign_retrieve_analytics_response.rbi +27 -7
- data/rbi/growsurf_ruby/models/commission_structure.rbi +36 -3
- data/rbi/growsurf_ruby/models/participant_commission_list.rbi +63 -15
- data/rbi/growsurf_ruby/models/participant_payout_list.rbi +15 -15
- data/rbi/growsurf_ruby/models.rbi +7 -0
- data/rbi/growsurf_ruby/resources/account.rbi +9 -6
- data/rbi/growsurf_ruby/resources/campaign/design.rbi +32 -4
- data/rbi/growsurf_ruby/resources/campaign/emails.rbi +2 -1
- data/rbi/growsurf_ruby/resources/campaign/integrations.rbi +35 -0
- data/rbi/growsurf_ruby/resources/campaign/participant.rbi +38 -24
- data/rbi/growsurf_ruby/resources/campaign/program_resources.rbi +116 -0
- data/rbi/growsurf_ruby/resources/campaign/rewards.rbi +35 -16
- data/rbi/growsurf_ruby/resources/campaign.rbi +53 -5
- data/rbi/growsurf_ruby/resources/team.rbi +7 -5
- data/sig/growsurf_ruby/internal/type/base_model.rbs +6 -0
- data/sig/growsurf_ruby/internal/type/base_page.rbs +2 -0
- data/sig/growsurf_ruby/models/analytics_availability.rbs +15 -0
- data/sig/growsurf_ruby/models/analytics_unavailable_reason.rbs +26 -0
- data/sig/growsurf_ruby/models/campaign/delete_program_resource_response.rbs +14 -0
- data/sig/growsurf_ruby/models/campaign/integration.rbs +47 -0
- data/sig/growsurf_ruby/models/campaign/integration_list_response.rbs +20 -0
- data/sig/growsurf_ruby/models/campaign/participant_activation_analytics.rbs +96 -0
- data/sig/growsurf_ruby/models/campaign/participant_analytics_response.rbs +22 -1
- data/sig/growsurf_ruby/models/campaign/participant_get_payout_destination_response.rbs +17 -22
- data/sig/growsurf_ruby/models/campaign/participant_record_transaction_params.rbs +15 -1
- data/sig/growsurf_ruby/models/campaign/participant_refund_transaction_params.rbs +15 -1
- data/sig/growsurf_ruby/models/campaign/participant_request_payout_destination_confirmation_response.rbs +8 -10
- data/sig/growsurf_ruby/models/campaign/participant_reward.rbs +24 -9
- data/sig/growsurf_ruby/models/campaign/program_resource.rbs +94 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_create_params.rbs +45 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_delete_params.rbs +22 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_list_response.rbs +14 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_update_params.rbs +48 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_upload_result.rbs +58 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_upload_ticket.rbs +29 -0
- data/sig/growsurf_ruby/models/campaign/program_resource_upload_ticket_params.rbs +29 -0
- data/sig/growsurf_ruby/models/campaign/reward.rbs +16 -0
- data/sig/growsurf_ruby/models/campaign/reward_create_params.rbs +54 -34
- data/sig/growsurf_ruby/models/campaign/reward_update_params.rbs +54 -34
- data/sig/growsurf_ruby/models/campaign.rbs +23 -5
- data/sig/growsurf_ruby/models/campaign_activation_analytics_response.rbs +202 -0
- data/sig/growsurf_ruby/models/campaign_create_params.rbs +29 -0
- data/sig/growsurf_ruby/models/campaign_engagement_analytics.rbs +186 -0
- data/sig/growsurf_ruby/models/campaign_retrieve_activation_analytics_params.rbs +45 -0
- data/sig/growsurf_ruby/models/campaign_retrieve_analytics_params.rbs +30 -1
- data/sig/growsurf_ruby/models/campaign_retrieve_analytics_response.rbs +21 -3
- data/sig/growsurf_ruby/models/commission_structure.rbs +16 -4
- data/sig/growsurf_ruby/models/participant_commission_list.rbs +36 -20
- data/sig/growsurf_ruby/models/participant_payout_list.rbs +20 -20
- data/sig/growsurf_ruby/models.rbs +6 -0
- data/sig/growsurf_ruby/resources/campaign/design.rbs +19 -0
- data/sig/growsurf_ruby/resources/campaign/integrations.rbs +14 -0
- data/sig/growsurf_ruby/resources/campaign/participant.rbs +4 -0
- data/sig/growsurf_ruby/resources/campaign/program_resources.rbs +58 -0
- data/sig/growsurf_ruby/resources/campaign/rewards.rbs +14 -12
- data/sig/growsurf_ruby/resources/campaign.rbs +17 -0
- metadata +59 -2
|
@@ -6,6 +6,7 @@ module GrowsurfRuby
|
|
|
6
6
|
analytics: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Analytics,
|
|
7
7
|
ranks: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Ranks,
|
|
8
8
|
share_count: ::Hash[Symbol, Integer],
|
|
9
|
+
activation: GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics,
|
|
9
10
|
end_date: Integer,
|
|
10
11
|
series: ::Array[GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Series],
|
|
11
12
|
start_date: Integer
|
|
@@ -18,6 +19,12 @@ module GrowsurfRuby
|
|
|
18
19
|
|
|
19
20
|
attr_accessor share_count: ::Hash[Symbol, Integer]
|
|
20
21
|
|
|
22
|
+
attr_reader activation: GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics?
|
|
23
|
+
|
|
24
|
+
def activation=: (
|
|
25
|
+
GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics
|
|
26
|
+
) -> GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics
|
|
27
|
+
|
|
21
28
|
attr_reader end_date: Integer?
|
|
22
29
|
|
|
23
30
|
def end_date=: (Integer) -> Integer
|
|
@@ -36,6 +43,7 @@ module GrowsurfRuby
|
|
|
36
43
|
analytics: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Analytics,
|
|
37
44
|
ranks: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Ranks,
|
|
38
45
|
share_count: ::Hash[Symbol, Integer],
|
|
46
|
+
?activation: GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics,
|
|
39
47
|
?end_date: Integer,
|
|
40
48
|
?series: ::Array[GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Series],
|
|
41
49
|
?start_date: Integer
|
|
@@ -45,6 +53,7 @@ module GrowsurfRuby
|
|
|
45
53
|
analytics: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Analytics,
|
|
46
54
|
ranks: GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Ranks,
|
|
47
55
|
share_count: ::Hash[Symbol, Integer],
|
|
56
|
+
activation: GrowsurfRuby::Models::Campaign::ParticipantActivationAnalytics,
|
|
48
57
|
end_date: Integer,
|
|
49
58
|
series: ::Array[GrowsurfRuby::Models::Campaign::ParticipantAnalyticsResponse::Series],
|
|
50
59
|
start_date: Integer
|
|
@@ -94,7 +103,9 @@ module GrowsurfRuby
|
|
|
94
103
|
|
|
95
104
|
attr_reader reward_status: GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::RewardStatus?
|
|
96
105
|
|
|
97
|
-
def reward_status=: (
|
|
106
|
+
def reward_status=: (
|
|
107
|
+
GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::RewardStatus
|
|
108
|
+
) -> GrowsurfRuby::Models::CampaignRetrieveAnalyticsResponse::StatusCounts::RewardStatus
|
|
98
109
|
|
|
99
110
|
attr_reader referral_revenue: Integer?
|
|
100
111
|
|
|
@@ -195,12 +206,14 @@ module GrowsurfRuby
|
|
|
195
206
|
participants: Integer,
|
|
196
207
|
period_start: Integer,
|
|
197
208
|
pinterest_shares: Integer,
|
|
209
|
+
portal_views: Integer?,
|
|
198
210
|
qrcode_shares: Integer,
|
|
199
211
|
reddit_shares: Integer,
|
|
200
212
|
referral_credit_expireds: Integer,
|
|
201
213
|
referral_credit_pendings: Integer,
|
|
202
214
|
referrals: Integer,
|
|
203
215
|
sms_shares: Integer,
|
|
216
|
+
share_actions: Integer?,
|
|
204
217
|
telegram_shares: Integer,
|
|
205
218
|
threads_shares: Integer,
|
|
206
219
|
total_commission_count: Integer,
|
|
@@ -267,6 +280,8 @@ module GrowsurfRuby
|
|
|
267
280
|
|
|
268
281
|
def pinterest_shares=: (Integer) -> Integer
|
|
269
282
|
|
|
283
|
+
attr_accessor portal_views: Integer?
|
|
284
|
+
|
|
270
285
|
attr_reader qrcode_shares: Integer?
|
|
271
286
|
|
|
272
287
|
def qrcode_shares=: (Integer) -> Integer
|
|
@@ -291,6 +306,8 @@ module GrowsurfRuby
|
|
|
291
306
|
|
|
292
307
|
def sms_shares=: (Integer) -> Integer
|
|
293
308
|
|
|
309
|
+
attr_accessor share_actions: Integer?
|
|
310
|
+
|
|
294
311
|
attr_reader telegram_shares: Integer?
|
|
295
312
|
|
|
296
313
|
def telegram_shares=: (Integer) -> Integer
|
|
@@ -349,12 +366,14 @@ module GrowsurfRuby
|
|
|
349
366
|
?participants: Integer,
|
|
350
367
|
?period_start: Integer,
|
|
351
368
|
?pinterest_shares: Integer,
|
|
369
|
+
?portal_views: Integer?,
|
|
352
370
|
?qrcode_shares: Integer,
|
|
353
371
|
?reddit_shares: Integer,
|
|
354
372
|
?referral_credit_expireds: Integer,
|
|
355
373
|
?referral_credit_pendings: Integer,
|
|
356
374
|
?referrals: Integer,
|
|
357
375
|
?sms_shares: Integer,
|
|
376
|
+
?share_actions: Integer?,
|
|
358
377
|
?telegram_shares: Integer,
|
|
359
378
|
?threads_shares: Integer,
|
|
360
379
|
?total_commission_count: Integer,
|
|
@@ -382,12 +401,14 @@ module GrowsurfRuby
|
|
|
382
401
|
participants: Integer,
|
|
383
402
|
period_start: Integer,
|
|
384
403
|
pinterest_shares: Integer,
|
|
404
|
+
portal_views: Integer?,
|
|
385
405
|
qrcode_shares: Integer,
|
|
386
406
|
reddit_shares: Integer,
|
|
387
407
|
referral_credit_expireds: Integer,
|
|
388
408
|
referral_credit_pendings: Integer,
|
|
389
409
|
referrals: Integer,
|
|
390
410
|
sms_shares: Integer,
|
|
411
|
+
share_actions: Integer?,
|
|
391
412
|
telegram_shares: Integer,
|
|
392
413
|
threads_shares: Integer,
|
|
393
414
|
total_commission_count: Integer,
|
|
@@ -11,22 +11,20 @@ module GrowsurfRuby
|
|
|
11
11
|
class ParticipantGetPayoutDestinationResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor active_provider: String?
|
|
13
13
|
|
|
14
|
-
attr_reader destinations: ::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination]
|
|
14
|
+
attr_reader destinations: ::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination]
|
|
15
15
|
|
|
16
16
|
def destinations=: (
|
|
17
17
|
::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination]
|
|
18
18
|
) -> ::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination]
|
|
19
19
|
|
|
20
|
-
attr_reader enabled_providers: ::Array[String]
|
|
20
|
+
attr_reader enabled_providers: ::Array[String]
|
|
21
21
|
|
|
22
|
-
def enabled_providers=: (
|
|
23
|
-
::Array[String]
|
|
24
|
-
) -> ::Array[String]
|
|
22
|
+
def enabled_providers=: (::Array[String]) -> ::Array[String]
|
|
25
23
|
|
|
26
24
|
def initialize: (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
active_provider: String?,
|
|
26
|
+
destinations: ::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination],
|
|
27
|
+
enabled_providers: ::Array[String]
|
|
30
28
|
) -> void
|
|
31
29
|
|
|
32
30
|
def to_hash: -> {
|
|
@@ -55,28 +53,26 @@ module GrowsurfRuby
|
|
|
55
53
|
|
|
56
54
|
attr_accessor needs_repair_reason: String?
|
|
57
55
|
|
|
58
|
-
attr_reader provider: String
|
|
56
|
+
attr_reader provider: String
|
|
59
57
|
|
|
60
|
-
def provider=: (
|
|
61
|
-
String
|
|
62
|
-
) -> String
|
|
58
|
+
def provider=: (String) -> String
|
|
63
59
|
|
|
64
|
-
attr_reader provider_display_name: String
|
|
60
|
+
attr_reader provider_display_name: String
|
|
65
61
|
|
|
66
62
|
def provider_display_name=: (String) -> String
|
|
67
63
|
|
|
68
|
-
attr_reader status: String
|
|
64
|
+
attr_reader status: String
|
|
69
65
|
|
|
70
66
|
def status=: (String) -> String
|
|
71
67
|
|
|
72
68
|
def initialize: (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
claim_email: String?,
|
|
70
|
+
confirmed_at: Integer?,
|
|
71
|
+
legal_entity_type: GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination::legal_entity_type?,
|
|
72
|
+
needs_repair_reason: String?,
|
|
73
|
+
provider: String,
|
|
74
|
+
provider_display_name: String,
|
|
75
|
+
status: String
|
|
80
76
|
) -> void
|
|
81
77
|
|
|
82
78
|
def to_hash: -> {
|
|
@@ -99,7 +95,6 @@ module GrowsurfRuby
|
|
|
99
95
|
|
|
100
96
|
def self?.values: -> ::Array[GrowsurfRuby::Models::Campaign::ParticipantGetPayoutDestinationResponse::Destination::legal_entity_type]
|
|
101
97
|
end
|
|
102
|
-
|
|
103
98
|
end
|
|
104
99
|
end
|
|
105
100
|
end
|
|
@@ -27,7 +27,9 @@ module GrowsurfRuby
|
|
|
27
27
|
total_tax_amount: Integer,
|
|
28
28
|
total_tax_amounts: ::Array[::Hash[Symbol, top]],
|
|
29
29
|
total_taxes: ::Array[::Hash[Symbol, top]],
|
|
30
|
-
transaction_id: String
|
|
30
|
+
transaction_id: String,
|
|
31
|
+
payment_provider: String,
|
|
32
|
+
test_mode: bool
|
|
31
33
|
}
|
|
32
34
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
33
35
|
|
|
@@ -131,6 +133,14 @@ module GrowsurfRuby
|
|
|
131
133
|
|
|
132
134
|
def transaction_id=: (String) -> String
|
|
133
135
|
|
|
136
|
+
attr_reader payment_provider: String?
|
|
137
|
+
|
|
138
|
+
def payment_provider=: (String) -> String
|
|
139
|
+
|
|
140
|
+
attr_reader test_mode: bool?
|
|
141
|
+
|
|
142
|
+
def test_mode=: (bool) -> bool
|
|
143
|
+
|
|
134
144
|
def initialize: (
|
|
135
145
|
id: String,
|
|
136
146
|
participant_id_or_email: String,
|
|
@@ -157,6 +167,8 @@ module GrowsurfRuby
|
|
|
157
167
|
?total_tax_amounts: ::Array[::Hash[Symbol, top]],
|
|
158
168
|
?total_taxes: ::Array[::Hash[Symbol, top]],
|
|
159
169
|
?transaction_id: String,
|
|
170
|
+
?payment_provider: String,
|
|
171
|
+
?test_mode: bool,
|
|
160
172
|
?request_options: GrowsurfRuby::request_opts
|
|
161
173
|
) -> void
|
|
162
174
|
|
|
@@ -186,6 +198,8 @@ module GrowsurfRuby
|
|
|
186
198
|
total_tax_amounts: ::Array[::Hash[Symbol, top]],
|
|
187
199
|
total_taxes: ::Array[::Hash[Symbol, top]],
|
|
188
200
|
transaction_id: String,
|
|
201
|
+
payment_provider: String,
|
|
202
|
+
test_mode: bool,
|
|
189
203
|
request_options: GrowsurfRuby::RequestOptions
|
|
190
204
|
}
|
|
191
205
|
end
|
|
@@ -19,7 +19,9 @@ module GrowsurfRuby
|
|
|
19
19
|
refund_amount: Integer,
|
|
20
20
|
refund_id: String,
|
|
21
21
|
refund_status: String,
|
|
22
|
-
transaction_id: String
|
|
22
|
+
transaction_id: String,
|
|
23
|
+
payment_provider: String,
|
|
24
|
+
test_mode: bool
|
|
23
25
|
}
|
|
24
26
|
& GrowsurfRuby::Internal::Type::request_parameters
|
|
25
27
|
|
|
@@ -93,6 +95,14 @@ module GrowsurfRuby
|
|
|
93
95
|
|
|
94
96
|
def transaction_id=: (String) -> String
|
|
95
97
|
|
|
98
|
+
attr_reader payment_provider: String?
|
|
99
|
+
|
|
100
|
+
def payment_provider=: (String) -> String
|
|
101
|
+
|
|
102
|
+
attr_reader test_mode: bool?
|
|
103
|
+
|
|
104
|
+
def test_mode=: (bool) -> bool
|
|
105
|
+
|
|
96
106
|
def initialize: (
|
|
97
107
|
id: String,
|
|
98
108
|
participant_id_or_email: String,
|
|
@@ -111,6 +121,8 @@ module GrowsurfRuby
|
|
|
111
121
|
?refund_id: String,
|
|
112
122
|
?refund_status: String,
|
|
113
123
|
?transaction_id: String,
|
|
124
|
+
?payment_provider: String,
|
|
125
|
+
?test_mode: bool,
|
|
114
126
|
?request_options: GrowsurfRuby::request_opts
|
|
115
127
|
) -> void
|
|
116
128
|
|
|
@@ -132,6 +144,8 @@ module GrowsurfRuby
|
|
|
132
144
|
refund_id: String,
|
|
133
145
|
refund_status: String,
|
|
134
146
|
transaction_id: String,
|
|
147
|
+
payment_provider: String,
|
|
148
|
+
test_mode: bool,
|
|
135
149
|
request_options: GrowsurfRuby::RequestOptions
|
|
136
150
|
}
|
|
137
151
|
|
|
@@ -12,27 +12,25 @@ module GrowsurfRuby
|
|
|
12
12
|
class ParticipantRequestPayoutDestinationConfirmationResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
13
13
|
attr_accessor expires_at: Integer?
|
|
14
14
|
|
|
15
|
-
attr_reader provider: String
|
|
15
|
+
attr_reader provider: String
|
|
16
16
|
|
|
17
|
-
def provider=: (
|
|
18
|
-
String
|
|
19
|
-
) -> String
|
|
17
|
+
def provider=: (String) -> String
|
|
20
18
|
|
|
21
|
-
attr_reader provider_display_name: String
|
|
19
|
+
attr_reader provider_display_name: String
|
|
22
20
|
|
|
23
21
|
def provider_display_name=: (String) -> String
|
|
24
22
|
|
|
25
|
-
attr_reader status: GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse::status
|
|
23
|
+
attr_reader status: GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse::status
|
|
26
24
|
|
|
27
25
|
def status=: (
|
|
28
26
|
GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse::status
|
|
29
27
|
) -> GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse::status
|
|
30
28
|
|
|
31
29
|
def initialize: (
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
expires_at: Integer?,
|
|
31
|
+
provider: String,
|
|
32
|
+
provider_display_name: String,
|
|
33
|
+
status: GrowsurfRuby::Models::Campaign::ParticipantRequestPayoutDestinationConfirmationResponse::status
|
|
36
34
|
) -> void
|
|
37
35
|
|
|
38
36
|
def to_hash: -> {
|
|
@@ -7,9 +7,11 @@ module GrowsurfRuby
|
|
|
7
7
|
reward_id: String,
|
|
8
8
|
status: GrowsurfRuby::Models::Campaign::ParticipantReward::status,
|
|
9
9
|
approved: bool,
|
|
10
|
-
approved_at: Integer
|
|
10
|
+
approved_at: Integer?,
|
|
11
|
+
amount: Float?,
|
|
11
12
|
commission_structure: GrowsurfRuby::CommissionStructure?,
|
|
12
|
-
|
|
13
|
+
currency_iso: String?,
|
|
14
|
+
fulfilled_at: Integer?,
|
|
13
15
|
is_available: bool,
|
|
14
16
|
is_fulfilled: bool,
|
|
15
17
|
is_referrer: bool,
|
|
@@ -31,13 +33,21 @@ module GrowsurfRuby
|
|
|
31
33
|
|
|
32
34
|
attr_reader approved_at: Integer?
|
|
33
35
|
|
|
34
|
-
def approved_at=: (Integer) -> Integer
|
|
36
|
+
def approved_at=: (Integer?) -> Integer?
|
|
37
|
+
|
|
38
|
+
attr_reader amount: Float?
|
|
39
|
+
|
|
40
|
+
def amount=: (Float?) -> Float?
|
|
35
41
|
|
|
36
42
|
attr_accessor commission_structure: GrowsurfRuby::CommissionStructure?
|
|
37
43
|
|
|
44
|
+
attr_reader currency_iso: String?
|
|
45
|
+
|
|
46
|
+
def currency_iso=: (String?) -> String?
|
|
47
|
+
|
|
38
48
|
attr_reader fulfilled_at: Integer?
|
|
39
49
|
|
|
40
|
-
def fulfilled_at=: (Integer) -> Integer
|
|
50
|
+
def fulfilled_at=: (Integer?) -> Integer?
|
|
41
51
|
|
|
42
52
|
attr_reader is_available: bool?
|
|
43
53
|
|
|
@@ -68,9 +78,11 @@ module GrowsurfRuby
|
|
|
68
78
|
reward_id: String,
|
|
69
79
|
status: GrowsurfRuby::Models::Campaign::ParticipantReward::status,
|
|
70
80
|
?approved: bool,
|
|
71
|
-
?approved_at: Integer
|
|
81
|
+
?approved_at: Integer?,
|
|
82
|
+
?amount: Float?,
|
|
72
83
|
?commission_structure: GrowsurfRuby::CommissionStructure?,
|
|
73
|
-
?
|
|
84
|
+
?currency_iso: String?,
|
|
85
|
+
?fulfilled_at: Integer?,
|
|
74
86
|
?is_available: bool,
|
|
75
87
|
?is_fulfilled: bool,
|
|
76
88
|
?is_referrer: bool,
|
|
@@ -84,9 +96,11 @@ module GrowsurfRuby
|
|
|
84
96
|
reward_id: String,
|
|
85
97
|
status: GrowsurfRuby::Models::Campaign::ParticipantReward::status,
|
|
86
98
|
approved: bool,
|
|
87
|
-
approved_at: Integer
|
|
99
|
+
approved_at: Integer?,
|
|
100
|
+
amount: Float?,
|
|
88
101
|
commission_structure: GrowsurfRuby::CommissionStructure?,
|
|
89
|
-
|
|
102
|
+
currency_iso: String?,
|
|
103
|
+
fulfilled_at: Integer?,
|
|
90
104
|
is_available: bool,
|
|
91
105
|
is_fulfilled: bool,
|
|
92
106
|
is_referrer: bool,
|
|
@@ -95,13 +109,14 @@ module GrowsurfRuby
|
|
|
95
109
|
unread: bool
|
|
96
110
|
}
|
|
97
111
|
|
|
98
|
-
type status = :PENDING | :FULFILLED
|
|
112
|
+
type status = :PENDING | :FULFILLED | :CANCELLED
|
|
99
113
|
|
|
100
114
|
module Status
|
|
101
115
|
extend GrowsurfRuby::Internal::Type::Enum
|
|
102
116
|
|
|
103
117
|
PENDING: :PENDING
|
|
104
118
|
FULFILLED: :FULFILLED
|
|
119
|
+
CANCELLED: :CANCELLED
|
|
105
120
|
|
|
106
121
|
def self?.values: -> ::Array[GrowsurfRuby::Models::Campaign::ParticipantReward::status]
|
|
107
122
|
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_file =
|
|
5
|
+
{
|
|
6
|
+
file_name: String,
|
|
7
|
+
mime_type: String,
|
|
8
|
+
bytes: Integer,
|
|
9
|
+
format: String,
|
|
10
|
+
moderation_status: ProgramResourceFile::moderation_status
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ProgramResourceFile < GrowsurfRuby::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor file_name: String
|
|
15
|
+
attr_accessor mime_type: String
|
|
16
|
+
attr_accessor bytes: Integer
|
|
17
|
+
attr_accessor format: String
|
|
18
|
+
attr_accessor moderation_status: moderation_status
|
|
19
|
+
def initialize: (
|
|
20
|
+
file_name: String,
|
|
21
|
+
mime_type: String,
|
|
22
|
+
bytes: Integer,
|
|
23
|
+
format: String,
|
|
24
|
+
moderation_status: moderation_status
|
|
25
|
+
) -> void
|
|
26
|
+
def to_hash: -> program_resource_file
|
|
27
|
+
|
|
28
|
+
type moderation_status = :PENDING | :APPROVED | :REJECTED
|
|
29
|
+
module ModerationStatus
|
|
30
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
31
|
+
PENDING: :PENDING
|
|
32
|
+
APPROVED: :APPROVED
|
|
33
|
+
REJECTED: :REJECTED
|
|
34
|
+
def self?.values: -> ::Array[moderation_status]
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
type program_resource =
|
|
39
|
+
{
|
|
40
|
+
id: String,
|
|
41
|
+
type: ProgramResource::type_,
|
|
42
|
+
title: String,
|
|
43
|
+
description: String?,
|
|
44
|
+
category: String?,
|
|
45
|
+
url: String?,
|
|
46
|
+
text: String?,
|
|
47
|
+
file: ProgramResourceFile?,
|
|
48
|
+
is_published: bool,
|
|
49
|
+
position: Integer,
|
|
50
|
+
created_at: Integer,
|
|
51
|
+
updated_at: Integer
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class ProgramResource < GrowsurfRuby::Internal::Type::BaseModel
|
|
55
|
+
attr_accessor id: String
|
|
56
|
+
attr_accessor type: type_
|
|
57
|
+
attr_accessor title: String
|
|
58
|
+
attr_accessor description: String?
|
|
59
|
+
attr_accessor category: String?
|
|
60
|
+
attr_accessor url: String?
|
|
61
|
+
attr_accessor text: String?
|
|
62
|
+
attr_accessor file: ProgramResourceFile?
|
|
63
|
+
attr_accessor is_published: bool
|
|
64
|
+
attr_accessor position: Integer
|
|
65
|
+
attr_accessor created_at: Integer
|
|
66
|
+
attr_accessor updated_at: Integer
|
|
67
|
+
def initialize: (
|
|
68
|
+
id: String,
|
|
69
|
+
type: type_,
|
|
70
|
+
title: String,
|
|
71
|
+
description: String?,
|
|
72
|
+
category: String?,
|
|
73
|
+
url: String?,
|
|
74
|
+
text: String?,
|
|
75
|
+
file: ProgramResourceFile?,
|
|
76
|
+
is_published: bool,
|
|
77
|
+
position: Integer,
|
|
78
|
+
created_at: Integer,
|
|
79
|
+
updated_at: Integer
|
|
80
|
+
) -> void
|
|
81
|
+
def to_hash: -> program_resource
|
|
82
|
+
|
|
83
|
+
type type_ = :FILE | :LINK | :TEXT
|
|
84
|
+
module Type
|
|
85
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
86
|
+
FILE: :FILE
|
|
87
|
+
LINK: :LINK
|
|
88
|
+
TEXT: :TEXT
|
|
89
|
+
def self?.values: -> ::Array[type_]
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_create_params =
|
|
5
|
+
{ type: ProgramResourceCreateParams::type_, title: String }
|
|
6
|
+
& GrowsurfRuby::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ProgramResourceCreateParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
9
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
11
|
+
attr_accessor type: type_
|
|
12
|
+
attr_accessor title: String
|
|
13
|
+
attr_accessor description: String?
|
|
14
|
+
attr_accessor category: String?
|
|
15
|
+
attr_accessor is_published: bool?
|
|
16
|
+
attr_accessor url: String?
|
|
17
|
+
attr_accessor text: String?
|
|
18
|
+
attr_accessor upload_ticket: String?
|
|
19
|
+
attr_accessor upload_result: ProgramResourceUploadResult?
|
|
20
|
+
def initialize: (
|
|
21
|
+
type: type_,
|
|
22
|
+
title: String,
|
|
23
|
+
?description: String?,
|
|
24
|
+
?category: String?,
|
|
25
|
+
?is_published: bool,
|
|
26
|
+
?url: String,
|
|
27
|
+
?text: String,
|
|
28
|
+
?upload_ticket: String,
|
|
29
|
+
?upload_result: ProgramResourceUploadResult | program_resource_upload_result,
|
|
30
|
+
?request_options: GrowsurfRuby::request_opts
|
|
31
|
+
) -> void
|
|
32
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
33
|
+
|
|
34
|
+
type type_ = :FILE | :LINK | :TEXT
|
|
35
|
+
module Type
|
|
36
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
37
|
+
FILE: :FILE
|
|
38
|
+
LINK: :LINK
|
|
39
|
+
TEXT: :TEXT
|
|
40
|
+
def self?.values: -> ::Array[type_]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_delete_params =
|
|
5
|
+
{ id: String } & GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ProgramResourceDeleteParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
def initialize: (
|
|
12
|
+
id: String,
|
|
13
|
+
?request_options: GrowsurfRuby::request_opts
|
|
14
|
+
) -> void
|
|
15
|
+
def to_hash: -> {
|
|
16
|
+
id: String,
|
|
17
|
+
request_options: GrowsurfRuby::RequestOptions
|
|
18
|
+
}
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_list_response =
|
|
5
|
+
{ resources: ::Array[ProgramResource] }
|
|
6
|
+
|
|
7
|
+
class ProgramResourceListResponse < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor resources: ::Array[ProgramResource]
|
|
9
|
+
def initialize: (resources: ::Array[ProgramResource]) -> void
|
|
10
|
+
def to_hash: -> program_resource_list_response
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_update_params =
|
|
5
|
+
{ id: String } & GrowsurfRuby::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ProgramResourceUpdateParams < GrowsurfRuby::Internal::Type::BaseModel
|
|
8
|
+
extend GrowsurfRuby::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include GrowsurfRuby::Internal::Type::RequestParameters
|
|
10
|
+
attr_accessor id: String
|
|
11
|
+
attr_accessor type: type_?
|
|
12
|
+
attr_accessor title: String?
|
|
13
|
+
attr_accessor description: String?
|
|
14
|
+
attr_accessor category: String?
|
|
15
|
+
attr_accessor is_published: bool?
|
|
16
|
+
attr_accessor position: Integer?
|
|
17
|
+
attr_accessor url: String?
|
|
18
|
+
attr_accessor text: String?
|
|
19
|
+
attr_accessor upload_ticket: String?
|
|
20
|
+
attr_accessor upload_result: ProgramResourceUploadResult?
|
|
21
|
+
def initialize: (
|
|
22
|
+
id: String,
|
|
23
|
+
?type: type_,
|
|
24
|
+
?title: String,
|
|
25
|
+
?description: String?,
|
|
26
|
+
?category: String?,
|
|
27
|
+
?is_published: bool,
|
|
28
|
+
?position: Integer,
|
|
29
|
+
?url: String,
|
|
30
|
+
?text: String,
|
|
31
|
+
?upload_ticket: String,
|
|
32
|
+
?upload_result: ProgramResourceUploadResult | program_resource_upload_result,
|
|
33
|
+
?request_options: GrowsurfRuby::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
36
|
+
|
|
37
|
+
type type_ = :FILE | :LINK | :TEXT
|
|
38
|
+
module Type
|
|
39
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
40
|
+
FILE: :FILE
|
|
41
|
+
LINK: :LINK
|
|
42
|
+
TEXT: :TEXT
|
|
43
|
+
def self?.values: -> ::Array[type_]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
module GrowsurfRuby
|
|
2
|
+
module Models
|
|
3
|
+
module Campaign
|
|
4
|
+
type program_resource_upload_result =
|
|
5
|
+
{
|
|
6
|
+
asset_id: String?,
|
|
7
|
+
public_id: String,
|
|
8
|
+
version: Integer,
|
|
9
|
+
signature: String,
|
|
10
|
+
resource_type: ProgramResourceUploadResult::resource_type,
|
|
11
|
+
type: ProgramResourceUploadResult::type_,
|
|
12
|
+
bytes: Integer,
|
|
13
|
+
secure_url: String,
|
|
14
|
+
format: String?
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class ProgramResourceUploadResult < GrowsurfRuby::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor asset_id: String?
|
|
19
|
+
attr_accessor public_id: String
|
|
20
|
+
attr_accessor version: Integer
|
|
21
|
+
attr_accessor signature: String
|
|
22
|
+
attr_accessor resource_type: resource_type
|
|
23
|
+
attr_accessor type: type_
|
|
24
|
+
attr_accessor bytes: Integer
|
|
25
|
+
attr_accessor secure_url: String
|
|
26
|
+
attr_accessor format: String?
|
|
27
|
+
def initialize: (
|
|
28
|
+
public_id: String,
|
|
29
|
+
version: Integer,
|
|
30
|
+
signature: String,
|
|
31
|
+
resource_type: resource_type,
|
|
32
|
+
type: type_,
|
|
33
|
+
bytes: Integer,
|
|
34
|
+
secure_url: String,
|
|
35
|
+
?asset_id: String,
|
|
36
|
+
?format: String
|
|
37
|
+
) -> void
|
|
38
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
39
|
+
|
|
40
|
+
type resource_type = :image | :raw
|
|
41
|
+
module ResourceType
|
|
42
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
43
|
+
IMAGE: :image
|
|
44
|
+
RAW: :raw
|
|
45
|
+
def self?.values: -> ::Array[resource_type]
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
type type_ = :authenticated
|
|
50
|
+
module Type
|
|
51
|
+
extend GrowsurfRuby::Internal::Type::Enum
|
|
52
|
+
AUTHENTICATED: :authenticated
|
|
53
|
+
def self?.values: -> ::Array[type_]
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|