sentdm 0.25.0 → 0.27.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 +39 -0
- data/README.md +7 -11
- data/lib/sentdm/client.rb +4 -0
- data/lib/sentdm/models/api_response_of_contact_message_summary.rb +43 -0
- data/lib/sentdm/models/api_response_of_conversation_messages_list.rb +43 -0
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rb → authentication_config.rb} +2 -3
- data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb → brand_business_info.rb} +5 -7
- data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb → brand_compliance_info.rb} +2 -10
- data/lib/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb → brand_contact_info.rb} +1 -1
- data/lib/sentdm/models/brands_brand_data.rb +9 -13
- data/lib/sentdm/models/contact_message_summary.rb +76 -0
- data/lib/sentdm/models/contact_retrieve_message_summary_params.rb +26 -0
- data/lib/sentdm/models/conversation_list_messages_params.rb +38 -0
- data/lib/sentdm/models/conversation_list_params.rb +32 -0
- data/lib/sentdm/models/conversation_messages_list.rb +245 -0
- data/lib/sentdm/models/inbound_message_event.rb +52 -0
- data/lib/sentdm/models/inbound_message_event_payload.rb +81 -0
- data/lib/sentdm/models/message_event.rb +53 -0
- data/lib/sentdm/models/message_event_payload.rb +92 -0
- data/lib/sentdm/models/message_send_response.rb +2 -6
- data/lib/sentdm/models/profile_detail.rb +13 -13
- data/lib/sentdm/models/profile_update_params.rb +2 -2
- data/lib/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rb → api_response_of_brand_campaign.rb} +5 -5
- data/lib/sentdm/models/profiles/{campaign_list_response.rb → api_response_of_list_of_brand_campaign.rb} +4 -6
- data/lib/sentdm/models/profiles/{tcr_campaign_with_use_cases.rb → brand_campaign.rb} +63 -111
- data/lib/sentdm/models/profiles/campaign_data.rb +13 -6
- data/lib/sentdm/models/profiles/campaign_use_case.rb +71 -0
- data/lib/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb → campaign_use_case_data.rb} +1 -1
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rb → template_body.rb} +2 -3
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button.rb → template_button.rb} +5 -6
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rb → template_button_props.rb} +2 -3
- data/lib/sentdm/models/template_definition.rb +15 -19
- data/lib/sentdm/models/template_event.rb +52 -0
- data/lib/sentdm/models/template_event_payload.rb +88 -0
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rb → template_footer.rb} +1 -1
- data/lib/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rb → template_header.rb} +2 -3
- data/lib/sentdm/models/webhook_list_events_response.rb +45 -3
- data/lib/sentdm/models.rb +44 -27
- data/lib/sentdm/resources/contacts.rb +30 -0
- data/lib/sentdm/resources/conversations.rb +82 -0
- data/lib/sentdm/resources/messages.rb +6 -1
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +34 -22
- data/lib/sentdm/resources/users.rb +3 -3
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +28 -14
- data/rbi/sentdm/client.rbi +3 -0
- data/rbi/sentdm/models/api_response_of_contact_message_summary.rbi +79 -0
- data/rbi/sentdm/models/api_response_of_conversation_messages_list.rbi +79 -0
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rbi → authentication_config.rbi} +2 -5
- data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi → brand_business_info.rbi} +12 -30
- data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi → brand_compliance_info.rbi} +2 -13
- data/rbi/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi → brand_contact_info.rbi} +2 -5
- data/rbi/sentdm/models/brands_brand_data.rbi +12 -51
- data/rbi/sentdm/models/contact_message_summary.rbi +144 -0
- data/rbi/sentdm/models/contact_retrieve_message_summary_params.rbi +49 -0
- data/rbi/sentdm/models/conversation_list_messages_params.rbi +65 -0
- data/rbi/sentdm/models/conversation_list_params.rbi +51 -0
- data/rbi/sentdm/models/conversation_messages_list.rbi +419 -0
- data/rbi/sentdm/models/inbound_message_event.rbi +88 -0
- data/rbi/sentdm/models/inbound_message_event_payload.rbi +122 -0
- data/rbi/sentdm/models/message_event.rbi +86 -0
- data/rbi/sentdm/models/message_event_payload.rbi +132 -0
- data/rbi/sentdm/models/message_send_response.rbi +2 -4
- data/rbi/sentdm/models/profile_detail.rbi +10 -12
- data/rbi/sentdm/models/profile_update_params.rbi +2 -2
- data/rbi/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rbi → api_response_of_brand_campaign.rbi} +8 -10
- data/rbi/sentdm/models/profiles/{campaign_list_response.rbi → api_response_of_list_of_brand_campaign.rbi} +5 -13
- data/rbi/sentdm/models/profiles/brand_campaign.rbi +299 -0
- data/rbi/sentdm/models/profiles/campaign_data.rbi +16 -18
- data/rbi/sentdm/models/profiles/campaign_use_case.rbi +110 -0
- data/rbi/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi → campaign_use_case_data.rbi} +2 -2
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rbi → template_body.rbi} +2 -7
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button.rbi → template_button.rbi} +6 -22
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rbi → template_button_props.rbi} +2 -5
- data/rbi/sentdm/models/template_definition.rbi +19 -87
- data/rbi/sentdm/models/template_event.rbi +84 -0
- data/rbi/sentdm/models/template_event_payload.rbi +131 -0
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rbi → template_footer.rbi} +2 -5
- data/rbi/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rbi → template_header.rbi} +2 -5
- data/rbi/sentdm/models/webhook_list_events_response.rbi +60 -4
- data/rbi/sentdm/models.rbi +48 -27
- data/rbi/sentdm/resources/contacts.rbi +20 -0
- data/rbi/sentdm/resources/conversations.rbi +61 -0
- data/rbi/sentdm/resources/messages.rbi +6 -1
- data/rbi/sentdm/resources/profiles/campaigns.rbi +3 -3
- data/rbi/sentdm/resources/profiles.rbi +32 -20
- data/rbi/sentdm/resources/users.rbi +3 -2
- data/sig/sentdm/client.rbs +2 -0
- data/sig/sentdm/models/api_response_of_contact_message_summary.rbs +39 -0
- data/sig/sentdm/models/api_response_of_conversation_messages_list.rbs +39 -0
- data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_authentication_config.rbs → authentication_config.rbs} +2 -2
- data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs → brand_business_info.rbs} +7 -7
- data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs → brand_compliance_info.rbs} +2 -7
- data/sig/sentdm/models/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs → brand_contact_info.rbs} +2 -2
- data/sig/sentdm/models/brands_brand_data.rbs +12 -12
- data/sig/sentdm/models/contact_message_summary.rbs +84 -0
- data/sig/sentdm/models/contact_retrieve_message_summary_params.rbs +30 -0
- data/sig/sentdm/models/conversation_list_messages_params.rbs +38 -0
- data/sig/sentdm/models/conversation_list_params.rbs +34 -0
- data/sig/sentdm/models/conversation_messages_list.rbs +240 -0
- data/sig/sentdm/models/inbound_message_event.rbs +39 -0
- data/sig/sentdm/models/inbound_message_event_payload.rbs +69 -0
- data/sig/sentdm/models/message_event.rbs +39 -0
- data/sig/sentdm/models/message_event_payload.rbs +72 -0
- data/sig/sentdm/models/profile_detail.rbs +0 -5
- data/sig/sentdm/models/profiles/{campaign_list_response.rbs → api_response_of_brand_campaign.rbs} +6 -6
- data/sig/sentdm/models/profiles/{api_response_of_tcr_campaign_with_use_cases.rbs → api_response_of_list_of_brand_campaign.rbs} +6 -6
- data/sig/sentdm/models/profiles/brand_campaign.rbs +194 -0
- data/sig/sentdm/models/profiles/campaign_data.rbs +12 -7
- data/sig/sentdm/models/profiles/campaign_use_case.rbs +66 -0
- data/sig/sentdm/models/profiles/{sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs → campaign_use_case_data.rbs} +2 -2
- data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_body.rbs → template_body.rbs} +2 -2
- data/sig/sentdm/models/template_button.rbs +28 -0
- data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_button_props.rbs → template_button_props.rbs} +2 -2
- data/sig/sentdm/models/template_definition.rbs +20 -20
- data/sig/sentdm/models/template_event.rbs +39 -0
- data/sig/sentdm/models/template_event_payload.rbs +76 -0
- data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_footer.rbs → template_footer.rbs} +2 -2
- data/sig/sentdm/models/{sent_dm_services_common_contracts_poc_os_template_header.rbs → template_header.rbs} +2 -2
- data/sig/sentdm/models/webhook_list_events_response.rbs +18 -5
- data/sig/sentdm/models.rbs +44 -18
- data/sig/sentdm/resources/contacts.rbs +6 -0
- data/sig/sentdm/resources/conversations.rbs +22 -0
- data/sig/sentdm/resources/profiles/campaigns.rbs +3 -3
- metadata +86 -44
- data/lib/sentdm/models/profiles/base_dto.rb +0 -32
- data/rbi/sentdm/models/profiles/base_dto.rbi +0 -53
- data/rbi/sentdm/models/profiles/tcr_campaign_with_use_cases.rbi +0 -425
- data/sig/sentdm/models/profiles/base_dto.rbs +0 -27
- data/sig/sentdm/models/profiles/tcr_campaign_with_use_cases.rbs +0 -306
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -32
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type message_event_payload =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
agent_id: String?,
|
|
7
|
+
channel: String,
|
|
8
|
+
message_id: String,
|
|
9
|
+
message_status: String,
|
|
10
|
+
outbound_number: String,
|
|
11
|
+
template_id: String?,
|
|
12
|
+
template_name: String?,
|
|
13
|
+
updated_at: String
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class MessageEventPayload < Sentdm::Internal::Type::BaseModel
|
|
17
|
+
attr_reader account_id: String?
|
|
18
|
+
|
|
19
|
+
def account_id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_accessor agent_id: String?
|
|
22
|
+
|
|
23
|
+
attr_reader channel: String?
|
|
24
|
+
|
|
25
|
+
def channel=: (String) -> String
|
|
26
|
+
|
|
27
|
+
attr_reader message_id: String?
|
|
28
|
+
|
|
29
|
+
def message_id=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader message_status: String?
|
|
32
|
+
|
|
33
|
+
def message_status=: (String) -> String
|
|
34
|
+
|
|
35
|
+
attr_reader outbound_number: String?
|
|
36
|
+
|
|
37
|
+
def outbound_number=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_accessor template_id: String?
|
|
40
|
+
|
|
41
|
+
attr_accessor template_name: String?
|
|
42
|
+
|
|
43
|
+
attr_reader updated_at: String?
|
|
44
|
+
|
|
45
|
+
def updated_at=: (String) -> String
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
?account_id: String,
|
|
49
|
+
?agent_id: String?,
|
|
50
|
+
?channel: String,
|
|
51
|
+
?message_id: String,
|
|
52
|
+
?message_status: String,
|
|
53
|
+
?outbound_number: String,
|
|
54
|
+
?template_id: String?,
|
|
55
|
+
?template_name: String?,
|
|
56
|
+
?updated_at: String
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
account_id: String,
|
|
61
|
+
agent_id: String?,
|
|
62
|
+
channel: String,
|
|
63
|
+
message_id: String,
|
|
64
|
+
message_status: String,
|
|
65
|
+
outbound_number: String,
|
|
66
|
+
template_id: String?,
|
|
67
|
+
template_name: String?,
|
|
68
|
+
updated_at: String
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -345,7 +345,6 @@ module Sentdm
|
|
|
345
345
|
{
|
|
346
346
|
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
347
347
|
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
348
|
-
expected_messaging_volume: String?,
|
|
349
348
|
is_tcr_application: bool,
|
|
350
349
|
notes: String?,
|
|
351
350
|
phone_number_prefix: String?,
|
|
@@ -362,8 +361,6 @@ module Sentdm
|
|
|
362
361
|
::Array[Sentdm::DestinationCountry]
|
|
363
362
|
) -> ::Array[Sentdm::DestinationCountry]
|
|
364
363
|
|
|
365
|
-
attr_accessor expected_messaging_volume: String?
|
|
366
|
-
|
|
367
364
|
attr_reader is_tcr_application: bool?
|
|
368
365
|
|
|
369
366
|
def is_tcr_application=: (bool) -> bool
|
|
@@ -379,7 +376,6 @@ module Sentdm
|
|
|
379
376
|
def initialize: (
|
|
380
377
|
?brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
381
378
|
?destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
382
|
-
?expected_messaging_volume: String?,
|
|
383
379
|
?is_tcr_application: bool,
|
|
384
380
|
?notes: String?,
|
|
385
381
|
?phone_number_prefix: String?,
|
|
@@ -390,7 +386,6 @@ module Sentdm
|
|
|
390
386
|
def to_hash: -> {
|
|
391
387
|
brand_relationship: Sentdm::Models::tcr_brand_relationship?,
|
|
392
388
|
destination_countries: ::Array[Sentdm::DestinationCountry],
|
|
393
|
-
expected_messaging_volume: String?,
|
|
394
389
|
is_tcr_application: bool,
|
|
395
390
|
notes: String?,
|
|
396
391
|
phone_number_prefix: String?,
|
data/sig/sentdm/models/profiles/{campaign_list_response.rbs → api_response_of_brand_campaign.rbs}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
module Profiles
|
|
4
|
-
type
|
|
4
|
+
type api_response_of_brand_campaign =
|
|
5
5
|
{
|
|
6
|
-
data:
|
|
6
|
+
data: Sentdm::Profiles::BrandCampaign?,
|
|
7
7
|
error: Sentdm::ErrorDetail?,
|
|
8
8
|
meta: Sentdm::APIMeta,
|
|
9
9
|
success: bool
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
attr_accessor data:
|
|
12
|
+
class APIResponseOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: Sentdm::Profiles::BrandCampaign?
|
|
14
14
|
|
|
15
15
|
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
16
|
|
|
@@ -23,14 +23,14 @@ module Sentdm
|
|
|
23
23
|
def success=: (bool) -> bool
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
?data:
|
|
26
|
+
?data: Sentdm::Profiles::BrandCampaign?,
|
|
27
27
|
?error: Sentdm::ErrorDetail?,
|
|
28
28
|
?meta: Sentdm::APIMeta,
|
|
29
29
|
?success: bool
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
data:
|
|
33
|
+
data: Sentdm::Profiles::BrandCampaign?,
|
|
34
34
|
error: Sentdm::ErrorDetail?,
|
|
35
35
|
meta: Sentdm::APIMeta,
|
|
36
36
|
success: bool
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
module Profiles
|
|
4
|
-
type
|
|
4
|
+
type api_response_of_list_of_brand_campaign =
|
|
5
5
|
{
|
|
6
|
-
data: Sentdm::Profiles::
|
|
6
|
+
data: ::Array[Sentdm::Profiles::BrandCampaign]?,
|
|
7
7
|
error: Sentdm::ErrorDetail?,
|
|
8
8
|
meta: Sentdm::APIMeta,
|
|
9
9
|
success: bool
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
attr_accessor data: Sentdm::Profiles::
|
|
12
|
+
class APIResponseOfListOfBrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[Sentdm::Profiles::BrandCampaign]?
|
|
14
14
|
|
|
15
15
|
attr_accessor error: Sentdm::ErrorDetail?
|
|
16
16
|
|
|
@@ -23,14 +23,14 @@ module Sentdm
|
|
|
23
23
|
def success=: (bool) -> bool
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
?data: Sentdm::Profiles::
|
|
26
|
+
?data: ::Array[Sentdm::Profiles::BrandCampaign]?,
|
|
27
27
|
?error: Sentdm::ErrorDetail?,
|
|
28
28
|
?meta: Sentdm::APIMeta,
|
|
29
29
|
?success: bool
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
data: Sentdm::Profiles::
|
|
33
|
+
data: ::Array[Sentdm::Profiles::BrandCampaign]?,
|
|
34
34
|
error: Sentdm::ErrorDetail?,
|
|
35
35
|
meta: Sentdm::APIMeta,
|
|
36
36
|
success: bool
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type brand_campaign =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
billed_date: Time?,
|
|
8
|
+
brand_id: String?,
|
|
9
|
+
cost: Float?,
|
|
10
|
+
created_at: Time,
|
|
11
|
+
customer_id: String,
|
|
12
|
+
dca_elections_complete: bool?,
|
|
13
|
+
dca_elections_completed_at: Time?,
|
|
14
|
+
description: String,
|
|
15
|
+
has_submission_transaction: bool,
|
|
16
|
+
help_keywords: String?,
|
|
17
|
+
help_message: String?,
|
|
18
|
+
message_flow: String?,
|
|
19
|
+
name: String,
|
|
20
|
+
optin_keywords: String?,
|
|
21
|
+
optin_message: String?,
|
|
22
|
+
optout_keywords: String?,
|
|
23
|
+
optout_message: String?,
|
|
24
|
+
privacy_policy_link: String?,
|
|
25
|
+
status: Sentdm::Models::Profiles::BrandCampaign::status?,
|
|
26
|
+
submitted_at: Time?,
|
|
27
|
+
submitted_to_tcr: bool,
|
|
28
|
+
tcr_campaign_id: String?,
|
|
29
|
+
tcr_sync_error: String?,
|
|
30
|
+
terms_and_conditions_link: String?,
|
|
31
|
+
type: String,
|
|
32
|
+
updated_at: Time?,
|
|
33
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCase],
|
|
34
|
+
volume: String?
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
class BrandCampaign < Sentdm::Internal::Type::BaseModel
|
|
38
|
+
attr_reader id: String?
|
|
39
|
+
|
|
40
|
+
def id=: (String) -> String
|
|
41
|
+
|
|
42
|
+
attr_accessor billed_date: Time?
|
|
43
|
+
|
|
44
|
+
attr_accessor brand_id: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor cost: Float?
|
|
47
|
+
|
|
48
|
+
attr_reader created_at: Time?
|
|
49
|
+
|
|
50
|
+
def created_at=: (Time) -> Time
|
|
51
|
+
|
|
52
|
+
attr_reader customer_id: String?
|
|
53
|
+
|
|
54
|
+
def customer_id=: (String) -> String
|
|
55
|
+
|
|
56
|
+
attr_accessor dca_elections_complete: bool?
|
|
57
|
+
|
|
58
|
+
attr_accessor dca_elections_completed_at: Time?
|
|
59
|
+
|
|
60
|
+
attr_reader description: String?
|
|
61
|
+
|
|
62
|
+
def description=: (String) -> String
|
|
63
|
+
|
|
64
|
+
attr_reader has_submission_transaction: bool?
|
|
65
|
+
|
|
66
|
+
def has_submission_transaction=: (bool) -> bool
|
|
67
|
+
|
|
68
|
+
attr_accessor help_keywords: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor help_message: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor message_flow: String?
|
|
73
|
+
|
|
74
|
+
attr_reader name: String?
|
|
75
|
+
|
|
76
|
+
def name=: (String) -> String
|
|
77
|
+
|
|
78
|
+
attr_accessor optin_keywords: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor optin_message: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor optout_keywords: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor optout_message: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor privacy_policy_link: String?
|
|
87
|
+
|
|
88
|
+
attr_accessor status: Sentdm::Models::Profiles::BrandCampaign::status?
|
|
89
|
+
|
|
90
|
+
attr_accessor submitted_at: Time?
|
|
91
|
+
|
|
92
|
+
attr_reader submitted_to_tcr: bool?
|
|
93
|
+
|
|
94
|
+
def submitted_to_tcr=: (bool) -> bool
|
|
95
|
+
|
|
96
|
+
attr_accessor tcr_campaign_id: String?
|
|
97
|
+
|
|
98
|
+
attr_accessor tcr_sync_error: String?
|
|
99
|
+
|
|
100
|
+
attr_accessor terms_and_conditions_link: String?
|
|
101
|
+
|
|
102
|
+
attr_reader type: String?
|
|
103
|
+
|
|
104
|
+
def type=: (String) -> String
|
|
105
|
+
|
|
106
|
+
attr_accessor updated_at: Time?
|
|
107
|
+
|
|
108
|
+
attr_reader use_cases: ::Array[Sentdm::Profiles::CampaignUseCase]?
|
|
109
|
+
|
|
110
|
+
def use_cases=: (
|
|
111
|
+
::Array[Sentdm::Profiles::CampaignUseCase]
|
|
112
|
+
) -> ::Array[Sentdm::Profiles::CampaignUseCase]
|
|
113
|
+
|
|
114
|
+
attr_accessor volume: String?
|
|
115
|
+
|
|
116
|
+
def initialize: (
|
|
117
|
+
?id: String,
|
|
118
|
+
?billed_date: Time?,
|
|
119
|
+
?brand_id: String?,
|
|
120
|
+
?cost: Float?,
|
|
121
|
+
?created_at: Time,
|
|
122
|
+
?customer_id: String,
|
|
123
|
+
?dca_elections_complete: bool?,
|
|
124
|
+
?dca_elections_completed_at: Time?,
|
|
125
|
+
?description: String,
|
|
126
|
+
?has_submission_transaction: bool,
|
|
127
|
+
?help_keywords: String?,
|
|
128
|
+
?help_message: String?,
|
|
129
|
+
?message_flow: String?,
|
|
130
|
+
?name: String,
|
|
131
|
+
?optin_keywords: String?,
|
|
132
|
+
?optin_message: String?,
|
|
133
|
+
?optout_keywords: String?,
|
|
134
|
+
?optout_message: String?,
|
|
135
|
+
?privacy_policy_link: String?,
|
|
136
|
+
?status: Sentdm::Models::Profiles::BrandCampaign::status?,
|
|
137
|
+
?submitted_at: Time?,
|
|
138
|
+
?submitted_to_tcr: bool,
|
|
139
|
+
?tcr_campaign_id: String?,
|
|
140
|
+
?tcr_sync_error: String?,
|
|
141
|
+
?terms_and_conditions_link: String?,
|
|
142
|
+
?type: String,
|
|
143
|
+
?updated_at: Time?,
|
|
144
|
+
?use_cases: ::Array[Sentdm::Profiles::CampaignUseCase],
|
|
145
|
+
?volume: String?
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
id: String,
|
|
150
|
+
billed_date: Time?,
|
|
151
|
+
brand_id: String?,
|
|
152
|
+
cost: Float?,
|
|
153
|
+
created_at: Time,
|
|
154
|
+
customer_id: String,
|
|
155
|
+
dca_elections_complete: bool?,
|
|
156
|
+
dca_elections_completed_at: Time?,
|
|
157
|
+
description: String,
|
|
158
|
+
has_submission_transaction: bool,
|
|
159
|
+
help_keywords: String?,
|
|
160
|
+
help_message: String?,
|
|
161
|
+
message_flow: String?,
|
|
162
|
+
name: String,
|
|
163
|
+
optin_keywords: String?,
|
|
164
|
+
optin_message: String?,
|
|
165
|
+
optout_keywords: String?,
|
|
166
|
+
optout_message: String?,
|
|
167
|
+
privacy_policy_link: String?,
|
|
168
|
+
status: Sentdm::Models::Profiles::BrandCampaign::status?,
|
|
169
|
+
submitted_at: Time?,
|
|
170
|
+
submitted_to_tcr: bool,
|
|
171
|
+
tcr_campaign_id: String?,
|
|
172
|
+
tcr_sync_error: String?,
|
|
173
|
+
terms_and_conditions_link: String?,
|
|
174
|
+
type: String,
|
|
175
|
+
updated_at: Time?,
|
|
176
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCase],
|
|
177
|
+
volume: String?
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
type status = :SENT_CREATED | :ACTIVE | :EXPIRED
|
|
181
|
+
|
|
182
|
+
module Status
|
|
183
|
+
extend Sentdm::Internal::Type::Enum
|
|
184
|
+
|
|
185
|
+
SENT_CREATED: :SENT_CREATED
|
|
186
|
+
ACTIVE: :ACTIVE
|
|
187
|
+
EXPIRED: :EXPIRED
|
|
188
|
+
|
|
189
|
+
def self?.values: -> ::Array[Sentdm::Models::Profiles::BrandCampaign::status]
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
end
|
|
@@ -6,7 +6,7 @@ module Sentdm
|
|
|
6
6
|
description: String,
|
|
7
7
|
name: String,
|
|
8
8
|
type: String,
|
|
9
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
9
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
10
10
|
help_keywords: String?,
|
|
11
11
|
help_message: String?,
|
|
12
12
|
message_flow: String?,
|
|
@@ -15,7 +15,8 @@ module Sentdm
|
|
|
15
15
|
optout_keywords: String?,
|
|
16
16
|
optout_message: String?,
|
|
17
17
|
privacy_policy_link: String?,
|
|
18
|
-
terms_and_conditions_link: String
|
|
18
|
+
terms_and_conditions_link: String?,
|
|
19
|
+
volume: String?
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
class CampaignData < Sentdm::Internal::Type::BaseModel
|
|
@@ -25,7 +26,7 @@ module Sentdm
|
|
|
25
26
|
|
|
26
27
|
attr_accessor type: String
|
|
27
28
|
|
|
28
|
-
attr_accessor use_cases: ::Array[Sentdm::Profiles::
|
|
29
|
+
attr_accessor use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData]
|
|
29
30
|
|
|
30
31
|
attr_accessor help_keywords: String?
|
|
31
32
|
|
|
@@ -45,11 +46,13 @@ module Sentdm
|
|
|
45
46
|
|
|
46
47
|
attr_accessor terms_and_conditions_link: String?
|
|
47
48
|
|
|
49
|
+
attr_accessor volume: String?
|
|
50
|
+
|
|
48
51
|
def initialize: (
|
|
49
52
|
description: String,
|
|
50
53
|
name: String,
|
|
51
54
|
type: String,
|
|
52
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
55
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
53
56
|
?help_keywords: String?,
|
|
54
57
|
?help_message: String?,
|
|
55
58
|
?message_flow: String?,
|
|
@@ -58,14 +61,15 @@ module Sentdm
|
|
|
58
61
|
?optout_keywords: String?,
|
|
59
62
|
?optout_message: String?,
|
|
60
63
|
?privacy_policy_link: String?,
|
|
61
|
-
?terms_and_conditions_link: String
|
|
64
|
+
?terms_and_conditions_link: String?,
|
|
65
|
+
?volume: String?
|
|
62
66
|
) -> void
|
|
63
67
|
|
|
64
68
|
def to_hash: -> {
|
|
65
69
|
description: String,
|
|
66
70
|
name: String,
|
|
67
71
|
type: String,
|
|
68
|
-
use_cases: ::Array[Sentdm::Profiles::
|
|
72
|
+
use_cases: ::Array[Sentdm::Profiles::CampaignUseCaseData],
|
|
69
73
|
help_keywords: String?,
|
|
70
74
|
help_message: String?,
|
|
71
75
|
message_flow: String?,
|
|
@@ -74,7 +78,8 @@ module Sentdm
|
|
|
74
78
|
optout_keywords: String?,
|
|
75
79
|
optout_message: String?,
|
|
76
80
|
privacy_policy_link: String?,
|
|
77
|
-
terms_and_conditions_link: String
|
|
81
|
+
terms_and_conditions_link: String?,
|
|
82
|
+
volume: String?
|
|
78
83
|
}
|
|
79
84
|
end
|
|
80
85
|
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_use_case =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
campaign_id: String,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
customer_id: String,
|
|
10
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
11
|
+
sample_messages: ::Array[String],
|
|
12
|
+
updated_at: Time?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class CampaignUseCase < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
attr_reader id: String?
|
|
17
|
+
|
|
18
|
+
def id=: (String) -> String
|
|
19
|
+
|
|
20
|
+
attr_reader campaign_id: String?
|
|
21
|
+
|
|
22
|
+
def campaign_id=: (String) -> String
|
|
23
|
+
|
|
24
|
+
attr_reader created_at: Time?
|
|
25
|
+
|
|
26
|
+
def created_at=: (Time) -> Time
|
|
27
|
+
|
|
28
|
+
attr_reader customer_id: String?
|
|
29
|
+
|
|
30
|
+
def customer_id=: (String) -> String
|
|
31
|
+
|
|
32
|
+
attr_reader messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us?
|
|
33
|
+
|
|
34
|
+
def messaging_use_case_us=: (
|
|
35
|
+
Sentdm::Models::Profiles::messaging_use_case_us
|
|
36
|
+
) -> Sentdm::Models::Profiles::messaging_use_case_us
|
|
37
|
+
|
|
38
|
+
attr_reader sample_messages: ::Array[String]?
|
|
39
|
+
|
|
40
|
+
def sample_messages=: (::Array[String]) -> ::Array[String]
|
|
41
|
+
|
|
42
|
+
attr_accessor updated_at: Time?
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
?id: String,
|
|
46
|
+
?campaign_id: String,
|
|
47
|
+
?created_at: Time,
|
|
48
|
+
?customer_id: String,
|
|
49
|
+
?messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
50
|
+
?sample_messages: ::Array[String],
|
|
51
|
+
?updated_at: Time?
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
id: String,
|
|
56
|
+
campaign_id: String,
|
|
57
|
+
created_at: Time,
|
|
58
|
+
customer_id: String,
|
|
59
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
60
|
+
sample_messages: ::Array[String],
|
|
61
|
+
updated_at: Time?
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
3
|
module Profiles
|
|
4
|
-
type
|
|
4
|
+
type campaign_use_case_data =
|
|
5
5
|
{
|
|
6
6
|
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
7
7
|
sample_messages: ::Array[String]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
12
12
|
|
|
13
13
|
attr_accessor sample_messages: ::Array[String]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type template_body =
|
|
4
4
|
{
|
|
5
5
|
multi_channel: Sentdm::TemplateBodyContent?,
|
|
6
6
|
rcs: Sentdm::TemplateBodyContent?,
|
|
@@ -8,7 +8,7 @@ module Sentdm
|
|
|
8
8
|
whatsapp: Sentdm::TemplateBodyContent?
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class TemplateBody < Sentdm::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor multi_channel: Sentdm::TemplateBodyContent?
|
|
13
13
|
|
|
14
14
|
attr_accessor rcs: Sentdm::TemplateBodyContent?
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type template_button =
|
|
4
|
+
{ props: Sentdm::TemplateButtonProps, type: String, id: Integer }
|
|
5
|
+
|
|
6
|
+
class TemplateButton < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor props: Sentdm::TemplateButtonProps
|
|
8
|
+
|
|
9
|
+
attr_accessor type: String
|
|
10
|
+
|
|
11
|
+
attr_reader id: Integer?
|
|
12
|
+
|
|
13
|
+
def id=: (Integer) -> Integer
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
props: Sentdm::TemplateButtonProps,
|
|
17
|
+
type: String,
|
|
18
|
+
?id: Integer
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
props: Sentdm::TemplateButtonProps,
|
|
23
|
+
type: String,
|
|
24
|
+
id: Integer
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type template_button_props =
|
|
4
4
|
{
|
|
5
5
|
active_for: Integer,
|
|
6
6
|
country_code: String,
|
|
@@ -17,7 +17,7 @@ module Sentdm
|
|
|
17
17
|
signature_hash: String?
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class TemplateButtonProps < Sentdm::Internal::Type::BaseModel
|
|
21
21
|
attr_accessor active_for: Integer
|
|
22
22
|
|
|
23
23
|
attr_accessor country_code: String
|
|
@@ -2,43 +2,43 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type template_definition =
|
|
4
4
|
{
|
|
5
|
-
body: Sentdm::
|
|
6
|
-
authentication_config: Sentdm::
|
|
7
|
-
buttons: ::Array[Sentdm::
|
|
5
|
+
body: Sentdm::TemplateBody,
|
|
6
|
+
authentication_config: Sentdm::AuthenticationConfig?,
|
|
7
|
+
buttons: ::Array[Sentdm::TemplateButton]?,
|
|
8
8
|
definition_version: String?,
|
|
9
|
-
footer: Sentdm::
|
|
10
|
-
header: Sentdm::
|
|
9
|
+
footer: Sentdm::TemplateFooter?,
|
|
10
|
+
header: Sentdm::TemplateHeader?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
class TemplateDefinition < Sentdm::Internal::Type::BaseModel
|
|
14
|
-
attr_accessor body: Sentdm::
|
|
14
|
+
attr_accessor body: Sentdm::TemplateBody
|
|
15
15
|
|
|
16
|
-
attr_accessor authentication_config: Sentdm::
|
|
16
|
+
attr_accessor authentication_config: Sentdm::AuthenticationConfig?
|
|
17
17
|
|
|
18
|
-
attr_accessor buttons: ::Array[Sentdm::
|
|
18
|
+
attr_accessor buttons: ::Array[Sentdm::TemplateButton]?
|
|
19
19
|
|
|
20
20
|
attr_accessor definition_version: String?
|
|
21
21
|
|
|
22
|
-
attr_accessor footer: Sentdm::
|
|
22
|
+
attr_accessor footer: Sentdm::TemplateFooter?
|
|
23
23
|
|
|
24
|
-
attr_accessor header: Sentdm::
|
|
24
|
+
attr_accessor header: Sentdm::TemplateHeader?
|
|
25
25
|
|
|
26
26
|
def initialize: (
|
|
27
|
-
body: Sentdm::
|
|
28
|
-
?authentication_config: Sentdm::
|
|
29
|
-
?buttons: ::Array[Sentdm::
|
|
27
|
+
body: Sentdm::TemplateBody,
|
|
28
|
+
?authentication_config: Sentdm::AuthenticationConfig?,
|
|
29
|
+
?buttons: ::Array[Sentdm::TemplateButton]?,
|
|
30
30
|
?definition_version: String?,
|
|
31
|
-
?footer: Sentdm::
|
|
32
|
-
?header: Sentdm::
|
|
31
|
+
?footer: Sentdm::TemplateFooter?,
|
|
32
|
+
?header: Sentdm::TemplateHeader?
|
|
33
33
|
) -> void
|
|
34
34
|
|
|
35
35
|
def to_hash: -> {
|
|
36
|
-
body: Sentdm::
|
|
37
|
-
authentication_config: Sentdm::
|
|
38
|
-
buttons: ::Array[Sentdm::
|
|
36
|
+
body: Sentdm::TemplateBody,
|
|
37
|
+
authentication_config: Sentdm::AuthenticationConfig?,
|
|
38
|
+
buttons: ::Array[Sentdm::TemplateButton]?,
|
|
39
39
|
definition_version: String?,
|
|
40
|
-
footer: Sentdm::
|
|
41
|
-
header: Sentdm::
|
|
40
|
+
footer: Sentdm::TemplateFooter?,
|
|
41
|
+
header: Sentdm::TemplateHeader?
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
end
|