sentdm 0.24.0 → 0.26.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 +28 -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/message_send_response.rb +2 -6
- data/lib/sentdm/models/profile_detail.rb +3 -11
- 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/{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.rb +32 -27
- data/lib/sentdm/resources/contacts.rb +30 -0
- data/lib/sentdm/resources/conversations.rb +82 -0
- data/lib/sentdm/resources/messages.rb +4 -1
- data/lib/sentdm/resources/profiles/campaigns.rb +6 -6
- data/lib/sentdm/resources/profiles.rb +31 -19
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +22 -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/message_send_response.rbi +2 -4
- data/rbi/sentdm/models/profile_detail.rbi +2 -10
- 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/{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.rbi +36 -27
- data/rbi/sentdm/resources/contacts.rbi +20 -0
- data/rbi/sentdm/resources/conversations.rbi +61 -0
- data/rbi/sentdm/resources/messages.rbi +4 -1
- data/rbi/sentdm/resources/profiles/campaigns.rbi +3 -3
- data/rbi/sentdm/resources/profiles.rbi +29 -18
- 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/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/{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.rbs +32 -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 +68 -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
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type brand_compliance_info =
|
|
4
4
|
{
|
|
5
5
|
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
6
6
|
vertical: Sentdm::Models::tcr_vertical,
|
|
7
7
|
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
8
|
-
expected_messaging_volume: String?,
|
|
9
8
|
is_tcr_application: bool?,
|
|
10
9
|
notes: String?,
|
|
11
10
|
phone_number_prefix: String?,
|
|
12
11
|
primary_use_case: String?
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
class
|
|
14
|
+
class BrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
16
15
|
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
17
16
|
|
|
18
17
|
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
19
18
|
|
|
20
19
|
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
21
20
|
|
|
22
|
-
attr_accessor expected_messaging_volume: String?
|
|
23
|
-
|
|
24
21
|
attr_accessor is_tcr_application: bool?
|
|
25
22
|
|
|
26
23
|
attr_accessor notes: String?
|
|
@@ -33,7 +30,6 @@ module Sentdm
|
|
|
33
30
|
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
34
31
|
vertical: Sentdm::Models::tcr_vertical,
|
|
35
32
|
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
36
|
-
?expected_messaging_volume: String?,
|
|
37
33
|
?is_tcr_application: bool?,
|
|
38
34
|
?notes: String?,
|
|
39
35
|
?phone_number_prefix: String?,
|
|
@@ -44,7 +40,6 @@ module Sentdm
|
|
|
44
40
|
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
45
41
|
vertical: Sentdm::Models::tcr_vertical,
|
|
46
42
|
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
47
|
-
expected_messaging_volume: String?,
|
|
48
43
|
is_tcr_application: bool?,
|
|
49
44
|
notes: String?,
|
|
50
45
|
phone_number_prefix: String?,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type brand_contact_info =
|
|
4
4
|
{
|
|
5
5
|
name: String,
|
|
6
6
|
business_name: String?,
|
|
@@ -10,7 +10,7 @@ module Sentdm
|
|
|
10
10
|
role: String?
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class BrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
14
14
|
attr_accessor name: String
|
|
15
15
|
|
|
16
16
|
attr_accessor business_name: String?
|
|
@@ -2,28 +2,28 @@ module Sentdm
|
|
|
2
2
|
module Models
|
|
3
3
|
type brands_brand_data =
|
|
4
4
|
{
|
|
5
|
-
compliance: Sentdm::
|
|
6
|
-
contact: Sentdm::
|
|
7
|
-
business: Sentdm::
|
|
5
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
6
|
+
contact: Sentdm::BrandContactInfo,
|
|
7
|
+
business: Sentdm::BrandBusinessInfo?
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class BrandsBrandData < Sentdm::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor compliance: Sentdm::
|
|
11
|
+
attr_accessor compliance: Sentdm::BrandComplianceInfo
|
|
12
12
|
|
|
13
|
-
attr_accessor contact: Sentdm::
|
|
13
|
+
attr_accessor contact: Sentdm::BrandContactInfo
|
|
14
14
|
|
|
15
|
-
attr_accessor business: Sentdm::
|
|
15
|
+
attr_accessor business: Sentdm::BrandBusinessInfo?
|
|
16
16
|
|
|
17
17
|
def initialize: (
|
|
18
|
-
compliance: Sentdm::
|
|
19
|
-
contact: Sentdm::
|
|
20
|
-
?business: Sentdm::
|
|
18
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
19
|
+
contact: Sentdm::BrandContactInfo,
|
|
20
|
+
?business: Sentdm::BrandBusinessInfo?
|
|
21
21
|
) -> void
|
|
22
22
|
|
|
23
23
|
def to_hash: -> {
|
|
24
|
-
compliance: Sentdm::
|
|
25
|
-
contact: Sentdm::
|
|
26
|
-
business: Sentdm::
|
|
24
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
25
|
+
contact: Sentdm::BrandContactInfo,
|
|
26
|
+
business: Sentdm::BrandBusinessInfo?
|
|
27
27
|
}
|
|
28
28
|
end
|
|
29
29
|
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type contact_message_summary =
|
|
4
|
+
{
|
|
5
|
+
channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
6
|
+
channels_used: ::Array[String],
|
|
7
|
+
contact_id: String,
|
|
8
|
+
first_message_at: Time?,
|
|
9
|
+
last_message_at: Time?,
|
|
10
|
+
message_count: Integer
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ContactMessageSummary < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_reader channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore]?
|
|
15
|
+
|
|
16
|
+
def channel_scores=: (
|
|
17
|
+
::Array[Sentdm::ContactMessageSummary::ChannelScore]
|
|
18
|
+
) -> ::Array[Sentdm::ContactMessageSummary::ChannelScore]
|
|
19
|
+
|
|
20
|
+
attr_reader channels_used: ::Array[String]?
|
|
21
|
+
|
|
22
|
+
def channels_used=: (::Array[String]) -> ::Array[String]
|
|
23
|
+
|
|
24
|
+
attr_reader contact_id: String?
|
|
25
|
+
|
|
26
|
+
def contact_id=: (String) -> String
|
|
27
|
+
|
|
28
|
+
attr_accessor first_message_at: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor last_message_at: Time?
|
|
31
|
+
|
|
32
|
+
attr_reader message_count: Integer?
|
|
33
|
+
|
|
34
|
+
def message_count=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
?channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
38
|
+
?channels_used: ::Array[String],
|
|
39
|
+
?contact_id: String,
|
|
40
|
+
?first_message_at: Time?,
|
|
41
|
+
?last_message_at: Time?,
|
|
42
|
+
?message_count: Integer
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
channel_scores: ::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
47
|
+
channels_used: ::Array[String],
|
|
48
|
+
contact_id: String,
|
|
49
|
+
first_message_at: Time?,
|
|
50
|
+
last_message_at: Time?,
|
|
51
|
+
message_count: Integer
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type channel_score =
|
|
55
|
+
{ channel: String, fail_score: Integer, success_score: Integer }
|
|
56
|
+
|
|
57
|
+
class ChannelScore < Sentdm::Internal::Type::BaseModel
|
|
58
|
+
attr_reader channel: String?
|
|
59
|
+
|
|
60
|
+
def channel=: (String) -> String
|
|
61
|
+
|
|
62
|
+
attr_reader fail_score: Integer?
|
|
63
|
+
|
|
64
|
+
def fail_score=: (Integer) -> Integer
|
|
65
|
+
|
|
66
|
+
attr_reader success_score: Integer?
|
|
67
|
+
|
|
68
|
+
def success_score=: (Integer) -> Integer
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
?channel: String,
|
|
72
|
+
?fail_score: Integer,
|
|
73
|
+
?success_score: Integer
|
|
74
|
+
) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> {
|
|
77
|
+
channel: String,
|
|
78
|
+
fail_score: Integer,
|
|
79
|
+
success_score: Integer
|
|
80
|
+
}
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type contact_retrieve_message_summary_params =
|
|
4
|
+
{ contact_id: String, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ContactRetrieveMessageSummaryParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor contact_id: String
|
|
12
|
+
|
|
13
|
+
attr_reader x_profile_id: String?
|
|
14
|
+
|
|
15
|
+
def x_profile_id=: (String) -> String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
contact_id: String,
|
|
19
|
+
?x_profile_id: String,
|
|
20
|
+
?request_options: Sentdm::request_opts
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
contact_id: String,
|
|
25
|
+
x_profile_id: String,
|
|
26
|
+
request_options: Sentdm::RequestOptions
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type conversation_list_messages_params =
|
|
4
|
+
{ id: String, page: Integer, page_size: Integer, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ConversationListMessagesParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor page: Integer
|
|
14
|
+
|
|
15
|
+
attr_accessor page_size: Integer
|
|
16
|
+
|
|
17
|
+
attr_reader x_profile_id: String?
|
|
18
|
+
|
|
19
|
+
def x_profile_id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
id: String,
|
|
23
|
+
page: Integer,
|
|
24
|
+
page_size: Integer,
|
|
25
|
+
?x_profile_id: String,
|
|
26
|
+
?request_options: Sentdm::request_opts
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
id: String,
|
|
31
|
+
page: Integer,
|
|
32
|
+
page_size: Integer,
|
|
33
|
+
x_profile_id: String,
|
|
34
|
+
request_options: Sentdm::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type conversation_list_params =
|
|
4
|
+
{ page: Integer, page_size: Integer, x_profile_id: String }
|
|
5
|
+
& Sentdm::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class ConversationListParams < Sentdm::Internal::Type::BaseModel
|
|
8
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor page: Integer
|
|
12
|
+
|
|
13
|
+
attr_accessor page_size: Integer
|
|
14
|
+
|
|
15
|
+
attr_reader x_profile_id: String?
|
|
16
|
+
|
|
17
|
+
def x_profile_id=: (String) -> String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
page: Integer,
|
|
21
|
+
page_size: Integer,
|
|
22
|
+
?x_profile_id: String,
|
|
23
|
+
?request_options: Sentdm::request_opts
|
|
24
|
+
) -> void
|
|
25
|
+
|
|
26
|
+
def to_hash: -> {
|
|
27
|
+
page: Integer,
|
|
28
|
+
page_size: Integer,
|
|
29
|
+
x_profile_id: String,
|
|
30
|
+
request_options: Sentdm::RequestOptions
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type conversation_messages_list =
|
|
4
|
+
{
|
|
5
|
+
messages: ::Array[Sentdm::ConversationMessagesList::Message],
|
|
6
|
+
pagination: Sentdm::PaginationMeta
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class ConversationMessagesList < Sentdm::Internal::Type::BaseModel
|
|
10
|
+
attr_reader messages: ::Array[Sentdm::ConversationMessagesList::Message]?
|
|
11
|
+
|
|
12
|
+
def messages=: (
|
|
13
|
+
::Array[Sentdm::ConversationMessagesList::Message]
|
|
14
|
+
) -> ::Array[Sentdm::ConversationMessagesList::Message]
|
|
15
|
+
|
|
16
|
+
attr_reader pagination: Sentdm::PaginationMeta?
|
|
17
|
+
|
|
18
|
+
def pagination=: (Sentdm::PaginationMeta) -> Sentdm::PaginationMeta
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?messages: ::Array[Sentdm::ConversationMessagesList::Message],
|
|
22
|
+
?pagination: Sentdm::PaginationMeta
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
messages: ::Array[Sentdm::ConversationMessagesList::Message],
|
|
27
|
+
pagination: Sentdm::PaginationMeta
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type message =
|
|
31
|
+
{
|
|
32
|
+
id: String,
|
|
33
|
+
active_contact_price: Float?,
|
|
34
|
+
channel: String,
|
|
35
|
+
contact_id: String,
|
|
36
|
+
created_at: Time,
|
|
37
|
+
customer_id: String,
|
|
38
|
+
direction: String,
|
|
39
|
+
events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
|
|
40
|
+
message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
|
|
41
|
+
phone: String,
|
|
42
|
+
phone_international: String,
|
|
43
|
+
price: Float?,
|
|
44
|
+
region_code: String,
|
|
45
|
+
status: String,
|
|
46
|
+
template_category: String?,
|
|
47
|
+
template_id: String?,
|
|
48
|
+
template_name: String?
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class Message < Sentdm::Internal::Type::BaseModel
|
|
52
|
+
attr_reader id: String?
|
|
53
|
+
|
|
54
|
+
def id=: (String) -> String
|
|
55
|
+
|
|
56
|
+
attr_accessor active_contact_price: Float?
|
|
57
|
+
|
|
58
|
+
attr_reader channel: String?
|
|
59
|
+
|
|
60
|
+
def channel=: (String) -> String
|
|
61
|
+
|
|
62
|
+
attr_reader contact_id: String?
|
|
63
|
+
|
|
64
|
+
def contact_id=: (String) -> String
|
|
65
|
+
|
|
66
|
+
attr_reader created_at: Time?
|
|
67
|
+
|
|
68
|
+
def created_at=: (Time) -> Time
|
|
69
|
+
|
|
70
|
+
attr_reader customer_id: String?
|
|
71
|
+
|
|
72
|
+
def customer_id=: (String) -> String
|
|
73
|
+
|
|
74
|
+
attr_reader direction: String?
|
|
75
|
+
|
|
76
|
+
def direction=: (String) -> String
|
|
77
|
+
|
|
78
|
+
attr_accessor events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?
|
|
79
|
+
|
|
80
|
+
attr_accessor message_body: Sentdm::ConversationMessagesList::Message::MessageBody?
|
|
81
|
+
|
|
82
|
+
attr_reader phone: String?
|
|
83
|
+
|
|
84
|
+
def phone=: (String) -> String
|
|
85
|
+
|
|
86
|
+
attr_reader phone_international: String?
|
|
87
|
+
|
|
88
|
+
def phone_international=: (String) -> String
|
|
89
|
+
|
|
90
|
+
attr_accessor price: Float?
|
|
91
|
+
|
|
92
|
+
attr_reader region_code: String?
|
|
93
|
+
|
|
94
|
+
def region_code=: (String) -> String
|
|
95
|
+
|
|
96
|
+
attr_reader status: String?
|
|
97
|
+
|
|
98
|
+
def status=: (String) -> String
|
|
99
|
+
|
|
100
|
+
attr_accessor template_category: String?
|
|
101
|
+
|
|
102
|
+
attr_accessor template_id: String?
|
|
103
|
+
|
|
104
|
+
attr_accessor template_name: String?
|
|
105
|
+
|
|
106
|
+
def initialize: (
|
|
107
|
+
?id: String,
|
|
108
|
+
?active_contact_price: Float?,
|
|
109
|
+
?channel: String,
|
|
110
|
+
?contact_id: String,
|
|
111
|
+
?created_at: Time,
|
|
112
|
+
?customer_id: String,
|
|
113
|
+
?direction: String,
|
|
114
|
+
?events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
|
|
115
|
+
?message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
|
|
116
|
+
?phone: String,
|
|
117
|
+
?phone_international: String,
|
|
118
|
+
?price: Float?,
|
|
119
|
+
?region_code: String,
|
|
120
|
+
?status: String,
|
|
121
|
+
?template_category: String?,
|
|
122
|
+
?template_id: String?,
|
|
123
|
+
?template_name: String?
|
|
124
|
+
) -> void
|
|
125
|
+
|
|
126
|
+
def to_hash: -> {
|
|
127
|
+
id: String,
|
|
128
|
+
active_contact_price: Float?,
|
|
129
|
+
channel: String,
|
|
130
|
+
contact_id: String,
|
|
131
|
+
created_at: Time,
|
|
132
|
+
customer_id: String,
|
|
133
|
+
direction: String,
|
|
134
|
+
events: ::Array[Sentdm::ConversationMessagesList::Message::Event]?,
|
|
135
|
+
message_body: Sentdm::ConversationMessagesList::Message::MessageBody?,
|
|
136
|
+
phone: String,
|
|
137
|
+
phone_international: String,
|
|
138
|
+
price: Float?,
|
|
139
|
+
region_code: String,
|
|
140
|
+
status: String,
|
|
141
|
+
template_category: String?,
|
|
142
|
+
template_id: String?,
|
|
143
|
+
template_name: String?
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
type event = { status: String, timestamp: Time, description: String? }
|
|
147
|
+
|
|
148
|
+
class Event < Sentdm::Internal::Type::BaseModel
|
|
149
|
+
attr_accessor status: String
|
|
150
|
+
|
|
151
|
+
attr_accessor timestamp: Time
|
|
152
|
+
|
|
153
|
+
attr_accessor description: String?
|
|
154
|
+
|
|
155
|
+
def initialize: (
|
|
156
|
+
status: String,
|
|
157
|
+
timestamp: Time,
|
|
158
|
+
?description: String?
|
|
159
|
+
) -> void
|
|
160
|
+
|
|
161
|
+
def to_hash: -> {
|
|
162
|
+
status: String,
|
|
163
|
+
timestamp: Time,
|
|
164
|
+
description: String?
|
|
165
|
+
}
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
type message_body =
|
|
169
|
+
{
|
|
170
|
+
buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
|
|
171
|
+
content: String,
|
|
172
|
+
footer: String?,
|
|
173
|
+
header: String?
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
class MessageBody < Sentdm::Internal::Type::BaseModel
|
|
177
|
+
attr_accessor buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?
|
|
178
|
+
|
|
179
|
+
attr_reader content: String?
|
|
180
|
+
|
|
181
|
+
def content=: (String) -> String
|
|
182
|
+
|
|
183
|
+
attr_accessor footer: String?
|
|
184
|
+
|
|
185
|
+
attr_accessor header: String?
|
|
186
|
+
|
|
187
|
+
def initialize: (
|
|
188
|
+
?buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
|
|
189
|
+
?content: String,
|
|
190
|
+
?footer: String?,
|
|
191
|
+
?header: String?
|
|
192
|
+
) -> void
|
|
193
|
+
|
|
194
|
+
def to_hash: -> {
|
|
195
|
+
buttons: ::Array[Sentdm::ConversationMessagesList::Message::MessageBody::Button]?,
|
|
196
|
+
content: String,
|
|
197
|
+
footer: String?,
|
|
198
|
+
header: String?
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
type button =
|
|
202
|
+
{
|
|
203
|
+
postback_data: String?,
|
|
204
|
+
text: String?,
|
|
205
|
+
type: String,
|
|
206
|
+
value: String
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
class Button < Sentdm::Internal::Type::BaseModel
|
|
210
|
+
attr_accessor postback_data: String?
|
|
211
|
+
|
|
212
|
+
attr_accessor text: String?
|
|
213
|
+
|
|
214
|
+
attr_reader type: String?
|
|
215
|
+
|
|
216
|
+
def type=: (String) -> String
|
|
217
|
+
|
|
218
|
+
attr_reader value: String?
|
|
219
|
+
|
|
220
|
+
def value=: (String) -> String
|
|
221
|
+
|
|
222
|
+
def initialize: (
|
|
223
|
+
?postback_data: String?,
|
|
224
|
+
?text: String?,
|
|
225
|
+
?type: String,
|
|
226
|
+
?value: String
|
|
227
|
+
) -> void
|
|
228
|
+
|
|
229
|
+
def to_hash: -> {
|
|
230
|
+
postback_data: String?,
|
|
231
|
+
text: String?,
|
|
232
|
+
type: String,
|
|
233
|
+
value: String
|
|
234
|
+
}
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
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
|