sentdm 0.25.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 +12 -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
|
@@ -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
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type template_footer =
|
|
4
4
|
{
|
|
5
5
|
template: String,
|
|
6
6
|
type: String?,
|
|
7
7
|
variables: ::Array[Sentdm::TemplateVariable]?
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class TemplateFooter < Sentdm::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor template: String
|
|
12
12
|
|
|
13
13
|
attr_accessor type: String?
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type template_header =
|
|
4
4
|
{
|
|
5
5
|
template: String,
|
|
6
6
|
type: String?,
|
|
7
7
|
variables: ::Array[Sentdm::TemplateVariable]?
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class TemplateHeader < Sentdm::Internal::Type::BaseModel
|
|
11
11
|
attr_accessor template: String
|
|
12
12
|
|
|
13
13
|
attr_accessor type: String?
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -3,6 +3,10 @@ module Sentdm
|
|
|
3
3
|
|
|
4
4
|
class APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
5
5
|
|
|
6
|
+
class APIResponseOfContactMessageSummary = Sentdm::Models::APIResponseOfContactMessageSummary
|
|
7
|
+
|
|
8
|
+
class APIResponseOfConversationMessagesList = Sentdm::Models::APIResponseOfConversationMessagesList
|
|
9
|
+
|
|
6
10
|
class APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
7
11
|
|
|
8
12
|
class APIResponseOfUser = Sentdm::Models::APIResponseOfUser
|
|
@@ -11,8 +15,16 @@ module Sentdm
|
|
|
11
15
|
|
|
12
16
|
class APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
13
17
|
|
|
18
|
+
class AuthenticationConfig = Sentdm::Models::AuthenticationConfig
|
|
19
|
+
|
|
14
20
|
class BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
15
21
|
|
|
22
|
+
class BrandBusinessInfo = Sentdm::Models::BrandBusinessInfo
|
|
23
|
+
|
|
24
|
+
class BrandComplianceInfo = Sentdm::Models::BrandComplianceInfo
|
|
25
|
+
|
|
26
|
+
class BrandContactInfo = Sentdm::Models::BrandContactInfo
|
|
27
|
+
|
|
16
28
|
class BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
17
29
|
|
|
18
30
|
class ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
@@ -21,12 +33,22 @@ module Sentdm
|
|
|
21
33
|
|
|
22
34
|
class ContactListParams = Sentdm::Models::ContactListParams
|
|
23
35
|
|
|
36
|
+
class ContactMessageSummary = Sentdm::Models::ContactMessageSummary
|
|
37
|
+
|
|
24
38
|
class ContactResponse = Sentdm::Models::ContactResponse
|
|
25
39
|
|
|
40
|
+
class ContactRetrieveMessageSummaryParams = Sentdm::Models::ContactRetrieveMessageSummaryParams
|
|
41
|
+
|
|
26
42
|
class ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
27
43
|
|
|
28
44
|
class ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
29
45
|
|
|
46
|
+
class ConversationListMessagesParams = Sentdm::Models::ConversationListMessagesParams
|
|
47
|
+
|
|
48
|
+
class ConversationListParams = Sentdm::Models::ConversationListParams
|
|
49
|
+
|
|
50
|
+
class ConversationMessagesList = Sentdm::Models::ConversationMessagesList
|
|
51
|
+
|
|
30
52
|
class DestinationCountry = Sentdm::Models::DestinationCountry
|
|
31
53
|
|
|
32
54
|
class ErrorDetail = Sentdm::Models::ErrorDetail
|
|
@@ -65,38 +87,30 @@ module Sentdm
|
|
|
65
87
|
|
|
66
88
|
class ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
67
89
|
|
|
68
|
-
class SentDmServicesCommonContractsPocOsAuthenticationConfig = Sentdm::Models::SentDmServicesCommonContractsPocOsAuthenticationConfig
|
|
69
|
-
|
|
70
|
-
class SentDmServicesCommonContractsPocOsTemplateBody = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateBody
|
|
71
|
-
|
|
72
|
-
class SentDmServicesCommonContractsPocOsTemplateButton = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton
|
|
73
|
-
|
|
74
|
-
class SentDmServicesCommonContractsPocOsTemplateButtonProps = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps
|
|
75
|
-
|
|
76
|
-
class SentDmServicesCommonContractsPocOsTemplateFooter = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateFooter
|
|
77
|
-
|
|
78
|
-
class SentDmServicesCommonContractsPocOsTemplateHeader = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
79
|
-
|
|
80
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
81
|
-
|
|
82
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
83
|
-
|
|
84
|
-
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
85
|
-
|
|
86
90
|
module TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
87
91
|
|
|
88
92
|
module TcrVertical = Sentdm::Models::TcrVertical
|
|
89
93
|
|
|
90
94
|
class Template = Sentdm::Models::Template
|
|
91
95
|
|
|
96
|
+
class TemplateBody = Sentdm::Models::TemplateBody
|
|
97
|
+
|
|
92
98
|
class TemplateBodyContent = Sentdm::Models::TemplateBodyContent
|
|
93
99
|
|
|
100
|
+
class TemplateButton = Sentdm::Models::TemplateButton
|
|
101
|
+
|
|
102
|
+
class TemplateButtonProps = Sentdm::Models::TemplateButtonProps
|
|
103
|
+
|
|
94
104
|
class TemplateCreateParams = Sentdm::Models::TemplateCreateParams
|
|
95
105
|
|
|
96
106
|
class TemplateDefinition = Sentdm::Models::TemplateDefinition
|
|
97
107
|
|
|
98
108
|
class TemplateDeleteParams = Sentdm::Models::TemplateDeleteParams
|
|
99
109
|
|
|
110
|
+
class TemplateFooter = Sentdm::Models::TemplateFooter
|
|
111
|
+
|
|
112
|
+
class TemplateHeader = Sentdm::Models::TemplateHeader
|
|
113
|
+
|
|
100
114
|
class TemplateListParams = Sentdm::Models::TemplateListParams
|
|
101
115
|
|
|
102
116
|
class TemplateRetrieveParams = Sentdm::Models::TemplateRetrieveParams
|
|
@@ -42,6 +42,12 @@ module Sentdm
|
|
|
42
42
|
?request_options: Sentdm::request_opts
|
|
43
43
|
) -> nil
|
|
44
44
|
|
|
45
|
+
def retrieve_message_summary: (
|
|
46
|
+
String contact_id,
|
|
47
|
+
?x_profile_id: String,
|
|
48
|
+
?request_options: Sentdm::request_opts
|
|
49
|
+
) -> Sentdm::APIResponseOfContactMessageSummary
|
|
50
|
+
|
|
45
51
|
def initialize: (client: Sentdm::Client) -> void
|
|
46
52
|
end
|
|
47
53
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Conversations
|
|
4
|
+
def list: (
|
|
5
|
+
page: Integer,
|
|
6
|
+
page_size: Integer,
|
|
7
|
+
?x_profile_id: String,
|
|
8
|
+
?request_options: Sentdm::request_opts
|
|
9
|
+
) -> Sentdm::APIResponseOfConversationMessagesList
|
|
10
|
+
|
|
11
|
+
def list_messages: (
|
|
12
|
+
String id,
|
|
13
|
+
page: Integer,
|
|
14
|
+
page_size: Integer,
|
|
15
|
+
?x_profile_id: String,
|
|
16
|
+
?request_options: Sentdm::request_opts
|
|
17
|
+
) -> Sentdm::APIResponseOfConversationMessagesList
|
|
18
|
+
|
|
19
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -9,7 +9,7 @@ module Sentdm
|
|
|
9
9
|
?idempotency_key: String,
|
|
10
10
|
?x_profile_id: String,
|
|
11
11
|
?request_options: Sentdm::request_opts
|
|
12
|
-
) -> Sentdm::Profiles::
|
|
12
|
+
) -> Sentdm::Profiles::APIResponseOfBrandCampaign
|
|
13
13
|
|
|
14
14
|
def update: (
|
|
15
15
|
String campaign_id,
|
|
@@ -19,13 +19,13 @@ module Sentdm
|
|
|
19
19
|
?idempotency_key: String,
|
|
20
20
|
?x_profile_id: String,
|
|
21
21
|
?request_options: Sentdm::request_opts
|
|
22
|
-
) -> Sentdm::Profiles::
|
|
22
|
+
) -> Sentdm::Profiles::APIResponseOfBrandCampaign
|
|
23
23
|
|
|
24
24
|
def list: (
|
|
25
25
|
String profile_id,
|
|
26
26
|
?x_profile_id: String,
|
|
27
27
|
?request_options: Sentdm::request_opts
|
|
28
|
-
) -> Sentdm::
|
|
28
|
+
) -> Sentdm::Profiles::APIResponseOfListOfBrandCampaign
|
|
29
29
|
|
|
30
30
|
def delete: (
|
|
31
31
|
String campaign_id,
|