onesignal 5.11.2 → 5.12.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 +2 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/docs/CreateJourneyRequest.md +30 -0
- data/docs/DefaultApi.md +563 -0
- data/docs/Journey.md +48 -0
- data/docs/JourneyAudience.md +28 -0
- data/docs/JourneyBranch.md +24 -0
- data/docs/JourneyBranchStats.md +18 -0
- data/docs/JourneyCondition.md +34 -0
- data/docs/JourneyEarlyExit.md +20 -0
- data/docs/JourneyEarlyExitRules.md +24 -0
- data/docs/JourneyEarlyExitRulesOnEvent.md +18 -0
- data/docs/JourneyEarlyExitRulesOnSegment.md +18 -0
- data/docs/JourneyEventAttribute.md +22 -0
- data/docs/JourneyListAudience.md +18 -0
- data/docs/JourneyListItem.md +40 -0
- data/docs/JourneyListResponse.md +22 -0
- data/docs/JourneyMessageStats.md +18 -0
- data/docs/JourneyNode.md +50 -0
- data/docs/JourneyNodeStats.md +26 -0
- data/docs/JourneyReentryRules.md +18 -0
- data/docs/JourneySchedule.md +22 -0
- data/docs/JourneyStats.md +28 -0
- data/docs/JourneyTimePoint.md +20 -0
- data/docs/JourneyTimeWindow.md +22 -0
- data/docs/JourneyWaitUntilExpiration.md +20 -0
- data/docs/UpdateJourneyNodeRequest.md +48 -0
- data/docs/UpdateJourneyRequest.md +34 -0
- data/lib/onesignal/api/default_api.rb +524 -0
- data/lib/onesignal/api_client.rb +1 -1
- data/lib/onesignal/models/create_journey_request.rb +287 -0
- data/lib/onesignal/models/journey.rb +409 -0
- data/lib/onesignal/models/journey_audience.rb +316 -0
- data/lib/onesignal/models/journey_branch.rb +250 -0
- data/lib/onesignal/models/journey_branch_stats.rb +220 -0
- data/lib/onesignal/models/journey_condition.rb +360 -0
- data/lib/onesignal/models/journey_early_exit.rb +231 -0
- data/lib/onesignal/models/journey_early_exit_rules.rb +251 -0
- data/lib/onesignal/models/journey_early_exit_rules_on_event.rb +224 -0
- data/lib/onesignal/models/journey_early_exit_rules_on_segment.rb +221 -0
- data/lib/onesignal/models/journey_event_attribute.rb +283 -0
- data/lib/onesignal/models/journey_list_audience.rb +254 -0
- data/lib/onesignal/models/journey_list_item.rb +366 -0
- data/lib/onesignal/models/journey_list_response.rb +241 -0
- data/lib/onesignal/models/journey_message_stats.rb +222 -0
- data/lib/onesignal/models/journey_node.rb +480 -0
- data/lib/onesignal/models/journey_node_stats.rb +293 -0
- data/lib/onesignal/models/journey_reentry_rules.rb +236 -0
- data/lib/onesignal/models/journey_schedule.rb +243 -0
- data/lib/onesignal/models/journey_stats.rb +274 -0
- data/lib/onesignal/models/journey_time_point.rb +277 -0
- data/lib/onesignal/models/journey_time_window.rb +266 -0
- data/lib/onesignal/models/journey_wait_until_expiration.rb +256 -0
- data/lib/onesignal/models/update_journey_node_request.rb +454 -0
- data/lib/onesignal/models/update_journey_request.rb +337 -0
- data/lib/onesignal/version.rb +1 -1
- data/lib/onesignal.rb +25 -0
- data/spec/api/default_api_spec.rb +95 -0
- data/spec/models/create_journey_request_spec.rb +69 -0
- data/spec/models/journey_audience_spec.rb +67 -0
- data/spec/models/journey_branch_spec.rb +51 -0
- data/spec/models/journey_branch_stats_spec.rb +33 -0
- data/spec/models/journey_condition_spec.rb +89 -0
- data/spec/models/journey_early_exit_rules_on_event_spec.rb +33 -0
- data/spec/models/journey_early_exit_rules_on_segment_spec.rb +33 -0
- data/spec/models/journey_early_exit_rules_spec.rb +51 -0
- data/spec/models/journey_early_exit_spec.rb +39 -0
- data/spec/models/journey_event_attribute_spec.rb +49 -0
- data/spec/models/journey_list_audience_spec.rb +37 -0
- data/spec/models/journey_list_item_spec.rb +103 -0
- data/spec/models/journey_list_response_spec.rb +45 -0
- data/spec/models/journey_message_stats_spec.rb +33 -0
- data/spec/models/journey_node_spec.rb +137 -0
- data/spec/models/journey_node_stats_spec.rb +61 -0
- data/spec/models/journey_reentry_rules_spec.rb +33 -0
- data/spec/models/journey_schedule_spec.rb +45 -0
- data/spec/models/journey_spec.rb +127 -0
- data/spec/models/journey_stats_spec.rb +63 -0
- data/spec/models/journey_time_point_spec.rb +39 -0
- data/spec/models/journey_time_window_spec.rb +45 -0
- data/spec/models/journey_wait_until_expiration_spec.rb +39 -0
- data/spec/models/update_journey_node_request_spec.rb +127 -0
- data/spec/models/update_journey_request_spec.rb +85 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +102 -2
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyBranch
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyBranch do
|
|
20
|
+
let(:instance) { OneSignal::JourneyBranch.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyBranch' do
|
|
23
|
+
it 'should create an instance of JourneyBranch' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyBranch)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "id"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "condition"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "weight"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "nodes"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyBranchStats
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyBranchStats do
|
|
20
|
+
let(:instance) { OneSignal::JourneyBranchStats.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyBranchStats' do
|
|
23
|
+
it 'should create an instance of JourneyBranchStats' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyBranchStats)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "completed"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyCondition
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyCondition do
|
|
20
|
+
let(:instance) { OneSignal::JourneyCondition.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyCondition' do
|
|
23
|
+
it 'should create an instance of JourneyCondition' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyCondition)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "kind"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["segment_membership", "on_notification_action", "event_trigger"])
|
|
31
|
+
# validator.allowable_values.each do |value|
|
|
32
|
+
# expect { instance.kind = value }.not_to raise_error
|
|
33
|
+
# end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
describe 'test attribute "included_segment_ids"' do
|
|
38
|
+
it 'should work' do
|
|
39
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe 'test attribute "excluded_segment_ids"' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
describe 'test attribute "action"' do
|
|
50
|
+
it 'should work' do
|
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
52
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["received", "clicked", "opened"])
|
|
53
|
+
# validator.allowable_values.each do |value|
|
|
54
|
+
# expect { instance.action = value }.not_to raise_error
|
|
55
|
+
# end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "sending_node_id"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "client_node_id"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "name"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "attributes"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
describe 'test attribute "entry_event_match_attributes"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyEarlyExitRulesOnEvent
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyEarlyExitRulesOnEvent do
|
|
20
|
+
let(:instance) { OneSignal::JourneyEarlyExitRulesOnEvent.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyEarlyExitRulesOnEvent' do
|
|
23
|
+
it 'should create an instance of JourneyEarlyExitRulesOnEvent' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyEarlyExitRulesOnEvent)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "name"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyEarlyExitRulesOnSegment
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyEarlyExitRulesOnSegment do
|
|
20
|
+
let(:instance) { OneSignal::JourneyEarlyExitRulesOnSegment.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyEarlyExitRulesOnSegment' do
|
|
23
|
+
it 'should create an instance of JourneyEarlyExitRulesOnSegment' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyEarlyExitRulesOnSegment)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "included_segment_ids"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyEarlyExitRules
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyEarlyExitRules do
|
|
20
|
+
let(:instance) { OneSignal::JourneyEarlyExitRules.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyEarlyExitRules' do
|
|
23
|
+
it 'should create an instance of JourneyEarlyExitRules' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyEarlyExitRules)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "on_segment"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "when_not_in_audience"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "on_session"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "on_event"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyEarlyExit
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyEarlyExit do
|
|
20
|
+
let(:instance) { OneSignal::JourneyEarlyExit.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyEarlyExit' do
|
|
23
|
+
it 'should create an instance of JourneyEarlyExit' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyEarlyExit)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "rules"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "tag_on_early_exit"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyEventAttribute
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyEventAttribute do
|
|
20
|
+
let(:instance) { OneSignal::JourneyEventAttribute.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyEventAttribute' do
|
|
23
|
+
it 'should create an instance of JourneyEventAttribute' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyEventAttribute)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "key"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "operator"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["equal", "not_equal", "less", "less_or_equal", "greater_or_equal", "greater", "is", "is_not", "exists", "not_exists", "before", "after"])
|
|
37
|
+
# validator.allowable_values.each do |value|
|
|
38
|
+
# expect { instance.operator = value }.not_to raise_error
|
|
39
|
+
# end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
describe 'test attribute "value"' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyListAudience
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyListAudience do
|
|
20
|
+
let(:instance) { OneSignal::JourneyListAudience.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyListAudience' do
|
|
23
|
+
it 'should create an instance of JourneyListAudience' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyListAudience)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "kind"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["segment", "event_trigger"])
|
|
31
|
+
# validator.allowable_values.each do |value|
|
|
32
|
+
# expect { instance.kind = value }.not_to raise_error
|
|
33
|
+
# end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyListItem
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyListItem do
|
|
20
|
+
let(:instance) { OneSignal::JourneyListItem.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyListItem' do
|
|
23
|
+
it 'should create an instance of JourneyListItem' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyListItem)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "id"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "app_id"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "name"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "state"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
48
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["draft", "scheduled", "processing", "active", "archived"])
|
|
49
|
+
# validator.allowable_values.each do |value|
|
|
50
|
+
# expect { instance.state = value }.not_to raise_error
|
|
51
|
+
# end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe 'test attribute "created_at"' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
describe 'test attribute "updated_at"' do
|
|
62
|
+
it 'should work' do
|
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
describe 'test attribute "started_at"' do
|
|
68
|
+
it 'should work' do
|
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
describe 'test attribute "archived_at"' do
|
|
74
|
+
it 'should work' do
|
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
describe 'test attribute "created_source"' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
describe 'test attribute "schedule"' do
|
|
86
|
+
it 'should work' do
|
|
87
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
describe 'test attribute "audience"' do
|
|
92
|
+
it 'should work' do
|
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
describe 'test attribute "reentry_rules"' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyListResponse
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyListResponse do
|
|
20
|
+
let(:instance) { OneSignal::JourneyListResponse.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyListResponse' do
|
|
23
|
+
it 'should create an instance of JourneyListResponse' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyListResponse)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "journeys"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe 'test attribute "has_more"' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
describe 'test attribute "next_cursor"' do
|
|
40
|
+
it 'should work' do
|
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#OneSignal
|
|
3
|
+
|
|
4
|
+
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
5
|
+
|
|
6
|
+
Contact: devrel@onesignal.com
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
OpenAPI Generator version: 6.0.0-SNAPSHOT
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'spec_helper'
|
|
13
|
+
require 'json'
|
|
14
|
+
require 'date'
|
|
15
|
+
|
|
16
|
+
# Unit tests for OneSignal::JourneyMessageStats
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe OneSignal::JourneyMessageStats do
|
|
20
|
+
let(:instance) { OneSignal::JourneyMessageStats.new }
|
|
21
|
+
|
|
22
|
+
describe 'test an instance of JourneyMessageStats' do
|
|
23
|
+
it 'should create an instance of JourneyMessageStats' do
|
|
24
|
+
expect(instance).to be_instance_of(OneSignal::JourneyMessageStats)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
describe 'test attribute "totals"' do
|
|
28
|
+
it 'should work' do
|
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
end
|