messagemedia_messages_sdk 2.0.0 → 2.0.2
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/README.md +2 -1
- data/lib/message_media_messages/exceptions/send_messages400_response_exception.rb +29 -29
- data/lib/message_media_messages/http/auth/auth_manager.rb +90 -90
- data/lib/message_media_messages/models/confirm_delivery_reports_as_received_request1.rb +35 -35
- data/lib/message_media_messages/models/confirm_replies_as_received_request1.rb +35 -35
- data/lib/message_media_messages/models/delivery_report.rb +135 -135
- data/lib/message_media_messages/models/format1_enum.rb +20 -20
- data/lib/message_media_messages/models/format_enum.rb +20 -20
- data/lib/message_media_messages/models/get_message_status_response.rb +145 -145
- data/lib/message_media_messages/models/message.rb +166 -166
- data/lib/message_media_messages/models/reply.rb +112 -112
- data/lib/message_media_messages/models/source_number_type_enum.rb +21 -21
- data/lib/message_media_messages/models/status2_enum.rb +32 -32
- data/lib/message_media_messages/models/status_enum.rb +44 -44
- data/lib/message_media_messages/models/vendor_account_id.rb +44 -44
- metadata +7 -8
@@ -1,112 +1,112 @@
|
|
1
|
-
# message_media_messages
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
require 'date'
|
7
|
-
module MessageMediaMessages
|
8
|
-
# Reply Model.
|
9
|
-
class Reply < BaseModel
|
10
|
-
# The URL specified as the callback URL in the original submit message
|
11
|
-
# request
|
12
|
-
# @return [String]
|
13
|
-
attr_accessor :callback_url
|
14
|
-
|
15
|
-
# Content of the reply
|
16
|
-
# @return [String]
|
17
|
-
attr_accessor :content
|
18
|
-
|
19
|
-
# Date time when the reply was received
|
20
|
-
# @return [DateTime]
|
21
|
-
attr_accessor :date_received
|
22
|
-
|
23
|
-
# Address from which this reply was sent to
|
24
|
-
# @return [String]
|
25
|
-
attr_accessor :destination_number
|
26
|
-
|
27
|
-
# Unique ID of the original message
|
28
|
-
# @return [UUID | String]
|
29
|
-
attr_accessor :message_id
|
30
|
-
|
31
|
-
# Any metadata that was included in the original submit message request
|
32
|
-
# @return [Object]
|
33
|
-
attr_accessor :metadata
|
34
|
-
|
35
|
-
# Unique ID of this reply
|
36
|
-
# @return [UUID | String]
|
37
|
-
attr_accessor :reply_id
|
38
|
-
|
39
|
-
# Address from which this reply was received from
|
40
|
-
# @return [String]
|
41
|
-
attr_accessor :source_number
|
42
|
-
|
43
|
-
# Address from which this reply was received from
|
44
|
-
# @return [VendorAccountId]
|
45
|
-
attr_accessor :vendor_account_id
|
46
|
-
|
47
|
-
# A mapping from model property names to API property names.
|
48
|
-
def self.names
|
49
|
-
@_hash = {} if @_hash.nil?
|
50
|
-
@_hash['callback_url'] = 'callback_url'
|
51
|
-
@_hash['content'] = 'content'
|
52
|
-
@_hash['date_received'] = 'date_received'
|
53
|
-
@_hash['destination_number'] = 'destination_number'
|
54
|
-
@_hash['message_id'] = 'message_id'
|
55
|
-
@_hash['metadata'] = 'metadata'
|
56
|
-
@_hash['reply_id'] = 'reply_id'
|
57
|
-
@_hash['source_number'] = 'source_number'
|
58
|
-
@_hash['vendor_account_id'] = 'vendor_account_id'
|
59
|
-
@_hash
|
60
|
-
end
|
61
|
-
|
62
|
-
def initialize(callback_url = nil,
|
63
|
-
content = nil,
|
64
|
-
date_received = nil,
|
65
|
-
destination_number = nil,
|
66
|
-
message_id = nil,
|
67
|
-
metadata = nil,
|
68
|
-
reply_id = nil,
|
69
|
-
source_number = nil,
|
70
|
-
vendor_account_id = nil)
|
71
|
-
@callback_url = callback_url
|
72
|
-
@content = content
|
73
|
-
@date_received = date_received
|
74
|
-
@destination_number = destination_number
|
75
|
-
@message_id = message_id
|
76
|
-
@metadata = metadata
|
77
|
-
@reply_id = reply_id
|
78
|
-
@source_number = source_number
|
79
|
-
@vendor_account_id = vendor_account_id
|
80
|
-
end
|
81
|
-
|
82
|
-
# Creates an instance of the object from a hash.
|
83
|
-
def self.from_hash(hash)
|
84
|
-
return nil unless hash
|
85
|
-
|
86
|
-
# Extract variables from the hash.
|
87
|
-
callback_url = hash['callback_url']
|
88
|
-
content = hash['content']
|
89
|
-
date_received = APIHelper.rfc3339(hash['date_received']) if
|
90
|
-
hash['date_received']
|
91
|
-
destination_number = hash['destination_number']
|
92
|
-
message_id = hash['message_id']
|
93
|
-
metadata = hash['metadata']
|
94
|
-
reply_id = hash['reply_id']
|
95
|
-
source_number = hash['source_number']
|
96
|
-
if hash['vendor_account_id']
|
97
|
-
vendor_account_id = VendorAccountId.from_hash(hash['vendor_account_id'])
|
98
|
-
end
|
99
|
-
|
100
|
-
# Create object from extracted values.
|
101
|
-
Reply.new(callback_url,
|
102
|
-
content,
|
103
|
-
date_received,
|
104
|
-
destination_number,
|
105
|
-
message_id,
|
106
|
-
metadata,
|
107
|
-
reply_id,
|
108
|
-
source_number,
|
109
|
-
vendor_account_id)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
1
|
+
# message_media_messages
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
require 'date'
|
7
|
+
module MessageMediaMessages
|
8
|
+
# Reply Model.
|
9
|
+
class Reply < BaseModel
|
10
|
+
# The URL specified as the callback URL in the original submit message
|
11
|
+
# request
|
12
|
+
# @return [String]
|
13
|
+
attr_accessor :callback_url
|
14
|
+
|
15
|
+
# Content of the reply
|
16
|
+
# @return [String]
|
17
|
+
attr_accessor :content
|
18
|
+
|
19
|
+
# Date time when the reply was received
|
20
|
+
# @return [DateTime]
|
21
|
+
attr_accessor :date_received
|
22
|
+
|
23
|
+
# Address from which this reply was sent to
|
24
|
+
# @return [String]
|
25
|
+
attr_accessor :destination_number
|
26
|
+
|
27
|
+
# Unique ID of the original message
|
28
|
+
# @return [UUID | String]
|
29
|
+
attr_accessor :message_id
|
30
|
+
|
31
|
+
# Any metadata that was included in the original submit message request
|
32
|
+
# @return [Object]
|
33
|
+
attr_accessor :metadata
|
34
|
+
|
35
|
+
# Unique ID of this reply
|
36
|
+
# @return [UUID | String]
|
37
|
+
attr_accessor :reply_id
|
38
|
+
|
39
|
+
# Address from which this reply was received from
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :source_number
|
42
|
+
|
43
|
+
# Address from which this reply was received from
|
44
|
+
# @return [VendorAccountId]
|
45
|
+
attr_accessor :vendor_account_id
|
46
|
+
|
47
|
+
# A mapping from model property names to API property names.
|
48
|
+
def self.names
|
49
|
+
@_hash = {} if @_hash.nil?
|
50
|
+
@_hash['callback_url'] = 'callback_url'
|
51
|
+
@_hash['content'] = 'content'
|
52
|
+
@_hash['date_received'] = 'date_received'
|
53
|
+
@_hash['destination_number'] = 'destination_number'
|
54
|
+
@_hash['message_id'] = 'message_id'
|
55
|
+
@_hash['metadata'] = 'metadata'
|
56
|
+
@_hash['reply_id'] = 'reply_id'
|
57
|
+
@_hash['source_number'] = 'source_number'
|
58
|
+
@_hash['vendor_account_id'] = 'vendor_account_id'
|
59
|
+
@_hash
|
60
|
+
end
|
61
|
+
|
62
|
+
def initialize(callback_url = nil,
|
63
|
+
content = nil,
|
64
|
+
date_received = nil,
|
65
|
+
destination_number = nil,
|
66
|
+
message_id = nil,
|
67
|
+
metadata = nil,
|
68
|
+
reply_id = nil,
|
69
|
+
source_number = nil,
|
70
|
+
vendor_account_id = nil)
|
71
|
+
@callback_url = callback_url
|
72
|
+
@content = content
|
73
|
+
@date_received = date_received
|
74
|
+
@destination_number = destination_number
|
75
|
+
@message_id = message_id
|
76
|
+
@metadata = metadata
|
77
|
+
@reply_id = reply_id
|
78
|
+
@source_number = source_number
|
79
|
+
@vendor_account_id = vendor_account_id
|
80
|
+
end
|
81
|
+
|
82
|
+
# Creates an instance of the object from a hash.
|
83
|
+
def self.from_hash(hash)
|
84
|
+
return nil unless hash
|
85
|
+
|
86
|
+
# Extract variables from the hash.
|
87
|
+
callback_url = hash['callback_url']
|
88
|
+
content = hash['content']
|
89
|
+
date_received = APIHelper.rfc3339(hash['date_received']) if
|
90
|
+
hash['date_received']
|
91
|
+
destination_number = hash['destination_number']
|
92
|
+
message_id = hash['message_id']
|
93
|
+
metadata = hash['metadata']
|
94
|
+
reply_id = hash['reply_id']
|
95
|
+
source_number = hash['source_number']
|
96
|
+
if hash['vendor_account_id']
|
97
|
+
vendor_account_id = VendorAccountId.from_hash(hash['vendor_account_id'])
|
98
|
+
end
|
99
|
+
|
100
|
+
# Create object from extracted values.
|
101
|
+
Reply.new(callback_url,
|
102
|
+
content,
|
103
|
+
date_received,
|
104
|
+
destination_number,
|
105
|
+
message_id,
|
106
|
+
metadata,
|
107
|
+
reply_id,
|
108
|
+
source_number,
|
109
|
+
vendor_account_id)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -1,21 +1,21 @@
|
|
1
|
-
# message_media_messages
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module MessageMediaMessages
|
7
|
-
# Type of source address specified, this can be INTERNATIONAL, ALPHANUMERIC or
|
8
|
-
# SHORTCODE
|
9
|
-
class SourceNumberTypeEnum
|
10
|
-
SOURCE_NUMBER_TYPE_ENUM = [
|
11
|
-
# TODO: Write general description for INTERNATIONAL
|
12
|
-
INTERNATIONAL = 'INTERNATIONAL'.freeze,
|
13
|
-
|
14
|
-
# TODO: Write general description for ALPHANUMERIC
|
15
|
-
ALPHANUMERIC = 'ALPHANUMERIC'.freeze,
|
16
|
-
|
17
|
-
# TODO: Write general description for SHORTCODE
|
18
|
-
SHORTCODE = 'SHORTCODE'.freeze
|
19
|
-
].freeze
|
20
|
-
end
|
21
|
-
end
|
1
|
+
# message_media_messages
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MessageMediaMessages
|
7
|
+
# Type of source address specified, this can be INTERNATIONAL, ALPHANUMERIC or
|
8
|
+
# SHORTCODE
|
9
|
+
class SourceNumberTypeEnum
|
10
|
+
SOURCE_NUMBER_TYPE_ENUM = [
|
11
|
+
# TODO: Write general description for INTERNATIONAL
|
12
|
+
INTERNATIONAL = 'INTERNATIONAL'.freeze,
|
13
|
+
|
14
|
+
# TODO: Write general description for ALPHANUMERIC
|
15
|
+
ALPHANUMERIC = 'ALPHANUMERIC'.freeze,
|
16
|
+
|
17
|
+
# TODO: Write general description for SHORTCODE
|
18
|
+
SHORTCODE = 'SHORTCODE'.freeze
|
19
|
+
].freeze
|
20
|
+
end
|
21
|
+
end
|
@@ -1,32 +1,32 @@
|
|
1
|
-
# message_media_messages
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module MessageMediaMessages
|
7
|
-
# The status of the message as per the delivery report
|
8
|
-
class Status2Enum
|
9
|
-
STATUS2_ENUM = [
|
10
|
-
# TODO: Write general description for ENROUTE
|
11
|
-
ENROUTE = 'enroute'.freeze,
|
12
|
-
|
13
|
-
# TODO: Write general description for FAILED
|
14
|
-
FAILED = 'failed'.freeze,
|
15
|
-
|
16
|
-
# TODO: Write general description for SUBMITTED
|
17
|
-
SUBMITTED = 'submitted'.freeze,
|
18
|
-
|
19
|
-
# TODO: Write general description for DELIVERED
|
20
|
-
DELIVERED = 'delivered'.freeze,
|
21
|
-
|
22
|
-
# TODO: Write general description for EXPIRED
|
23
|
-
EXPIRED = 'expired'.freeze,
|
24
|
-
|
25
|
-
# TODO: Write general description for REJECTED
|
26
|
-
REJECTED = 'rejected'.freeze,
|
27
|
-
|
28
|
-
# TODO: Write general description for UNDELIVERABLE
|
29
|
-
UNDELIVERABLE = 'undeliverable'.freeze
|
30
|
-
].freeze
|
31
|
-
end
|
32
|
-
end
|
1
|
+
# message_media_messages
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MessageMediaMessages
|
7
|
+
# The status of the message as per the delivery report
|
8
|
+
class Status2Enum
|
9
|
+
STATUS2_ENUM = [
|
10
|
+
# TODO: Write general description for ENROUTE
|
11
|
+
ENROUTE = 'enroute'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for FAILED
|
14
|
+
FAILED = 'failed'.freeze,
|
15
|
+
|
16
|
+
# TODO: Write general description for SUBMITTED
|
17
|
+
SUBMITTED = 'submitted'.freeze,
|
18
|
+
|
19
|
+
# TODO: Write general description for DELIVERED
|
20
|
+
DELIVERED = 'delivered'.freeze,
|
21
|
+
|
22
|
+
# TODO: Write general description for EXPIRED
|
23
|
+
EXPIRED = 'expired'.freeze,
|
24
|
+
|
25
|
+
# TODO: Write general description for REJECTED
|
26
|
+
REJECTED = 'rejected'.freeze,
|
27
|
+
|
28
|
+
# TODO: Write general description for UNDELIVERABLE
|
29
|
+
UNDELIVERABLE = 'undeliverable'.freeze
|
30
|
+
].freeze
|
31
|
+
end
|
32
|
+
end
|
@@ -1,44 +1,44 @@
|
|
1
|
-
# message_media_messages
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module MessageMediaMessages
|
7
|
-
# The status of the message
|
8
|
-
class StatusEnum
|
9
|
-
STATUS_ENUM = [
|
10
|
-
# TODO: Write general description for ENROUTE
|
11
|
-
ENROUTE = 'enroute'.freeze,
|
12
|
-
|
13
|
-
# TODO: Write general description for SUBMITTED
|
14
|
-
SUBMITTED = 'submitted'.freeze,
|
15
|
-
|
16
|
-
# TODO: Write general description for DELIVERED
|
17
|
-
DELIVERED = 'delivered'.freeze,
|
18
|
-
|
19
|
-
# TODO: Write general description for EXPIRED
|
20
|
-
EXPIRED = 'expired'.freeze,
|
21
|
-
|
22
|
-
# TODO: Write general description for REJECTED
|
23
|
-
REJECTED = 'rejected'.freeze,
|
24
|
-
|
25
|
-
# TODO: Write general description for UNDELIVERABLE
|
26
|
-
UNDELIVERABLE = 'undeliverable'.freeze,
|
27
|
-
|
28
|
-
# TODO: Write general description for QUEUED
|
29
|
-
QUEUED = 'queued'.freeze,
|
30
|
-
|
31
|
-
# TODO: Write general description for PROCESSED
|
32
|
-
PROCESSED = 'processed'.freeze,
|
33
|
-
|
34
|
-
# TODO: Write general description for CANCELLED
|
35
|
-
CANCELLED = 'cancelled'.freeze,
|
36
|
-
|
37
|
-
# TODO: Write general description for SCHEDULED
|
38
|
-
SCHEDULED = 'scheduled'.freeze,
|
39
|
-
|
40
|
-
# TODO: Write general description for FAILED
|
41
|
-
FAILED = 'failed'.freeze
|
42
|
-
].freeze
|
43
|
-
end
|
44
|
-
end
|
1
|
+
# message_media_messages
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MessageMediaMessages
|
7
|
+
# The status of the message
|
8
|
+
class StatusEnum
|
9
|
+
STATUS_ENUM = [
|
10
|
+
# TODO: Write general description for ENROUTE
|
11
|
+
ENROUTE = 'enroute'.freeze,
|
12
|
+
|
13
|
+
# TODO: Write general description for SUBMITTED
|
14
|
+
SUBMITTED = 'submitted'.freeze,
|
15
|
+
|
16
|
+
# TODO: Write general description for DELIVERED
|
17
|
+
DELIVERED = 'delivered'.freeze,
|
18
|
+
|
19
|
+
# TODO: Write general description for EXPIRED
|
20
|
+
EXPIRED = 'expired'.freeze,
|
21
|
+
|
22
|
+
# TODO: Write general description for REJECTED
|
23
|
+
REJECTED = 'rejected'.freeze,
|
24
|
+
|
25
|
+
# TODO: Write general description for UNDELIVERABLE
|
26
|
+
UNDELIVERABLE = 'undeliverable'.freeze,
|
27
|
+
|
28
|
+
# TODO: Write general description for QUEUED
|
29
|
+
QUEUED = 'queued'.freeze,
|
30
|
+
|
31
|
+
# TODO: Write general description for PROCESSED
|
32
|
+
PROCESSED = 'processed'.freeze,
|
33
|
+
|
34
|
+
# TODO: Write general description for CANCELLED
|
35
|
+
CANCELLED = 'cancelled'.freeze,
|
36
|
+
|
37
|
+
# TODO: Write general description for SCHEDULED
|
38
|
+
SCHEDULED = 'scheduled'.freeze,
|
39
|
+
|
40
|
+
# TODO: Write general description for FAILED
|
41
|
+
FAILED = 'failed'.freeze
|
42
|
+
].freeze
|
43
|
+
end
|
44
|
+
end
|
@@ -1,44 +1,44 @@
|
|
1
|
-
# message_media_messages
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module MessageMediaMessages
|
7
|
-
# VendorAccountId Model.
|
8
|
-
class VendorAccountId < BaseModel
|
9
|
-
# TODO: Write general description for this method
|
10
|
-
# @return [String]
|
11
|
-
attr_accessor :vendor_id
|
12
|
-
|
13
|
-
# The account used to submit the original message.
|
14
|
-
# @return [String]
|
15
|
-
attr_accessor :account_id
|
16
|
-
|
17
|
-
# A mapping from model property names to API property names.
|
18
|
-
def self.names
|
19
|
-
@_hash = {} if @_hash.nil?
|
20
|
-
@_hash['vendor_id'] = 'vendor_id'
|
21
|
-
@_hash['account_id'] = 'account_id'
|
22
|
-
@_hash
|
23
|
-
end
|
24
|
-
|
25
|
-
def initialize(vendor_id = nil,
|
26
|
-
account_id = nil)
|
27
|
-
@vendor_id = vendor_id
|
28
|
-
@account_id = account_id
|
29
|
-
end
|
30
|
-
|
31
|
-
# Creates an instance of the object from a hash.
|
32
|
-
def self.from_hash(hash)
|
33
|
-
return nil unless hash
|
34
|
-
|
35
|
-
# Extract variables from the hash.
|
36
|
-
vendor_id = hash['vendor_id']
|
37
|
-
account_id = hash['account_id']
|
38
|
-
|
39
|
-
# Create object from extracted values.
|
40
|
-
VendorAccountId.new(vendor_id,
|
41
|
-
account_id)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
1
|
+
# message_media_messages
|
2
|
+
#
|
3
|
+
# This file was automatically generated by APIMATIC v2.0
|
4
|
+
# ( https://apimatic.io ).
|
5
|
+
|
6
|
+
module MessageMediaMessages
|
7
|
+
# VendorAccountId Model.
|
8
|
+
class VendorAccountId < BaseModel
|
9
|
+
# TODO: Write general description for this method
|
10
|
+
# @return [String]
|
11
|
+
attr_accessor :vendor_id
|
12
|
+
|
13
|
+
# The account used to submit the original message.
|
14
|
+
# @return [String]
|
15
|
+
attr_accessor :account_id
|
16
|
+
|
17
|
+
# A mapping from model property names to API property names.
|
18
|
+
def self.names
|
19
|
+
@_hash = {} if @_hash.nil?
|
20
|
+
@_hash['vendor_id'] = 'vendor_id'
|
21
|
+
@_hash['account_id'] = 'account_id'
|
22
|
+
@_hash
|
23
|
+
end
|
24
|
+
|
25
|
+
def initialize(vendor_id = nil,
|
26
|
+
account_id = nil)
|
27
|
+
@vendor_id = vendor_id
|
28
|
+
@account_id = account_id
|
29
|
+
end
|
30
|
+
|
31
|
+
# Creates an instance of the object from a hash.
|
32
|
+
def self.from_hash(hash)
|
33
|
+
return nil unless hash
|
34
|
+
|
35
|
+
# Extract variables from the hash.
|
36
|
+
vendor_id = hash['vendor_id']
|
37
|
+
account_id = hash['account_id']
|
38
|
+
|
39
|
+
# Create object from extracted values.
|
40
|
+
VendorAccountId.new(vendor_id,
|
41
|
+
account_id)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|