messente_api 1.0.2 → 1.0.3
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 +5 -5
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/docs/BlacklistApi.md +3 -3
- data/docs/ContactsApi.md +11 -11
- data/docs/GroupsApi.md +5 -5
- data/lib/messente_api.rb +1 -1
- data/lib/messente_api/api/blacklist_api.rb +4 -4
- data/lib/messente_api/api/contacts_api.rb +8 -8
- data/lib/messente_api/api/delivery_report_api.rb +3 -3
- data/lib/messente_api/api/groups_api.rb +5 -5
- data/lib/messente_api/api/omnimessage_api.rb +3 -3
- data/lib/messente_api/api_client.rb +2 -3
- data/lib/messente_api/api_error.rb +1 -1
- data/lib/messente_api/configuration.rb +2 -5
- data/lib/messente_api/models/channel.rb +1 -1
- data/lib/messente_api/models/contact_envelope.rb +1 -1
- data/lib/messente_api/models/contact_fields.rb +1 -1
- data/lib/messente_api/models/contact_list_envelope.rb +1 -1
- data/lib/messente_api/models/contact_update_fields.rb +1 -1
- data/lib/messente_api/models/delivery_report_response.rb +1 -1
- data/lib/messente_api/models/delivery_result.rb +1 -1
- data/lib/messente_api/models/error_code_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_code_omnichannel_machine.rb +1 -1
- data/lib/messente_api/models/error_code_phonebook.rb +1 -1
- data/lib/messente_api/models/error_item_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_item_phonebook.rb +1 -1
- data/lib/messente_api/models/error_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_phonebook.rb +1 -1
- data/lib/messente_api/models/error_title_omnichannel.rb +1 -1
- data/lib/messente_api/models/error_title_phonebook.rb +1 -1
- data/lib/messente_api/models/fetch_blacklist_success.rb +1 -1
- data/lib/messente_api/models/group_envelope.rb +1 -1
- data/lib/messente_api/models/group_list_envelope.rb +1 -1
- data/lib/messente_api/models/group_name.rb +1 -1
- data/lib/messente_api/models/group_response_fields.rb +1 -1
- data/lib/messente_api/models/message_result.rb +1 -1
- data/lib/messente_api/models/number_to_blacklist.rb +1 -1
- data/lib/messente_api/models/omni_message_create_success_response.rb +1 -1
- data/lib/messente_api/models/omnimessage.rb +1 -1
- data/lib/messente_api/models/sms.rb +1 -1
- data/lib/messente_api/models/status.rb +1 -1
- data/lib/messente_api/models/text_store.rb +1 -1
- data/lib/messente_api/models/viber.rb +1 -1
- data/lib/messente_api/models/whats_app.rb +1 -1
- data/lib/messente_api/models/whats_app_audio.rb +1 -1
- data/lib/messente_api/models/whats_app_document.rb +1 -1
- data/lib/messente_api/models/whats_app_image.rb +1 -1
- data/lib/messente_api/models/whats_app_text.rb +1 -1
- data/lib/messente_api/version.rb +2 -2
- data/messente_api.gemspec +3 -3
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +17 -96
- data/spec/api/blacklist_api_spec.rb +0 -78
- data/spec/api/contacts_api_spec.rb +0 -126
- data/spec/api/delivery_report_api_spec.rb +0 -46
- data/spec/api/groups_api_spec.rb +0 -90
- data/spec/api/omnimessage_api_spec.rb +0 -57
- data/spec/models/channel_spec.rb +0 -35
- data/spec/models/contact_envelope_spec.rb +0 -41
- data/spec/models/contact_fields_spec.rb +0 -95
- data/spec/models/contact_list_envelope_spec.rb +0 -41
- data/spec/models/contact_update_fields_spec.rb +0 -89
- data/spec/models/delivery_report_response_spec.rb +0 -53
- data/spec/models/delivery_result_spec.rb +0 -71
- data/spec/models/error_code_omnichannel_machine_spec.rb +0 -35
- data/spec/models/error_code_omnichannel_spec.rb +0 -35
- data/spec/models/error_code_phonebook_spec.rb +0 -35
- data/spec/models/error_item_omnichannel_spec.rb +0 -59
- data/spec/models/error_item_phonebook_spec.rb +0 -53
- data/spec/models/error_omnichannel_spec.rb +0 -41
- data/spec/models/error_phonebook_spec.rb +0 -41
- data/spec/models/error_title_omnichannel_spec.rb +0 -35
- data/spec/models/error_title_phonebook_spec.rb +0 -35
- data/spec/models/fetch_blacklist_success_spec.rb +0 -41
- data/spec/models/group_envelope_spec.rb +0 -41
- data/spec/models/group_list_envelope_spec.rb +0 -41
- data/spec/models/group_name_spec.rb +0 -41
- data/spec/models/group_response_fields_spec.rb +0 -59
- data/spec/models/message_result_spec.rb +0 -53
- data/spec/models/number_to_blacklist_spec.rb +0 -41
- data/spec/models/omni_message_create_success_response_spec.rb +0 -53
- data/spec/models/omnimessage_spec.rb +0 -65
- data/spec/models/sms_spec.rb +0 -79
- data/spec/models/status_spec.rb +0 -35
- data/spec/models/text_store_spec.rb +0 -35
- data/spec/models/viber_spec.rb +0 -81
- data/spec/models/whats_app_audio_spec.rb +0 -41
- data/spec/models/whats_app_document_spec.rb +0 -47
- data/spec/models/whats_app_image_spec.rb +0 -47
- data/spec/models/whats_app_spec.rb +0 -81
- data/spec/models/whats_app_text_spec.rb +0 -47
@@ -1,78 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for MessenteApi::BlacklistApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'BlacklistApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = MessenteApi::BlacklistApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of BlacklistApi' do
|
30
|
-
it 'should create an instance of BlacklistApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(MessenteApi::BlacklistApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for add_to_blacklist
|
36
|
-
# Adds a phone number to the blacklist
|
37
|
-
# @param number_to_blacklist Phone number to be blacklisted
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [nil]
|
40
|
-
describe 'add_to_blacklist test' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# unit tests for delete_from_blacklist
|
47
|
-
# Deletes a phone number from the blacklist
|
48
|
-
# @param phone A phone number
|
49
|
-
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [nil]
|
51
|
-
describe 'delete_from_blacklist test' do
|
52
|
-
it 'should work' do
|
53
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# unit tests for fetch_blacklist
|
58
|
-
# Returns all blacklisted phone numbers
|
59
|
-
# @param [Hash] opts the optional parameters
|
60
|
-
# @return [FetchBlacklistSuccess]
|
61
|
-
describe 'fetch_blacklist test' 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
|
-
# unit tests for is_blacklisted
|
68
|
-
# Checks if a phone number is blacklisted
|
69
|
-
# @param phone A phone number
|
70
|
-
# @param [Hash] opts the optional parameters
|
71
|
-
# @return [nil]
|
72
|
-
describe 'is_blacklisted test' do
|
73
|
-
it 'should work' do
|
74
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
end
|
@@ -1,126 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for MessenteApi::ContactsApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ContactsApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = MessenteApi::ContactsApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ContactsApi' do
|
30
|
-
it 'should create an instance of ContactsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(MessenteApi::ContactsApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for add_contact_to_group
|
36
|
-
# Adds a contact to a group
|
37
|
-
# @param group_id String in UUID format
|
38
|
-
# @param phone A phone number
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [Object]
|
41
|
-
describe 'add_contact_to_group test' do
|
42
|
-
it 'should work' do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for create_contact
|
48
|
-
# Creates a new contact
|
49
|
-
# @param contact_fields
|
50
|
-
# @param [Hash] opts the optional parameters
|
51
|
-
# @return [ContactEnvelope]
|
52
|
-
describe 'create_contact test' do
|
53
|
-
it 'should work' do
|
54
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
# unit tests for delete_contact
|
59
|
-
# Deletes a contact
|
60
|
-
# @param phone A phone number
|
61
|
-
# @param [Hash] opts the optional parameters
|
62
|
-
# @return [nil]
|
63
|
-
describe 'delete_contact test' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
# unit tests for fetch_contact
|
70
|
-
# Lists a contact
|
71
|
-
# @param phone A phone number
|
72
|
-
# @param [Hash] opts the optional parameters
|
73
|
-
# @return [ContactEnvelope]
|
74
|
-
describe 'fetch_contact test' do
|
75
|
-
it 'should work' do
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# unit tests for fetch_contact_groups
|
81
|
-
# Lists groups of a contact
|
82
|
-
# @param phone A phone number
|
83
|
-
# @param [Hash] opts the optional parameters
|
84
|
-
# @return [GroupListEnvelope]
|
85
|
-
describe 'fetch_contact_groups test' 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
|
-
# unit tests for fetch_contacts
|
92
|
-
# Returns all contacts
|
93
|
-
# @param [Hash] opts the optional parameters
|
94
|
-
# @option opts [Array<String>] :group_ids Optional one or many group id strings in UUID format. For example: \"/contacts?groupIds=group_id_one&groupIds=group_id_two\"
|
95
|
-
# @return [ContactListEnvelope]
|
96
|
-
describe 'fetch_contacts test' do
|
97
|
-
it 'should work' do
|
98
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# unit tests for remove_contact_from_group
|
103
|
-
# Removes a contact from a group
|
104
|
-
# @param group_id String in UUID format
|
105
|
-
# @param phone A phone number
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [nil]
|
108
|
-
describe 'remove_contact_from_group test' do
|
109
|
-
it 'should work' do
|
110
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# unit tests for update_contact
|
115
|
-
# Updates a contact
|
116
|
-
# @param phone A phone number
|
117
|
-
# @param contact_update_fields
|
118
|
-
# @param [Hash] opts the optional parameters
|
119
|
-
# @return [ContactEnvelope]
|
120
|
-
describe 'update_contact test' do
|
121
|
-
it 'should work' do
|
122
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for MessenteApi::DeliveryReportApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'DeliveryReportApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = MessenteApi::DeliveryReportApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of DeliveryReportApi' do
|
30
|
-
it 'should create an instance of DeliveryReportApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(MessenteApi::DeliveryReportApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for retrieve_delivery_report
|
36
|
-
# Retrieves the delivery report for the Omnimessage
|
37
|
-
# @param omnimessage_id UUID of the omnimessage to for which the delivery report is to be retrieved
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [DeliveryReportResponse]
|
40
|
-
describe 'retrieve_delivery_report test' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
end
|
data/spec/api/groups_api_spec.rb
DELETED
@@ -1,90 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for MessenteApi::GroupsApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'GroupsApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = MessenteApi::GroupsApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of GroupsApi' do
|
30
|
-
it 'should create an instance of GroupsApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(MessenteApi::GroupsApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for create_group
|
36
|
-
# Creates a new group with the provided name
|
37
|
-
# @param group_name
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [GroupEnvelope]
|
40
|
-
describe 'create_group test' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# unit tests for delete_group
|
47
|
-
# Deletes a group
|
48
|
-
# @param group_id String in UUID format
|
49
|
-
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [nil]
|
51
|
-
describe 'delete_group test' do
|
52
|
-
it 'should work' do
|
53
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
# unit tests for fetch_group
|
58
|
-
# Lists a group
|
59
|
-
# @param group_id String in UUID format
|
60
|
-
# @param [Hash] opts the optional parameters
|
61
|
-
# @return [GroupEnvelope]
|
62
|
-
describe 'fetch_group test' do
|
63
|
-
it 'should work' do
|
64
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# unit tests for fetch_groups
|
69
|
-
# Returns all groups
|
70
|
-
# @param [Hash] opts the optional parameters
|
71
|
-
# @return [GroupListEnvelope]
|
72
|
-
describe 'fetch_groups test' do
|
73
|
-
it 'should work' do
|
74
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
|
-
# unit tests for update_group
|
79
|
-
# Updates a group with the provided name
|
80
|
-
# @param group_id String in UUID format
|
81
|
-
# @param group_name
|
82
|
-
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [GroupEnvelope]
|
84
|
-
describe 'update_group test' do
|
85
|
-
it 'should work' do
|
86
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for MessenteApi::OmnimessageApi
|
17
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'OmnimessageApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@api_instance = MessenteApi::OmnimessageApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of OmnimessageApi' do
|
30
|
-
it 'should create an instance of OmnimessageApi' do
|
31
|
-
expect(@api_instance).to be_instance_of(MessenteApi::OmnimessageApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for cancel_scheduled_message
|
36
|
-
# Cancels a scheduled Omnimessage
|
37
|
-
# @param omnimessage_id UUID of the scheduled omnimessage to be cancelled
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [nil]
|
40
|
-
describe 'cancel_scheduled_message test' do
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# unit tests for send_omnimessage
|
47
|
-
# Sends an Omnimessage
|
48
|
-
# @param omnimessage Omnimessage to be sent
|
49
|
-
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [OmniMessageCreateSuccessResponse]
|
51
|
-
describe 'send_omnimessage test' do
|
52
|
-
it 'should work' do
|
53
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
data/spec/models/channel_spec.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for MessenteApi::Channel
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'Channel' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = MessenteApi::Channel.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of Channel' do
|
31
|
-
it 'should create an instance of Channel' do
|
32
|
-
expect(@instance).to be_instance_of(MessenteApi::Channel)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Messente API
|
3
|
-
|
4
|
-
#[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.2
|
7
|
-
Contact: messente@messente.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for MessenteApi::ContactEnvelope
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'ContactEnvelope' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = MessenteApi::ContactEnvelope.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of ContactEnvelope' do
|
31
|
-
it 'should create an instance of ContactEnvelope' do
|
32
|
-
expect(@instance).to be_instance_of(MessenteApi::ContactEnvelope)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "contact"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|