sentdm 0.32.0 → 0.34.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 +16 -0
- data/README.md +1 -1
- data/lib/sentdm/client.rb +6 -0
- data/lib/sentdm/models/channel_event_payload.rb +154 -7
- data/lib/sentdm/models/contact_event.rb +15 -7
- data/lib/sentdm/models/contact_event_payload.rb +77 -16
- data/lib/sentdm/models/conversation_messages_list.rb +214 -6
- data/lib/sentdm/models/inbound_message_event_payload.rb +70 -3
- data/lib/sentdm/models/me_retrieve_response.rb +21 -1
- data/lib/sentdm/models/message_event_payload.rb +42 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +42 -5
- data/lib/sentdm/models/message_retrieve_status_response.rb +222 -8
- data/lib/sentdm/models/message_send_params.rb +67 -3
- data/lib/sentdm/models/message_send_response.rb +13 -4
- data/lib/sentdm/models/template_body.rb +82 -1
- data/lib/sentdm/models/template_create_params.rb +11 -1
- data/lib/sentdm/models/template_header.rb +91 -3
- data/lib/sentdm/models/template_variable.rb +15 -1
- data/lib/sentdm/models/webhook_create_params.rb +31 -1
- data/lib/sentdm/models/webhook_list_events_response.rb +497 -9
- data/lib/sentdm/models/webhook_update_params.rb +31 -1
- data/lib/sentdm/resources/me.rb +5 -0
- data/lib/sentdm/resources/messages.rb +33 -5
- data/lib/sentdm/resources/templates.rb +3 -1
- data/lib/sentdm/resources/webhooks.rb +9 -3
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +1 -1
- data/rbi/sentdm/client.rbi +6 -0
- data/rbi/sentdm/models/channel_event_payload.rbi +273 -10
- data/rbi/sentdm/models/contact_event.rbi +28 -12
- data/rbi/sentdm/models/contact_event_payload.rbi +118 -28
- data/rbi/sentdm/models/conversation_messages_list.rbi +308 -10
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +110 -2
- data/rbi/sentdm/models/me_retrieve_response.rbi +35 -0
- data/rbi/sentdm/models/message_event_payload.rbi +50 -0
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +49 -5
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +320 -12
- data/rbi/sentdm/models/message_send_params.rbi +100 -2
- data/rbi/sentdm/models/message_send_response.rbi +15 -5
- data/rbi/sentdm/models/template_body.rbi +133 -0
- data/rbi/sentdm/models/template_create_params.rbi +15 -0
- data/rbi/sentdm/models/template_header.rbi +143 -2
- data/rbi/sentdm/models/template_variable.rbi +10 -0
- data/rbi/sentdm/models/webhook_create_params.rbi +61 -0
- data/rbi/sentdm/models/webhook_list_events_response.rbi +747 -12
- data/rbi/sentdm/models/webhook_update_params.rbi +61 -0
- data/rbi/sentdm/resources/me.rbi +5 -0
- data/rbi/sentdm/resources/messages.rbi +58 -3
- data/rbi/sentdm/resources/templates.rbi +6 -0
- data/rbi/sentdm/resources/webhooks.rbi +15 -1
- data/sig/sentdm/models/channel_event_payload.rbs +62 -0
- data/sig/sentdm/models/contact_event_payload.rbs +24 -9
- data/sig/sentdm/models/conversation_messages_list.rbs +99 -6
- data/sig/sentdm/models/inbound_message_event_payload.rbs +37 -0
- data/sig/sentdm/models/me_retrieve_response.rbs +7 -0
- data/sig/sentdm/models/message_event_payload.rbs +20 -0
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +15 -0
- data/sig/sentdm/models/message_retrieve_status_response.rbs +99 -6
- data/sig/sentdm/models/message_send_params.rbs +15 -0
- data/sig/sentdm/models/template_body.rbs +44 -0
- data/sig/sentdm/models/template_create_params.rbs +7 -0
- data/sig/sentdm/models/template_header.rbs +44 -0
- data/sig/sentdm/models/webhook_create_params.rbs +29 -0
- data/sig/sentdm/models/webhook_list_events_response.rbs +252 -0
- data/sig/sentdm/models/webhook_update_params.rbs +29 -0
- data/sig/sentdm/resources/messages.rbs +3 -0
- data/sig/sentdm/resources/templates.rbs +1 -0
- data/sig/sentdm/resources/webhooks.rbs +2 -0
- metadata +2 -2
|
@@ -6,6 +6,7 @@ module Sentdm
|
|
|
6
6
|
received_at: String,
|
|
7
7
|
account_id: String,
|
|
8
8
|
channel: String,
|
|
9
|
+
media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
9
10
|
message_id: String,
|
|
10
11
|
outbound_number: String,
|
|
11
12
|
text: String?,
|
|
@@ -25,6 +26,8 @@ module Sentdm
|
|
|
25
26
|
|
|
26
27
|
def channel=: (String) -> String
|
|
27
28
|
|
|
29
|
+
attr_accessor media: ::Array[Sentdm::InboundMessageEventPayload::Media]?
|
|
30
|
+
|
|
28
31
|
attr_reader message_id: String?
|
|
29
32
|
|
|
30
33
|
def message_id=: (String) -> String
|
|
@@ -44,6 +47,7 @@ module Sentdm
|
|
|
44
47
|
received_at: String,
|
|
45
48
|
?account_id: String,
|
|
46
49
|
?channel: String,
|
|
50
|
+
?media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
47
51
|
?message_id: String,
|
|
48
52
|
?outbound_number: String,
|
|
49
53
|
?text: String?,
|
|
@@ -55,11 +59,44 @@ module Sentdm
|
|
|
55
59
|
received_at: String,
|
|
56
60
|
account_id: String,
|
|
57
61
|
channel: String,
|
|
62
|
+
media: ::Array[Sentdm::InboundMessageEventPayload::Media]?,
|
|
58
63
|
message_id: String,
|
|
59
64
|
outbound_number: String,
|
|
60
65
|
text: String?,
|
|
61
66
|
updated_at: String
|
|
62
67
|
}
|
|
68
|
+
|
|
69
|
+
type media =
|
|
70
|
+
{
|
|
71
|
+
:hash_sha256 => String?,
|
|
72
|
+
mime_type: String?,
|
|
73
|
+
size_bytes: Integer?,
|
|
74
|
+
url: String?
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
class Media < Sentdm::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor hash_sha256: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor mime_type: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor size_bytes: Integer?
|
|
83
|
+
|
|
84
|
+
attr_accessor url: String?
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
?hash_sha256: String?,
|
|
88
|
+
?mime_type: String?,
|
|
89
|
+
?size_bytes: Integer?,
|
|
90
|
+
?url: String?
|
|
91
|
+
) -> void
|
|
92
|
+
|
|
93
|
+
def to_hash: -> {
|
|
94
|
+
:hash_sha256 => String?,
|
|
95
|
+
mime_type: String?,
|
|
96
|
+
size_bytes: Integer?,
|
|
97
|
+
url: String?
|
|
98
|
+
}
|
|
99
|
+
end
|
|
63
100
|
end
|
|
64
101
|
end
|
|
65
102
|
end
|
|
@@ -42,6 +42,7 @@ module Sentdm
|
|
|
42
42
|
created_at: Time,
|
|
43
43
|
description: String?,
|
|
44
44
|
email: String?,
|
|
45
|
+
enable_template_auto_creation_for_sp: bool,
|
|
45
46
|
icon: String?,
|
|
46
47
|
name: String,
|
|
47
48
|
organization_id: String?,
|
|
@@ -73,6 +74,10 @@ module Sentdm
|
|
|
73
74
|
|
|
74
75
|
attr_accessor email: String?
|
|
75
76
|
|
|
77
|
+
attr_reader enable_template_auto_creation_for_sp: bool?
|
|
78
|
+
|
|
79
|
+
def enable_template_auto_creation_for_sp=: (bool) -> bool
|
|
80
|
+
|
|
76
81
|
attr_accessor icon: String?
|
|
77
82
|
|
|
78
83
|
attr_reader name: String?
|
|
@@ -107,6 +112,7 @@ module Sentdm
|
|
|
107
112
|
?created_at: Time,
|
|
108
113
|
?description: String?,
|
|
109
114
|
?email: String?,
|
|
115
|
+
?enable_template_auto_creation_for_sp: bool,
|
|
110
116
|
?icon: String?,
|
|
111
117
|
?name: String,
|
|
112
118
|
?organization_id: String?,
|
|
@@ -125,6 +131,7 @@ module Sentdm
|
|
|
125
131
|
created_at: Time,
|
|
126
132
|
description: String?,
|
|
127
133
|
email: String?,
|
|
134
|
+
enable_template_auto_creation_for_sp: bool,
|
|
128
135
|
icon: String?,
|
|
129
136
|
name: String,
|
|
130
137
|
organization_id: String?,
|
|
@@ -9,6 +9,10 @@ module Sentdm
|
|
|
9
9
|
channel: String,
|
|
10
10
|
message_id: String,
|
|
11
11
|
outbound_number: String,
|
|
12
|
+
reason: String?,
|
|
13
|
+
reason_code: String?,
|
|
14
|
+
schedule_reason: String?,
|
|
15
|
+
scheduled_at: String?,
|
|
12
16
|
template_id: String?,
|
|
13
17
|
template_name: String?,
|
|
14
18
|
updated_at: String
|
|
@@ -37,6 +41,14 @@ module Sentdm
|
|
|
37
41
|
|
|
38
42
|
def outbound_number=: (String) -> String
|
|
39
43
|
|
|
44
|
+
attr_accessor reason: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor reason_code: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor schedule_reason: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor scheduled_at: String?
|
|
51
|
+
|
|
40
52
|
attr_accessor template_id: String?
|
|
41
53
|
|
|
42
54
|
attr_accessor template_name: String?
|
|
@@ -53,6 +65,10 @@ module Sentdm
|
|
|
53
65
|
?channel: String,
|
|
54
66
|
?message_id: String,
|
|
55
67
|
?outbound_number: String,
|
|
68
|
+
?reason: String?,
|
|
69
|
+
?reason_code: String?,
|
|
70
|
+
?schedule_reason: String?,
|
|
71
|
+
?scheduled_at: String?,
|
|
56
72
|
?template_id: String?,
|
|
57
73
|
?template_name: String?,
|
|
58
74
|
?updated_at: String
|
|
@@ -66,6 +82,10 @@ module Sentdm
|
|
|
66
82
|
channel: String,
|
|
67
83
|
message_id: String,
|
|
68
84
|
outbound_number: String,
|
|
85
|
+
reason: String?,
|
|
86
|
+
reason_code: String?,
|
|
87
|
+
schedule_reason: String?,
|
|
88
|
+
scheduled_at: String?,
|
|
69
89
|
template_id: String?,
|
|
70
90
|
template_name: String?,
|
|
71
91
|
updated_at: String
|
|
@@ -75,6 +75,9 @@ module Sentdm
|
|
|
75
75
|
description: String,
|
|
76
76
|
from: String?,
|
|
77
77
|
price: String?,
|
|
78
|
+
reason: String?,
|
|
79
|
+
reason_code: String?,
|
|
80
|
+
scheduled_at: Time?,
|
|
78
81
|
status: String,
|
|
79
82
|
timestamp: Time
|
|
80
83
|
}
|
|
@@ -90,6 +93,12 @@ module Sentdm
|
|
|
90
93
|
|
|
91
94
|
attr_accessor price: String?
|
|
92
95
|
|
|
96
|
+
attr_accessor reason: String?
|
|
97
|
+
|
|
98
|
+
attr_accessor reason_code: String?
|
|
99
|
+
|
|
100
|
+
attr_accessor scheduled_at: Time?
|
|
101
|
+
|
|
93
102
|
attr_reader status: String?
|
|
94
103
|
|
|
95
104
|
def status=: (String) -> String
|
|
@@ -103,6 +112,9 @@ module Sentdm
|
|
|
103
112
|
?description: String,
|
|
104
113
|
?from: String?,
|
|
105
114
|
?price: String?,
|
|
115
|
+
?reason: String?,
|
|
116
|
+
?reason_code: String?,
|
|
117
|
+
?scheduled_at: Time?,
|
|
106
118
|
?status: String,
|
|
107
119
|
?timestamp: Time
|
|
108
120
|
) -> void
|
|
@@ -112,6 +124,9 @@ module Sentdm
|
|
|
112
124
|
description: String,
|
|
113
125
|
from: String?,
|
|
114
126
|
price: String?,
|
|
127
|
+
reason: String?,
|
|
128
|
+
reason_code: String?,
|
|
129
|
+
scheduled_at: Time?,
|
|
115
130
|
status: String,
|
|
116
131
|
timestamp: Time
|
|
117
132
|
}
|
|
@@ -49,6 +49,8 @@ module Sentdm
|
|
|
49
49
|
phone: String,
|
|
50
50
|
phone_international: String,
|
|
51
51
|
price: Float?,
|
|
52
|
+
reason: String?,
|
|
53
|
+
reason_code: String?,
|
|
52
54
|
region_code: String,
|
|
53
55
|
status: String,
|
|
54
56
|
template_category: String?,
|
|
@@ -97,6 +99,10 @@ module Sentdm
|
|
|
97
99
|
|
|
98
100
|
attr_accessor price: Float?
|
|
99
101
|
|
|
102
|
+
attr_accessor reason: String?
|
|
103
|
+
|
|
104
|
+
attr_accessor reason_code: String?
|
|
105
|
+
|
|
100
106
|
attr_reader region_code: String?
|
|
101
107
|
|
|
102
108
|
def region_code=: (String) -> String
|
|
@@ -124,6 +130,8 @@ module Sentdm
|
|
|
124
130
|
?phone: String,
|
|
125
131
|
?phone_international: String,
|
|
126
132
|
?price: Float?,
|
|
133
|
+
?reason: String?,
|
|
134
|
+
?reason_code: String?,
|
|
127
135
|
?region_code: String,
|
|
128
136
|
?status: String,
|
|
129
137
|
?template_category: String?,
|
|
@@ -144,6 +152,8 @@ module Sentdm
|
|
|
144
152
|
phone: String,
|
|
145
153
|
phone_international: String,
|
|
146
154
|
price: Float?,
|
|
155
|
+
reason: String?,
|
|
156
|
+
reason_code: String?,
|
|
147
157
|
region_code: String,
|
|
148
158
|
status: String,
|
|
149
159
|
template_category: String?,
|
|
@@ -151,7 +161,14 @@ module Sentdm
|
|
|
151
161
|
template_name: String?
|
|
152
162
|
}
|
|
153
163
|
|
|
154
|
-
type event =
|
|
164
|
+
type event =
|
|
165
|
+
{
|
|
166
|
+
status: String,
|
|
167
|
+
timestamp: Time,
|
|
168
|
+
description: String?,
|
|
169
|
+
reason: String?,
|
|
170
|
+
reason_code: String?
|
|
171
|
+
}
|
|
155
172
|
|
|
156
173
|
class Event < Sentdm::Internal::Type::BaseModel
|
|
157
174
|
attr_accessor status: String
|
|
@@ -160,16 +177,24 @@ module Sentdm
|
|
|
160
177
|
|
|
161
178
|
attr_accessor description: String?
|
|
162
179
|
|
|
180
|
+
attr_accessor reason: String?
|
|
181
|
+
|
|
182
|
+
attr_accessor reason_code: String?
|
|
183
|
+
|
|
163
184
|
def initialize: (
|
|
164
185
|
status: String,
|
|
165
186
|
timestamp: Time,
|
|
166
|
-
?description: String
|
|
187
|
+
?description: String?,
|
|
188
|
+
?reason: String?,
|
|
189
|
+
?reason_code: String?
|
|
167
190
|
) -> void
|
|
168
191
|
|
|
169
192
|
def to_hash: -> {
|
|
170
193
|
status: String,
|
|
171
194
|
timestamp: Time,
|
|
172
|
-
description: String
|
|
195
|
+
description: String?,
|
|
196
|
+
reason: String?,
|
|
197
|
+
reason_code: String?
|
|
173
198
|
}
|
|
174
199
|
end
|
|
175
200
|
|
|
@@ -178,7 +203,10 @@ module Sentdm
|
|
|
178
203
|
buttons: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Button]?,
|
|
179
204
|
content: String,
|
|
180
205
|
footer: String?,
|
|
181
|
-
header: String
|
|
206
|
+
header: String?,
|
|
207
|
+
header_media: Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::HeaderMedia?,
|
|
208
|
+
media: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Media]?,
|
|
209
|
+
subject: String?
|
|
182
210
|
}
|
|
183
211
|
|
|
184
212
|
class MessageBody < Sentdm::Internal::Type::BaseModel
|
|
@@ -192,18 +220,30 @@ module Sentdm
|
|
|
192
220
|
|
|
193
221
|
attr_accessor header: String?
|
|
194
222
|
|
|
223
|
+
attr_accessor header_media: Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::HeaderMedia?
|
|
224
|
+
|
|
225
|
+
attr_accessor media: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Media]?
|
|
226
|
+
|
|
227
|
+
attr_accessor subject: String?
|
|
228
|
+
|
|
195
229
|
def initialize: (
|
|
196
230
|
?buttons: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Button]?,
|
|
197
231
|
?content: String,
|
|
198
232
|
?footer: String?,
|
|
199
|
-
?header: String
|
|
233
|
+
?header: String?,
|
|
234
|
+
?header_media: Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::HeaderMedia?,
|
|
235
|
+
?media: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Media]?,
|
|
236
|
+
?subject: String?
|
|
200
237
|
) -> void
|
|
201
238
|
|
|
202
239
|
def to_hash: -> {
|
|
203
240
|
buttons: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Button]?,
|
|
204
241
|
content: String,
|
|
205
242
|
footer: String?,
|
|
206
|
-
header: String
|
|
243
|
+
header: String?,
|
|
244
|
+
header_media: Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::HeaderMedia?,
|
|
245
|
+
media: ::Array[Sentdm::Models::MessageRetrieveStatusResponse::Data::MessageBody::Media]?,
|
|
246
|
+
subject: String?
|
|
207
247
|
}
|
|
208
248
|
|
|
209
249
|
type button =
|
|
@@ -241,6 +281,59 @@ module Sentdm
|
|
|
241
281
|
value: String
|
|
242
282
|
}
|
|
243
283
|
end
|
|
284
|
+
|
|
285
|
+
type header_media = { type: String, url: String }
|
|
286
|
+
|
|
287
|
+
class HeaderMedia < Sentdm::Internal::Type::BaseModel
|
|
288
|
+
attr_reader type: String?
|
|
289
|
+
|
|
290
|
+
def type=: (String) -> String
|
|
291
|
+
|
|
292
|
+
attr_reader url: String?
|
|
293
|
+
|
|
294
|
+
def url=: (String) -> String
|
|
295
|
+
|
|
296
|
+
def initialize: (?type: String, ?url: String) -> void
|
|
297
|
+
|
|
298
|
+
def to_hash: -> { type: String, url: String }
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
type media =
|
|
302
|
+
{
|
|
303
|
+
media_type: String?,
|
|
304
|
+
mime_type: String?,
|
|
305
|
+
size_bytes: Integer?,
|
|
306
|
+
:source_hash_sha256 => String?,
|
|
307
|
+
url: String?
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
class Media < Sentdm::Internal::Type::BaseModel
|
|
311
|
+
attr_accessor media_type: String?
|
|
312
|
+
|
|
313
|
+
attr_accessor mime_type: String?
|
|
314
|
+
|
|
315
|
+
attr_accessor size_bytes: Integer?
|
|
316
|
+
|
|
317
|
+
attr_accessor source_hash_sha256: String?
|
|
318
|
+
|
|
319
|
+
attr_accessor url: String?
|
|
320
|
+
|
|
321
|
+
def initialize: (
|
|
322
|
+
?media_type: String?,
|
|
323
|
+
?mime_type: String?,
|
|
324
|
+
?size_bytes: Integer?,
|
|
325
|
+
?source_hash_sha256: String?,
|
|
326
|
+
?url: String?
|
|
327
|
+
) -> void
|
|
328
|
+
|
|
329
|
+
def to_hash: -> {
|
|
330
|
+
media_type: String?,
|
|
331
|
+
mime_type: String?,
|
|
332
|
+
size_bytes: Integer?,
|
|
333
|
+
:source_hash_sha256 => String?,
|
|
334
|
+
url: String?
|
|
335
|
+
}
|
|
336
|
+
end
|
|
244
337
|
end
|
|
245
338
|
end
|
|
246
339
|
end
|
|
@@ -3,7 +3,10 @@ module Sentdm
|
|
|
3
3
|
type message_send_params =
|
|
4
4
|
{
|
|
5
5
|
channel: ::Array[String]?,
|
|
6
|
+
media_urls: ::Array[String]?,
|
|
6
7
|
sandbox: bool,
|
|
8
|
+
scheduled_at: Time?,
|
|
9
|
+
subject: String?,
|
|
7
10
|
template: Sentdm::MessageSendParams::Template?,
|
|
8
11
|
text: String?,
|
|
9
12
|
to: ::Array[String],
|
|
@@ -18,10 +21,16 @@ module Sentdm
|
|
|
18
21
|
|
|
19
22
|
attr_accessor channel: ::Array[String]?
|
|
20
23
|
|
|
24
|
+
attr_accessor media_urls: ::Array[String]?
|
|
25
|
+
|
|
21
26
|
attr_reader sandbox: bool?
|
|
22
27
|
|
|
23
28
|
def sandbox=: (bool) -> bool
|
|
24
29
|
|
|
30
|
+
attr_accessor scheduled_at: Time?
|
|
31
|
+
|
|
32
|
+
attr_accessor subject: String?
|
|
33
|
+
|
|
25
34
|
attr_accessor template: Sentdm::MessageSendParams::Template?
|
|
26
35
|
|
|
27
36
|
attr_accessor text: String?
|
|
@@ -40,7 +49,10 @@ module Sentdm
|
|
|
40
49
|
|
|
41
50
|
def initialize: (
|
|
42
51
|
?channel: ::Array[String]?,
|
|
52
|
+
?media_urls: ::Array[String]?,
|
|
43
53
|
?sandbox: bool,
|
|
54
|
+
?scheduled_at: Time?,
|
|
55
|
+
?subject: String?,
|
|
44
56
|
?template: Sentdm::MessageSendParams::Template?,
|
|
45
57
|
?text: String?,
|
|
46
58
|
?to: ::Array[String],
|
|
@@ -51,7 +63,10 @@ module Sentdm
|
|
|
51
63
|
|
|
52
64
|
def to_hash: -> {
|
|
53
65
|
channel: ::Array[String]?,
|
|
66
|
+
media_urls: ::Array[String]?,
|
|
54
67
|
sandbox: bool,
|
|
68
|
+
scheduled_at: Time?,
|
|
69
|
+
subject: String?,
|
|
55
70
|
template: Sentdm::MessageSendParams::Template?,
|
|
56
71
|
text: String?,
|
|
57
72
|
to: ::Array[String],
|
|
@@ -2,6 +2,7 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type template_body =
|
|
4
4
|
{
|
|
5
|
+
mms: Sentdm::TemplateBody::Mms?,
|
|
5
6
|
multi_channel: Sentdm::TemplateBodyContent?,
|
|
6
7
|
rcs: Sentdm::TemplateBodyContent?,
|
|
7
8
|
sms: Sentdm::TemplateBodyContent?,
|
|
@@ -9,6 +10,8 @@ module Sentdm
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
class TemplateBody < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor mms: Sentdm::TemplateBody::Mms?
|
|
14
|
+
|
|
12
15
|
attr_accessor multi_channel: Sentdm::TemplateBodyContent?
|
|
13
16
|
|
|
14
17
|
attr_accessor rcs: Sentdm::TemplateBodyContent?
|
|
@@ -18,6 +21,7 @@ module Sentdm
|
|
|
18
21
|
attr_accessor whatsapp: Sentdm::TemplateBodyContent?
|
|
19
22
|
|
|
20
23
|
def initialize: (
|
|
24
|
+
?mms: Sentdm::TemplateBody::Mms?,
|
|
21
25
|
?multi_channel: Sentdm::TemplateBodyContent?,
|
|
22
26
|
?rcs: Sentdm::TemplateBodyContent?,
|
|
23
27
|
?sms: Sentdm::TemplateBodyContent?,
|
|
@@ -25,11 +29,51 @@ module Sentdm
|
|
|
25
29
|
) -> void
|
|
26
30
|
|
|
27
31
|
def to_hash: -> {
|
|
32
|
+
mms: Sentdm::TemplateBody::Mms?,
|
|
28
33
|
multi_channel: Sentdm::TemplateBodyContent?,
|
|
29
34
|
rcs: Sentdm::TemplateBodyContent?,
|
|
30
35
|
sms: Sentdm::TemplateBodyContent?,
|
|
31
36
|
whatsapp: Sentdm::TemplateBodyContent?
|
|
32
37
|
}
|
|
38
|
+
|
|
39
|
+
type mms =
|
|
40
|
+
{ media: ::Array[Sentdm::TemplateBody::Mms::Media]?, subject: String? }
|
|
41
|
+
|
|
42
|
+
class Mms < Sentdm::Models::TemplateBodyContent
|
|
43
|
+
def media: -> ::Array[Sentdm::TemplateBody::Mms::Media]?
|
|
44
|
+
|
|
45
|
+
def media=: (
|
|
46
|
+
::Array[Sentdm::TemplateBody::Mms::Media]? _
|
|
47
|
+
) -> ::Array[Sentdm::TemplateBody::Mms::Media]?
|
|
48
|
+
|
|
49
|
+
def subject: -> String?
|
|
50
|
+
|
|
51
|
+
def subject=: (String? _) -> String?
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
?media: ::Array[Sentdm::TemplateBody::Mms::Media]?,
|
|
55
|
+
?subject: String?
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
media: ::Array[Sentdm::TemplateBody::Mms::Media]?,
|
|
60
|
+
subject: String?
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type media = { media_type: String?, url: String }
|
|
64
|
+
|
|
65
|
+
class Media < Sentdm::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor media_type: String?
|
|
67
|
+
|
|
68
|
+
attr_reader url: String?
|
|
69
|
+
|
|
70
|
+
def url=: (String) -> String
|
|
71
|
+
|
|
72
|
+
def initialize: (?media_type: String?, ?url: String) -> void
|
|
73
|
+
|
|
74
|
+
def to_hash: -> { media_type: String?, url: String }
|
|
75
|
+
end
|
|
76
|
+
end
|
|
33
77
|
end
|
|
34
78
|
end
|
|
35
79
|
end
|
|
@@ -2,6 +2,7 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type template_create_params =
|
|
4
4
|
{
|
|
5
|
+
auto_create_for_sp: bool,
|
|
5
6
|
category: String?,
|
|
6
7
|
creation_source: String?,
|
|
7
8
|
definition: Sentdm::TemplateDefinition,
|
|
@@ -17,6 +18,10 @@ module Sentdm
|
|
|
17
18
|
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
18
19
|
include Sentdm::Internal::Type::RequestParameters
|
|
19
20
|
|
|
21
|
+
attr_reader auto_create_for_sp: bool?
|
|
22
|
+
|
|
23
|
+
def auto_create_for_sp=: (bool) -> bool
|
|
24
|
+
|
|
20
25
|
attr_accessor category: String?
|
|
21
26
|
|
|
22
27
|
attr_accessor creation_source: String?
|
|
@@ -46,6 +51,7 @@ module Sentdm
|
|
|
46
51
|
def x_profile_id=: (String) -> String
|
|
47
52
|
|
|
48
53
|
def initialize: (
|
|
54
|
+
?auto_create_for_sp: bool,
|
|
49
55
|
?category: String?,
|
|
50
56
|
?creation_source: String?,
|
|
51
57
|
?definition: Sentdm::TemplateDefinition,
|
|
@@ -58,6 +64,7 @@ module Sentdm
|
|
|
58
64
|
) -> void
|
|
59
65
|
|
|
60
66
|
def to_hash: -> {
|
|
67
|
+
auto_create_for_sp: bool,
|
|
61
68
|
category: String?,
|
|
62
69
|
creation_source: String?,
|
|
63
70
|
definition: Sentdm::TemplateDefinition,
|
|
@@ -3,6 +3,9 @@ module Sentdm
|
|
|
3
3
|
type template_header =
|
|
4
4
|
{
|
|
5
5
|
template: String,
|
|
6
|
+
example_url: String?,
|
|
7
|
+
location: Sentdm::TemplateHeader::Location?,
|
|
8
|
+
static_resource: bool,
|
|
6
9
|
type: String?,
|
|
7
10
|
variables: ::Array[Sentdm::TemplateVariable]?
|
|
8
11
|
}
|
|
@@ -10,21 +13,62 @@ module Sentdm
|
|
|
10
13
|
class TemplateHeader < Sentdm::Internal::Type::BaseModel
|
|
11
14
|
attr_accessor template: String
|
|
12
15
|
|
|
16
|
+
attr_accessor example_url: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor location: Sentdm::TemplateHeader::Location?
|
|
19
|
+
|
|
20
|
+
attr_reader static_resource: bool?
|
|
21
|
+
|
|
22
|
+
def static_resource=: (bool) -> bool
|
|
23
|
+
|
|
13
24
|
attr_accessor type: String?
|
|
14
25
|
|
|
15
26
|
attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
|
|
16
27
|
|
|
17
28
|
def initialize: (
|
|
18
29
|
template: String,
|
|
30
|
+
?example_url: String?,
|
|
31
|
+
?location: Sentdm::TemplateHeader::Location?,
|
|
32
|
+
?static_resource: bool,
|
|
19
33
|
?type: String?,
|
|
20
34
|
?variables: ::Array[Sentdm::TemplateVariable]?
|
|
21
35
|
) -> void
|
|
22
36
|
|
|
23
37
|
def to_hash: -> {
|
|
24
38
|
template: String,
|
|
39
|
+
example_url: String?,
|
|
40
|
+
location: Sentdm::TemplateHeader::Location?,
|
|
41
|
+
static_resource: bool,
|
|
25
42
|
type: String?,
|
|
26
43
|
variables: ::Array[Sentdm::TemplateVariable]?
|
|
27
44
|
}
|
|
45
|
+
|
|
46
|
+
type location =
|
|
47
|
+
{ address: String, latitude: String, longitude: String, name: String }
|
|
48
|
+
|
|
49
|
+
class Location < Sentdm::Internal::Type::BaseModel
|
|
50
|
+
attr_accessor address: String
|
|
51
|
+
|
|
52
|
+
attr_accessor latitude: String
|
|
53
|
+
|
|
54
|
+
attr_accessor longitude: String
|
|
55
|
+
|
|
56
|
+
attr_accessor name: String
|
|
57
|
+
|
|
58
|
+
def initialize: (
|
|
59
|
+
address: String,
|
|
60
|
+
latitude: String,
|
|
61
|
+
longitude: String,
|
|
62
|
+
name: String
|
|
63
|
+
) -> void
|
|
64
|
+
|
|
65
|
+
def to_hash: -> {
|
|
66
|
+
address: String,
|
|
67
|
+
latitude: String,
|
|
68
|
+
longitude: String,
|
|
69
|
+
name: String
|
|
70
|
+
}
|
|
71
|
+
end
|
|
28
72
|
end
|
|
29
73
|
end
|
|
30
74
|
end
|
|
@@ -8,6 +8,7 @@ module Sentdm
|
|
|
8
8
|
event_types: ::Array[String],
|
|
9
9
|
retry_count: Integer,
|
|
10
10
|
sandbox: bool,
|
|
11
|
+
sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
11
12
|
timeout_seconds: Integer,
|
|
12
13
|
idempotency_key: String,
|
|
13
14
|
x_profile_id: String
|
|
@@ -40,6 +41,8 @@ module Sentdm
|
|
|
40
41
|
|
|
41
42
|
def sandbox=: (bool) -> bool
|
|
42
43
|
|
|
44
|
+
attr_accessor sender_profile: Sentdm::WebhookCreateParams::SenderProfile?
|
|
45
|
+
|
|
43
46
|
attr_reader timeout_seconds: Integer?
|
|
44
47
|
|
|
45
48
|
def timeout_seconds=: (Integer) -> Integer
|
|
@@ -59,6 +62,7 @@ module Sentdm
|
|
|
59
62
|
?event_types: ::Array[String],
|
|
60
63
|
?retry_count: Integer,
|
|
61
64
|
?sandbox: bool,
|
|
65
|
+
?sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
62
66
|
?timeout_seconds: Integer,
|
|
63
67
|
?idempotency_key: String,
|
|
64
68
|
?x_profile_id: String,
|
|
@@ -72,11 +76,36 @@ module Sentdm
|
|
|
72
76
|
event_types: ::Array[String],
|
|
73
77
|
retry_count: Integer,
|
|
74
78
|
sandbox: bool,
|
|
79
|
+
sender_profile: Sentdm::WebhookCreateParams::SenderProfile?,
|
|
75
80
|
timeout_seconds: Integer,
|
|
76
81
|
idempotency_key: String,
|
|
77
82
|
x_profile_id: String,
|
|
78
83
|
request_options: Sentdm::RequestOptions
|
|
79
84
|
}
|
|
85
|
+
|
|
86
|
+
type sender_profile =
|
|
87
|
+
{
|
|
88
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
89
|
+
event_types: ::Array[String]
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
class SenderProfile < Sentdm::Internal::Type::BaseModel
|
|
93
|
+
attr_accessor event_filters: ::Hash[Symbol, ::Array[String]]?
|
|
94
|
+
|
|
95
|
+
attr_reader event_types: ::Array[String]?
|
|
96
|
+
|
|
97
|
+
def event_types=: (::Array[String]) -> ::Array[String]
|
|
98
|
+
|
|
99
|
+
def initialize: (
|
|
100
|
+
?event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
101
|
+
?event_types: ::Array[String]
|
|
102
|
+
) -> void
|
|
103
|
+
|
|
104
|
+
def to_hash: -> {
|
|
105
|
+
event_filters: ::Hash[Symbol, ::Array[String]]?,
|
|
106
|
+
event_types: ::Array[String]
|
|
107
|
+
}
|
|
108
|
+
end
|
|
80
109
|
end
|
|
81
110
|
end
|
|
82
111
|
end
|