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
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class BrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
8
|
+
T.any(Sentdm::BrandBusinessInfo, Sentdm::Internal::AnyHash)
|
|
12
9
|
end
|
|
13
10
|
|
|
14
11
|
# City
|
|
@@ -24,11 +21,7 @@ module Sentdm
|
|
|
24
21
|
attr_accessor :country_of_registration
|
|
25
22
|
|
|
26
23
|
sig do
|
|
27
|
-
returns(
|
|
28
|
-
T.nilable(
|
|
29
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType::OrSymbol
|
|
30
|
-
)
|
|
31
|
-
)
|
|
24
|
+
returns(T.nilable(Sentdm::BrandBusinessInfo::EntityType::OrSymbol))
|
|
32
25
|
end
|
|
33
26
|
attr_accessor :entity_type
|
|
34
27
|
|
|
@@ -67,9 +60,7 @@ module Sentdm
|
|
|
67
60
|
country: T.nilable(String),
|
|
68
61
|
country_of_registration: T.nilable(String),
|
|
69
62
|
entity_type:
|
|
70
|
-
T.nilable(
|
|
71
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType::OrSymbol
|
|
72
|
-
),
|
|
63
|
+
T.nilable(Sentdm::BrandBusinessInfo::EntityType::OrSymbol),
|
|
73
64
|
legal_name: T.nilable(String),
|
|
74
65
|
postal_code: T.nilable(String),
|
|
75
66
|
state: T.nilable(String),
|
|
@@ -111,9 +102,7 @@ module Sentdm
|
|
|
111
102
|
country: T.nilable(String),
|
|
112
103
|
country_of_registration: T.nilable(String),
|
|
113
104
|
entity_type:
|
|
114
|
-
T.nilable(
|
|
115
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType::OrSymbol
|
|
116
|
-
),
|
|
105
|
+
T.nilable(Sentdm::BrandBusinessInfo::EntityType::OrSymbol),
|
|
117
106
|
legal_name: T.nilable(String),
|
|
118
107
|
postal_code: T.nilable(String),
|
|
119
108
|
state: T.nilable(String),
|
|
@@ -131,45 +120,38 @@ module Sentdm
|
|
|
131
120
|
extend Sentdm::Internal::Type::Enum
|
|
132
121
|
|
|
133
122
|
TaggedSymbol =
|
|
134
|
-
T.type_alias
|
|
135
|
-
T.all(
|
|
136
|
-
Symbol,
|
|
137
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType
|
|
138
|
-
)
|
|
139
|
-
end
|
|
123
|
+
T.type_alias { T.all(Symbol, Sentdm::BrandBusinessInfo::EntityType) }
|
|
140
124
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
141
125
|
|
|
142
126
|
PRIVATE_PROFIT =
|
|
143
127
|
T.let(
|
|
144
128
|
:PRIVATE_PROFIT,
|
|
145
|
-
Sentdm::
|
|
129
|
+
Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol
|
|
146
130
|
)
|
|
147
131
|
PUBLIC_PROFIT =
|
|
148
132
|
T.let(
|
|
149
133
|
:PUBLIC_PROFIT,
|
|
150
|
-
Sentdm::
|
|
134
|
+
Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol
|
|
151
135
|
)
|
|
152
136
|
NON_PROFIT =
|
|
153
137
|
T.let(
|
|
154
138
|
:NON_PROFIT,
|
|
155
|
-
Sentdm::
|
|
139
|
+
Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol
|
|
156
140
|
)
|
|
157
141
|
SOLE_PROPRIETOR =
|
|
158
142
|
T.let(
|
|
159
143
|
:SOLE_PROPRIETOR,
|
|
160
|
-
Sentdm::
|
|
144
|
+
Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol
|
|
161
145
|
)
|
|
162
146
|
GOVERNMENT =
|
|
163
147
|
T.let(
|
|
164
148
|
:GOVERNMENT,
|
|
165
|
-
Sentdm::
|
|
149
|
+
Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol
|
|
166
150
|
)
|
|
167
151
|
|
|
168
152
|
sig do
|
|
169
153
|
override.returns(
|
|
170
|
-
T::Array[
|
|
171
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::EntityType::TaggedSymbol
|
|
172
|
-
]
|
|
154
|
+
T::Array[Sentdm::BrandBusinessInfo::EntityType::TaggedSymbol]
|
|
173
155
|
)
|
|
174
156
|
end
|
|
175
157
|
def self.values
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class BrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
8
|
+
T.any(Sentdm::BrandComplianceInfo, Sentdm::Internal::AnyHash)
|
|
12
9
|
end
|
|
13
10
|
|
|
14
11
|
sig { returns(Sentdm::TcrBrandRelationship::OrSymbol) }
|
|
@@ -21,10 +18,6 @@ module Sentdm
|
|
|
21
18
|
sig { returns(T.nilable(T::Array[Sentdm::DestinationCountry])) }
|
|
22
19
|
attr_accessor :destination_countries
|
|
23
20
|
|
|
24
|
-
# Expected daily messaging volume
|
|
25
|
-
sig { returns(T.nilable(String)) }
|
|
26
|
-
attr_accessor :expected_messaging_volume
|
|
27
|
-
|
|
28
21
|
# Whether this is a TCR (Campaign Registry) application
|
|
29
22
|
sig { returns(T.nilable(T::Boolean)) }
|
|
30
23
|
attr_accessor :is_tcr_application
|
|
@@ -48,7 +41,6 @@ module Sentdm
|
|
|
48
41
|
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
49
42
|
destination_countries:
|
|
50
43
|
T.nilable(T::Array[Sentdm::DestinationCountry::OrHash]),
|
|
51
|
-
expected_messaging_volume: T.nilable(String),
|
|
52
44
|
is_tcr_application: T.nilable(T::Boolean),
|
|
53
45
|
notes: T.nilable(String),
|
|
54
46
|
phone_number_prefix: T.nilable(String),
|
|
@@ -60,8 +52,6 @@ module Sentdm
|
|
|
60
52
|
vertical:,
|
|
61
53
|
# List of destination countries for messaging
|
|
62
54
|
destination_countries: nil,
|
|
63
|
-
# Expected daily messaging volume
|
|
64
|
-
expected_messaging_volume: nil,
|
|
65
55
|
# Whether this is a TCR (Campaign Registry) application
|
|
66
56
|
is_tcr_application: nil,
|
|
67
57
|
# Additional notes about the business or use case
|
|
@@ -80,7 +70,6 @@ module Sentdm
|
|
|
80
70
|
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
81
71
|
destination_countries:
|
|
82
72
|
T.nilable(T::Array[Sentdm::DestinationCountry]),
|
|
83
|
-
expected_messaging_volume: T.nilable(String),
|
|
84
73
|
is_tcr_application: T.nilable(T::Boolean),
|
|
85
74
|
notes: T.nilable(String),
|
|
86
75
|
phone_number_prefix: T.nilable(String),
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Sentdm
|
|
4
4
|
module Models
|
|
5
|
-
class
|
|
5
|
+
class BrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
|
-
T.any(
|
|
9
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
10
|
-
Sentdm::Internal::AnyHash
|
|
11
|
-
)
|
|
8
|
+
T.any(Sentdm::BrandContactInfo, Sentdm::Internal::AnyHash)
|
|
12
9
|
end
|
|
13
10
|
|
|
14
11
|
# Primary contact name (required)
|
|
@@ -9,68 +9,34 @@ module Sentdm
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
# Compliance and TCR information for brand registration
|
|
12
|
-
sig
|
|
13
|
-
returns(
|
|
14
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
15
|
-
)
|
|
16
|
-
end
|
|
12
|
+
sig { returns(Sentdm::BrandComplianceInfo) }
|
|
17
13
|
attr_reader :compliance
|
|
18
14
|
|
|
19
|
-
sig
|
|
20
|
-
params(
|
|
21
|
-
compliance:
|
|
22
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo::OrHash
|
|
23
|
-
).void
|
|
24
|
-
end
|
|
15
|
+
sig { params(compliance: Sentdm::BrandComplianceInfo::OrHash).void }
|
|
25
16
|
attr_writer :compliance
|
|
26
17
|
|
|
27
18
|
# Contact information for brand KYC
|
|
28
|
-
sig
|
|
29
|
-
returns(
|
|
30
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
31
|
-
)
|
|
32
|
-
end
|
|
19
|
+
sig { returns(Sentdm::BrandContactInfo) }
|
|
33
20
|
attr_reader :contact
|
|
34
21
|
|
|
35
|
-
sig
|
|
36
|
-
params(
|
|
37
|
-
contact:
|
|
38
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo::OrHash
|
|
39
|
-
).void
|
|
40
|
-
end
|
|
22
|
+
sig { params(contact: Sentdm::BrandContactInfo::OrHash).void }
|
|
41
23
|
attr_writer :contact
|
|
42
24
|
|
|
43
25
|
# Business details and address for brand KYC
|
|
44
|
-
sig
|
|
45
|
-
returns(
|
|
46
|
-
T.nilable(
|
|
47
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
48
|
-
)
|
|
49
|
-
)
|
|
50
|
-
end
|
|
26
|
+
sig { returns(T.nilable(Sentdm::BrandBusinessInfo)) }
|
|
51
27
|
attr_reader :business
|
|
52
28
|
|
|
53
29
|
sig do
|
|
54
|
-
params(
|
|
55
|
-
business:
|
|
56
|
-
T.nilable(
|
|
57
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::OrHash
|
|
58
|
-
)
|
|
59
|
-
).void
|
|
30
|
+
params(business: T.nilable(Sentdm::BrandBusinessInfo::OrHash)).void
|
|
60
31
|
end
|
|
61
32
|
attr_writer :business
|
|
62
33
|
|
|
63
34
|
# Brand and KYC data grouped into contact, business, and compliance sections
|
|
64
35
|
sig do
|
|
65
36
|
params(
|
|
66
|
-
compliance:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo::OrHash,
|
|
70
|
-
business:
|
|
71
|
-
T.nilable(
|
|
72
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::OrHash
|
|
73
|
-
)
|
|
37
|
+
compliance: Sentdm::BrandComplianceInfo::OrHash,
|
|
38
|
+
contact: Sentdm::BrandContactInfo::OrHash,
|
|
39
|
+
business: T.nilable(Sentdm::BrandBusinessInfo::OrHash)
|
|
74
40
|
).returns(T.attached_class)
|
|
75
41
|
end
|
|
76
42
|
def self.new(
|
|
@@ -86,14 +52,9 @@ module Sentdm
|
|
|
86
52
|
sig do
|
|
87
53
|
override.returns(
|
|
88
54
|
{
|
|
89
|
-
compliance:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo,
|
|
93
|
-
business:
|
|
94
|
-
T.nilable(
|
|
95
|
-
Sentdm::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
96
|
-
)
|
|
55
|
+
compliance: Sentdm::BrandComplianceInfo,
|
|
56
|
+
contact: Sentdm::BrandContactInfo,
|
|
57
|
+
business: T.nilable(Sentdm::BrandBusinessInfo)
|
|
97
58
|
}
|
|
98
59
|
)
|
|
99
60
|
end
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ContactMessageSummary < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(Sentdm::ContactMessageSummary, Sentdm::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
sig do
|
|
12
|
+
returns(
|
|
13
|
+
T.nilable(T::Array[Sentdm::ContactMessageSummary::ChannelScore])
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
attr_reader :channel_scores
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
channel_scores:
|
|
21
|
+
T::Array[Sentdm::ContactMessageSummary::ChannelScore::OrHash]
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
24
|
+
attr_writer :channel_scores
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
27
|
+
attr_reader :channels_used
|
|
28
|
+
|
|
29
|
+
sig { params(channels_used: T::Array[String]).void }
|
|
30
|
+
attr_writer :channels_used
|
|
31
|
+
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :contact_id
|
|
34
|
+
|
|
35
|
+
sig { params(contact_id: String).void }
|
|
36
|
+
attr_writer :contact_id
|
|
37
|
+
|
|
38
|
+
sig { returns(T.nilable(Time)) }
|
|
39
|
+
attr_accessor :first_message_at
|
|
40
|
+
|
|
41
|
+
sig { returns(T.nilable(Time)) }
|
|
42
|
+
attr_accessor :last_message_at
|
|
43
|
+
|
|
44
|
+
sig { returns(T.nilable(Integer)) }
|
|
45
|
+
attr_reader :message_count
|
|
46
|
+
|
|
47
|
+
sig { params(message_count: Integer).void }
|
|
48
|
+
attr_writer :message_count
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
channel_scores:
|
|
53
|
+
T::Array[Sentdm::ContactMessageSummary::ChannelScore::OrHash],
|
|
54
|
+
channels_used: T::Array[String],
|
|
55
|
+
contact_id: String,
|
|
56
|
+
first_message_at: T.nilable(Time),
|
|
57
|
+
last_message_at: T.nilable(Time),
|
|
58
|
+
message_count: Integer
|
|
59
|
+
).returns(T.attached_class)
|
|
60
|
+
end
|
|
61
|
+
def self.new(
|
|
62
|
+
channel_scores: nil,
|
|
63
|
+
channels_used: nil,
|
|
64
|
+
contact_id: nil,
|
|
65
|
+
first_message_at: nil,
|
|
66
|
+
last_message_at: nil,
|
|
67
|
+
message_count: nil
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
sig do
|
|
72
|
+
override.returns(
|
|
73
|
+
{
|
|
74
|
+
channel_scores:
|
|
75
|
+
T::Array[Sentdm::ContactMessageSummary::ChannelScore],
|
|
76
|
+
channels_used: T::Array[String],
|
|
77
|
+
contact_id: String,
|
|
78
|
+
first_message_at: T.nilable(Time),
|
|
79
|
+
last_message_at: T.nilable(Time),
|
|
80
|
+
message_count: Integer
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
def to_hash
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
class ChannelScore < Sentdm::Internal::Type::BaseModel
|
|
88
|
+
OrHash =
|
|
89
|
+
T.type_alias do
|
|
90
|
+
T.any(
|
|
91
|
+
Sentdm::ContactMessageSummary::ChannelScore,
|
|
92
|
+
Sentdm::Internal::AnyHash
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
sig { returns(T.nilable(String)) }
|
|
97
|
+
attr_reader :channel
|
|
98
|
+
|
|
99
|
+
sig { params(channel: String).void }
|
|
100
|
+
attr_writer :channel
|
|
101
|
+
|
|
102
|
+
# Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
103
|
+
sig { returns(T.nilable(Integer)) }
|
|
104
|
+
attr_reader :fail_score
|
|
105
|
+
|
|
106
|
+
sig { params(fail_score: Integer).void }
|
|
107
|
+
attr_writer :fail_score
|
|
108
|
+
|
|
109
|
+
# Percentage (0-100) of messages on this channel that reached a successful
|
|
110
|
+
# terminal state: SENT/DELIVERED/READ for outbound, RECEIVED for inbound.
|
|
111
|
+
sig { returns(T.nilable(Integer)) }
|
|
112
|
+
attr_reader :success_score
|
|
113
|
+
|
|
114
|
+
sig { params(success_score: Integer).void }
|
|
115
|
+
attr_writer :success_score
|
|
116
|
+
|
|
117
|
+
sig do
|
|
118
|
+
params(
|
|
119
|
+
channel: String,
|
|
120
|
+
fail_score: Integer,
|
|
121
|
+
success_score: Integer
|
|
122
|
+
).returns(T.attached_class)
|
|
123
|
+
end
|
|
124
|
+
def self.new(
|
|
125
|
+
channel: nil,
|
|
126
|
+
# Percentage (0-100) of messages on this channel that ended in FAILED.
|
|
127
|
+
fail_score: nil,
|
|
128
|
+
# Percentage (0-100) of messages on this channel that reached a successful
|
|
129
|
+
# terminal state: SENT/DELIVERED/READ for outbound, RECEIVED for inbound.
|
|
130
|
+
success_score: nil
|
|
131
|
+
)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
sig do
|
|
135
|
+
override.returns(
|
|
136
|
+
{ channel: String, fail_score: Integer, success_score: Integer }
|
|
137
|
+
)
|
|
138
|
+
end
|
|
139
|
+
def to_hash
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ContactRetrieveMessageSummaryParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Sentdm::ContactRetrieveMessageSummaryParams,
|
|
13
|
+
Sentdm::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :contact_id
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :x_profile_id
|
|
22
|
+
|
|
23
|
+
sig { params(x_profile_id: String).void }
|
|
24
|
+
attr_writer :x_profile_id
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
contact_id: String,
|
|
29
|
+
x_profile_id: String,
|
|
30
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
31
|
+
).returns(T.attached_class)
|
|
32
|
+
end
|
|
33
|
+
def self.new(contact_id:, x_profile_id: nil, request_options: {})
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
override.returns(
|
|
38
|
+
{
|
|
39
|
+
contact_id: String,
|
|
40
|
+
x_profile_id: String,
|
|
41
|
+
request_options: Sentdm::RequestOptions
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def to_hash
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ConversationListMessagesParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Sentdm::ConversationListMessagesParams,
|
|
13
|
+
Sentdm::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
sig { returns(Integer) }
|
|
21
|
+
attr_accessor :page
|
|
22
|
+
|
|
23
|
+
sig { returns(Integer) }
|
|
24
|
+
attr_accessor :page_size
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_reader :x_profile_id
|
|
28
|
+
|
|
29
|
+
sig { params(x_profile_id: String).void }
|
|
30
|
+
attr_writer :x_profile_id
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
id: String,
|
|
35
|
+
page: Integer,
|
|
36
|
+
page_size: Integer,
|
|
37
|
+
x_profile_id: String,
|
|
38
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
39
|
+
).returns(T.attached_class)
|
|
40
|
+
end
|
|
41
|
+
def self.new(
|
|
42
|
+
id:,
|
|
43
|
+
page:,
|
|
44
|
+
page_size:,
|
|
45
|
+
x_profile_id: nil,
|
|
46
|
+
request_options: {}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
override.returns(
|
|
52
|
+
{
|
|
53
|
+
id: String,
|
|
54
|
+
page: Integer,
|
|
55
|
+
page_size: Integer,
|
|
56
|
+
x_profile_id: String,
|
|
57
|
+
request_options: Sentdm::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
def to_hash
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Sentdm
|
|
4
|
+
module Models
|
|
5
|
+
class ConversationListParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Sentdm::ConversationListParams, Sentdm::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(Integer) }
|
|
15
|
+
attr_accessor :page
|
|
16
|
+
|
|
17
|
+
sig { returns(Integer) }
|
|
18
|
+
attr_accessor :page_size
|
|
19
|
+
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :x_profile_id
|
|
22
|
+
|
|
23
|
+
sig { params(x_profile_id: String).void }
|
|
24
|
+
attr_writer :x_profile_id
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
page: Integer,
|
|
29
|
+
page_size: Integer,
|
|
30
|
+
x_profile_id: String,
|
|
31
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
32
|
+
).returns(T.attached_class)
|
|
33
|
+
end
|
|
34
|
+
def self.new(page:, page_size:, x_profile_id: nil, request_options: {})
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
sig do
|
|
38
|
+
override.returns(
|
|
39
|
+
{
|
|
40
|
+
page: Integer,
|
|
41
|
+
page_size: Integer,
|
|
42
|
+
x_profile_id: String,
|
|
43
|
+
request_options: Sentdm::RequestOptions
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
def to_hash
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|